* i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-10-26 Mark Kettenis <kettenis@gnu.org>
2
3 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
4 FDOFF_REGNUM): Remove defines.
5 * win32-nat.c (do_child_fetch_inferior_registers): Include
6 "i387-tdep.h".
7 (do_child_fetch_inferior_registers): Use I387_FISEG_ST0_REGNUM and
8 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
9 undefine I387_ST0_REGNUM.
10
11 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
12 * x86-64-tdep.c (x86_64_store_return_value): Use
13 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
14
15 Change register numbers to enumartion values.
16 * i386-tdep.h (enum i386_regnum): New.
17 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
18 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
19 I386_ST0_REGNUM): Remove defines.
20 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
21 I386_EDI_REGNUM): Remove defines.
22
23 2003-10-24 Andrew Cagney <cagney@redhat.com>
24
25 * target.c: Include "gdbcore.h".
26 (get_target_memory, get_target_memory_unsigned): New functions.
27 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
28 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
29 Use get_target_memory_unsigned.
30 * Makefile.in (target.o): Update dependencies.
31
32 2003-10-24 Andrew Cagney <cagney@redhat.com>
33
34 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
35 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
36 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
37 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
38 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
39
40 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
41 (can_run_code_for): Use the OO term "singleton".
42
43 2003-10-23 Andrew Cagney <cagney@redhat.com>
44
45 * Makefile.in (stack.o): Add $(regcache_h).
46 * stack.c: Include "regcache.h"
47 (return_command): Rewrite. Use get_frame_id and
48 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
49 about unhandled return-values.
50 * value.h (set_return_value): Delete declaration.
51 * values.c (set_return_value): Delete function.
52
53 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
54
55 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
56 (pseudo_regs): Add comment regarding register stack registers.
57 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
58 (floatformat_valid): New static routine.
59 (floatformat_ia64_ext): Add name field and set up is_valid routine
60 to floatformat_valid().
61 (examine_prologue): For the previous cfm, use
62 frame_unwind_register()
63 if the cfm is not stored in a register-stack register. Save the
64 previous cfm value in the prev_cfm field. Add debug output.
65 (ia64_frame_this_id): Use frame_id_build_special() to also register
66 the bsp. Add debug output.
67 (ia64_sigtramp_frame_this_id): Ditto.
68 (ia64_frame_prev_register): Look at cache saved_regs for a few more
69 registers and also add some checks for framelessness before accepting
70 current register values for fields such as return address. For cfm,
71 use the cached prev_cfm field if available. Add comment to explain
72 PSR logic. Add debug output.
73 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
74 as part of initialization.
75 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
76 calculated. Cache the bsp and cfm values.
77 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
78 instead of using ia64_frame_prev_register() which doesn't expect most
79 registers to be saved. The saved values for bsp and sp
80 can be taken from the cache. Add debug output.
81 (ia64_push_dummy_call): Use frame_id_build_special() to also register
82 the bsp.
83
84 2003-10-23 Jim Blandy <jimb@redhat.com>
85
86 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
87 architecture the current arch can run code for --- but not if it's
88 a superset.
89 (can_run_code_for): New function.
90
91 2003-10-22 James E Wilson <wilson@specifixinc.com>
92
93 * MAINTAINERS: Move myself from paper trail section back to write
94 after approval section.
95
96 2003-10-22 Andrew Cagney <cagney@redhat.com>
97
98 * exec.h: New file.
99 * win32-nat.c: Include "exec.h".
100 * solib.c: Include "exec.h".
101 * target.h (build_section_table): Delete declaration.
102 * somsolib.c: Include "exec.h".
103 (exec_ops): Delete extern declaration.
104 * rs6000-nat.c: Update copyright. Include "exec.h".
105 (exec_ops): Delete extern declaration.
106 * pa64solib.c: Update copyright. Include "exec.h".
107 (exec_ops): Delete extern declaration.
108 * exec.c: Update copyright. Include "exec.h".
109 * corelow.c: Update dependencies. Include "exec.h".
110 * Makefile.in (exec_h): Define.
111 (exec.o, somsolib.o): Update dependencies.
112 (pa64solib.o, corelow.o): Update dependencies.
113
114 2003-10-22 Andrew Cagney <cagney@redhat.com>
115
116 * target.c: Include "gdb_assert.h" (target_read): Call
117 "target_read_partial", not "target_write_partial".
118 (default_read_partial, default_write_partial): New function.
119 (target_read_partial, target_write_partial): Simplify, assume that
120 there is always a read/write method.
121 (update_current_target, add_target): Always set "to_read_partial"
122 and "to_write_partial".
123 (target_write, target_read): Fail on a zero byte transfer.
124 * Makefile.in (target.o): Update dependencies.
125 * target.h: Update copyright date.
126 (target_object): Fix typo.
127
128 2003-10-22 Andrew Cagney <cagney@redhat.com>
129
130 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
131 multi-arch method, add "targ" parameter.
132 (struct target_ops): Declare.
133 * gdbarch.h, gdbarch.c: Re-generate.
134 * Makefile.in (c-valprint.o): Update dependencies.
135 * arch-utils.h: Update copyright.
136 (convert_from_func_ptr_addr_identity): Declare.
137 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
138 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
139 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
140 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
141 * infcall.c (find_function_addr, call_function_by_hand): Update.
142 * c-valprint.c: Include "target.h".
143 (print_function_pointer_address): Update.
144
145 2003-10-22 Andrew Cagney <cagney@redhat.com>
146
147 * target.c (target_close): New function.
148 (debug_to_close): Use "target_close".
149 (push_target): Use "target_close".
150 (unpush_target): Use "target_close".
151 (pop_target): Use "target_close".
152 * target.h (struct target_ops): Add "to_xclose".
153 (target_open): Delete macro. Move comment to "to_open".
154 (target_close): Replace macro with function that takes a target.
155 * top.c (quit_target): Pass "current_target" to "target_close".
156
157 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
158
159 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
160 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
161 * symtab.h (lookup_minimal_symbol_text): Update.
162 * breakpoint.c (create_overlay_event_breakpoint,
163 create_longjmp_breakpoint): Update callers.
164 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
165 * symtab.c (find_pc_sect_line): Ditto.
166
167 2003-10-21 Andrew Cagney <cagney@redhat.com>
168
169 * target.c (errno): Delete extern declaration.
170
171 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
172
173 * ia64-tdep.c: Change all occurrences of
174 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
175 (ia64_frame_prev_register): Minor whitespace change.
176
177 2003-10-20 Michael Chastain <mec@shout.net>
178
179 * config/djgpp/fnchange.lst: Add lines for:
180 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
181 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
182 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
183 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
184 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
185 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
186 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
187
188 2003-10-20 Andrew Cagney <cagney@redhat.com>
189
190 * values.c (register_value_being_returned): Update comments. Use
191 "gdbarch_return_value" when available.
192 (using_struct_return): Ditto.
193 (set_return_value): Ditto. Use "gdbarch_return_value" when
194 available.. Print a warning, and not an error, when an unhandled
195 return type is encountered.
196 * infcmd.c: Include "gdb_assert.h".
197 (print_return_value): When gdbarch_return_value_p, and using
198 struct return, assume that the value is not available.
199 * defs.h (return_value_convention): Define.
200 * gdbarch.sh (gdbarch_return_value): New predicate method.
201 * gdbarch.h, gdbarch.c: Re-generate
202 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
203
204 2003-10-20 Andrew Cagney <cagney@redhat.com>
205
206 * symtab.c: Replace "struct sec" with "struct bfd_section".
207 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
208
209 2003-10-19 Michael Chastain <mec@shout.net>
210
211 * config/djgpp/fnchange.lst: Add lines for:
212 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
213 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
214 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
215
216 2003-10-19 Mark Kettenis <kettenis@gnu.org>
217
218 * amd64fbsd-nat.c (fetch_inferior_registers,
219 store_inferior_registers): Remove functions.
220 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
221
222 2003-10-18 Mark Kettenis <kettenis@gnu.org>
223
224 Add NetBSD/amd64 native configuration:
225 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
226 * amd64nbsd-tdep.c: New file.
227 * amd64nbsd-nat.c: New file.
228 * amd64bsd-nat.c: New file.
229 * config/i386/nbsd64.mh: New file.
230 * config/i386/nbsd64.mt: New file.
231 * configure.host: Add x86_64-*-netbsd*.
232 * configure.tgt: Add x86_64-*-netbsd*.
233 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
234 New targets.
235 * NEWS (New native configurations): Mention NetBSD/amd64.
236
237 2003-10-17 Michael Chastain <mec@shout.net>
238
239 * config/djgpp/fnchange.lst: Remove dead lines for:
240 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
241 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
242 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
243 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
244 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
245 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
246 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
247 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
248 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
249 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
250 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
251 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
252 gdb/config/sparc/tm-sparclite.h,
253 gdb/gdbtk/generic/ChangeLog-2001,
254 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
255 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
256 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
257 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
258 gdb/testsuite/gdb.mi/mi0-var-block.exp,
259 gdb/testsuite/gdb.mi/mi0-var-child.exp,
260 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
261 gdb/testsuite/gdb.mi/mi0-var-display.exp,
262 itcl/iwidgets3.0.0/demos/extfileselectionbox,
263 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
264 itcl/iwidgets3.0.0/demos/fileselectionbox,
265 itcl/iwidgets3.0.0/demos/fileselectiondialog,
266 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
267 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
268 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
269 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
270 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
271 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
272 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
273 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
274 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
275 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
276 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
277 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
278 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
279 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
280 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
281 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
282 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
283 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
284 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
285 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
286 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
287 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
288 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
289 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
290 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
291 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
292 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
293 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
294 itcl/iwidgets3.0.0/demos/html/shell.n.html,
295 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
296 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
297 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
298 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
299 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
300 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
301 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
302 itcl/iwidgets3.0.0/demos/scrolledcanvas,
303 itcl/iwidgets3.0.0/demos/scrolledframe,
304 itcl/iwidgets3.0.0/demos/scrolledhtml,
305 itcl/iwidgets3.0.0/demos/scrolledlistbox,
306 itcl/iwidgets3.0.0/demos/scrolledtext,
307 itcl/iwidgets3.0.0/demos/selectionbox,
308 itcl/iwidgets3.0.0/demos/selectiondialog,
309 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
310 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
311 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
312 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
313 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
314 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
315 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
316 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
317 itcl/iwidgets3.0.0/doc/scrolledframe.n,
318 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
319 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
320 itcl/iwidgets3.0.0/doc/scrolledtext.n,
321 itcl/iwidgets3.0.0/doc/selectionbox.n,
322 itcl/iwidgets3.0.0/doc/selectiondialog.n,
323 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
324 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
325 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
326 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
327 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
328 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
329 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
330 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
331 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
332 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
333 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
334 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
335 itcl/iwidgets3.0.0/generic/selectionbox.itk,
336 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
337 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
338 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
339 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
340 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
341 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
342 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
343 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
344 itcl/iwidgets3.0.0/tests/scrolledframe.test,
345 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
346 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
347 itcl/iwidgets3.0.0/tests/scrolledtext.test,
348 itcl/iwidgets3.0.0/tests/selectionbox.test,
349 itcl/iwidgets3.0.0/tests/selectiondialog.test,
350 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
351 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
352 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
353 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
354 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
355 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
356 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
357 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
358 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
359 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
360 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
361 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
362 tk/mac/tkMacProjects.sit.hqx.
363
364 2003-10-17 Andrew Cagney <cagney@redhat.com>
365
366 * target.c (target_section_by_addr): New function.
367 (do_xfer_memory): Use "target_section_by_addr".
368 * target.h (target_section_by_addr): Declare.
369
370 * target.h (struct target_ops): Add "to_read_partial" and
371 "to_write_partial", delete "to_query".
372 (target_read_partial, target_write_partial): Declare.
373 (target_read, target_write): Declare.
374 (target_query): Delete macro.
375 * target.c (target_read_partial): New function.
376 (target_write_partial, target_read, target_write): New function.
377 (update_current_target): Delete inheritance of "to_query". Add
378 comments about "to_read_partial" and "to_write_partial".
379 (debug_to_partial_read, debug_to_partial_write): New functions.
380 (debug_to_query): Delete function.
381 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
382 instead of "to_query".
383 * remote.c (remote_read_partial): Replace "remote_query".
384 (init_remote_ops): Set "to_read_partial" instead of "to_query".
385 (init_remote_async_ops): Ditto.
386 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
387 "target_read_partial" instead of "target_query".
388 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
389 Use "target_read_partial" instead of "target_query".
390
391 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
392
393 * frame.h (struct frame_id): Add new field: special_addr.
394 (frame_id_build_special): New prototype.
395 * frame.c (frame_id_build_special): New function.
396 (frame_id_build): Change to call frame_id_build_special().
397 (frame_id_eq): Change to also test special_addr field.
398 (frame_id_inner): Update comment.
399
400 2003-10-17 Andrew Cagney <cagney@redhat.com>
401
402 * target.c (update_current_target): Perform the target cleanup.
403 Put the target stack beneath the squashed "current_target".
404 (add_target): Delete disabled call to "cleanup_target".
405 (cleanup_target): Delete function.
406 (push_target, unpush_target): Do not call "cleanup_target".
407
408 2003-10-17 Andrew Cagney <cagney@redhat.com>
409
410 * target.c (target_stack): Change to a static target_ops.
411 (update_current_target): Walk the "struct target_ops" stack.
412 (pop_target, do_xfer_memory, target_info): Ditto.
413 (find_target_beneath): Ditto.
414 (push_target): Rewrite to use the "struct target_ops" stack.
415 (unpush_target): Ditto.
416 * target.h (struct target_stack_item): Delete definition.
417 (target_stack): Delete declaration.
418 (struct target_ops): Add field "beneath".
419
420 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
421
422 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
423 declaration.
424 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
425 (h8300_examine_prologue): Use h8300_normal_mode flag
426 (h8300_gdbarch_init): Set architecture info for normal mode
427
428 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
429
430 * remote.c (remote_protocol_vcont): New variable.
431 (set_remote_protocol_vcont_packet_cmd): New function.
432 (show_remote_protocol_vcont_packet_cmd): New function.
433 (init_all_packet_configs): Handle remote_protocol_vcont.
434 (remote_vcont_probe): New function.
435 (remote_vcont_resume): New function.
436 (remote_resume): Use it.
437 (remote_async_resume): Call remote_resume.
438 (_initialize_remote): Add verbose-resume packet commands.
439
440 2003-10-16 Andrew Cagney <cagney@redhat.com>
441
442 * infrun.c (handle_inferior_event): Add comment about
443 "frame_id_inner" being too weak.
444
445 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
446
447 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
448 second parameter, which is always null. Remove
449 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
450 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
451 accordingly.
452 * somsolib.c (som_solib_create_inferior_hook,
453 som_solib_desire_dynamic_linker_symbols): Update callers.
454 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
455
456 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
457
458 * remote-m32r-sdi.c : New file, interface to m32r on-chip
459 debug interface, SDI (Scalable Debug Interface).
460 * NEWS: Mention m32r SDI protocol was supported.
461 * Makefile.in (remote-m32r-sdi.o): Add build rule.
462 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
463
464 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
465
466 * ia64-linux-tdep.c: Include gdbcore.h.
467 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
468 (ia64_linux_sigcontext_register_addr): Find the address of the
469 sigcontext area stored in the sigframe instead of using
470 a magic offset constant.
471
472 2003-10-15 Andrew Cagney <cagney@redhat.com>
473
474 * remote.c (remote_search): Delete function.
475 * target.h (target_search): Delete disabled macro.
476 (struct target_ops): Delete disabled field "to_search".
477
478 2003-10-14 Kevin Buettner <kevinb@redhat.com>
479
480 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
481 instead of deprecated_inside_entry_file().
482
483 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
484
485 * sh-tdep.c: Fix copy/paste hangover in comment.
486 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
487 mode.
488 (sh3e_sh4_extract_return_value): Ditto.
489
490 2003-10-13 Richard Henderson <rth@redhat.com>
491
492 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
493 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
494 match c_val_print a bit closer.
495
496 2003-10-13 Kevin Buettner <kevinb@redhat.com>
497
498 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
499 (frv_gdbarch_adjust_breakpoint_address): New function.
500 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
501 method.
502
503 2003-10-13 Kevin Buettner <kevinb@redhat.com>
504
505 * breakpoint.h (struct breakpoint): Add new member
506 ``requested_address''.
507 * breakpoint.c (breakpoint_adjustment_warning)
508 (adjust_breakpoint_address): New static functions.
509 (print_it_typical): Issue warning if breakpoint's address is different
510 from its requested address.
511 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
512 (breakpoint_re_set_one): Set breakpoint's
513 ``requested_address'' field. Set ``address'' field to the
514 result of calling adjust_breakpoint_address() on the requested
515 address.
516
517 2003-10-13 Kevin Buettner <kevinb@redhat.com>
518
519 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
520 * gdbarch.h, gdbarch.c: Regenerate.
521
522 2003-10-11 Mark Kettenis <kettenis@gnu.org>
523
524 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
525 TDEP->sc_num_regs.
526
527 * i386fbsd-tdep.c: New file.
528 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
529 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
530 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
531 i386bsd-tdep.c.
532 (_initialize_i386fbsd_tdep): New function.
533 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
534 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
535 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
536 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
537 TDEP->sc_num_regs.
538 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
539 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
540 to initialize TDEP->sc_num_regs.
541 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
542 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
543 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
544 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
545 FreeBSD ELF OS/ABI's here.
546 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
547 (i386fbsd-tdep.o): New target.
548 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
549 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
550
551 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
552 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
553 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
554 in initialization of TDEP->sc_num_regs.
555
556 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
557 (x86_64_init_abi): Initialize regset_from_core_section if
558 appropriate.
559
560 * i386-tdep.c (i386_regset_from_core_section): New function.
561 (i386_gdbarch_init): Initialize regset_from_core_section if
562 appropriate.
563 * i386-tdep.h (i386_regset_from_core_section): New declaration.
564
565 * i386-tdep.h (struct regset): Declare opaque.
566
567 * gdbarch.sh (regset_from_core_section): New method.
568 (struct regset): Declare opaque.
569 * gdbarch.c, gdbarch.h: Regenerated.
570
571 2003-10-11 Alan Modra <amodra@bigpond.net.au>
572
573 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
574 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
575 Correct test for pc within section.
576
577 2003-10-11 Mark Kettenis <kettenis@gnu.org>
578
579 * gdbarch.sh: Remove trailing whitepsace from comments.
580
581 2003-10-08 Roland McGrath <roland@redhat.com>
582
583 * gcore.c (make_mem_sec): Function removed, folded into ...
584 (gcore_create_callback): ... here. To omit a section, clear its
585 SEC_LOAD bit rather than zeroing its size.
586 Omit read-only sections only if they correspond to a known disk file.
587 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
588
589 2003-10-10 Michael Snyder <msnyder@redhat.com>
590
591 * d10v-tdep.c: Fix typo in comment.
592
593 2003-10-10 Andrew Cagney <cagney@redhat.com>
594
595 * rs6000-tdep.c (e500_store_return_value): Delete function.
596 (e500_extract_return_value): Delete function.
597 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
598 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
599 "ppc_sysv_abi_restore_return_value" where applicable.
600 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
601 (ppc_sysv_abi_extract_return_value): Declare.
602 (ppc_sysv_abi_broken_store_return_value): Declare.
603 (ppc_sysv_abi_broken_extract_return_value): Declare.
604 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
605 * ppc-sysv-tdep.c (return_value_convention): Move definition to
606 start of file.
607 (do_ppc_sysv_return_value): New function.
608 (ppc_sysv_abi_extract_return_value): New function.
609 (ppc_sysv_abi_store_return_value): New function.
610 (ppc_sysv_abi_broken_extract_return_value): New function.
611 (ppc_sysv_abi_broken_store_return_value): New function.
612 (ppc_sysv_abi_use_struct_convention): Call
613 do_ppc_sysv_return_value.
614
615 2003-10-10 J. Brobecker <brobecker@gnat.com>
616
617 * blockframe.c (inside_main_func): No longer use symbol_lookup()
618 to lookup the main function symbol.
619
620 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
621
622 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
623 types correctly.
624 (sh_push_dummy_call_fpu): Fix argument passing rules.
625 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
626 float types.
627 (sh3e_sh4_store_return_value): Ditto.
628
629 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
630
631 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
632 comment.
633
634 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
635
636 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
637 more readable code. Accomodate passing of bitfields.
638
639 2003-10-10 Andrew Cagney <cagney@redhat.com>
640
641 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
642 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
643 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
644 * ppc-sysv-tdep.c: Include "gdb_assert.h".
645 (ppc64_sysv_abi_push_dummy_call): New function.
646 (ppc64_sysv_abi_broken_push_dummy_call): New function.
647 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
648 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
649
650 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
651
652 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
653 * README: Ditto.
654 * d10v-tdep.c: Ditto.
655 * h8300-tdep.c: Ditto.
656 * remote-e7000.c: Ditto.
657 * remote-hms.c: Ditto.
658 * ser-e7kpc.c: Ditto.
659 * sh-stub.c: Ditto.
660 * sh-tdep.c: Ditto.
661 * sh-tdep.h: Ditto.
662 * sh3-rom.c: Ditto.
663 * sh64-tdep.c: Ditto.
664 * top.c: Ditto.
665 * wince.c: Ditto.
666 * config/d10v/d10v.mt: Ditto.
667 * config/sh/embed.mt: Ditto.
668 * config/sh/linux.mt: Ditto.
669 * config/sh/tm-linux.h: Ditto.
670 * config/sh/tm-sh.h: Ditto.
671 * config/sh/wince.mt: Ditto.
672
673 2003-10-09 Andrew Cagney <cagney@redhat.com>
674
675 * ppc-tdep.h (struct type): Declare opaque.
676 * x86-64-tdep.h (struct regcache): Declare opaque.
677 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
678 coding style.
679
680 2003-10-09 Andrew Cagney <cagney@redhat.com>
681
682 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
683 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
684 (SOFTWARE_SINGLE_STEP_P): Ditto.
685 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
686 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
687 (SOFTWARE_SINGLE_STEP_P): Ditto.
688 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
689 software_single_step to rs6000_software_single_step.
690
691 2003-10-09 Andrew Cagney <cagney@redhat.com>
692
693 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
694
695 2003-10-09 Michael Snyder <msnyder@redhat.com>
696
697 * frame.h: Fix typo in comment.
698 * dummy-frame.c: Fix typo in comment.
699 * d10v-tdep.c: Random whitespace/comment tweaks.
700
701 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
702
703 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
704 (sh_push_dummy_code): Delete function, it's only used for dummy calls
705 on stack.
706
707 Based on input by Stephen Clarke (stephen.clarke@superh.com):
708 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
709 in detail.
710
711 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
712
713 * remote-mips.c (mips_initialize): Remove unneeded call to
714 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
715
716 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
717
718 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
719 a memory pointer.
720
721 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
722
723 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
724 for any lwp we resume.
725 (running_callback): Add lwps that have pending status events
726 against them to be considered running.
727
728 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
729
730 * m32r-tdep.c : Include "dis-asm.h".
731 * Makefile.in (m32r-tdep.o): Update dependencies.
732
733 2003-10-06 J. Brobecker <brobecker@gnat.com>
734
735 * completer.h (get_gdb_completer_word_break_characters): Delete.
736 * completer.c: include language.h.
737 (gdb_completer_word_break_characters): Delete.
738 (get_gdb_completer_word_break_characters): Delete.
739 (location_completer): Use the word break characters of the current
740 language.
741 (complete_line): Likewise.
742 (line_completion_function): Likewise.
743 (skip_quoted_chars): Likewise.
744 * Makefile.in (completer.o): Add dependency on language.h.
745 * top.c (init_main): Set the readline word break characters
746 to GDB's default word break characters.
747
748 2003-10-06 J. Brobecker <brobecker@gnat.com>
749
750 * language.h (language_defn): new field, la_word_break_characters.
751 * language.c (unknown_language_defn): Set new field to
752 default_word_break_characters.
753 (auto_language_defn): Likewise.
754 (local_language_defn): Likewise.
755 * ada-lang.c (ada_language_defn): Likewise.
756 * c-lang.c (c_language_defn): Likewise.
757 (cplus_language_defn): Likewise.
758 (asm_language_defn): Likewise.
759 (minimal_language_defn): Likewise.
760 * f-lang.c (f_language_defn): Likewise.
761 * jv-lang.c (java_language_defn): Likewise.
762 * m2-lang.c (m2_language_defn): Likewise.
763 * objc-lang.c (objc_language_defn): Likewise.
764 * p-lang.c (pascal_language_defn): Likewise.
765 * scm-lang.c (scm_language_defn): Likewise.
766
767 2003-10-06 Andrew Cagney <cagney@redhat.com>
768
769 * ppc-sysv-tdep.c: Re-indent.
770
771 2003-10-06 J. Brobecker <brobecker@gnat.com>
772
773 * language.h (default_word_break_characters): Add prototype.
774 * language.c (default_word_break_characters): New function.
775
776 2003-10-06 Andreas Schwab <schwab@suse.de>
777
778 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
779 with %eax.
780
781 2003-10-06 Andrew Cagney <cagney@redhat.com>
782
783 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
784 "h8500-tdep.c".
785 (z8k-tdep.o): Delete custom build rule.
786
787 2003-10-06 Andrew Cagney <cagney@redhat.com>
788
789 * Makefile.in: Update all dependencies.
790
791 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
792 No longer list PA as as obsolete candidate. List m32r as
793 broken instead of obsolete.
794
795 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
796 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
797 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
798 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
799 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
800 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
801 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
802 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
803 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
804 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
805 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
806 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
807 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
808 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
809 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
810 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
811 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
812 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
813 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
814 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
815 * config/z8k/z8k.mt: Ditto.
816
817 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
818 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
819 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
820 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
821 sparclite were removed.
822 * configure.host, configure.tgt: Remove corresponding tuples.
823
824 * breakpoint.c, breakpoint.h: Remove obsolete code.
825 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
826 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
827 * stabsread.h, xcoffread.c: Ditto.
828
829 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
830 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
831 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
832 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
833
834 2003-10-06 David Lecomber <dsl@sources.redhat.com>
835
836 * f-valprint.c: Reformatting
837
838 2003-10-06 Mark Kettenis <kettenis@gnu.org>
839
840 * x86-64-tdep.c: Remove duplicate comment.
841
842 * x86-64-tdep.c (x86_64_store_return_value): Don't use
843 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
844 names for return values. This fixes a bug since we looked at %rbx
845 instead of %rdx.
846
847 2003-10-05 Mark Kettenis <kettenis@gnu.org>
848
849 * x86-64-tdep.c: Include "regset.h".
850
851 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
852 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
853 sizeof_fpregset.
854 * i386-tdep.c: Include "regset.h".
855 (i386_supply_gregset): New function.
856 (i386_supply_fpregset): New function.
857 (i386_gdbarch_init): Initialze register set-related members of
858 TDEP.
859 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
860 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
861
862 2003-10-03 Andrew Cagney <cagney@redhat.com>
863
864 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
865 set extract_return_value, store_return_value and
866 use_struct_convention to ppc64_sysv_abi_extract_return_value,
867 ppc64_sysv_abi_store_return_value and
868 ppc64_sysv_abi_use_struct_convention.
869 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
870 (ppc64_sysv_abi_store_return_value): Declare.
871 (ppc64_sysv_abi_use_struct_convention): Declare.
872 * ppc-sysv-tdep.c (enum return_value_convention): Define.
873 (ppc64_sysv_abi_extract_return_value): New function.
874 (ppc64_sysv_abi_store_return_value): New function.
875 (ppc64_sysv_abi_use_struct_convention): New function.
876 (ppc64_sysv_abi_return_value): New function.
877
878 2003-10-03 Andrew Cagney <cagney@redhat.com>
879
880 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
881 convert a descriptor to a function when it's in the ".opd"
882 section.
883
884 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
885
886 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
887 reg_size to keep GCC silent.
888
889 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
890
891 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
892 base for DW_EH_PE_textrel encodings.
893 (read_encoded_value): Add a DW_EH_PE_textrel case.
894 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
895 section.
896
897 2003-10-03 Mark Kettenis <kettenis@gnu.org>
898
899 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
900
901 2003-10-02 Andrew Cagney <cagney@redhat.com>
902
903 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
904 REGISTER_RAW_SIZE.
905 * gdbarch.h, gdbarch.c: Re-generate.
906 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
907 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
908 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
909 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
910 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
911 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
912 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
913 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
914 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
915 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
916 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
917 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
918 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
919 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
920 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
921 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
922
923 2003-10-02 Jim Blandy <jimb@redhat.com>
924
925 * dwarf2read.c (struct die_info): Doc fix.
926
927 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
928
929 * sh-tdep.c: Running thru gdb_indent.sh.
930
931 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
932
933 * sh-tdep.c (sh_justify_value_in_reg): New function.
934 (sh_stack_allocsize): Ditto.
935 (flt_argreg_array): New array used for floating point argument
936 passing.
937 (sh_init_flt_argreg): New function.
938 (sh_next_flt_argreg): Ditto.
939 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
940 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
941 Fix argument passing strategy.
942 (sh_push_dummy_call_nofpu): Ditto.
943
944 2003-10-01 Andrew Cagney <cagney@redhat.com>
945
946 * value.h (register_value_being_returned): Declare. Replace
947 "value_being_returned".
948 * infcall.c (call_function_by_hand): Use
949 register_value_being_returned.
950 * infcmd.c (print_return_value): Call
951 "register_value_being_returned", handle struct return locally.
952 * values.c (register_value_being_returned): New function. Replace
953 "value_being_returned".
954
955 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
956
957 * linux-proc.c (linux_do_registers): New function.
958 (linux_make_note_section): Use linux_do_registers in case of
959 single threaded inferior programs.
960
961 2003-10-01 Andrew Cagney <cagney@redhat.com>
962
963 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
964 use STRUCT_ADDR. When not using "struct return convention", pass
965 "0" to "value_being_returned". Add FIXMEs.
966 * infcmd.c (print_return_value): Pass an explicit 0/1 to
967 value_being_returned. Add comments.
968 * values.c (value_being_returned): Add fixme.
969 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
970 (hppa_value_returned_from_stack): Add FIXME.
971
972 2003-09-30 David Carlton <carlton@kealia.com>
973
974 * dwarf2read.c (struct die_info): Add 'parent' field; replace
975 'has_children' and 'next' by 'child' and 'sibling'.
976 (read_comp_unit): Rework algorithm, breaking body into
977 read_die_and_children and read_die_and_siblings.
978 (read_die_and_children, read_die_and_siblings): New.
979 (read_full_die): Add 'has_children' argument; set it instead of
980 the die's 'has_children' field. Minor formatting cleanup.
981 (free_die_list): Use die->child and die->sibling instead of
982 die->next.
983 (dump_die_list): Ditto.
984 (sibling_die): Use die->sibling.
985 (psymtab_to_symtab_1): Use die's 'child' field in place of its
986 'has_children' and 'next' fields.
987 (process_die, read_file_scope, read_func_scope)
988 (read_lexical_block_scope, read_structure_scope)
989 (read_enumeration, read_array_type, read_common_block)
990 (read_namespace, read_subroutine_type, dump_die): Ditto.
991
992 2003-09-30 Andrew Cagney <cagney@redhat.com>
993
994 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
995 to 224, not 220.
996
997 2003-09-30 Andrew Cagney <cagney@redhat.com>
998
999 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1000 REGISTER_VIRTUAL_SIZE.
1001 * gdbarch.h, gdbarch.c: Regenerate.
1002 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1003 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1004 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1005
1006 2003-09-29 Andrew Cagney <cagney@redhat.com>
1007
1008 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1009 DEPRECATED_REGISTER_VIRTUAL_TYPE.
1010 * gdbarch.h, gdbarch.c: Regenerate.
1011 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1012 * sh64-tdep.c, sparc-tdep.c: Update.
1013
1014 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1015 * remote-vxmips.c (vx_read_register): Ditto.
1016 * remote-vx68.c (vx_read_register): Ditto.
1017 * gnu-nat.c (inf_validate_procs): Ditto.
1018
1019 2003-09-29 J. Brobecker <brobecker@gnat.com>
1020
1021 * infcall.c (call_function_by_hand): Fix build failure
1022 introduced in the previous change to this file.
1023
1024 2003-09-29 Andrew Cagney <cagney@redhat.com>
1025
1026 * NEWS: Mention Objective-C.
1027
1028 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
1029
1030 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1031 test if the register has been saved on the stack.
1032 (arm_scan_prologue_cache): When analysing the instruction
1033 "str lr, [sp, #-4]", save the address where lr has been stored.
1034
1035 2003-09-28 Andrew Cagney <cagney@redhat.com>
1036
1037 * frame.c (frame_read_unsigned_register): Delete function.
1038 * frame.h (frame_read_unsigned_register): Delete declaration.
1039 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1040 get_frame_register_unsigned.
1041 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1042 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1043 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1044
1045 * frame.h (frame_read_register): Delete declaration.
1046 * frame.c (frame_read_register): Delete function.
1047 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1048 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1049 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1050 * mips-tdep.c (mips_register_to_value): Ditto.
1051 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1052 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1053
1054 * frame.c (frame_read_signed_register): Delete function.
1055 (frame_read_unsigned_register): Update comments.
1056 * frame.h (frame_read_signed_register): Delete declaration.
1057 * h8300-tdep.c (h8300_print_register): Use
1058 get_frame_register_signed.
1059 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1060
1061 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1062 Rename VALUE_RETURNED_FROM_STACK.
1063 * infcmd.c (print_return_value): Update.
1064 * infcall.c (call_function_by_hand): Update.
1065
1066 2003-09-28 Mark Kettenis <kettenis@gnu.org>
1067
1068 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1069 regcache argument and reverse the order of the other two
1070 arguments. Remove local regcache variable. Determine
1071 architecture from REGCACHE. Update comments.
1072 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1073 reverse the order of the other two arguments. Remove local
1074 regcache variable. Determine architecture from REGCACHE. Update
1075 comments.
1076 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1077 prototypes. Update comments.
1078 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1079 comment.
1080 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1081 Update.
1082 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1083 * i386-interix-nat.c (supply_fpregset): Update.
1084 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1085 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1086 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1087 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1088 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1089 Update.
1090 * i386obsd-tdep.c (fetch_core_registers): Update.
1091 * i386v4-nat.c (supply_fpregset): Update.
1092 * x86-64-linux-nat.c (supply_fpregset): Update.
1093 * x86-64-linux-tdep.c (fetch_core_registers): Update.
1094
1095 2003-09-27 Mark Kettenis <kettenis@gnu.org>
1096
1097 * i386-tdep.h: Put opaque declarations in alphabetical
1098 order. Remove spurious whitespace.
1099 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1100 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1101 * i386-tdep.c (MM0_REGNUM): Remove define.
1102 (i386_mmx_regnum_p): Add gdbarch argument.
1103 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1104 Rewrite using new macro definitions for FPU/SSE registers.
1105 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1106 definitions from i387-tdep.h.
1107 (i386_register_name): Update.
1108 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1109 new macro definitions for FPU/SSE registers.
1110 (i386_extract_return_value): Determine whether floating-point
1111 registers are present by examining REGCACHE's architecture.
1112 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1113 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1114 FPU/SSE registers.
1115 (i386_register_type): Update.
1116 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1117 definitions for FPU registers. Use REGCACHE's architecture to
1118 determine the appropriate register numbers.
1119 (i386_pseudo_register_read, i386_pseudo_register_write,
1120 i386_register_reggroup_p): Update.
1121 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1122 TDEP->mm0_regnum.
1123 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1124 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1125 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1126 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1127 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1128 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1129 *' to `void *'.
1130 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1131 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1132 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1133 definitions for FPU/SSE registers.
1134 (FXSAVE_MXCSR_ADDR): New define.
1135 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1136 TDEP->mm0_regnum.
1137 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1138 (I387_ST0_REGNUM): Define.
1139
1140 * regcache.h (get_regcache_arch): New prototype.
1141 * regcache.c (get_regcache_arch): New function.
1142
1143 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1144 whitespace.
1145
1146 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1147 Initialize using ARRAY_SIZE.
1148
1149 2003-09-27 Andrew Cagney <cagney@redhat.com>
1150
1151 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1152 "init_frame_pc_default".
1153 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1154 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1155 * vax-tdep.c (vax_gdbarch_init): Update.
1156 * v850-tdep.c (v850_gdbarch_init): Update.
1157 * sh64-tdep.c (sh64_gdbarch_init): Update.
1158 * s390-tdep.c (s390_gdbarch_init): Update.
1159 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1160 * mcore-tdep.c (mcore_gdbarch_init): Update.
1161 * h8300-tdep.c (h8300_gdbarch_init): Update.
1162 * cris-tdep.c (cris_gdbarch_init): Update.
1163 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1164
1165 2003-09-26 Mark Kettenis <kettenis@gnu.org>
1166
1167 * regset.h: New file.
1168 * Makefile.in (regset_h): Add.
1169
1170 2003-09-25 Andrew Cagney <cagney@redhat.com>
1171
1172 * frame.h (deprecated_frame_saved_regs): Rename
1173 get_frame_saved_regs.
1174 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1175 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1176 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1177 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1178 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1179
1180 2003-09-25 Andrew Cagney <cagney@redhat.com>
1181
1182 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1183 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1184 and Java.
1185 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1186 arm*-*-* do not use the new frame code.
1187
1188 2003-09-25 David Carlton <carlton@kealia.com>
1189
1190 * c-exp.y: Remove 'register' declarations.
1191 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1192
1193 2003-09-25 David Carlton <carlton@kealia.com>
1194
1195 * c-exp.y: Include cp-support.h. Add qualified_type.
1196 (yylex): Delete nested type hack; add comments.
1197 * cp-namespace.c (cp_lookup_nested_type): New function.
1198 * cp-support.h: Declare cp_lookup_nested_type.
1199 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1200 instead of value_struct_elt_for_reference.
1201 * valops.c: Include cp-support.h.
1202 (value_aggregate_elt): New function.
1203 (value_namespace_elt): Ditto.
1204 (value_struct_elt_for_reference): Make static.
1205 * value.h: Delete declaration of value_struct_elt_for_reference;
1206 add declaration for value_aggregate_elt.
1207 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1208 (valops.o): Ditto.
1209
1210 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
1211
1212 * stack.c: Include "reggroups.h".
1213 (frame_info): Only display registers in all_reggroup.
1214 * Makefile.in (stack.o): Update dependencies.
1215
1216 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1217
1218 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1219 "add ip, sp #n" in the prologue.
1220 (arm_scan_prologue): Ditto.
1221
1222 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1223
1224 * MAINTAINERS (write after approval): Add myself.
1225
1226 2003-09-25 Andreas Schwab <schwab@suse.de>
1227
1228 * m68k-tdep.c: Include "dwarf2-frame.h".
1229 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1230 * Makefile.in (m68k-tdep.o): Update dependencies.
1231
1232 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
1233
1234 * sh-tdep.c (struct frame_extra_info): Remove.
1235 (struct sh_frame_cache): New structure.
1236 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1237 (GET_TARGET_REG): Ditto but target register.
1238 (GET_PUSHED_REG): Remove.
1239 (IS_MOV_ARG_TO_REG): New macro.
1240 (IS_MOV_ARG_TO_IND_R14): New macro.
1241 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1242 (IS_MOVW_PCREL_TO_REG): New macro.
1243 (IS_MOVL_PCREL_TO_REG): New macro.
1244 (IS_SUB_REG_FROM_SP): New macro.
1245 (IS_ARG_MOV): Remove.
1246 (IS_MOV_TO_R14): Remove.
1247 (IS_RESTORE_FP): New macro.
1248 (IS_RTS): New macro.
1249 (IS_LDS): New macro.
1250 (IS_MOV_FP_SP): New macro.
1251 (IS_ADD_REG_TO_FP): New macro.
1252 (IS_ADD_IMM_FP): New macro.
1253 (sh_skip_prologue_hard_way): Remove.
1254 (sh_saved_pc_after_call): Remove.
1255 (sh_frame_chain): Remove.
1256 (sh_find_callers_reg): Remove.
1257 (sh_nofp_frame_init_saved_regs): Remove.
1258 (sh_fp_frame_init_saved_regs): Remove.
1259 (sh_init_extra_frame_info): Remove.
1260 (sh_analyze_prologue): New function.
1261 (sh_skip_prologue): Remove deprecated code. Rely on new function
1262 sh_analyze_prologue when after_prologue fails.
1263 (sh_frame_saved_pc): Remove.
1264 (sh_alloc_frame_cache): New function.
1265 (sh_frame_cache): Ditto.
1266 (sh_frame_prev_register): Ditto.
1267 (sh_frame_this_id): Ditto.
1268 (sh_frame_unwind): New structure defining the heuristic frame
1269 sniffer interface.
1270 (sh_frame_sniffer): New function.
1271 (sh_unwind_sp): Ditto.
1272 (sh_unwind_pc): Ditto.
1273 (sh_unwind_dummy_id): Ditto.
1274 (sh_frame_base_address): Ditto.
1275 (sh_frame_base): New structure defining new frame base code.
1276 (sh_in_function_epilogue_p): New function.
1277 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1278 code and to call all new code instead. Initialize dwarf2 and
1279 heuristic frame sniffer.
1280
1281 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1282
1283 * parser-defs.h (struct exp_descriptor): New definition, containing
1284 language-specific info for printing, prefixifying, dumping, and
1285 evaluating expressions.
1286 (exp_descriptor_standard): Declare new variable.
1287 (print_subexp): Make global and declare here (from expprint.c).
1288 (dump_subexp): Ditto.
1289 (dump_subexp_body_standard): Declare.
1290 (operator_length_standard): Declare.
1291 (op_name_standard): Declare.
1292 (print_subexp): Declare.
1293 (print_subexp_standard): Declare.
1294
1295 * language.h (struct language_defn): Add la_exp_desc field to hold
1296 pointer to table for language-specific operators.
1297 Remove evaluate_exp field, which is now in struct exp_descriptor.
1298
1299 * parse.c (operator_length): Move most code to new
1300 operator_length_standard function. Use language-specific information.
1301 (operator_length_standard): New function taking most code from
1302 operator_length.
1303 (exp_descriptor_standard): New constant.
1304
1305 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
1306 and OP_EXTENDED_LAST.
1307
1308 * expprint.c (print_subexp): Use language-specific print_subexp.
1309 Make global; remove static declaration.
1310 Move most code to print_subexp_standard.
1311 (print_subexp_standard): New function, containing code formerly in
1312 print_subexp.
1313 (op_name): Add expression to argument signature.
1314 Use langauge-specific op_name.
1315 Move most code to op_name_standard.
1316 (op_name_standard): New function, containing code formerly in op_name.
1317 (dump_subexp): Use new version of op_name function.
1318 Use language-specific dump_subexp_body, and move most existing code to
1319 dump_subexp_body_standard.
1320 (dump_raw_expression): Use new op_name interface.
1321 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1322 (dump_subexp_body_standard): New function, containing code formerly
1323 in dump_subexp_body.
1324
1325 * language.c (unknown_language): Add default la_exp_desc field and
1326 remove evaluate_exp field.
1327 (auto_language): Ditto.
1328 (local_language): Ditto.
1329 * f-lang.c (f_language_defn): Ditto.
1330 * c-lang.c (c_language_defn): Ditto.
1331 (cplus_language_defn): Ditto.
1332 (asm_language_defn): Ditto.
1333 (minimal_language_defn): Ditto.
1334 * p-lang.c (pascal_language_defn): Ditto.
1335 * m2-lang.c (m2_language_defn): Ditto.
1336 * objc-lang.c (objc_language_defn): Ditto.
1337
1338 * jv-lang.c (exp_descriptor_java): New variable, containing
1339 Java-specific expression evaluator.
1340 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1341 field.
1342 * scm-lang.c (exp_descriptor_scm): New variable, containing
1343 Scheme-specific expression evaluator.
1344 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1345 field.
1346 * objc-lang.c (print_object_command): Take evaluate_exp from the
1347 la_exp_desc field.
1348
1349 * Makefile.in (eval.o): Add dependency on parser-defs.h.
1350
1351 * eval.c: Include parser-defs.h for the full declaration of
1352 la_exp_desc's type.
1353 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
1354
1355 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1356
1357 * parser-defs.h (operator_length): Declare.
1358
1359 * parse.c (length_of_subexp): Use operator_length to get operator
1360 lengths and arities for operators.
1361 Move most code to new operator_length function.
1362 (operator_length): New function absorbing most code from
1363 length_of_subexp.
1364 (prefixify_subexp): Remove large case and use operator_length instead.
1365 (parse_exp_1): Use renamings:
1366 dump_prefix_expression => dump_raw_expression and
1367 dump_postfix_expression => dump_prefix_expression.
1368
1369 * expression.h (dump_prefix_expression): Rename to ...
1370 (dump_raw_expression): New name.
1371 (dump_postfix_expression): Rename to ...
1372 (dump_prefix_expression): New name.
1373
1374 * expprint.c (dump_subexp): Make global. Add comment.
1375 Move most existing code to dump_subexp_body.
1376 (dump_subexp_body): New function.
1377 (dump_prefix_expression): Rename to dump_raw_expression.
1378 Remove attempt to print the expression via print_expression: it can't
1379 work before the expression is prefixified.
1380 (dump_raw_expression): Renamed from dump_prefix_expression.
1381 (dump_postfix_expression): Rename to dump_prefix_expression, since
1382 that's what it does.
1383 Remove 'note' parameter, since this routine must be used on
1384 prefixified expression.
1385 (dump_prefix_expression): Renamed from dump_postfix_expression.
1386
1387 2003-09-22 Jim Blandy <jimb@redhat.com>
1388
1389 * dwarf2read.c (read_array_type): When building the type for an
1390 array of unspecified length, make sure to choose the upper bound
1391 so that the array's total length comes out to be zero --- that's
1392 how we represent such arrays.
1393
1394 2003-09-22 Michael Chastain <mec@shout.net>
1395
1396 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1397
1398 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1399
1400 * top.c (quit_force): Fix indirect call to quit_target so
1401 a struct qt_args pointer is passed.
1402
1403 2003-09-22 Andrew Cagney <cagney@redhat.com>
1404
1405 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1406 * arch-utils.c (init_frame_pc_noop): Delete function.
1407 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1408 "init_frame_pc".
1409 * mips-tdep.c (mips_gdbarch_init): Ditto.
1410 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1411 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1412 declaration.
1413 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1414 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1415 declaration.
1416 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1417
1418 2003-09-22 Anthony Green <green@redhat.com>
1419
1420 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1421 declaration.
1422
1423 2003-09-20 Andrew Cagney <cagney@redhat.com>
1424
1425 * breakpoint.c: Eliminate ARGSUSED.
1426 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1427 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1428 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1429 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1430 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1431 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1432 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1433 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1434 * wince.c, remote-vx.c: Ditto.
1435
1436 * cli/cli-script.c: Remove "register" attributes.
1437 * config/pa/tm-hppa.h: Ditto.
1438 * cli/cli-decode.c: Ditto.
1439 * cli/cli-cmds.c: Ditto.
1440
1441 2003-09-19 Andrew Cagney <cagney@redhat.com>
1442
1443 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1444 DEPRECATED_NPC_REGNUM.
1445 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1446
1447 2003-09-19 Christopher Faylor <cgf@redhat.com>
1448
1449 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1450
1451 2003-09-19 Jim Blandy <jimb@redhat.com>
1452
1453 * macrotab.c (macro_include): Use the correct comparison to find
1454 the appropriate place for this inclusion in the list.
1455
1456 2003-09-19 Andrew Cagney <cagney@redhat.com>
1457
1458 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1459 (DEPRECATED_HPUX_TEXT_END): Define.
1460 (deprecated_hpux_text_end): Declare.
1461 (struct target_ops): Declare opaque.
1462 * hppah-nat.c (text_end): Make static.
1463 (deprecated_hpux_text_end): New function.
1464 * exec.c (text_end): Delete global variable.
1465 (NEED_TEXT_START_END): Do not define.
1466 (exec_file_attach): Replace code computing "text_end" code with
1467 call to DEPRECATED_HPUX_TEXT_END.
1468
1469 2003-09-19 Andrew Cagney <cagney@redhat.com>
1470
1471 * utils.c (align_up, align_down): New functions.
1472 * defs.h (align_up, align_down): Declare.
1473 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1474 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1475 and "align_down".
1476 (round_up, round_down): Delete functions.
1477 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1478 "align_down".
1479 (ROUND_DOWN, ROUND_UP): Delete macros.
1480 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1481 * h8300-tdep.c: Replace "round_up" and "round_down" with
1482 "align_up" and "align_down".
1483 (round_up, round_down): Delete macros.
1484 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1485 "align_down".
1486 (ROUND_UP, ROUND_DOWN): Delete macros.
1487
1488 2003-09-18 J. Brobecker <brobecker@gnat.com>
1489
1490 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1491 hard-coded constant. Use the proper machine name instead.
1492
1493 2003-09-17 Andrew Cagney <cagney@redhat.com>
1494
1495 * sparc-tdep.c (legacy_register_name): Delete function.
1496 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1497 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1498 * infcmd.c (gdb_register_name): Delete variable.
1499 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1500 REGISTER_NAME and "tm.h".
1501 * gdbarch.h, gdbarch.c: Regenerate.
1502 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1503 REGISTER_NAMES in comments.
1504 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1505 * m68klinux-nat.c (regmap): Ditto.
1506
1507 2003-09-17 Jim Blandy <jimb@redhat.com>
1508
1509 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1510
1511 2003-09-17 Andrew Cagney <cagney@redhat.com>
1512
1513 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1514 (ppcnbsd_init_abi): Set "use_struct_convention" to
1515 "ppcnbsd_use_struct_convention".
1516
1517 2003-09-17 Mark Kettenis <kettenis@gnu.org>
1518
1519 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1520 * gdbarch.h, gdbarch.c: Regenerate.
1521 (stabs_argument_has_addr): New architecture method.
1522 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1523 * arch-utils.c: Include "buildsym.h".
1524 (default_stabs_argument_has_addr): New function.
1525 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1526 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1527
1528 2003-09-17 Andrew Cagney <cagney@redhat.com>
1529
1530 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1531 * gdbarch.h, gdbarch.c: Regenerate.
1532 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1533 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1534 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1535 * sparcnbsd-tdep.c: Update.
1536
1537 2003-09-17 Andrew Cagney <cagney@redhat.com>
1538
1539 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1540 * gdbarch.h, gdbarch.c: Regenerate.
1541 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1542 * d10v-tdep.c, frame.c: Update.
1543 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1544 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1545 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1546 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1547 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1548 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1549 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1550 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1551 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1552 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1553 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1554 * config/pa/nm-hppah.h: Update.
1555
1556 2003-09-16 Andrew Cagney <cagney@redhat.com>
1557
1558 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1559 "use_struct_convention" to "ppc_linux_use_struct_convention".
1560 (ppc_linux_use_struct_convention): New function.
1561 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1562 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1563 "rs6000_use_struct_convention".
1564 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1565 declaration.
1566 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1567 Delete function.
1568
1569 2003-09-16 Andrew Cagney <cagney@redhat.com>
1570
1571 * buildsym.c: Remove more occurances of "register".
1572 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1573 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1574 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1575 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1576 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1577 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1578 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1579 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1580
1581 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
1582
1583 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1584 numbers to enumeration values.
1585 * sh-tdep.c: Accomodate above change.
1586 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1587 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1588 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1589 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1590 (IS_FPUSH): Rename from IS_FMOV.
1591 (sh_extract_struct_value_address): Remove useless comment.
1592 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1593 instead of own local values.
1594 (sh_dump_tdep): Remove.
1595 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1596 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1597
1598 2003-09-15 Andrew Cagney <cagney@redhat.com>
1599
1600 * doublest.c (convert_floatformat_to_doublest): No longer need to
1601 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1602
1603 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
1604
1605 * values.c (unpack_double): Call floatformat_is_valid.
1606
1607 2003-09-15 Mark Kettenis <kettenis@gnu.org>
1608
1609 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1610 ps_strings into a long.
1611
1612 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1613 _initialize_am64fbsd_nat.
1614
1615 2003-09-15 Kevin Buettner <kevinb@redhat.com>
1616
1617 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1618 associated with DW_AT_ranges attribute is out of bounds.
1619
1620 2003-09-15 David Lecomber <dsl@sources.redhat.com>
1621
1622 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1623
1624 2003-09-14 Michael Chastain <mec@shout.net>
1625
1626 * config/m68k/nm-apollo68v.h: Delete.
1627 * config/m68k/xm-apollo68v.h: Delete.
1628
1629 2003-09-14 Andrew Cagney <cagney@redhat.com>
1630
1631 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1632 * dcache.c: Update copyrights and descriptions.
1633 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1634
1635 2003-09-14 Andrew Cagney <cagney@redhat.com>
1636
1637 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1638 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1639
1640 2003-09-14 Andrew Cagney <cagney@redhat.com>
1641
1642 * alpha-nat.c: Remove some occurances of "register".
1643 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1644 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1645 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1646 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1647 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1648 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1649 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1650 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1651 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1652 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1653 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1654 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1655 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1656 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1657 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1658 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1659 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1660 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1661 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1662 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1663 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1664 * values.c, vax-tdep.c, xcoffread.c: Ditto.
1665
1666 2003-09-13 Andrew Cagney <cagney@redhat.com>
1667
1668 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1669 * ppc-tdep.h (struct regcache): Declare opaque.
1670 * objfiles.h (struct objfile_data): Declare opaque.
1671 * cp-support.h (struct objfile): Declare opaque.
1672 * linux-nat.h (target_waitstatus): Declare opaque.
1673
1674 2003-09-14 Mark Kettenis <kettenis@gnu.org>
1675
1676 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1677 (stabs_argument_has_addr): New architecture method.
1678 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1679 * arch-utils.c: Include "buildsym.h".
1680 (default_stabs_argument_has_addr): New function.
1681 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1682 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1683
1684 * cris-tdep.c (cris_gdbarch_init): Set
1685 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1686 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1687 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1688 * mips-tdep.c (mips_gdbarch_init): Likewise.
1689 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1690 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1691
1692 2003-09-13 Andrew Cagney <cagney@redhat.com>
1693
1694 * values.c (using_struct_return): Delete "function" and "funcaddr"
1695 parameters.
1696 * value.h (using_struct_return): Update declaration.
1697 * infcmd.c (finish_command_continuation): Update.
1698 (finish_command): Update.
1699 * infcall.c (call_function_by_hand): Update.
1700 * eval.c (evaluate_subexp_standard): Update.
1701
1702 2003-09-13 Christopher Faylor <cgf@redhat.com>
1703
1704 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1705 SSE registers since gdb will not operate correctly without this.
1706 Restore include file ordering munged in previous change.
1707 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1708
1709 2003-09-13 Mark Kettenis <kettenis@gnu.org>
1710
1711 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1712 REG_STRUCT_HAS_ADDR.
1713 * gdbarch.c, gdbarch.h: Updated.
1714 * infcall.c (call_function_by_hand): Update.
1715 * stabsread.c (define_symbol): Updated.
1716
1717 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1718
1719 2003-09-12 Christopher Faylor <cgf@redhat.com>
1720
1721 * win32-nat.c: Reorganize so that defines used by target headers are
1722 actually defined by the system headers.
1723 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1724 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1725
1726 2003-09-12 Jim Blandy <jimb@redhat.com>
1727
1728 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1729 the file has no .data, .bss, or .rodata sections. Instead wait
1730 until we see a variable alleged to live in one of those sections.
1731
1732 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1733 .bss section, presume that any variables we find live in the
1734 .rodata section.
1735
1736 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1737 offsets for global and static variables.
1738
1739 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1740 symbol types are, by definition, in the .data section, so it is
1741 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1742 If there is no .data section, there should be no N_DATA or N_DATA
1743 | N_EXT symbols.
1744
1745 2003-09-12 Mark Kettenis <kettenis@gnu.org>
1746
1747 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1748 (amd64fbsd_sigcontext_addr): Rewrite.
1749 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1750 with correct values.
1751 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1752 (amd64fbsd_init_abi): Fix typo.
1753
1754 2003-09-12 Andrew Cagney <cagney@redhat.com>
1755
1756 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1757 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1758
1759 2003-09-12 Andrew Cagney <cagney@redhat.com>
1760
1761 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1762 "entry_file_highpc". Update comments.
1763 * defs.h (deprecated_inside_entry_file): Rename
1764 "inside_entry_file".
1765 * blockframe.c (deprecated_inside_entry_file): Rename
1766 "inside_entry_file".
1767 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1768 * vax-tdep.c (vax_frame_chain): Update.
1769 * sh64-tdep.c (sh64_frame_chain): Update.
1770 * sh-tdep.c (sh_frame_chain): Update.
1771 * rs6000-tdep.c (rs6000_frame_chain): Update.
1772 * ns32k-tdep.c (ns32k_frame_chain): Update.
1773 * mips-tdep.c (mips_frame_chain): Update.
1774 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1775 * m32r-tdep.c (m32r_frame_this_id): Update.
1776 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1777 * frv-tdep.c (frv_frame_this_id): Update.
1778 * d10v-tdep.c (d10v_frame_this_id): Update.
1779 * cris-tdep.c (cris_frame_chain): Update.
1780 * blockframe.c (legacy_frame_chain_valid): Update.
1781 * avr-tdep.c (avr_frame_this_id): Update.
1782 * arm-tdep.c (arm_prologue_this_id): Update.
1783 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1784 * objfiles.c (objfile_relocate): Update.
1785 * mipsread.c (mipscoff_symfile_read): Update.
1786 (mipscoff_symfile_read): Update.
1787 * mdebugread.c (parse_partial_symbols): Update.
1788 * dwarfread.c (read_file_scope): Update.
1789 * dwarf2read.c (read_file_scope): Update.
1790 * dbxread.c (read_dbx_symtab): Update.
1791 (read_dbx_symtab): Update.
1792 * coffread.c (complete_symtab): Update.
1793
1794 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1795
1796 * top.c (quit_target): New static helper function.
1797 (quit_force): Moved code to quit_target(). Call quit_target()
1798 via catch_errors() to catch errors during quit.
1799
1800 2003-09-11 David Carlton <carlton@kealia.com>
1801
1802 * buildsym.c (finish_block): Use allocate_block to allocate the
1803 block.
1804 * mdebugread.c (new_block): Add FIXME.
1805
1806 2003-09-11 David Carlton <carlton@kealia.com>
1807
1808 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1809 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1810 (recursive_dump_type): Ditto.
1811 * printcmd.c (print_formatted): Ditto.
1812 * typeprint.c (print_type_scalar): Ditto.
1813 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1814 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1815 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1816 maint_cplus_cmd_list.
1817 * cp-support.c: Make maint_cplus_cmd_list extern.
1818 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1819 command.h.
1820 (lookup_symbol_file): Look in possible namespace blocks when
1821 appropriate.
1822 (initialize_namespace_symtab): New.
1823 (get_possible_namespace_block, free_namespace_block)
1824 (check_possible_namespace_symbols)
1825 (check_possible_namespace_symbols_loop)
1826 (check_one_possible_namespace_symbol)
1827 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1828 (_initialize_cp_namespace): Ditto.
1829 * block.h: Declare allocate_block.
1830 * block.c (allocate_block): New.
1831 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1832 allocate_block.
1833 * symfile.h: Update declaration of add_psymbol_to_list.
1834 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1835 question.
1836 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1837 scan_partial_symbols_call.
1838 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1839 helper functions.
1840 (add_partial_symbol): If necessary, scan mangled names for names
1841 of namespaces.
1842 (add_partial_namespace): Add NAMESPACE argument; generate partial
1843 symbols associated to namespaces.
1844 (add_partial_enumeration): Add NAMESPACE argument.
1845 (new_symbol): Allow namespace syms.
1846 (read_namespace): Generate namespace syms.
1847 * objfiles.h: Add opaque declaration of struct symtab.
1848 (struct objfile): Add cp_namespace_symtab member.
1849 * objfiles.c (allocate_objfile): Set
1850 objfile->cp_namespace_symtab.
1851 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1852 dictionary_h, command_h.
1853
1854 2003-09-11 Andrew Cagney <cagney@redhat.com>
1855
1856 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1857 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1858 near the function's end.
1859 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1860 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1861 regcache_raw_write_signed to set SP_REGNUM.
1862
1863 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
1864
1865 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1866 orig_addrs is set up properly.
1867
1868 2003-09-11 Andrew Cagney <cagney@redhat.com>
1869
1870 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1871 * gdbarch.h, gdbarch.c: Re-generate.
1872 * infcall.c (call_function_by_hand): Update.
1873 * hppa-tdep.c (hppa_push_arguments): Update.
1874 * ada-lang.c (place_on_stack): Update.
1875 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1876 * sparc-tdep.c (sparc_gdbarch_init): Update.
1877 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1878 * hppa-tdep.c (hppa_gdbarch_init): Update.
1879 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1880 stack_align.
1881
1882 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
1883
1884 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1885 register do need a frame.
1886
1887 2003-09-11 Andrew Cagney <cagney@redhat.com>
1888
1889 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1890 buildable since GDB 5.0.
1891 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1892 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1893 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1894 * irix4-nat.c: Delete file.
1895 * config/mips/irix4.mh: Delete file.
1896 * config/mips/irix3.mh: Delete file.
1897 * config/mips/irix3.mt: Delete file.
1898 * config/mips/tm-irix3.h: Delete file.
1899 * config/mips/nm-irix3.h: Delete file.
1900 * config/mips/xm-irix3.h: Delete file.
1901 * config/mips/nm-irix4.h: Delete file.
1902 * config/mips/xm-irix4.h: Delete file.
1903 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1904
1905 2003-09-10 J. Brobecker <brobecker@gnat.com>
1906
1907 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1908 * Makefile.in (hppa-tdep.o): Update dependencies.
1909
1910 2003-09-10 James E Wilson <wilson@specifixinc.com>
1911
1912 * MAINTAINERS: Change my e-mail address. Move to paper trail
1913 section.
1914
1915 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1916
1917 * MAINTAINERS (frv): New ISA entry.
1918
1919 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1920
1921 * frv-tdep.c (dis-asm.h): Include.
1922 * Makefile.in (frv-tdep.o): Update dependencies.
1923
1924 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1925
1926 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1927 Fix typo for high range of floating registers.
1928
1929 2003-09-09 David Carlton <carlton@kealia.com>
1930
1931 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1932 highpc initialization here out of scan_partial_symbols.
1933 (scan_partial_symbols): Restructure into a recursive version,
1934 calling add_partial_namespace and add_partial_enumeration when
1935 appropriate.
1936 (add_partial_namespace): New.
1937 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1938
1939 2003-09-09 Andrew Cagney <cagney@redhat.com>
1940
1941 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1942 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1943 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1944 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1945
1946 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1947 (rs6000_push_dummy_call): Set the "TOC" register.
1948
1949 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1950 methods "max_register_raw_size", "max_register_virtual_size" or
1951 "register_virtual_size".
1952
1953 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1954
1955 * MAINTAINERS: Update my e-mail address.
1956
1957 2003-09-09 Andrew Cagney <cagney@redhat.com>
1958
1959 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1960 (rs6000_push_dummy_call): Store the struct return address.
1961 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1962
1963 2003-09-09 Andrew Cagney <cagney@redhat.com>
1964
1965 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1966 "ppc_sysv_abi_push_arguments".
1967 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1968 "ppc_sysv_abi_push_arguments".
1969 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1970 instead of "push_arguments".
1971 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1972
1973 2003-09-09 Andrew Cagney <cagney@redhat.com>
1974
1975 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1976 instead of CALL_DUMMY_ADDRESS.
1977
1978 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1979
1980 * p-lang.c: Eliminate "register".
1981 * c-lang.c: Ditto.
1982 * expprint.c: Ditto.
1983 * f-lang.c: Ditto.
1984 * jv-lang.c: Ditto.
1985 * language.c: Ditto.
1986 * m2-lang.c: Ditto.
1987 * parse.c: Ditto.
1988 * scm-lang.c: Ditto.
1989 * objc-lang.c: Ditto.
1990
1991 2003-09-09 Nick Clifton <nickc@redhat.com>
1992
1993 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1994
1995 2003-09-04 Andrew Cagney <cagney@redhat.com>
1996
1997 * avr-tdep.c: Include "dis-asm.h".
1998 * cris-tdep.c: Include "dis-asm.h".
1999 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2000 instead of corresponding typedef.
2001 * h8300-tdep.c: Include "dis-asm.h".
2002 * ia64-tdep.c: Include "dis-asm.h".
2003 * i386-tdep.c: Include "dis-asm.h".
2004 (i386_print_insn): Use "struct disassemble_info" instead of
2005 corresponding typedef.
2006 * m68k-tdep.c: Include "dis-asm.h".
2007 * mcore-tdep.c: Include "dis-asm.h".
2008 * mips-tdep.c: Include "dis-asm.h".
2009 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2010 instead of corresponding typedef.
2011 * ns32k-tdep.c: Include "dis-asm.h".
2012 * s390-tdep.c: Include "dis-asm.h".
2013 * sparc-tdep.c: Include "dis-asm.h".
2014 * vax-tdep.c: Include "dis-asm.h".
2015 * v850-tdep.c: Include "dis-asm.h".
2016 * mn10300-tdep.c: Include "dis-asm.h".
2017 * rs6000-tdep.c: Include "dis-asm.h".
2018 * xstormy16-tdep.c: Include "dis-asm.h".
2019 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2020 print_insn_xstormy16.
2021 * Makefile.in (v850-tdep.o): Update dependencies.
2022 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2023 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2024 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2025 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2026 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2027 (gdbarch_h): Remove $(dis_asm_h).
2028 * disasm.c: Include "dis-asm.h".
2029 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2030 corresponding typedef.
2031 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2032 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2033 * gdbarch.sh: Do not include "dis-asm.h".
2034 (struct disassemble_info): Declare opaque.
2035 (TARGET_PRINT_INSN): Update declaration.
2036 * gdbarch.h, gdbarch.c: Re-generate.
2037
2038 2003-09-08 Andrew Cagney <cagney@redhat.com>
2039
2040 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2041 CALL_DUMMY_ADDRESS, change to a predicate.
2042 * gdbarch.h, gdbarch.c: Re-generate.
2043 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2044 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2045 * infcall.c (call_function_by_hand): Ditto.
2046 * sparc-tdep.c (sparc_push_return_address): Ditto.
2047 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2048 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2049 CALL_DUMMY_ADDRESS with entry_point_address.
2050 * v850-tdep.c (v850_push_return_address): Ditto.
2051 * s390-tdep.c (s390_push_return_address): Ditto.
2052 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2053 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2054 * mcore-tdep.c (mcore_push_return_address): Ditto.
2055 * cris-tdep.c (cris_push_return_address): Ditto.
2056 * arm-tdep.c (arm_push_return_address): Ditto.
2057
2058 2003-09-08 Andrew Cagney <cagney@redhat.com>
2059
2060 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2061 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2062 and REG_UNMODIFIED to REG_SAME_VALUE.
2063 (execute_cfa_program): Update.
2064 (dwarf2_frame_cache): Update. Initialize table to
2065 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2066 location.
2067 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2068
2069 2003-09-08 Andrew Cagney <cagney@redhat.com>
2070
2071 * gnu-nat.c: Remove "inline" function attribute.
2072 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2073
2074 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2075
2076 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2077 target.
2078
2079 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2080
2081 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2082 (frame_extra_info): Rename this struct to frv_unwind_cache.
2083 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2084 Add fields ``prev_sp'' and ``base''.
2085 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2086 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2087 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2088 Delete.
2089 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2090 Revise all callers. Fill in the unwind cache argument and make
2091 other adjustments to account for new frame mechanisms.
2092 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2093 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2094 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2095 (frv_frame_unwind, frv_frame_base): New structs.
2096 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2097 additional arguments expected by this method and adjust function
2098 body accordingly.
2099 (frv_gdbarch_init): Remove calls to the following functions:
2100 set_gdbarch_deprecated_init_frame_pc(),
2101 set_gdbarch_deprecated_saved_pc_after_call(),
2102 set_gdbarch_deprecated_frame_chain(),
2103 set_gdbarch_deprecated_frame_saved_pc(),
2104 set_gdbarch_deprecated_frame_init_saved_regs(),
2105 set_gdbarch_deprecated_push_arguments(),
2106 set_gdbarch_deprecated_push_return_address(),
2107 set_gdbarch_deprecated_pop_frame(),
2108 set_gdbarch_deprecated_call_dummy_words(),
2109 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2110 set_gdbarch_deprecated_init_extra_frame_info(),
2111 set_gdbarch_deprecated_dummy_write_sp(), and
2112 set_gdbarch_deprecated_pc_in_call_dummy().
2113 Add calls to the following functions:
2114 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2115 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2116 frame_base_set_default().
2117 * Makefile.in (frv-tdep.o): Update dependencies.
2118
2119 2003-09-09 Mark Kettenis <kettenis@gnu.org>
2120
2121 * dwarf2-frame.c (read_encoded_value): Add support for
2122 DW_EH_PE_aligned encoding.
2123
2124 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2125
2126 * infrun.c (normal_stop): Don't print a message if the inferior
2127 has exited.
2128
2129 2003-09-08 Jim Blandy <jimb@redhat.com>
2130
2131 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2132 * dbxread.c: #include "gdb_assert.h".
2133 (read_dbx_symtab): If the objfile has no .data section, use the
2134 section index for the .bss section instead.
2135
2136 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2137
2138 * frame.c (deprecated_safe_get_selected_frame): New function.
2139 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2140 * findvar.c (read_var_value): Call it.
2141
2142 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
2143
2144 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2145 (sh64-tdep.o): Add dependencies.
2146 * configure.tgt: Add FIXME to sh-*-linux*.
2147 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2148 (sh_gdbarch_init): Always set correct sh_show_regs function
2149 pointer. Call sh64_gdbarch_init() if machine type is sh5.
2150 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2151 * sh64-tdep.c: New file, containing all sh64 related code from
2152 sh-tdep.c.
2153 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2154 * config/sh/linux.mt (TDEPFILES): Ditto.
2155 * config/sh/nbsd.mt (TDEPFILES): Ditto.
2156 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2157 * config/sh/wince.mt (TDEPFILES): Ditto.
2158
2159 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2160
2161 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2162 (stop_wait_callback): Handle !lp->signalled also.
2163 (lin_lwp_has_pending, flush_callback): New functions.
2164 (lin_lwp_wait): Call flush_callback.
2165 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2166 (linux_proc_pending_signals): New function.
2167 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2168
2169 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2170
2171 From Nick Kelsey <nickk@ubicom.com>:
2172 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2173 when the stop PC is at the beginning of a function also.
2174
2175 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
2176
2177 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2178 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2179
2180 2003-09-06 Mark Kettenis <kettenis@gnu.org>
2181
2182 * sol-thread.c: Include "gdb_string.h".
2183
2184 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2185
2186 * gcore.c: Reorder include files in alphabetical order. Include
2187 "gdb_assert.h". Various coding style fixes.
2188 (derive_stack_segment, derive_heap_segment): Replace check for
2189 non-null BOTTOM and TOP with gdb_assert.
2190 (derive_heap_segment): Replace check for successful creation of
2191 ZERO with gdb_assert.
2192 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2193
2194 2003-09-04 Andrew Cagney <cagney@redhat.com>
2195
2196 * thread-db.c (verbose_dlsym): New function.
2197 (thread_db_load): Use verbose_dlsym
2198 (thread_db_new_objfile): Print that libthread_db was loaded, and
2199 that thread debugging was enabled.
2200
2201 2003-09-04 Andrew Cagney <cagney@redhat.com>
2202
2203 * configure.tgt: Add "mips64*-*-*" target. Delete
2204 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2205 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2206 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2207 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2208 mips*-sony-*, and mips64*-*-elf* targets.
2209 * config/mips/embedl.mt: Delete file.
2210 * config/mips/embedl64.mt: Delete file.
2211 * config/mips/mips.mt: Delete file.
2212 * config/mips/mips64.mt: Delete file.
2213 * config/mips/tm-embed.h: Delete file.
2214 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2215 * config/mips/embed64.mt: Delete out-of-date comment.
2216
2217 2003-09-04 Andrew Cagney <cagney@redhat.com>
2218
2219 * hppa-tdep.c (hppa_gdbarch_init): Set
2220 "have_nonsteppable_watchpoint".
2221 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2222 * mips-tdep.c (mips_dump_tdep): Do not print
2223 HAVE_NONSTEPPABLE_WATCHPOINT.
2224 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2225 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2226 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2227 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2228
2229 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2230
2231 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2232 unused code. Add comment.
2233
2234 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2235
2236 * breakpoint.c (watchpoint_check): Check for pc being in an
2237 epilogue if watchpoint frame couldn't be found.
2238
2239 2003-09-04 Andrew Cagney <cagney@redhat.com>
2240
2241 * Makefile.in: Re-generate all dependencies.
2242
2243 2003-09-03 Andrew Cagney <cagney@redhat.com>
2244
2245 * arch-utils.h (legacy_print_insn): Delete declaration.
2246 * arch-utils.c (legacy_print_insn): Delete function.
2247 * disasm.c (deprecated_tm_print_insn_info): Delete.
2248 (_initialize_disasm): Delete function, contained code initializing
2249 deprecated_tm_print_insn_info.
2250 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2251 (deprecated_tm_print_insn_info): Delete.
2252 (TARGET_PRINT_INSN): Do not provide a default.
2253 * gdbarch.h, gdbarch.c: Re-generate.
2254
2255 2003-09-03 Andrew Cagney <cagney@redhat.com>
2256
2257 * disasm.c (fprintf_disasm): New function.
2258 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2259 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2260 reverts 2003-08-14 change.
2261 (_initialize_disasm): Call "init_disassemble_info", instead of
2262 INIT_DISASSEMBLE_INFO_NO_ARCH.
2263
2264 2003-09-03 Michael Snyder <msnyder@redhat.com>
2265
2266 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2267
2268 2003-09-03 Andrew Cagney <cagney@redhat.com>
2269
2270 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2271 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2272 * symfile.c (syms_from_objfile): Update.
2273 (reread_symbols): `Update
2274 * exec.c (exec_file_attach): Update.
2275 (exec_file_attach): Update.
2276 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2277 2003-08-29 change.
2278 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2279
2280 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2281
2282 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2283 trad-frame.h.
2284 (arm_get_cache): Delete macro.
2285 (struct arm_prologue_cache): Update comments. Make saved_regs into
2286 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2287 to prev_sp.
2288 (thumb_scan_prologue): Update for cache changes. Don't call
2289 DEPRECATED_PC_IN_CALL_DUMMY.
2290 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2291 argument and use it in desperation search for our prologue. Do not
2292 search past the specified PC.
2293 (arm_make_prologue_cache): Simplify.
2294
2295 (arm_prologue_this_id, arm_prologue_prev_register)
2296 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2297 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2298 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2299 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2300 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2301
2302 (arm_frame_chain_valid, arm_find_callers_reg)
2303 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2304 (arm_pop_frame): Delete obsolete methods.
2305 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2306
2307 (arm_gdbarch_init): Update for new frame methods. Register prologue
2308 and sigtramp unwinders. Set the default frame base method.
2309
2310 * Makefile.in (arm-tdep.o): Update dependencies.
2311 * varobj.c (find_frame_addr_in_frame_chain): Call
2312 get_frame_base_address.
2313 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2314
2315 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2316
2317 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2318 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2319 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2320 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2321 Take NEXT_FRAME and CACHE arguments. Call
2322 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2323 Set unwound_pc in CACHE instead of modifying the frame argument.
2324 Don't bother checking the frame type when looking for sigtramp
2325 frames.
2326 (arm_make_prologue_cache, arm_frame_chain)
2327 (arm_init_extra_frame_info): New functions.
2328
2329 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2330
2331 * arm-tdep.c (arm_get_cache): Define.
2332 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2333 unwound_sp, unwound_pc, and saved_regs.
2334 (thumb_scan_prologue): Take a cache instead of the frame.
2335 (arm_scan_prologue): Likewise.
2336 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2337 instead of a temporary frame.
2338 (arm_init_extra_frame_info): Allocate and use a cache.
2339 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2340
2341 2003-09-03 Andrew Cagney <cagney@redhat.com>
2342
2343 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2344 * config/mips/wince.mt (TM_CLIBS): Ditto.
2345 * config/sh/wince.mt (TM_CLIBS): Ditto.
2346 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2347 * config/sparc/sp64.mt (CC): Delete.
2348
2349 2003-09-03 Andrew Cagney <cagney@redhat.com>
2350
2351 * defs.h: Do not include "arch-utils.h".
2352 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2353 GDB_MULTI_ARCH_PURE.
2354 * configure.in (GDB_MULTI_ARCH): Do not define.
2355 * configure, config.in: Regenerate.
2356 * configure.tgt: Do not set variable "gdb_multi_arch".
2357 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2358 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2359 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2360 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2361 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2362 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2363 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2364 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2365 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2366 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2367 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2368 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2369 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2370 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2371 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2372 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2373 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2374 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
2375
2376 2003-08-30 Michael Chastain <mec@shout.net>
2377
2378 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2379 * config/m68k/nm-hp300hpux.h: Delete.
2380 * config/m68k/tm-hp300hpux.h: Delete.
2381 * config/m68k/xm-hp300hpux.h: Delete.
2382 * config/m68k/xm-hp300bsd.h: Delete.
2383 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2384 tm-hp300hpux.h, xm-hp300hpux.h.
2385 * somsolib.c: Remove comment about hp300 shared libraries.
2386
2387 2003-08-31 Mark Kettenis <kettenis@gnu.org>
2388
2389 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2390 Only define PTRACE_GET_THREAD_AREA is not already defined.
2391 Various style fixes in code and comments and some additional
2392 spelling fixes in comments. Move after functions dealing with
2393 debug registers.
2394 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2395 Fix coding-style.
2396
2397 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2398 frame_unwind_register_unsigned instead of
2399 frame_unwind_unsigned_register.
2400
2401 2003-08-30 Mark Kettenis <kettenis@gnu.org>
2402
2403 * configure.in: Search for gethostbyname in libnsl.
2404 * configure: Regenerated.
2405
2406 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2407
2408 * configure.in: Remove redundant AC_MSG_RESULT in check for
2409 uintptr_t in stdint.h.
2410 * configure: Regenerated.
2411
2412 * amd64-nat.h (struct regcache): Add opaque declaration.
2413
2414 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2415 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2416 Change "register array" to "register cache" in comments.
2417 (x86_64_linux_gregset64_reg_offset): New variable.
2418 (GETREGS_SUPPLIES): Remove macro.
2419 (supply_gregset): Call amd64_supply_native_gregset instead of
2420 x86_64_linux_supply_gregset.
2421 (fill_gregset): Rename `regno' to `regnum'. Call
2422 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2423 (store_regs): Rename `regno' to `regnum'.
2424 (store_fpregs): Rename `regno' to `regnum'.
2425 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2426 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2427 Reorganize function a bit.
2428 (store_inferior_registers): Rename `regno' to `regnum'. Use
2429 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2430 Reorganize function a bit.
2431 (_initialize_x86_64_linux_nat): New function.
2432 * config/i386/x86-64linux.mh.
2433
2434 2003-08-29 Andrew Cagney <cagney@redhat.com>
2435
2436 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2437 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2438 (target_remove_watchpoint): Delete macro.
2439 (target_insert_watchpoint): Delete macro.
2440 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2441 (remote_mips_stopped_by_watchpoint): Delete declaration.
2442 (remote_mips_remove_watchpoint): Delete declaration.
2443 (remote_mips_set_watchpoint): Delete declaration.
2444 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2445 * remote-mips.c (_initialize_remote_mips): Set
2446 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2447 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2448 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2449 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2450 (mips_stopped_by_watchpoint): Rename
2451 remote_mips_stopped_by_watchpoint.
2452 (mips_can_hardware_watchpoint): Rename
2453 remote_mips_can_use_hardware_watchpoint, update function
2454 signature.
2455
2456 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2457
2458 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2459 USER_DS. We haven't given them a register number yet.
2460
2461 * amd64-nat.h: New file.
2462 * amd64-nat.c: New file.
2463 * amd64fbsd-nat.c: Include "amd64-nat.h".
2464 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2465 (amd64fbsd32_r_reg_offset): New variable.
2466 (supply_gregset): Simply call amd64_supply_native_gregset.
2467 (fill_gregset): Rename `regno' to `regnum'. Simply call
2468 amd64_collect_native_gregset.
2469 (fill_fpregset): Rename `regno' to `regnum'.
2470 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2471 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2472 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2473 `fpregset_t'. Call amd64_supply_native_gregset instead of
2474 supply_gregset. Call x86_64_supply_fxsave instead of
2475 supply_fpregset.
2476 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2477 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2478 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2479 `fpregset_t'. Call amd64_collect_native_gregset instead of
2480 fill_gregset. Call x86_64_collect_fxsave instead of
2481 fill_fpregset.
2482 (_initialize_am64fbsd_nat): Initialize
2483 amd64_native_gregset32_reg_offset and
2484 amd64_native_gregset64_reg_offset.
2485 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2486
2487 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2488 null pointer. Fix typo in comment.
2489
2490 * regcache.c (supply_register): Reimplement to call
2491 regcache_raw_supply.
2492 (regcache_collect): Reimplement by calling regcache_raw_collect.
2493
2494 2003-08-28 Mark Kettenis <kettenis@gnu.org>
2495
2496 * regcache.c (register_buffer): Consitify first argument.
2497 (regcache_raw_supply, regcache_raw_collect): New
2498 functions.
2499
2500 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2501
2502 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2503 by Nathan J. Williams.
2504
2505 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2506
2507 * lin-lwp.c (wait_lwp): New function, copied from
2508 stop_wait_callback. Clean up.
2509 (stop_wait_callback): Use wait_lwp.
2510
2511 2003-08-28 Andrew Cagney <cagney@redhat.com>
2512
2513 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2514 flavour and disassembler options.
2515 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2516 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2517 deprecated_tm_print_insn_info.
2518
2519 2003-08-27 Andrew Cagney <cagney@redhat.com>
2520
2521 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2522 Use target_read_memory.
2523 (s390_get_frame_info): Update. Do not reference
2524 deprecated_tm_print_insn_info.
2525 (s390_check_function_end, s390_is_sigreturn): Ditto.
2526
2527 2003-08-27 Andrew Cagney <cagney@redhat.com>
2528
2529 * Makefile.in (cris-tdep.o): Update dependencies.
2530 * cris-tdep.c: Include "gdb_assert.h".
2531 (cris_gdbarch_init): Set print_insn.
2532 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2533 (cris_delayed_get_disassembler): Simplify, directly call the
2534 disassembler returned by cris_get_disassembler.
2535 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2536 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2537 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2538 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2539 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2540 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2541 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2542 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2543 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2544 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2545 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2546 (gdb_print_insn_sparc): Delete function.
2547 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2548 deprecated_tm_print_insn_info.
2549 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2550 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2551 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2552 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2553 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2554 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2555 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2556 (s390_gdbarch_init): Set print_insn.
2557
2558 2003-08-27 Andrew Cagney <cagney@redhat.com>
2559
2560 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2561 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2562 * infcall.c (call_function_by_hand): Convert the entry point
2563 address into a code address.
2564
2565 2003-08-27 Andrew Cagney <cagney@redhat.com>
2566
2567 * dsrec.c: Include "gdb_string.h".
2568 * Makefile.in (dsrec.o): Update dependencies.
2569
2570 2003-08-27 Michael Chastain <mec@shout.net>
2571
2572 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2573
2574 2003-08-27 Andrew Cagney <cagney@redhat.com>
2575
2576 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2577 (alpha_osf1_init_abi): Do not set call_dummy_address.
2578
2579 2003-08-27 David Carlton <carlton@kealia.com>
2580
2581 From Randolph Chung <tausq@debian.org>:
2582 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2583 compiles with -Wformat-nonliteral -Werror.
2584
2585 2003-08-26 Jim Blandy <jimb@redhat.com>
2586
2587 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2588 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2589 bfd_lookup_symbol, since we only want symbols in code sections.
2590 (look_for_base): Pass zero as the SECT_FLAGS argument to
2591 bfd_lookup_symbol, since we're not concerned about which section
2592 the symbol is in.
2593
2594 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2595
2596 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
2597 we are frameless or the return address register is already known.
2598
2599 2003-08-26 Andrew Cagney <cagney@redhat.com>
2600
2601 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2602 in size. Add comments.
2603
2604 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2605
2606 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
2607 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
2608
2609 2003-08-26 Jason Merrill <jason@redhat.com>
2610
2611 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2612 case out of #ifdef MIPS block.
2613
2614 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
2615
2616 PR java/1322
2617 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2618 available before calling SECT_OFF_TEXT.
2619 * PROBLEMS: Remove description of java/1322.
2620
2621 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2622
2623 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
2624 bof, and nat0-nat127 as pseudo-registers.
2625 (ia64_frame_cache): New struct used to cache frame info.
2626 (ia64_register_reggroup_p): New routine used to override default
2627 register grouping so registers without names are still saved and
2628 restored.
2629 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
2630 pseudo values.
2631 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2632 (ia64_pseudo_register_write): New routine to write pseudo-registers.
2633 (ia64_alloc_frame_cache): New routine to create a new
2634 ia64_frame_cache.
2635 (examine_prologue): Change prototype to add next_frame pointer.
2636 Assume frameless until otherwise proven. Verify that the cfm for
2637 current frame matches the cfm that should occur for the prologues
2638 alloc insn and if equal, mark as not frameless. At end of routine,
2639 if not frameless, calculate registers for the previous frame and store
2640 in the cache, if a cache is provided.
2641 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2642 and pass 0 for next_frame.
2643 (ia64_store_return_value): Change to use convert_typed_floating()
2644 instead of calling ia64_convert_to_raw().
2645 (ia64_extract_return_value): Change to use convert_typed_floating()
2646 instead of calling ia64_convert_to_virtual().
2647 (ia64_frame_cache): New routine to support new frame model.
2648 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2649 (ia64_frame_sniffer): Ditto.
2650 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2651 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2652 (ia64_sigtramp_frame_prev_register): Ditto.
2653 (ia64_sigtramp_frame_sniffer): Ditto.
2654 (ia64_frame_base_address): Ditto.
2655 (ia64_extract_struct_value_address): Change to issue error message.
2656 (ia64_frame_align): New routine to align sp.
2657 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2658 (ia64_push_arguments): Removed. Logic moved to
2659 ia64_push_dummy_call().
2660 (ia64_push_return_address): Ditto.
2661 (ia64_unwind_dummy_id): New function.
2662 (ia64_unwind_pc): Ditto.
2663 (ia64_convert_register_p): Ditto.
2664 (ia64_register_to_value): Ditto.
2665 (ia64_value_to_register): Ditto.
2666 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2667 (ia64_register_byte, ia64_register_raw_size): Ditto.
2668 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2669 (ia64_saved_pc_after_call): Ditto.
2670 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2671 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2672 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2673 (ia64_register_convert_to_raw): Ditto.
2674 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2675 (ia64_init_extra_frame_info): Ditto.
2676 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2677 (ia64_gdbarch_init): Remove registering of deprecated functions that
2678 are no longer used. Add registration of new gdbarch functions.
2679 Remove registering deprecated_write_sp. Replace
2680 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2681 Delete set_gdbarch_deprecated_register_convertible(),
2682 set_gdbarch_deprecated_register_convert_to_virtual(), and
2683 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2684 set_gdbarch_deprecated_register_size(),
2685 set_gdbarch_deprecated_register_bytes(),
2686 set_gdbarch_pcregnum(),
2687 set_gdbarch_deprecated_register_byte(),
2688 set_gdbarch_deprecated_register_raw_size(),
2689 set_gdbarch_deprecated_max_register_raw_size(),
2690 set_gdbarch_deprecated_register_virtual_size(),
2691 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2692 Replace set_gdbarch_deprecated_extract_return_value() with
2693 set_gdbarch_extract_return_value(). Remove calls to:
2694 set_gdbarch_deprecated_saved_pc_after_call();
2695 set_gdbarch_deprecated_frame_chain(),
2696 set_gdbarch_deprecated_frame_saved_pc(),
2697 set_gdbarch_deprecated_frame_init_saved_regs(),
2698 set_gdbarch_deprecated_get_saved_register(),
2699 set_gdbarch_deprecated_call_dummy_words(),
2700 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2701 set_gdbarch_deprecated_init_extra_frame_info(),
2702 set_gdbarch_deprecated_frame_args_address(),
2703 set_gdbarch_deprecated_frame_locals_address(),
2704 and set_gdbarch_deprecated_dummy_write_sp().
2705 Add set_gdbarch_convert_register_p(),
2706 set_gdbarch_register_to_value(),
2707 set_gdbarch_value_to_register(),
2708 set_gdbarch_push_dummy_call(),
2709 set_gdbarch_frame_align(),
2710 set_gdbarch_unwind_dummy_id(),
2711 set_gdbarch_unwind_pc(),
2712 frame_unwind_append_sniffer(),
2713 frame_unwind_append_sniffer(),
2714 and frame_base_set_default().
2715
2716 2003-08-25 Chris Demetriou <cgd@broadcom.com>
2717
2718 * configure.tgt: Document need for special "mipsisa64" handling.
2719 (mipsisa64*-*-linux64): Handle as target linux64.
2720 (mipsisa64*-*-*): Handle as target embed64.
2721
2722 2003-08-18 Michael Chastain <mec@shout.net>
2723
2724 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2725 objfile bug.
2726
2727 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2728
2729 * i387-tdep.h: Update copyright date.
2730 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2731
2732 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2733 CFLAGS games to reflect reality.
2734
2735 2003-08-24 Andrew Cagney <cagney@redhat.com>
2736
2737 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2738 GDB_MULTI_ARCH is always non-zero.
2739 * osabi.c (_initialize_gdb_osabi): Ditto.
2740 (gdbarch_init_osabi): Ditto.
2741 * sparc-tdep.c: Ditto for #if code.
2742
2743 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2744
2745 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2746 Update comments.
2747 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2748 comments.
2749 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2750 x86_64_supply_fxsave.
2751 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2752 x86_64_supply_fxsave.
2753 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2754 x86_64_supply_fxsave.
2755
2756 2003-08-23 Andreas Jaeger <aj@suse.de>
2757
2758 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2759 i387_supply_fxsave.
2760
2761 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2762
2763 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2764 i387_supply_register.
2765 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2766 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2767 i387_supply_fsave.
2768 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2769 i387_supply_fxsave.
2770 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2771 i387_supply_fsave.
2772 * i386bsd-nat.c (supply_fpregset): Adjust call to
2773 i387_supply_fsave.
2774 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2775 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2776 supply_fpregset.
2777 (store_inferior_registers): Remove extraneous whitespace. Call
2778 i387_fill_fsave instead of fill_fpregset.
2779 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2780 (supply_fpregset): Likewise.
2781 * i386v4-nat.c (supply_fpregset): Adjust call to
2782 i387_supply_fsave.
2783 * i386-interix-nat.c (supply_fpregset): Adjust call to
2784 i387_supply_fsave.
2785 * i386-linux-nat.c (supply_fpregset): Adjust call to
2786 i387_supply_fsave.
2787 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2788 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2789 i387supply_fsave and i387_supply_fxsave.
2790 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2791 Incorporate code from `i387_supply_register.
2792 (i387_supply_register): Remove.
2793 (i387_supply_fxsave): Add `regnum' argument.
2794 Update comments.
2795 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2796 prototype.
2797 (i387_supply_register): remove prototype.
2798 Update comments.
2799
2800 2003-08-22 Michael Chastain <mec@shout.net>
2801
2802 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2803 Add lines for files in gdb/testsuite/gdb.cp/* that are
2804 still not 8.3 unique.
2805
2806 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
2807
2808 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2809 TYPE_VPTR_FIELDNO is valid.
2810
2811 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2812
2813 * utils.c (set_width_command): Remove prototypes.
2814 (set_screen_size): New prototype.
2815 (init_page_info): Simplify by fetching the screen size from
2816 Readline. Call set_screen_size.
2817 (set_screen_size): New function.
2818 (set_width): Add missing whitespace in comment.
2819 (set_width_command): Call set_screen_size.
2820 (set_height_command): New function.
2821 (initialize_utils): Fix formatting. Make "set height" command
2822 call set_height_command. Remove redundant code that turns off
2823 pagination if output isn't a terminal. Remove redundant call to
2824 set_width_command.
2825
2826 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2827
2828 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2829 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2830 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2831 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2832 `case' keyword.
2833 (sparc64_register_info): Give the reister with number
2834 SPARC64_STATE_REGNUM a name.
2835 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2836 %asi and %ccr.
2837 (sparc64_push_dummy_call): Take BIAS into account when checking
2838 stcak alignment.
2839 (sparc_software_single_step): Remove assertions that check whether
2840 NPC and NNPC were zero.
2841 (sparc_supply_rwindow): Make public. Merge functionality with
2842 sparc64_supply_rwindow.
2843 (sparc_fill_rwindow): Make public. Merge functionality with
2844 sparc64_fill_rwindow.
2845 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2846 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2847 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2848 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2849 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2850
2851 * reggroups.c: Add whitespace after declarations of local
2852 variables in functions.
2853
2854 2003-08-21 Michael Chastain <mec@shout.net>
2855
2856 * gdbtypes.h: Change array bound type from an int to enum.
2857
2858 2003-08-21 Andrew Cagney <cagney@redhat.com>
2859
2860 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2861 * config/sparc/tm-sparc.h: Ditto.
2862 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2863 unconditionally.
2864 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2865
2866 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2867
2868 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2869 (register_objfile_data, set_objfile_data, objfile_data): New
2870 prototypes.
2871 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2872 prototypes.
2873 (allocate_objfile): Call objfile_alloc_data.
2874 (free_objfile): Call objfile_free_data.
2875 (struct objfile_data): New.
2876 (struct objfile_data_registration): New.
2877 (struct objfile_data_registry): New.
2878 (objfile_data_registry): New variable.
2879 (register_objfile_data): New function.
2880 (objfile_alloc_data, objfile_free_data): New functions.
2881 (set_objfile_data, objfile_data): New functions.
2882 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2883 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2884 (_initialize_dwarf2_frame): New function and prototype.
2885
2886 2003-08-21 Andrew Cagney <cagney@redhat.com>
2887
2888 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2889 a specific architecture.
2890 * arch-utils.h (set_architecture_from_arch_mach): Delete
2891 declaration.
2892 (target_architecture_hook): Delete declaration.
2893 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2894 (default_float_format): Assume GDB_MULTI_ARCH.
2895 (default_double_format): Assume GDB_MULTI_ARCH.
2896 (set_endian_from_file): Delete function.
2897 (arch_ok): Delete function.
2898 (set_arch): Delete function.
2899 (set_architecture_from_arch_mach): Delete function.
2900 (set_architecture_from_file): Delete function.
2901 (set_architecture): Assume GDB_MULTI_ARCH.
2902 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2903
2904 2003-08-21 Mark Kettenis <kettenis@gnu.org>
2905
2906 Rewrite FreeBSD/sparc64 native configuration.
2907 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2908 * sparc64fbsd-nat.c: New file.
2909 * sparc64fbsd-tdep.c: New file.
2910 * sparc64-tdep.c sparc64-tdep.h: New files.
2911 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2912 sparc64fbsd-tdep.o): New dependencies.
2913 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2914 and sparc64fbsd-tdep.c.
2915 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2916 * config/sparc/fbsd.mh: Remove copyright notice.
2917 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2918 sparcbsd-nat.o.
2919 * config/sparc/fbsd.mt: Remove copyright notice.
2920 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2921 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2922 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2923 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2924 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2925 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2926 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2927 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2928 "sparc/tm-sp64.h".
2929 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2930 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2931
2932 2003-08-21 Michael Chastain <mec@shout.net>
2933
2934 * symtab.h: Add doco on the space critical structures and
2935 some measurements of space usage.
2936
2937 2003-08-21 Michael Snyder <msnyder@redhat.com>
2938
2939 * tracepoint.c (trace_dump_command): Trace break address
2940 is subject to DECR_PC_AFTER_BREAK.
2941 (set_traceframe_context): Make "trace_line" an int.
2942 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2943
2944 2003-08-20 Michael Snyder <msnyder@redhat.com>
2945
2946 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2947 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2948 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2949 argument passing.
2950 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2951 functions, replace sh_push_dummy_call.
2952 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2953
2954 2003-08-20 Michael Chastain <mec@shout.net>
2955
2956 * gdbtypes.h (struct main_type): Rearrange to save space.
2957
2958 2003-08-20 Michael Snyder <msnyder@redhat.com>
2959
2960 * trad-frame.c: Comment typo fix.
2961
2962 2003-08-20 Michael Snyder <msnyder@redhat.com>
2963 Kevin Buettner <kevinb@redhat.com>
2964
2965 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2966 (frv_frame_init_saved_regs): Add declaration.
2967 (frame_extra_info): Add new field ``saved_regs''.
2968 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2969 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2970 Update frame related code.
2971 (frv_extract_struct_value_address): Adjust formatting.
2972 * Makefile.in (frv-tdep.o): Update dependencies.
2973 * config/frv/tm-frv.h (target_insert_watchpoint)
2974 (target_remove_watchpoint, target_insert_hw_breakpoint)
2975 (target_remove_hw_breakpoint): Delete these macros.
2976 (remote_insert_watchpoint, remote_remove_watchpoint)
2977 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2978 these declarations.
2979
2980 2003-08-20 Michael Chastain <mec@shout.net>
2981
2982 * defs.h (ENUM_BITFIELD): New macro.
2983 * symtab.h (ENUM_BITFIELD): Use it.
2984 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2985
2986 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2987
2988 * MAINTAINERS (write after approval): Add myself.
2989
2990 2003-08-18 Andrew Cagney <cagney@redhat.com>
2991
2992 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2993 * gdbarch.h, gdbarch.c: Re-generate.
2994 * infcall.c (call_function_by_hand): Adjust the SP by
2995 frame_red_zone_size before allocating any stack space.
2996 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2997 * x86-64-tdep.c (x86_64_frame_align): New function.
2998 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2999
3000 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3001 Remove code adjusting SP so that it skips over the Red Zone.
3002
3003 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3004
3005 * NEWS (New native configurations): Mention FreeBSD/amd64.
3006
3007 2003-08-18 Andrew Cagney <cagney@redhat.com>
3008
3009 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3010 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3011 "m68k_frame_p".
3012 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3013
3014 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3015
3016 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3017
3018 2003-08-18 Michal Ludvig <mludvig@suse.cz>
3019
3020 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3021 Define.
3022 * i386-linux-nat.c: Include "linux-nat.h".
3023 (child_post_startup_inferior): New function.
3024
3025 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3026
3027 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3028 at the start of a frameless function. This probably fixes PR
3029 backtrace/1338.
3030
3031 2003-08-17 Michael Chastain <mec@shout.net>
3032
3033 * symfile.c (find_sym_fns): Remove special case for apollo target.
3034
3035 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3036
3037 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3038 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3039 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3040 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3041 (linux_supports_tracevforkdone): New function.
3042 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3043 TRACEVFORKDONE.
3044 (child_follow_fork): Handle vfork.
3045 (linux_handle_extended_wait): Likewise. Also handle exec.
3046 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3047 * NEWS: Mention fork tracing.
3048
3049 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3050
3051 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3052
3053 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3054
3055 * Makefile.in (i386-linux-nat.o): Update dependencies.
3056 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3057 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3058 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3059 * i386-linux-nat.c: Include "linux-nat.h".
3060 (child_post_startup_inferior): New function.
3061 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3062 * infptrace.c (kill_inferior): Wrap in #ifdef.
3063 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3064 attaching to each LWP.
3065 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3066 (init_lin_lwp_ops): Fill in some more operations.
3067 * linux-nat.h (linux_enable_event_reporting)
3068 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3069 prototypes.
3070 * linux-nat.c (linux_enable_event_reporting): New function.
3071 (child_post_attach, linux_child_post_startup_inferior)
3072 (child_post_startup_inferior, child_follow_fork)
3073 (linux_handle_extended_wait, kill_inferior): New functions.
3074
3075 2003-08-16 Andrew Cagney <cagney@redhat.com>
3076
3077 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3078 * gdbarch.h, gdbarch.c: Re-generate.
3079
3080 2003-08-16 Mark Kettenis <kettenis@gnu.org>
3081
3082 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3083
3084 2003-08-16 Andrew Cagney <cagney@redhat.com>
3085
3086 * NEWS: Mention that "set prompt-escape-char" was deleted.
3087 * top.c (get_prompt_1): Delete function.
3088 (gdb_prompt_escape):
3089 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3090 prompt-escape-char" command.
3091 (MAX_PROMPT_SIZE): Delete macro.
3092 (get_prompt): Simplify, do not call get_prompt_1.
3093
3094 2003-08-16 Andrew Cagney <cagney@redhat.com>
3095
3096 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3097 -Werror. -Wformat-nonliteral problems.
3098
3099 2003-08-15 J. Brobecker <brobecker@gnat.com>
3100
3101 Further multiarching work mostly for hppa64-*-hpux11:
3102 * hppa-tdep.h: New file.
3103 * hppa-tdep.c: #include hppa-tdep.c.
3104 (hppa32_num_regs): Renamed from hppa_num_regs.
3105 (hppa64_num_regs): New constant.
3106 (hppa64_call_dummy_breakpoint_offset): New constant.
3107 (hppa32_call_dummy_length): New constant.
3108 (hppa64_call_dummy_length): New constant.
3109 (hppa32_stack_align): Make name 32bit explicit.
3110 (hppa32_register_virtual_type): Likewise.
3111 (hppa32_extract_return_value): Likewise.
3112 (hppa32_use_struct_convention): Likewise.
3113 (hppa32_store_return_value): Likewise.
3114 (hppa64_register_virtual_type): New function.
3115 (hppa64_extract_return_value): New function.
3116 (hppa64_use_struct_convention): New function.
3117 (hppa64_store_return_value): New function.
3118 (hppa_frame_locals_address): Remove declaration, function does
3119 not exist anymore.
3120 (hppa_register_byte): Add support for PA64 ABI.
3121 (hppa_gdbarch_init): Add support for PA64 ABI.
3122 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3123 Make name 32bit explicit.
3124 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3125 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3126 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3127 (hppa64_hpux_frame_base_before_sigtramp): New function.
3128 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3129 * config/pa/tm-hppa64.h: Remove macros that are no longer
3130 necessary now that the gdbarch vector is properly setup.
3131 Transform some macros into function calls. Some minor cleanup.
3132 * config/pa/tm-hppah.h: Update function calls in macros
3133 following the function renaming in hppa-hpux-tdep.c.
3134 * Makefile.in (hppa_tdep_h): New variable.
3135 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3136
3137 2003-08-14 Michael Snyder <msnyder@redhat.com>
3138
3139 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3140
3141 2003-08-13 J. Brobecker <brobecker@gnat.com>
3142
3143 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3144 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3145 routine.
3146
3147 2003-08-13 Michael Snyder <msnyder@redhat.com>
3148
3149 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3150 (frv_saved_pc_after_call): Use deprecated ftype.
3151 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3152 (frv_remote_translate_xfer_address): Remove.
3153 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3154
3155 2003-08-13 J. Brobecker <brobecker@gnat.com>
3156
3157 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3158 initialization after the common gdbarch initialization, not before.
3159
3160 2003-08-13 J. Brobecker <brobecker@gnat.com>
3161
3162 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3163 (ADDR_BITS_REMOVE): Remove, redundant.
3164
3165 2003-08-13 J. Brobecker <brobecker@gnat.com>
3166
3167 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3168 gdbarch method to clear the 2 low bits of text addresses.
3169
3170 2003-08-12 Andrew Cagney <cagney@redhat.com>
3171
3172 * Makefile.in (dsrec.o): Update dependencies.
3173 * dsrec.c: Include "gdb_assert.h".
3174 (make_srec): Use snprintf instead of sprintf, use a literal format
3175 string.
3176
3177 2003-08-12 Andrew Cagney <cagney@redhat.com>
3178
3179 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3180 FRAME_OBSTACK_ZALLOC.
3181
3182 2003-08-12 Kevin Buettner <kevinb@redhat.com>
3183
3184 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3185 SSE registers.
3186
3187 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3188
3189 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3190 amd64fbsd_sc_reg_offset): Add extern declarations.
3191 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3192 declarations.
3193
3194 2003-08-11 Ben Elliston <bje@wasabisystems.com>
3195
3196 * MAINTAINERS (write after approval): Update my mail address.
3197
3198 2003-08-10 Andrew Cagney <cagney@redhat.com>
3199
3200 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3201
3202 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3203
3204 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3205 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3206 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3207 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3208 i386bsd_sc_reg_offset): Add extern declarations.
3209 * i386obsd-nat.c: Include "i386-tdep.h"
3210 (_initialize_i386obsd_nat): Remove extern declarations.
3211 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3212 declarations.
3213 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3214 declarations.
3215
3216 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3217 instead of frame_read_register.
3218 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3219 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3220 SP_REGNUM.
3221 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3222 instead of frame_unwind_unsigned_register. Use
3223 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3224 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3225 instead of read_register. Use builtin_type_void_data_ptr instead
3226 of builtin_type_void_func_ptr when extracting the address of the
3227 jmp_buf.
3228 (i386_extract_return_value, i386_store_return_value,
3229 i386_pseudo_register_read, i386_pseudo_register_write): Use
3230 register_size instead REGISTER_RAW_SIZE.
3231
3232 2003-08-10 Andrew Cagney <cagney@redhat.com>
3233
3234 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3235 sprintf. Make "name" constant.
3236
3237 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3238
3239 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3240 instead of frame_read_register.
3241 (i387_print_float_info): Use get_frame_register and
3242 get_frame_register_unsigned instead of frame_register_read.
3243
3244 * i386fbsd-nat.c: Include "i386-tdep.h".
3245 (child_resume): Make `eflags' an ULONGEST. Use
3246 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3247 instead of register_read and register_write.
3248
3249 * i386bsd-nat.c (fetch_inferior_registers,
3250 store_inferior_registers): Don't use && at the end of a line.
3251 (_initialize_i386bsd_nat): Fix typo.
3252
3253 * frame.c (_initialize_frame): Add missing backslash.
3254
3255 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3256 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3257 and supply_register instead of manipulating the register buffer
3258 directly.
3259
3260 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3261 * config/i386/nm-i386sol2.h
3262 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3263
3264 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3265 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3266 instructions that GCC likes to mingle into the prologue. Fixes
3267 gdb/1253 and gdb/1255.
3268
3269 2003-08-09 Andrew Cagney <cagney@redhat.com>
3270
3271 Fix GDB PR cli/926.
3272 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3273 * command.h (add_setshow_uinteger_cmd): Declare.
3274 * frame.c (set_backtrace_cmd): New function.
3275 (show_backtrace_cmd): New function.
3276 * frame.c (_initialize_frame): Replace "set/show
3277 backtrace-below-main" with "set/show backtrace past-main". Add
3278 command "set/show backtrace limit".
3279 (backtrace_past_main): Rename "backtrace_below_main".
3280 (backtrace_limit): New variable.
3281 (get_prev_frame): Update. Check the backtrace_limit.
3282
3283 2003-08-09 Andrew Cagney <cagney@redhat.com>
3284
3285 * defs.h (xstrprintf): Declare.
3286 * utils.c (xstrprintf): New function.
3287 * breakpoint.c (insert_breakpoints): Replace sprintf and
3288 non-literal format strings, with xstrprintf and cleanups.
3289 (delete_breakpoint,breakpoint_re_set): Ditto.
3290 (commands_command, insert_breakpoints): Ditto.
3291 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3292 (break_at_finish_command_1): Ditto.
3293
3294 2003-08-09 Andrew Cagney <cagney@redhat.com>
3295
3296 * MAINTAINERS (language support): List Adam Fedor as Objective C
3297 maintainer.
3298
3299 2003-08-08 J. Brobecker <brobecker@gnat.com>
3300
3301 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3302 are now multiarched.
3303
3304 2003-08-08 J. Brobecker <brobecker@gnat.com>
3305
3306 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3307 longer necessary now that hppa64 is partially multiarch'ed.
3308
3309 2003-08-08 Andrew Cagney <cagney@redhat.com>
3310
3311 * interps.c (interp_set): Check for a NULL "old_interp".
3312
3313 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3314
3315 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3316 (install-only): Support DESTDIR.
3317 (uninstall): Likewise.
3318 (install-gdbtk): Likewise.
3319
3320 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
3321
3322 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3323 contains something meaningful at all times.
3324
3325 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
3326
3327 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
3328
3329 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3330
3331 * MAINTAINERS (write after approval): Added self.
3332
3333 2003-08-07 Andrew Cagney <cagney@redhat.com>
3334
3335 * inferior.h (AT_SYMBOL): Define.
3336 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3337 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3338 * mips-tdep.c (mips_call_dummy_address): Delete function.
3339 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3340 set call_dummy_address.
3341
3342 2003-08-07 Andrew Cagney <cagney@redhat.com>
3343
3344 * language.c (op_error): Delete function.
3345 (binop_type_check): Delete function.
3346 * language.h (type_op_error, range_op_error): Delete macros.
3347 (op_error): Delete declaration.
3348
3349 2003-08-07 Andrew Cagney <cagney@redhat.com>
3350
3351 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3352
3353 2003-08-07 Michal Ludvig <mludvig@suse.cz>
3354
3355 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
3356 (x86_64_push_arguments): Skip the red zone.
3357
3358 2003-08-05 Andrew Cagney <cagney@redhat.com>
3359
3360 * reggroups.c (reggroup_next): Check for the final entry.
3361
3362 2003-08-04 Andrew Cagney <cagney@redhat.com>
3363
3364 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3365 * cli/cli-script.c (define_command): Call query directly, instead
3366 of passing it a buffer.
3367 * ocd.c (ocd_error): Pass error a constant format string.
3368 * remote-mips.c (mips_error): Use fputs_filtered.
3369
3370 * solib-svr4.c (_initialize_svr4_solib): Update
3371 register_gdbarch_data call.
3372 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3373
3374 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3375 (register_gdbarch_data): Delete "free" parameter. Update
3376 comments.
3377 * gdbarch.h, gdbarch.c: Re-generate.
3378 * reggroups.c (_initialize_reggroup): Update.
3379 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3380 * frame-base.c (_initialize_frame_base): Update.
3381 * frame-unwind.c (_initialize_frame_unwind): Update.
3382 * user-regs.c (_initialize_user_regs): Update.
3383 * remote.c (_initialize_remote): Update.
3384 * regcache.c (_initialize_regcache): Update.
3385
3386 * regcache.c (xfree_regcache_descr): Delete function.
3387 (_initialize_regcache): Update call to register_gdbarch_data.
3388 (init_regcache_descr, init_legacy_regcache_descr): Use
3389 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3390
3391 * remote.c (free_remote_state): Delete function.
3392 (_initialize_remote): Update register_gdbarch_data.
3393 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3394 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3395
3396 2003-08-04 Andrew Cagney <cagney@redhat.com>
3397
3398 * reggroups.c (struct reggroup_el): Define.
3399 (struct reggroups): Delete field "nr_group". Replace array
3400 "group" with a "first" to "last" linked list.
3401 (reggroups_init): Update. Allocate using gdbarch's obstack.
3402 (reggroups_free): Delete function.
3403 (add_group): Update. Add "el" parameter.
3404 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3405 (default_groups): Update.
3406 (reggroup_next): Replace reggroups.
3407 (reggroups_dump): Update.
3408 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3409 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3410 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3411
3412 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
3413
3414 * Makefile.in (tui-interp.o): Update dependencies.
3415
3416 2003-08-04 David Carlton <carlton@kealia.com>
3417
3418 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3419 to internal_error call.
3420 * source.c (forward_search_command): Add "%s" format argument.
3421 (reverse_search_command): Ditto.
3422 * top.c (quit_confirm): Ditto.
3423 * cli/cli-setshow.c (do_setshow_command): Ditto.
3424 * cp-valprint.c (cp_print_class_method): Replace
3425 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3426 (cp_print_class_member): Ditto.
3427 * event-top.c (command_line_handler): Ditto.
3428 * linux-proc.c (linux_info_proc_cmd): Ditto.
3429 * p-typeprint.c (pascal_type_print_base): Ditto.
3430 * p-valprint.c (pascal_object_print_class_method): Ditto.
3431 (pascal_object_print_class_member): Ditto.
3432 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3433 * remote.c (remote_cisco_section_offsets): Ditto.
3434 * top.c (command_line_input): Ditto.
3435 * utils.c (vwarning,error_stream,quit): Ditto.
3436 * valprint.c (print_floating,print_binary_chars)
3437 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3438
3439 2003-08-04 Andrew Cagney <cagney@redhat.com>
3440
3441 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3442
3443 2003-08-02 Andrew Cagney <cagney@redhat.com>
3444
3445 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3446 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3447 amd64fbsd-nat.c.
3448
3449 2003-08-02 Andrew Cagney <cagney@redhat.com>
3450
3451 * Makefile.in: Update all dependencies and definitions.
3452
3453 2003-08-02 Adam Fedor <fedor@gnu.org>
3454
3455 * linespec.c (is_objc_method_format): New function
3456 (decode_line_1, locate_first_half): Use it.
3457 Fixes PR objc/1298
3458
3459 2003-08-01 Andrew Cagney <cagney@redhat.com>
3460
3461 * NEWS: Mention that m32r is multi-arch.
3462 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3463 * configure.tgt: Recognize m32r-*-*.
3464 * config/m32r/tm-m32r.h: Delete file.
3465 * config/m32r/m32r.mt: New file.
3466 * m32r-rom.c (m32r_upload_command): Use hostent only when
3467 gethostname succeeds, in order to avoid a compilation
3468 warning.
3469 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3470 compiler warning.
3471
3472 2003-08-01 Michael Snyder <msnyder@redhat.com>
3473
3474 * sh-tdep.c (sh_frame_align): New gdbarch method.
3475 (sh_gdbarch_init): Set up frame_align method.
3476
3477 2003-07-31 Michael Snyder <msnyder@redhat.com>
3478
3479 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3480 which is already covered by the new frames infrastructure.
3481
3482 2003-07-31 Andrew Cagney <cagney@redhat.com>
3483
3484 * user-regs.c (struct user_reg): Add "next" link.
3485 (struct user_regs): Replace "user" with "first" and "last" links.
3486 (append_user_reg): Add pre-allocated "reg" parameter.
3487 (builtin_user_regs): Provide initial value for "last".
3488 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3489 (user_regs_init): Allocate memory from the gdbarch obstack.
3490 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3491 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3492 linked list.
3493 (usernum_to_user_reg): New function.
3494 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3495 (value_of_user_reg): Use usernum_to_user_reg.
3496 (user_regs_free): Delete function.
3497 (_initialize_user_regs): Update register_gdbarch_data call.
3498
3499 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
3500
3501 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3502
3503 2003-07-30 Michael Snyder <msnyder@redhat.com>
3504
3505 * value.h (value_being_returned): Add a struct_addr argument.
3506 * infcall.c (call_function_by_hand): Pass struct_addr to
3507 value_being_returned.
3508 * infcmd.c (print_return_value): Pass zero as struct_addr.
3509 * values.c (value_being_returned): If struct_addr is passed,
3510 use it instead of trying to recover it from the inferior.
3511
3512 2003-07-30 Kevin Buettner <kevinb@redhat.com>
3513
3514 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3515 the prologue analyzer won't need to attempt to extract the pc
3516 value from the woefully incomplete dummy frame.
3517 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3518 possible. Disable code which modifies the frame.
3519
3520 2003-07-28 Andrew Cagney <cagney@redhat.com>
3521
3522 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3523 to level 2.
3524 (annotate_breakpoints_table, annotate_record): Ditto.
3525 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3526 (annotate_field_name_end, annotate_field_value): Ditto.
3527 (annotate_field_end, annotate_frame_source_begin): Ditto.
3528 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3529 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3530 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3531 (annotate_frame_address_end, annotate_frame_address): Ditto.
3532 (annotate_frame_args, annotate_frame_end): Ditto.
3533 (annotate_frame_where, annotate_arg_begin): Ditto.
3534 (annotate_arg_name_end, annotate_arg_value): Ditto.
3535 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3536 (annotate_function_call, annotate_signal_name): Ditto.
3537 (annotate_signal_string, annotate_signal_name_end): Ditto.
3538 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3539 (annotate_value_begin, annotate_value_history_value): Ditto.
3540 (annotate_value_history_end, annotate_value_end): Ditto.
3541 (annotate_display_begin, annotate_display_number_end): Ditto.
3542 (annotate_display_format, annotate_display_expression): Ditto.
3543 (annotate_display_expression_end, annotate_display_value): Ditto.
3544 (annotate_display_end, annotate_array_section_begin): Ditto.
3545 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3546 (annotate_elt, annotate_array_section_end): Ditto.
3547
3548 2003-07-28 Andrew Cagney <cagney@redhat.com>
3549
3550 * regcache.c (struct regcache_descr): Update comments on
3551 nr_raw_registers.
3552 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3553 sizeof_raw_register_valid_p.
3554 (init_regcache_descr): Set nr_raw_registers and
3555 sizeof_raw_register_valid_p before calling
3556 init_legacy_regcache_descr.
3557
3558 2003-07-28 Andrew Cagney <cagney@redhat.com>
3559
3560 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3561 MOD NUM_REGS.
3562
3563 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
3564
3565 * thread.c (info_threads_command): Use get_selected_frame ().
3566 Check that there is at least one non-sentinel frame.
3567
3568 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3569
3570 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3571 (m68hc11_pop_frame): Remove.
3572 (m68hc11_frame_saved_pc): Remove.
3573 (m68hc11_frame_chain): Remove.
3574 (m68hc11_frame_init_saved_regs): Remove.
3575 (m68hc11_init_extra_frame_info): Remove.
3576 (m68hc11_store_struct_return): Remove.
3577 (m68hc11_saved_pc_after_call): Remove.
3578
3579 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3580
3581 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3582 frame unwind information.
3583 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3584 and adapted for frame unwinding.
3585 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3586 (m68hc11_unwind_pc): New function.
3587 (m68hc11_frame_unwind_cache): New function to analyze frames.
3588 (m68hc11_frame_this_id): New function to create new frame struct.
3589 (m68hc11_frame_prev_register): New function to unwind a register from
3590 the frame.
3591 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3592 (m68hc11_frame_p): New function for the above.
3593 (m68hc11_frame_base_address): New function to return fp of frame.
3594 (m68hc11_frame_args_address): Update for frame.
3595 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3596 (m68hc11_unwind_sp): New function.
3597 (m68hc11_unwind_dummy_id): New function.
3598 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3599 calls.
3600
3601 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3602
3603 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3604 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3605 when we are beyond the current pc.
3606
3607 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3608
3609 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3610 from m68hc11_push_arguments.
3611 (m68hc11_push_arguments): Remove.
3612 (m68hc11_push_return_address): Remove.
3613 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3614 handlers; remove deprecated_extra_stack_alignment_needed.
3615
3616 2003-07-27 Andrew Cagney <cagney@redhat.com>
3617
3618 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3619 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3620 REAL_PC and not the pointer.
3621 * hppa-hpux-tdep.c: Include frame.h
3622
3623 2003-07-27 Andrew Cagney <cagney@redhat.com>
3624
3625 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3626 GDB_MULTI_ACH_PARTIAL.
3627
3628 2003-07-27 Andrew Cagney <cagney@redhat.com>
3629
3630 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3631 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3632 operator at start and not end of line.
3633 (decode_prologue): Ditto.
3634 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3635 frame_unwind_register_unsigned instead of
3636 frame_unwind_unsigned_register.
3637 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3638 read_register.
3639 (m32r_push_dummy_call): Use register_size instead of
3640 REGISTER_RAW_SIZE.
3641 (m32r_frame_sniffer): Replace m32r_frame_p.
3642 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3643 * m32r-rom.c (report_transfer_performance): Delete extern
3644 declaration.
3645 (m32r_load, m32r_upload_command): Use print_transfer_performance
3646 instead of report_transfer_performance.
3647 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3648 / add_show_from_set.
3649
3650 2003-07-26 Andrew Cagney <cagney@redhat.com>
3651
3652 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3653 store_return_value and extract_struct_value_address.
3654
3655 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
3656
3657 PR c++/1267
3658 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3659 NULL, default to the section containing PC.
3660
3661 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3662
3663 * NEWS: Mention "regs" deprecated for m68hc11 too.
3664
3665 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3666 (m68hc11_print_register): New function to print out one register.
3667 (m68hc11_print_registers_info): New function to print registers.
3668 (show_regs): Deprecate and use the above.
3669 (m68hc11_gdbarch_init): Install the print_registers_info.
3670
3671 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3672
3673 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3674 that we have a SIGTRAP before returning non-zero.
3675
3676 2003-07-23 Michal Ludvig <mludvig@suse.cz>
3677 Elena Zannoni <ezannoni@redhat.com>
3678
3679 * linespec.c (decode_line_2): Avoid crash if
3680 find_function_start_sal() returns empty record.
3681
3682 2003-07-23 Andreas Schwab <schwab@suse.de>
3683
3684 * ia64-tdep.c (ia64_print_insn): New function.
3685 (ia64_gdbarch_init): Set print_insn to it.
3686 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3687 deprecated_tm_print_insn_info.
3688
3689 2003-07-22 Michael Snyder <msnyder@redhat.com>
3690
3691 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3692 handle 8-bit returns (long long).
3693 (h8300h_extract_return_value): Ditto.
3694 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3695
3696 2003-07-22 Andrew Cagney <cagney@redhat.com>
3697
3698 * gdbarch.c Include "gdb_obstack.h".
3699 (struct gdbarch): Add an "obstack".
3700 (alloc_gdbarch_data): Allocate the gdbarch data using
3701 GDBARCH_OBSTACK_CALLOC.
3702 (free_gdbarch_data): Delete function.
3703 (gdbarch_obstack_zalloc): New function.
3704 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3705 Assert that the architecture is not initialized.
3706 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3707 vector from the obstack.
3708 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3709 architecture obstack.
3710 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3711 (set_gdbarch_data): Assert that the data is not initialized.
3712 (struct gdbarch_data): Delete member "free".
3713 (register_gdbarch_data): Do not initialize "free".
3714 * gdbarch.h, gdbarch.c: Re-generate.
3715
3716 2003-07-22 Andrew Cagney <cagney@redhat.com>
3717
3718 * configure.in (build_warnings): Add -Wformat-nonliteral.
3719 * configure: Re-generate.
3720
3721 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3722
3723 * dwarf2loc.c (locexpr_describe_location): Fix typos.
3724
3725 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3726
3727 * findvar.c (read_var_value): Remove case for thread local storage
3728 variables. It is now entirely handled by the dwarf2 location
3729 expression code.
3730 * printcmd.c (address_info): Ditto.
3731 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3732 enumeration value.
3733 (struct symbol): Remove objfile field, which was used by
3734 LOC_THREAD_LOCAL_STATIC only.
3735 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3736 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3737 usage of objfile pointer.
3738 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3739 thread local variables.
3740 Add include of objfiles.h.
3741 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3742 storage variables.
3743 * Makefile.in (dwarf2loc.o): Update dependencies.
3744
3745 2003-07-22 Andrew Cagney <cagney@redhat.com>
3746
3747 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3748 get_frame_base.
3749 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3750 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3751 (struct value): Add opaque declaration.
3752 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3753
3754 2003-07-21 Andrew Cagney <cagney@redhat.com>
3755
3756 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3757 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3758
3759 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3760
3761 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3762 regcache_cooked_read_unsigned instead of read_register.
3763 (m68hc11_saved_pc_after_call): Likewise.
3764 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3765 instead of write_register.
3766 (m68hc11_register_type): New function.
3767 (m68hc11_register_virtual_type): Remove.
3768 (m68hc11_store_return_value): Convert to use the regcache.
3769 (m68hc11_extract_struct_value_address): Likewise.
3770 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3771 m68hc11_register_type; undeprecate store_return_value and
3772 extract_struct_value_address.
3773
3774 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3775
3776 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3777 and translate to use regcache.
3778 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3779
3780 2003-07-18 Andrew Cagney <cagney@redhat.com>
3781
3782 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3783 * gdbarch.h, gdbarch.c: Re-generate.
3784 * i386-tdep.c (i386_gdbarch_init): Do not set
3785 DWARF2_BUILD_FRAME_INFO.
3786 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3787 unconditionally.
3788 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3789 DWARF2_BUILD_FRAME_INFO.
3790
3791 2003-07-18 Andrew Cagney <cagney@redhat.com>
3792
3793 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3794 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3795
3796 2003-07-18 Andrew Cagney <cagney@redhat.com>
3797
3798 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3799 frame_unwind_address_in_block, instead of frame_pc_unwind.
3800 (dwarf2_frame_cache): Ditto.
3801
3802 2003-07-18 Andrew Cagney <cagney@redhat.com>
3803
3804 * user-regs.h (struct gdbarch): Declare opaque.
3805 * ui-out.h (struct ui_file): Declare opaque.
3806 * dwarf2-frame.h (struct frame_info): Declare opaque.
3807
3808 2003-07-18 Kris Warkentin <kewarken@qnx.com>
3809
3810 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3811 #include "...".
3812 (procfs_meminfo): Change strerror to safe_strerror.
3813 (procfs_can_run): Remove K&R badness.
3814
3815 2003-07-17 Michael Snyder <msnyder@redhat.com>
3816
3817 * remote-sim.c: Comment typo fix.
3818
3819 2003-07-17 Andrew Cagney <cagney@redhat.com>
3820
3821 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3822 configure.
3823 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3824 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3825 GDB_MULTI_ARCH_PARTIAL.
3826
3827 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3828
3829 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3830 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3831 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3832
3833 2003-07-16 Theodore A. Roth <troth@openavr.org>
3834
3835 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3836 found.
3837 (avr_frame_unwind_cache): Don't unwind FP for main.
3838 Update a comment.
3839 Save the computed prev_sp.
3840 (avr_saved_regs_unwinder): Remove function.
3841 (avr_frame_prev_register): Use PC unwind logic from
3842 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3843
3844 2003-07-16 Andrew Cagney <cagney@redhat.com>
3845
3846 * frame-base.h (frame_base_p_ftype): Delete definition.
3847 (frame_base_append_predicate): Delete declaration.
3848 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3849 (frame_unwind_append_predicate): Delete declaration.
3850 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3851 (append_predicate): Delete parameter "p".
3852 (frame_unwind_append_predicate): Delete function.
3853 (frame_unwind_append_sniffer): Update call to append_predicate.
3854 (frame_unwind_free): Delete function.
3855 (_initialize_frame_unwind): Pass NULL as "free" to
3856 register_gdbarch_data.
3857 (frame_unwind_init): Append the dummy_frame_sniffer.
3858 (frame_unwind_find_by_frame): Simplify.
3859 * frame-base.c (struct frame_base_table): Delete field "p".
3860 (append_predicate): Delete parameter "p".
3861 (frame_base_append_predicate): Delete function.
3862 (frame_base_append_sniffer): Update call to append_predicate.
3863 (frame_base_free): Delete function.
3864 (frame_base_find_by_frame): Simplify.
3865 (_initialize_frame_base): Pass NULL as "free" to
3866 register_gdbarch_data.
3867 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3868 (x86_64_sigtramp_frame_sniffer): Replace
3869 "x86_64_sigtramp_frame_p".
3870 (x86_64_init_abi): Set the frame unwind sniffers.
3871 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3872 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3873 (m68k_gdbarch_init): Set the frame unwind sniffers.
3874 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3875 "i386_sigtramp_frame_p".
3876 (i386_frame_sniffer): Replace "i386_frame_p".
3877 (i386_gdbarch_init): Set the frame unwind sniffers.
3878 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3879 (avr_gdbarch_init): Set the frame unwind sniffers.
3880 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3881 "alpha_sigtramp_frame_p"
3882 (alpha_heuristic_frame_sniffer): Replace
3883 "alpha_heuristic_frame_p".
3884 (alpha_gdbarch_init): Set the frame unwind sniffers.
3885 (alpha_dwarf2_init_abi): Ditto.
3886 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3887 "alpha_debug_frame_p".
3888 (alpha_mdebug_frame_base_sniffer): Replace
3889 "alpha_mdebug_frame_base_p".
3890 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3891 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3892 (d10v_gdbarch_init): Set the frame unwind sniffer.
3893 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3894 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3895 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3896 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3897 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3898 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3899
3900 2003-07-16 Michael Snyder <msnyder@redhat.com>
3901
3902 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3903 should go thru sh_dsp_register_sim_regno, else the dsp regs
3904 will not get the right values.
3905
3906 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3907
3908 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3909 deprecated_store_floating by call to store_typed_floating.
3910 (sh_sh4_register_convert_to_raw): Substitute call to
3911 deprecated_extract_floating by call to extract_typed_floating.
3912
3913 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3914
3915 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3916
3917 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3918
3919 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3920 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3921 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3922 as possible.
3923 (do_pseudo_register): Remove.
3924 (sh_push_dummy_code): New function.
3925 (sh64_store_struct_return): Rename from sh_store_struct_return.
3926 Only called for sh64 now.
3927 (sh_extract_struct_value_address): Regcache'ify.
3928 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3929 and accomodate new tasks.
3930 (sh64_push_return_address): Rename from sh_push_return_address.
3931 Only called for sh64 now.
3932 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3933 Regcache'ify.
3934 (sh3e_sh4_extract_return_value): Regcache'ify.
3935 (sh_default_store_return_value): Ditto.
3936 (sh3e_sh4_store_return_value): Ditto.
3937 (sh_default_register_byte): Remove.
3938 (sh_sh4_register_byte): Remove.
3939 (sh_default_register_raw_size): Remove.
3940 (sh_sh4_register_raw_size): Remove.
3941 (sh_register_virtual_size): Remove.
3942 (sh_sh3e_register_virtual_type): Remove.
3943 (sh_sh3e_register_type): New function.
3944 (sh_sh4_register_virtual_type): Remove.
3945 (sh_sh4_register_type): New function.
3946 (sh_default_register_virtual_type): Remove.
3947 (sh_default_register_type): New function.
3948 (do_fv_register_info): Add parameters to accomodate call from
3949 sh_print_registers_info.
3950 (do_dr_register_info): Ditto.
3951 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3952 Add parameters to accomodate call from sh_print_registers_info.
3953 (sh_do_fp_register): Ditto.
3954 (sh64_do_pseudo_register): Call do_dr_register_info,
3955 do_fv_register_info and sh_do_fp_register with default parameters.
3956 (sh_do_register): Add parameters to accomodate call from
3957 sh_print_registers_info.
3958 (sh_print_register): Ditto.
3959 (sh_print_registers_info): Rename from sh_do_registers_info.
3960 Add parameters to be used as gdbarch_print_registers_info
3961 implementation. Accomodate removed do_pseudo_register function
3962 pointer.
3963 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3964 function pointer. Call sh_print_register with default parameters.
3965 (sh64_do_registers_info): Call sh_print_registers_info instead of
3966 sh_do_registers_info.
3967 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3968 detection of deprecated vs. non-deprecated functionality.
3969 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3970 function pointer assignments by direct function calls.
3971
3972 2003-07-15 Andrew Cagney <cagney@redhat.com>
3973
3974 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3975 (frame_register_unwind, create_new_frame): Ditto.
3976 (legacy_get_prev_frame, get_frame_type): Ditto.
3977 (get_frame_base_address): Use frame_base_find_by_frame.
3978 (get_frame_locals_address): Use frame_base_find_by_frame.
3979 (get_frame_args_address): Use frame_base_find_by_frame.
3980 * frame-base.h (frame_base_sniffer_ftype): Declare.
3981 (frame_base_append_sniffer): Declare.
3982 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3983 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3984 (frame_base_append_sniffer): New function.
3985 (frame_base_append_predicate): Add a NULL sniffer.
3986 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3987 (struct frame_base_table): Add "sniffer".
3988 (frame_base_free): Free the "sniffer" table.
3989 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3990 (frame_unwind_append_sniffer): Declare.
3991 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3992 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3993 (struct frame_unwind_table): Add "sniffer", delete "middle".
3994 (append_predicate): Add "sniffer" parameter, append the sniffer.
3995 (frame_unwind_init): Update append_predicate call.
3996 (frame_unwind_append_sniffer): New function.
3997 (frame_unwind_append_predicate): Update append_predicate call.
3998 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3999
4000 2003-07-15 Andrew Cagney <cagney@redhat.com>
4001
4002 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4003 before code inhibiting repeated unwind attempts. Add to
4004 commentary on that test's problems.
4005 * blockframe.c (inside_main_func): Look for "main" in the minimal
4006 symbol table.
4007 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4008 identical.
4009
4010 2003-07-15 Andrew Cagney <cagney@redhat.com>
4011
4012 * complaints.c (struct explanation): Define.
4013 (struct complaints): Change type of "explanation" to "struct
4014 explanation".
4015 (symfile_explanations): Convert to a "struct explanation" table.
4016 (vcomplaint): Update.
4017
4018 2003-07-15 Michal Ludvig <mludvig@suse.cz>
4019
4020 * x86-64-linux-nat.c (regmap): Removed.
4021 (supply_gregset, fill_gregset): Call
4022 x86_64_linux_(fill,supply)_gregset functions.
4023 * x86-64-linux-tdep.c (USER_*): New defines.
4024 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4025 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4026 New functions.
4027 (fetch_core_registers): Ditto.
4028 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4029 * x86-64-linux-tdep.h: New file.
4030 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4031 and core-regset.o.
4032 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4033
4034 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4035
4036 * x86-64-tdep.c (x86_64_store_return_value): Use
4037 regcache_cooked_write_part instead of regcache_cooked_write.
4038
4039 * configure.host: Add x86_64-*-freebsd*.
4040 * configure.tgt: Add x86_64-*-freebsd*.
4041 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4042 * amd64fbsd-nat.c: New file.
4043 * amd64fbsd-tdep.c: New file.
4044 * config/i386/nm-fbsd64.h: New file.
4045 * config/i386/fbsd64.mh: New file.
4046 * config/i386/fbsd64.mt: New file.
4047
4048 2003-07-11 Mark Kettenis <kettenis@gnu.org>
4049
4050 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4051 `sc_regs_offset' and `sc_fpregs_offset'.
4052 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4053 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4054 (alpha_sigtramp_register_address): Rewrite to use new members of
4055 `struct gdbarch_tdep'.
4056 (alpha_gdbarch_init): Initialize new members of struct
4057 gdbarch_tdep'.
4058 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4059 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4060 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4061 (alphafbsd_pc_in_sigtramp): Implement.
4062 (alphafbsd_sigtramp_offset): New function.
4063 (alphafbsd_sigcontext_addr): New function.
4064 (alphafbsd_init_abi): Initialize signal trampoline related members
4065 of `struct gdbarch_tdep'.
4066 (_initialize_alphafbsd_tdep): Add prototype.
4067
4068 2003-07-11 Theodore A. Roth <troth@openavr.org>
4069
4070 * Makefile.in (install-only): Quote sed expression when generating
4071 transformed_name.
4072
4073 2003-07-11 Richard Henderson <rth@redhat.com>
4074
4075 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4076 * dwarf2-frame.c: Include complaints.h.
4077 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4078 variable initialization; return NULL on error.
4079 (decode_frame_entry): New.
4080
4081 2003-07-11 Andrew Cagney <cagney@redhat.com>
4082
4083 * frame.h (frame_address_in_block): Delete declaration.
4084 * blockframe.c (frame_address_in_block): Delete function.
4085 (get_frame_block): Use get_frame_address_in_block.
4086 (block_innermost_frame): Ditto.
4087 * stack.c (print_frame, backtrace_command_1): Ditto.
4088
4089 * frame.h (get_frame_address_in_block): Declare.
4090 (frame_unwind_address_in_block): Declare.
4091 * frame.c (frame_unwind_address_in_block): New function.
4092 (get_frame_address_in_block): New function.
4093
4094 2003-07-10 Andrew Cagney <cagney@redhat.com>
4095
4096 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4097 pre-default. Note: re-generate has no effect.
4098
4099 2003-07-10 Andrew Cagney <cagney@redhat.com>
4100
4101 * gdbarch.sh: When a variable, but not a function, compare against
4102 0. Fix problem in previous patch.
4103 * gdbarch.c: Re-generate.
4104
4105 2003-07-10 Andrew Cagney <cagney@redhat.com>
4106
4107 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4108 functions against NULL, not 0.
4109 * gdbarch.c: Re-generate.
4110
4111 2003-07-10 Fred Fish <fnf@ninemoons.com>
4112
4113 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4114 null string instead of a null pointer.
4115 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4116
4117 2003-07-09 Michael Snyder <msnyder@redhat.com>
4118
4119 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4120
4121 2003-07-09 Mark Kettenis <kettenis@gnu.org>
4122
4123 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4124 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4125 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4126 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4127 * x86-64-tdep.c: ... from here.
4128
4129 2003-07-09 Andreas Schwab <schwab@suse.de>
4130
4131 * m68k-tdep.h (enum struct_return): Define.
4132 (struct gdbarch_tdep): Add struct_return.
4133 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4134 bytes are padded to the right, not to the left. Pass struct value
4135 address in register %a1, not on stack.
4136 (m68k_use_struct_convention): New function.
4137 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4138 struct_return in tdep to pcc_struct_return.
4139 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4140 reg_struct_return.
4141
4142 2003-07-09 Joel Brobecker <brobecker@gnat.com>
4143
4144 * somread.c (som_symfile_offsets): Fix compilation error.
4145
4146 2003-07-09 Andrew Cagney <cagney@redhat.com>
4147
4148 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4149 Add comments about the checks.
4150
4151 2003-07-08 Andrew Cagney <cagney@redhat.com>
4152
4153 * Makefile.in: Make dependency section headers consistent.
4154 (config_h): Move to $BUILD headers section.
4155 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4156 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4157 (ada-exp.tab.c): Move to YACC/LEX section.
4158 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4159 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4160
4161 2003-07-08 Kris Warkentin <kewarken@qnx.com>
4162
4163 * nto-procfs.c: Cleaned up a bunch of ARI hits.
4164 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4165 of strerror with safe_strerror, use ISO C function definitions,
4166 and replace instances of sprintf with snprintf.
4167
4168 2003-07-07 Andrew Cagney <cagney@redhat.com>
4169
4170 * frame.c (get_prev_frame): Enable check for identical frames.
4171 Update comments. Update error messages.
4172
4173 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4174
4175 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4176
4177 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4178
4179 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4180 sort_symtab_syms, no longer necessary.
4181
4182 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4183
4184 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4185
4186 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4187
4188 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4189 (mips_register_byte): Likewise.
4190
4191 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4192
4193 * Makefile.in (sparc_tdep_h): New.
4194 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4195 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4196 * sparc-linux-nat.c: Include "sparc-tdep.h".
4197 * sparc-nat.c: Likewise.
4198 * sparc-tdep.c: Likewise.
4199 * sparc64nbsd-nat.c: Likewise.
4200 * sparcnbsd-nat.c: Likewise.
4201 * sparcnbsd-tdep.c: Likewise.
4202 * sparc-tdep.h: New file.
4203 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4204 and sparc_npc_regnum.
4205
4206 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4207
4208 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4209 (mips_linux_cannot_store_register): List supported instead of
4210 unsupported registers.
4211
4212 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4213
4214 * disasm.c (dump_insns): Separate instructions from addresses.
4215
4216 2003-07-07 Andreas Schwab <schwab@suse.de>
4217
4218 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4219 dependencies.
4220 * m68k-tdep.c (NUM_FREGS): Delete.
4221 (SIG_PC_FP_OFFSET): Delete.
4222 (TARGET_M68K): Delete.
4223 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4224 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4225 P_MOVEL_SP, P_MOVEML_SP): Define.
4226 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4227 P_TRAP): Delete.
4228 (m68k_register_raw_size): Delete.
4229 (m68k_register_virtual_size): Delete.
4230 (m68k_register_type): Renamed from m68k_register_virtual_type and
4231 add gdbarch argument.
4232 (m68k_store_struct_return): Delete.
4233 (m68k_deprecated_extract_return_value): Delete.
4234 (m68k_deprecated_extract_struct_value_address): Delete.
4235 (m68k_frame_chain): Delete.
4236 (m68k_frame_saved_pc): Delete.
4237 (m68k_fix_call_dummy): Delete.
4238 (m68k_push_dummy_frame): Delete.
4239 (m68k_pop_frame): Delete.
4240 (m68k_extract_return_value): New function.
4241 (m68k_store_return_value): Rewrite using regcache.
4242 (m68k_extract_struct_value_address): Rewrite using regcache.
4243 (m68k_push_dummy_call): New function.
4244 (struct m68k_frame_cache): Define.
4245 (m68k_alloc_frame_cache): New function.
4246 (m68k_analyze_frame_setup): New function.
4247 (m68k_analyze_register_saves): New function.
4248 (m68k_analyze_prologue): New function.
4249 (m68k_skip_prologue): Rewrite using above functions.
4250 (m68k_unwind_pc): New function.
4251 (m68k_frame_cache): New function.
4252 (m68k_frame_this_id): New function.
4253 (m68k_frame_prev_register): New function.
4254 (m68k_frame_unwind): New variable.
4255 (m68k_frame_p): New function.
4256 (m68k_sigtramp_frame_cache): New function.
4257 (m68k_sigtramp_frame_this_id): New function.
4258 (m68k_sigtramp_frame_prev_register): New function.
4259 (m68k_sigtramp_frame_unwind): New variable.
4260 (m68k_sigtramp_frame_p): New function.
4261 (m68k_frame_base_address): New function.
4262 (m68k_frame_base): New function.
4263 (m68k_unwind_dummy_id): New function.
4264 (fill_gregset): Use regcache_collect.
4265 (fill_fpregset): Likewise.
4266 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4267 defined.
4268 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4269 deprecated_init_frame_pc, deprecated_store_struct_return,
4270 deprecated_extract_return_value, deprecated_store_return_value,
4271 deprecated_frame_chain, deprecated_frame_saved_pc,
4272 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4273 deprecated_register_virtual_size,
4274 deprecated_max_register_raw_size,
4275 deprecated_max_register_virtual_size,
4276 deprecated_register_virtual_type, deprecated_register_size,
4277 deprecated_register_byte, deprecated_register_bytes,
4278 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4279 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4280 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4281 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4282 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4283 deprecated_push_dummy_frame, deprecated_pop_frame,
4284 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4285 only if SYSCALL_TRAP is defined. Set extract_return_value,
4286 store_return_value, extract_struct_value_address, register_type,
4287 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4288 predicates.
4289 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4290 M68K_MAX_REGISTER_SIZE): Define.
4291 (struct m68k_sigtramp_info): Define.
4292 (struct gdbarch_tdep): Add get_sigtramp_info.
4293 * m68klinux-nat.c (fetch_register): Use register_size instead of
4294 REGISTER_RAW_SIZE. Don't put assignment in if.
4295 (store_register): Likewise.
4296 (fetch_inferior_registers): Likewise.
4297 (store_inferior_registers): Likewise.
4298 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4299 (m68k_linux_frame_saved_pc): Delete.
4300 (m68k_linux_sigcontext_reg_offset,
4301 m68k_linux_ucontext_reg_offset): Define.
4302 (m68k_linux_get_sigtramp_info): New function.
4303 (m68k_linux_extract_return_value): Rewrite using regcache.
4304 (m68k_linux_store_return_value): Likewise.
4305 (m68k_linux_extract_struct_value_address): Likewise.
4306 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4307 Don't set deprecated_frame_saved_pc,
4308 deprecated_extract_return_value, deprecated_store_return_value,
4309 deprecated_extract_struct_value_address. Set
4310 extract_return_value, store_return_value,
4311 extract_struct_value_address.
4312
4313 2003-07-07 Andrew Cagney <cagney@redhat.com>
4314
4315 * expprint.c: Include "user-regs.h" instead of "frame.h".
4316 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4317 frame_map_regnum_to_name.
4318 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4319 (frame_map_name_to_regnum): Simplify, call
4320 user_reg_map_name_to_regnum.
4321 (frame_map_regnum_to_name): Simplify, call
4322 user_reg_map_regnum_to_name.
4323 (frame_register_unwind): Update.
4324 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4325 (_initialize_frame_reg): Call user_reg_add_builtin.
4326 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4327 (value_of_register): Use value_of_user_reg.
4328 * eval.c (evaluate_subexp_standard): Update.
4329 * parse.c (write_dollar_variable): Update.
4330 * d10v-tdep.c (d10v_print_registers_info): Update.
4331 * infcmd.c (registers_info): Update.
4332 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4333 (builtin_regs_h): Delete macro.
4334 (user_regs_h): Define.
4335 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4336 (builtin-regs.o): Delete target.
4337 (user-regs.o): Specify dependencies.
4338 (expprint.o): Update dependencies.
4339 (findvar.o): Update dependencies.
4340 (frame.o): Update dependencies.
4341 (std-regs.o): Update dependencies.
4342
4343 2003-07-06 Christopher Faylor <cgf@redhat.com>
4344
4345 * win32-nat.c (solib_symbols_add): Use one variable for all section
4346 address stuff. Pass variable rather than address of variable to
4347 safe_symbol_file_add.
4348
4349 2003-07-06 Andreas Schwab <schwab@suse.de>
4350
4351 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4352
4353 2003-07-04 Joel Brobecker <brobecker@gnat.com>
4354
4355 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4356
4357 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4358
4359 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4360
4361 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4362
4363 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4364 * config/i386/nto.mh: New file.
4365 * config/i386/nm-nto.h: New file.
4366 * configure.host: Add i[3456]86-*-nto*.
4367
4368 2003-07-03 Joel Brobecker <brobecker@gnat.com>
4369
4370 * remote-vx.c (vx_add_symbols): Fix compilation error.
4371
4372 2003-07-03 Andrew Cagney <cagney@redhat.com>
4373
4374 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4375 * gdbarch.h, gdbarch.c: Re-generate.
4376 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4377 (legacy_register_name): Declare.
4378 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4379 (REGISTER_NAME): Define.
4380 * sparc-tdep.c (legacy_register_name): New function.
4381 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4382 (REGISTER_NAME): Define.
4383 (hppa64_register_name): Declare.
4384 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4385 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4386 (hppa64_register_name): New function.
4387 (hppa_register_name): New function.
4388 * arch-utils.c (legacy_register_name): Delete.
4389 * arch-utils.h (legacy_register_name): Delete.
4390
4391 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
4392
4393 * cli/cli-interp.c (cli_interpreter_resume): Update the
4394 cli_uiout's stream to gdb_stdout.
4395
4396 2003-07-03 Andrew Cagney <cagney@redhat.com>
4397
4398 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4399 predicate.
4400 * gdbarch.h, gdbarch.c: Re-generate.
4401 * regcache.c (init_regcache_descr): Use legacy code when either
4402 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4403
4404 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4405
4406 * NEWS: Move "set logging" entry into GDB 6.0 section.
4407
4408 2003-07-02 Jim Blandy <jimb@redhat.com>
4409
4410 * s390-tdep.c (struct frame_extra_info): new member:
4411 'stack_bought_valid'.
4412 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4413 initialize fextra_info->stack_bought.
4414 (s390_frameless_function_invocation): Don't trust the value of
4415 fextra_info_ptr->stack_bought unless
4416 fextra_info->stack_bought_valid is set.
4417
4418 New S390 prologue analyzer.
4419 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4420 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4421 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4422 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4423 compute_x_addr, s390_on_stack, s390_store,
4424 s390_get_signal_frame_info): New functions.
4425 (S390_NUM_SPILL_SLOTS): New macro.
4426 (s390_get_frame_info): Rewritten.
4427 (is_arg_reg): Deleted.
4428
4429 Break out the decoding of S/390 instructions into separate
4430 functions, to make it more legible, and easier to check
4431 against the spec.
4432 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4433 is_rx, is_rxe): New functions.
4434 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4435 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4436 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4437 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4438 enums for opcode values. (Is this an improvement?)
4439
4440 2003-07-02 Andrew Cagney <cagney@redhat.com>
4441
4442 * i386-tdep.c: Revert change committed as part of trad-frame code
4443 below.
4444
4445 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4446
4447 * breakpoint.c (insert_catchpoint): Make static.
4448
4449 2003-07-02 Andreas Schwab <schwab@suse.de>
4450
4451 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4452 former ia64_push_arguments and ia64_push_return_address, and use
4453 regcache functions instead of read/write_register.
4454 (ia64_gdbarch_init): Set push_dummy_call instead of
4455 deprecated_push_arguments and deprecated_push_return_address.
4456
4457 2003-07-01 Andreas Jaeger <aj@suse.de>
4458
4459 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4460 before the call.
4461 Set %rax only to number of SSE registers used.
4462
4463 2003-07-01 Andrew Cagney <cagney@redhat.com>
4464
4465 * trad-frame.h: Update comments, a -1 .addr is reserved.
4466 (trad_frame_value_p, trad_frame_addr_p): Declare.
4467 (trad_frame_reg_p): Declare.
4468 (trad_frame_set_value): Rename trad_frame_register_value.
4469 (trad_frame_set_unknown): Declare.
4470 * trad-frame.c (trad_frame_realreg_p): New function.
4471 (trad_frame_addr_p, trad_frame_value_p): New function.
4472 (trad_frame_set_unknown): New function.
4473 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4474 (trad_frame_prev_register): Use trad_frame_realreg_p,
4475 trad_frame_addr_p and trad_frame_value_p.
4476 (trad_frame_set_value): Rename trad_frame_register_value.
4477 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4478 and trad_frame_set_value.
4479
4480 2003-06-30 Jim Blandy <jimb@redhat.com>
4481
4482 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4483 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4484 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4485 for 16 registers, and then 32 more bytes.
4486 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4487 New macros.
4488 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4489 Move up in the file, since it's now used by is_simple_arg.
4490 (is_simple_arg): Don't assume registers are four bytes long.
4491 Exclude all double arguments. Extended floats are not simple
4492 args.
4493 (is_power_of_two): New function.
4494 (pass_by_copy_ref): Call is_power_of_two, and check that the
4495 length fits in a register, rather than listing all the acceptable
4496 sizes. Extended floats are not passed by reference.
4497 (s390_push_arguments): Don't assume registers are four bytes long.
4498 Reserve an argument register to point to the buffer for structures
4499 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4500 S390_STACK_FRAME_OVERHEAD.
4501
4502 2003-06-30 Andreas Schwab <schwab@suse.de>
4503
4504 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4505 format error message.
4506
4507 2003-06-30 Joel Brobecker <brobecker@gnat.com>
4508
4509 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4510
4511 2003-06-30 David Carlton <carlton@kealia.com>
4512
4513 Band-aid for PR c++/1245.
4514 * Makefile.in (cp-support.o): Depend on complaints_h.
4515 * cp-support.c: Include complaints.h. Add declaration for
4516 find_last_component.
4517 (cp_find_first_component): Separate code into
4518 cp_find_first_component_aux.
4519 (cp_find_first_component_aux): Call demangled_name_complaint.
4520 (demangled_name_complaint): New.
4521
4522 2003-06-30 Andrew Cagney <cagney@redhat.com>
4523
4524 * remote.c (remote_write_bytes): Explicitly compute and then use
4525 the payload size. Update comments to reflect. Fixes problem of
4526 GDB not sending small packets as found by Fred Fish.
4527
4528 2003-06-30 Andrew Cagney <cagney@redhat.com>
4529
4530 * remote.c (remote_async_wait): Fix -Wformat problem.
4531
4532 2003-06-29 Andrew Cagney <cagney@redhat.com>
4533
4534 * remote.c (remote_wait): Call error, and not warning, when the
4535 packet is corrupt.
4536 (remote_async_wait): Ditto.
4537
4538 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4539
4540 * sparc-tdep.c (sparc_y_regnum): Make external again.
4541
4542 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4543
4544 * cli/cli-logging.c (pop_output_files): Add void to function
4545 definition.
4546
4547 2003-06-29 Andrew Cagney <cagney@redhat.com>
4548
4549 * frame.c (frame_register_unwind): Use unsigned char when dumping
4550 the buffer contents.
4551
4552 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
4553
4554 * cli/cli-logging.c: New file.
4555 * cli-out.c (struct ui_out_data): Add original_stream.
4556 (cli_redirect): New function.
4557 (cli_ui_out_impl): Add cli_redirect.
4558 (cli_out_new): Initialize original_stream.
4559 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4560 (uo_redirect, ui_out_redirect): New.
4561 * ui-out.h (struct ui_out_impl): Add redirect member.
4562 (redirect_ftype): New.
4563 (ui_out_redirect): Add prototype.
4564 * Makefile.in: Add rules for cli-logging.c.
4565 * NEWS: Mention "set logging".
4566
4567 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4568
4569 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4570
4571 2003-06-27 Andrew Cagney <cagney@redhat.com>
4572
4573 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4574 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4575 * avr-tdep.c (avr_call_dummy_address): Delete function.
4576 (avr_gdbarch_init): Do not set call_dummy_address.
4577
4578 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4579
4580 * symfile.c (syms_from_objfile): Move variables to inner block.
4581 Move the checks for the non-mainline case a bit earlier to avoid
4582 doing some useless computations.
4583
4584 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4585
4586 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4587
4588 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
4589
4590 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4591 sections.
4592
4593 2003-06-26 Michael Chastain <mec@shout.net>
4594
4595 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4596 gdb/testsuite/gdb.c++/pr-1210.exp.
4597
4598 2003-06-26 Andrew Cagney <cagney@redhat.com>
4599
4600 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4601 altivec_expression.h and altivec_registers.h.
4602
4603 2003-06-26 Andrew Cagney <cagney@redhat.com>
4604
4605 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4606 info->mach when MIPS16. Patch suggested by Fred Fish.
4607
4608 2003-06-26 Andrew Cagney <cagney@redhat.com>
4609
4610 * utils.c (internal_vproblem): Print the problem to a reason
4611 buffer and then pass to query. Make the msg variable more local.
4612
4613 2003-06-26 Andrew Cagney <cagney@redhat.com>
4614
4615 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4616 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4617 * gdbarch.h, gdbarch.c: Re-generate.
4618 * frame-base.c (default_frame_args_address): Update. Use
4619 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4620 not available.
4621 (default_frame_locals_address): Ditto for
4622 DEPRECATED_FRAME_LOCALS_ADDRESS.
4623 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4624 (vax_frame_num_args): Update.
4625 (vax_gdbarch_init): Update.
4626 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4627 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4628 * mcore-tdep.c (mcore_gdbarch_init): Update.
4629 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4630 * ia64-tdep.c (ia64_gdbarch_init): Update.
4631 * symtab.h (address_class): Update comments.
4632 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4633 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4634 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4635 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4636 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4637 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4638 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4639 * alpha-mdebug-tdep.c: Update.
4640 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4641
4642 2003-06-26 Andreas Jaeger <aj@suse.de>
4643
4644 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4645 of SSE registers so that varargs functions work. Rework handling
4646 of passing arguments on the stack.
4647 (x86_64_store_return_value): Return double and float values in SSE
4648 register.
4649
4650 2003-06-24 Michael Chastain <mec@shout.net>
4651
4652 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4653 the "constructor breakpoints ignored" bug.
4654
4655 2003-06-25 David Carlton <carlton@kealia.com>
4656
4657 * MAINTAINERS: Update e-mail address.
4658
4659 2003-06-24 Jim Blandy <jimb@redhat.com>
4660
4661 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4662
4663 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4664 function.
4665 (ppc_linux_init_abi): Register it as the
4666 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4667
4668 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4669 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4670 method.
4671
4672 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4673 (ppc64_standard_linkage_target): Use it.
4674
4675 2003-06-23 Andrew Cagney <cagney@redhat.com>
4676
4677 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4678 for 0 "int0" and 4 "int32" sized registers.
4679 * gdbtypes.c (builtin_type_int0): Define.
4680 (build_gdbtypes): Initialize builtin_type_int0.
4681 * gdbtypes.h (builtin_type_int0): Declare.
4682
4683 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4684
4685 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4686 as characters are unsigned.
4687
4688 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4689
4690 PR gdb/1179
4691 * dwarfread.c (struct_type): Skip static fields without crashing.
4692
4693 2003-06-22 Andrew Cagney <cagney@redhat.com>
4694
4695 GDB 6.0 branch created.
4696 * README: Update.
4697 * PROBLEMS: Update. Empty.
4698 * NEWS: Update.
4699
4700 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4701
4702 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4703 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4704
4705 2003-06-22 Andrew Cagney <cagney@redhat.com>
4706
4707 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4708 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4709 Velikov.
4710
4711 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4712
4713 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4714 compilers.
4715
4716 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4717
4718 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4719 argument of val_print.
4720 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4721 to the address argument of baseclass_offset or target_read_memory.
4722 Do add it to the argument of cp_print_value_fields.
4723
4724 2003-06-21 Andrew Cagney <cagney@redhat.com>
4725
4726 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4727 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4728 instead of 0..NUM_REGS.
4729 (mips_register_reggroup_p): New function.
4730 (mips_pseudo_register_write): New function.
4731 (mips_pseudo_register_read): New function.
4732 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4733 based on the register's type.
4734 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4735 cooked.
4736 (mips_get_saved_register): Simplify. Assert that REGNO is a
4737 pseudo / cooked.
4738 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4739 (mips_register_type): Replace mips_register_virtual_type. Map
4740 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4741 when available.
4742 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4743 that the register is cooked / virtual.
4744 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4745 Only get the extra info when needed.
4746 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4747 (mips32_heuristic_proc_desc): Fetch the cooked register.
4748 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4749 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4750 (mips_print_register): Use gdbarch_register_type, instead of
4751 REGISTER_VIRTUAL_TYPE.
4752 (print_gp_register_row): Use gdbarch_register_type, instead of
4753 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4754 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4755 Print the pseudo / cooked registers.
4756 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4757 Print the pseudo / cooked registers.
4758 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4759 REG_NUM is pseudo / cooked.
4760 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4761 (mips_n32n64_xfer_return_value): Ditto.
4762 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4763 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4764 (mips_register_sim_regno): New function.
4765 (mips_gdbarch_init): Set deprecated_register_byte,
4766 register_group_p, pseudo_register_write, pseudo_register_read,
4767 register_sim_regno, and num_pseudo_regs. Set register_type,
4768 instead of register_virtual_type.
4769 * Makefile.in (mips-tdep.o): Update dependencies.
4770 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4771 REGISTER_VIRTUAL_TYPE.
4772 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4773 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4774 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4775 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4776 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4777
4778 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4779
4780 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4781 * cli/cli-cmds.c: Include "gdb_vfork.h".
4782 (shell_escape): Use vfork.
4783
4784 2003-06-21 Andrew Cagney <cagney@redhat.com>
4785
4786 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4787 32 bit floating-point register saves.
4788
4789 * frame.h (deprecated_unwind_get_saved_register): Delete.
4790 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4791 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4792 and deprecated_get_next_frame_hack instead of
4793 deprecated_unwind_get_saved_register.
4794
4795 * mips-tdep.c (mips_dump_tdep): Do not print
4796 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4797
4798 * frame.c (get_frame_register): New function.
4799 (frame_unwind_register_signed): New function.
4800 (get_frame_register_signed): New function.
4801 (frame_unwind_register_unsigned): New function.
4802 (get_frame_register_unsigned): New function.
4803 * frame.h: Add comments on naming schema.
4804 (get_frame_register, frame_unwind_register_signed): Declare.
4805 (get_frame_register_signed, get_frame_register_signed): Declare.
4806 (frame_unwind_register_unsigned): Declare.
4807 (get_frame_register_unsigned): Declare.
4808
4809 2003-06-20 Theodore A. Roth <troth@openavr.org>
4810
4811 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4812
4813 2003-06-20 Theodore A. Roth <troth@openavr.org>
4814
4815 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4816 (avr_read_sp): Ditto.
4817
4818 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
4819
4820 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4821 * config/arm/nm-linux.h: Likewise.
4822 * config/arm/tm-linux.h: Likewise.
4823 * config/ia64/nm-linux.h: Likewise.
4824 * config/ia64/tm-ia64.h: Likewise.
4825 * config/s390/tm-linux.h: Likewise.
4826 * config/s390/tm-s390.h: Likewise.
4827 * s390-nat.c: Likewise.
4828 * s390-tdep.c: Likewise.
4829
4830 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4831 * config/ia64/linux.mt: Likewise.
4832 * config/m68k/linux.mh: Likewise.
4833 * config/mips/linux.mt: Likewise.
4834 * config/powerpc/linux.mh: Likewise.
4835 * config/sh/linux.mt: Likewise.
4836
4837 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4838
4839 * solib.c (solib_open): Change tests for whether to search
4840 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4841 comments.
4842
4843 2003-06-19 Theodore A. Roth <troth@openavr.org>
4844
4845 * avr-tdep.c (avr_frame_address): Delete function.
4846 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4847 set_gdbarch_frame_args_address.
4848
4849 2003-06-19 Andrew Cagney <cagney@redhat.com>
4850
4851 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4852 (REGISTER_CONVERT_FROM_TYPE): Delete.
4853 (mips_register_convert_to_type): Delete declaration.
4854 (mips_register_convert_from_type): Delete declaration.
4855 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4856 kernel/.
4857
4858 2003-06-19 Michael Snyder <msnyder@redhat.com>
4859
4860 * linux-nat.h: New file.
4861 * linux-nat.c: Include linux-nat.h.
4862 * lin-lwp.c: Include linux-nat.h.
4863 Move struct lwp_info def to linux-nat.h.
4864 * linux-proc.c: Include linux-nat.h.
4865 (linux_make_note_section): Iterate over lwps instead of threads.
4866 (linux_do_thread_registers): Use lwp instead of merged pid.
4867 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4868 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4869 Add dependency on linux_nat_h.
4870
4871 2003-06-19 Theodore A. Roth <troth@openavr.org>
4872
4873 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4874
4875 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4876
4877 * varobj.c (get_type, get_target_type): Use check_typedef.
4878
4879 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4880
4881 * breakpoint.c (insert_catchpoint): Call internal_error.
4882
4883 2003-06-19 Theodore A. Roth <troth@openavr.org>
4884
4885 * avr-tdep.c (avr_push_dummy_code): Delete function.
4886 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4887
4888 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4889
4890 * arch-utils.c (default_prepare_to_proceed): Remove.
4891 (generic_prepare_to_proceed): Remove.
4892 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4893 (generic_prepare_to_proceed): Remove prototype.
4894 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4895 * gdbarch.c: Regenerate.
4896 * gdbarch.h: Regenerate.
4897 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4898 * hppah-nat.c (hppa_switched_threads): Remove.
4899 * infrun.c (prepare_to_proceed): New static function, copied from
4900 generic_prepare_to_proceed. Remove select_it argument.
4901 (proceed): Call prepare_to_proceed.
4902 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4903 variables.
4904 (ptrace_wait): Don't set the removed variables.
4905 (hppa_switched_threads): Remove.
4906 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4907 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4908 (lin_lwp_prepare_to_proceed): Remove prototype.
4909 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4910 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4911
4912 2003-06-18 Theodore A. Roth <troth@openavr.org>
4913
4914 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4915 trad-frame.h.
4916 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4917 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4918 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4919 (AVR_PROLOGUE_*): Enumerate prologue types.
4920 (struct frame_extra_info): Remove.
4921 (struct avr_unwind_cache): Define.
4922 (avr_write_sp): Delete function.
4923 (avr_read_fp): Ditto.
4924 (avr_init_extra_frame_info): Ditto.
4925 (avr_pop_frame): Ditto.
4926 (avr_frame_saved_pc): Ditto.
4927 (avr_saved_pc_after_call): Ditto.
4928 (avr_push_return_address): Ditto.
4929 (avr_frame_chain): Ditto.
4930 (avr_store_struct_return): Ditto.
4931 (avr_push_arguments): Ditto.
4932 (avr_scan_prologue): Update comments. Changed to set up the info for
4933 cache unwinding. Now returns end of prologue PC.
4934 (avr_skip_prologue): Better handling of functions lacking a prologue
4935 by using avr_scan_prologue.
4936 (avr_scan_arg_moves): New function.
4937 (avr_saved_regs_unwinder): Ditto.
4938 (avr_frame_unwind_cache): Ditto.
4939 (avr_unwind_pc): Ditto.
4940 (avr_frame_this_id): Ditto.
4941 (avr_frame_prev_register): Ditto.
4942 (avr_frame_p): Ditto.
4943 (avr_frame_base_address ): Ditto.
4944 (avr_unwind_dummy_id): Ditto.
4945 (avr_push_dummy_code): Ditto.
4946 (push_stack_item): Ditto.
4947 (pop_stack_item): Ditto.
4948 (avr_push_dummy_call): Ditto.
4949 (struct stack_item): Define.
4950 (avr_frame_unwind): Declare structure.
4951 (avr_frame_base): Ditto.
4952 (avr_gdbarch_init): Remove calls to
4953 set_gdbarch_deprecated_init_frame_pc,
4954 set_gdbarch_deprecated_target_read_fp,
4955 set_gdbarch_deprecated_dummy_write_sp,
4956 set_gdbarch_deprecated_fp_regnum,
4957 set_gdbarch_deprecated_push_arguments,
4958 set_gdbarch_deprecated_push_return_address,
4959 set_gdbarch_deprecated_pop_frame,
4960 set_gdbarch_deprecated_store_struct_return,
4961 set_gdbarch_deprecated_frame_init_saved_regs,
4962 set_gdbarch_deprecated_init_extra_frame_info,
4963 set_gdbarch_deprecated_frame_chain,
4964 set_gdbarch_deprecated_frame_saved_pc,
4965 set_gdbarch_deprecated_saved_pc_after_call.
4966 Add calls to set_gdbarch_push_dummy_call,
4967 set_gdbarch_push_dummy_code,
4968 frame_unwind_append_predicate,
4969 frame_base_set_default,
4970 set_gdbarch_unwind_dummy_id,
4971 set_gdbarch_unwind_pc.
4972 Wrap a long line.
4973
4974 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4975
4976 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4977 registers for H8/300S.
4978 (h8300_print_registers_info): Ditto.
4979 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4980
4981 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4982
4983 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4984 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4985 (lin_lwp_wait): Likewise. Update comments.
4986 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4987 (pull_pid_from_list, linux_record_stopped_pid): New.
4988
4989 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4990
4991 * ada-lang.c (scan_discrim_bound): Name first argument.
4992 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4993 declared by ALL_BLOCK_SYMBOLS.
4994
4995 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4996
4997 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4998 ("regcache.h"): Include it.
4999 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5000
5001 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5002
5003 * NEWS: Mention gdbserver detach change and "disconnect" command.
5004 * infcmd.c (disconnect_command): New function.
5005 (_initialize_infcmd): Add ``disconnect'' command.
5006 * remote.c (remote_async_detach): Delete.
5007 (remote_detach): Merge remote_async_detach.
5008 (remote_disconnect): New.
5009 (init_remote_ops): Set to_disconnect.
5010 (init_remote_cisco_ops): Likewise.
5011 (init_remote_async_ops): Likewise. Use remote_detach.
5012 * target.c (cleanup_target): Default to_disconnect.
5013 (update_current_target): Inherit to_disconnect.
5014 (target_disconnect, debug_to_disconnect): New functions.
5015 (setup_target_debug): Set to_disconnect.
5016 * target.h (struct target_ops): Add to_disconnect.
5017 (target_disconnect): Add prototype.
5018
5019 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5020
5021 * breakpoint.c (insert_catchpoint): New function.
5022 (insert_breakpoints): Use catch_exceptions to call
5023 insert_catchpoint. Disable catchpoints if they fail to insert.
5024
5025 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5026
5027 * symfile.c (reread_symbols): Clear sym_private.
5028
5029 2003-06-17 Andrew Cagney <cagney@redhat.com>
5030
5031 * trad-frame.h (struct frame_info): Add opaque declaration.
5032 * remote-fileio.h (struct cmd_list_element): Add opaque
5033 declaration.
5034 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5035 comments.
5036
5037 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5038
5039 * remote.c (remote_prepare_to_store): Replace call to
5040 deprecated_read_register_bytes with multiple regcache_raw_read
5041 calls.
5042
5043 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5044
5045 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5046 (nto_find_and_open_solib): Likewise.
5047 (nto_init_solib_absolute_prefix): Likewise.
5048 (_initialize_nto_tdep): Fix indentation.
5049
5050 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5051
5052 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5053
5054 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5055
5056 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5057
5058 2003-06-17 Jim Blandy <jimb@redhat.com>
5059
5060 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5061
5062 2003-06-16 Theodore A. Roth <troth@openavr.org>
5063
5064 * avr-tdep.c (avr_extract_return_value): New function.
5065 (avr_gdbarch_init): Set extract_return_value method.
5066
5067 2003-06-16 Andrew Cagney <cagney@redhat.com>
5068
5069 * frame.h (deprecated_get_next_frame_hack): Declare.
5070 * frame.c (legacy_saved_regs_prev_register): Only require
5071 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5072 there are always saved regs.
5073 (deprecated_generic_get_saved_register): Do not require
5074 DEPRECATED_FRAME_INIT_SAVED_REGS.
5075 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5076 use frame ID unwind instead.
5077 (deprecated_get_next_frame_hack): New function.
5078
5079 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5080
5081 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5082 (h8300_push_dummy_call): ...this function. Some minor optimization.
5083 (h8300_push_return_address): Remove.
5084 (h8300_gdbarch_init): Remove calls to
5085 set_gdbarch_deprecated_dummy_write_sp,
5086 set_gdbarch_deprecated_push_arguments and
5087 set_gdbarch_deprecated_push_return_address.
5088 Add call to set_gdbarch_push_dummy_call.
5089
5090 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5091
5092 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5093 (E_PSEUDO_EXR_REGNUM): Ditto.
5094 (h8300_is_argument_spill): Check for instructions moving argument
5095 registers into safe registers.
5096 (h8300_skip_prologue): Check for stm instruction to push registers
5097 used for register variables onto stack.
5098 (gdb_print_insn_h8300): Remove.
5099 (h8300_examine_prologue): Add a comment.
5100 (h8300_register_name): Take pseudo registers into account.
5101 (h8300s_register_name): Ditto.
5102 (h8300sx_register_name): Ditto.
5103 (h8300_print_register): Ditto.
5104 (h8300_print_registers_info): Define "nice" printing order.
5105 (h8300_saved_pc_after_call): Take pseudo registers into account.
5106 (h8300_register_type): Ditto. Return type used for remote connection
5107 when requesting real CCR or EXR register, return actual type when
5108 requesting pseudo CCR or EXR.
5109 (h8300_pseudo_register_read): New function.
5110 (h8300_pseudo_register_write): Ditto.
5111 (h8300_dbg_reg_to_regnum): Ditto.
5112 (h8300s_dbg_reg_to_regnum): Ditto.
5113 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5114 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5115 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5116 set_gdbarch_print_insn architecture dependent.
5117 Call set_gdbarch_pseudo_register_read and
5118 set_gdbarch_pseudo_register_write.
5119 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5120
5121 2003-06-16 Andrew Cagney <cagney@redhat.com>
5122
5123 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5124 * gdbarch.h, gdbarch.c: Re-generate.
5125 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5126 * s390-tdep.c (s390_gdbarch_init): Update.
5127 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5128 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5129 * mips-tdep.c (mips_gdbarch_init): Update.
5130 * mcore-tdep.c (mcore_gdbarch_init): Update.
5131 * cris-tdep.c (cris_gdbarch_init): Update.
5132 * infcall.c (call_function_by_hand): Update.
5133 * ia64-tdep.c (ia64_push_arguments): Update comment.
5134 * frame.c (legacy_get_prev_frame): Do not assume
5135 SAVE_DUMMY_FRAME_TOS_P.
5136 * dummy-frame.c (find_dummy_frame): Update comment.
5137
5138 2003-06-16 Andrew Cagney <cagney@redhat.com>
5139
5140 * regcache.c (do_cooked_read): Do not use register_valid_p.
5141
5142 2003-06-15 Theodore A. Roth <troth@openavr.org>
5143
5144 * avr-tdep.c (avr_register_type): Remove a blank line.
5145 (avr_scan_prologue): Correct some comments.
5146
5147 2003-06-15 Theodore A. Roth <troth@openavr.org>
5148
5149 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5150 prologue types.
5151 Properly scan prologues generated by gcc with the -mcall-prologues
5152 option.
5153 Add code to scan -mcall-prologues for mega devices.
5154
5155 2003-06-15 Theodore A. Roth <troth@openavr.org>
5156
5157 * avr-tdep.c (avr_register_byte): Delete function.
5158 (avr_register_raw_size): Delete function.
5159 (avr_register_virtual_size): Delete function.
5160 (avr_register_virtual_type): Delete function.
5161 (avr_register_type): New function.
5162 (avr_address_to_pointer): Remove unused code.
5163 (avr_read_fp): Need to read FP as two separate bytes due to change to
5164 avr_register_type() usage.
5165 (avr_gdbarch_init): Don't set deprecated_register_size.
5166 Don't set deprecated_register_bytes.
5167 Don't set deprecated_register_byte.
5168 Don't set deprecated_register_raw_size.
5169 Don't set deprecated_max_register_raw_size.
5170 Don't set deprecated_register_virtual_size.
5171 Don't set deprecated_max_register_virtual_size.
5172 Don't set deprecated_register_virtual_type.
5173 Set register_type method.
5174
5175 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
5176
5177 * Makefile.in (linux-nat.o): Add rule.
5178 * linux-nat.c: New file.
5179 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5180 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5181 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5182 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5183 * config/arm/linux.mh (NATDEPFILES): Likewise.
5184 * config/i386/linux.mh (NATDEPFILES): Likewise.
5185 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5186 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5187 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5188 * config/mips/linux.mh (NATDEPFILES): Likewise.
5189 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5190 * config/s390/s390.mh (NATDEPFILES): Likewise.
5191 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5192
5193 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5194
5195 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5196 replace out-of-date comment.
5197
5198 2003-06-15 Andrew Cagney <cagney@redhat.com>
5199
5200 * rdi-share/host.h (Fail): Change to a varargs function.
5201 * remote-rdi.c (Fail): Update.
5202
5203 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5204
5205 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5206 (i386_convert_register_p, i386_register_to_value,
5207 i386_register_from_value): Handle types longer than 8 bytes.
5208
5209 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5210
5211 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5212 Move floating-point code to new function in i387-tdep.c.
5213 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5214 New functions containing code moved here from i386-tdep.c.
5215 * i387-tdep.h: Add opaque declaration for `struct type'.
5216 (i387_register_to_value, i387_value_to_register): New prototypes.
5217 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5218 (x86_64_init_abi): Set convert_register_p, register_to_value and
5219 value_to_register here.
5220
5221 2003-06-14 Andrew Cagney <cagney@redhat.com>
5222
5223 * mips-tdep.c (mips_register_to_value): Make static.
5224 (mips_value_to_register): Make static.
5225 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5226 * ia64-tdep.c (ia64_register_raw_size): Make static.
5227 (ia64_register_virtual_size): Make static.
5228 (ia64_register_byte): Make static.
5229 * i387-tdep.c: Include "i387-tdep.h".
5230 (print_387_control_word): Delete function.
5231 (print_387_status_word): Delete function.
5232 (print_387_status_bits): Delete function.
5233 (print_387_control_bits): Delete function.
5234 * Makefile.in (i387-tdep.o): Update dependencies.
5235 * rdi-share/host.h (Fail): Declare.
5236 * remote-rdi.c (Fail): Update to match declaration.
5237
5238 2003-06-14 Andrew Cagney <cagney@redhat.com>
5239
5240 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5241 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5242 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5243 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5244 * README: Delete reference to remote-array.
5245 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5246 (remote-array.o): Delete target.
5247 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5248 * remote-array.c: Delete file.
5249
5250 2003-06-14 Andrew Cagney <cagney@redhat.com>
5251 Mark Kettenis <kettenis@gnu.org>
5252
5253 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5254 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5255 parameter with "frame".
5256 * gdbarch.h, gdbarch.c: Re-generate.
5257 * frame.h (put_frame_register): Declare.
5258 * frame.c (put_frame_register): New function.
5259 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5260 (legacy_register_to_value): Rewrite, use "frame" to get the
5261 register value.
5262 (legacy_value_to_register): Rewrite, use "frame" to find the
5263 register's location before storing.
5264 * arch-utils.h (legacy_convert_register_p): Update.
5265 (legacy_register_to_value, legacy_value_to_register): Update.
5266 * findvar.c (value_from_register): Rewrite, eliminate use of
5267 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5268 "frame" to REGISTER_TO_VALUE.
5269 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5270 lval_reg_frame_relative + lval_register branch of the switch. Do
5271 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5272 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5273 I386_EDI_REGNUM): New defines.
5274 (i386_next_regnum, i386_convert_register_p,
5275 i386_register_to_value, i386_value_to_register): New functions.
5276 (i386_register_convertible, i386_register_convert_to_virtual,
5277 i386_convert_to_raw): Remove functions.
5278 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5279 value_to_register instead of register_convertible,
5280 register_convert_to_virtual and register_convert_to_raw.
5281 * mips-tdep.c (mips_convert_register_p): New function.
5282 (mips_value_to_register): Replace mips_register_convert_from_type.
5283 (mips_register_to_value): Replace mips_register_convert_to_type.
5284 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5285 register_to_value.
5286 * alpha-tdep.c (alpha_convert_register_p): Update.
5287 (alpha_value_to_register): Update, store the register.
5288 (alpha_register_to_value): Update, fetch the register.
5289
5290 2003-06-14 Theodore A. Roth <troth@openavr.org>
5291
5292 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5293 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5294 Don't set deprecated_call_dummy_words.
5295 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5296 Don't set remote_translate_xfer_address.
5297 (avr_io_reg_read_command): Remove commented out debug printf.
5298 Wrap a long line.
5299
5300 2003-06-14 Theodore A. Roth <troth@openavr.org>
5301
5302 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5303 causes gdb to seg fault.
5304
5305 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
5306
5307 * sparc-nat.c (fetch_inferior_registers): Correct
5308 a reference to "registers".
5309
5310 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5311
5312 * Makefile.in (exc_request_U_h): Define
5313 (exc_request_S_h): Likewise.
5314 (msg_reply_S_h): Likewise.
5315 (msg_U_h): Likewise.
5316 (notify_S_h): Likewise.
5317 (process_reply_S_h): Likewise.
5318 (gnu-nat.o): Depend on gdb_obstack_h
5319 * gnu-nat.c: Include "gdb_obstack.h".
5320
5321 2003-06-13 Andrew Cagney <cagney@redhat.com>
5322
5323 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5324 * gdbarch.h, gdbarch.c: Re-generate.
5325
5326 2003-06-13 Andrew Cagney <cagney@redhat.com>
5327
5328 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5329 when deprecated REGISTER macros can be deleted.
5330 * gdbarch.h, gdbarch.c: Re-generate.
5331
5332 2003-06-13 Jim Blandy <jimb@redhat.com>
5333
5334 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5335 Linux entry point symbols for _dl_debug_state, too.
5336
5337 2003-06-13 Andrew Cagney <cagney@redhat.com>
5338
5339 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5340 available, do not use the FP register, and always save the TOS.
5341 * dummy-frame.c (dummy_frame_this_id): Do not assert
5342 SAVE_DUMMY_FRAME_TOS.
5343 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5344 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5345 (i386_push_dummy_call): Add 8 to the returned SP.
5346 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5347 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5348 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5349 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5350 (x86_64_push_dummy_call): Return "sp + 16".
5351 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5352 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5353 save_dummy_frame_tos.
5354
5355 2003-06-13 Jim Blandy <jimb@redhat.com>
5356
5357 * frv-tdep.c (frv_use_struct_convention): Delete static
5358 declaration for function deleted in my change of 2003-06-12.
5359
5360 2003-06-13 Theodore A. Roth <troth@openavr.org>
5361
5362 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5363 (avr_pointer_to_address): Shift code addrs left 1 bit.
5364 (avr_convert_from_func_ptr_addr): Delete function since operation is
5365 better handled by avr_address_to_pointer and avr_pointer_to_address.
5366 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5367
5368 2003-06-13 Mark Kettenis <kettenis@gnu.org>
5369
5370 From Kelley Cook <kelleycook@wideopenwest.com>:
5371 * configure.host: Accept i[34567]86 variants.
5372 * configure.tgt: Likewise.
5373 * nlm/configure.in: Likewise.
5374 * nlm/configure: Regenerated.
5375
5376 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
5377
5378 * arm-tdep.c (solib-svr4.h): Dont' include it.
5379 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5380 * arm-linux-tdep.c: ... here. Make static.
5381 (arm_linux_init_abi): Register it.
5382 (solib-svr4.h): Include it.
5383 * Makefile.in: Update dependencies.
5384 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5385 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5386
5387 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5388
5389 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5390 indicate registers used for return values.
5391 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5392 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5393 members.
5394 (h8300_init_extra_frame_info): Ditto.
5395 (h8300_frame_locals_address): Removed.
5396 (h8300_frame_args_address): Removed.
5397 (h8300_extract_return_value): Use new regcache structure. Only care
5398 for 16 bit CPUs.
5399 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5400 (h8300_store_return_value): Use new regcache structure. Only care
5401 for 16 bit CPUs.
5402 (h8300h_store_return_value): Same function for 32 bit CPUs.
5403 (h8300_store_struct_return): Removed.
5404 (h8300_extract_struct_value_address): Use new regcache structure.
5405 (h8300h_extract_struct_value_address): Removed.
5406 (h8300_push_dummy_code): New function.
5407 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5408 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5409 set_gdbarch_store_return_value architecture dependent.
5410 Call set_gdbarch_push_dummy_code and
5411 set_gdbarch_extract_struct_value_address.
5412 Remove calls to set_gdbarch_frame_args_address,
5413 set_gdbarch_frame_locals_address,
5414 set_gdbarch_deprecated_store_struct_return,
5415 set_gdbarch_deprecated_extract_return_value,
5416 set_gdbarch_deprecated_extract_struct_value_address,
5417 set_gdbarch_deprecated_call_dummy_words and
5418 set_gdbarch_deprecated_sizeof_call_dummy_words.
5419
5420 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5421
5422 * h8300-tdep.c (h8300_register_byte): Remove.
5423 (h8300h_register_byte): Remove.
5424 (h8300_register_virtual_type): Remove. Substitute by...
5425 (h8300_register_type): New function.
5426 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5427 (h8300h_extract_struct_value_address): Ditto.
5428 (h8300_gdbarch_init): Drop calls to
5429 set_gdbarch_deprecated_register_byte and
5430 set_gdbarch_deprecated_register_virtual_type.
5431 Add call to set_gdbarch_register_type.
5432
5433 2003-06-13 Andrew Cagney <cagney@redhat.com>
5434
5435 * gdbarch.sh: Update comments on registers.
5436 (deprecated_register_byte): Rename register_byte.
5437 (deprecated_register_raw_size): Rename register_raw_size.
5438 (deprecated_register_virtual_size): Rename register_virtual_size.
5439 (deprecated_register_virtual_type): Rename register_virtual_type.
5440 * gdbarch.h, gdbarch.c: Re-generate.
5441 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5442 * vax-tdep.c (vax_gdbarch_init): Update.
5443 * v850-tdep.c (v850_gdbarch_init): Update.
5444 * sparc-tdep.c (sparc_gdbarch_init): Update.
5445 * sh-tdep.c (sh_gdbarch_init): Update.
5446 * s390-tdep.c (s390_gdbarch_init): Update.
5447 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5448 * ns32k-tdep.c: Update.
5449 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5450 * mips-tdep.c (mips_gdbarch_init): Update.
5451 * mcore-tdep.c (mcore_gdbarch_init): Update.
5452 * m68k-tdep.c (m68k_gdbarch_init): Update.
5453 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5454 * ia64-tdep.c (ia64_gdbarch_init): Update.
5455 * hppa-tdep.c (hppa_gdbarch_init): Update.
5456 * h8300-tdep.c (h8300_gdbarch_init): Update.
5457 * frv-tdep.c (frv_gdbarch_init): Update.
5458 * cris-tdep.c (cris_gdbarch_init): Update.
5459 * avr-tdep.c (avr_gdbarch_init): Update.
5460 * alpha-tdep.c (alpha_gdbarch_init): Update.
5461 * arm-tdep.c (arm_gdbarch_init): Update.
5462
5463 2003-06-13 Andrew Cagney <cagney@redhat.com>
5464
5465 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5466 mips_o32_use_struct_convention with always_use_struct_convention.
5467
5468 2003-06-12 David Carlton <carlton@kealia.com>
5469
5470 * cp-namespace.c (cp_set_block_scope): Comment out
5471 processing_has_namespace_info branch.
5472
5473 2003-06-12 Jim Blandy <jimb@redhat.com>
5474
5475 Recognize and skip 64-bit PowerPC Linux linkage functions.
5476 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5477 insn_pattern, insns_match_pattern, d_field, ds_field): New
5478 functions, macros, and types for working with PPC instructions.
5479 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5480 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5481 ppc64_skip_trampoline_code): New functions, variables, and macros
5482 for recognizing and skipping linkage functions.
5483 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5484 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5485
5486 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5487 register offsets for both the 32- and 64-bit interfaces.
5488
5489 Actually finish the job started by my change of 2003-05-29.
5490 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5491 other #definition of this.
5492 (ppc_linux_skip_trampoline_code): Remove declaration.
5493 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5494 static.
5495 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5496 method for GDBARCH.
5497
5498 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5499 'long' on ppc64-*-linux*.
5500
5501 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5502 isn't #defined, assume the register doesn't exist: act as if
5503 tdep->ppc_mq_regnum were -1.
5504
5505 * configure.host, configure.tgt: Add entries for
5506 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5507 powerpc/linux.mt.
5508 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5509 New files.
5510
5511 * arch-utils.c (always_use_struct_convention): New function.
5512 * arch-utils.h (always_use_struct_convention): New prototype.
5513 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5514 (alpha_gdbarch_init): Register always_use_struct_convention,
5515 instead of alpha_use_struct_convention.
5516 * cris-tdep.c (cris_use_struct_convention): Delete.
5517 (cris_gdbarch_init): Register always_use_struct_convention,
5518 instead of cris_use_struct_convention.
5519 * frv-tdep.c (frv_use_struct_convention): Delete.
5520 (frv_gdbarch_init): Register always_use_struct_convention,
5521 instead of frv_use_struct_convention.
5522 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5523 (h8300_gdbarch_init): Register always_use_struct_convention,
5524 instead of h8300_use_struct_convention.
5525 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
5526 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5527 instead of mips_o32_use_struct_convention.
5528
5529 2003-06-12 Andrew Cagney <cagney@redhat.com>
5530
5531 * wince.c: Include "mips-tdep.h".
5532 * mips-tdep.h (mips_next_pc): Declare.
5533 * mcore-tdep.c: Make more local functions static.
5534 * Makefile.in (wince.o): Update dependencies.
5535
5536 2003-06-12 David Carlton <carlton@kealia.com>
5537
5538 * symtab.c (lookup_symbol_aux_minsyms): Replace
5539 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5540 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5541 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5542 SYMBOL_NATURAL_NAME.
5543
5544 2003-06-12 Andreas Schwab <schwab@suse.de>
5545
5546 * Makefile.in (tuiDisassem.o): Update dependencies.
5547
5548 2003-06-12 David Carlton <carlton@bactrian.org>
5549
5550 * symtab.h: Delete declaration of make_symbol_overload_list.
5551 Add declaration of lookup_partial_symbol.
5552 * symtab.c (remove_params): Move to cp-support.c.
5553 (overload_list_add_symbol, make_symbol_overload_list)
5554 (sym_return_val_size, sym_return_val_index): Ditto.
5555 (lookup_partial_symbol): Make extern.
5556 * cp-support.h: Add declaration of make_symbol_overload_list.
5557 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5558 symtab.h, and block.h.
5559 (remove_params): Move here from symtab.c.
5560 (overload_list_add_symbol, make_symbol_overload_list)
5561 (sym_return_val_size, sym_return_val_index): Ditto.
5562 * valops.c: Include cp-support.h.
5563 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5564 frame_h, and block_h.
5565 (valops.o): Depend on cp_support_h.
5566
5567 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
5568
5569 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5570 substitute by NUM_REGS throughout.
5571 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5572 (h8300s_register_name): New function for H8S registers.
5573 (h8300sx_register_name): Ditto for H8SX registers.
5574 (h8300_print_register): Revise register printing, avoid depending
5575 on 32 bit long.
5576 (h8300_register_byte): Only care for H8/300 registers.
5577 (h8300h_register_byte): New function for any other architecture.
5578 (h8300_register_raw_size): Remove.
5579 (h8300_register_virtual_type): Revise to return actually useful
5580 type.
5581 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5582 (h8300h_extract_struct_value_address): New function for any other
5583 architecture.
5584 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5585 set_gdbarch_register_name, set_gdbarch_register_byte,
5586 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5587 Remove calls to set_gdbarch_deprecated_register_size,
5588 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5589 set_gdbarch_deprecated_max_register_raw_size,
5590 set_gdbarch_register_virtual_size and
5591 set_gdbarch_deprecated_max_register_virtual_size entirely.
5592 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5593 set_gdbarch_long_double_bit.
5594
5595 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5596
5597 * doublest.c (convert_doublest_to_floatformat): When dealing
5598 with the implied integer bit, only alter mant_bits if we are
5599 processing a full 32 bits of mantissa.
5600
5601 2003-06-11 David Carlton <carlton@bactrian.org>
5602
5603 * dictionary.h: New.
5604 * dictionary.c: New.
5605 * block.h: Add opaque declaration for struct dictionary.
5606 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5607 'sym' members.
5608 (BLOCK_DICT): New macro.
5609 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5610 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5611 BLOCK_SHOULD_SORT.
5612 (ALL_BLOCK_SYMBOLS): Update definition.
5613 * Makefile.in (SFILES): Add dictionary.c.
5614 (dictionary_h): New.
5615 (COMMON_OBS): Add dictionary.o.
5616 (dictionary.o): New.
5617 (ada-lang.o): Depend on dictionary_h.
5618 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5619 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5620 (mi-cmd-stack.o): Ditto.
5621 (gdbtk-cmds.o): Update dependencies.
5622 (gdbtk-stack.o): Ditto.
5623 * ada-lang.c: Include dictionary.h.
5624 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5625 (fill_in_ada_prototype, debug_print_block): Ditto.
5626 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5627 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5628 'is_sorted'.
5629 * mdebugread.c: Include dictionary.h.
5630 (struct parse_stack): Delete 'maxsyms' member.
5631 (parse_symbol): Update calls to new_block. Delete calls to
5632 shrink_block. Use dictionary methods.
5633 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5634 Update calls to new_symtab. Don't maintain maxsyms data.
5635 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5636 (add_symbol): Just call dict_add_symbol.
5637 (new_symtab): Delete 'maxsyms' argument.
5638 (new_symtab): Update calls to new_block.
5639 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5640 (shrink_block): Delete function.
5641 (fixup_sigtramp): Update call to new_block. Add symbol via
5642 dict_add_symbol.
5643 * jv-lang.c: Include dictionary.h.
5644 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5645 appropriately. Set class_symtab->free_func. Make sure the
5646 blockvector is big enough to hold two blocks.
5647 (add_class_symtab_symbol): Use dictionary methods.
5648 (free_class_block): New function.
5649 (type_from_class): Replace explicit iteration by
5650 ALL_BLOCK_SYMBOLS.
5651 * symtab.h (struct symtab): Replace 'free_ptr' method by
5652 'free_func'.
5653 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5654 sort_symtab_syms.
5655 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5656 sort_symtab_syms.
5657 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5658 Include dictionary.h.
5659 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5660 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5661 sort_symtab_syms.
5662 * objfiles.c: Include dictionary.h.
5663 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5664 * buildsym.c: Include dictionary.h.
5665 (finish_block): Use dictionary methods.
5666 (end_symtab): Set free_func to NULL, not free_ptr.
5667 * tracepoint.c: Include dictionary.h.
5668 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5669 (scope_info): Ditto.
5670 * stack.c: Include dictionary.h.
5671 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5672 (print_block_frame_labels, print_frame_arg_vars)
5673 (print_frame_args): Ditto.
5674 * symmisc.c (free_symtab_block): Use dictionary methods.
5675 (dump_symtab): Ditto.
5676 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5677 Include dictionary.h.
5678 * symfile.h: Delete declarations of sort_block_syms,
5679 sort_symtab_syms.
5680 * symfile.c (sort_block_syms): Delete.
5681 (sort_symtab_syms): Delete.
5682 * symtab.c: Include dictionary.h.
5683 (lookup_block_symbol): Use dictionary iterators.
5684 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5685 (search_symbols, make_symbol_completion_list): Ditto.
5686 (make_symbol_overload_list): Ditto.
5687 * valops.c (value_of_local): Use dict_empty.
5688 Include dictionary.h.
5689
5690 2003-06-11 J. Brobecker <brobecker@gnat.com>
5691
5692 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5693
5694 2003-06-11 David Carlton <carlton@bactrian.org>
5695
5696 * block.h (BLOCK_SHOULD_SORT): Delete.
5697 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5698 blocks.
5699 * ada-lang.c (ada_add_block_symbols): Ditto.
5700 * symfile.c (sort_block_syms): Delete.
5701 (sort_symtab_syms): Ditto.
5702 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5703 declarations.
5704 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5705 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5706 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5707 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5708 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5709 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5710 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5711
5712 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5713
5714 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
5715 bits to 128.
5716
5717 2003-06-11 Andrew Cagney <cagney@redhat.com>
5718
5719 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5720 REGISTER_CONVERTIBLE.
5721 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5722 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5723 * gdbarch.h, gdbarch.c: Re-generate.
5724 * arch-utils.h (deprecated_register_convertible_not): Rename
5725 generic_register_convertible_not.
5726 * arch-utils.c (deprecated_register_convertible_not): Rename
5727 generic_register_convertible.
5728 (legacy_convert_register_p, legacy_register_to_value): Update.
5729 * sh-tdep.c (sh64_push_arguments): Update.
5730 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5731 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5732 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5733 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5734 * arch-utils.c (legacy_value_to_register): Update.
5735 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5736 (rs6000_register_convert_to_raw): Make parameter "from" const.
5737 * mips-tdep.c (mips_gdbarch_init): Update.
5738 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5739 * infcmd.c (default_print_registers_info): Update.
5740 * ia64-tdep.c (ia64_gdbarch_init): Update.
5741 (ia64_register_convert_to_raw): Make parameter "from" const.
5742 * i386-tdep.c (i386_gdbarch_init): Update.
5743 (i386_register_convert_to_raw): Update.
5744
5745 2003-06-11 Andrew Cagney <cagney@redhat.com>
5746
5747 * remote-fileio.c: Include "remote-fileio.h".
5748 * Makefile.in (remote-fileio.o): Update dependencies.
5749 (remote_fileio_h): Fix typo.
5750
5751 2003-06-11 Andrew Cagney <cagney@redhat.com>
5752
5753 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5754 (xstormy16_save_dummy_frame_tos): Make static.
5755 (_initialize_xstormy16_tdep): Add declaration.
5756 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5757 * v850-tdep.c: Make local functions static.
5758 (_initialize_v850_tdep): Add declaration.
5759 * sparc-tdep.c: Make local functions static.
5760 (_initialize_sparc_tdep): Add declaration.
5761 * sh-tdep.c: Make local functions static.
5762 (_initialize_sh_tdep): Add declaration.
5763 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5764 * s390-tdep.c: Make local functions static.
5765 (_initialize_s390_tdep): Add declaration.
5766 * dbxread.c (find_stab_function_addr): Make static.
5767 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5768 * ocd.c (_initialize_remote_ocd): Add declaration.
5769 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5770 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5771 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5772 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5773 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5774 * remote-array.c (_initialize_array): Add declaration.
5775 (_initialize_remote_monitors): Add declaration.
5776 * remote-mips.c: Make local functions static.
5777 (_initialize_remote_mips): Add declaration.
5778 * mcore-tdep.c: Make all local functions static.
5779 (_initialize_mcore_tdep): Add declaration.
5780 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5781 * abug-rom.c (_initialize_abug_rom): Add declaration.
5782 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5783 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5784 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5785 * remote-est.c (_initialize_est): Add declaration.
5786 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5787 (m68hc11_call_dummy_address): Make static.
5788 * ia64-tdep.c: Make local functions static.
5789 (_initialize_ia64_tdep): Add declaration.
5790 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5791 * monitor.c (monitor_wait_filter): Make static.
5792 (_initialize_remote_monitors): Add declaration.
5793 * remote-hms.c (_initialize_remote_hms): Add declaration.
5794 * remote-e7000.c (fetch_regs_from_dump): Make static.
5795 (expect_n): Make static.
5796 (_initialize_remote_e7000): Add declaration.
5797 * ser-e7kpc.c: Always include "defs.h".
5798 (_initialize_ser_e7000pc): Add declaration.
5799 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5800 * cris-tdep.c: Make all but one function static.
5801 (_initialize_cris_tdep): Add declaration.
5802 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5803 * solib.c (update_solib_list): Make static.
5804 (_initialize_solib): Add declaration.
5805 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5806 (_initialize_avr_tdep): Add declaration.
5807 * remote-rdi.c (voiddummy): Make static.
5808 (_initialize_remote_rdi): Add declaration.
5809 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5810 * remote-rdp.c (send_rdp): Make static.
5811 (_initialize_remote_rdp): Add declaration.
5812 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5813
5814 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
5815
5816 * remote-fileio.c: Make ari happy.
5817
5818 2003-06-10 J. Brobecker <brobecker@gnat.com>
5819
5820 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5821 fetching the trailing bytes of the buffer we are about to write.
5822
5823 2003-06-10 Andrew Cagney <cagney@redhat.com>
5824
5825 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5826 * Makefile.in (remote-fileio.o): Update dependencies.
5827 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5828 include <setjmp.h>, or <sys/types.h> conditional on USG.
5829 (remote_fio_jmp_buf): Delete global variable.
5830
5831 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5832 Martin M. Hunt <hunt@redhat.com>
5833
5834 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5835 (SFILES): Add remote-fileio.c.
5836 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5837 dependencies for building remote.o.
5838 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5839 * remote-fileio.h: New header file defining remote File-I/O interface.
5840 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5841 static storage class.
5842 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5843 'F' packet.
5844 (_initialize_remote): Call initialize_remote_fileio().
5845 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5846 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5847 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5848 (captured_main): Initialize new ui_files.
5849 * ui-file.c: Add read and fgets input functions.
5850 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5851 (null_file_read): New function.
5852 (ui_file_read): New function.
5853 (set_ui_file_read): New function.
5854 (stdio_file_read): New function.
5855 * ui-file.h: New type ui_file_read_ftype.
5856 (set_ui_file_read): Declare.
5857 (ui_file_read): Declare.
5858
5859 2003-06-09 Andrew Cagney <cagney@redhat.com>
5860
5861 * frame.h (deprecated_unwind_get_saved_register): Rename
5862 generic_unwind_get_saved_register, update comments.
5863 * mips-tdep.c (mips_get_saved_register): Update.
5864 * frame.c (deprecated_unwind_get_saved_register): Update.
5865
5866 2003-06-09 Andrew Cagney <cagney@redhat.com>
5867
5868 * vax-tdep.c (vax_frame_locals_address): Delete function.
5869 (vax_gdbarch_init): Do not set frame_locals_address.
5870 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5871 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5872 * s390-tdep.c (s390_frame_args_address): Delete function.
5873 (s390_gdbarch_init): Do not set frame_args_address or
5874 frame_locals_address.
5875 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5876 (ns32k_gdbarch_init): Do not set frame_locals_address.
5877 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5878 (hppa_frame_locals_address): Delete function.
5879 (hppa_gdbarch_init): Do not set frame_args_address, or
5880 frame_locals_address.
5881 * arm-tdep.c (arm_frame_args_address): Delete.
5882 (arm_frame_locals_address): Delete.
5883 (arm_gdbarch_init): Do not set frame_args_address, or
5884 frame_locals_address.
5885
5886 2003-06-09 Andrew Cagney <cagney@redhat.com>
5887
5888 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5889 * gdbarch.h, gdbarch.c: Re-generate.
5890 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5891 * arch-utils.c (frame_num_args_unknown): Delete function.
5892 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5893 (frame_info): Use FRAME_NUM_ARGS_P.
5894 * arm-tdep.c (arm_frame_num_args): Delete function.
5895 (arm_gdbarch_init): Do not set frame_num_args.
5896 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5897 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5898 (hppa_gdbarch_init): Do not set frame_num_args.
5899 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5900 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5901 frame_num_args to default frame_num_args_unknown.
5902 * v850-tdep.c (v850_gdbarch_init): Ditto.
5903 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5904 * sh-tdep.c (sh_gdbarch_init): Ditto.
5905 * s390-tdep.c (s390_gdbarch_init): Ditto.
5906 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5907 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5908 * mips-tdep.c (mips_gdbarch_init): Ditto.
5909 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5910 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5911 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5912 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5913 * i386-tdep.c (i386_gdbarch_init): Ditto.
5914 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5915 * frv-tdep.c (frv_gdbarch_init): Ditto.
5916 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5917 * cris-tdep.c (cris_gdbarch_init): Ditto.
5918 * avr-tdep.c (avr_gdbarch_init): Ditto.
5919 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5920
5921 2003-06-09 Andrew Cagney <cagney@redhat.com>
5922
5923 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5924 (print_frame_args): Moved to "stack.c".
5925 * stack.c: Include "gdb_assert.h".
5926 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5927 (print_frame_args): Moved from "printcmd.c".
5928 * frame.h (print_frame_args): Delete declaration.
5929 * Makefile.in (stack.o): Update dependencies.
5930
5931 2003-06-08 Andrew Cagney <cagney@redhat.com>
5932
5933 * frame.c (get_prev_frame): Remove reference to
5934 frame_args_address_correct in comments.
5935 * frame-base.c (default_frame_args_address): Delete code
5936 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5937 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5938 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5939 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5940 (vax_frame_args_address_correct): Delete declaration.
5941
5942 2003-06-08 Andrew Cagney <cagney@redhat.com>
5943
5944 * gdbarch.sh (UNWIND_SP): Add.
5945 * gdbarch.h, gdbarch.c: Re-generate.
5946 * frame.c (frame_sp_unwind): New function.
5947 (get_frame_sp): New function.
5948 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5949 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5950 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5951 value.
5952 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5953 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5954
5955 2003-06-08 Andrew Cagney <cagney@redhat.com>
5956
5957 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5958 REMOTE_BREAKPOINT.
5959 * remote.c: Update.
5960 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5961 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5962 * config/m68k/tm-sun3.h: Update.
5963 * config/m68k/tm-m68klynx.h: Update.
5964 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5965
5966 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5967 trad_frame". Update comments.
5968 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5969 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5970 (trad_frame_register_value, trad_frame_prev_register): Update.
5971
5972 2003-06-08 Andrew Cagney <cagney@redhat.com>
5973
5974 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5975 from GCC's acinclude.m4.
5976 * configure.in: Check for getopt's delcaration.
5977 * aclocal.m4, config.in, configure: Re-generate.
5978 * main.c (error_init): Delete declaration.
5979 * defs.h (error_init): Declare.
5980 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5981 (rs6000_convert_from_func_ptr_addr): Make static.
5982 (_initialize_rs6000_tdep): Add declaration.
5983 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5984 (show_commands, set_verbose, show_history): Delete declaration.
5985 * top.h (set_verbose): Add declaration.
5986 (show_history, set_history, show_commands): Add declaration.
5987 (do_restore_instream_cleanup): Add declaration.
5988 * objc-lang.c (specialcmp): Make static.
5989 (print_object_command): Make static.
5990 (find_objc_msgsend): Make static.
5991 (find_objc_msgcall_submethod_helper): Make static.
5992 (find_objc_msgcall_submethod): Make static.
5993 (_initialize_objc_language): Add declaration.
5994 (find_implementation_from_class): Make static.
5995 (find_implementation): Make static.
5996 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5997 * objc-lang.h (lookup_struct_typedef): Add declaration.
5998 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5999 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6000 (do_restore_user_call_depth): Make static.
6001 (do_restore_instream_cleanup): Delete declaration.
6002 (dont_repeat): Delete declaration.
6003 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6004 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6005 * reggroups.c (_initialize_reggroup): Add declaration.
6006 * cp-support.c (_initialize_cp_support): Add declaration.
6007 * cp-abi.c (_initialize_cp_abi): Add declaration.
6008 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6009 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6010 (_initialize_gnu_v3_abi): Add declaration.
6011 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6012 (_initialize_gnu_v2_abi): Add declaration.
6013 * frame-base.c (_initialize_frame_base): Add declaration.
6014 * doublest.c (floatformat_from_length): Make static.
6015 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6016 * frame.c (create_sentinel_frame): Make static.
6017 (_initialize_frame): Add declaration.
6018 * top.c (do_catch_errors): Make static.
6019 (gdb_rl_operate_and_get_next_completion): Make static.
6020 * typeprint.c: Include "typeprint.h".
6021 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6022 (sentinel_frame_this_id): Make static.
6023 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6024 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6025 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6026 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6027 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6028 * maint.c (maintenance_print_architecture): Make static.
6029 * signals/signals.c (_initialize_signals): Add declaration.
6030 * std-regs.c (_initialize_frame_reg): Add declaration.
6031 * jv-exp.y (push_variable): ISO C definition.
6032 (push_qualified_expression_name): Ditto.
6033 * memattr.c (_initialize_mem): Add declaration.
6034 * remote.c (remote_check_watch_resources): Make static.
6035 (remote_stopped_by_watchpoint): Make static.
6036 (remote_stopped_data_address): Make static.
6037 * d10v-tdep.c (nr_dmap_regs): Make static.
6038 (a0_regnum): Make static.
6039 (d10v_frame_unwind_cache): Make static.
6040 (d10v_frame_p): Make static.
6041 * osabi.c (show_osabi): Make static.
6042 (_initialize_gdb_osabi): Add extern declaration.
6043 * gdbtypes.c (make_qualified_type): Make static.
6044 (safe_parse_type): Make static.
6045 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6046 * macrotab.c (macro_bcache_free): Make static.
6047 * interps.c (interp_set_quiet): Make static.
6048 (interpreter_exec_cmd): Make static.
6049 * stack.h (select_frame_command): New file.
6050 * stack.c: Include "stack.h".
6051 (select_frame_command_wrapper): Delete function.
6052 (select_frame_command): Make global.
6053 * infcall.c: Include "infcall.h".
6054 * linespec.c: Include "linespec.h".
6055 * symfile.c (sections_overlap): Make static.
6056 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6057 * charset.c (_initialize_charset): Add missing prototype.
6058 * regcache.c (init_legacy_regcache_descr): Make static.
6059 (do_regcache_xfree): Make static.
6060 (regcache_xfer_part): Make static.
6061 (_initialize_regcache): Add missing prototype.
6062 * breakpoint.c (parse_breakpoint_sals): Make static.
6063 (breakpoint_sals_to_pc): Make static.
6064 * interps.h (clear_interpreter_hooks): ISO C declaration.
6065 * Makefile.in (stack_h): Define.
6066 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6067 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6068
6069 2003-06-08 Andrew Cagney <cagney@redhat.com>
6070
6071 * Makefile.in (d10v-tdep.o): Update dependencies.
6072 (SFILES): Add trad-frame.c.
6073 (trad_frame_h): Define.
6074 (COMMON_OBS): Add trad-frame.o.
6075 (trad-frame.o): Specify dependencies.
6076 * d10v-tdep.c: Include "trad-frame.h".
6077 (saved_regs_unwinder): Delete function.
6078 (d10v_frame_prev_register): Use trad_frame_prev_register.
6079 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6080 trad_frame", delete "regs" and "prev_sp".
6081 (prologue_find_regs): Use trad-frame.
6082 * trad-frame.h, trad-frame.c: New files.
6083
6084 2003-06-08 Mark Kettenis <kettenis@gnu.org>
6085
6086 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6087
6088 2003-06-07 Adam Fedor <fedor@gnu.org>
6089
6090 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6091 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6092 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6093 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
6094 resolve_msgsend_super, resolve_msgsend_super_stret):
6095 Use it.
6096
6097 2003-06-07 Andrew Cagney <cagney@redhat.com>
6098
6099 * symfile.h: Re-indent, clean up comments.
6100
6101 2003-06-07 Andrew Cagney <cagney@redhat.com>
6102
6103 * inferior.h (deprecated_write_sp): Replace
6104 generic_target_write_sp.
6105 * regcache.c (deprecated_write_sp): Replace
6106 generic_target_write_sp.
6107 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6108 * vax-tdep.c (vax_gdbarch_init): Update.
6109 * v850-tdep.c (v850_gdbarch_init): Update.
6110 * sparc-tdep.c (sparc_gdbarch_init): Update.
6111 * sh-tdep.c (sh_gdbarch_init): Update.
6112 * s390-tdep.c (s390_gdbarch_init): Update.
6113 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6114 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6115 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6116 * mcore-tdep.c (mcore_gdbarch_init): Update.
6117 * m68k-tdep.c (m68k_gdbarch_init): Update.
6118 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6119 * ia64-tdep.c (ia64_gdbarch_init): Update.
6120 * h8300-tdep.c (h8300_gdbarch_init): Update.
6121 * frv-tdep.c (frv_gdbarch_init): Update.
6122 * cris-tdep.c (cris_gdbarch_init): Update.
6123 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6124
6125 2003-06-07 Andrew Cagney <cagney@redhat.com>
6126
6127 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6128 Assert that PC_REGNUM is valid.
6129 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6130
6131 2003-06-07 Andrew Cagney <cagney@redhat.com>
6132
6133 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6134 * gdbarch.h, gdbarch.c: Regenerate.
6135 * mn10300-tdep.c: Include "gdb_assert.h".
6136 (mn10300_read_fp): New function.
6137 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6138 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6139 * ia64-tdep.c: Include "gdb_assert.h".
6140 (ia64_read_fp): New function.
6141 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6142 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6143 * regcache.c (generic_target_read_sp): Delete function.
6144 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6145 * inferior.h (generic_target_read_sp): Delete declaration.
6146 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6147 generic_target_read_sp.
6148 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6149 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6150 * sh-tdep.c (sh_gdbarch_init): Ditto.
6151 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6152 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6153
6154 2003-06-07 Andrew Cagney <cagney@redhat.com>
6155
6156 * gdbarch.sh: Comment each field of startup_gdbarch.
6157 * gdbarch.h, gdbarch.c: Re-generate.
6158
6159 2003-06-07 Andrew Cagney <cagney@redhat.com>
6160
6161 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6162 * gdbarch.h, gdbarch.c: Re-generate.
6163 * regcache.c: Update comments on read_pc et.al.
6164 (generic_target_read_pc): Delete function.
6165 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6166 * inferior.h (generic_target_read_pc): Delete declaration.
6167 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6168 generic_target_read_pc.
6169 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6170 * sh-tdep.c (sh_gdbarch_init): Ditto.
6171 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6172 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6173
6174 2003-06-07 Andrew Cagney <cagney@redhat.com>
6175
6176 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6177 "index" with "special_local_sect". Use strcmp instead of STREQ.
6178 Append period to coments.
6179
6180 2003-06-06 Mark Mitchell <mark@codesourcery.com>
6181
6182 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6183 (elfstab_offset_sections): Likewise.
6184 * gdb-stabs.h (stab_section_info): Likewise.
6185 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6186 * objfiles.c (objfile_relocate): Likewise.
6187 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6188 * remote.c (get_offsets): Likewise.
6189 (remote_cisco_objfile_relocate): Likewise.
6190 * somread.c (som_symfile_offsets): Likewise.
6191 * symfile.c (alloc_section_addr_info): New function.
6192 (build_section_addr_info_from_section_tab): Use it.
6193 (free_section_addr_info): Adjust.
6194 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6195 (syms_from_objfile): Allocate local_addr dynamically.
6196 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6197 dynamically.
6198 (add_symbol_file_command): Allocate sect_opts dynamically.
6199 (reread_symbols): Avoid use of SECT_OFF_MAX.
6200 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6201 (alloc_section_addr_info): Declare it.
6202 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6203 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6204 dynamically.
6205 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
6206
6207 2003-06-06 Andrew Cagney <cagney@redhat.com>
6208
6209 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6210 (d10v_frame_unwind_cache): Do not set "return_pc".
6211
6212 2003-06-06 Michael Snyder <msnyder@redhat.com>
6213
6214 * h8300-tdep.c: Make tidy (long lines).
6215
6216 2003-06-06 Michal Ludvig <mludvig@suse.cz>
6217
6218 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
6219 to regcache_collect().
6220
6221 2003-06-05 J. Brobecker <brobecker@gnat.com>
6222
6223 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6224 pc_in_sigtramp multiarch method.
6225 (hppa_hpux_som_init_abi): Use it.
6226 (hppa_hpux_elf_init_abi): Likewise.
6227 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6228 macro has been multiarched.
6229 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6230 macro here, as hppa64 isn't multiarched yet.
6231
6232 2003-06-05 Andrew Cagney <cagney@redhat.com>
6233
6234 * Makefile.in (value_h): Add $(frame_h).
6235 * value.h: Include "frame.h".
6236 (struct value): Replace "frame_addr" with "frame_id".
6237 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6238 * values.c (allocate_value): Use VALUE_FRAME_ID.
6239 (value_copy): Use VALUE_FRAME_ID.
6240 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6241 * valops.c (value_assign): Update. Use frame_find_by_id.
6242
6243 2003-06-05 Michal Ludvig <mludvig@suse.cz>
6244
6245 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6246 in each pass.
6247
6248 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6249
6250 * thread-db.c (check_event): For create/death event breakpoints,
6251 loop through all messages to ensure that we read the message
6252 corresponding to the breakpoint we are at.
6253
6254 2003-06-04 Michael Snyder <msnyder@redhat.com>
6255
6256 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6257
6258 2003-06-04 Mark Kettenis <kettenis@gnu.org>
6259
6260 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6261 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6262 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6263 when handling .eh_frame sections.
6264
6265 2003-06-04 J. Brobecker <brobecker@gnat.com>
6266
6267 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6268 prepare_to_proceed procedure instead of the hppa-specific one.
6269 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6270
6271 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
6272
6273 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6274 * config.in: Regenerated.
6275 * configure.in: Add test for syscall function and check for
6276 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6277 * configure: Regenerated.
6278 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6279 <sys/syscall.h>.
6280 (kill_lwp): New function that uses tkill syscall or
6281 uses kill, depending on whether threading model is nptl or not.
6282 All callers of kill() changed to use kill_lwp().
6283 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6284 see if all threads have already exited in the nptl model.
6285 (stop_and_resume_callback): New callback function used by the
6286 lin_lwp_wait thread exit handling code.
6287 (stop_wait_callback): Check for threads already having exited and
6288 delete such threads fromt the lwp list when discovered.
6289 (stop_callback): Don't assert retcode of kill call.
6290
6291 Roland McGrath <roland@redhat.com>
6292 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6293 nptl libthread_db.
6294
6295 2003-06-03 Richard Henderson <rth@redhat.com>
6296
6297 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6298 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6299 (alpha_sigtramp_frame_prev_register): Likewise.
6300 (alpha_heuristic_frame_prev_register): Likewise.
6301 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6302
6303 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
6304 alpha-specific register id names.
6305 (alpha_mdebug_frame_unwind_cache): Likewise.
6306 (alpha_mdebug_frame_prev_register): Likewise.
6307
6308 2003-06-03 Richard Henderson <rth@redhat.com>
6309
6310 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6311 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6312 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6313 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6314 unwind routines.
6315 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6316 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6317 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6318
6319 * alpha-linux-tdep.c: Remove unnecessary includes.
6320 * Makefile.in (alpha-linux-tdep.o): Update.
6321
6322 2003-06-03 Richard Henderson <rth@redhat.com>
6323
6324 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6325 (alphabsd_fill_fpreg): Likewise.
6326
6327 2003-06-03 J. Brobecker <brobecker@gnat.com>
6328
6329 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6330 references to struct frame_info fields by calls to the equivalent
6331 accessors. Necessary now that frame_info is opaque.
6332
6333 2003-06-03 J. Brobecker <brobecker@gnat.com>
6334
6335 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6336 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6337 structure, field no longer exists.
6338
6339 2003-06-03 J. Brobecker <brobecker@gnat.com>
6340
6341 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6342 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6343
6344 2003-06-03 J. Brobecker <brobecker@gnat.com>
6345
6346 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6347 references to struct frame_info fields by calls to the equivalent
6348 accessors. Necessary now that frame_info is opaque.
6349
6350 2003-06-03 J. Brobecker <brobecker@gnat.com>
6351
6352 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6353 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6354 structure, field no longer exists.
6355
6356 2003-06-03 Theodore A. Roth <troth@openavr.org>
6357
6358 * remote.c (init_remote_state): Compute sizeof_g_packet by
6359 accumulation of the size of all registers instead of blindly using
6360 DEPRECATED_REGISTER_BYTES.
6361
6362 2003-06-03 Michael Snyder <msnyder@redhat.com>
6363
6364 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6365 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6366 for h8300sx.
6367
6368 2003-06-03 J. Brobecker <brobecker@gnat.com>
6369
6370 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6371 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6372
6373 2003-06-03 Andrew Cagney <cagney@redhat.com>
6374
6375 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6376 (sparc_convert_to_raw): Delete function.
6377 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6378 register_convert_to_virtual.
6379
6380 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6381
6382 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6383 layer if not dealing with a statically-linked threaded program.
6384
6385 2003-06-03 Kris Warkentin <kewarken@qnx.com>
6386
6387 * solib.c (solib_open): Update comment to reflect actual search order.
6388
6389 2003-06-03 Andrew Cagney <cagney@redhat.com>
6390
6391 * frame.c (get_frame_memory_signed): New function.
6392 (get_frame_memory, get_frame_memory_unsigned): New function.
6393 (get_frame_arch): New function.
6394 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6395 (get_frame_memory, get_frame_unsigned_memory): Declare.
6396 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6397 get_frame_memory_unsigned and get_frame_arch.
6398 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6399
6400 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6401
6402 * MAINTAINERS (write after approval): Add myself.
6403
6404 2003-06-03 Jim Blandy <jimb@redhat.com>
6405
6406 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6407 elements of gregset_t are 64 bits each, but access registers
6408 are still 32 bits, so they're packed two per gregset_t
6409 element. Unpack/pack them properly.
6410
6411 2003-06-02 David Carlton <carlton@bactrian.org>
6412
6413 * linespec.c (find_methods): Break out code into
6414 add_matching_methods and add_constructors.
6415 (add_matching_methods): New.
6416 (add_constructors): Ditto.
6417
6418 2003-06-02 Andrew Cagney <cagney@redhat.com>
6419
6420 * sparc-tdep.c (sparc_print_registers): Delete call to
6421 REGISTER_CONVERTIBLE.
6422 (sparc_gdbarch_init): Do not set register_convertible.
6423 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6424 * frv-tdep.c (frv_gdbarch_init): Ditto.
6425 * cris-tdep.c (cris_gdbarch_init): Ditto.
6426
6427 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
6428
6429 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
6430 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6431 (syms_from_objfile): Ditto.
6432
6433 2003-06-03 Andreas Schwab <schwab@suse.de>
6434
6435 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6436 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6437
6438 2003-06-02 Richard Henderson <rth@redhat.com>
6439
6440 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6441 a member of all_reggroup.
6442
6443 2003-06-02 Richard Henderson <rth@redhat.com>
6444
6445 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6446 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6447 (alpha_lds, alpha_sts): New.
6448 (alpha_convert_register_p): Change from _register_convertible.
6449 (alpha_register_to_value): Change from _convert_to_virtual;
6450 restructure and fail for type sizes other than 4 or 8.
6451 (alpha_value_to_register): Similarly.
6452 (alpha_extract_return_value): Use alpha_sts.
6453 (alpha_store_return_value): Use alpha_lds.
6454 (alpha_gdbarch_init): Update hooks.
6455
6456 2003-06-02 Richard Henderson <rth@redhat.com>
6457
6458 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6459 regnum identifiers.
6460 (alpha_sigtramp_register_address): Likewise.
6461
6462 2003-06-02 Richard Henderson <rth@redhat.com>
6463
6464 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6465 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6466 * alpha-tdep.h: Declare them.
6467
6468 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6469 Remove zerobuf. Don't error on UNIQUE.
6470 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6471 (ALPHA_REGSET_UNIQUE): Provide default.
6472 (supply_gregset): Use alpha_supply_int_regs.
6473 (fill_gregset): Use alpha_fill_int_regs.
6474 (supply_fpregset): Use alpha_supply_fp_regs.
6475 (fill_fpregset): Use alpha_fill_fp_regs.
6476 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6477 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6478 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6479 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6480 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6481 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6482
6483 2003-06-02 Richard Henderson <rth@redhat.com>
6484
6485 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6486
6487 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6488 (alpha_store_return_value): Likewise.
6489
6490 2003-06-02 David Carlton <carlton@math.stanford.edu>
6491
6492 * block.c (contained_in): Add 'const' to arguments.
6493 (block_function): Ditto.
6494 * block.h: Update declarations for block_function and
6495 contained_in.
6496
6497 2003-06-02 David Carlton <carlton@math.stanford.edu>
6498
6499 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6500 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6501 * p-valprint.c (pascal_val_print): Ditto.
6502 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6503
6504 2003-06-02 Richard Henderson <rth@redhat.com>
6505
6506 * alpha-tdep.c (alpha_push_dummy_call): Use
6507 builtin_type_ieee_double_little instead of builtin_type_double.
6508
6509 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
6510 sign-extension of 32-bit values.
6511 (alpha_store_return_value): Similarly.
6512
6513 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6514 (alpha_extract_return_value): Likewise.
6515 (alpha_store_return_value): Likewise.
6516
6517 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6518 (alpha_store_return_value): Error on IEEE Quad floats.
6519
6520 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6521 (alpha_extract_struct_value_address): Likewise.
6522 (alpha_store_return_value): Likewise.
6523 (alpha_store_struct_return): Remove.
6524 (alpha_gdbarch_init): Update hook registration to match.
6525
6526 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6527 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6528 macros where appropriate.
6529 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6530 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
6531
6532 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6533 for SP, GP; void_func_ptr for PC; non-language-specific types
6534 for all others.
6535 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
6536
6537 2003-06-02 Richard Henderson <rth@redhat.com>
6538
6539 * top.h (lim_at_start): Declare.
6540 * main.c (captured_main): Set it.
6541 * top.c (lim_at_start): Define.
6542 (command_loop): Use it instead of &environ.
6543 * event-top.c (command_handler): Likewise.
6544
6545 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6546
6547 * mipsnbsd-tdep.c: Update copyright years.
6548 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6549
6550 2003-06-01 Richard Henderson <rth@redhat.com>
6551
6552 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6553 (alpha-linux-tdep.o): Update dependencies.
6554 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6555 * alpha-mdebug-tdep.c: Remove unneeded includes.
6556
6557 2003-06-01 Richard Henderson <rth@redhat.com>
6558
6559 * alpha-tdep.c (alpha_register_reggroup_p): New.
6560 (alpha_gdbarch_init): Register it.
6561
6562 2003-06-02 Andrew Cagney <cagney@redhat.com>
6563
6564 * dwarfread.c: Eliminate "register"
6565 (decode_die_type): Eliminate assignment within "if".
6566 (struct_type, decode_array_element_type): Ditto.
6567 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6568 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6569 (decode_modified_type, completedieinfo): Ditto.
6570 * block.c: Eliminate "register".
6571 (blockvector_for_pc_sect): Eliminate assignment within "if".
6572 * cp-support.h (struct symbol): Opaque declaration.
6573 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6574
6575 2003-06-01 Richard Henderson <rth@redhat.com>
6576
6577 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6578 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
6579
6580 2003-06-01 Adam Fedor <fedor@gnu.org>
6581
6582 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6583 * gdbarch.[ch]: Regenerate.
6584 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6585 (hppa_gdbarch_init): Set it in the gdbarch vector.
6586 * i386-tdep.c (i386_fetch_pointer_argument): New
6587 (i386_gdbarch_init): Set it into gdbarch.
6588 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6589 (rs6000_gdbarch_init): Set it in gdbarch.
6590 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6591 (sparc_gdbarch_init): Set it in gdbarch.
6592
6593 2003-06-01 Andrew Cagney <cagney@redhat.com>
6594
6595 * defs.h (extract_address): Delete declaration.
6596 * findvar.c (extract_address): Delete function.
6597 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6598 extract_address with the inline equivalent,
6599 extract_unsigned_integer.
6600 (xstormy16_extract_struct_value_address): Ditto.
6601 (xstormy16_pointer_to_address): Ditto.
6602 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6603 * v850-tdep.c (v850_push_arguments): Ditto.
6604 (v850_extract_return_value): Ditto.
6605 (v850_extract_struct_value_address): Ditto.
6606 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6607 (sparcnbsd_get_longjmp_target_64): Ditto.
6608 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6609 (get_longjmp_target): Ditto.
6610 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6611 (sh64_extract_struct_value_address): Ditto.
6612 (sh_push_arguments): Ditto.
6613 (sh64_push_arguments): Ditto.
6614 * remote-vxsparc.c (vx_read_register): Ditto.
6615 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6616 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6617 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6618 * mipsv4-nat.c (get_longjmp_target): Ditto.
6619 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6620 * mips-nat.c (get_longjmp_target): Ditto.
6621 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6622 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6623 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6624 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6625 * irix5-nat.c (get_longjmp_target): Ditto.
6626 * irix4-nat.c (get_longjmp_target): Ditto.
6627 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6628 (ia64_push_arguments): Ditto.
6629 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6630 * h8300-tdep.c (h8300_push_arguments): Ditto.
6631 (h8300_store_return_value): Ditto.
6632 (h8300_extract_struct_value_address): Ditto.
6633 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6634 (frv_push_arguments): Ditto.
6635 * avr-tdep.c (avr_pointer_to_address): Ditto.
6636 (avr_push_arguments): Ditto.
6637 * arm-tdep.c (arm_push_dummy_call): Ditto.
6638 (arm_get_longjmp_target): Ditto.
6639 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6640 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6641 (alpha_get_longjmp_target): Ditto.
6642
6643 * solib-irix.c (extract_mips_address): Inline extract_address,
6644 replacing it with extract_signed_integer.
6645 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6646 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6647 (first_link_map_member, open_symbol_file_object): Ditto.
6648 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6649 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6650 (LM_NEXT, LM_NAME): Ditto.
6651
6652 2003-06-01 Richard Henderson <rth@redhat.com>
6653
6654 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6655 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6656 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6657 (alpha_cannot_store_register): Likewise.
6658 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6659 * alpha-nat.c (supply_gregset): Likewise.
6660 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
6661
6662 2003-06-01 Andrew Cagney <cagney@redhat.com>
6663
6664 * infcall.c (call_function_by_hand): Update comment on
6665 DEPRECATED_DUMMY_WRITE_SP.
6666
6667 * mips-tdep.c (mips_gdbarch_init): Do not set
6668 deprecated_dummy_write_sp.
6669 (mips_eabi_push_dummy_call): Set the SP register.
6670 (mips_o64_push_dummy_call): Set the SP register.
6671 (mips_o32_push_dummy_call): Set the SP register.
6672 (mips_n32n64_push_dummy_call): Set the SP register.
6673
6674 2003-06-01 Richard Henderson <rth@redhat.com>
6675
6676 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6677 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6678 (supply_gregset): Likewise.
6679 * alpha-tdep.c (alpha_store_return_value): Likewise.
6680 (alpha_get_longjmp_target): Likewise.
6681 (alpha_register_name): Constify array.
6682 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6683 deprecated_register_size, deprecated_register_bytes,
6684 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6685 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6686 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
6687
6688 2003-06-01 Richard Henderson <rth@redhat.com>
6689
6690 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6691 from arg_reg_buffer to regcache to avoid double conversion.
6692
6693 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6694
6695 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6696 SP_REGNUM.
6697 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6698 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6699
6700 2003-06-01 Richard Henderson <rth@redhat.com>
6701
6702 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6703 (decode_frame_entry): Set it. Skip FDE augmentation.
6704
6705 2003-06-01 Richard Henderson <rth@redhat.com>
6706
6707 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6708 not overlapping PC_REGNUM.
6709
6710 2003-06-01 Richard Henderson <rth@redhat.com>
6711
6712 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6713 alpha_push_arguments. Don't dump argument register data to
6714 the target stack. Fix float and 128-bit long double semantics.
6715 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6716 (alpha_fix_call_dummy): Remove.
6717 (alpha_call_dummy_words): Remove.
6718 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
6719
6720 2003-06-01 Richard Henderson <rth@redhat.com>
6721
6722 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6723
6724 2003-06-01 Andrew Cagney <cagney@redhat.com>
6725
6726 * mips-tdep.c (is_mips16_addr): New function.
6727 (make_mips16_addr, unmake_mips16_addr): New functions.
6728 (pc_is_mips16, mips_fetch_instruction): Use.
6729 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6730 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6731 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6732 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6733 TARGET_MIPS.
6734 * config/mips/tm-mips.h: Update copyright.
6735 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6736 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6737 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6738 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6739 (TM_PRINT_INSN_MACH): Delete.
6740 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6741
6742 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6743 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6744 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6745 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6746 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6747 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6748 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6749 mips*-*-riscos* and mips*-*-sysv* onto mips.
6750 * config/mips/mips64.mt: New file.
6751 * config/mips/mips.mt: New file.
6752 * config/mips/littlemips.mt: Delete file.
6753 * config/mips/decstation.mt: Delete file.
6754 * config/mips/vr4300el.mt: Delete file.
6755 * config/mips/vr5000el.mt: Delete file.
6756 * config/mips/vr5000.mt: Delete file.
6757 * config/mips/vr4100.mt: Delete file.
6758 * config/mips/vr4xxxel.mt: Delete file.
6759 * config/mips/vr4300.mt: Delete file.
6760 * config/mips/vr4xxx.mt: Delete file.
6761 * config/mips/bigmips.mt: Delete file.
6762 * config/mips/bigmips64.mt: Delete file.
6763 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6764 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6765 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6766 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6767 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6768 "tm-bigmips.h".
6769 * config/mips/tm-irix3.h: Ditto.
6770 * config/mips/tm-mipsv4.h: Ditto.
6771 * config/mips/tm-embed.h: Ditto.
6772 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6773 "tm-bigmips64.h".
6774 * config/mips/tm-vr5000el.h: Delete file.
6775 * config/mips/tm-tx39l.h: Delete file.
6776 * config/mips/tm-vr4300el.h: Delete file.
6777 * config/mips/tm-vr4xxxel.h: Delete file.
6778 * config/mips/tm-vr4300.h: Delete file.
6779 * config/mips/tm-vr4100.h: Delete file.
6780 * config/mips/tm-vr4xxx.h: Delete file.
6781 * config/mips/tm-vr5000.h: Delete file.
6782 * config/mips/tm-embedl64.h: Delete file.
6783 * config/mips/tm-embedl.h: Delete file.
6784 * config/mips/tm-embed64.h: Delete file.
6785 * config/mips/tm-bigmips64.h: Delete file.
6786 * config/mips/tm-bigmips.h: Delete file.
6787
6788 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6789
6790 Fix gdb/1216.
6791 * shnbsd-nat.c: Include "sh-tdep.h".
6792
6793 From Richard Henderson <rth@redhat.com>:
6794 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6795
6796 2003-05-31 Andrew Cagney <cagney@redhat.com>
6797
6798 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6799 forward declaration.
6800 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6801 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6802 (mips_find_saved_regs): Use set_reg_offset.
6803 (mips_frame_init_saved_regs): Delete function.
6804 (mips_pop_frame): Call mips_find_saved_regs instead of
6805 DEPRECATED_FRAME_INIT_SAVED_REGS.
6806
6807 2003-05-31 Andrew Cagney <cagney@redhat.com>
6808
6809 * mips-tdep.c (mips_gdbarch_init): Do not set
6810 deprecated_max_register_raw_size, register_virtual_size, and
6811 deprecated_max_register_virtual_size.
6812
6813 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6814
6815 * i386-tdep.c: Include "dwarf2-frame.h".
6816 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6817 * Makefile.in (i386-tdep.o): Update dependencies.
6818
6819 * dwarf2-frame.c, dwarf2-frame.h: New files.
6820 * Makefile.in (SFILES): Add dwarf2-frame.c.
6821 (dwarf2_frame_h): Define.
6822 (COMMON_OBS): Add dwarf2-frame.o.
6823 (dwarf2-frame.o): Add dependencies.
6824
6825 2003-05-31 Andreas Jaeger <aj@suse.de>
6826
6827 * x86-64-linux-nat.c: Fix comment.
6828
6829 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6830
6831 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6832 function signature.
6833
6834 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6835 have a sigcontext_addr handler.
6836 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6837 sigcontext_addr handler.
6838
6839 2003-05-31 Andrew Cagney <cagney@redhat.com>
6840
6841 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6842 (print_fp_register_row): Replace do_fp_register_row.
6843 (mips_print_fp_register): Add "file" and "frame" parameters.
6844 (mips_print_register): Add "file" and "frame" parameters.
6845 (mips_print_registers_info): Replace mips_do_registers_info.
6846 (mips_gdbarch_init): Set print_registers_info instead of
6847 deprecated_do_registers_info.
6848 (mips_read_fp_register_single): Add "frame" parameter.
6849 (mips_read_fp_register_double): Add "frame" parameter.
6850
6851 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6852
6853 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6854 Fixes a bug where GDB would print the wrong register names for
6855 targets without SSE.
6856
6857 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6858 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6859 registers.
6860
6861 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6862 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6863 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6864 TDEP->sc_sp_offset.
6865
6866 From Michal Ludvig <mludvig@suse.cz>:
6867 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6868 and `sc_num_regs'.
6869 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6870 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6871 I386_ST0_REGNUM): Move here from...
6872 * i386-tdep.c: ... here.
6873 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6874 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6875 registers if possible.
6876 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6877 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6878 Remove variables.
6879 (i386bsd_sc_reg_offset): New variable.
6880 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6881 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6882 TDEP->sc_sp_offset.
6883 (i386fbsd_sc_reg_offset): New variable.
6884 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6885 TDEP->sc_num_regs.
6886 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6887 variables.
6888 (i386fbsd4_sc_reg_offset): New variable.
6889 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6890 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6891 TDEP->sc_sp_offset.
6892 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6893 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6894 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6895 Remove variables.
6896 (i386nbsd_sc_reg_offset): New variable.
6897 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6898 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6899 TDEP->sc_sp_offset.
6900 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6901 Remove variables.
6902 (i386obsd_sc_reg_offset): New variable.
6903 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6904 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6905 TDEP->sc_sp_offset.
6906 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6907 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6908 for frame pointer offset in `struct sigcontext'.
6909
6910 2003-05-31 Andrew Cagney <cagney@redhat.com>
6911
6912 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6913 architecture methods call_dummy_words, sizeof_call_dummy_words,
6914 push_return_address, store_struct_return, and fix_call_dummy. Set
6915 push_dummy_call instead of deprecated_push_arguments.
6916 (mips_store_struct_return): Delete function.
6917 (mips_fix_call_dummy): Delete function.
6918 (mips_push_return_address): Delete function.
6919 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6920 RA_REGNUM and T9_REGNUM.
6921 (mips_n32n64_push_dummy_call): Ditto for
6922 mips_n32n64_push_arguments.
6923 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6924 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6925
6926 2003-05-31 Andrew Cagney <cagney@redhat.com>
6927
6928 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6929 "dummy_addr" to "bp_addr".
6930 * infcall.c (call_function_by_hand): Pass "funaddr" to
6931 gdbarch_push_dummy_call.
6932 * gdbarch.h, gdbarch.c: Re-generate.
6933 * i386-tdep.c (i386_push_dummy_call): Update.
6934 * arm-tdep.c (arm_push_dummy_call): Update.
6935 * d10v-tdep.c (d10v_push_dummy_call): Update.
6936
6937 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6938
6939 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6940 variable declarations.
6941 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6942 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6943 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6944 x86_64_init_frame_pc, x86_64_init_frame_pc,
6945 x86_64_function_has_prologue): Remove prototypes.
6946 (X86_64_NUM_GREGS): New define.
6947 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6948 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6949 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6950 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6951 XMM1_REGNUM): Remove defines.
6952 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6953 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6954 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6955 X86_64_XMM1_REGNUM): New defines.
6956 (struct x86_64_register_info): Renamed from `struct
6957 register_info'. Remove `size' member.
6958 (x86_64_register_info_table): Remove variable.
6959 (x86_64_register_info): New variable.
6960 (X86_64_NUM_REGS): New define.
6961 (X86_64_NUM_GREGS): Remove define.
6962 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6963 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6964 Remove variables.
6965 (x86_54_dwarf2_reg_to_regnum): Remove function.
6966 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6967 (x86_64_dwarf_reg_to_regnum): New function.
6968 (x86_64_register_name): Rewrite.
6969 (x86_64_register_raw_size): Remove function.
6970 (x86_64_register_byte_table): Remove variable.
6971 (x86_64_register_byte): Remove function.
6972 (x86_64_register_virtual_type): Remove function.
6973 (x86_64_register_type): New function.
6974 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6975 x86_64_register_convert_to_raw): Remove functions.
6976 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6977 (x86_64_use_struct_convention): Make static. Adjust for renamed
6978 defines.
6979 (x86_64_frame_init_saved_regs): Remove function.
6980 (x86_64_push_arguments): Make static. Change to accept a regcache
6981 as argument.
6982 (x86_64_store_return_value, x86_64_extract_return_value): Make
6983 static. Rewrite based on i386 counterparts.
6984 (x86_64_push_dummy_call): New function.
6985 (X86_64_NUM_SAVED_REGS): New define.
6986 (x86_64_register_number): Remove function.
6987 (x86_64_store_struct_return): Remove function.
6988 (x86_64_frameless_function_invocation,
6989 x86_64_function_has_prologue): Remove functions.
6990 (PROLOG_BUFSIZE): Remove define.
6991 (struct x86_64_frame_cache): New structure.
6992 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6993 x86_64_frame_cache, x86_64_frame_this_id,
6994 x86_64_frame_prev_register, x86_64_frame_p,
6995 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6996 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6997 functions.
6998 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6999 variables.
7000 (x86_64_skip_prologue): Rewrite in terms of
7001 x86_64_analyze_prologue.
7002 (x86_64_frame_base_address): New function.
7003 (x86_64_frame_base): New variable.
7004 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7005 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7006 set deprecated_fp_regnum, deprecated_register_size,
7007 deprecated_register_bytes, register_raw_size, register_byte,
7008 register_virtual_type, register_convertiable,
7009 register_convert_to_virtual, convert_to_raw,
7010 deprecated_get_saved_register, deprecated_target_read_fp,
7011 deprecated_push_arguments, deprecated_push_return_address,
7012 deprecated_pop_frame, deprecated_store_struct_return,
7013 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7014 frameless_function_invocation, deprecated_frame_saved_pc,
7015 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7016 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7017 deprecated_init_frame_pc and virtual_frame_pointer. Call
7018 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7019 and x86_64_frame_p. Call frame_base_set_default to register
7020 x86_64_frame_base.
7021 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7022 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7023 (_initialize_x86_64_tdep): Remove function.
7024 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7025 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7026 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7027 define.
7028 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7029 (x86_64_linux_sigcontext_addr): Rewrite.
7030 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7031 x86_64_linux_frame_saved_pc): Remove functions.
7032 (x86_64_linux_pc_in_sigtramp): Renamed from
7033 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7034 trampoline.
7035 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7036 Remove_functions.
7037 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7038 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7039 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7040 (x86_64_regmap): Rename to regmap.
7041 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7042 x86_64_num_gregs.
7043 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7044 x86_64_regmap.
7045 (x86_64_fxsave_offset): Remove function.
7046 (supply_fpregset): Simply call x86_64_supply_fxsave.
7047 (fill_fpregset): Simply call x86_64_fill_fxsave.
7048 (fetch_inferior_registers, store_inferior_registers): Avoid
7049 asignment in if-statement.
7050 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7051 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7052 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7053 (fetch_core_registers): Remove function.
7054 (linux_elf_core_fns): Remove.
7055 (offsetoff): Don't define.
7056 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7057 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7058 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7059 add core-regset.o.
7060 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7061 protection against multiple includes instead of NM_X86_64_h. Add
7062 various comments. Include "config/nm-linux.h". Don't include
7063 <signal.h>.
7064 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7065 GET_THREAD_SIGNALS): Remove defines.
7066 (x86_64_register_u_addr, kernel_u_size,
7067 lin_thread_get_thread_signals): Remove prototypes.
7068 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7069 [HAVE_LINK_H]: Don't include "solib.h".
7070 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7071 * config/i386/tm-x86-64linux.h: Fix comments.
7072 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7073 x86-64-tdep.o): Update dependencies.
7074
7075 2003-05-30 Andrew Cagney <cagney@redhat.com>
7076
7077 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7078 Change parameter type to a "struct regcache *".
7079
7080 * gdbarch.sh: Regardless of the multi-arch level, always define
7081 the macro when not already defined.
7082 * gdbarch.h, gdbarch.c: Re-generate.
7083
7084 2003-05-30 Richard Henderson <rth@redhat.com>
7085
7086 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7087 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7088 (alpha_mdebug_frame_this_id): Likewise.
7089 (alpha_mdebug_frame_prev_register): Likewise.
7090 (alpha_mdebug_frame_base_address): Likewise.
7091 (alpha_mdebug_frame_locals_address): Likewise.
7092 (alpha_mdebug_frame_args_address): Likewise.
7093 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7094 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7095 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7096 loop increment.
7097 (alpha_heuristic_frame_this_id): Make static.
7098 (alpha_heuristic_frame_prev_register): Likewise.
7099 (alpha_heuristic_frame_base_address): Likewise.
7100 * alpha-tdep.h: Update.
7101
7102 2003-05-30 Mark Kettenis <kettenis@gnu.org>
7103
7104 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7105 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7106 defenitions.
7107 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7108 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7109 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7110 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7111 I386_ST0_REGNUM): New defines.
7112 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7113 codestream_get): Remove define.
7114 (codestream_next_addr, condestream_addr, condestream_buf,
7115 codestream_off, codestream_cnt): Remove variables.
7116 (codestream_fill, codestream_seek, codestream_read): Remove
7117 functions.
7118 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7119 functionality.
7120 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7121 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7122 i386_frame_saved_pc, i386_saved_pc_after_call,
7123 i386_frame_num_args, i386_frame_init_saved_regs,
7124 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7125 i386_push_arguments): Remove functions.
7126 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7127 functionality. Use i386_analyze_prologue instead of
7128 i386_get_frame_setup.
7129 (I386_NUM_SAVED_REGS): New define.
7130 (struct i386_frame_cache): New structure.
7131 (i386_alloc_frame_cache, i386_analyze_struct_return,
7132 i386_skip_probe, i386_analyze_frame_setup,
7133 i386_analyze_register_saves, i386_analyze_prologue,
7134 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7135 i386_frame_prev_register, i386_sigtramp_frame_cache,
7136 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7137 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7138 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7139 New functions.
7140 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7141 New variables.
7142 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7143 I386_EAX_REGNUM and I386_EDX_REGNUM.
7144 (i386_extract_return_value, i386_store_return_value): Use
7145 I386_ST0_REGNUM where appropriate.
7146 (i386_extract_struct_value_address): Rewrite to use extract_address.
7147 (i386_svr4_pc_in_sigtramp): Add comment.
7148 (i386_svr4_sigcontext_addr): Rewrite.
7149 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7150 TDEP->sc_sp_offset.
7151 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7152 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7153 of new defines. Set push_dummy_call, don't set
7154 deprecated_push_arguments, deprecated_push_return_address,
7155 deprecated_pop_frame. Don't set parm_boundary. Don't set
7156 deprecated_frame_chain, deprecated_frame_saved_pc,
7157 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7158 save_dummy_frame_tos, unwind_pc. Call
7159 frame_unwind_append_predicate and frame_base_set_default. Don't
7160 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7161 Don't set frameless_function_invocation. Don't set
7162 deprecated_register_bytes, deprecated_register_size,
7163 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7164 * i386-linux-tdep.c: Fix formatting in some comments.
7165 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7166 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7167 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7168 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7169 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7170 redundant parentheses.
7171 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7172 (i386_linux_sigcontext_addr): Use it. Rewrite.
7173 (find_minsym_and_objfile): Change name of second argument.
7174 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7175 changed. Use frame_pc_unwind instead of
7176 DEPRECATED_SAVED_PC_AFTER_CALL.
7177 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7178 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7179 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7180 unwinder.
7181 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7182 "dummy-frame.h".
7183 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7184 (_initialize_i386_cygwin_tdep): New prototype.
7185 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7186 deprecated_frame_chain_valid.
7187 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7188 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7189 Rely on the SVR4 defaults.
7190 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7191 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7192
7193 2003-05-30 Andrew Cagney <cagney@redhat.com>
7194
7195 * infcall.c (call_function_by_hand): Always call
7196 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7197
7198 2003-05-30 Richard Henderson <rth@redhat.com>
7199
7200 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7201 increment.
7202
7203 2003-05-29 Jim Blandy <jimb@redhat.com>
7204
7205 Use gdbarch methods for solib stuff on PowerPC Linux.
7206 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7207 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7208 show through.
7209 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7210 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7211 giving the same effect as the #definitions above.
7212
7213 2003-05-29 Adam Fedor <fedor@gnu.org>
7214
7215 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7216 (find_implementation_from_class): Replace it with the standard
7217 case i.e. do nothing.
7218
7219 2003-05-29 Richard Henderson <rth@redhat.com>
7220
7221 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7222 (alpha_linux_sigtramp_offset): Use it. Make static.
7223 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7224 update for new frame model.
7225 * alpha-mdebug-tdep.c: New file.
7226 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7227 (alpha_osf1_init_abi): Install it.
7228 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7229 (linked_proc_desc_table): Remove.
7230 (alpha_frame_past_sigtramp_frame): Remove.
7231 (alpha_dynamic_sigtramp_offset): Remove.
7232 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7233 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7234 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7235 (push_sigtramp_desc): Remove.
7236 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7237 (alpha_cannot_store_register): Likewise.
7238 (alpha_sigcontext_addr): Remove.
7239 (alpha_find_saved_regs): Remove.
7240 (alpha_frame_init_saved_regs): Remove.
7241 (alpha_init_frame_pc_first): Remove.
7242 (read_next_frame_reg): Remove.
7243 (alpha_frame_saved_pc): Remove.
7244 (alpha_saved_pc_after_call): Remove.
7245 (temp_proc_desc, temp_saved_regs): Remove.
7246 (alpha_about_to_return): Remove.
7247 (cached_proc_desc): Remove.
7248 (alpha_frame_chain): Remove.
7249 (alpha_print_extra_frame_info): Remove.
7250 (alpha_init_extra_frame_info): Remove.
7251 (alpha_frame_locals_address): Remove.
7252 (alpha_frame_args_address): Remove.
7253 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7254 (alpha_push_dummy_frame): Remove.
7255 (alpha_pop_frame): Remove.
7256 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7257 (alpha_read_insn): New.
7258 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7259 for different insn encodings.
7260 (alpha_in_lenient_prologue): Remove.
7261 (struct alpha_sigtramp_unwind_cache): New.
7262 (alpha_sigtramp_frame_unwind_cache): New.
7263 (alpha_sigtramp_register_address): New.
7264 (alpha_sigtramp_frame_this_id): New.
7265 (alpha_sigtramp_frame_prev_register): New.
7266 (alpha_sigtramp_frame_unwind): New.
7267 (alpha_sigtramp_frame_p): New.
7268 (struct alpha_heuristic_unwind_cache): New.
7269 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7270 don't count nop insns that occur between functions.
7271 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7272 heuristic_proc_desc, but without the mdebug wrapping.
7273 (alpha_heuristic_frame_this_id): New.
7274 (alpha_heuristic_frame_prev_register): New.
7275 (alpha_heuristic_frame_unwind): New.
7276 (alpha_heuristic_frame_p): New.
7277 (alpha_heuristic_frame_base_address): New.
7278 (alpha_heuristic_frame_base): New.
7279 (alpha_unwind_dummy_id): New.
7280 (alpha_unwind_pc): New.
7281 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7282 frame related deprecated initializations; install replacements.
7283 (alpha_dump_tdep): Remove.
7284 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7285 (alpha_read_insn, alpha_after_prologue,
7286 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7287 alpha_heuristic_frame_prev_register,
7288 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7289 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7290 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7291 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7292
7293 2003-05-29 Andrew Cagney <cagney@redhat.com>
7294
7295 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7296 dependant on the availability of ASSERT_FUNCTION.
7297 (ASSERT_FUNCTION): Do not define when there is no function name.
7298
7299 2003-05-29 Kevin Buettner <kevinb@redhat.com>
7300
7301 From Jimi X <jimix@watson.ibm.com>:
7302 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7303
7304 2003-05-28 Jim Blandy <jimb@redhat.com>
7305
7306 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7307 argument to ptrace to int; the system headers should give it the
7308 right type, and pointers don't fit in ints on powerpc64-*-*.
7309
7310 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7311
7312 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7313 DW_TAG_catch_block.
7314
7315 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7316
7317 * stabsread.c (dbx_lookup_type): Make static.
7318 (read_type): Ditto.
7319 (add_undefined_type): Ditto.
7320 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7321 not export.
7322
7323 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7324
7325 * hpread.c (hpread_has_name): Make static.
7326 (hpread_psymtab_to_symtab): Ditto.
7327 (file_exists): Ditto.
7328 (hpread_call_pxdb): Ditto.
7329 (hpread_pxdb_needed): Ditto.
7330 (hpread_quick_traverse): Ditto.
7331 (hpread_get_header): Ditto.
7332 (hpread_get_lntt): Ditto.
7333 (hpread_get_slt): Ditto.
7334 (class_of): Ditto.
7335
7336 2003-05-25 Andreas Schwab <schwab@suse.de>
7337
7338 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7339 stack_align and deprecated_extra_stack_alignment_needed.
7340 (m68k_stack_align): Delete.
7341
7342 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7343 (m68k_register_virtual_size): Likewise.
7344 (altos_skip_prologue): Remove obsolete function.
7345 (isi_frame_num_args): Likewise.
7346 (news_frame_num_args): Likewise.
7347 (m68k_fix_call_dummy): Make static.
7348 (m68k_push_dummy_frame): Likewise.
7349 (m68k_pop_frame): Likewise.
7350 (m68k_skip_prologue): Likewise.
7351 (m68k_frame_init_saved_regs): Likewise.
7352 (m68k_saved_pc_after_call): Likewise.
7353 (m68k_get_longjmp_target): Make multi-arch.
7354 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7355 structure. Register m68k_get_longjmp_target if enabled.
7356 * m68k-tdep.h (struct gdbarch_tdep): Define.
7357 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7358
7359 * Makefile.in (config.status): Also depend on configure.tgt
7360 and configure.host.
7361 (m68klinux-tdep.o): Update dependencies.
7362 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7363 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7364 (M68K_LINUX_JB_PC): Define.
7365 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7366 and take additional parameter.
7367 (m68k_linux_sigtramp_saved_pc): Update.
7368 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7369 m68k_linux_pc_in_sigtramp, in_plt_section,
7370 find_solib_trampoline_target.
7371 * config/m68k/tm-linux.h: Don't include any tm headers.
7372 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7373 (JB_ELEMENT_SIZE): Likewise.
7374 (JB_PC): Likewise.
7375 (GET_LONGJMP_TARGET): Likewise.
7376 (IN_SIGTRAMP): Likewise.
7377 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7378
7379 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7380
7381 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7382 (sparc32_push_arguments): Re-implement by calling
7383 sparc32_do_push_arguments.
7384
7385 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7386
7387 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7388 SPARC_O1_REGNUM): New defines.
7389 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7390 (sparc32_store_return_value): New function.
7391 (sparc_extract_struct_value_address): Rewrite to operate on a
7392 regcache.
7393 (sparc_gdbarch_init): Don't set
7394 deprecated_extract_struct_value_address. Set
7395 extract_struct_value_address instead. Don't set
7396 deprecated_extract_return_value and deprecated_store_return_value
7397 for 32-bit targets. Set extract_return_value and
7398 store_return_value instead.
7399 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7400 DEPRECTAED_EXTRACT_RETURN_VALUE,
7401 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7402 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7403 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7404 (sparc_store_return_value): Remove prototype.
7405 (sparc32_store_return_value): New prototype.
7406 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7407 Adjust prototypes.
7408
7409 2003-05-24 Mark Kettenis <kettenis@gnu.org>
7410
7411 * sparcnbsd-tdep.c: Include "gdb_string.h".
7412
7413 2003-05-23 Andrew Cagney <cagney@redhat.com>
7414
7415 * p-valprint.c (pascal_val_print): Replace extract_address with
7416 the inline equivalent extract_unsigned_integer.
7417 * jv-valprint.c (java_value_print): Ditto.
7418 * ada-valprint.c (ada_val_print_1): Ditto.
7419 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7420
7421 2003-05-23 Theodore A. Roth <troth@openavr.org>
7422
7423 * blockframe.c (frameless_look_for_prologue): Remove unused
7424 after_prologue variable.
7425
7426 2003-05-23 Mark Kettenis <kettenis@gnu.org>
7427
7428 * blockframe.c (get_pc_function_start): Rewrite to avoid
7429 asignments in if-statements.
7430
7431 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7432
7433 Committed by Elena Zannoni <ezannoni@redhat.com>.
7434 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
7435 files, don't relocate absolute symbols (and do use mst_abs).
7436
7437 2003-05-23 Andrew Cagney <cagney@redhat.com>
7438
7439 * objc-lang.c: Include "gdb_assert.h".
7440 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7441 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7442 (gdb_check, gdb_check_fatal): Delete functions.
7443 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7444 gdb_assert.
7445 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7446 * Makefile.in (objc-lang.o): Update dependencies.
7447
7448 2003-05-22 Ian Lance Taylor <ian@airs.com>
7449
7450 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7451 with fprintf_filtered, not fprintf_unfiltered.
7452
7453 2003-05-22 Andrew Cagney <cagney@redhat.com>
7454
7455 * stack.c (frame_info): Inline extract_address, replacing it with
7456 extract_unsigned_integer.
7457 * findvar.c (unsigned_pointer_to_address): Ditto.
7458 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7459 * dwarf2expr.c (dwarf2_read_address): Ditto.
7460 * frame.c (frame_pc_unwind): Update comment.
7461 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7462
7463 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7464
7465 * infptrace.c (detach): Call print_sys_errmsg rather than
7466 perror_with_name to issue warning message when errno is non-zero
7467 after calling ptrace detach.
7468
7469 2003-05-21 J. Brobecker <brobecker@gnat.com>
7470
7471 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7472 macro definitions from here...
7473 * hppa-tdep.c: ...to there.
7474
7475 2003-05-20 Kevin Buettner <kevinb@redhat.com>
7476
7477 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7478 register_ptrace_addr(). Fix all callers.
7479
7480 2003-05-21 Andreas Schwab <schwab@suse.de>
7481
7482 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7483 dependencies.
7484 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7485 end.
7486 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7487 (_initialize_m68k_linux_tdep): New function.
7488 (m68k_linux_frame_saved_pc): Make static.
7489 (m68k_linux_extract_return_value): Likewise.
7490 (m68k_linux_store_return_value): Likewise.
7491 (m68k_linux_extract_struct_value_address): Likewise.
7492 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7493 Remove.
7494 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7495 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7496 (DEPRECATED_FRAME_SAVED_PC): Remove.
7497
7498 2003-05-20 Kris Warkentin <kewarken@qnx.com>
7499
7500 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7501 regset numbering rather than our own.
7502
7503 2003-05-19 David Carlton <carlton@bactrian.org>
7504
7505 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7506
7507 2003-05-19 David Carlton <carlton@bactrian.org>
7508
7509 Partial fix for PR c++/827.
7510 * cp-support.h: Include symtab.h.
7511 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7512 * cp-namespace.c: Update contributors.
7513 (cp_lookup_symbol_nonlocal): New.
7514 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7515 (lookup_symbol_file): Ditto.
7516 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7517 * block.h: Declare block_scope, block_using, block_global_block.
7518 * block.c (block_scope): New.
7519 (block_using, block_global_block): Ditto.
7520 * Makefile.in (cp_support_h): Depend on symtab_h.
7521 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7522
7523 2003-05-19 David Carlton <carlton@bactrian.org>
7524
7525 * language.h (struct language_defn): Add 'la_value_of_this'
7526 and 'la_lookup_symbol_nonlocal' members.
7527 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7528 lookup_symbol_static, lookup_symbol_global,
7529 lookup_symbol_aux_block.
7530 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7531 if we should search fields of this and how to do static/global
7532 lookup.
7533 (lookup_symbol_aux_block): Make extern.
7534 (basic_lookup_symbol_nonlocal): New.
7535 (lookup_symbol_static, lookup_symbol_global): Ditto.
7536 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7537 'la_lookup_symbol_nonlocal' members.
7538 * c-lang.c (c_language_defn, cplus_language_defn)
7539 (asm_language_defn, minimal_language_defn): Ditto.
7540 * jv-lang.c (java_language_defn): Ditto.
7541 * language.c (unknown_language_defn, auto_language_defn)
7542 (local_language_defn): Ditto.
7543 * m2-lang.c (m2_language_defn): Ditto.
7544 * objc-lang.c (objc_language_defn): Ditto.
7545 * scm-lang.c (scm_language_defn): Ditto.
7546 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7547 * p-lang.c (pascal_language_defn): Ditto for both.
7548 * Makefile.in (f-lang.o): Depend on value_h.
7549 (p-lang.o): Ditto.
7550
7551 2003-05-19 David Carlton <carlton@bactrian.org>
7552
7553 * block.h: Declare block_static_block.
7554 * block.c (block_static_block): New.
7555 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7556 lookup_symbol_aux_local, calling block_static_block instead.
7557 (lookup_symbol_aux_local): Delete 'static_block' argument.
7558
7559 2003-05-19 David Carlton <carlton@bactrian.org>
7560
7561 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7562
7563 2003-05-19 Michal Ludvig <mludvig@suse.cz>
7564
7565 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7566 register numbers mapping.
7567
7568 2003-05-18 Adam Fedor <fedor@gnu.org>
7569
7570 * symtab.c (completion_list_objc_symbol): New function.
7571 (make_symbol_completion_list): Use it to add ObjC symbols
7572 when looking though the list.
7573 (language_search_unquoted_string): New function.
7574 (make_file_symbol_completion_list): Use it.
7575
7576 2003-05-18 Andreas Schwab <schwab@suse.de>
7577
7578 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7579 dependencies.
7580 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7581 as m68k_linux_extract_return_value.
7582 (DEPRECATED_STORE_RETURN_VALUE): Define as
7583 m68k_linux_store_return_value.
7584 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7585 m68k_linux_extract_struct_value_address.
7586 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7587 get_next_frame, get_frame_base, get_frame_pc.
7588 (m68k_linux_frame_saved_pc): Use get_frame_base.
7589 (m68k_linux_extract_return_value): New function.
7590 (m68k_linux_store_return_value): New function.
7591 (m68k_linux_extract_struct_value_address): New function.
7592 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7593
7594 * c-exp.y (typebase): Remove duplicate occurence of
7595 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
7596 of lookup_signed_typename.
7597
7598 2003-05-18 Mark Kettenis <kettenis@gnu.org>
7599
7600 * dwarf2loc.c (find_location_expression): Change type of second
7601 argument to `size_t *'.
7602 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7603 for size variable.
7604
7605 2003-05-18 David Carlton <carlton@bactrian.org>
7606
7607 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7608 'linkage_name'. Add comment.
7609 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7610 'linkage_name'.
7611 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7612 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7613 (lookup_block_symbol): Ditto.
7614
7615 2003-05-16 Andrew Cagney <cagney@redhat.com>
7616
7617 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7618 * gdbarch.h, gdbarch.c: Re-generate.
7619 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7620 * TODO (REGISTER_BYTES): Delete reference.
7621 * alpha-tdep.c (alpha_gdbarch_init): Update.
7622 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7623 * x86-64-tdep.c (x86_64_init_abi): Update.
7624 * vax-tdep.c (vax_gdbarch_init): Update.
7625 * v850-tdep.c (v850_gdbarch_init): Update.
7626 * sparc-tdep.c (sparc_gdbarch_init): Update.
7627 * sh-tdep.c (sh_gdbarch_init): Update.
7628 * s390-tdep.c (s390_gdbarch_init): Update.
7629 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7630 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7631 (ns32k_gdbarch_init_32382): Update.
7632 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7633 * mcore-tdep.c (mcore_gdbarch_init): Update.
7634 * m68k-tdep.c (m68k_gdbarch_init): Update.
7635 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7636 * ia64-tdep.c (ia64_gdbarch_init): Update.
7637 * i386-tdep.c (i386_gdbarch_init): Update.
7638 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7639 * hppa-tdep.c (hppa_gdbarch_init): Update.
7640 * h8300-tdep.c (h8300_gdbarch_init): Update.
7641 * frv-tdep.c (frv_gdbarch_init): Update.
7642 * cris-tdep.c (cris_gdbarch_init): Update.
7643 * avr-tdep.c (avr_gdbarch_init): Update.
7644 * arm-tdep.c (arm_gdbarch_init): Update.
7645 * sparc-tdep.c (sparc_pop_frame): Update.
7646 * rs6000-tdep.c (rs6000_pop_frame): Update.
7647 * remote.c (init_remote_state): Update.
7648 (remote_prepare_to_store): Update.
7649 * remote-vx.c (vx_prepare_to_store): Update.
7650 * remote-sds.c (sds_fetch_registers): Update.
7651 (sds_prepare_to_store): Update.
7652 * remote-array.c: Update.
7653 * regcache.c (init_legacy_regcache_descr): Update.
7654 (init_regcache_descr): Update.
7655 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7656 (mips_o64_extract_return_value): Update.
7657 * irix5-nat.c (fetch_core_registers): Update.
7658 * irix4-nat.c (fetch_core_registers): Update.
7659 * i386-tdep.h: Update.
7660 * hppa-tdep.c (pa_do_registers_info): Update.
7661 (pa_do_strcat_registers_info): Update.
7662 * cris-tdep.c (cris_register_bytes_ok): Update.
7663 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7664 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7665 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7666 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7667 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7668 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7669 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7670 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7671 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7672 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7673 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7674 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7675 (REGISTER_BYTES_OK): Update.
7676 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7677 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7678
7679 2003-05-16 Ian Lance Taylor <ian@airs.com>
7680
7681 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7682 (vax_print_insn, print_insn_arg): Remove static functions.
7683 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7684 print_insn_vax from opcodes library.
7685 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7686
7687 2003-05-15 Andrew Cagney <cagney@redhat.com>
7688
7689 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7690 * target.h (memory_breakpoint_from_pc): Delete declaration.
7691 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7692 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7693 * monitor.c (monitor_insert_breakpoint): Use
7694 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7695 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7696 * gdbarch.h, gdbarch.c: Re-generate.
7697 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7698 (sparc_gdbarch_init): Set breakpoint_from_pc to
7699 sparc_breakpoint_from_pc.
7700 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7701 (BREAKPOINT_FROM_PC): Define.
7702 (sparc_breakpoint_from_pc): Declare.
7703 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7704 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7705 (BREAKPOINT_FROM_PC): Define.
7706 (BREAKPOINT): Delete macro.
7707 * target.h: Update comment.
7708 * s390-tdep.c (s390_gdbarch_init): Update comments.
7709 * remote.c: Update comments.
7710 * remote-mips.c: Update comments.
7711 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7712 * mem-break.c: Update comment.
7713 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7714 (ia64_memory_insert_breakpoint): Update.
7715 * config/sparc/tm-sparc.h: Update comment.
7716 * config/pa/tm-hppa64.h: Update comment.
7717 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7718 (rs6000_breakpoint_from_pc): Update.
7719 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7720 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7721 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7722 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7723 (mips_breakpoint_from_pc): Update.
7724 (mips_dump_tdep): Update.
7725
7726 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7727 * minsyms.c (lookup_minimal_symbol): Inline
7728 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7729
7730 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7731 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7732 * p-lang.c (pascal_printstr): Ditto.
7733 * objc-lang.c (objc_printstr): Ditto.
7734 * m2-lang.c (m2_printstr): Ditto.
7735 * jv-valprint.c (java_print_value_fields): Ditto.
7736 * f-lang.c (f_printstr): Ditto.
7737 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7738 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7739 for repeat_count_threshold.
7740 * Makefile.in (cp-valprint.o): Update dependencies.
7741
7742 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
7743
7744 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7745 (examine_prologue): Support looking through leaf functions, knowing
7746 they start with mov r2,r12. Support skipping over indirect stores
7747 of the input registers. Upon hitting a non-nop branch instruction
7748 or predicated instruction, bail out by setting lim_pc to the current
7749 pc value in the loop. At the end, if the lim_pc value is still
7750 beyond our calculated value and we have trust_limit set,
7751 use the lim_pc value.
7752
7753 2003-05-15 Andrew Cagney <cagney@redhat.com>
7754
7755 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7756 generic_find_dummy_frame.
7757 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7758 (deprecated_generic_find_dummy_frame): Update.
7759 (deprecated_read_register_dummy): Update.
7760 * frame.c (deprecated_generic_get_saved_register): Update.
7761
7762 2003-05-15 Theodore A. Roth <troth@openavr.org>
7763
7764 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7765 (avr_gdbarch_init): Set breakpoint_from_pc method.
7766
7767 2003-05-15 Andrew Cagney <cagney@redhat.com>
7768
7769 * regcache.c (build_regcache): Set deprecated_register_valid
7770 directly.
7771 (deprecated_grub_regcache_for_register_valid): Delete function.
7772 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7773 declaration.
7774
7775 2003-05-15 David Carlton <carlton@bactrian.org>
7776
7777 Committed by Elena Zannoni <ezannoni@redhat.com>
7778 * symtab.c (lookup_symbol_aux): Delete calls to
7779 lookup_symbol_aux_minsyms.
7780 (lookup_symbol_aux_minsyms): Comment out function and
7781 prototype. Delete lookup by mangled name.
7782
7783 2003-05-14 Kevin Buettner <kevinb@redhat.com>
7784
7785 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7786 correctly indicate an empty stack and ``stack_allocated'' to the
7787 indicate the number of elements initially allocated.
7788 (dwarf_expr_grow_stack): Simplify method for computing new
7789 stack size. Don't loop infinitely if ``stack_len'' is zero.
7790 (execute_stack_op): Move ``ctx->in_reg'' initialization
7791 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7792 be used in conjuction with DW_OP_piece. Revise error message
7793 accordingly.
7794
7795 2003-05-14 Theodore A. Roth <troth@openavr.org>
7796
7797 * MAINTAINERS: Update my email address.
7798 * avr-tdep.c: Ditto.
7799
7800 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
7801
7802 * symtab.h (enum domain_enum): Rename from namespace_enum.
7803 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7804 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7805 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7806 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7807 TYPES_NAMESPACE, METHODS_NAMESPACE.
7808 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7809 (struct symbol, struct partial_symbol): Rename field
7810 'namespace_enum namespace' to 'domain_enum domain'.
7811 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7812 Delete old define kludge for namespace.
7813
7814 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7815 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7816 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7817 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7818 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7819 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7820 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7821 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7822 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7823 occurrences of the above.
7824
7825 2003-05-14 Ian Lance Taylor <ian@airs.com>
7826
7827 * Makefile.in (install-only): Use $(SHELL) when running
7828 mkinstalldirs.
7829
7830 2003-05-13 Ian Lance Taylor <ian@airs.com>
7831
7832 * MAINTAINERS (write after approval): Add myself.
7833
7834 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7835 second and third arguments.
7836 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7837 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7838
7839 2003-05-13 Andrew Cagney <cagney@redhat.com>
7840
7841 * defs.h (store_address): Delete declaration.
7842 findvar.c (store_address): Delete function.
7843 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7844 store_unsigned_integer.
7845 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7846 * v850-tdep.c (v850_push_arguments): Ditto.
7847 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7848 * sh-tdep.c (sh64_get_saved_register): Ditto.
7849 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7850 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7851 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7852 (mips_get_saved_register): Ditto.
7853 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7854 (find_func_descr, ia64_push_arguments): Ditto.
7855 * i386-tdep.c (i386_push_arguments): Ditto.
7856 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7857 * frv-tdep.c (frv_push_arguments): Ditto.
7858 * frame.c (legacy_saved_regs_prev_register): Ditto.
7859 (deprecated_generic_get_saved_register): Ditto.
7860 * findvar.c (unsigned_address_to_pointer): Ditto.
7861 * dwarf2read.c (dwarf2_const_value): Ditto.
7862 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7863 * alpha-tdep.c (alpha_push_arguments): Ditto.
7864
7865 2003-05-12 J. Brobecker <brobecker@gnat.com>
7866
7867 * NEWS: Mention that the hppa-hpux port has been partially
7868 multiarched (32bit ABIT only, so far).
7869
7870 2003-05-11 Andrew Cagney <cagney@redhat.com>
7871
7872 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7873 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7874 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7875 sim/testsuite/sim/arm/misaligned2.ms, and
7876 sim/testsuite/sim/arm/misaligned3.ms.
7877 * disasm.h (struct ui_file): Add opaque struct declaration.
7878 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7879 * frame.h (struct ui_file): Ditto.
7880
7881 2003-05-11 Mark Kettenis <kettenis@gnu.org>
7882
7883 * value.h: Pretty print.
7884
7885 2003-05-10 Mark Kettenis <kettenis@gnu.org>
7886
7887 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7888
7889 2003-05-08 Andrew Cagney <cagney@redhat.com>
7890
7891 * regcache.h (max_register_size): Delete declaration.
7892 * regcache.c (max_register_size): Delete function.
7893 (struct regcache_descr): Delete field "max_register_size".
7894 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7895 registers fit in MAX_REGISTER_SIZE.
7896 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7897 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7898 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7899 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7900 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7901 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7902 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7903 * dve3900-rom.c, hppa-tdep.c: Ditto.
7904
7905 2003-05-08 David Carlton <carlton@math.stanford.edu>
7906
7907 * valops.c (push_word): Fix typo.
7908
7909 2003-05-08 Andrew Cagney <cagney@redhat.com>
7910
7911 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7912 * gdbarch.h: Re-generate.
7913 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7914 (legacy_max_register_raw_size): Delete declaration.
7915 * regcache.c (legacy_max_register_raw_size): Delete function.
7916 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7917 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7918 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7919 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7920 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7921 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7922 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7923 * findvar.c, dwarf2cfi.c: Ditto.
7924
7925 2003-05-08 Andrew Cagney <cagney@redhat.com>
7926
7927 * mips-tdep.c (read_signed_register): New function, moved to here
7928 from "regcache.c".
7929 (read_signed_register_pid): Ditto.
7930 * regcache.c (read_signed_register_pid): Delete function, moved to
7931 "mips-tdep.c".
7932 (read_signed_register): Ditto.
7933 * regcache.h (read_signed_register): Delete declaration.
7934 (read_signed_register_pid): Delete declaration.
7935
7936 2003-05-08 Andrew Cagney <cagney@redhat.com>
7937
7938 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7939 * gdbarch.h: Re-generate.
7940 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7941 (legacy_max_register_virtual_size): Delete declaration.
7942 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7943 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7944 * tracepoint.c (memrange_sortmerge): Ditto.
7945 * sparc-tdep.c (sparc_print_registers): Ditto.
7946 * regcache.c (legacy_max_register_virtual_size): Delete function.
7947
7948 2002-05-08 J. Brobecker <brobecker@gnat.com>
7949
7950 * fork-child.c (escape_bang_in_quoted_argument): New function.
7951 (fork_inferior): Escape '!' characters in quoted arguments
7952 only when needed.
7953
7954 2003-05-08 J. Brobecker <brobecker@gnat.com>
7955
7956 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7957 the language of the CU is not currently supported by GDB.
7958
7959 2003-05-08 J. Brobecker <brobecker@gnat.com>
7960
7961 * defs.h (language): Add language_minimal enum value.
7962 * c-lang.c (minimal_language_defn): New language definition.
7963 (_initialize_c_language): Add the new minimal language to the list
7964 of languages known to GDB.
7965
7966 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7967
7968 * frame.c (get_frame_type): Don't attempt to lazily initialize
7969 frame's unwinder for legacy frames.
7970
7971 2003-05-07 Andrew Cagney <cagney@redhat.com>
7972
7973 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7974 and "regcache" parameters.
7975 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7976
7977 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7978
7979 * dwarf2read.c (dwarf_decode_lines): Only use output of
7980 check_cu_functions() when calling record_line(). Do not update
7981 the current address.
7982
7983 2003-05-07 Andrew Cagney <cagney@redhat.com>
7984
7985 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7986 code.
7987
7988 2003-05-07 Jim Blandy <jimb@redhat.com>
7989
7990 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7991 'maint info symtabs' and 'maint info psymtabs'.
7992 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7993 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7994 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7995 Declarations updated.
7996 * maint.c (maintenance_list_command): Delete.
7997 (_initialize_maint_cmds): Update calls to add_cmd.
7998 * gdbcmd.h (maintenancelistlist): Delete declaration.
7999 * cli/cli-cmds.c (maintenancelistlist): Delete.
8000 (init_cmd_lists): Don't initialize it.
8001 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8002
8003 2003-05-07 Andrew Cagney <cagney@redhat.com>
8004
8005 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8006 "regcache".
8007 (d10v_print_registers_info): Update.
8008 (d10v_dmap_register, d10v_imap_register): Delete functions.
8009 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8010 and "imap_register".
8011 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8012 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8013 * arch-utils.c (generic_remote_translate_xfer_address): Add
8014 "regcache" and "gdbarch" parameters.
8015 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8016 parameter. Change class to multi-arch.
8017 * gdbarch.h, gdbarch.c: Re-generate.
8018 * remote.c (remote_xfer_memory): Use
8019 gdbarch_remote_translate_xfer_address.
8020
8021 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8022
8023 * infrun.c (prev_pc): Move declaration ahead of proceed().
8024 (proceed): Refresh prev_pc value before resuming.
8025 (stop_stepping): Remove code to refresh prev_pc.
8026
8027 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8028
8029 * nto-tdep.c: Removed stray comment.
8030
8031 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8032
8033 * i386-nto-tdep.c: Fix old K&R function definitions.
8034 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8035 Also change add_show_from_set() call to add_setshow_cmd().
8036 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8037
8038 2003-05-05 Andrew Cagney <cagney@redhat.com>
8039
8040 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8041 (fprint_dummy_frames): New function.
8042 (maintenance_print_dummy_frames): New function.
8043 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8044 * frame.c (fprint_frame_id): Make global.
8045 * frame.h (fprint_frame_id): Declare.
8046 * Makefile.in (dummy-frame.o): Update dependencies.
8047
8048 2003-05-05 Andrew Cagney <cagney@redhat.com>
8049
8050 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8051 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8052 SIZEOF_CALL_DUMMY_WORDS.
8053 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8054 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8055 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8056 CALL_DUMMY_BREAKPOINT_OFFSET.
8057 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8058 CALL_DUMMY_START_OFFSET.
8059 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8060 * gdbarch.h, gdbarch.c: Re-generate.
8061 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8062 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8063 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8064 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8065 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8066 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8067 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8068 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8069 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8070 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8071 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8072 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8073 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8074 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8075 * config/sparc/tm-sparc.h: Update.
8076
8077 2003-05-05 Kris Warkentin <kewarken@qnx.com>
8078
8079 * configure.tgt: Add i[3456]86-*-nto*.
8080 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8081 * nto-tdep.c: New file. Neutrino target support routines.
8082 * nto-tdep.h: New file. Neutrino target header.
8083 * config/tm-qnxnto.h: New file.
8084 * config/i386/i386nto.mt: New file.
8085 * config/i386/tm-i386nto.h: New file.
8086
8087 2003-05-04 Andrew Cagney <cagney@redhat.com>
8088
8089 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8090 (load_infrun_state): Ditto.
8091 (struct thread_info): Drop "prev_func_name" field.
8092 * thread.c (load_infrun_state): Update.
8093 (save_infrun_state): Update.
8094 * infrun.c (prev_func_name): Delete variable.
8095 (init_wait_for_inferior): Do not clear prev_func_name.
8096 (stop_stepping, keep_going, context_switch): Do not swap
8097 prev_func_name.
8098 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8099 instead of PC_IN_SIGTRAMP.
8100
8101 2003-05-04 Andrew Cagney <cagney@redhat.com>
8102
8103 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8104 REGISTER_BYTE with register_offset_hack.
8105 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8106 that REGISTER_BYTE is consistent with the regcache.
8107 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8108 * gdbarch.h, gdbarch.c: Regenerate.
8109
8110 2003-05-04 Mark Kettenis <kettenis@gnu.org>
8111
8112 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8113 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8114
8115 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8116
8117 2003-05-03 J. Brobecker <brobecker@gnat.com>
8118
8119 From Thierry Schneider <tpschneider1@yahoo.com>
8120 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8121 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8122 (mi-cmd-symbol.o): Add rule.
8123
8124 2003-05-03 Andrew Cagney <cagney@redhat.com>
8125
8126 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8127 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8128 * gdbarch.h, gdbarch.c: Re-generate.
8129 * d10v-tdep.c (d10v_push_dummy_code): New function.
8130 (d10v_gdbarch_init): Set push_dummy_code.
8131 * infcall.c (legacy_push_dummy_code): New function.
8132 (generic_push_dummy_code): New function.
8133 (push_dummy_code): New function.
8134 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8135 instead of dummy_addr, to push_dummy_call. Move call to
8136 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8137 switch.
8138 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8139
8140 2003-05-03 Andrew Cagney <cagney@redhat.com>
8141
8142 * disasm.h (print_insn): Declare.
8143 * disasm.c (init_gdb_disassemble_info): New function.
8144 (gdb_disassembly): Call init_gdb_disassemble_info.
8145 (gdb_print_insn): New function.
8146 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8147 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8148 * mcore-tdep.c: Include "disasm.h"
8149 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8150 * d10v-tdep.c: Include "disasm.h".
8151 (display_trace): Call gdb_print_insn, instead of print_insn.
8152 (print_insn): Delete function.
8153 * printcmd.c: Include "disasm.h".
8154 (print_insn): Delete function.
8155 (print_formatted): Call gdb_print_insn, instead of print_insn.
8156 * Makefile.in (printcmd.o): Update dependencies.
8157 (mcore-tdep.o, d10v-tdep.o): Ditto.
8158
8159 2003-05-02 Andrew Cagney <cagney@redhat.com>
8160
8161 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8162 PC_REGNUM, re-indent.
8163 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8164 PC_REGNUM isn't set.
8165
8166 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8167 * gdbarch.h, gdbarch.c: Re-generate.
8168 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8169 register_virtual_size, pc_regnum, or register_bytes.
8170 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8171 (d10v_register_type): Use D10V_PC_REGNUM.
8172 (d10v_print_registers_info, d10v_read_pc): Ditto.
8173 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8174 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8175
8176 2003-05-02 David Carlton <carlton@bactrian.org>
8177
8178 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8179 the name with mstrsave.
8180
8181 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
8182
8183 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8184 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8185 (host_charset_name, target_charset_name): New vars for use by
8186 set/show commands.
8187 (host_charset_enum, target_charset_enum): New enums for set/show
8188 commands.
8189 (set_charset_sfunc, set_host_charset_sfunc,
8190 set_target_charset_sfunc): New functions.
8191 (set_host_charset, set_target_charset): Make static.
8192 (list_charsets, set_host_charset_command,
8193 set_target_charset_command): Delete functions.
8194 (show_charset_command): Rewrite as....
8195 (show_charset): Hook this up with the set/show command mechanism.
8196 (_initialize_charset): Change names of charsets to match the
8197 set/show enums. Use host_charset_name and target_charset_name.
8198 Use set/show mechanism for charset, host-charset, target-charset
8199 commands. Do not make 'show host-charset' and 'show
8200 target-charset' be aliases of 'show charset'.
8201
8202 * charset.h (set_host_charset, set_target_charset): Don't export,
8203 they are not used outside the file.
8204
8205 2003-05-01 Andrew Cagney <cagney@redhat.com>
8206
8207 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8208 (gdb_disassembly): Make "di" non static, always initialize and
8209 cleanup. Always use dis_asm_read_memory.
8210 (gdb_dis_asm_read_memory): Delete function.
8211
8212 2003-05-01 Andrew Cagney <cagney@redhat.com>
8213
8214 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8215 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8216
8217 2003-04-30 Andrew Cagney <cagney@redhat.com>
8218
8219 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8220 "tm_print_insn_info".
8221 (TARGET_PRINT_INSN_INFO): Delete macro.
8222 (dis_asm_read_memory): Delete function declaration.
8223 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8224 (tm_print_insn_info): Delete variable definition.
8225 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8226 * gdbarch.h, gdbarch.c: Re-generate.
8227 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8228 "deprecated_tm_print_insn_info".
8229 * mcore-tdep.c (mcore_dump_insn): Ditto.
8230 * mips-tdep.c (mips_gdbarch_init): Ditto.
8231 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8232 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8233 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8234 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8235 instead of TARGET_PRINT_INSN_INFO, add comment.
8236 * s390-tdep.c (s390_get_frame_info): Instead of
8237 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8238 (s390_check_function_end, s390_is_sigreturn): Ditto.
8239 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8240 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8241 * disasm.c: Include "gdbcore.h".
8242 (_initialize_disasm): New function, initialize
8243 "deprecated_tm_print_insn_info".
8244 (deprecated_tm_print_insn_info): New variable.
8245 (dis_asm_read_memory): Moved from "corefile.c", made static.
8246 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8247 * Makefile.in (disasm.o): Update dependencies.
8248
8249 2003-04-30 Andrew Cagney <cagney@redhat.com>
8250
8251 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8252
8253 2003-04-29 Adam Fedor <fedor@gnu.org>
8254
8255 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8256 * infcall.c (find_function_addr): Make non-static.
8257 * infcall.h (find_function_addr): Declare.
8258 * Makefile.in (eval.o): Update dependencies.
8259
8260 2003-04-28 Adam Fedor <fedor@gnu.org>
8261
8262 * symtab.c (symbol_find_demangled_name): Check for and demangle
8263 ObjC symbols.
8264 (symbol_init_demangled_name): Init for language_objc as well.
8265
8266 2003-04-28 Andrew Cagney <cagney@redhat.com>
8267
8268 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8269 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8270 * gdbarch.h, gdbarch.c: Re-generate.
8271 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8272 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8273 * inferior.h (deprecated_read_fp): Rename read_fp.
8274 (generic_target_read_fp): Delete declaration.
8275 * regcache.c (generic_target_read_fp): Delete function.
8276 (deprecated_read_fp): Replace read_fp, use
8277 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8278 * d10v-tdep.c (d10v_read_fp): Delete function.
8279 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8280
8281 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8282 deprecated_target_read_fp to generic_target_read_fp.
8283 * sh-tdep.c (sh_gdbarch_init): Ditto.
8284 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8285 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8286 * frv-tdep.c (frv_gdbarch_init): Ditto.
8287
8288 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8289 deprecated_fp_regnum.
8290 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8291 * vax-tdep.c (vax_gdbarch_init): Ditto.
8292 * v850-tdep.c (v850_gdbarch_init): Ditto.
8293 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8294 * sh-tdep.c (sh_gdbarch_init): Ditto.
8295 * s390-tdep.c (s390_gdbarch_init): Ditto.
8296 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8297 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8298 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8299 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8300 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8301 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8302 * i386-tdep.c (i386_gdbarch_init): Ditto.
8303 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8304 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8305 * frv-tdep.c (frv_gdbarch_init): Ditto.
8306 * cris-tdep.c (cris_gdbarch_init): Ditto.
8307 * avr-tdep.c (avr_gdbarch_init): Ditto.
8308 * arm-tdep.c (arm_gdbarch_init): Ditto.
8309 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8310
8311 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8312 * v850-tdep.c (v850_gdbarch_init): Ditto.
8313 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8314 * sh-tdep.c (sh_gdbarch_init): Ditto.
8315 * s390-tdep.c (s390_gdbarch_init): Ditto.
8316 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8317 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8318 * mips-tdep.c (mips_gdbarch_init): Ditto.
8319 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8320 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8321 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8322 * frv-tdep.c (frv_gdbarch_init): Ditto.
8323 * avr-tdep.c (avr_gdbarch_init): Ditto.
8324 * arm-tdep.c (arm_gdbarch_init): Ditto.
8325
8326 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8327 DEPRECATED_FP_REGNUM.
8328 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8329 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8330 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8331 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8332 (sparc32_register_virtual_type): Ditto.
8333 * sh-tdep.c (sh64_frame_chain): Ditto.
8334 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8335 (sh_nofp_frame_init_saved_regs): Ditto.
8336 (sh64_nofp_frame_init_saved_regs): Ditto.
8337 (sh_fp_frame_init_saved_regs): Ditto.
8338 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8339 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8340 * procfs.c (procfs_fetch_registers): Ditto.
8341 (procfs_store_registers): Ditto.
8342 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8343 (store_inferior_registers, fetch_core_registers): Ditto.
8344 (fetch_kcore_registers, clear_regs): Ditto.
8345 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8346 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8347 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8348 * nlm/i386.c (do_status): Ditto.
8349 * mipsv4-nat.c (supply_gregset): Ditto.
8350 * mips-tdep.c: Ditto for comments.
8351 * mips-nat.c (fetch_inferior_registers): Ditto.
8352 (store_inferior_registers, fetch_core_registers): Ditto.
8353 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8354 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8355 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8356 (i386_do_pop_frame, i386_register_type): Ditto.
8357 * hppa-tdep.c (hppa_frame_chain): Ditto.
8358 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8359 (hppa_pop_frame, hppa_read_fp): Ditto.
8360 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8361 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8362 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8363 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8364 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8365 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8366 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8367 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8368 * blockframe.c: Ditto for comments.
8369 * arch-utils.h: Ditto for comments.
8370 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8371 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8372 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8373 * alpha-tdep.h: Ditto for comments.
8374 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8375 (alpha_cannot_store_register): Ditto.
8376 (alpha_push_dummy_frame): Ditto.
8377 * alpha-nat.c (supply_gregset): Ditto.
8378
8379 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8380 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8381 * config/sparc/tm-sparc.h: Update comment.
8382
8383 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8384 deprecated_read_fp instead of TARGET_READ_FP.
8385 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8386 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8387 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8388 deprecated_read_fp instead of read_fp.
8389 * s390-tdep.c (s390_push_arguments): Ditto.
8390 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8391 * frame.h: Ditto in comments.
8392 * frame.c (legacy_get_prev_frame): Ditto.
8393 * dummy-frame.c (dummy_frame_this_id): Ditto.
8394 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8395
8396 2003-04-28 Andrew Cagney <cagney@redhat.com>
8397
8398 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8399 * gdbarch.h, gdbarch.c: Re-generate.
8400 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8401 * vax-tdep.c (_initialize_vax_tdep): Update.
8402 * v850-tdep.c (_initialize_v850_tdep): Update.
8403 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8404 * s390-tdep.c (_initialize_s390_tdep): Update.
8405 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8406 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8407 * mips-tdep.c (_initialize_mips_tdep): Update.
8408 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8409 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8410 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8411 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8412 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8413 * frv-tdep.c (_initialize_frv_tdep): Update.
8414 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8415 (_initialize_cris_tdep): Update.
8416 * arch-utils.c (legacy_print_insn): Update.
8417 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8418
8419 2003-04-26 Adam Fedor <fedor@gnu.org>
8420
8421 * linespec.c (decode_objc): New function to decode ObjC calls
8422 (decode_line_1): Check for ObjC calls (using decode_objc)
8423 * Makefile (linespec.o): Update dependencies.
8424
8425 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
8426
8427 * breakpoint.h (struct breakpoint_ops): New.
8428 (struct breakpoint): Add ops member.
8429
8430 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8431 (mention): Use new breakpoint ops member.
8432 (set_raw_breakpoint): Initialize ops field to NULL.
8433 (print_exception_catchpoint, print_one_exception_catchpoint)
8434 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8435 (gnu_v3_exception_catchpoint_ops): New.
8436 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8437
8438 2003-04-25 Adam Fedor <fedor@gnu.org>
8439
8440 * Makefile.in (COMMON_OBS): Add objc-lang.o
8441
8442 2003-04-25 Andrew Cagney <cagney@redhat.com>
8443
8444 * d10v-tdep.c (print_insn): Delete function.
8445 (display_trace): Use TARGET_PRINT_INSN.
8446 (_initialize_d10v_tdep): Do not set tm_print_insn.
8447 (d10v_gdbarch_init): Set print_insn.
8448
8449 2003-04-25 Andrew Cagney <cagney@redhat.com>
8450
8451 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8452 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8453 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8454 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8455 (nr_dmap_regs, a0_regnum): ... new functions.
8456 (d10v_print_registers_info): Use a0_regnum, use register_size.
8457 (d10v_register_byte): Delete function.
8458 (d10v_register_raw_size): Delete function.
8459 (d10v_register_type): Use a0_regnum.
8460 (d10v_print_registers_info): Use a0_regnum.
8461 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8462 (d10v_gdbarch_init): Do not set register_byte or
8463 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8464 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8465 extract_address.
8466 (trace_command): Use XCALLOC.
8467 (print_insn): Delete reference to tm_print_insn.
8468 (saved_regs_unwinder): Use store_unsigned_integer instead of
8469 store_address.
8470 * frame.h (FRAME_OBSTACK_CALLOC): Define
8471
8472 2003-04-25 David Carlton <carlton@bactrian.org>
8473
8474 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8475
8476 2003-04-24 Adam Fedor <fedor@gnu.org>
8477
8478 * objc-lang.c: Include "valprint.h"
8479 * Makefile.in (objc-lang.o): Update dependencies.
8480
8481 2003-04-24 Adam Fedor <fedor@gnu.org>
8482
8483 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
8484 architecture dependant compilation and mark as unimplemented
8485 (until they get put in the gdbarch vector).
8486
8487 2003-04-23 David Carlton <carlton@bactrian.org>
8488
8489 * cp-support.c (cp_find_first_component): Accept 'operator' in
8490 more locations.
8491
8492 2003-04-23 Andrew Cagney <cagney@redhat.com>
8493
8494 * infcall.c (call_function_by_hand): Eliminate redundant
8495 indentation. Move "saved_async" and "old_cleanups" to where they
8496 are needed.
8497
8498 2003-04-23 Andrew Cagney <cagney@redhat.com>
8499
8500 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8501 and "buffer". Move the "name" code to where it is needed.
8502
8503 2003-04-23 Andrew Cagney <cagney@redhat.com>
8504
8505 * infcall.c (call_function_by_hand): Move variables "start_sp",
8506 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8507 code to ON_STACK switch branch.
8508
8509 2003-04-23 Andrew Cagney <cagney@redhat.com>
8510
8511 * infcall.c (call_function_by_hand): Make declaration of "i",
8512 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8513 lint.
8514
8515 2003-04-23 Andrew Cagney <cagney@redhat.com>
8516
8517 * infcall.c (call_function_by_hand): Delete variable
8518 "n_method_args". Localize "param_type"'s declaration to the loop
8519 that it is used. Reinstate code assigning to said variable -
8520 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8521 Rationalize code using "param_type".
8522
8523 2003-04-22 Andrew Cagney <cagney@redhat.com>
8524
8525 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8526 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8527 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8528 to DEPRECATED_PUSH_RETURN_ADDRESS.
8529
8530 2003-04-22 Kevin Buettner <kevinb@redhat.com>
8531
8532 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8533 on the DWARF2 register number prior to fetching a register.
8534
8535 2003-04-22 J. Brobecker <brobecker@gnat.com>
8536
8537 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8538 Update all the tests using SOFT_FLOAT considering the fact that
8539 this macro was always set to 0.
8540 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8541 considering the fact that this macro was always set to 0.
8542 * hppa-tdep.h (hppa_store_return_value): Likewise.
8543 (hppa_extract_return_value): Likewise.
8544
8545 2003-04-22 J. Brobecker <brobecker@gnat.com>
8546
8547 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8548 the hppa-pro target only.
8549
8550 2003-04-21 J. Brobecker <brobecker@gnat.com>
8551
8552 Ongoing multi-arch conversion effort for HP/UX:
8553 * config/pa/tm-hppa.h: Move all macro that are no longer
8554 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8555 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8556
8557 2003-04-21 J. Brobecker <brobecker@gnat.com>
8558
8559 * config/pa/tm-hppa.h: Obsolete a section that was only used
8560 for hppa-pro.
8561
8562 2003-04-21 J. Brobecker <brobecker@gnat.com>
8563
8564 Ongoing multi-arch conversion for HP/UX.
8565 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8566 if already defined (allows hppa64 to stay non-multiarched for now).
8567 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8568
8569 2003-04-21 Andrew Cagney <cagney@redhat.com>
8570
8571 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8572
8573 2003-04-21 Andrew Cagney <cagney@redhat.com>
8574
8575 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8576 "i386_num_mmx_regs".
8577
8578 2003-04-21 Andrew Cagney <cagney@redhat.com>
8579
8580 * infcall.c: New file.
8581 * infcall.h: New file.
8582 * valarith.c: Include "infcall.h".
8583 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8584 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8585 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8586 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8587 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8588 (SFILES): Add "infcall.c"
8589 (COMMON_OBS): Add "infcall.o".
8590 (infcall.o): Specify dependencies.
8591 * value.h (call_function_by_hand): Delete declaration.
8592 * inferior.h (run_stack_dummy): Delete declaration.
8593 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8594 (run_stack_dummy): Move to "infcall.c", merged into
8595 call_function_by_hand.
8596 * valops.c (call_function_by_hand): Moved to "infcall.c".
8597 (find_function_addr, value_arg_coerce): Ditto.
8598 (unwindonsignal_p, coerce_float_to_double): Ditto.
8599 (_initialize_valops): Move "set/show coerce-float-to-double", and
8600 "set/show unwindonsignal" commands to "infcall.c".
8601 * v850-tdep.c, target.h: Update comments.
8602 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8603 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8604 (sh64_init_extra_frame_info): Update comments.
8605 * mn10300-tdep.c: Update comments.
8606 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8607 * config/sparc/tm-sparc.h: Update comments.
8608 * breakpoint.h: Update comments.
8609 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8610 * arm-tdep.c: Update comment.
8611
8612 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8613
8614 * i386-tdep.c (i386_num_register_names): New variable.
8615 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8616 (MM0_REGNUM): Remove redundant parentheses in define.
8617 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8618 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8619 i386_mxcsr_regnum_p): Remove redundant parentheses.
8620 (i386_register_name): Use i386_num_register_names.
8621
8622 * i386-tdep.c (i386_extract_return_value,
8623 i386_store_return_value): Correct check for availability of
8624 floating-point registers.
8625
8626 * i386-tdep.c (i386_frame_num_args): Remove function.
8627 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8628
8629 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8630 mmx_regnum_to_fp_regnum. Adjust all callers.
8631
8632 * i386-tdep.c (i386_get_longjmp_target): Use
8633 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8634 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8635 extract_address.
8636
8637 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8638
8639 * core-regset.c: Update comments to reflect reality. Re-order
8640 includes.
8641 (fetch_core_registers): Use switch instead of if. Remove
8642 redundant prototype.
8643
8644 2003-04-18 Jim Blandy <jimb@redhat.com>
8645
8646 * s390-tdep.c (s390_frame_align): New function.
8647 (s390_gdbarch_init): Register it with the gdbarch object.
8648
8649 2003-04-17 Richard Henderson <rth@redhat.com>
8650
8651 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8652
8653 2003-04-17 Michael Snyder <msnyder@redhat.com>
8654 Karen Bennet <bennet@redhat.com>
8655
8656 Committed by Elena Zannoni <ezannoni@redhat.com>
8657 * gdb_gcore.sh: New script to create a core dump of a process.
8658
8659 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
8660
8661 * values.c (value_being_returned): Don't fetch the return
8662 value if the return type is void.
8663
8664 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8665
8666 * thread-db.c: Reindented.
8667
8668 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8669
8670 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8671 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
8672 as types.
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698 2003-04-16 Kevin Buettner <kevinb@redhat.com>
8699
8700 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
8701 the size of ``long double'' to 16, instead of 8.
8702
8703 2003-04-16 Mark Kettenis <kettenis@gnu.org>
8704
8705 * i386-linux-nat.c: Add some whitespace to make things more
8706 readable.
8707 (fetch_register, store_register, fetch_inferior_registers,
8708 store_inferior_registers): Get rid of assignment in if-statement.
8709 (store_register): Fix typo in error message.
8710
8711 2003-04-16 Andrew Cagney <cagney@redhat.com>
8712
8713 * utils.c (xmmalloc): Always allocate something, matches
8714 libiberty/xmalloc's semantics.
8715 (xmrealloc, xmcalloc): Ditto.
8716
8717 2003-04-16 Andrew Cagney <cagney@redhat.com>
8718
8719 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8720 update comments.
8721 (get_frame_type): Initialize unwind and type when needed.
8722 (get_frame_id, frame_register_unwind): Ditto.
8723
8724 2003-04-16 Andrew Cagney <cagney@redhat.com>
8725
8726 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8727 obsolete.
8728 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8729 * sparcl-stub.c: Obsolete file.
8730 * config/sparc/tm-sparclet.h: Obsolete file.
8731 * sparclet-stub.c: Obsolete file.
8732 * sparclet-rom.c: Obsolete file.
8733 * sparcl-tdep.c: Obsolete file.
8734 * config/sparc/tm-sparclite.h: Obsolete file.
8735 * config/sparc/sparclite.mt: Obsolete file.
8736 * config/sparc/sparclet.mt: Obsolete file.
8737 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8738 sparc86x-*-* obsolete.
8739
8740 2003-04-15 David Carlton <carlton@math.stanford.edu>
8741
8742 * Makefile.in (SFILES): Add cp-namespace.c.
8743 (COMMON_OBS): Add cp-namespace.o.
8744 (block.o): Depend on gdb_obstack_h and cp_support_h.
8745 (buildsym.o): Depend on cp_support_h.
8746 (cp-namespace.o): New.
8747 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8748 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8749 (dwarf2read.o): Depend on cp_support_h.
8750 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8751 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8752 processing_current_namespace.
8753 (read_namespace): Update processing_current_namespace; check for
8754 anonymous namespaces.
8755 (dwarf2_name): New function.
8756 (dwarf2_extension): Ditto.
8757 * cp-support.h: Update copyright, contributors.
8758 Add inclusion guards.
8759 Add opaque declaration for structs obstack, block, symbol.
8760 (struct using_direct): New struct.
8761 Add declarations for cp_find_first_component,
8762 cp_entire_prefix_len, processing_has_namespace_info,
8763 processing_current_namespace, cp_is_anonymous,
8764 cp_add_using_directive, cp_initialize_namespace,
8765 cp_finalize_namespace, cp_set_block_scope,
8766 cp_scan_for_anonymous_namespaces.
8767 * cp-namespace.c: New file.
8768 * cp-support.c: Update copyright.
8769 Include ctype.h, gdb_assert.h, gdbcmd.h.
8770 New variable maint_cplus_cmd_list.
8771 (cp_find_first_component): New function.
8772 (cp_entire_prefix_len, maint_cplus_command)
8773 (first_component_command, _initialize_cp_support): Ditto.
8774 * buildsym.c: Include cp-support.h.
8775 New variable using_list.
8776 (add_symbol_to_list): Check for anonymous namespaces.
8777 (finish_block): Set block's scope.
8778 (start_symtab): Initialize C++ namespace support.
8779 (end_symtab): Finalize C++ namespace support.
8780 * block.h: Add opaque declarations for structs
8781 block_namespace_info, using_direct, and obstack.
8782 Add declarations for block_set_scope and block_set_using.
8783 (struct block): Add 'language_specific' member.
8784 (BLOCK_NAMESPACE): New macro.
8785 * block.c: Include gdb_obstack.h and cp-support.h.
8786 (struct block_namespace_info): New struct.
8787 (block_set_scope): New function.
8788 (block_set_using, block_initialize_namespace): Ditto.
8789
8790 2003-04-14 Kevin Buettner <kevinb@redhat.com>
8791
8792 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8793 (locate_base): Return early if there aren't any link map offsets.
8794 (svr4_solib_create_inferior_hook): Warn if shared library support
8795 is unavailable.
8796
8797 2003-04-14 David Carlton <carlton@math.stanford.edu>
8798
8799 * symtab.c (symbol_set_names): Add prefix when storing Java names
8800 in hash table. Fix for PR java/1039.
8801
8802 2003-04-14 David Carlton <carlton@math.stanford.edu>
8803
8804 * symtab.c (symbol_set_names): Rename 'name' arg to
8805 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8806 * symtab.h: Change 'name' argument in declaration of
8807 symbol_set_names to 'linkage_name'.
8808 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8809
8810 2003-04-14 Andrew Cagney <cagney@redhat.com>
8811
8812 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8813 return the fully sign-extended register value.
8814 (get_frame_pointer): Ditto.
8815 (mips_pop_frame): Initialize "proc_desc" after checking for a
8816 dummy frame.
8817
8818 2003-04-14 Andrew Cagney <cagney@redhat.com>
8819
8820 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8821 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8822 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8823 (mips_push_register): Delete function.
8824 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8825 PUSH_FP_REGNUM.
8826
8827 2003-04-14 Jim Blandy <jimb@redhat.com>
8828
8829 * symmisc.c: #include "gdb_regex.h".
8830 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8831 functions.
8832 * maint.c (maintenance_list_command): New function.
8833 (_initialize_maint_cmds): Register the above as commands.
8834 * symtab.h (maintenance_list_symtabs,
8835 maintenance_list_psymtabs): New declarations.
8836 * cli/cli-cmds.c (maintenancelistlist): New variable.
8837 (init_cmd_lists): Initialize it.
8838 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8839 * gdbcmd.h (maintenancelistlist): New declaration.
8840 * Makefile.in (symmisc.o): Update dependencies.
8841
8842 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8843
8844 * s390-nat.c: Include asm/types.h for addr_t.
8845
8846 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8847
8848 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8849 actually incoming type.
8850
8851 2003-04-13 Andrew Cagney <cagney@redhat.com>
8852
8853 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8854 get_next_frame and get_frame_saved_regs.
8855
8856 2003-04-13 Andrew Cagney <cagney@redhat.com>
8857
8858 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8859 of gdbarch_num_regs.
8860
8861 2003-04-13 Andrew Cagney <cagney@redhat.com>
8862
8863 * frame.h: Mention what replaced what in "struct frame_info".
8864 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8865 deprecated_update_frame_base_hack and
8866 deprecated_update_frame_pc_hack.
8867 * hppa-tdep.c: Ditto.
8868
8869 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8870
8871 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8872 to read_reg and update its comment. Remove regnum member.
8873 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8874 Don't call read_reg when setting in_reg. Call read_reg to get
8875 the frame base if it's in a register. Return the register number
8876 on the stack instead of in the context. Remove extra arguments
8877 to read_reg.
8878 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8879 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8880 the register number on the expression stack.
8881 (needs_frame_read_reg): Remove extra arguments.
8882
8883 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8884
8885 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8886 made non-static.
8887 (execute_stack_op): All callers updated.
8888 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8889 * dwarf2loc.c (find_location_expression): New function.
8890 (dwarf_expr_frame_base): Call it.
8891 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8892 (dwarf2_tracepoint_var_ref): New function, broken out from
8893 locexpr_tracepoint_var_ref.
8894 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8895 Make static.
8896 (loclist_read_variable, loclist_read_needs_frame): New functions.
8897 (loclist_describe_location, loclist_tracepoint_var_ref): New
8898 functions.
8899 (dwarf2_loclist_funcs): New struct location_funcs.
8900 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8901 (struct dwarf2_locexpr_baton): Add comments.
8902 (dwarf2_loclist_funcs): New extern.
8903 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8904 base_address and base_known.
8905 (dwarf_loc_buffer): New variable.
8906 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8907 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8908 (dwarf2_has_info): Initialize dwarf_loc_offset.
8909 (dwarf2_build_psymtabs): Read in .debug_loc.
8910 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8911 DWARF_LOC_SIZE.
8912 (psymtab_to_symtab_1): Likewise. Move base address calculation
8913 here, from...
8914 (dwarf2_get_pc_bounds): ... here. Use the base address from
8915 cu_header.
8916 (dwarf2_symbol_mark_computed): Handle location lists.
8917
8918 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8919
8920 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8921 if the linkage name demangled successfully.
8922
8923 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8924
8925 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8926 disassmbly_flavour): Removed.
8927
8928 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8929
8930 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8931
8932 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8933
8934 2003-04-12 Andrew Cagney <cagney@redhat.com>
8935
8936 * frame.h (struct frame_info): Move definition from here ...
8937 * frame.c (struct frame_info): ... to here.
8938
8939 2003-04-12 Andrew Cagney <cagney@redhat.com>
8940
8941 * gdbthread.h (save_infrun_state): Delete parameter
8942 "prev_func_start".
8943 (struct thread_info): Delete field "prev_func_start".
8944 (load_infrun_state): Ditto.
8945 * thread.c (load_infrun_state, save_infrun_state): Update.
8946 * infrun.c (prev_func_start): Delete variable.
8947 (context_switch, init_wait_for_inferior): Update.
8948 (stop_stepping, keep_going): Update.
8949
8950 2003-04-12 Andrew Cagney <cagney@redhat.com>
8951
8952 * gdbarch.sh: Add missing opaque declarations.
8953 * gdbarch.h: Regnerate.
8954 * symtab.h: Add missing opaque declarations.
8955 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8956 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8957 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8958 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8959 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8960 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8961 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8962 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8963 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8964 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8965 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8966 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8967 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8968
8969 2003-04-11 Andrew Cagney <cagney@redhat.com>
8970
8971 * frame.c (get_frame_id): Return this frame's "id".
8972 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8973 function start.
8974 (legacy_saved_regs_this_id): Replace function body with
8975 internal-error.
8976 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8977 FRAME_OBSTACK_ZALLOC.
8978 (create_new_frame): Mark the frame ID as valid.
8979
8980 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8981
8982 * Makefile.in (libbfd_h): Added missing setting.
8983 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8984 according to the selected ABI.
8985
8986 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8987
8988 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8989
8990 2003-04-11 Andrew Cagney <cagney@redhat.com>
8991
8992 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8993 SAVED_PC_AFTER_CALL.
8994 * gdbarch.h, gdbarch.c: Regenerate.
8995 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8996 * x86-64-tdep.c (x86_64_init_abi): Update.
8997 * vax-tdep.c (vax_gdbarch_init): Update.
8998 * v850-tdep.c (v850_gdbarch_init): Update.
8999 * sparc-tdep.c (sparc_gdbarch_init): Update.
9000 * sh-tdep.c (sh_gdbarch_init): Update.
9001 * s390-tdep.c (s390_gdbarch_init): Update.
9002 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9003 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9004 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9005 * mips-tdep.c (mips_gdbarch_init): Update.
9006 * mcore-tdep.c (mcore_gdbarch_init): Update.
9007 * m68k-tdep.c (m68k_gdbarch_init): Update.
9008 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9009 * ia64-tdep.c (ia64_gdbarch_init): Update.
9010 (ia64_saved_pc_after_call): Update declaration.
9011 * i386ly-tdep.c (i386lynx_init_abi): Update.
9012 * i386-tdep.c (i386_gdbarch_init): Update.
9013 * hppa-tdep.c (hppa_gdbarch_init): Update.
9014 * h8300-tdep.c (h8300_gdbarch_init): Update.
9015 * frv-tdep.c (frv_gdbarch_init): Update.
9016 * cris-tdep.c (cris_gdbarch_init): Update.
9017 * avr-tdep.c (avr_gdbarch_init): Update.
9018 * arm-tdep.c (arm_gdbarch_init): Update.
9019 * alpha-tdep.c (alpha_gdbarch_init): Update.
9020 * ns32knbsd-nat.c (frame_num_args): Update.
9021 * ns32k-tdep.c (umax_frame_num_args): Update.
9022 * mips-tdep.c (mips_init_frame_pc_first): Update.
9023 * infrun.c (step_over_function): Update.
9024 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9025 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9026 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9027 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9028 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9029 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9030 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9031 * arch-utils.c (init_frame_pc_default): Update.
9032 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9033 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9034 declaration.
9035
9036 2003-04-11 Andrew Cagney <cagney@redhat.com>
9037
9038 * i387-tdep.c: Update copyright.
9039 (i387_to_double): Delete function.
9040 (double_to_i387): Delete function.
9041
9042 2003-04-10 Andrew Cagney <cagney@redhat.com>
9043
9044 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9045 frame's function's address. Simplify.
9046 (d10v_frame_unwind_cache): Check that the frame's function is
9047 non-zero.
9048
9049 2003-04-10 Jim Blandy <jimb@redhat.com>
9050
9051 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9052 call to set_gdbarch_deprecated_push_arguments.
9053
9054 2003-04-10 Andrew Cagney <cagney@redhat.com>
9055
9056 * frame.c (fprint_frame_id): New function.
9057 (fprint_frame_type, fprint_frame): New function.
9058 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9059 (create_sentinel_frame, get_frame_id): Ditto.
9060 (frame_id_p, frame_id_eq): Ditto.
9061 (frame_id_inner, create_new_frame): Ditto.
9062 (legacy_get_prev_frame, get_prev_frame): Ditto.
9063 (deprecated_update_frame_pc_hack): Ditto.
9064 (frame_register_unwind): Ditto.
9065 (deprecated_update_frame_base_hack): Ditto.
9066
9067 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9068
9069 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9070 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9071 frame_chain function.
9072 * Makefile.in: Add dependencies due to above change.
9073
9074 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9075
9076 * blockframe.c (legacy_frame_chain_valid): Move call to
9077 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9078 inside_entry_file.
9079
9080 2003-04-09 Andrew Cagney <cagney@redhat.com>
9081
9082 * frame.h (struct frame_id): Replace "pc" and "base" with
9083 "stack_addr" and "code_addr". Update comments.
9084 (frame_id_build): Update parameter names and comment.
9085 (struct frame_info): Replace "id_p" and "id" with "this_id".
9086 * dummy-frame.c (dummy_frame_this_id): Update.
9087 * breakpoint.c (print_one_breakpoint): Update.
9088 * frame.c (get_frame_id): Update.
9089 (get_frame_base, frame_id_build): Update.
9090 (create_sentinel_frame, legacy_get_prev_frame): Update.
9091 (deprecated_update_frame_base_hack): Update.
9092 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9093 (frame_id_inner): Ditto.
9094
9095 2003-04-09 Andrew Cagney <cagney@redhat.com>
9096
9097 * defs.h (gdb_print_host_address): Make "addr" parameter a
9098 pointer constant.
9099 * utils.c (gdb_print_host_address): Update.
9100
9101 2003-04-09 Kevin Buettner <kevinb@redhat.com>
9102
9103 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9104 register number for R0 is 0.
9105
9106 2003-04-09 J. Brobecker <brobecker@gnat.com>
9107
9108 * frame.h (struct gdbarch): Add opaque structure definition
9109 to avoid a compilation warning on LynxOS 4.0.
9110
9111 2003-04-09 Andrew Cagney <cagney@redhat.com>
9112
9113 * frame.h (struct frame_info): Delete field "pc". Replace
9114 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9115 structure.
9116 * frame.c (frame_pc_unwind): Update.
9117 (create_sentinel_frame): Do not set "pc".
9118 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9119 (get_frame_pc): Call frame_pc_unwind.
9120 (deprecated_update_frame_pc_hack): Update.
9121 (create_new_frame): Use "pc" not "->pc".
9122
9123 2003-04-09 Andrew Cagney <cagney@redhat.com>
9124
9125 * frame.c (get_frame_id): Eliminate code updating "frame".
9126 (legacy_get_prev_frame): Ditto.
9127 (get_frame_base): Return id.base directly.
9128 (deprecated_update_frame_base_hack): Update "id.base".
9129 * frame.h (struct frame_info): Delete field "frame".
9130
9131 2003-04-09 Andrew Cagney <cagney@redhat.com>
9132
9133 * NEWS: Mention that the "Sequent family" is obsolete.
9134 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9135 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9136 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9137 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9138 * config/i386/tm-ptx4.h: Obsolete file.
9139 * config/i386/tm-ptx.h: Obsolete file.
9140 * symm-tdep.c: Obsolete file.
9141 * config/i386/symmetry.mt: Obsolete file.
9142 * config/i386/tm-symmetry.h: Obsolete file.
9143 * symm-nat.c: Obsolete file.
9144 * config/i386/nm-symmetry.h: Obsolete file.
9145 * config/i386/xm-symmetry.h: Obsolete file.
9146 * config/i386/symmetry.mh: Obsolete file.
9147 * config/i386/nm-ptx4.h: Obsolete file.
9148 * config/i386/ptx4.mh: Obsolete file.
9149 * config/i386/ptx.mt: Obsolete file.
9150 * config/i386/ptx.mh: Obsolete file.
9151 * config/i386/xm-ptx4.h: Obsolete file.
9152 * config/i386/xm-ptx.h: Obsolete file.
9153
9154 2003-04-09 Andrew Cagney <cagney@redhat.com>
9155
9156 Obsolete mips*-*-mach3*.
9157 * NEWS: Mention that mips*-*-mach3* is obsolete.
9158 * m3-nat.c: Obsolete file.
9159 * config/nm-m3.h: Obsolete file.
9160 * config/mips/tm-mipsm3.h: Obsolete file.
9161 * config/mips/mipsm3.mt: Obsolete file.
9162 * config/mips/mipsm3.mh: Obsolete file.
9163 * config/mips/xm-mipsm3.h: Obsolete file.
9164 * mipsm3-nat.c: Obsolete file.
9165 * configure.host: Obsolete mips-dec-mach3*.
9166 * configure.tgt: Obsolete mips*-*-mach3*.
9167
9168 2003-04-09 Andrew Cagney <cagney@redhat.com>
9169
9170 * doublest.h: Update copyright.
9171 (deprecated_store_floating, deprecated_extract_floating): Rename
9172 store_floating and extract_floating. Update comments.
9173 * doublest.c: Update copyright.
9174 (extract_floating_by_length): Replace extract_floating.
9175 (store_floating_by_length): Replace store_floating.
9176 (deprecated_extract_floating): New function.
9177 (deprecated_store_floating): New function.
9178 (extract_typed_floating): Call extract_floating_by_length.
9179 (store_typed_floating): Call store_floating_by_length.
9180 * x86-64-tdep.c (x86_64_store_return_value): Update.
9181 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9182 (sh64_extract_return_value): Update.
9183 (sh_sh4_register_convert_to_virtual): Update.
9184 (sh_sh64_register_convert_to_virtual): Update.
9185 (sh_sh4_register_convert_to_raw): Update.
9186 (sh_sh64_register_convert_to_raw): Update.
9187 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9188 (rs6000_register_convert_to_raw): Update.
9189 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9190 (ia64_register_convert_to_raw): Update.
9191 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9192 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9193 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9194 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9195 (alpha_register_convert_to_raw): Update.
9196
9197 2003-04-08 Andrew Cagney <cagney@redhat.com>
9198
9199 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9200 * gdbarch.h, gdbarch.c: Re-generate.
9201 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9202 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9203 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9204 conditionally, use frame_pc_unwind as an alternative. Add
9205 comments.
9206 * arch-utils.c (init_frame_pc_default): Only call
9207 SAVED_PC_AFTER_CALL when available.
9208
9209 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9210
9211 * infrun.c (stop_soon): Rename from stop_soon_quietly.
9212 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9213 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9214 (start_remote): Ditto.
9215 (handle_inferior_event): Ditto.
9216 (save_inferior_status): Ditto.
9217 (restore_inferior_status): Ditto.
9218 * infcmd.c (attach_command): Ditto.
9219 * fork-child.c (startup_inferior): Ditto.
9220 * inferior.h (stop_soon): Rename from stop_soon_quietly.
9221 * alpha-tdep.c (heuristic_proc_start): Ditto.
9222 * mips-tdep.c (heuristic_proc_start): Ditto.
9223 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9224 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9225 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9226 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9227 * remote-vx.c (vx_create_inferior): Ditto.
9228
9229 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9230
9231 * infrun.c (stop_soon_quietly): Make it an enum, to better
9232 override the default behavior of handle_inferior_event.
9233 (clear_proceed_status): Update uses of stop_soon_quietly to
9234 reflect that it is now an enum.
9235 (start_remote): Ditto.
9236 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9237 is set to handle the new GNU/Linux kernel behavior for
9238 attach/sigstop. Update uses of stop_soon_quietly.
9239 * inferior.h (enum stop_kind): New enum.
9240 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9241 Reset normal handle_inferior_event behavior, afterwards.
9242 * fork-child.c (startup_inferior): Update.
9243 * alpha-tdep.c (heuristic_proc_start): Update.
9244 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9245 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9246 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9247 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9248 * remote-vx.c (vx_create_inferior): Update.
9249 * mips-tdep.c (heuristic_proc_start): Update.
9250
9251 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
9252
9253 * disasm.c (dump_insns): Move variables inside loop, or they will
9254 be freed more than once, causing wild memory corruptions.
9255 (gdb_disassembly): Look for the substring "-thread",
9256 instead of "-threads" in the target name, to make sure to find
9257 the 'multi-thread' target. Also, make sure we do the right thing
9258 with the "core" target.
9259
9260 2003-04-07 Kevin Buettner <kevinb@redhat.com>
9261
9262 * mips-tdep.c (mips_print_fp_register): New function, created from
9263 do_fp_register_row(). Registers are now (also) printed as hex.
9264 Only one register is printed per row.
9265 (mips_print_register, do_fp_register_row): Print floating point
9266 registers with mips_print_fp_register().
9267
9268 2003-04-06 Andrew Cagney <cagney@redhat.com>
9269
9270 * valprint.h (inspect_it): Add extern declaration.
9271 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9272 (selectors_info, classes_info): Ditto.
9273 (find_objc_msgcall): Fix indentation.
9274 (objc_printstr): Delete extern declarations.
9275
9276 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9277
9278 2003-04-06 Andrew Cagney <cagney@redhat.com>
9279
9280 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9281 Update comment.
9282 * frame.c (legacy_saved_regs_this_id): Update.
9283 (legacy_get_prev_frame): Update.
9284 * xstormy16-tdep.c: Update comment.
9285 * sparc-tdep.c (sparc_frame_chain): Update comment.
9286 * blockframe.c (legacy_frame_chain_valid): Update.
9287
9288 2003-04-06 Andrew Cagney <cagney@redhat.com>
9289
9290 * valprint.c (val_print_type_code_int): Delete #ifdef
9291 PRINT_TYPELESS_INTEGER code.
9292
9293 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9294 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9295 multi-arch definition.
9296 * gdbarch.h: Re-generate.
9297
9298 2003-04-05 Andrew Cagney <cagney@redhat.com>
9299
9300 Eliminate FRAME_FIND_SAVED_REGS.
9301 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9302 Change FSR parameter to a pointer.
9303 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9304 Assume FSR parameter is a pointer.
9305 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9306 Make fsr a pointer.
9307 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9308 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9309 saved_regs a pointer.
9310 (hppa_frame_saved_pc): Ditto.
9311 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9312 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9313 pointer.
9314 (restore_pc_queue): Make fsr a pointer.
9315 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9316 (hppa_frame_chain): Make saved_regs a pointer, call
9317 hppa_frame_init_saved_regs.
9318 * sparc-tdep.c: Include "gdb_assert.h".
9319 (sparc_frame_find_saved_regs): Replace internal_error with
9320 gdb_assert.
9321 * remote-vxsparc.c (vx_read_register): Delete reference to
9322 FRAME_FIND_SAVED_REGS.
9323 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9324 * gdbarch.h: Regenerate.
9325 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9326 (deprecated_get_frame_saved_regs): Delete declaration.
9327 (struct frame_saved_regs): Delete definition.
9328 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9329 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9330 (hppa_frame_find_saved_regs): Delete declaration.
9331 (FRAME_FIND_SAVED_REGS): Delete macro.
9332 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9333 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9334 FRAME_FIND_SAVED_REGS in comment.
9335
9336 2003-04-05 Andrew Cagney <cagney@redhat.com>
9337
9338 * frame.c (frame_func_unwind, get_frame_func): New functions.
9339 * frame.h (get_frame_func, frame_func_unwind): Declare.
9340 (struct frame_info): Add field "prev_func" for caching the
9341 previous frame's function address.
9342 * arm-tdep.c (arm_frameless_function_invocation): Combine
9343 get_pc_function_start and get_frame_pc into get_frame_func.
9344 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9345 (sh64_nofp_frame_init_saved_regs): Ditto.
9346 * s390-tdep.c (s390_function_start): Ditto.
9347 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9348 (rs6000_frameless_function_invocation): Ditto.
9349 (rs6000_frame_saved_pc): Ditto.
9350 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9351 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9352 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9353 (i386_frame_init_saved_regs): Ditto.
9354 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9355 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9356 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9357 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9358 * blockframe.c (frameless_look_for_prologue): Ditto.
9359
9360 2003-04-05 Andrew Cagney <cagney@redhat.com>
9361
9362 * frame.c (legacy_get_prev_frame): Link prev to next at the
9363 function start. Update comments.
9364
9365 2003-04-05 Andrew Cagney <cagney@redhat.com>
9366
9367 * frame.c (get_frame_id): Update comment.
9368 (legacy_get_prev_frame): Update comment.
9369 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9370 * gdbarch.h: Regenerate.
9371 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9372 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9373
9374 2003-04-05 Andrew Cagney <cagney@redhat.com>
9375
9376 * stack.c (print_frame_info): Use get_frame_pc.
9377
9378 2003-04-04 Andrew Cagney <cagney@redhat.com>
9379
9380 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9381 the frame's type from the unwinder.
9382 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9383 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9384 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9385 (get_frame_base_address): Use get_frame_type.
9386 (get_frame_locals_address, get_frame_args_address): Ditto.
9387 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9388 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9389 (struct frame_info): Add comment explaining why the frame contains
9390 a "type" field.
9391 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9392 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9393 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9394 NORMAL_FRAME.
9395 * frame-unwind.h: Include "frame.h".
9396 (struct frame_unwind): Add "type" field.
9397 * Makefile.in (frame_unwind_h): Add $(frame_h).
9398
9399 2003-04-04 Andrew Cagney <cagney@redhat.com>
9400
9401 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9402 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9403 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9404 get_frame_base.
9405 (d10v_unwind_dummy_id): Use frame_id_build.
9406 * frame.c (find_frame_sal): Use get_frame_pc.
9407 (create_new_frame): Use deprecated_update_frame_pc_hack and
9408 deprecated_update_frame_base_hack.
9409 (create_sentinel_frame): Add comment about ->pc going away.
9410 (get_prev_frame): Add comment about ->pc going away.
9411 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9412 frame_id_build, deprecated_update_frame_pc_hack and
9413 deprecated_update_frame_base_hack.
9414 (select_frame): Use get_frame_pc.
9415 (legacy_saved_regs_this_id): Use frame_id_build.
9416
9417 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
9418
9419 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9420 signed integer case.
9421 (classify_argument): Handle enumerations and references.
9422
9423 2003-04-04 Andrew Cagney <cagney@redhat.com>
9424
9425 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9426 ID to NULL.
9427
9428 2003-04-01 Adam Fedor <fedor@gnu.org>
9429
9430 * gdb/objc-lang.c (selectors_info): Replace calls to
9431 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9432 SYMBOL_NATURAL_NAME.
9433 (classes_info, find_methods): Likewise.
9434
9435 2003-04-03 Kevin Buettner <kevinb@redhat.com>
9436
9437 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9438 ``mach'' to the value determined by bfd_default_set_arch_mach().
9439
9440 2003-04-02 Bob Rossi <bob_rossi@cox.net>
9441
9442 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9443 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9444 (mi-cmd-file.o): Update dependencies.
9445
9446 2003-04-01 Kevin Buettner <kevinb@redhat.com>
9447
9448 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9449 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9450
9451 2003-04-01 Adam Fedor <fedor@gnu.org>
9452
9453 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9454 * language.h (struct language_defn): Add la_demangle.
9455 (language_demangle): Declare.
9456 * language.c (language_demangle): New function.
9457 (unk_lang_demangle): Likewise.
9458 (unknown_language_defn, auto_language_defn, local_language_defn):
9459 Add ukn_lang_demangle.
9460 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
9461 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9462 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9463 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9464 * jv-lang.c (java_demangle): New function
9465 (java_language_defn): Use it for la_demangle element.
9466 * objc-lang.c (objc_demangle): Add options argument
9467 (objc_language_defn): Use objc_demangle for la_demangle element.
9468 * maint.c (maintenance_demangle): Replace switch with
9469 call to language_demangle.
9470 * utils.c (fprintf_symbol_filtered): Likewise.
9471
9472 2003-04-01 Andrew Cagney <cagney@redhat.com>
9473
9474 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9475 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9476 PRINT_TYPELESS_INTEGER.
9477 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9478 PUSH_RETURN_ADDRESS.
9479
9480 2003-04-01 Andrew Cagney <cagney@redhat.com>
9481
9482 * Makefile.in (d10v-tdep.o): Update dependencies.
9483 * d10v-tdep.c: Include "frame-base.h".
9484 (d10v_frame_unwind): Make constant.
9485 (d10v_frame_base_address): New function.
9486 (d10v_frame_base): New variable.
9487 (d10v_gdbarch_init): Set frame_base default.
9488 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9489 comment for base.
9490 (d10v_frame_unwind_cache): Set and use "prev_sp".
9491 (d10v_frame_this_id): Use the previous frame's inner most stack
9492 address and this frame's func address for the frame ID. Use
9493 frame_id_build. Don't analyze beyond the current instruction.
9494
9495 2003-04-01 Andrew Cagney <cagney@redhat.com>
9496
9497 * frame.h (get_frame_locals_address, get_frame_args_address):
9498 Refer to the base address, instead of the address of the first
9499 local or parameter.
9500
9501 2003-04-01 Andrew Cagney <cagney@redhat.com>
9502
9503 Add frame debug info addresses:
9504 * frame-base.c: New file.
9505 * frame-base.h: New file.
9506 * frame.h (struct frame_base): Add opaque declaration.
9507 (get_frame_base): Update comment.
9508 (get_frame_base_address): Declare.
9509 (get_frame_locals_address): Declare.
9510 (get_frame_args_address): Declare.
9511 (struct frame_info): Add "base" and "base_cache". Update
9512 comments on the unwinder.
9513 * frame.c: Include "frame-base.h".
9514 (get_frame_locals_address): New function.
9515 (get_frame_base_address): New function.
9516 (get_frame_args_address): New function.
9517 * findvar.c (read_var_value): Use get_frame_locals_address and
9518 get_frame_args_address.
9519 * stack.c (frame_info): Use get_frame_locals_address and
9520 get_frame_args_address.
9521 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9522 moved to "frame-base.c".
9523 * printcmd.c (print_frame_nameless_args): Ditto.
9524 * symtab.h (address_class): Update comments.
9525 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9526 get_frame_base_address.
9527 * dwarf2expr.c (execute_stack_op): Ditto.
9528 * Makefile.in (frame_base_h): Define.
9529 (frame.o): Update dependencies.
9530 (frame-base.o): Add dependencies.
9531 (SFILES): Add frame-base.c.
9532 (COMMON_OBS): Add frame-base.o.
9533
9534 2003-04-01 Andrew Cagney <cagney@redhat.com>
9535
9536 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9537 CALL_DUMMY_LENGTH): Ditto.
9538 * gdbarch.c: Re-generate.
9539 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9540 (CALL_DUMMY_LENGTH): Delete macro.
9541 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9542 * arm-tdep.c (arm_gdbarch_init): Ditto.
9543 * avr-tdep.c (avr_gdbarch_init): Ditto.
9544 * cris-tdep.c (cris_gdbarch_init): Ditto.
9545 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9546 * frv-tdep.c (frv_gdbarch_init): Ditto.
9547 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9548 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9549 * i386-tdep.c (i386_gdbarch_init): Ditto.
9550 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9551 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9552 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9553 * mips-tdep.c (mips_gdbarch_init): Ditto.
9554 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9555 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9556 * s390-tdep.c (s390_gdbarch_init): Ditto.
9557 * sh-tdep.c (sh_gdbarch_init): Ditto.
9558 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9559 * v850-tdep.c (v850_gdbarch_init): Ditto.
9560 * vax-tdep.c (vax_gdbarch_init): Ditto.
9561 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9562
9563 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
9564
9565 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9566
9567 2003-04-01 Andrew Cagney <cagney@redhat.com>
9568
9569 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9570 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9571 * gdbarch.h, gdbarch.c: Re-generate.
9572 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9573 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9574 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9575 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9576 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9577 * infcmd.c (run_stack_dummy): Simplify assuming
9578 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9579 * infrun.c (handle_inferior_event): Ditto.
9580 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9581 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9582 * arm-tdep.c (arm_gdbarch_init): Ditto.
9583 * avr-tdep.c (avr_gdbarch_init): Ditto.
9584 * cris-tdep.c (cris_gdbarch_init): Ditto.
9585 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9586 * frv-tdep.c (frv_gdbarch_init): Ditto.
9587 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9588 * i386-tdep.c (i386_gdbarch_init): Ditto.
9589 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9590 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9591 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9592 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9593 * mips-tdep.c (mips_gdbarch_init): Ditto.
9594 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9595 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9596 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9597 * s390-tdep.c (s390_gdbarch_init): Ditto.
9598 * sh-tdep.c (sh_gdbarch_init): Ditto.
9599 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9600 * v850-tdep.c (v850_gdbarch_init): Ditto.
9601 * vax-tdep.c (vax_gdbarch_init): Ditto.
9602 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9603
9604 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
9605
9606 * symfile.c (symfile_relocate_debug_section): Update call to
9607 bfd_simple_get_relocated_section_contents.
9608
9609 2003-03-31 Andrew Cagney <cagney@redhat.com>
9610
9611 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9612 * gdbarch.h, gdbarch.c: Regenerate.
9613 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9614 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9615 available.
9616 * frame.h (generic_fix_call_dummy): Delete declaration.
9617 * dummy-frame.h: Update comment.
9618 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9619 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9620 fix_call_dummy.
9621 * sh-tdep.c (sh_gdbarch_init): Ditto.
9622 * s390-tdep.c (s390_gdbarch_init): Ditto.
9623 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9624 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9626 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9627 * i386-tdep.c (i386_gdbarch_init): Ditto.
9628 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9629 * frv-tdep.c (frv_gdbarch_init): Ditto.
9630 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9631 * cris-tdep.c (cris_gdbarch_init): Ditto.
9632 * avr-tdep.c (avr_gdbarch_init): Ditto.
9633 * arm-tdep.c (arm_gdbarch_init): Ditto.
9634
9635 2003-03-31 J. Brobecker <brobecker@gnat.com>
9636
9637 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9638 (INIT_FRAME_AP): Likewise.
9639 (EXTRA_FRAME_INFO): Likewise.
9640
9641 2003-03-31 Andrew Cagney <cagney@redhat.com>
9642
9643 * gdbarch.sh: Include "symfile.h".
9644 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9645 * gdbarch.h, gdbarch.c: Re-generate.
9646 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9647 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9648 call_dummy_address, the default is at entry_point_address.
9649 * v850-tdep.c (v850_gdbarch_init): Ditto.
9650 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9651 * sh-tdep.c (sh_gdbarch_init): Ditto.
9652 * s390-tdep.c (s390_gdbarch_init): Ditto.
9653 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9654 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9655 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9656 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9657 * i386-tdep.c (i386_gdbarch_init): Ditto.
9658 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9659 * frv-tdep.c (frv_gdbarch_init): Ditto.
9660 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9661 * cris-tdep.c (cris_gdbarch_init): Ditto.
9662 * arm-tdep.c (arm_gdbarch_init): Ditto.
9663
9664 2003-03-31 Andrew Cagney <cagney@redhat.com>
9665
9666 * gdbarch.sh (CALL_DUMMY_P): Delete.
9667 * gdbarch.h, gdbarch.c: Re-generate.
9668 * inferior.h (CALL_DUMMY_P): Delete macro.
9669 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9670 * vax-tdep.c (vax_gdbarch_init): Update.
9671 * v850-tdep.c (v850_gdbarch_init): Update.
9672 * sparc-tdep.c (sparc_gdbarch_init): Update.
9673 * sh-tdep.c (sh_gdbarch_init): Update.
9674 * s390-tdep.c (s390_gdbarch_init): Update.
9675 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9676 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9677 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9678 * mips-tdep.c (mips_gdbarch_init): Update.
9679 * mcore-tdep.c (mcore_gdbarch_init): Update.
9680 * m68k-tdep.c (m68k_gdbarch_init): Update.
9681 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9682 * ia64-tdep.c (ia64_gdbarch_init): Update.
9683 * i386-tdep.c (i386_gdbarch_init): Update.
9684 * h8300-tdep.c (h8300_gdbarch_init): Update.
9685 * frv-tdep.c (frv_gdbarch_init): Update.
9686 * d10v-tdep.c (d10v_gdbarch_init): Update.
9687 * cris-tdep.c (cris_gdbarch_init): Update.
9688 * breakpoint.c (deprecated_frame_in_dummy): Update.
9689 * avr-tdep.c (avr_gdbarch_init): Update.
9690 * alpha-tdep.c (alpha_gdbarch_init): Update.
9691 * arm-tdep.c (arm_gdbarch_init): Update.
9692 * dummy-frame.c (dummy_frame_this_id): Update comments.
9693 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9694 * frame.c (legacy_get_prev_frame): Ditto.
9695 * valops.c (call_function_by_hand): Delete function.
9696 (hand_function_call): Rename to call_function_by_hand
9697
9698 2003-03-30 Andrew Cagney <cagney@redhat.com>
9699
9700 2002-11-10 Klee Dienes <kdienes@apple.com>
9701 * value.h (struct value): Update comment.
9702
9703 2003-03-30 Andrew Cagney <cagney@redhat.com>
9704
9705 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9706 D10V_FP_REGNUM.
9707 (d10v_gdbarch_init): Do not set fp_regnum.
9708
9709 * frame.c (get_frame_base): Force ID initialization.
9710 (get_prev_frame): Move computation of the frame ID from here ...
9711 (get_frame_id): ... to here.
9712 (legacy_get_prev_frame): Mark the frame ID as valid.
9713 * frame.h (struct frame_info): Add field "id_p".
9714
9715 2003-03-30 Mark Kettenis <kettenis@gnu.org>
9716
9717 * i386-tdep.c (i386_store_struct_return): Removed.
9718 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9719
9720 2003-03-30 Andrew Cagney <cagney@redhat.com>
9721
9722 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9723 * gdbarch.h, gdbarch.c: Regenerate.
9724 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9725 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9726 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9727 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9728 * i386-tdep.c (i386_gdbarch_init): Ditto.
9729 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9730 * cris-tdep.c (cris_gdbarch_init): Ditto.
9731 * vax-tdep.c (vax_gdbarch_init): Ditto.
9732 * s390-tdep.c (s390_gdbarch_init): Ditto.
9733 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9734 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9735 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9736 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9737 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9738 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9739 * sparc-tdep.c (sparc_gdbarch_init): Update.
9740 * sh-tdep.c (sh_gdbarch_init): Update.
9741 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9742 * mips-tdep.c (mips_gdbarch_init): Update.
9743 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9744 * ia64-tdep.c (ia64_gdbarch_init): Update.
9745 * frv-tdep.c (frv_gdbarch_init): Update.
9746 * avr-tdep.c (avr_gdbarch_init): Update.
9747 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9748 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9749 instead of when push_dummy_call is not available.
9750
9751 2003-03-30 Andrew Cagney <cagney@redhat.com>
9752
9753 * infttrace.c: Include "gdbthread.h".
9754 (parent_attach_all): Fix function signature.
9755 (call_ptrace): Update call.
9756 * Makefile.in (infttrace.o): Update dependencies.
9757
9758 2003-03-30 Andrew Cagney <cagney@redhat.com>
9759
9760 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9761 PUSH_RETURN_ADDRESS.
9762 * gdbarch.h, gdbarch.c: Regenerate.
9763 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9764 * x86-64-tdep.c (x86_64_init_abi): Update.
9765 * v850-tdep.c (v850_gdbarch_init): Update.
9766 * sparc-tdep.c (sparc_gdbarch_init): Update.
9767 * sh-tdep.c (sh_gdbarch_init): Update.
9768 * s390-tdep.c (s390_gdbarch_init): Update.
9769 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9770 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9771 * mips-tdep.c (mips_gdbarch_init): Update.
9772 * mcore-tdep.c (mcore_gdbarch_init): Update.
9773 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9774 * ia64-tdep.c (ia64_gdbarch_init): Update.
9775 * i386-tdep.c (i386_gdbarch_init): Update.
9776 * h8300-tdep.c (h8300_gdbarch_init): Update.
9777 * frv-tdep.c (frv_gdbarch_init): Update.
9778 * cris-tdep.c (cris_gdbarch_init): Update.
9779 * avr-tdep.c (avr_gdbarch_init): Update.
9780 * arm-tdep.c (arm_gdbarch_init): Update.
9781 * valops.c (hand_function_call): Update.
9782
9783 2003-03-29 Andrew Cagney <cagney@redhat.com>
9784
9785 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9786 sizeof_call_dummy_words.
9787 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9788 define.
9789 * gdbarch.h: Regenerate.
9790
9791 2003-03-29 Andrew Cagney <cagney@redhat.com>
9792
9793 * infttrace.h: New file.
9794 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9795 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9796 (hpread_read_doc_function_type): Detect an initialized type1.
9797 (hpread_quick_traverse): Initialize mod_name_string.
9798 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9799 (som_solib_get_solib_by_pc): Declare.
9800 (so_lib_thread_start_addr): Declare.
9801 (no_shared_libraries): Declare.
9802 * somread.c (init_import_symbols): Make static. Add forward
9803 declaration.
9804 * config/pa/nm-hppah.h: Include "infttrace.h" for
9805 parent_attach_all.
9806 (hppa_insert_hw_watchpoint): Declare.
9807 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9808 * hppah-nat.c: Include "gdb_string.h".
9809 (parent_attach_all): Delete extern declaration, moved to
9810 "infttrace.h".
9811 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9812 int.
9813 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9814 * Makefile.in (infttrace_h): Define.
9815 (hpread.o): Update dependencies.
9816 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9817 * hppa-hpux-tdep.c: Include "gdb_string.h".
9818 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9819 * infrun.c (handle_inferior_event): Always initialize
9820 stepped_after_stopped_by_watchpoint. Add default and remove
9821 fallthrough in switch statement.
9822 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9823 parameter to int.
9824 (hppa_remove_hw_watchpoint): Ditto.
9825
9826 2003-03-29 Andrew Cagney <cagney@redhat.com>
9827
9828 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9829 offset.
9830
9831 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9832
9833 * arm-tdep.c (arm_push_arguments): Delete.
9834 (struct stack_item): New type.
9835 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9836 (arm_store_struct_return): Delte.
9837 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9838 arm_push_arguments or arm_store_struct_return.
9839
9840 2003-03-28 Andrew Cagney <cagney@redhat.com>
9841
9842 * Makefile.in (d10v-tdep.o): Update dependencies.
9843 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9844 * d10v-tdep.c: Include "remote.h".
9845 (target_resume_hook): Delete extern declaration.
9846 (target_wait_loop_hook): Ditto.
9847 (tdisassemble_command): Eliminate assignment in "if" conditional.
9848 (d10v_ts2_register_sim_regno): Eliminate call to
9849 legacy_register_sim_regno.
9850 (d10v_ts3_register_sim_regno): Ditto.
9851
9852 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9853
9854 * thread.c: Reindented.
9855 * lin-lwp.c: Ditto.
9856 * linux-proc.c: Ditto.
9857
9858 2003-03-28 Bob Rossi <bob_rossi@cox.net>
9859
9860 * MAINTAINERS (write after approval): Add myself.
9861
9862 2003-03-27 Theodore A. Roth <troth@openavr.org>
9863
9864 * objc-exp.y: Add missing semi-colons.
9865
9866 2003-03-27 Andrew Cagney <cagney@redhat.com>
9867
9868 * regcache.c (write_sp): Delete function and references.
9869 * inferior.h (write_sp): Delete declaration.
9870 * valops.c (hand_function_call): Replace write_sp with
9871 TARGET_WRITE_SP.
9872 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9873 (sparc_pop_frame): Ditto.
9874
9875 2003-03-27 Andrew Cagney <cagney@redhat.com>
9876
9877 * NEWS: Mention removal of support for hppa*-*-bsd* and
9878 hppa*-*-osf* natives, and hppa*-*-pro* target.
9879 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9880 * config/pa/xm-pa.h: Obsolete file.
9881 * config/pa/xm-hppab.h: Obsolete file.
9882 * config/pa/nm-hppab.h: Obsolete file.
9883 * config/pa/tm-hppab.h: Obsolete file.
9884 * config/pa/tm-hppao.h: Obsolete file.
9885 * config/pa/nm-hppao.h: Obsolete file.
9886 * config/pa/tm-pro.h: Obsolete file.
9887 * config/pa/hppaosf.mt: Obsolete file.
9888 * config/pa/hppaosf.mh: Obsolete file.
9889 * config/pa/hppapro.mt: Obsolete file.
9890 * config/pa/hppabsd.mt: Obsolete file.
9891 * config/pa/hppabsd.mh: Obsolete file.
9892 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9893 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9894 hppa*-*-osf*.
9895
9896 2003-03-27 Andrew Cagney <cagney@redhat.com>
9897
9898 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9899 push_arguments. Don't set push_return_address or write_sp.
9900 (d10v_push_dummy_call): Replace d10v_push_arguments.
9901 (d10v_push_return_address, d10v_write_sp): Delete function,
9902 handled by push_dummy_call.
9903
9904 2003-03-26 Andrew Cagney <cagney@redhat.com>
9905
9906 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9907 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9908 regcache and dummy_addr parameters.
9909 * gdbarch.h, gdbarch.c: Re-generate.
9910 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9911 available; assume it will handle stack alignment and return
9912 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9913 legacy_push_arguments.
9914 (legacy_push_arguments): Rename default_push_arguments.
9915 * value.h (legacy_push_arguments): Rename default_push_arguments.
9916 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9917 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9918 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9919 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9920 * config/i386/tm-symmetry.h: Update.
9921 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9922 * x86-64-tdep.c (x86_64_init_abi): Update.
9923 * v850-tdep.c (v850_gdbarch_init): Update.
9924 * sparc-tdep.c (sparc_gdbarch_init): Update.
9925 * sh-tdep.c (sh_gdbarch_init): Update.
9926 * s390-tdep.c (s390_gdbarch_init): Update.
9927 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9928 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9929 * mips-tdep.c (mips_gdbarch_init): Update.
9930 * mcore-tdep.c (mcore_gdbarch_init): Update.
9931 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9932 * ia64-tdep.c (ia64_gdbarch_init): Update.
9933 * i386-tdep.c (i386_gdbarch_init): Update.
9934 * hppa-tdep.c (hppa_gdbarch_init): Update.
9935 * h8300-tdep.c (h8300_gdbarch_init): Update.
9936 * frv-tdep.c (frv_gdbarch_init): Update.
9937 * d10v-tdep.c (d10v_gdbarch_init): Update.
9938 * cris-tdep.c (cris_gdbarch_init): Update.
9939 * avr-tdep.c (avr_gdbarch_init): Update.
9940 * arm-tdep.c (arm_gdbarch_init): Update.
9941 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9942 * alpha-tdep.c (alpha_gdbarch_init): Update.
9943
9944 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9945
9946 * signals/signals.c (do_target_signal_to_host): Correct realtime
9947 signal range test.
9948
9949 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9950
9951 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9952 (struct sal_chain, map_catch_names): Remove.
9953 (catch_exception_command_1): Don't call
9954 handle_gnu_4_16_catch_command.
9955
9956 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9957
9958 From Mark Dettinger <dettinge@de.ibm.com>:
9959 * dwarf2cfi.c (read_2u): Increment pointer by two.
9960
9961 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9962
9963 * signals/signals.c: Fix typos in last change.
9964
9965 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9966
9967 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9968 not already defined. Use __SIGRTMIN if available.
9969 (target_signal_from_host): Remove SIGRTMIN block.
9970 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9971 the signal is within the realtime range.
9972
9973 2003-03-25 Adam Fedor <fedor@gnu.org>
9974
9975 * Makefile.in (infrun.o): Add $(language_h)
9976 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9977 for language specific trampolines.
9978 * language.h (struct language_defn): Add skip_trampoline.
9979 (skip_language_trampoline): Declare.
9980 * language.c (unk_lang_trampoline, skip_language_trampoline):
9981 New functions.
9982 (unknown_language_defn, auto_language_defn, local_language_defn):
9983 Add ukn_lang_trampoline.
9984 * ada-lang.c (ada_language_defn): Add NULL for language
9985 specific skip_trampoline.
9986 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9987 scm-lang.c: Likewise.
9988 * objc-lang.c (objc_skip_trampoline): New function.
9989 (objc_language_defn): Add objc_skip_trampoline.
9990
9991 2003-03-25 Andrew Cagney <cagney@redhat.com>
9992
9993 * frame.c (get_prev_frame): Delay validating a frame's ID -
9994 non-NULL, didn't go backwards - until an attempt to unwind it to
9995 the previous frame.
9996
9997 2003-03-25 Andrew Cagney <cagney@redhat.com>
9998
9999 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10000 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10001 * gdbarch.h, gdbarch.c: Re-generate.
10002 * config/sparc/tm-sparc.h
10003 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10004 * sparc-tdep.c (sparc_gdbarch_init): Set
10005 deprecated_extra_stack_alignment_needed.
10006 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10007 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10008 extra_stack_alignment_needed.
10009 * v850-tdep.c (v850_gdbarch_init): Ditto.
10010 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10011 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10012 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10013 * cris-tdep.c (cris_gdbarch_init): Ditto.
10014 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10015 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10016
10017 2003-03-25 Andrew Cagney <cagney@redhat.com>
10018
10019 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10020 STORE_STRUCT_RETURN.
10021 * gdbarch.h, gdbarch.c: Regenerate.
10022 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10023 (d10v_push_arguments): Set the struct return register.
10024 (d10v_gdbarch_init): Update.
10025 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10026 * x86-64-tdep.c (x86_64_init_abi): Update.
10027 * vax-tdep.c (vax_gdbarch_init): Update.
10028 * v850-tdep.c (v850_gdbarch_init): Update.
10029 * sparc-tdep.c (sparc_gdbarch_init): Update.
10030 * sh-tdep.c (sh_gdbarch_init): Update.
10031 * s390-tdep.c (s390_gdbarch_init): Update.
10032 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10033 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10034 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10035 * mips-tdep.c (mips_gdbarch_init): Update.
10036 * mcore-tdep.c (mcore_gdbarch_init): Update.
10037 * m68k-tdep.c (m68k_gdbarch_init): Update.
10038 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10039 * ia64-tdep.c (ia64_gdbarch_init): Update.
10040 * i386-tdep.c (i386_gdbarch_init): Update.
10041 * hppa-tdep.c (hppa_gdbarch_init): Update.
10042 * h8300-tdep.c (h8300_gdbarch_init): Update.
10043 * frv-tdep.c (frv_gdbarch_init): Update.
10044 * cris-tdep.c (cris_gdbarch_init): Update.
10045 * avr-tdep.c (avr_gdbarch_init): Update.
10046 * arm-tdep.c (arm_gdbarch_init): Update.
10047 * alpha-tdep.c (alpha_gdbarch_init): Update.
10048
10049 2003-03-25 Andrew Cagney <cagney@redhat.com>
10050
10051 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10052 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10053 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10054 * gdbarch.h, gdbarch.c: Regenerate.
10055 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10056 call_dummy_stack_adjust_p.
10057 * vax-tdep.c (vax_gdbarch_init): Ditto.
10058 * v850-tdep.c (v850_gdbarch_init): Ditto.
10059 * sh-tdep.c (sh_gdbarch_init): Ditto.
10060 * s390-tdep.c (s390_gdbarch_init): Ditto.
10061 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10062 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10063 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10064 * mips-tdep.c (mips_gdbarch_init): Ditto.
10065 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10066 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10067 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10068 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10069 * i386-tdep.c (i386_gdbarch_init): Ditto.
10070 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10071 * frv-tdep.c (frv_gdbarch_init): Ditto.
10072 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10073 * cris-tdep.c (cris_gdbarch_init): Ditto.
10074 * avr-tdep.c (avr_gdbarch_init): Ditto.
10075 * arm-tdep.c (arm_gdbarch_init): Ditto.
10076 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10077 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10078 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10079 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10080 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10081 call_dummy_stack_adjust_p.
10082 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10083 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10084 * sparc-tdep.c (sparc32_push_arguments): Update.
10085 * valops.c (hand_function_call): Update.
10086
10087 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
10088
10089 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10090 set_gdbarch_char_signed.
10091
10092 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10093
10094 PR cli/548
10095 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10096
10097 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10098
10099 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10100 (_initialize_arm_tdep): Don't set tm_print_insn.
10101
10102 2003-03-24 Adam Fedor <fedor@gnu.org>
10103
10104 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10105 * objc-lang.h: Add multiple inclusion protection.
10106 (start_msglist, add_msglist, end_msglist): Additional declarations.
10107
10108 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
10109
10110 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10111 value was renamed to ARM_FLOAT_SOFT_FPA.
10112
10113 2003-03-23 Andrew Cagney <cagney@redhat.com>
10114
10115 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10116 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10117 * gdbarch.h, gdbarch.c: Regenerate.
10118 * valops.c (hand_function_call): Update.
10119 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10120 * frame.c (legacy_saved_regs_this_id): Update.
10121 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10122 * dummy-frame.h: Update.
10123 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10124 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10125 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10126 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10127 * config/m68k/tm-sun3.h: Update.
10128 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10129 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10130 * x86-64-tdep.c (x86_64_init_abi): Update.
10131 * vax-tdep.c (vax_gdbarch_init): Update.
10132 * v850-tdep.c (v850_gdbarch_init): Update.
10133 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10134 * sh-tdep.c (sh_gdbarch_init): Update.
10135 * s390-tdep.c (s390_gdbarch_init): Update.
10136 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10137 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10138 (frame_get_saved_regs): Update.
10139 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10140 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10141 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10142 * mips-tdep.c (mips_gdbarch_init): Update.
10143 * mcore-tdep.c (mcore_gdbarch_init): Update.
10144 * m68k-tdep.c (m68k_gdbarch_init): Update.
10145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10146 * ia64-tdep.c (ia64_gdbarch_init): Update.
10147 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10148 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10149 (i386_interix_back_one_frame): Update.
10150 * hppa-tdep.c (hppa_gdbarch_init): Update.
10151 (hppa_init_extra_frame_info): Update.
10152 * h8300-tdep.c (h8300_gdbarch_init): Update.
10153 * frv-tdep.c (frv_gdbarch_init): Update.
10154 * cris-tdep.c (cris_gdbarch_init): Update.
10155 * avr-tdep.c (avr_gdbarch_init): Update.
10156 * arm-tdep.c (arm_gdbarch_init): Update.
10157 * alpha-tdep.c (alpha_gdbarch_init): Update.
10158
10159 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10160
10161 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10162 (arm_get_fp_model): Declare.
10163 * arm-tdep.c (fp_model_strings): New string array.
10164 (arm_fp_model, current_fp_model): New variables.
10165 (arm_get_fp_model): New function.
10166 (arm_set_fp): New function.
10167 (set_fp_model_sfunc): New function.
10168 (show_fp_model): New function.
10169 (_initialize_arm_tdep): Add new command to set/show the FPU.
10170 (arm_extract_return_value): Use arm_get_fp_model.
10171 (arm_store_return_value): Likewise.
10172 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10173 to initialize the floating-point data types.
10174 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10175 model is FPA.
10176
10177 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10178
10179 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10180 the current setting of each value.
10181 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
10182 new_set and new_show. Use add_setshow_cmd_full and
10183 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10184 commands and add new version as subcommands of "set/show arm".
10185
10186 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10187
10188 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10189 (set_arm_command, show_arm_command): New functions.
10190 (_initialize_arm_tdep): Add them.
10191 (num_disassembly_options): Renamed from num_flavor_options.
10192 (valid_disassembly_styles): Renamed from valid_flavors.
10193 (disassembly_style): Renamed from disassembly_flavor.
10194 (set_disassembly_style_sfunc): Renamed from
10195 set_disassembly_flavor_sfunc.
10196 (set_disassembly_style): Renamed from set_disassembly_flavor.
10197 (arm_othernames): Updated.
10198 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10199 command. Add "set/show arm disassembly" commands. Deprecate
10200 "othernames" command.
10201
10202 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10203
10204 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10205 (arm-tdep.o): Depend on elf_arm_h.
10206
10207 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10208
10209 * Makefile.in (coff_internal_h): Define.
10210 (arm-tdep.o): Update dependencies.
10211
10212 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10213
10214 * arm-tdep.c (prologue_cache): Delete.
10215 (check_prologue_cache, save_prologue_cache): Delete.
10216 (arm_scan_prologue): Don't check or update the prologue_cache.
10217 (arm_gdb_arch_init): Don't initialize it.
10218 (_initialize_arm_tdep): Likewise.
10219
10220 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10221
10222 * MAINTAINERS (tui): Maintainer of tui code.
10223
10224 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
10225
10226 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10227 (i386-cygwin-tdep.o): Add dependencies.
10228 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10229 * i386-cygwin-tdep.c: New file.
10230 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10231 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10232
10233 2003-03-20 Andrew Cagney <cagney@redhat.com>
10234
10235 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10236 (handle_inferior_event): Remove code calling
10237 DYNAMIC_TRAMPOLINE_NEXTPC.
10238
10239 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10240 already has a full path.
10241
10242 * main.c (gdb_main): Return 1.
10243 (captured_main): Call error to report an invalid interpreter.
10244
10245 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10246 * alpha-osf1-tdep.c: Include "gdb_string.h".
10247
10248 2003-03-19 J. Brobecker <brobecker@gnat.com>
10249
10250 Continuing work to convert the hppa targets to multiarch partial.
10251
10252 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10253 method, now that hppa_push_dummy_frame has a conformant prototype.
10254 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10255 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10256 for the switch to multiarch partial.
10257
10258 2003-03-19 Kevin Buettner <kevinb@redhat.com>
10259
10260 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10261 when iss is issNull.
10262
10263 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10264
10265 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10266 NUM_REGS bounds check.
10267
10268 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10269
10270 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10271 * mips-tdep.c (gdb_assert.h): Include.
10272 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10273 (mips_register_name): Handle integer registers explicitly. Add
10274 bounds checking.
10275 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10276 (mips_lsi33k_reg_names): Don't list integer registers; they're
10277 handled by mips_register_name() now.
10278 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10279 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10280 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10281 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10282 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10283
10284 2003-03-18 Andrew Cagney <cagney@redhat.com>
10285
10286 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10287 a void pointer.
10288 * gdbtypes.h (print_scalar_formatted): Update declaration.
10289 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10290
10291 2003-03-18 J. Brobecker <brobecker@gnat.com>
10292
10293 * infrun.c (observer.h): Add #include.
10294 (normal_stop): Add call to observer_notify_normal_stop.
10295 * Makefile.in (infrun.o): Add dependency on observer.h.
10296
10297 2003-03-18 J. Brobecker <brobecker@gnat.com>
10298
10299 Continuing work to convert the hppa targets to multiarch partial.
10300 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10301 parameter. Reformat comment.
10302 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10303 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10304 to match new profile.
10305
10306 2003-03-18 J. Brobecker <brobecker@gnat.com>
10307
10308 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10309 appear to be working in any case.
10310
10311 2003-03-18 J. Brobecker <brobecker@gnat.com>
10312
10313 * observer.c (observer_test_first_observer): New static variable.
10314 (observer_test_second_observer): Likewise.
10315 (observer_test_third_observer): Likewise.
10316 (observer_test_first_notification_function): New static function.
10317 (observer_test_second_notification_function): Likewise.
10318 (observer_test_third_notification_function): Likewise.
10319
10320 2003-03-17 J. Brobecker <brobecker@gnat.com>
10321
10322 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10323 * somsolib.c (gdb_assert.h): Likewise.
10324 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10325 (somsolib.o): Likewise.
10326
10327 2003-03-17 Andrew Cagney <cagney@redhat.com>
10328
10329 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10330 BFD. Simplify setting of di.endian.
10331
10332 2003-03-17 Andrew Cagney <cagney@redhat.com>
10333
10334 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10335 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10336
10337 From Elena Zannoni <ezannoni@redhat.com>
10338 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10339 vector and floating-point parameters.
10340 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10341 convention.
10342 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10343
10344 2003-03-17 Fernando Nasser <fnasser@redhat.com>
10345
10346 * MAINTAINERS: Remove my name from several maintainership roles.
10347
10348 2003-03-17 Andrew Cagney <cagney@redhat.com>
10349
10350 Fix frame off-by-one bug.
10351 * frame-unwind.h (frame_this_id_ftype): Replace
10352 frame_unwind_id_ftype.
10353 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10354 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10355 with "prev_register".
10356 * frame-unwind.c (frame_unwind_find_by_pc): Return
10357 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10358 comment.
10359 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10360 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10361 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10362 (dummy_frame_unwind): Update.
10363 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10364 sentinel_frame_register_unwind.
10365 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10366 (sentinel_frame_unwinder): Update.
10367 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10368 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10369 * frame.c (create_sentinel_frame): Update. Initialize
10370 "prologue_cache" instead of "unwind_cache".
10371 (frame_register_unwind): Call this frame's prev_register with the
10372 next frame and this frame's prologue cache.
10373 (get_prev_frame): Simplify. Always call prev frame's this_id with
10374 this frame and prev frame's prologue cache. Document that this
10375 call is shifted one to the left when compared to the
10376 frame_register_unwind call.
10377 (legacy_saved_regs_prev_register): Replace
10378 frame_saved_regs_register_unwind.
10379 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10380 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10381 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10382 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10383 (d10v_frame_unwind): Update.
10384 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10385 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10386 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10387 "saved_regs" with "this_saved_regs".
10388
10389 2003-03-16 Andrew Cagney <cagney@redhat.com>
10390
10391 * frame.c (frame_pop): Don't call target_store_registers. Fix
10392 problem reported by Mark Kettenis.
10393
10394 2003-03-16 Mark Kettenis <kettenis@gnu.org>
10395
10396 * i386-tdep.c (i386_register_type): Renamed from
10397 i386_register_virtual_type. Adjust function signature.
10398 (i386_gdbarch_init): Set register_type instead of
10399 deprecated_max_register_raw_size,
10400 deprecated_max_register_virtual_size and register_virtual_type.
10401
10402 2003-03-14 Andrew Cagney <cagney@redhat.com>
10403
10404 * frame.c (get_prev_frame): When a legacy frame, always call
10405 legacy_get_prev_frame. Simplify unwind code using assumption that
10406 the unwinder is new.
10407 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10408 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10409 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10410
10411 2003-03-14 Andrew Cagney <cagney@redhat.com>
10412
10413 * frame.c (get_saved_register): Delete function.
10414 * frame.h (get_saved_register): Delete declaration.
10415 * xstormy16-tdep.c: Update comment.
10416 * regcache.h: Update comments.
10417 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10418 get_saved_register and extract_address, use
10419 frame_read_unsigned_register.
10420 (sparc_frame_saved_pc): Ditto.
10421 (sparc_get_saved_register): Instead of get_saved_register, use
10422 frame_register.
10423 (sparc_pop_frame): Ditto.
10424 * findvar.c: Update comments.
10425 (value_of_register): Call frame_register instead of
10426 get_saved_register.
10427 (value_from_register): Ditto.
10428 * config/sparc/tm-sparc.h: Update comment.
10429 * breakpoint.c: Update comment.
10430
10431 2003-03-14 Andrew Cagney <cagney@redhat.com>
10432
10433 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10434 GET_SAVED_REGISTER.
10435 * gdbarch.h, gdbarch.c: Re-generate.
10436 * frame.h: Update comments.
10437 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10438 * x86-64-tdep.c (x86_64_init_abi): Update.
10439 * sparc-tdep.c (sparc_gdbarch_init): Update.
10440 * sh-tdep.c (sh_gdbarch_init): Update.
10441 * mips-tdep.c (mips_gdbarch_init): Update.
10442 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10443 * cris-tdep.c (cris_gdbarch_init): Update.
10444 * ia64-tdep.c (ia64_gdbarch_init): Update.
10445 * frame.c (frame_register): Update.
10446 (get_saved_register): Update.
10447 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
10448
10449 2003-03-13 Andrew Cagney <cagney@redhat.com>
10450
10451 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10452 * gdbarch.h, gdbarch.c: Regenerate.
10453 * valops.c (hand_function_call): Update comment.
10454 * stack.c (return_command): Update comment.
10455 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10456 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10457 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10458 * x86-64-tdep.c (x86_64_init_abi): Update.
10459 * vax-tdep.c (vax_gdbarch_init): Update.
10460 * v850-tdep.c (v850_gdbarch_init): Update.
10461 * sparc-tdep.c (sparc_gdbarch_init): Update.
10462 * sh-tdep.c (sh_gdbarch_init): Update.
10463 * s390-tdep.c (s390_gdbarch_init): Update.
10464 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10465 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10466 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10467 * mips-tdep.c (mips_gdbarch_init): Update.
10468 * mcore-tdep.c (mcore_gdbarch_init): Update.
10469 * m68k-tdep.c (m68k_gdbarch_init): Update.
10470 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10471 * ia64-tdep.c (ia64_gdbarch_init): Update.
10472 * i386-tdep.c (i386_gdbarch_init): Update.
10473 * hppa-tdep.c (hppa_gdbarch_init): Update.
10474 * h8300-tdep.c (h8300_gdbarch_init): Update.
10475 * frv-tdep.c (frv_gdbarch_init): Update.
10476 * cris-tdep.c (cris_gdbarch_init): Update.
10477 * avr-tdep.c (avr_gdbarch_init): Update.
10478 * arm-tdep.c (arm_gdbarch_init): Update.
10479 * alpha-tdep.c (alpha_gdbarch_init): Update.
10480
10481 2003-03-13 Andrew Cagney <cagney@redhat.com>
10482
10483 * frame.c (legacy_frame_p): New function.
10484 (get_prev_frame): Use legacy_frame_p.
10485 * frame.h (legacy_frame_p): Declare.
10486
10487 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10488
10489 * MAINTAINERS (write after approval): Alphabetically
10490 listing corrected.
10491
10492 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10493
10494 * MAINTAINERS (write after approval): Add myself.
10495
10496 2003-03-12 Andrew Cagney <cagney@redhat.com>
10497
10498 * frame.c (get_prev_frame): Rename the frame parameter to
10499 "this_frame".
10500 (get_next_frame, legacy_get_prev_frame): Ditto.
10501
10502 2003-03-12 Andrew Cagney <cagney@redhat.com>
10503
10504 * frame.c (get_current_frame): Check target_has_registers before
10505 checking target_has_stack.
10506 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10507 instead of deprecated_selected_frame.
10508 * findvar.c (value_of_register): Pass "frame", not
10509 deprecated_selected_frame, to value_of_builtin_reg.
10510
10511 2003-03-12 Andrew Cagney <cagney@redhat.com>
10512
10513 * regcache.c (regcache_cooked_write_signed): New function.
10514 (regcache_cooked_write_unsigned): New function.
10515 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10516 (regcache_cooked_read_signed): Fix regnum in range assertion.
10517 * regcache.h (regcache_cooked_write_signed): Declare.
10518 (regcache_cooked_write_unsigned): Declare.
10519
10520 2003-03-12 Andrew Cagney <cagney@redhat.com>
10521
10522 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10523 * gdbarch.h, gdbarch.c: Re-generate.
10524 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10525 * x86-64-tdep.h: Update.
10526 * x86-64-tdep.c (x86_64_init_abi): Update.
10527 * v850-tdep.c (v850_gdbarch_init): Update.
10528 * sparc-tdep.c (sparc_gdbarch_init): Update.
10529 * sh-tdep.c (sh_gdbarch_init): Update.
10530 * s390-tdep.c (s390_gdbarch_init): Update.
10531 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10532 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10533 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10534 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10535 * mips-tdep.c (mips_gdbarch_init): Update.
10536 * mcore-tdep.c (mcore_gdbarch_init): Update.
10537 * m68k-tdep.c (m68k_gdbarch_init): Update.
10538 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10539 * ia64-tdep.c (ia64_gdbarch_init): Update.
10540 * i386-tdep.c (i386_gdbarch_init): Update.
10541 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10542 * hppa-tdep.c (hppa_gdbarch_init): Update.
10543 * h8300-tdep.c (h8300_gdbarch_init): Update.
10544 * frv-tdep.c (frv_gdbarch_init): Update.
10545 * cris-tdep.c (cris_gdbarch_init): Update.
10546 * avr-tdep.c (avr_gdbarch_init): Update.
10547 * arm-tdep.c (arm_gdbarch_init): Update.
10548 * alpha-tdep.c (alpha_gdbarch_init): Update.
10549 * sh-tdep.c (sh_init_extra_frame_info): Update.
10550 (sh64_init_extra_frame_info): Update.
10551 * ns32knbsd-nat.c (frame_num_args): Update.
10552 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10553 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10554 (xstormy16_frame_chain_valid): Update.
10555 * vax-tdep.c (vax_saved_pc_after_call): Update.
10556 * v850-tdep.c (v850_frame_chain): Update.
10557 (v850_pop_frame): Update.
10558 (v850_init_extra_frame_info): Update.
10559 * sparc-tdep.c (setup_arbitrary_frame): Update.
10560 * ns32k-tdep.c (umax_frame_num_args): Update.
10561 * s390-tdep.c (s390_pop_frame_regular): Update.
10562 * mn10300-tdep.c (mn10300_frame_chain): Update.
10563 (mn10300_pop_frame_regular): Update.
10564 (mn10300_init_extra_frame_info): Update.
10565 * mips-tdep.c (mips_init_frame_pc_first): Update.
10566 (mips_frame_chain): Update.
10567 (mips_pop_frame): Update.
10568 * mcore-tdep.c (mcore_frame_chain): Update.
10569 (mcore_pop_frame): Update.
10570 (mcore_init_extra_frame_info): Update.
10571 * arch-utils.c (init_frame_pc_default): Update.
10572 * m68k-tdep.c (isi_frame_num_args): Update.
10573 (delta68_frame_num_args): Update.
10574 (news_frame_num_args): Update.
10575 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10576 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10577 (alpha_frame_chain): Update.
10578 (alpha_pop_frame): Update.
10579 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10580 (hppa_init_extra_frame_info): Update.
10581 (hppa_frame_chain): Update.
10582 (hppa_frame_chain_valid): Update.
10583 * cris-tdep.c (cris_init_extra_frame_info): Update.
10584 * avr-tdep.c (avr_init_extra_frame_info): Update.
10585 * arm-tdep.c (arm_frame_chain_valid): Update.
10586 (arm_init_extra_frame_info): Update.
10587 (arm_pop_frame): Update.
10588 * frame.c (frame_pc_unwind): Update.
10589 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10590 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10591 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10592 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10593 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10594 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10595
10596 2003-03-12 Andrew Cagney <cagney@redhat.com>
10597
10598 Eliminate the need for POP_FRAME.
10599 * frame.c (do_frame_unwind_register): New function.
10600 (frame_pop): When no POP_FRAME, pop the frame using register
10601 unwind and a scratch regcache.
10602 (frame_saved_regs_pop): Delete function.
10603 (trad_frame_unwinder): Update.
10604 * d10v-tdep.c (d10v_frame_pop): Delete function.
10605 (d10v_frame_unwind): Update.
10606 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10607 (sentinel_frame_unwinder): Update.
10608 * dummy-frame.c (dummy_frame_pop): Delete function.
10609 (dummy_frame_unwind): Update.
10610 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10611 (struct frame_unwind): Update.
10612
10613 2003-03-11 Kevin Buettner <kevinb@redhat.com>
10614
10615 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10616 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10617 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10618 Do range checks on register number obtained from debugging info.
10619 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10620 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10621 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10622 mapping function.
10623 (do_fp_register_row): Fix typo which caused double type to be
10624 used when attempting to unpack a float.
10625
10626 2003-03-11 J. Brobecker <brobecker@gnat.com>
10627
10628 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10629
10630 2003-03-11 Andrew Cagney <cagney@redhat.com>
10631
10632 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10633 frame. Problem found by Corinna Vinschen.
10634
10635 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10636
10637 * doublest.c (floatformat_from_length): Accept also
10638 the real size of 'long double' type.
10639
10640 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
10641
10642 From Klee Dienes <kdienes@apple.com>:
10643 * breakpoint.c (bpstat_copy): Copy the command lines as well
10644 as the old value, to match what is freed in bpstat_clear.
10645
10646 2003-03-10 David Carlton <carlton@math.stanford.edu>
10647
10648 * minsyms.c (add_minsym_to_hash_table): Replace
10649 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10650 (compare_minimal_symbols, compact_minimal_symbols)
10651 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10652 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10653 of DEPRECATED_SYMBOL_MATCHES_NAME.
10654 (lookup_minimal_symbol_solib_trampoline): Ditto.
10655
10656 2003-03-10 Andrew Cagney <cagney@redhat.com>
10657
10658 * regcache.h (regcache_cooked_read_ftype): Define.
10659 (regcache_save, regcache_restore): Add a cooked_read parameter.
10660 * regcache.c (regcache_save, regcache_restore): Update.
10661 (do_cooked_read): New function.
10662 (regcache_cpy): Pass do_cooked_read to regcache_save and
10663 regcache_restore.
10664
10665 2003-03-10 Andrew Cagney <cagney@redhat.com>
10666
10667 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10668 * gdbarch.h, gdbarch.c: Re-generate.
10669 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10670 * x86-64-tdep.h: Update.
10671 * x86-64-tdep.c (x86_64_init_abi): Update.
10672 * v850-tdep.c (v850_gdbarch_init): Update.
10673 * sparc-tdep.c (sparc_gdbarch_init): Update.
10674 * sh-tdep.c (sh_gdbarch_init): Update.
10675 * s390-tdep.c (s390_gdbarch_init): Update.
10676 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10677 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10678 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10679 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10680 * mips-tdep.c (mips_gdbarch_init): Update.
10681 * mcore-tdep.c (mcore_gdbarch_init): Update.
10682 * m68k-tdep.c (m68k_gdbarch_init): Update.
10683 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10684 * ia64-tdep.c (ia64_gdbarch_init): Update.
10685 * i386-tdep.c (i386_gdbarch_init): Update.
10686 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10687 * hppa-tdep.c (hppa_gdbarch_init): Update.
10688 * h8300-tdep.c (h8300_gdbarch_init): Update.
10689 * frv-tdep.c (frv_gdbarch_init): Update.
10690 * cris-tdep.c (cris_gdbarch_init): Update.
10691 * avr-tdep.c (avr_gdbarch_init): Update.
10692 * arm-tdep.c (arm_gdbarch_init): Update.
10693 * alpha-tdep.c (alpha_gdbarch_init): Update.
10694 * sh-tdep.c (sh_init_extra_frame_info): Update.
10695 (sh64_init_extra_frame_info): Update.
10696 * ns32knbsd-nat.c (frame_num_args): Update.
10697 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10698 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10699 (xstormy16_frame_chain_valid): Update.
10700 * vax-tdep.c (vax_saved_pc_after_call): Update.
10701 * v850-tdep.c (v850_frame_chain): Update.
10702 (v850_pop_frame): Update.
10703 (v850_init_extra_frame_info): Update.
10704 * sparc-tdep.c (setup_arbitrary_frame): Update.
10705 * ns32k-tdep.c (umax_frame_num_args): Update.
10706 * s390-tdep.c (s390_pop_frame_regular): Update.
10707 * mn10300-tdep.c (mn10300_frame_chain): Update.
10708 (mn10300_pop_frame_regular): Update.
10709 (mn10300_init_extra_frame_info): Update.
10710 * mips-tdep.c (mips_init_frame_pc_first): Update.
10711 (mips_frame_chain): Update.
10712 (mips_pop_frame): Update.
10713 * mcore-tdep.c (mcore_frame_chain): Update.
10714 (mcore_pop_frame): Update.
10715 (mcore_init_extra_frame_info): Update.
10716 * arch-utils.c (init_frame_pc_default): Update.
10717 * m68k-tdep.c (isi_frame_num_args): Update.
10718 (delta68_frame_num_args): Update.
10719 (news_frame_num_args): Update.
10720 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10721 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10722 (alpha_frame_chain): Update.
10723 (alpha_pop_frame): Update.
10724 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10725 (hppa_init_extra_frame_info): Update.
10726 (hppa_frame_chain): Update.
10727 (hppa_frame_chain_valid): Update.
10728 * cris-tdep.c (cris_init_extra_frame_info): Update.
10729 * avr-tdep.c (avr_init_extra_frame_info): Update.
10730 * arm-tdep.c (arm_frame_chain_valid): Update.
10731 (arm_init_extra_frame_info): Update.
10732 (arm_pop_frame): Update.
10733 * frame.c (frame_pc_unwind): Update.
10734 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10735 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10736 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10737 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10738 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10739 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10740
10741 2003-03-10 Andrew Cagney <cagney@redhat.com>
10742
10743 * gdbarch.sh (gdbarch_unwind_pc): New method.
10744 * gdbarch.h, gdbarch.c: Regenerate.
10745 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10746 but use read_pc and FRAME_SAVED_PC as fall backs.
10747 (frame_saved_regs_pc_unwind): Delete function.
10748 (trad_frame_unwinder): Update.
10749 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10750 (struct frame_unwind): Update.
10751 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10752 (dummy_frame_unwind): Update.
10753 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10754 (sentinel_frame_unwinder): Update.
10755 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10756 (d10v_frame_unwind): Update.
10757 (d10v_unwind_pc): New function.
10758 (d10v_gdbarch_init): Set unwind_pc.
10759
10760 2003-03-10 Andrew Cagney <cagney@redhat.com>
10761
10762 * gdbarch.h: Re-generate.
10763
10764 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10765 PC.
10766 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10767 the PC register.
10768
10769 2003-03-08 Mark Kettenis <kettenis@gnu.org>
10770
10771 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10772
10773 2003-03-08 Andrew Cagney <cagney@redhat.com>
10774
10775 * cli-out.c: Update copyright.
10776 (cli_out_data): Define typedef. Use instead of ui_out_data.
10777
10778 2003-03-08 Andrew Cagney <cagney@redhat.com>
10779
10780 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10781 the result.
10782
10783 2003-03-07 Andrew Cagney <cagney@redhat.com>
10784
10785 * gdbarch.sh: Don't generate two macro definitions when an
10786 undefined macro taking no arguments.
10787 * gdbarch.h: Regenerate.
10788
10789 2002-03-07 Michal Ludvig <mludvig@suse.cz>
10790
10791 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10792 (x86_64_unwind_dummy_id): New functions.
10793 (x86_64_init_abi): Register these two new functions.
10794
10795 2003-03-07 Michal Ludvig <mludvig@suse.cz>
10796
10797 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10798 (x86_64_skip_prologue): Move prologue detection to
10799 separate function.
10800 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10801
10802 2003-03-05 Andrew Cagney <cagney@redhat.com>
10803
10804 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10805 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10806 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10807 to use unwind_dummy_id when a dummy frame.
10808 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10809 predicate.
10810 * gdbarch.h, gdbarch.c: Regneerate.
10811
10812 2003-03-05 Andrew Cagney <cagney@redhat.com>
10813
10814 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10815 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10816 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10817 values.
10818
10819 2003-03-05 Andrew Cagney <cagney@redhat.com>
10820
10821 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10822 (struct d10v_unwind_cache): Delete field "frameless". Replace
10823 "next_addr" with "sp_offset". Add "r11_offset".
10824 (d10v_frame_unwind_cache): Update.
10825 (prologue_find_regs): Update. When "mv r11, sp", save the
10826 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10827 RN was saved in r11_offset.
10828
10829 2003-03-05 Andrew Cagney <cagney@redhat.com>
10830
10831 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10832 cached PC value in the next frame.
10833
10834 2003-03-05 Andrew Cagney <cagney@redhat.com>
10835
10836 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10837 "id_unwind_cache" with "id".
10838 (frame_id_unwind): Delete declaration.
10839 * frame.c (frame_id_unwind): Delete function.
10840 (get_prev_frame): Call the frame id unwind method directly. Store
10841 the returned next frame's ID value in NEXT_FRAME. Note that there
10842 is a problem with the wrong unwind ID being called with the wrong
10843 unwind cache.
10844
10845 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10846
10847 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10848
10849 2003-03-05 James Ingham <jingham@apple.com>
10850 Daniel Jacobowitz <drow@mvista.com>
10851
10852 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10853 (auto_cp_abi): New variable.
10854 (current_cp_abi, num_cp_abis): Make static.
10855 (CP_ABI_MAX): Define.
10856 (cp_abis): Turn into an array.
10857 (value_virtual_fn_field): Fix formatting.
10858 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10859 takes a pointer.
10860 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10861 (list_cp_abis, _initialize_cp_abi): New functions.
10862 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10863 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10864 switch_to_cp_abi. Update prototype for register_cp_abi.
10865 * Makefile.in (cp-abi.o): Update dependencies.
10866 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10867 instead of switch_to_cp_abi.
10868 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10869 register_cp_abi.
10870 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10871 register_cp_abi.
10872 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10873
10874 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10875
10876 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10877 * dwarf2loc.c: Include "regcache.h".
10878 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10879 register_size.
10880 * Makefile.in (dwarf2loc.o): Update dependencies.
10881
10882 2003-03-04 Theodore A. Roth <troth@openavr.org>
10883
10884 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10885 number of io registers reported by remote target is not a multiple of
10886 step.
10887
10888 2003-03-04 David Carlton <carlton@math.stanford.edu>
10889
10890 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10891 (lookup_symbol_aux_psymtabs): Update call to
10892 lookup_partial_symbol.
10893 (lookup_transparent_type, find_main_psymtab)
10894 (make_symbol_overload_list): Ditto.
10895
10896 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10897
10898 * MAINTAINERS (Write after approval): Update my email address.
10899
10900 2003-03-03 Andrew Cagney <cagney@redhat.com>
10901
10902 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10903 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10904 predicate. Replace MAX_REGISTER_RAW_SIZE.
10905 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10906 MAX_REGISTER_VIRTUAL_SIZE.
10907 * regcache.c (legacy_max_register_raw_size): New function.
10908 (legacy_max_register_virtual_size): New function.
10909 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10910 (MAX_REGISTER_RAW_SIZE): Define.
10911 (legacy_max_register_raw_size): Declare.
10912 (legacy_max_register_virtual_size): Declare.
10913 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10914 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10915 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10916 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10917 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10918 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10919 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10920 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10921 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10922 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10923 * vax-tdep.c (vax_gdbarch_init): Update.
10924 * v850-tdep.c (v850_gdbarch_init): Update.
10925 * sparc-tdep.c (sparc_gdbarch_init): Update.
10926 * sh-tdep.c (sh_gdbarch_init): Update.
10927 * s390-tdep.c (s390_gdbarch_init): Update.
10928 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10929 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10930 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10931 * mips-tdep.c (mips_gdbarch_init): Update.
10932 * mcore-tdep.c (mcore_gdbarch_init): Update.
10933 * m68k-tdep.c (m68k_gdbarch_init): Update.
10934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10935 * ia64-tdep.c (ia64_gdbarch_init): Update.
10936 * i386-tdep.c (i386_gdbarch_init): Update.
10937 * hppa-tdep.c (hppa_gdbarch_init): Update.
10938 * h8300-tdep.c (h8300_gdbarch_init): Update.
10939 * frv-tdep.c (frv_gdbarch_init): Update.
10940 * cris-tdep.c (cris_gdbarch_init): Update.
10941 * avr-tdep.c (avr_gdbarch_init): Update.
10942 * arm-tdep.c (arm_gdbarch_init): Update.
10943 * alpha-tdep.c (alpha_gdbarch_init): Update.
10944 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10945 max_register_raw_size or max_register_virtual_size.
10946
10947 2003-03-03 David Carlton <carlton@math.stanford.edu>
10948
10949 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10950 SYMBOL_MATCHES_NAME, add comment.
10951 (SYMBOL_MATCHES_NATURAL_NAME): New.
10952 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10953 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10954 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10955 * symtab.c (lookup_partial_symbol): Use
10956 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10957 unhelpful comment.
10958 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10959 SYMBOL_MATCHES_NAME.
10960 Fix for PR c++/33.
10961
10962 2003-03-03 David Carlton <carlton@math.stanford.edu>
10963
10964 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10965 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10966 by regexp matching against SYMBOL_NATURAL_NAME.
10967
10968 2003-03-03 David Carlton <carlton@math.stanford.edu>
10969
10970 * linespec.c (find_method): Extract code into collect_methods.
10971 (collect_methods): New.
10972
10973 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10974
10975 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10976 get_frame_base.
10977
10978 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10979 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10980
10981 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10982
10983 * arch-utils.c (generic_register_byte): Fix to use the loop index
10984 and not regnum when summing the size of all registers up to regnum.
10985
10986 2003-03-01 Andrew Cagney <cagney@redhat.com>
10987
10988 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10989 FRAME_INIT_SAVED_REGS.
10990 * gdbarch.h, gdbarch.c: Regenerate.
10991 * stack.c (frame_info): Update.
10992 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10993 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10994 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10995 * ns32k-tdep.c (ns32k_pop_frame): Update.
10996 * mips-tdep.c (mips_pop_frame): Update.
10997 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10998 * ia64-tdep.c (ia64_frame_chain): Update.
10999 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11000 (ia64_frameless_function_invocation): Update.
11001 (ia64_init_extra_frame_info): Update.
11002 (ia64_pop_frame_regular): Update.
11003 * frame.h (struct frame_info): Update comment.
11004 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11005 * frame.c (frame_saved_regs_register_unwind): Update.
11006 (frame_saved_regs_register_unwind): Update.
11007 (deprecated_generic_get_saved_register): Update.
11008 * cris-tdep.c: Update comment.
11009 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11010 Rename macro.
11011 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11012 * x86-64-tdep.c (x86_64_init_abi): Update.
11013 * vax-tdep.c (vax_gdbarch_init): Update.
11014 * v850-tdep.c (v850_gdbarch_init): Update.
11015 * sparc-tdep.c (sparc_gdbarch_init): Update.
11016 * sh-tdep.c (sh_gdbarch_init): Update.
11017 * s390-tdep.c (s390_gdbarch_init): Update.
11018 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11019 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11020 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11021 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11022 * mips-tdep.c (mips_gdbarch_init): Update.
11023 * mcore-tdep.c (mcore_gdbarch_init): Update.
11024 * m68k-tdep.c (m68k_gdbarch_init): Update.
11025 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11026 * ia64-tdep.c (ia64_gdbarch_init): Update.
11027 * i386-tdep.c (i386_gdbarch_init): Update.
11028 * frv-tdep.c (frv_gdbarch_init): Update.
11029 * avr-tdep.c (avr_gdbarch_init): Update.
11030 * arm-tdep.c (arm_gdbarch_init): Update.
11031 * alpha-tdep.c (alpha_gdbarch_init): Update.
11032
11033 2003-03-01 Andrew Cagney <cagney@redhat.com>
11034
11035 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11036 option enum and switch. When no windows, set the interpreter to
11037 INTERP_CONSOLE.
11038
11039 2003-03-01 Andrew Cagney <cagney@redhat.com>
11040
11041 * main.c (captured_main): Replace magic option characters with an
11042 enum.
11043
11044 2003-03-01 Andrew Cagney <cagney@redhat.com>
11045
11046 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11047 INIT_EXTRA_FRAME_INFO.
11048 * gdbarch.h, gdbarch.c: Regenerate.
11049 * arm-tdep.c: Update comments.
11050 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11051 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11052 * frame.h, avr-tdep.c: Ditto.
11053 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11054 (create_new_frame, legacy_get_prev_frame): Ditto.
11055 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11056 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11057 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11058 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11059 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11060 * v850-tdep.c (v850_gdbarch_init): Ditto.
11061 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11062 * sh-tdep.c (sh_gdbarch_init): Ditto.
11063 * s390-tdep.c (s390_gdbarch_init): Ditto.
11064 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11065 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11066 * mips-tdep.c (mips_gdbarch_init): Ditto.
11067 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11068 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11069 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11070 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11071 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11072 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11073 * frv-tdep.c (frv_gdbarch_init): Ditto.
11074 * cris-tdep.c (cris_gdbarch_init): Ditto.
11075 * avr-tdep.c (avr_gdbarch_init): Ditto.
11076 * arm-tdep.c (arm_gdbarch_init): Ditto.
11077 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11078 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11079
11080 2003-03-01 Andrew Cagney <cagney@redhat.com>
11081
11082 * gdbarch.sh (register_type): New function with predicate.
11083 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11084 * gdbarch.h, gdbarch.c: Re-generate.
11085 * arch-utils.c (generic_register_byte): Use generic_register_size.
11086 (generic_register_size): When available, use
11087 gdbarch_register_type.
11088 * regcache.c (init_regcache_descr): When available, initialize the
11089 register type array using gdbarch_register_type. If the
11090 architecture supplies gdbarch_register_type, do not use the legacy
11091 regcache layout.
11092 * d10v-tdep.c (d10v_register_type): Replace
11093 d10v_register_virtual_type.
11094 (d10v_gdbarch_init): Set register_type instead of
11095 register_virtual_type.
11096
11097 2003-03-01 Andrew Cagney <cagney@redhat.com>
11098
11099 * Makefile.in (ax-gdb.o): Update dependencies.
11100 * ax-gdb.c: Include "regcache.h".
11101 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11102 * findvar.c (value_of_register): Ditto.
11103 * infcmd.c (default_print_registers_info): Ditto.
11104
11105 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11106
11107 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11108 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11109
11110 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11111
11112 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11113 of STREQ.
11114
11115 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
11116
11117 * Makefile.in (dwarf2loc.o): Update dependencies.
11118 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11119 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11120 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11121 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11122 (locexpr_tracepoint_var_ref): New function.
11123 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11124
11125 2003-02-28 Andrew Cagney <cagney@redhat.com>
11126
11127 * regcache.c (register_size): New function.
11128 * regcache.h (register_size): Declare
11129 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11130 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11131
11132 2003-02-28 David Carlton <carlton@math.stanford.edu>
11133
11134 * linespec.c (decode_compound): Extract code into find_method.
11135 (find_method): New.
11136
11137 2003-02-28 J. Brobecker <brobecker@gnat.com>
11138
11139 * Makefile.in: Add rules to build and link in observer.o.
11140
11141 2003-02-27 J. Brobecker <brobecker@gnat.com>
11142
11143 * observer.c: Minor comments edits.
11144
11145 2003-02-27 J. Brobecker <brobecker@gnat.com>
11146
11147 * observer.h, observer.c: New file.
11148
11149 2003-02-27 Andrew Cagney <cagney@redhat.com>
11150
11151 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11152
11153 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11154
11155 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11156 (M6812_OP_STS_EXT): Likewise.
11157 (m6811_prologue): Use the above to recognize prologue.
11158 (m6812_prologue): Likewise.
11159
11160 2003-02-27 David Carlton <carlton@math.stanford.edu>
11161
11162 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11163 SYMBOL_PRINT_NAME.
11164 (compare_psymbols): Ditto.
11165 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11166
11167 2003-02-27 Michael Snyder <msnyder@redhat.com>
11168
11169 * f-lang.c (build_fortran_types): New function.
11170 (_initialize_f_language): Gdbarch-register built-in fortran types.
11171 * doublest.c (extract_floating): Fix warning text.
11172
11173 2003-02-27 Andrew Cagney <cagney@redhat.com>
11174
11175 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11176 predicate. Replaces PUSH_DUMMY_FRAME.
11177 * gdbarch.h, gdbarch.c: Regnerate.
11178 * valops.c (hand_function_call): Update. Call
11179 generic_push_dummy_frame directly.
11180 * vax-tdep.c (vax_gdbarch_init): Update.
11181 * sparc-tdep.c (sparc_gdbarch_init): Update.
11182 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11183 * m68k-tdep.c (m68k_gdbarch_init): Update.
11184 * hppa-tdep.c (hppa_gdbarch_init): Update.
11185 * alpha-tdep.c (alpha_gdbarch_init): Update.
11186 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11187 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11188 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11189 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11190 push_dummy_frame to generic_push_dummy_frame.
11191 * v850-tdep.c (v850_gdbarch_init): Ditto.
11192 * sh-tdep.c (sh_gdbarch_init): Ditto.
11193 * s390-tdep.c (s390_gdbarch_init): Ditto.
11194 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11195 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11196 * mips-tdep.c (mips_gdbarch_init): Ditto.
11197 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11198 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11199 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11200 * i386-tdep.c (i386_gdbarch_init): Ditto.
11201 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11202 * frv-tdep.c (frv_gdbarch_init): Ditto.
11203 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11204 * cris-tdep.c (cris_gdbarch_init): Ditto.
11205 * avr-tdep.c (avr_gdbarch_init): Ditto.
11206 * arm-tdep.c (arm_gdbarch_init): Ditto.
11207
11208 2003-02-26 Kevin Buettner <kevinb@redhat.com>
11209
11210 * mips-tdep.c (show_mips_abi): New function.
11211 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11212 command ``show mips abi''.
11213
11214 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
11215
11216 From Elena Zannoni <ezannoni@redhat.com>
11217 * dbxread.c (process_one_symbol): Only record line 0 if one or
11218 more sline entries have been seen for the function.
11219
11220 2003-02-26 Michael Chastain <mec@shout.net>
11221
11222 * configure: Regenerate with autoconf 000227.
11223
11224 2003-02-26 Michael Chastain <mec@shout.net>
11225
11226 Close PR build/660.
11227 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11228 for old libc5/glibc.
11229 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11230
11231 2003-02-26 Kris Warkentin <kewarken@qnx.com>
11232
11233 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11234 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11235
11236 2003-02-26 Michael Chastain <mec@shout.net>
11237
11238 * configure.in: New variable HAVE_UINTPTR_T.
11239 * configure, config.in: Regenerated.
11240
11241 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
11242
11243 Fix PR build/1097.
11244 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11245
11246 2003-02-25 Andrew Cagney <cagney@redhat.com>
11247
11248 * frame.c (get_prev_frame): Add comment on check for
11249 inside_entry_func. Only check for inside_entry_file when not a
11250 dummy and not a sentinel. Check that the new frame is not inner
11251 to the old frame.
11252
11253 2003-02-25 Andrew Cagney <cagney@redhat.com>
11254
11255 * frame.c (frame_debug): New variable.
11256 (_initialize_frame): Add "set/show debug frame" command.
11257 (get_prev_frame): When frame_debug, print reason why unwind
11258 failed.
11259
11260 2003-02-25 Michael Chastain <mec@shout.net>
11261
11262 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11263 to avoid uintptr_t definition problems.
11264
11265 2003-02-25 David Carlton <carlton@math.stanford.edu>
11266
11267 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11268 (SYMBOL_LINKAGE_NAME): Ditto.
11269 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11270 SYMBOL_LINKAGE_NAME.
11271 (struct general_symbol_info): Expand comment.
11272 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11273 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11274 (SYMBOL_MATCHES_REGEXP): Ditto.
11275 * symtab.c (symbol_natural_name): New function.
11276 * objfiles.h: Replace all uses of SYMBOL_NAME by
11277 DEPRECATED_SYMBOL_NAME.
11278 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11279 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11280 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11281 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11282 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11283 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11284 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11285 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11286 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11287 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11288 * ada-exp.y: Ditto.
11289 * ada-exp.y: Update copyright.
11290 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11291 * cp-valprint.c: Ditto.
11292
11293 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11294
11295 * infptrace.c (detach): Do not flag error if ptrace detach fails
11296 and errno is set to ESRCH.
11297
11298 2003-02-24 Andrew Cagney <cagney@redhat.com>
11299
11300 * infptrace.c (udot_info): Change type of udot_off to long. Use
11301 paddr when printing udot_off's value.
11302
11303 2003-02-24 David Carlton <carlton@math.stanford.edu>
11304
11305 * symtab.c (make_symbol_overload_list): Only read in partial
11306 symtabs containing a matching partial symbol.
11307
11308 2003-02-24 David Carlton <carlton@math.stanford.edu>
11309
11310 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11311 do the comparison, not strcmp.
11312 * symfile.c (compare_psymbols): Ditto.
11313 * defs.h: Declare strcmp_iw_ordered.
11314 * utils.c (strcmp_iw_ordered): New function.
11315
11316 2003-02-24 Jim Blandy <jimb@redhat.com>
11317
11318 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11319 support, shared libs): Remove my name from here, to better reflect
11320 reality.
11321
11322 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11323
11324 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11325 (target_ops): Add to_have_continuable_watchpoint.
11326 * target.c (update_current_target): Add INHERIT line for
11327 to_have_continuable_watchpoint.
11328 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11329 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11330 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11331 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11332
11333 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
11334
11335 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11336 maintainership.
11337
11338 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11339
11340 * solib.c (solib_open): Call target defined search function after
11341 failing with solib-search-path.
11342 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11343 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
11344
11345 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11346
11347 * MAINTAINERS: Add myself to Write After section.
11348
11349 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11350
11351 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11352
11353 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11354
11355 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11356 (m68hc11_add_reggroups): New function.
11357 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11358 (m68hc11_gdbarch_init): Install the reggroups.
11359 (_initialize_m68hc11_tdep): Initialize them.
11360
11361 2003-02-21 James E Wilson <wilson@tuliptree.org>
11362
11363 * MAINTAINERS: Update my email address.
11364
11365 2003-02-21 David Carlton <carlton@math.stanford.edu>
11366
11367 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11368
11369 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
11370
11371 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11372 * symtab.h: Add opaque declarations of struct axs_value and
11373 struct agent_expr.
11374 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11375 (struct location_funcs): New type.
11376 (struct symbol): Add "loc" to aux_value.
11377 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11378 * dwarf2read.c: Include "dwarf2expr.h".
11379 (dwarf2_symbol_mark_computed): New function.
11380 (read_func_scope): Use it.
11381 (var_decode_location): New function.
11382 (new_symbol): Use it.
11383 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11384
11385 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11386 (dwarf2expr_h, dwarf2loc_h): New variables.
11387 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11388 (dwarf2expr.o, dwarf2loc.o): New rules.
11389 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11390 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11391 LOC_COMPUTED_ARG.
11392 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11393 * m2-exp.y (yylex): Likewise.
11394 * printcmd.c (address_info, print_frame_args): Likewise.
11395 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11396 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11397 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11398 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11399 * symtab.c (lookup_block_symbol): Likewise.
11400
11401 2003-02-20 Adam Fedor <fedor@gnu.org>
11402
11403 * symtab.h: Remove objc_specific struct
11404 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11405 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11406 Have language_objc use cplus_specific struct.
11407
11408 2003-02-20 Tom Tromey <tromey@redhat.com>
11409
11410 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11411 TYPE_NAME, when printing a String value. PR java/1075.
11412
11413 2003-02-20 Adam Fedor <fedor@gnu.org>
11414
11415 * objc-lang.h (find_methods): Remove declaration.
11416 * objc-lang.c (find_methods): Make static.
11417
11418 2003-02-20 Christopher Faylor <cgf@redhat.com>
11419
11420 * win32-nat.c (get_image_name): Check return value from
11421 ReadProcessMemory.
11422 (child_xfer_memory): Ditto.
11423
11424 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
11425
11426 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11427 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11428 '${exec_prefix}' (in addition to the expansion thereof) as
11429 relocatable.
11430 * configure: Rebuilt.
11431
11432 2003-02-20 David Carlton <carlton@math.stanford.edu>
11433
11434 * symtab.c (search_symbols): Revert the search_symbols part of my
11435 2002-12-23 patch. Add comment.
11436
11437 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11438
11439 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11440 * dbxread.c (elfstab_build_psymtabs): Don't call
11441 install_minimal_symbols.
11442 (stabsect_build_psymtabs): Likewise.
11443 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11444 earlier.
11445 * somread.c (som_symfile_read): Call install_minimal_symbols
11446 and do_cleanups earlier.
11447 * nlmread.c (nlm_symfile_read): Likewise.
11448 * mdebugread.c (elfmdebug_build_psymtabs): Call
11449 install_minimal_symbols and make appropriate cleanups.
11450
11451 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11452
11453 * solib.c (reload_shared_libraries): New function.
11454 (_initialize_solib): Add callbacks for ``set solib-search-path''
11455 and ``set solib-absolute-prefix''.
11456
11457 2003-02-20 David Carlton <carlton@math.stanford.edu>
11458
11459 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11460 expand comment.
11461 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11462 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11463 * ada-typeprint.c (ada_typedef_print): Ditto.
11464 * ax-gdb.c (gen_var_ref): Ditto.
11465 * breakpoint.c (print_one_breakpoint): Ditto.
11466 * buildsym.c (finish_block): Ditto.
11467 * c-valprint.c (c_val_print): Ditto.
11468 * expprint.c (print_subexp): Ditto.
11469 * findvar.c (locate_var_value): Ditto.
11470 * infcmd.c (jump_command): Ditto.
11471 * linespec.c (decode_line_2, decode_compound): Ditto.
11472 * maint.c (maintenance_translate_address): Ditto.
11473 * objc-lang.c (compare_selectors, compare_classes): Ditto.
11474 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11475 Ditto.
11476 * p-valprint.c (pascal_val_print): Ditto.
11477 * stabsread.c (define_symbol): Ditto.
11478 * stack.c (print_frame, frame_info, print_block_frame_locals)
11479 (print_frame_arg_vars, return_command): Ditto.
11480 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11481 * symmisc.c (print_symbol): Ditto.
11482 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11483 (compare_search_syms, print_symbol_info, print_msymbol_info)
11484 (rbreak_command): Ditto.
11485 * tracepoint.c (tracepoints_info): Ditto.
11486 * typeprint.c (typedef_print): Ditto.
11487 * valops.c (value_of_variable, hand_function_call): Ditto.
11488 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11489 * ada-typeprint.c: Update Copyright.
11490 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11491 * tracepoint.c, cli/cli-cmds.c: Ditto.
11492
11493 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11494
11495 * frame.c (generic_unwind_get_saved_register): Make non-static.
11496 * frame.h (generic_unwind_get_saved_register): Declare.
11497 * mips-tdep.c (read_next_frame_reg): Fetch register from
11498 current regcache when frame is NULL.
11499 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11500 that must be NULL.
11501 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11502 instead of frame_register_unwind().
11503
11504 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11505
11506 * remote-sim.c (gdbsim_insert_breakpoint)
11507 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11508 code.
11509
11510 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11511
11512 * remote.c (_initialize_remote): Add commands "set/show remote
11513 hardware-watchpoint-limit" and "set/show remote
11514 hardware-breakpoint-limit".
11515 (remote_hw_watchpoint_limit): Initialize to -1.
11516 (remote_hw_breakpoint_limit): Ditto.
11517 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11518
11519 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11520
11521 * coff-pe-read.c: New file - support reading of minimal symbols from a
11522 portable executable using the export table.
11523 * coff-pe-read.h: New file.
11524 * coffread.c: Include coff-pe-read.h.
11525 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11526 debugging symbols found.
11527 * Makefile.in (SFILES): Add coff-pe-read.o.
11528 (coff_pe_read_h): Define.
11529 (COMMON_OBS): Add coff-pe-read.o.
11530 (coffread.o): Add coff_pe_read_h dependency.
11531 (coff-pe-read.o): New target.
11532
11533 2003-02-19 David Carlton <carlton@math.stanford.edu>
11534
11535 * Makefile.in (SFILES): Add block.c.
11536 (block_h): New.
11537 (COMMON_OBS): Add block.o.
11538 (block.o): New.
11539 (x86-64-tdep.o): Add $(block_h).
11540 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11541 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11542 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11543 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11544 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11545 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11546 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11547 * value.h: Add opaque declaration for struct block.
11548 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11549 * ada-lang.h: Ditto.
11550 * x86-64-tdep.c: #include "block.h"
11551 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11552 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11553 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11554 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11555 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11556 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11557 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11558 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11559 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11560 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11561 * symtab.c (block_function): Ditto.
11562 (contained_in): Ditto.
11563 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11564 block.h. Add opaque declaration for struct block.
11565 * symtab.h: Move block_function and contained_in declarations to
11566 block.h. Add opaque declarations for struct block, struct
11567 blockvector.
11568 (struct block): Move to block.h.
11569 (struct blockvector): Ditto.
11570 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11571 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11572 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11573 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11574 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11575 Ditto.
11576 * block.c: New file.
11577 * block.h: New file.
11578
11579 2003-02-19 Theodore A. Roth <troth@openavr.org>
11580
11581 * avr-tdep.c (avr_extract_return_value): Remove function.
11582 (avr_store_return_value): Remove function.
11583 (avr_extract_struct_value_address): Remove function.
11584 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11585
11586 2003-02-19 Andrew Cagney <ac131313@redhat.com>
11587
11588 * rs6000-tdep.c: Include "gdb_assert.h".
11589 (registers_e500): Add "acc" and "spefscr".
11590 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11591 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11592 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11593 really is "r0".
11594 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11595
11596 2003-02-18 Keith Seitz <keiths@redhat.com>
11597
11598 * Makefile.in: Add gdbtk-interps.c.
11599
11600 2003-02-18 Kevin Buettner <kevinb@redhat.com>
11601
11602 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11603 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11604
11605 2003-02-18 Andrew Cagney <cagney@redhat.com>
11606
11607 * symtab.h (struct objfile): Add opaque declaration.
11608
11609 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
11610
11611 From Jim Ingham <jingham@apple.com>:
11612 * dbxread.c (process_one_symbol): Use last_function_start rather
11613 than function_start_offset to find the real beginning of the
11614 current function. The latter is just the text section offset on
11615 some systems, the former is always the real function start.
11616
11617 2003-02-17 Andrew Cagney <cagney@redhat.com>
11618
11619 * configure.in: Revert ${target} != ${host}.
11620
11621 2003-02-17 Andrew Cagney <ac131313@redhat.com>
11622
11623 * configure.in (Makefile): Use the test ${target} != ${host},
11624 instead of the absence of the "nm.h" file, to determine of the
11625 configuration non-native.
11626 * configure: Regenerate.
11627
11628 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
11629
11630 From Brian Ford <ford@vss.fsi.com>
11631
11632 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11633 conditionalize tui_active test.
11634 (lookup_cmd_1): Ditto.
11635
11636 2003-02-14 Mark Kettenis <kettenis@gnu.org>
11637
11638 * configure.in: Add check for _etext.
11639 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11640 available.
11641 * config.in, configure: regenerated.
11642
11643 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
11644
11645 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11646
11647 2003-02-14 Andrew Cagney <ac131313@redhat.com>
11648
11649 * main.c (tui_version): Delete variable.
11650 (captured_main): When --tui, set interpreter_p to "tui" instead of
11651 enabling tui_version.
11652 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11653 tui_version.
11654 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11655 * cli/cli-cmds.c (disassemble_command): Ditto.
11656 * defs.h (tui_version): Delete declaration.
11657 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11658 (tui-interp.o): Add rules.
11659 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11660
11661 2003-02-14 Christopher Faylor <cgf@redhat.com>
11662
11663 * win32-nat.c (register_loaded_dll): Correctly set address range for
11664 just-loaded dll.
11665
11666 2003-02-12 Jason Molenda (jmolenda@apple.com)
11667
11668 * symmisc.c (print_objfile_statistics): Include information about
11669 the number of psymtabs and symtabs in each object file.
11670
11671 2003-02-13 Keith R Seitz <keiths@redhat.com>
11672
11673 * main.h (struct captured_main_args): Add interpreter_p.
11674 * main.c (captured_main): Initialize interpreter_p from context.
11675 * gdb.c (main): Set interpreter_p argument.
11676 * Makefile.in (gdb.o): Add dependency for interps.h.
11677
11678 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11679
11680 * event-top.c (cli_command_loop): Delete declaration.
11681 (_initialize_event_loop): Delete function setting event_loop_hook.
11682 * event-top.h (cli_command_loop): Declare. Update copyright.
11683 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11684 * interps.c (current_interp_command_loop): When event_loop_p, call
11685 cli_command_loop.
11686
11687 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11688
11689 * interps.h (interp_command_loop_ftype): Change return type to
11690 void.
11691
11692 2003-02-12 Michal Ludvig <mludvig@suse.cz>
11693
11694 * x86-64-tdep.c (x86_64_extract_return_value)
11695 (x86_64_store_return_value): Use regcache instead of regbuf.
11696 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11697 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11698
11699 2003-02-11 Andrew Cagney <ac131313@redhat.com>
11700
11701 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11702 * aclocal.m4: Regenerate.
11703 * configure: Regenerate.
11704
11705 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11706 TCL_LD_SEARCH_FLAGS.
11707
11708 2003-02-10 Michal Ludvig <mludvig@suse.cz>
11709
11710 * dwarf2cfi.c: Reindented.
11711
11712 2003-02-09 Andrew Cagney <ac131313@redhat.com>
11713
11714 * interps.c (clear_interpreter_hooks): Convert function definition
11715 to ISO C.
11716
11717 2003-02-07 David Carlton <carlton@math.stanford.edu>
11718
11719 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11720
11721 2003-02-07 Kevin Buettner <kevinb@redhat.com>
11722
11723 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11724 (struct type): ...to here.
11725 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11726 field.
11727 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11728 (replace_type): Set length on all type variants for a given type.
11729
11730 2003-02-07 Andrew Cagney <ac131313@redhat.com>
11731
11732 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11733 <sys/stat.h>.
11734 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11735
11736 2003-02-06 Andrew Cagney <ac131313@redhat.com>
11737
11738 * Makefile.in (symm-nat.o): Update dependencies.
11739 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11740 (lynx-nat.o, ia64-linux-nat.): Ditto.
11741 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11742 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11743 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11744
11745 * Makefile.in (inflow_h): Define.
11746 (procfs.o, inflow.o, procfs.o): Update dependencies.
11747 * inftarg.c (child_stop): Delete extern declaration of
11748 inferior_process_group. Include "inflow.h".
11749 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11750 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11751 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11752 (our_process_group, inferior_process_group): Extern declarations.
11753
11754 * procfs.c: Include "gdb_assert.h".
11755
11756 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11757 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11758 * jv-typeprint.c (java_type_print_base): Ditto.
11759 * typeprint.c (typedef_print): Eliminate STREQ.
11760 * cli/cli-script.c (define_command, define_command): Ditto.
11761 * main.c (captured_main): Ditto.
11762 * values.c (lookup_internalvar): Ditto.
11763 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11764 within `if' conditional.
11765 * linespec.c (decode_line_2): Ditto.
11766 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11767 (bfd_openw_with_cleanup): Ditto.
11768
11769 2003-02-07 Mark Kettenis <kettenis@gnu.org>
11770
11771 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11772 legacy_extract_return_value and store_return_value to
11773 legacy_return_value.
11774
11775 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11776
11777 * win32-nat.c (get_relocated_section_addrs): New function. Find
11778 section load addresses for symbol handling in relocated DLLs.
11779 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11780
11781 2003-02-05 Fred Fish <fnf@intrinsity.com>
11782
11783 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11784 '=' and '!='.
11785 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11786 with '&' and '=='.
11787 (angel_RDI_info): Ditto.
11788 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11789 with '&' and '!='.
11790 (threads_continue_all_with_signals): Ditto.
11791
11792 2003-02-05 Jim Ingham <jingham@apple.com>
11793 Keith Seitz <keiths@redhat.com>
11794 Elena Zannoni <ezannoni@redhat.com>
11795 Andrew Cagney <ac131313@redhat.com>
11796
11797 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11798 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11799 (SUBDIR_MI_OBS): Add "mi-interp.o".
11800 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11801 (SFILES): Add "interps.c".
11802 (COMMON_OBS): Add "interps.o".
11803 (interps_h, mi_main_h): Define.
11804 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11805 (mi-main.o, main.o, event-top.o): Update dependencies.
11806 * cli/cli-interp.c: New file.
11807 * interps.h, interps.c: New files.
11808 * top.c: (gdb_init): Don't install the default interpreter, handed
11809 by captured_main.
11810 * main.c: Include "interps.h".
11811 (interpreter_p): Note that it should malloc'ed.
11812 (captured_command_loop): Call current_interp_command_loop.
11813 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11814 xfree and xstrdup when updating interpreter_p. Install the
11815 default interpreter. Add hack to stop mi1's copyright notice
11816 being encoded.
11817 * event-top.h (gdb_setup_readline): Declare.
11818 (gdb_disable_readline): Declare.
11819 * event-top.c: Include "interps.h".
11820 (display_gdb_prompt): Call current_interp_display_prompt_p.
11821 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11822 gdb_stdlog, and gdb_stdtarg.
11823 (_initialize_event_loop): Don't call gdb_setup_readline.
11824 * cli-out.c (cli_out_set_stream): New function.
11825 * cli-out.h (cli_out_set_stream): Declare.
11826
11827 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11828
11829 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11830 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11831 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11832 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11833 config/i386/i386v42mp.mt: Removed.
11834
11835 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11836
11837 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11838 GDB_OSABI_SOLARIS.
11839
11840 2003-02-05 Michael Chastain <mec@shout.net>
11841
11842 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11843 2.12.1 and earlier versions.
11844
11845 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11846
11847 Remove orphaned hosts, targets and files.
11848 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11849 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11850 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11851 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11852 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11853 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11854 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11855 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11856 * config/sparc/tm-sp64sim.h: Delete.
11857 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11858 hosts.
11859 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11860 mips*-dec-mach3* targets.
11861
11862 2003-02-04 Michael Chastain <mec@shout.net>
11863
11864 * NEWS: Fix typo: sepcifying -> specifying.
11865
11866 2003-02-04 Michael Chastain <mec@shout.net>
11867
11868 * dwarfread.c: Add documentation on the state of dwarf-1,
11869 looking towards obsoletion.
11870
11871 2003-02-03 Michael Chastain <mec@shout.net>
11872
11873 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11874 gdb/testsuite/gdb.c++/pr-1023.exp.
11875
11876 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11877
11878 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11879 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11880
11881 * utils.c (init_page_info): Delete reference to MPW in comments.
11882 * main.c (captured_main): Delete #ifdef MPW.
11883
11884 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11885
11886 * NEWS: Note that the m32r-*-elf* is obsolete.
11887 * monitor.c (monitor_expect): Obsolete reference to m32r.
11888 * configure.tgt: Mark m32r-*-elf* as obsolete.
11889 * MAINTAINERS: Mark m32k as obsolete.
11890 * m32r-rom.c: Obsolete file.
11891 * config/m32r/m32r.mt: Obsolete file.
11892 * config/m32r/tm-m32r.h: Obsolete file.
11893 * m32r-stub.c: Obsolete file.
11894 * m32r-tdep.c: Obsolete file.
11895
11896 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11897
11898 * NEWS: Mention that the z8k-zilog-none is obsolete.
11899 * MAINTAINERS: Mark z8k as obsolete.
11900 * configure.tgt: Obsolete the z8k-*-coff* target.
11901 * config/z8k/z8k.mt: Obsolete file.
11902 * config/z8k/tm-z8k.h: Obsolete file.
11903 * z8k-tdep.c: Obsolete file.
11904
11905 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11906
11907 * NEWS: Mention that the mn10200-elf is obsolete.
11908 * configure.tgt: Obsolete mn10200-*-* target.
11909 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11910 mention that the mn10200 is obsolete.
11911 * breakpoint.h: Ditto.
11912 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11913 * config/mn10200/mn10200.mt: Obsolete file.
11914 * config/mn10200/tm-mn10200.h: Obsolete file.
11915 * mn10200-tdep.c: Obsolete file.
11916
11917 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11918
11919 * MAINTAINERS: Mark h8500 as obsolete.
11920 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11921 * findvar.c (value_from_register): Ditto.
11922 * h8500-tdep.c: Mark file as obsolete.
11923 * config/h8500/h8500.mt: Ditto.
11924 * config/h8500/tm-h8500.h: Ditto.
11925 * NEWS: Mention that h8500 is obsolete.
11926
11927 2003-02-04 David Carlton <carlton@math.stanford.edu>
11928
11929 * objfiles.c (allocate_objfile): Always set name. Add comment at
11930 start of function.
11931 * jv-lang.c (get_dynamics_objfile): Add comment.
11932
11933 2003-02-04 David Carlton <carlton@math.stanford.edu>
11934
11935 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11936 * printcmd.c (build_address_symbolic): Replace uses of
11937 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11938 SYMBOL_NAME, and asm_demangle.
11939 Update copyright.
11940
11941 2003-02-04 David Carlton <carlton@math.stanford.edu>
11942
11943 * linespec.c (decode_compound): Extract code into
11944 lookup_prefix_sym.
11945 (lookup_prefix_sym): New function.
11946
11947 2003-02-04 David Carlton <carlton@math.stanford.edu>
11948
11949 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11950 FLOAT_COERCION_BADNESS.
11951 * gdbtypes.c (rank_one_type): Replace all uses of
11952 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11953
11954 2003-02-04 Jim Blandy <jimb@redhat.com>
11955
11956 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11957 section, let dwarf_macinfo_section point to it, not
11958 dwarf_loc_section.
11959
11960 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11961
11962 Pointed out by Anton Blanchard <anton@samba.org>.
11963 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11964 (ppc_linux_at_sigtramp_return_path): Use it.
11965
11966 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11967
11968 * defs.h (streq): Add prototype.
11969 * utils.c (streq): New function.
11970
11971 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11972 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11973 * mdebugread.c (new_symbol): Likewise.
11974 * stabsread.c (define_symbol): Likewise.
11975 * coffread.c (process_coff_symbol): Likewise.
11976 * dwarfread.c (new_symbol): Likewise.
11977
11978 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11979 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11980 here.
11981 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11982 SYMBOL_INIT_DEMANGLED_NAME.
11983 * objfiles.c: Include "hashtab.h".
11984 (allocate_objfile): Call htab_set_functions_ex for the
11985 demangled_names_hash.
11986 (free_objfile): Call htab_delete for the demangled_names_hash.
11987 * objfiles.h (struct htab): Add declaration.
11988 (struct objfile): Add demangled_names_hash.
11989 * symfile.c: Include "hashtab.h".
11990 (reread_symbols): Call htab_delete for the demangled_names_hash.
11991 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11992 SYMBOL_NAME in the bcache.
11993 * symtab.c: Include "hashtab.h". Update comments.
11994 (create_demangled_names_hash, symbol_set_names): New functions.
11995 (symbol_find_demangled_name): New function, broken out from
11996 symbol_init_demangled_names.
11997 (symbol_init_demangled_names): Use it.
11998 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11999 (SYMBOL_SET_NAMES): New macro.
12000 (symbol_set_names): Add prototype.
12001
12002 2003-02-03 Jim Blandy <jimb@redhat.com>
12003
12004 Use a single, consistent representation for an empty minimal
12005 symbol table in an objfile.
12006 * objfiles.c (terminate_minimal_symbol_table): New function.
12007 (allocate_objfile): Call it.
12008 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12009 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
12010 non-NULL.
12011 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12012 objfile has minimal symbols, compare minimal_symbol_count to zero,
12013 instead of comparing msymbols with NULL.
12014 * objfiles.c (have_minimal_symbols): Same.
12015 * solib-sunos.c (solib_add_common_symbols): Call
12016 terminate_minimal_symbol_table.
12017 * symfile.c (reread_symbols): Same.
12018
12019 2003-02-03 Kevin Buettner <kevinb@redhat.com>
12020
12021 * s390-tdep.c (s390_address_class_type_flags)
12022 (s390_address_class_type_flags_to_name)
12023 (s390_address_class_name_to_type_flags): New functions.
12024 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12025 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12026
12027 2003-02-03 Michael Snyder <msnyder@redhat.com>
12028
12029 * arm-tdep.c: Fix spell-o in comment.
12030
12031 2003-02-03 Michal Ludvig <mludvig@suse.cz>
12032
12033 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12034 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
12035 error messages to contain BFD filename.
12036
12037 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
12038
12039 Fix PR gdb/742 gdb/743 gdb/877
12040 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12041 (do_mixed_source_and_assembly): Use
12042 make_cleanup_ui_out_tuple_begin_end and
12043 make_cleanup_ui_out_tuple_begin_end.
12044 (do_mixed_source_and_assembly): Ditto.
12045 * thread.c (do_captured_list_thread_ids): Ditto.
12046 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12047 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12048 ui_out_tuple_end): Delete prototypes.
12049 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12050 ui_out_list_end, ui_out_tuple_end): Delete.
12051
12052 From Kevin Buettner <kevinb@redhat.com>:
12053 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
12054 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12055 (do_cleanup_table_end): New functions.
12056 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12057 Use cleanups to invoke_ui_out_tuple_end().
12058 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
12059 * cli/cli-setshow.c (cmd_show_list): Use
12060 make_cleanup_ui_out_tuple_begin_end.
12061
12062 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12063
12064 * frame.c (frame_unwind_register): New function.
12065 (frame_unwind_unsigned_register): Use.
12066 (frame_unwind_signed_register): Use.
12067 (frame_read_register): New function.
12068 * frame.h (frame_unwind_register): Declare.
12069 (frame_read_register): Declare.
12070
12071 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12072 and frame_unwind_register instead of read_memory, write_register
12073 and deprecated_write_register_bytes.
12074
12075 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12076
12077 * frame.h: Note that namelen can be negative.
12078 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12079 NAME's length.
12080
12081 * NEWS: Mention that the d10v's `regs' command is deprecated.
12082 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12083 (d10v_print_registers_info): New function.
12084 (show_regs): Call d10v_print_registers_info.
12085 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12086
12087 2003-02-02 Mark Kettenis <kettenis@gnu.org>
12088
12089 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12090 lost in the previous patch.
12091
12092 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12093
12094 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
12095 * stack.c (print_frame_info_base): Output complete FRAME tuple
12096 for synthesized frames.
12097
12098 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12099
12100 * mips-nat.c (zerobuf): Delete.
12101 (fetch_inferior_registers): Alloc local zerobuf.
12102 (fetch_core_registers): Alloc local zerobuf.
12103 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12104 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12105 * thread-db.c (thread_db_store_registers): Ditto.
12106 * sh-tdep.c (sh_do_register): Ditto.
12107 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12108 * remote-sim.c (gdbsim_store_register): Ditto.
12109 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12110 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12111 * monitor.c (monitor_supply_register): Ditto.
12112 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12113 * mips-nat.c (fetch_inferior_registers): Ditto.
12114 * m68klinux-nat.c (fetch_register): Ditto.
12115 * lynx-nat.c (fetch_inferior_registers): Ditto.
12116 (fetch_inferior_registers): Ditto.
12117 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12118 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12119 (hpux_thread_store_registers): Ditto.
12120 * hppah-nat.c (fetch_register): Ditto.
12121 * hppab-nat.c (fetch_register): Ditto.
12122 * hppa-tdep.c (pa_register_look_aside): Ditto.
12123 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12124 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12125
12126 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12127
12128 * gdbarch.sh: Explictly specify all method levels. When a
12129 variable with an empty level, provide a non-multi-arch default.
12130 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12131 * gdbarch.h: Re-generate.
12132 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12133 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12134
12135 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12136
12137 * defs.h (host_pointer_to_address): Delete declaration.
12138 (address_to_host_pointer): Delete declaration.
12139 * utils.c (host_pointer_to_address): Delete function.
12140 (address_to_host_pointer): Delete function.
12141 * procfs.c (procfs_address_to_host_pointer): New function.
12142 * procfs.c (proc_set_watchpoint): Use.
12143 (procfs_can_use_hw_breakpoint): Update comments.
12144 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12145 (som_solib_add): Use.
12146 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12147 * hppa-tdep.c (unwind_command): Use.
12148
12149 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12150
12151 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12152 strlen d_name.
12153
12154 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12155 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12156 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12157 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12158 (define_symbol): Update.
12159 * symfile.c (generic_load): Remove references to nindy.
12160 * symtab.c: Remove references to nindy.
12161
12162 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12163
12164 * infcmd.c (print_float_info): Delete code conditional on
12165 FLOAT_INFO.
12166 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12167 * config/m68k/nm-apollo68b.h: Ditto.
12168 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12169 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12170 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12171
12172 2003-02-01 Mark Kettenis <kettenis@gnu.org>
12173
12174 * config/i386/tm-i386os9k.h: Removed.
12175
12176 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12177 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12178 they're identical to i[3456]86-*-sysv* now.
12179 * config/i386/i386v32.mh: Removed.
12180 * config/i386/xm-i386v32.h: Removed.
12181 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12182
12183 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12184
12185 * config/i386/i386dgux.mh: Removed.
12186 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12187
12188 * configure.in: Fix typo.
12189 * configure: Regenerated.
12190
12191 2003-01-31 David Carlton <carlton@math.stanford.edu>
12192
12193 * dwarf2read.c (dwarf2_locate_sections): Set
12194 dwarf_ranges_section.
12195
12196 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12197
12198 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12199 * utils.c: Update comments documenting legitimate uses of PTR.
12200
12201 * utils.c: Re-indent.
12202
12203 * config/djgpp/fnchange.lst: Delete nindy files.
12204 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12205 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12206 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12207 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12208 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12209 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12210 * Makefile.in (init.c): Remove nindy references.
12211 (saber_gdb): Delete rule.
12212 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12213 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12214 and a68v-nat.c.
12215 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12216 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12217 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12218 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12219 nindy-share/stop.h.
12220 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12221 * saber.suppress: Delete file.
12222
12223 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
12224
12225 * dbxread.c (stabs_data): New static variable.
12226 (fill_symbuf): Support an in-memory buffer for stabs data.
12227 (stabs_seek): New function.
12228 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12229 (read_ofile_symtab): Use stabs_seek.
12230 (elfstab_build_psymtabs): Take an asection* instead of
12231 an offset and size. Relocate the stabs data if necessary.
12232 Save the section* for dbx_psymtab_to_symtab.
12233 * dwarf2read.c: Add section variables for each debug section.
12234 (dwarf2_locate_sections): Fill them in.
12235 (dwarf2_read_section): Take an asection* argument.
12236 Relocate the section contents if necessary.
12237 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12238 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12239 it to dwarf2_read_section.
12240 (dwarf2_build_frame_info): Update callers.
12241 * elfread.c (elf_symfile_read): Update call to
12242 elfstab_build_psymtabs.
12243 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12244 (DBX_STAB_SECTION): New macro.
12245 * stabsread.h (elfstab_build_psymtabs): Update prototype.
12246 * symfile.c (symfile_dummy_outputs): New function.
12247 (symfile_relocate_debug_section): New function.
12248 * symfile.h (symfile_relocate_debug_section): Add prototype.
12249
12250 2003-01-31 Richard Henderson <rth@redhat.com>
12251
12252 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12253 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12254 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12255 * alpha-tdep.c (alpha_register_name): Add "unique".
12256 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12257 (ALPHA_UNIQUE_REGNUM): New.
12258 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12259
12260 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12261
12262 * README: Remove reference to Ericsson 1800 monitor.
12263 * Makefile.in (remote-es.o): Delete rule.
12264 (ALLDEPFILES): Delete remote-es.c.
12265 * remote-es.c: Delete file.
12266 * config/m68k/es1800.mt: Delete file.
12267 * config/djgpp/fnchange.lst: Update.
12268 * configure.tgt: Delete m68*-ericsson-* target.
12269
12270 2003-01-31 Adam Fedor <fedor@gnu.org>
12271
12272 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12273 Remove duplicate/shadowing variable of same name.
12274
12275 2003-01-30 Jim Blandy <jimb@redhat.com>
12276
12277 * symfile.c (find_separate_debug_file): Assert that the objfile's
12278 directory name we compute ends with a slash, and then assume that
12279 that's so everywhere we use it.
12280
12281 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
12282
12283 * valops.c (value_assign): Flush frame cache after stores to memory
12284 also.
12285
12286 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12287
12288 * Makefile.in (mon960-rom.o): Delete rule.
12289 * mon960-rom.c: Delete file.
12290
12291 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12292
12293 * d10v-tdep.c: Include "frame-unwind.h".
12294 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12295 list.
12296 (next_addr, uses_frame): Delete.
12297 (struct d10v_unwind_cache): Define.
12298 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12299 Use info instead of next_addr and uses_frame globals.
12300 (d10v_frame_init_saved_regs): Delete function.
12301 (d10v_init_extra_frame_info): Delete function.
12302 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12303 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12304 init_frame_pc or frame_saved_pc.
12305 (d10v_pop_frame): Delete function.
12306 (do_d10v_pop_frame): Delete function.
12307 (d10v_frame_chain): Delete function.
12308 (d10v_frame_chain_valid): Delete function.
12309 (d10v_frame_pc_unwind): New function.
12310 (d10v_frame_id_unwind): New function.
12311 (saved_regs_unwinder): New function.
12312 (d10v_frame_register_unwind): New function.
12313 (d10v_frame_pop): New function.
12314 (d10v_frame_unwind): New variable.
12315 (d10v_frame_p): New function.
12316 (d10v_frame_saved_pc): Delete function.
12317 * Makefile.in (d10v-tdep.o): Update dependencies.
12318
12319 2003-01-30 J. Brobecker <brobecker@gnat.com>
12320
12321 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12322 causing some regressions due to a change in the default value
12323 for this macro.
12324
12325 2003-01-29 Richard Henderson <rth@redhat.com>
12326 Elena Zannoni <ezannoni@redhat.com>
12327 Daniel Jacobowitz <drow@mvista.com>
12328
12329 Fix PR gdb/961.
12330 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
12331 variables.
12332 (RANGES_SECTION): New.
12333 (dwarf_ranges_buffer): New variable.
12334 (struct comp_unit_head): Add member "die".
12335 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12336 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12337 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12338 (dwarf2_locate_sections): Likewise.
12339 (dwarf2_build_psymtabs): Read .debug_ranges.
12340 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12341 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12342 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12343 Look for DW_AT_ranges and return the bounding box.
12344
12345 2003-01-29 Brian Ford <ford@vss.fsi.com>
12346
12347 * win32-nat.c (cygwin_pid): Removed as unused.
12348 (child_attach): Try fall back to Cygwin pid.
12349
12350 2003-01-29 Jim Blandy <jimb@redhat.com>
12351
12352 * objfiles.h (struct objfile): Doc fix.
12353
12354 2003-01-29 Andrew Cagney <ac131313@redhat.com>
12355
12356 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12357 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12358 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12359 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12360 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12361 (FRAME_SAVED_PC): Change to a function with predicate.
12362 * gdbarch.h, gdbarch.c: Re-generate.
12363
12364 2003-01-28 Andrew Cagney <ac131313@redhat.com>
12365
12366 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12367
12368 * complaints.c (complain): Delete function.
12369 * complaints.h (struct deprecated_complaint): Delete definition.
12370 (complain): Delete declaration.
12371
12372 2003-01-28 Kevin Buettner <kevinb@redhat.com>
12373
12374 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12375 dummy frames.
12376
12377 2003-01-27 Andrew Cagney <ac131313@redhat.com>
12378
12379 * sentinel-frame.h, sentinel-frame.c: New files.
12380 * Makefile.in (frame.o): Update dependencies.
12381 (SFILES): Add sentinel-frame.c.
12382 (sentinel_frame_h): Define.
12383 (COMMON_OBS): Add sentinel-frame.o.
12384 (sentinel-frame.o): Specify dependencies.
12385 * frame.c: Include "sentinel-frame.h".
12386 (frame_register_unwind): Rewrite assuming that there is always a a
12387 ->next frame.
12388 (frame_register, generic_unwind_get_saved_register): Ditto.
12389 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12390 (create_sentinel_frame, unwind_to_current_frame): New functions.
12391 (get_current_frame): Rewrite using create_sentinel_frame and
12392 unwind_to_current_frame. When possible, always create a frame.
12393 (create_new_frame): Set next to the sentinel frame.
12394 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12395 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12396 ID cache when necessary.
12397 (frame_saved_regs_id_unwind): Use frame_relative_level.
12398 (deprecated_generic_get_saved_register): Use frame_relative_level,
12399 get_frame_saved_regs, get_frame_pc, get_frame_base and
12400 get_next_frame.
12401 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12402 frame_register.
12403
12404 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12405
12406 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12407
12408 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12409
12410 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12411 (maintenance_set_profile_cmd): Use error () instead of warning ().
12412
12413 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12414
12415 * configure.in: Check that -pg works if using --enable-profiling.
12416 Check for monstartup and _mcleanup regardless of --enable-profiling.
12417 * maint.c: Check for monstartup and _mcleanup before using them.
12418 * config.in: Regenerated.
12419 * configure: Regenerated.
12420
12421 2003-01-24 Nick Clifton <nickc@redhat.com>
12422
12423 * Add sh2e support:
12424
12425 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12426
12427 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12428 (sh2e_show_regs): New.
12429 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12430 * config/sh/tm-sh.h: Added sh2e to comments.
12431
12432 2003-01-23 Jim Blandy <jimb@redhat.com>
12433
12434 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12435 symbols found)" message here; we haven't checked for a separate
12436 debug info file yet, so we don't know yet.
12437 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12438 we've looked everywhere. Also, there's no need to print a special
12439 message when we're loading the separate debug info file: the one
12440 symbol_file_add prints is fine.
12441
12442 2003-01-23 Alexander Larsson <alexl@redhat.com>
12443 Jim Blandy <jimb@redhat.com>
12444
12445 Add support for executables whose debug info has been separated
12446 out into a separate file, leaving only a link behind.
12447 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12448 and separate_debug_objfile_backlink.
12449 (put_objfile_before): New declaration.
12450 * symfile.c: #include "filenames.h".
12451 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12452 debug info in a separate file, read that, too. Save the addrs
12453 argument, so we can use it again to read the separated debug info;
12454 syms_from_objfile modifies the table we pass it.
12455 (reread_symbols): After re-reading an objfile, call
12456 reread_separate_symbols to refresh its separate debug info
12457 objfile, if it has one.
12458 (reread_separate_symbols, find_separate_debug_file,
12459 get_debug_link_info, separate_debug_file_exists): New functions.
12460 (debug_file_directory): New global var.
12461 (_initialize_symfile): Initialize debug_file_directory, and
12462 provide the new `set debug-file-directory' command to let the user
12463 change it.
12464 * objfiles.c (free_objfile): If this objfile has its debug info in
12465 a separate objfile, free that one too. If this is itself a
12466 separate debug info objfile, clear our parent's backlink.
12467 (put_objfile_before): New function.
12468 * utils.c (gnu_debuglink_crc32): New function.
12469 * defs.h (gnu_debuglink_crc32): New declaration.
12470 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12471 * configure.in: Handle --with-separate-debug-dir config option.
12472 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12473 * acconfig.h (DEBUGDIR): New macro.
12474 * configure, aclocal.m4, config.in: Regenerated.
12475
12476 2003-01-22 Jim Blandy <jimb@redhat.com>
12477
12478 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12479 like the old symbol_file_add, but taking new arguments: you can
12480 now pass in either a `struct section_addr_info' list to say where
12481 each section is loaded, or a `struct section_offsets' table. Pass
12482 these new arguments through to syms_from_objfile as appropriate.
12483 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
12484 with the appropriate quiescent values for the new arguments.
12485
12486 * symfile.c: #include "gdb_assert.h".
12487 (syms_from_objfile): Add the ability to pass in a section offset
12488 table directly, as an alternative to the section_addr_info table.
12489 Document arguments better.
12490 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12491 * symfile.h (syms_from_objfile): Update declaration.
12492 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12493 syms_from_objfile.
12494 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12495
12496 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
12497
12498 Original patch by Tom Tromey <tromey@cygnus.com> and
12499 Jason Molenda <jmolenda@apple.com>.
12500 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12501 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12502 * NEWS: Mention profiling.
12503 * configure.in (--enable-gdbtk): Fix typo.
12504 (--enable-profiling): New. Set PROFILE_CFLAGS.
12505 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12506 Fill in function.
12507 (profiling_state): New variable.
12508 (mcleanup_wrapper): New function.
12509 (_initialize_maint): Remove NOTYET, fix call to
12510 add_setshow_boolean_cmd for "maint set profile".
12511 * configure: Regenerated.
12512
12513 2003-01-21 Martin M. Hunt <hunt@redhat.com>
12514
12515 * Makefile.in (install-gdbtk): Install PNG images too.
12516
12517 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12518
12519 * exec.c (text_start): Delete global variable.
12520 (exec_file_attach): Make text_start local to the function.
12521 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12522 * valops.c (hand_function_call): Delete code that handles
12523 BEFORE_TEXT_END and AFTER_TEXT_END.
12524 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12525 of CALL_DUMMY_LOCATION.
12526 * gdbarch.c: Regenerate.
12527 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12528 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12529 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12530 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12531 (text_end): Delete extern declaration.
12532
12533 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12534
12535 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12536 * blockframe.c (backtrace_below_main): Move to "frame.c".
12537 (frame_chain_valid): Delete check for backtrace_below_main.
12538 (_initialize_blockframe): Delete initialization, move ``set
12539 backtrace-below-main'' command to "frame.c".
12540 (do_flush_frames_sfunc): Delete function.
12541 * frame.c: Include "command.h" and "gdbcmd.h".
12542 (frame_type_from_pc): New function.
12543 (create_new_frame): Use frame_type_from_pc.
12544 (legacy_get_prev_frame): New function.
12545 (get_prev_frame): Rewrite. When an old style frame, call
12546 legacy_get_prev_frame. Otherwize, unwind the PC first.
12547 (_initialize_frame): Add ``set backtrace-below-main'' command.
12548 * Makefile.in (frame.o): Update dependencies.
12549
12550 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12551
12552 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12553 DEPRECATED_REGISTERS_INFO.
12554
12555 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12556
12557 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12558 Maintainers'. Update `Various Maintainers'.
12559
12560 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12561
12562 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12563 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12564 Suppress actual parameters when `-'.
12565 * gdbarch.h, gdbarch.c: Regenerate.
12566
12567 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12568
12569 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12570 code handling dummy frames.
12571
12572 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12573
12574 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12575 (struct frame_unwind): Add field pop.
12576 * frame.h (frame_pop): Declare.
12577 * frame.c (frame_saved_regs_pop): New function.
12578 (trad_frame_unwinder): Add frame_saved_regs_pop.
12579 (frame_pop): New function.
12580 * dummy-frame.c (dummy_frame_pop): New function.
12581 (discard_innermost_dummy): New function.
12582 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12583 (dummy_frame_unwind): Add dummy_frame_pop.
12584 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12585 * valops.c (hand_function_call): Ditto.
12586 * stack.c (return_command): Ditto.
12587
12588 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12589
12590 * cris-tdep.c: Fix function declaration indentation.
12591 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12592 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12593 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12594 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12595 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12596 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12597
12598 2003-01-18 Michael Chastain <mec@shout.net>
12599
12600 * README (Unpacking and Installation -- quick overview):
12601 Warn against ".../gdb-5.3/gdb/configure".
12602
12603 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12604
12605 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12606 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12607 (struct frame_unwind): Declare opaque.
12608 (dummy_frame_p): Declare function.
12609 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12610 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12611 * dummy-frame.c: Include "frame-unwind.h".
12612 (dummy_frame_p): New function.
12613 (dummy_frame_unwind): New variable.
12614 * frame.c: Include "frame-unwind.h".
12615 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12616 to use the new unwind field.
12617 (set_unwind_by_pc): Delete function.
12618 (create_new_frame, get_prev_frame): Set unwind field using
12619 frame_unwind_find_by_pc.
12620 (trad_frame_unwind, trad_frame_unwinder): New variables.
12621 * frame.h (trad_frame_unwind): Declare variable.
12622 (frame_id_unwind_ftype): Delete declaration.
12623 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12624 (struct frame_unwind): Declare opaque.
12625 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12626 register_unwind with a single unwind pointer.
12627 * frame-unwind.h, frame-unwind.c: New files.
12628 * Makefile.in (SFILES): Add frame-unwind.c.
12629 (frame_unwind_h): Define.
12630 (COMMON_OBS): Add frame-unwind.o.
12631 (frame-unwind.o): Specify dependencies.
12632 (frame.o, dummy-frame.o): Update dependencies.
12633
12634 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12635
12636 * ada-valprint.c: Eliminate PTR.
12637 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12638 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12639 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12640 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12641 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12642 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12643 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
12644
12645 2003-01-17 Andrew Cagney <ac131313@redhat.com>
12646
12647 * main.c (captured_main): Don't use PTR.
12648 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12649 * gdbtypes.c (lookup_primitive_typename): Ditto.
12650 (lookup_struct_elt_type): Ditto.
12651 * f-valprint.c (info_common_command): Ditto.
12652 (list_all_visible_commons): Ditto.
12653 * jv-typeprint.c (java_type_print_base): Ditto.
12654
12655 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12656 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12657 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12658 i386-interix-nat.c and i386-interix-tdep.c. Rename
12659 m68klinux-nat.c and m68klinux-tdep.c. Rename
12660 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12661 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12662 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12663 * main.c (captured_main): Use xfree, not free.
12664
12665 2003-01-16 Andrew Cagney <ac131313@redhat.com>
12666
12667 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12668 ID back using a parameter.
12669 * frame.c (frame_id_unwind): Update call.
12670 (frame_saved_regs_id_unwind): Update.
12671 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12672 * dummy-frame.h (struct frame_id): Add opaque declaration.
12673 (dummy_frame_id_unwind): Update declaration.
12674
12675 2003-01-15 Andrew Cagney <ac131313@redhat.com>
12676
12677 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12678
12679 2003-01-15 Stephen P. Smith <ischis2@cox.net>
12680
12681 * MAINTAINERS (Stephen P. Smith): Updated email address.
12682
12683 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
12684
12685 Fix PR gdb/898
12686 * breakpoint.c (until_break_command): Add new argument. Use it to
12687 decide whether to stop only at the current frame or not.
12688 * breakpoint.h (until_break_command): Update prototype.
12689 * infcmd.c (until_command): Add new argument to until_break_command
12690 call.
12691 (advance_command): New function.
12692 (_initialize_infcmd): Update help string for 'until' command.
12693 Add new 'advance' command.
12694
12695 2003-01-14 David Carlton <carlton@math.stanford.edu>
12696
12697 * linespec.c (decode_line_1): Normalize comments.
12698 (set_flags): Ditto.
12699 (locate_first_half): Ditto.
12700 (decode_compound): Ditto.
12701 (symtab_from_filename): Ditto.
12702 (decode_all_digits): Ditto.
12703 (decode_dollar): Ditto.
12704 (find_methods): Ditto.
12705 (find_toplevel_char): Ditto.
12706
12707 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12708
12709 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12710 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12711 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12712 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12713 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12714 * language.c, language.h, m32r-tdep.c: Update copyright.
12715 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12716 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12717 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12718 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12719 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12720 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12721
12722 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12723
12724 * stabsread.h (process_later, resolve_cfront_continuation):
12725 Obsolete.
12726 Update copyright years.
12727 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12728 Update copyright year.
12729 * dbxread.c(struct cont_elem): Obsolete.
12730 (process_later, process_now): Obsolete functions.
12731 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12732 Update copyright year.
12733 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12734 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12735 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12736 (parse_partial_symbols): Obsolete cfront support.
12737 * stabsread.c
12738 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12739 macros.
12740 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12741 read_cfront_baseclasses, read_cfront_member_functions,
12742 resolve_cfront_continuation,read_cfront_static_fields,
12743 copy_cfront_struct_fields): Obsolete functions.
12744 (define_symbol, read_one_struct_field): Obsolete cfront support.
12745 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12746 Update Copyright year.
12747
12748 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12749
12750 * stack.c (print_frame_info, print_stack_frame_base_stub,
12751 print_stack_frame_base, show_and_print_stack_frame_stub,
12752 show_and_print_stack_frame, print_only_stack_frame_stub,
12753 print_only_stack_frame): Delete functions.
12754 (print_stack_frame_stub): Call print_frame_info instead of
12755 print_frame_info_base.
12756 (print_frame_info_base): Rename to print_frame_info.
12757 (backtrace_command_1): Call print_frame_info, instead of
12758 print_frame_info_base.
12759 (current_frame_command): Call print_stack_frame, instead of
12760 print_only_stack_frame.
12761 (frame_command): Call print_stack_frame, instead of
12762 show_and_print_stack_frame.
12763 (up_command): Ditto.
12764 (down_command): Ditto.
12765 * frame.h (print_only_stack_frame): Delete prototype.
12766 * infrun.c (normal_stop): Call print_stack_frame, instead of
12767 show_and_print_stack_frame.
12768 * thread.c (info_threads_command): Call print_stack_frame, instead
12769 of print_only_stack_frame.
12770
12771 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12772
12773 * README (Graphical interface to GDB): Update URL. Point at
12774 gdb/links/.
12775
12776 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12777 version match.
12778
12779 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12780
12781 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12782 lines.
12783
12784 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12785
12786 * thread-db.c (attach_thread): Prototype.
12787 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12788 thread information (ti), and valid flags (th_valid, ti_valid).
12789 (attach_thread): Move target_pid_to_str call to after the thread
12790 is added to GDB's list. Initialize the cache.
12791 (thread_get_info_callback, thread_db_map_id2thr)
12792 (thread_db_get_info): New functions.
12793 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12794 (thread_db_store_registers, thread_db_thread_alive)
12795 (thread_db_get_thread_local_address): Use them.
12796 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12797 of calling error() for threads in unknown state.
12798
12799 (clear_lwpid_callback): New function.
12800 (thread_db_resume): Use it to clear the cache.
12801
12802 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12803
12804 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12805 (resume_callback): Remove dead code.
12806
12807 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12808
12809 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12810 predicate.
12811 * gdbarch.h, gdbarch.c: Regenerate.
12812 * stack.c (frame_info): Only initialize the saved registers when
12813 FRAME_INIT_SAVED_REGS_P.
12814 * frame.c (frame_saved_regs_register_unwind): Assert
12815 FRAME_INIT_SAVED_REGS_P.
12816 (deprecated_generic_get_saved_register): Ditto.
12817
12818 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12819
12820 * source.c (openp): Squelch warning about "filename".
12821
12822 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12823
12824 * source.c (openp): If the file does not exist don't necessarily
12825 search the path.
12826
12827 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12828
12829 Fix PR gdb/872.
12830 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12831 (integer_types_same_name_p): New function.
12832 (rank_one_type): Use it.
12833 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12834
12835 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12836
12837 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12838 variables.
12839 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12840 * configure.in: Add --with-sysroot.
12841 * configure: Regenerated.
12842 * main.c (gdb_sysroot): New variable.
12843 (captured_main): Initialize gdb_sysroot.
12844 * defs.h (gdb_sysroot): New extern declaration.
12845 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12846
12847 2003-01-12 Michael Chastain <mec@shout.net>
12848
12849 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12850
12851 2003-01-12 Michael Chastain <mec@shout.net>
12852
12853 * top.c (print_gdb_version): Bump copyright year to 2003.
12854
12855 2003-01-12 David Carlton <carlton@bactrian.org>
12856
12857 * linespec.c (symtab_from_filename): Rename variable 's' to
12858 'file_symtab'.
12859
12860 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12861
12862 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12863 dummy frame.
12864 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12865
12866 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12867
12868 * d10v-tdep.c: Include "gdb_assert.h".
12869 (d10v_store_return_value): Rewrite to match current interface.
12870 (d10v_extract_struct_value_address): Ditto.
12871 (d10v_extract_return_value): Ditto.
12872 (d10v_gdbarch_init): Set store_restore_value,
12873 extract_struct_value_address and extract_return_value.
12874
12875 2003-01-12 J. Brobecker <brobecker@gnat.com>
12876
12877 * hpread.c (set_namestring): New procedure replacing the
12878 SET_NAMESTRING macro.
12879 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12880 by calls to set_namestring.
12881
12882 2003-01-11 J. Brobecker <brobecker@gnat.com>
12883
12884 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12885 a compilation warning.
12886 (hpread_process_one_debug_symbol): Likewise.
12887
12888 2003-01-10 David Carlton <carlton@math.stanford.edu>
12889
12890 * linespec.c (decode_line_1): Rename variable 's' to
12891 'file_symtab'.
12892 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12893 (decode_dollar): Ditto.
12894 (decode_variable): Ditto.
12895 (symbol_found): Ditto.
12896
12897 2003-01-09 Michael Chastain <mec@shout.net>
12898
12899 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12900
12901 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
12902
12903 * win32-nat.c (set_process_privilege): New function.
12904 (child_attach): Call set_process_privilege() to enable the
12905 SE_DEBUG_NAME user privilege if available in process token.
12906
12907 2003-01-10 J. Brobecker <brobecker@gnat.com>
12908
12909 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12910 compilation error in the previous revision.
12911
12912 2003-01-09 David Carlton <carlton@math.stanford.edu>
12913
12914 * linespec.c: Update copyright.
12915
12916 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
12917
12918 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12919 than inferior_ptid.
12920 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12921
12922 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12923
12924 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12925 Update comments.
12926 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12927 (frame_saved_regs_zalloc): Update.
12928 (frame_saved_regs_register_unwind): Update.
12929 (create_new_frame): Update.
12930 (get_prev_frame): Update.
12931 (frame_extra_info_zalloc): Update.
12932 (deprecated_get_frame_saved_regs): Update.
12933 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12934 * cris-tdep.c: Update comment.
12935
12936 * somsolib.h: Fix function indentation.
12937 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12938 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12939 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12940 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12941 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12942
12943 * infrun.c (follow_fork): Use ISO C definition.
12944 * expprint.c (print_subexp): Use xfree instead of free.
12945 * charset.c: Include "gdb_string.h" instead of <string.h>.
12946 (register_iconv_charsets): Use ISO C definition.
12947 (host_charset, target_charset): Ditto.
12948 * Makefile.in (charset.o): Update dependencies.
12949 (mi-cmd-env.o): Update dependencies.
12950
12951 2003-01-08 Andrew Cagney <cagney@redhat.com>
12952
12953 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12954 get_frame_base.
12955
12956 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12957
12958 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12959 build directories. Save edited gdb output in Mbuild.log. If a
12960 build fails, remove any final GDB executable.
12961
12962 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12963
12964 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12965 replacing hex constants with function names and stripping leading
12966 file name directory prefixes.
12967
12968 2003-01-08 Andrew Cagney <cagney@redhat.com>
12969
12970 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12971 get_frame_base.
12972
12973 2003-01-08 David Carlton <carlton@math.stanford.edu>
12974
12975 * linespec.c (decode_line_1): Move code into decode_variable.
12976 (decode_variable): New function.
12977
12978 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12979
12980 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12981
12982 2003-01-08 Andrew Cagney <cagney@redhat.com>
12983
12984 * cris-tdep.c (cris_frame_init_saved_regs): Use
12985 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12986 saved_regs buffer.
12987 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12988 (sh64_nofp_frame_init_saved_regs): Ditto.
12989 (sh_fp_frame_init_saved_regs): Ditto.
12990 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12991 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12992 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12993 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12994
12995 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12996
12997 * minsyms.c (lookup_minimal_symbol): Update comment.
12998 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12999 (lookup_minimal_symbol_solib_trampoline): Likewise.
13000
13001 2003-01-08 Andrew Cagney <cagney@redhat.com>
13002
13003 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13004 frame_relative_level.
13005
13006 * alpha-tdep.c: Use get_frame_extra_info.
13007 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13008 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13009 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13010 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13011
13012 * alpha-tdep.c: Use get_next_frame.
13013 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13014 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13015 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13016 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13017 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13018 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13019 * xstormy16-tdep.c: Ditto.
13020
13021 2003-01-07 Andrew Cagney <cagney@redhat.com>
13022
13023 * alpha-tdep.c: Use get_frame_base.
13024 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13025 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13026 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13027 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13028 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13029 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13030 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13031 * config/sparc/tm-sparc.h: Ditto.
13032
13033 2003-01-07 Andrew Cagney <cagney@redhat.com>
13034
13035 * frame.c (deprecated_get_frame_context): New function.
13036 (deprecated_set_frame_context): New function.
13037 * frame.h (deprecated_get_frame_context): Declare.
13038 (deprecated_set_frame_context): Declare.
13039 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13040 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
13041
13042 2003-01-07 Andrew Cagney <cagney@redhat.com>
13043
13044 * frame.c (deprecated_set_frame_next_hack): New function.
13045 (deprecated_set_frame_prev_hack): New function.
13046 * frame.h (deprecated_set_frame_next_hack): Declare.
13047 (deprecated_set_frame_prev_hack): Declare.
13048 * mcore-tdep.c (analyze_dummy_frame): Use
13049 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13050 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13051
13052 2003-01-07 David Carlton <carlton@math.stanford.edu>
13053
13054 * linespec.c (decode_line_1): Move code into decode_dollar.
13055 (decode_dollar): New function.
13056
13057 2003-01-07 Andrew Cagney <cagney@redhat.com>
13058
13059 * arm-tdep.c (arm_init_extra_frame_info): Use
13060 deprecated_update_frame_base_hack.
13061 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13062 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13063 (fix_frame_pointer): Ditto.
13064 (mn10300_analyze_prologue): Ditto.
13065
13066 2003-01-07 Andrew Cagney <cagney@redhat.com>
13067
13068 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13069 extra_info using frame_extra_info_zalloc.
13070 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13071 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13072 (sh64_init_extra_frame_info): Ditto.
13073 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13074 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13075 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13076 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13077 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13078 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13079 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13080 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13081 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13082 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13083 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13084 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13085
13086 * mn10300-tdep.c (analyze_dummy_frame): Use
13087 deprecated_set_frame_extra_info_hack.
13088 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13089
13090 2003-01-07 J. Brobecker <brobecker@gnat.com>
13091
13092 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13093 class is not scText. These do not define "real" procedures.
13094 (parse_partial_symbols): Likewise.
13095
13096 2003-01-06 Michael Snyder <msnyder@redhat.com>
13097
13098 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13099
13100 2003-01-06 Andrew Cagney <ac131313@redhat.com>
13101
13102 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13103 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13104 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13105 deprecated_frame_xmalloc_with_cleanup.
13106 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13107 deprecated_frame_xmalloc.
13108 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13109 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13110
13111 2003-01-06 Andrew Cagney <cagney@redhat.com>
13112
13113 * x86-64-linux-tdep.c: Include "osabi.h".
13114 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13115
13116 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13117
13118 2003-01-06 Andrew Cagney <cagney@redhat.com>
13119
13120 * MAINTAINERS (Target Instruction Set Architectures): Update
13121 arm-elf. Can be built with -Werror, has been multiarched.
13122
13123 * value.h (unpack_long): Make buffer parameter constant.
13124 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13125 * scm-lang.h (scm_parse): Ditto.
13126 * defs.h (extract_typed_address, extract_address): Ditto.
13127 (extract_long_unsigned_integer): Ditto.
13128 * inferior.h (unsigned_pointer_to_address): Ditto.
13129 (signed_pointer_to_address): Ditto.
13130 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13131 * gdbarch.h, gdbarch.c: Regenerate.
13132 * findvar.c (extract_long_unsigned_integer): Update.
13133 (extract_address): Update.
13134 (extract_typed_address): Update.
13135 (unsigned_pointer_to_address): Update.
13136 * values.c (unpack_long): Update.
13137 (unpack_double): Update.
13138 (unpack_pointer): Update.
13139 (unpack_field_as_long): Update.
13140 * d10v-tdep.c (d10v_pointer_to_address): Update.
13141 * avr-tdep.c (avr_pointer_to_address): Update.
13142 * scm-lang.c (scm_unpack): Update.
13143 * findvar.c (signed_pointer_to_address): Update.
13144
13145 2003-01-06 Michal Ludvig <mludvig@suse.cz>
13146
13147 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
13148 since it is in i386-tdep.c.
13149
13150 2003-01-06 J. Brobecker <brobecker@gnat.com>
13151
13152 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13153 failure introduced in the previous change.
13154
13155 2003-01-05 Michael Chastain <mec@shout.net>
13156
13157 * README: Remove references to deleted remote-*.c files:
13158 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13159 remote-nrom.c, remote-os9k.c, remote-udi.c.
13160
13161 2003-01-05 Mark Kettenis <kettenis@gnu.org>
13162
13163 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13164 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13165 i386_get_longjmp_target.
13166
13167 2003-01-05 Andrew Cagney <ac131313@redhat.com>
13168
13169 * arm-tdep.c (prologue_cache): Change to a pointer.
13170 (_initialize_arm_tdep): Allocate prologue_cache.
13171 (check_prologue_cache): Update.
13172 (save_prologue_cache): Update.
13173 (arm_gdbarch_init): Update.
13174
13175 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13176
13177 * stabsread.c (update_method_name_from_physname): Call complaint()
13178 instead of error.
13179
13180 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13181
13182 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13183 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13184 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13185
13186 * blockframe.c: Include "gdbcmd.h" and "command.h".
13187 (backtrace_below_main): New variable.
13188 (file_frame_chain_valid, func_frame_chain_valid)
13189 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13190 (generic_func_frame_chain_valid): Remove functions.
13191 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13192 (_initialize_blockframe): New function.
13193 * Makefile.in (blockframe.o): Update dependencies.
13194 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13195 comment. Call frame_chain_valid ().
13196 * frame.h: Remove old prototypes. Add prototype for
13197 frame_chain_valid and update comments to match.
13198 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13199 Remove old comment.
13200 * gdbarch.h: Regenerated.
13201 * gdbarch.c: Regenerated.
13202
13203 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13204 set_gdbarch_frame_chain_valid.
13205 * avr-tdep.c (avr_gdbarch_init): Likewise.
13206 * cris-tdep.c (cris_gdbarch_init): Likewise.
13207 * frv-tdep.c (frv_gdbarch_init): Likewise.
13208 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13209 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13210 (i386_nw_init_abi): Likewise.
13211 (i386_gdbarch_init): Likewise.
13212 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13213 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13214 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13215 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13216 * mips-tdep.c (mips_gdbarch_init): Likewise.
13217 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13218 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13219 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13220 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13221 * s390-tdep.c (s390_gdbarch_init): Likewise.
13222 * sh-tdep.c (sh_gdbarch_init): Likewise.
13223 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13224 * v850-tdep.c (v850_gdbarch_init): Likewise.
13225 * vax-tdep.c (vax_gdbarch_init): Likewise.
13226 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13227
13228 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13229 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13230 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13231 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13232 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13233 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13234 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13235 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13236
13237 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13238
13239 * Makefile.in (acconfig_h): Remove incorrect macro.
13240 (config_h): Define.
13241 (osabi.o): Update dependencies.
13242 * configure.tgt: Set gdb_osabi based on target triplet.
13243 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13244 * configure: Regenerated.
13245 * config.in: Regenerated.
13246 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13247 (GDB_OSABI_DEFAULT): Define if not already defined.
13248 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13249 (set_osabi_string): New variables.
13250 (gdbarch_register_osabi): Add new OS ABI to
13251 gdb_osabi_available_names.
13252 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13253 (set_osabi, show_osabi): New functions.
13254 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13255
13256 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13257
13258 * arch-utils.c (gdbarch_info_init): Set osabi to
13259 GDB_OSABI_UNINITIALIZED.
13260 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13261 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13262 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13263 * gdbarch.c: Regenerated.
13264 * gdbarch.h: Regenerated.
13265 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13266 there's no BFD.
13267 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13268 * osabi.h (enum gdb_osabi): Move to defs.h.
13269 (gdbarch_init_osabi): Update prototype.
13270 * defs.h (enum gdb_osabi): Moved here.
13271 * Makefile.in: Update dependencies.
13272
13273 * alpha-tdep.h: Don't include "osabi.h".
13274 (struct gdbarch_tdep): Remove osabi member.
13275 * alpha-tdep.c: Include "osabi.h".
13276 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13277 iterate over arches. Update call to gdbarch_init_osabi.
13278 (alpha_dump_tdep): Don't dump osabi.
13279 * alpha-linux-tdep.c: Include "osabi.h".
13280 * alpha-osf1-tdep.c: Include "osabi.h".
13281 * alphafbsd-tdep.c: Include "osabi.h".
13282 * alphanbsd-tdep.c: Include "osabi.h".
13283
13284 * arm-tdep.h: Don't include "osabi.h".
13285 (struct gdbarch_tdep): Remove osabi member.
13286 * arm-tdep.c: Include "osabi.h".
13287 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13288 iterate over arches. Update call to gdbarch_init_osabi.
13289 (arm_dump_tdep): Don't dump osabi.
13290 * arm-linux-tdep.c: Include "osabi.h".
13291 * armnbsd-tdep.c: Include "osabi.h".
13292
13293 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13294 Update call to gdbarch_init_osabi.
13295
13296 * i386-tdep.h: Don't include "osabi.h".
13297 (struct gdbarch_tdep): Remove osabi member.
13298 * i386-tdep.c: Include "osabi.h".
13299 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13300 iterate over arches. Update call to gdbarch_init_osabi.
13301 (i386_dump_tdep): Don't dump osabi.
13302 * i386-linux-tdep.c: Include "osabi.h".
13303 * i386-sol2-tdep.c: Include "osabi.h".
13304 * i386bsd-tdep.c: Include "osabi.h".
13305 * i386gnu-tdep.c: Include "osabi.h".
13306 * i386ly-tdep.c: Include "osabi.h".
13307 * i386nbsd-tdep.c: Include "osabi.h".
13308 * i386obsd-tdep.c: Include "osabi.h".
13309
13310 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13311 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13312 check osabi when iterating over arches. Update call to
13313 gdbarch_init_osabi.
13314 (mips_dump_tdep): Don't dump osabi.
13315
13316 * ns32k-tdep.h: Don't include "osabi.h".
13317 (struct gdbarch_tdep): Remove.
13318 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13319 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13320 allocate tdep. Update call to gdbarch_init_osabi.
13321 (ns32k_dump_tdep): Remove.
13322 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13323 * ns32knbsd-tdep.c: Include "osabi.h".
13324
13325 * ppc-tdep.h: Don't include "osabi.h".
13326 (struct gdbarch_tdep): Remove osabi member.
13327 * rs6000-tdep.c: Include "osabi.h".
13328 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13329 osabi when iterating over arches. Update call to
13330 gdbarch_init_osabi.
13331 (rs6000_dump_tdep): Don't dump osabi.
13332 * ppc-linux-tdep.c: Include "osabi.h".
13333 * ppcnbsd-tdep.c: Include "osabi.h".
13334
13335 * sh-tdep.h: Don't include "osabi.h".
13336 (struct gdbarch_tdep): Remove osabi member.
13337 * sh-tdep.c: Include "osabi.h".
13338 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13339 iterate over arches. Update call to gdbarch_init_osabi.
13340 (sh_dump_tdep): Don't dump osabi.
13341 * shnbsd-tdep.c: Include "osabi.h".
13342
13343 * sparc-tdep.c: Include "osabi.h".
13344 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13345 iterate over arches. Update call to gdbarch_init_osabi.
13346 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13347 tdep structure.
13348
13349 * vax-tdep.h: Don't include "osabi.h".
13350 (struct gdbarch_tdep): Remove.
13351 * vax-tdep.c: Include "osabi.h".
13352 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13353 iterate over arches. Don't allocate tdep. Update call
13354 to gdbarch_init_osabi.
13355 (vax_dump_tdep): Remove.
13356 (_initialize_vax_tdep): Update call to gdbarch_register.
13357
13358 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13359
13360 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13361 entirely.
13362 (breakpoint_re_set_one): Don't fetch the value for a disabled
13363 watchpoint.
13364
13365 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13366
13367 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13368 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13369 (COERCE_FLOAT_TO_DOUBLE): Remove.
13370 * gdbarch.c: Regenerate.
13371 * gdbarch.h: Regenerate.
13372 * Makefile.in: Remove value_h from gdbarch_h.
13373 * valops.c (coerce_float_to_double): New variable.
13374 (default_coerce_float_to_double): Remove.
13375 (standard_coerce_float_to_double): Remove.
13376 (value_arg_coerce): Use coerce_float_to_double.
13377 (_initialize_valops): Add "set coerce-float-to-double".
13378 * value.h (default_coerce_float_to_double): Remove prototype.
13379 (standard_coerce_float_to_double): Remove prototype.
13380
13381 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13382 prototyped.
13383 * mdebugread.c (parse_symbol): Likewise.
13384 * stabsread.c (define_symbol): Mark all functions as prototyped.
13385
13386 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13387 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13388 set_gdbarch_coerce_float_to_double.
13389 * arm-tdep.c (arm_gdbarch_init): Likewise.
13390 * frv-tdep.c (frv_gdbarch_init): Likewise.
13391 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13392 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13393 * mips-tdep.c (mips_gdbarch_init): Likewise.
13394 (mips_coerce_float_to_double): Remove.
13395 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13396 (rs6000_coerce_float_to_double): Remove.
13397 * s390-tdep.c (s390_gdbarch_init): Likewise.
13398 * sh-tdep.c (sh_gdbarch_init): Likewise.
13399 (sh_coerce_float_to_double): Remove.
13400 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13401 (sparc_coerce_float_to_double): Remove.
13402 * v850-tdep.c (v850_gdbarch_init): Likewise.
13403 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13404 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13405 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13406 (hppa_coerce_float_to_double): Remove prototype.
13407 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13408
13409 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13410
13411 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13412
13413 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13414
13415 Suggested by Stewart Brown <sb24@avaya.com>:
13416 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13417 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13418 (c_type_print_varspec_suffix): Likewise.
13419
13420 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13421
13422 * configure.in: Don't set and AC_SUBST SUBDIRS.
13423 * configure: Regenerated.
13424
13425 * configure.in: Remove code dealing with shared libraries.
13426 * Makefile.in: Remove HLDFLAGS and HLDENV.
13427 * configure: Regenerated.
13428
13429 2003-01-04 Andrew Cagney <ac131313@redhat.com>
13430
13431 * frame.c (deprecated_frame_xmalloc): New function.
13432 (deprecated_set_frame_saved_regs_hack): New function.
13433 (deprecated_set_frame_extra_info_hack): New function.
13434 * frame.h (deprecated_frame_xmalloc): Declare.
13435 (deprecated_set_frame_saved_regs_hack): Declare.
13436 (deprecated_set_frame_extra_info_hack): Declare.
13437
13438 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13439
13440 * configure.in: Move code that provides the --enable-gdbtk option
13441 right after the code that handles the --enable-tui option, and
13442 polish it somewhat.
13443 * configure: Regenerated.
13444
13445 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13446 AC_CHECK_FUNCS and remove the old check for pread64.
13447 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13448 * acconfig.h (_GNU_SOURCE): Add.
13449 (HAVE_PREAD64): Remove.
13450 * configure, aclocal.m4, config.in: Regenerated.
13451
13452 2003-01-03 Andrew Cagney <ac131313@redhat.com>
13453
13454 * alpha-tdep.c: Use get_frame_saved_regs.
13455 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13456 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13457 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13458 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13459 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13460
13461 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13462
13463 * configure.in: Remove all use of the SUBDIRS variable; add
13464 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13465 code providing the --enable-multi-ice option, and move it right in
13466 front of the code that checks whether gdbserver is supported.
13467 Polish that too.
13468 * configure: Regenerated.
13469 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13470 @SUBDIRS@.
13471
13472 2003-01-03 Andrew Cagney <cagney@redhat.com>
13473
13474 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13475 * avr-tdep.c, cris-tdep.c: Ditto.
13476 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13477 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13478
13479 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13480
13481 * configure.in: Remove --enable-netrom option.
13482 * configure: Regenerated.
13483
13484 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13485
13486 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13487 declaration for `struct re_pattern_buffer' instead.
13488 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13489
13490 2003-01-03 J. Brobecker <brobecker@gnat.com>
13491
13492 * mdebugread.c (parse_symbol): Count until the stEnd matching
13493 the structure name.
13494
13495 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13496
13497 * configure.in: Remove --with-cpu option.
13498 subscripts. Remove evil changequotes here.
13499 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13500 * config.in, configure: Regenerated.
13501
13502 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13503 * configure.in: Cleanup section that sources GDB and BFD configure
13504 subscripts. Remove evil changequotes here.
13505 * config.in, configure: Regenerated.
13506
13507 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13508
13509 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13510 frame accessor methods.
13511 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13512 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13513 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13514 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13515 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13516 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13517 * z8k-tdep.c: Ditto.
13518
13519 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13520
13521 * configure.in: Remove UI_OUT configuration code.
13522 * ada-lang.c: Update assuming UI_OUT is always true.
13523 * Makefile.in (UIOUT_CFLAGS): Remove.
13524 * configure: Regenerated.
13525 * TODO: Remove blurb about elimination of -DUI_OUT.
13526
13527 * configure.in: Move code that provides the --enable-gdbcli,
13528 --enable-gdbmi options right before the code that handles the
13529 --enable-tui option. Polish a bit.
13530 * configure: Regenerated.
13531
13532 * configure.in: Rewrite check for GNU regex and the
13533 --without-included regex option, and move it into the "Checks for
13534 library functions" section. This makes us use the system regex
13535 again by default on systems with version 2 of the GNU C library.
13536 This was apparently broken.
13537 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13538 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13539 * config.in, configure: Regenerated.
13540
13541 * configure.in: Move code that provides the --enable-tui option
13542 before the "Checks for libraries" section. Polish the code
13543 somewhat and set need_curses to yes if we build the TUI. Rewrite
13544 code that looks for a library providing termcap functionality to
13545 match more closely what's done in the Readline library, and move
13546 it into to the "Checks for libraries" section.
13547 * configure: Regenerated.
13548 * Makefile.in (TERMCAP): Remove variable.
13549 * config/i386/go32.mh (TERMCAP): Remove variable.
13550
13551 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13552
13553 * MAINTAINERS: Mention gdb_mbuild.sh.
13554 * gdb_mbuild.sh: Rewrite.
13555
13556 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13557
13558 * configure.in: Fix typo in last change.
13559 * config.in, configure: Regenerated.
13560
13561 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13562
13563 * valarith.c (value_binop): Delete obsolete code and comments.
13564 * configure.host: Ditto.
13565 * buildsym.h (make_blockvector): Ditto.
13566 * buildsym.c (make_blockvector): Ditto.
13567 * defs.h (enum language): Ditto.
13568 (chill_demangle): Ditto.
13569 * elfread.c (elf_symtab_read): Ditto.
13570 * dwarfread.c (CHILL_PRODUCER): Ditto.
13571 (set_cu_language): Ditto.
13572 (handle_producer): Ditto.
13573 * expprint.c (print_subexp): Ditto.
13574 * gdbtypes.c (chill_varying_type): Ditto.
13575 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13576 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13577 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13578 (chill_varying_type): Ditto.
13579 * language.h (_LANG_chill): Ditto.
13580 * language.c (binop_result_type, integral_type): Ditto.
13581 (character_type, string_type, structured_type): Ditto.
13582 (lang_bool_type, binop_type_check): Ditto.
13583 * stabsread.h (os9k_stabs): Ditto.
13584 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13585 (define_symbol, read_type, read_struct_fields): Ditto.
13586 (read_array_type, read_enum_type, read_huge_number): Ditto.
13587 (read_range_type, start_stabs): Ditto.
13588 * symfile.c (init_filename_language_table): Ditto.
13589 (add_psymbol_with_dem_name_to_list): Ditto.
13590 * symtab.c (symbol_init_language_specific): Ditto.
13591 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13592 * symtab.h (struct general_symbol_info): Ditto.
13593 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13594 * typeprint.c (typedef_print): Ditto.
13595 * utils.c (fprintf_symbol_filtered): Ditto.
13596 * valops.c (value_cast, search_struct_field, value_slice): Delete
13597 obsolete code.
13598 (varying_to_slice): Delete function.
13599 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13600 (varying_to_slice): Delete declaration.
13601 * MAINTAINERS: Update.
13602
13603 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13604
13605 * configure.in: Reorganize "Checks for library functions section"
13606 a bit. Remove check for `btowc' and `isascii' functions.
13607 * configure: Regenerated.
13608
13609 * acconfig.h (_MSE_INT_H): Remove.
13610 * configure.in: Create "Checks for header files" section, and move
13611 appropriate tests there. Don't check for objlist.h, wchar.h,
13612 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13613 misdetection fix. Also add "Checks for types", "Checks for
13614 compiler characteristics" and "Checks for library functions"
13615 sections.
13616 * config.in, configure: Regenerated.
13617
13618 * configure.in: Create "Checks for programs" section, and move
13619 appropriate tests there.
13620
13621 2003-01-01 Mark Kettenis <kettenis@gnu.org>
13622
13623 * configure.in: Create "Checks for libraries" section, and move
13624 appropriate tests there. Cleanup check for wctype in libw. Use
13625 AC_SEARCH_LIBS to see whether we need libsocket.
13626 * configure: Regenerated.
13627
13628 For older changes see ChangeLog-2002
13629 \f
13630 Local Variables:
13631 mode: change-log
13632 left-margin: 8
13633 fill-column: 74
13634 version-control: never
13635 End:
This page took 0.356394 seconds and 5 git commands to generate.