1 2003-10-27 Andrew Cagney <cagney@redhat.com>
3 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
4 arch_info. Use warning instead of fprintf_filtered. Do not use
5 deprecated bfd_printable_arch_mach.
7 2003-10-26 Kevin Buettner <kevinb@redhat.com>
9 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
11 (frv_register_type): Rename from frv_register_virtual_type. Add
12 ``struct gdbarch *'' parameter.
13 (frv_gdbarch_init): Delete calls to the following functions:
14 set_gdbarch_deprecated_size(),
15 set_gdbarch_deprecated_register_bytes(),
16 set_gdbarch_deprecated_register_raw_size(),
17 set_gdbarch_deprecated_max_register_raw_size(),
18 set_gdbarch_deprecated_register_virtual_size(),
19 set_gdbarch_deprecated_max_register_virtual_size(),
20 set_gdbarch_deprecated_register_virtual_size(),
21 set_gdbarch_deprecated_register_virtual_type().
22 Add call to function set_gdbarch_register_type().
24 2003-10-26 Mark Kettenis <kettenis@gnu.org>
26 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
27 FDOFF_REGNUM): Remove defines.
28 * win32-nat.c (do_child_fetch_inferior_registers): Include
30 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
31 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
32 undefine I387_ST0_REGNUM.
34 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
35 * x86-64-tdep.c (x86_64_store_return_value): Use
36 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
38 Change register numbers to enumartion values.
39 * i386-tdep.h (enum i386_regnum): New.
40 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
41 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
42 I386_ST0_REGNUM): Remove defines.
43 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
44 I386_EDI_REGNUM): Remove defines.
46 2003-10-24 Andrew Cagney <cagney@redhat.com>
48 * target.c: Include "gdbcore.h".
49 (get_target_memory, get_target_memory_unsigned): New functions.
50 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
51 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
52 Use get_target_memory_unsigned.
53 * Makefile.in (target.o): Update dependencies.
55 2003-10-24 Andrew Cagney <cagney@redhat.com>
57 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
58 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
59 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
60 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
61 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
63 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
64 (can_run_code_for): Use the OO term "singleton".
66 2003-10-23 Andrew Cagney <cagney@redhat.com>
68 * Makefile.in (stack.o): Add $(regcache_h).
69 * stack.c: Include "regcache.h"
70 (return_command): Rewrite. Use get_frame_id and
71 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
72 about unhandled return-values.
73 * value.h (set_return_value): Delete declaration.
74 * values.c (set_return_value): Delete function.
76 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
78 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
79 (pseudo_regs): Add comment regarding register stack registers.
80 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
81 (floatformat_valid): New static routine.
82 (floatformat_ia64_ext): Add name field and set up is_valid routine
83 to floatformat_valid().
84 (examine_prologue): For the previous cfm, use
85 frame_unwind_register()
86 if the cfm is not stored in a register-stack register. Save the
87 previous cfm value in the prev_cfm field. Add debug output.
88 (ia64_frame_this_id): Use frame_id_build_special() to also register
89 the bsp. Add debug output.
90 (ia64_sigtramp_frame_this_id): Ditto.
91 (ia64_frame_prev_register): Look at cache saved_regs for a few more
92 registers and also add some checks for framelessness before accepting
93 current register values for fields such as return address. For cfm,
94 use the cached prev_cfm field if available. Add comment to explain
95 PSR logic. Add debug output.
96 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
97 as part of initialization.
98 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
99 calculated. Cache the bsp and cfm values.
100 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
101 instead of using ia64_frame_prev_register() which doesn't expect most
102 registers to be saved. The saved values for bsp and sp
103 can be taken from the cache. Add debug output.
104 (ia64_push_dummy_call): Use frame_id_build_special() to also register
107 2003-10-23 Jim Blandy <jimb@redhat.com>
109 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
110 architecture the current arch can run code for --- but not if it's
112 (can_run_code_for): New function.
114 2003-10-22 James E Wilson <wilson@specifixinc.com>
116 * MAINTAINERS: Move myself from paper trail section back to write
117 after approval section.
119 2003-10-22 Andrew Cagney <cagney@redhat.com>
122 * win32-nat.c: Include "exec.h".
123 * solib.c: Include "exec.h".
124 * target.h (build_section_table): Delete declaration.
125 * somsolib.c: Include "exec.h".
126 (exec_ops): Delete extern declaration.
127 * rs6000-nat.c: Update copyright. Include "exec.h".
128 (exec_ops): Delete extern declaration.
129 * pa64solib.c: Update copyright. Include "exec.h".
130 (exec_ops): Delete extern declaration.
131 * exec.c: Update copyright. Include "exec.h".
132 * corelow.c: Update dependencies. Include "exec.h".
133 * Makefile.in (exec_h): Define.
134 (exec.o, somsolib.o): Update dependencies.
135 (pa64solib.o, corelow.o): Update dependencies.
137 2003-10-22 Andrew Cagney <cagney@redhat.com>
139 * target.c: Include "gdb_assert.h" (target_read): Call
140 "target_read_partial", not "target_write_partial".
141 (default_read_partial, default_write_partial): New function.
142 (target_read_partial, target_write_partial): Simplify, assume that
143 there is always a read/write method.
144 (update_current_target, add_target): Always set "to_read_partial"
145 and "to_write_partial".
146 (target_write, target_read): Fail on a zero byte transfer.
147 * Makefile.in (target.o): Update dependencies.
148 * target.h: Update copyright date.
149 (target_object): Fix typo.
151 2003-10-22 Andrew Cagney <cagney@redhat.com>
153 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
154 multi-arch method, add "targ" parameter.
155 (struct target_ops): Declare.
156 * gdbarch.h, gdbarch.c: Re-generate.
157 * Makefile.in (c-valprint.o): Update dependencies.
158 * arch-utils.h: Update copyright.
159 (convert_from_func_ptr_addr_identity): Declare.
160 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
161 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
162 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
163 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
164 * infcall.c (find_function_addr, call_function_by_hand): Update.
165 * c-valprint.c: Include "target.h".
166 (print_function_pointer_address): Update.
168 2003-10-22 Andrew Cagney <cagney@redhat.com>
170 * target.c (target_close): New function.
171 (debug_to_close): Use "target_close".
172 (push_target): Use "target_close".
173 (unpush_target): Use "target_close".
174 (pop_target): Use "target_close".
175 * target.h (struct target_ops): Add "to_xclose".
176 (target_open): Delete macro. Move comment to "to_open".
177 (target_close): Replace macro with function that takes a target.
178 * top.c (quit_target): Pass "current_target" to "target_close".
180 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
182 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
183 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
184 * symtab.h (lookup_minimal_symbol_text): Update.
185 * breakpoint.c (create_overlay_event_breakpoint,
186 create_longjmp_breakpoint): Update callers.
187 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
188 * symtab.c (find_pc_sect_line): Ditto.
190 2003-10-21 Andrew Cagney <cagney@redhat.com>
192 * target.c (errno): Delete extern declaration.
194 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
196 * ia64-tdep.c: Change all occurrences of
197 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
198 (ia64_frame_prev_register): Minor whitespace change.
200 2003-10-20 Michael Chastain <mec@shout.net>
202 * config/djgpp/fnchange.lst: Add lines for:
203 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
204 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
205 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
206 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
207 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
208 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
209 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
211 2003-10-20 Andrew Cagney <cagney@redhat.com>
213 * values.c (register_value_being_returned): Update comments. Use
214 "gdbarch_return_value" when available.
215 (using_struct_return): Ditto.
216 (set_return_value): Ditto. Use "gdbarch_return_value" when
217 available.. Print a warning, and not an error, when an unhandled
218 return type is encountered.
219 * infcmd.c: Include "gdb_assert.h".
220 (print_return_value): When gdbarch_return_value_p, and using
221 struct return, assume that the value is not available.
222 * defs.h (return_value_convention): Define.
223 * gdbarch.sh (gdbarch_return_value): New predicate method.
224 * gdbarch.h, gdbarch.c: Re-generate
225 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
227 2003-10-20 Andrew Cagney <cagney@redhat.com>
229 * symtab.c: Replace "struct sec" with "struct bfd_section".
230 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
232 2003-10-19 Michael Chastain <mec@shout.net>
234 * config/djgpp/fnchange.lst: Add lines for:
235 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
236 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
237 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
239 2003-10-19 Mark Kettenis <kettenis@gnu.org>
241 * amd64fbsd-nat.c (fetch_inferior_registers,
242 store_inferior_registers): Remove functions.
243 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
245 2003-10-18 Mark Kettenis <kettenis@gnu.org>
247 Add NetBSD/amd64 native configuration:
248 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
249 * amd64nbsd-tdep.c: New file.
250 * amd64nbsd-nat.c: New file.
251 * amd64bsd-nat.c: New file.
252 * config/i386/nbsd64.mh: New file.
253 * config/i386/nbsd64.mt: New file.
254 * configure.host: Add x86_64-*-netbsd*.
255 * configure.tgt: Add x86_64-*-netbsd*.
256 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
258 * NEWS (New native configurations): Mention NetBSD/amd64.
260 2003-10-17 Michael Chastain <mec@shout.net>
262 * config/djgpp/fnchange.lst: Remove dead lines for:
263 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
264 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
265 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
266 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
267 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
268 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
269 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
270 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
271 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
272 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
273 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
274 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
275 gdb/config/sparc/tm-sparclite.h,
276 gdb/gdbtk/generic/ChangeLog-2001,
277 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
278 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
279 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
280 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
281 gdb/testsuite/gdb.mi/mi0-var-block.exp,
282 gdb/testsuite/gdb.mi/mi0-var-child.exp,
283 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
284 gdb/testsuite/gdb.mi/mi0-var-display.exp,
285 itcl/iwidgets3.0.0/demos/extfileselectionbox,
286 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
287 itcl/iwidgets3.0.0/demos/fileselectionbox,
288 itcl/iwidgets3.0.0/demos/fileselectiondialog,
289 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
290 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
291 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
292 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
293 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
294 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
295 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
296 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
297 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
298 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
299 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
300 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
301 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
302 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
303 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
304 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
305 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
306 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
307 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
308 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
309 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
310 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
311 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
312 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
313 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
314 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
315 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
316 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
317 itcl/iwidgets3.0.0/demos/html/shell.n.html,
318 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
319 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
320 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
321 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
322 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
323 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
324 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
325 itcl/iwidgets3.0.0/demos/scrolledcanvas,
326 itcl/iwidgets3.0.0/demos/scrolledframe,
327 itcl/iwidgets3.0.0/demos/scrolledhtml,
328 itcl/iwidgets3.0.0/demos/scrolledlistbox,
329 itcl/iwidgets3.0.0/demos/scrolledtext,
330 itcl/iwidgets3.0.0/demos/selectionbox,
331 itcl/iwidgets3.0.0/demos/selectiondialog,
332 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
333 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
334 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
335 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
336 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
337 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
338 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
339 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
340 itcl/iwidgets3.0.0/doc/scrolledframe.n,
341 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
342 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
343 itcl/iwidgets3.0.0/doc/scrolledtext.n,
344 itcl/iwidgets3.0.0/doc/selectionbox.n,
345 itcl/iwidgets3.0.0/doc/selectiondialog.n,
346 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
347 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
348 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
349 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
350 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
351 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
352 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
353 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
354 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
355 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
356 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
357 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
358 itcl/iwidgets3.0.0/generic/selectionbox.itk,
359 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
360 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
361 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
362 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
363 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
364 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
365 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
366 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
367 itcl/iwidgets3.0.0/tests/scrolledframe.test,
368 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
369 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
370 itcl/iwidgets3.0.0/tests/scrolledtext.test,
371 itcl/iwidgets3.0.0/tests/selectionbox.test,
372 itcl/iwidgets3.0.0/tests/selectiondialog.test,
373 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
374 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
375 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
376 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
377 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
378 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
379 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
380 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
381 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
382 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
383 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
384 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
385 tk/mac/tkMacProjects.sit.hqx.
387 2003-10-17 Andrew Cagney <cagney@redhat.com>
389 * target.c (target_section_by_addr): New function.
390 (do_xfer_memory): Use "target_section_by_addr".
391 * target.h (target_section_by_addr): Declare.
393 * target.h (struct target_ops): Add "to_read_partial" and
394 "to_write_partial", delete "to_query".
395 (target_read_partial, target_write_partial): Declare.
396 (target_read, target_write): Declare.
397 (target_query): Delete macro.
398 * target.c (target_read_partial): New function.
399 (target_write_partial, target_read, target_write): New function.
400 (update_current_target): Delete inheritance of "to_query". Add
401 comments about "to_read_partial" and "to_write_partial".
402 (debug_to_partial_read, debug_to_partial_write): New functions.
403 (debug_to_query): Delete function.
404 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
405 instead of "to_query".
406 * remote.c (remote_read_partial): Replace "remote_query".
407 (init_remote_ops): Set "to_read_partial" instead of "to_query".
408 (init_remote_async_ops): Ditto.
409 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
410 "target_read_partial" instead of "target_query".
411 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
412 Use "target_read_partial" instead of "target_query".
414 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
416 * frame.h (struct frame_id): Add new field: special_addr.
417 (frame_id_build_special): New prototype.
418 * frame.c (frame_id_build_special): New function.
419 (frame_id_build): Change to call frame_id_build_special().
420 (frame_id_eq): Change to also test special_addr field.
421 (frame_id_inner): Update comment.
423 2003-10-17 Andrew Cagney <cagney@redhat.com>
425 * target.c (update_current_target): Perform the target cleanup.
426 Put the target stack beneath the squashed "current_target".
427 (add_target): Delete disabled call to "cleanup_target".
428 (cleanup_target): Delete function.
429 (push_target, unpush_target): Do not call "cleanup_target".
431 2003-10-17 Andrew Cagney <cagney@redhat.com>
433 * target.c (target_stack): Change to a static target_ops.
434 (update_current_target): Walk the "struct target_ops" stack.
435 (pop_target, do_xfer_memory, target_info): Ditto.
436 (find_target_beneath): Ditto.
437 (push_target): Rewrite to use the "struct target_ops" stack.
438 (unpush_target): Ditto.
439 * target.h (struct target_stack_item): Delete definition.
440 (target_stack): Delete declaration.
441 (struct target_ops): Add field "beneath".
443 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
445 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
447 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
448 (h8300_examine_prologue): Use h8300_normal_mode flag
449 (h8300_gdbarch_init): Set architecture info for normal mode
451 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
453 * remote.c (remote_protocol_vcont): New variable.
454 (set_remote_protocol_vcont_packet_cmd): New function.
455 (show_remote_protocol_vcont_packet_cmd): New function.
456 (init_all_packet_configs): Handle remote_protocol_vcont.
457 (remote_vcont_probe): New function.
458 (remote_vcont_resume): New function.
459 (remote_resume): Use it.
460 (remote_async_resume): Call remote_resume.
461 (_initialize_remote): Add verbose-resume packet commands.
463 2003-10-16 Andrew Cagney <cagney@redhat.com>
465 * infrun.c (handle_inferior_event): Add comment about
466 "frame_id_inner" being too weak.
468 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
470 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
471 second parameter, which is always null. Remove
472 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
473 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
475 * somsolib.c (som_solib_create_inferior_hook,
476 som_solib_desire_dynamic_linker_symbols): Update callers.
477 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
479 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
481 * remote-m32r-sdi.c : New file, interface to m32r on-chip
482 debug interface, SDI (Scalable Debug Interface).
483 * NEWS: Mention m32r SDI protocol was supported.
484 * Makefile.in (remote-m32r-sdi.o): Add build rule.
485 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
487 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
489 * ia64-linux-tdep.c: Include gdbcore.h.
490 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
491 (ia64_linux_sigcontext_register_addr): Find the address of the
492 sigcontext area stored in the sigframe instead of using
493 a magic offset constant.
495 2003-10-15 Andrew Cagney <cagney@redhat.com>
497 * remote.c (remote_search): Delete function.
498 * target.h (target_search): Delete disabled macro.
499 (struct target_ops): Delete disabled field "to_search".
501 2003-10-14 Kevin Buettner <kevinb@redhat.com>
503 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
504 instead of deprecated_inside_entry_file().
506 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
508 * sh-tdep.c: Fix copy/paste hangover in comment.
509 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
511 (sh3e_sh4_extract_return_value): Ditto.
513 2003-10-13 Richard Henderson <rth@redhat.com>
515 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
516 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
517 match c_val_print a bit closer.
519 2003-10-13 Kevin Buettner <kevinb@redhat.com>
521 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
522 (frv_gdbarch_adjust_breakpoint_address): New function.
523 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
526 2003-10-13 Kevin Buettner <kevinb@redhat.com>
528 * breakpoint.h (struct breakpoint): Add new member
529 ``requested_address''.
530 * breakpoint.c (breakpoint_adjustment_warning)
531 (adjust_breakpoint_address): New static functions.
532 (print_it_typical): Issue warning if breakpoint's address is different
533 from its requested address.
534 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
535 (breakpoint_re_set_one): Set breakpoint's
536 ``requested_address'' field. Set ``address'' field to the
537 result of calling adjust_breakpoint_address() on the requested
540 2003-10-13 Kevin Buettner <kevinb@redhat.com>
542 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
543 * gdbarch.h, gdbarch.c: Regenerate.
545 2003-10-11 Mark Kettenis <kettenis@gnu.org>
547 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
550 * i386fbsd-tdep.c: New file.
551 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
552 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
553 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
555 (_initialize_i386fbsd_tdep): New function.
556 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
557 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
558 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
559 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
561 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
562 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
563 to initialize TDEP->sc_num_regs.
564 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
565 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
566 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
567 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
568 FreeBSD ELF OS/ABI's here.
569 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
570 (i386fbsd-tdep.o): New target.
571 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
572 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
574 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
575 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
576 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
577 in initialization of TDEP->sc_num_regs.
579 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
580 (x86_64_init_abi): Initialize regset_from_core_section if
583 * i386-tdep.c (i386_regset_from_core_section): New function.
584 (i386_gdbarch_init): Initialize regset_from_core_section if
586 * i386-tdep.h (i386_regset_from_core_section): New declaration.
588 * i386-tdep.h (struct regset): Declare opaque.
590 * gdbarch.sh (regset_from_core_section): New method.
591 (struct regset): Declare opaque.
592 * gdbarch.c, gdbarch.h: Regenerated.
594 2003-10-11 Alan Modra <amodra@bigpond.net.au>
596 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
597 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
598 Correct test for pc within section.
600 2003-10-11 Mark Kettenis <kettenis@gnu.org>
602 * gdbarch.sh: Remove trailing whitepsace from comments.
604 2003-10-08 Roland McGrath <roland@redhat.com>
606 * gcore.c (make_mem_sec): Function removed, folded into ...
607 (gcore_create_callback): ... here. To omit a section, clear its
608 SEC_LOAD bit rather than zeroing its size.
609 Omit read-only sections only if they correspond to a known disk file.
610 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
612 2003-10-10 Michael Snyder <msnyder@redhat.com>
614 * d10v-tdep.c: Fix typo in comment.
616 2003-10-10 Andrew Cagney <cagney@redhat.com>
618 * rs6000-tdep.c (e500_store_return_value): Delete function.
619 (e500_extract_return_value): Delete function.
620 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
621 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
622 "ppc_sysv_abi_restore_return_value" where applicable.
623 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
624 (ppc_sysv_abi_extract_return_value): Declare.
625 (ppc_sysv_abi_broken_store_return_value): Declare.
626 (ppc_sysv_abi_broken_extract_return_value): Declare.
627 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
628 * ppc-sysv-tdep.c (return_value_convention): Move definition to
630 (do_ppc_sysv_return_value): New function.
631 (ppc_sysv_abi_extract_return_value): New function.
632 (ppc_sysv_abi_store_return_value): New function.
633 (ppc_sysv_abi_broken_extract_return_value): New function.
634 (ppc_sysv_abi_broken_store_return_value): New function.
635 (ppc_sysv_abi_use_struct_convention): Call
636 do_ppc_sysv_return_value.
638 2003-10-10 J. Brobecker <brobecker@gnat.com>
640 * blockframe.c (inside_main_func): No longer use symbol_lookup()
641 to lookup the main function symbol.
643 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
645 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
647 (sh_push_dummy_call_fpu): Fix argument passing rules.
648 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
650 (sh3e_sh4_store_return_value): Ditto.
652 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
654 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
657 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
659 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
660 more readable code. Accomodate passing of bitfields.
662 2003-10-10 Andrew Cagney <cagney@redhat.com>
664 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
665 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
666 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
667 * ppc-sysv-tdep.c: Include "gdb_assert.h".
668 (ppc64_sysv_abi_push_dummy_call): New function.
669 (ppc64_sysv_abi_broken_push_dummy_call): New function.
670 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
671 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
673 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
675 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
677 * d10v-tdep.c: Ditto.
678 * h8300-tdep.c: Ditto.
679 * remote-e7000.c: Ditto.
680 * remote-hms.c: Ditto.
681 * ser-e7kpc.c: Ditto.
686 * sh64-tdep.c: Ditto.
689 * config/d10v/d10v.mt: Ditto.
690 * config/sh/embed.mt: Ditto.
691 * config/sh/linux.mt: Ditto.
692 * config/sh/tm-linux.h: Ditto.
693 * config/sh/tm-sh.h: Ditto.
694 * config/sh/wince.mt: Ditto.
696 2003-10-09 Andrew Cagney <cagney@redhat.com>
698 * ppc-tdep.h (struct type): Declare opaque.
699 * x86-64-tdep.h (struct regcache): Declare opaque.
700 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
703 2003-10-09 Andrew Cagney <cagney@redhat.com>
705 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
706 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
707 (SOFTWARE_SINGLE_STEP_P): Ditto.
708 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
709 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
710 (SOFTWARE_SINGLE_STEP_P): Ditto.
711 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
712 software_single_step to rs6000_software_single_step.
714 2003-10-09 Andrew Cagney <cagney@redhat.com>
716 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
718 2003-10-09 Michael Snyder <msnyder@redhat.com>
720 * frame.h: Fix typo in comment.
721 * dummy-frame.c: Fix typo in comment.
722 * d10v-tdep.c: Random whitespace/comment tweaks.
724 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
726 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
727 (sh_push_dummy_code): Delete function, it's only used for dummy calls
730 Based on input by Stephen Clarke (stephen.clarke@superh.com):
731 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
734 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
736 * remote-mips.c (mips_initialize): Remove unneeded call to
737 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
739 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
741 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
744 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
746 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
747 for any lwp we resume.
748 (running_callback): Add lwps that have pending status events
749 against them to be considered running.
751 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
753 * m32r-tdep.c : Include "dis-asm.h".
754 * Makefile.in (m32r-tdep.o): Update dependencies.
756 2003-10-06 J. Brobecker <brobecker@gnat.com>
758 * completer.h (get_gdb_completer_word_break_characters): Delete.
759 * completer.c: include language.h.
760 (gdb_completer_word_break_characters): Delete.
761 (get_gdb_completer_word_break_characters): Delete.
762 (location_completer): Use the word break characters of the current
764 (complete_line): Likewise.
765 (line_completion_function): Likewise.
766 (skip_quoted_chars): Likewise.
767 * Makefile.in (completer.o): Add dependency on language.h.
768 * top.c (init_main): Set the readline word break characters
769 to GDB's default word break characters.
771 2003-10-06 J. Brobecker <brobecker@gnat.com>
773 * language.h (language_defn): new field, la_word_break_characters.
774 * language.c (unknown_language_defn): Set new field to
775 default_word_break_characters.
776 (auto_language_defn): Likewise.
777 (local_language_defn): Likewise.
778 * ada-lang.c (ada_language_defn): Likewise.
779 * c-lang.c (c_language_defn): Likewise.
780 (cplus_language_defn): Likewise.
781 (asm_language_defn): Likewise.
782 (minimal_language_defn): Likewise.
783 * f-lang.c (f_language_defn): Likewise.
784 * jv-lang.c (java_language_defn): Likewise.
785 * m2-lang.c (m2_language_defn): Likewise.
786 * objc-lang.c (objc_language_defn): Likewise.
787 * p-lang.c (pascal_language_defn): Likewise.
788 * scm-lang.c (scm_language_defn): Likewise.
790 2003-10-06 Andrew Cagney <cagney@redhat.com>
792 * ppc-sysv-tdep.c: Re-indent.
794 2003-10-06 J. Brobecker <brobecker@gnat.com>
796 * language.h (default_word_break_characters): Add prototype.
797 * language.c (default_word_break_characters): New function.
799 2003-10-06 Andreas Schwab <schwab@suse.de>
801 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
804 2003-10-06 Andrew Cagney <cagney@redhat.com>
806 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
808 (z8k-tdep.o): Delete custom build rule.
810 2003-10-06 Andrew Cagney <cagney@redhat.com>
812 * Makefile.in: Update all dependencies.
814 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
815 No longer list PA as as obsolete candidate. List m32r as
816 broken instead of obsolete.
818 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
819 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
820 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
821 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
822 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
823 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
824 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
825 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
826 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
827 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
828 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
829 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
830 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
831 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
832 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
833 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
834 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
835 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
836 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
837 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
838 * config/z8k/z8k.mt: Ditto.
840 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
841 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
842 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
843 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
844 sparclite were removed.
845 * configure.host, configure.tgt: Remove corresponding tuples.
847 * breakpoint.c, breakpoint.h: Remove obsolete code.
848 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
849 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
850 * stabsread.h, xcoffread.c: Ditto.
852 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
853 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
854 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
855 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
857 2003-10-06 David Lecomber <dsl@sources.redhat.com>
859 * f-valprint.c: Reformatting
861 2003-10-06 Mark Kettenis <kettenis@gnu.org>
863 * x86-64-tdep.c: Remove duplicate comment.
865 * x86-64-tdep.c (x86_64_store_return_value): Don't use
866 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
867 names for return values. This fixes a bug since we looked at %rbx
870 2003-10-05 Mark Kettenis <kettenis@gnu.org>
872 * x86-64-tdep.c: Include "regset.h".
874 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
875 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
877 * i386-tdep.c: Include "regset.h".
878 (i386_supply_gregset): New function.
879 (i386_supply_fpregset): New function.
880 (i386_gdbarch_init): Initialze register set-related members of
882 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
883 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
885 2003-10-03 Andrew Cagney <cagney@redhat.com>
887 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
888 set extract_return_value, store_return_value and
889 use_struct_convention to ppc64_sysv_abi_extract_return_value,
890 ppc64_sysv_abi_store_return_value and
891 ppc64_sysv_abi_use_struct_convention.
892 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
893 (ppc64_sysv_abi_store_return_value): Declare.
894 (ppc64_sysv_abi_use_struct_convention): Declare.
895 * ppc-sysv-tdep.c (enum return_value_convention): Define.
896 (ppc64_sysv_abi_extract_return_value): New function.
897 (ppc64_sysv_abi_store_return_value): New function.
898 (ppc64_sysv_abi_use_struct_convention): New function.
899 (ppc64_sysv_abi_return_value): New function.
901 2003-10-03 Andrew Cagney <cagney@redhat.com>
903 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
904 convert a descriptor to a function when it's in the ".opd"
907 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
909 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
910 reg_size to keep GCC silent.
912 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
914 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
915 base for DW_EH_PE_textrel encodings.
916 (read_encoded_value): Add a DW_EH_PE_textrel case.
917 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
920 2003-10-03 Mark Kettenis <kettenis@gnu.org>
922 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
924 2003-10-02 Andrew Cagney <cagney@redhat.com>
926 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
928 * gdbarch.h, gdbarch.c: Re-generate.
929 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
930 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
931 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
932 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
933 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
934 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
935 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
936 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
937 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
938 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
939 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
940 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
941 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
942 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
943 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
944 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
946 2003-10-02 Jim Blandy <jimb@redhat.com>
948 * dwarf2read.c (struct die_info): Doc fix.
950 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
952 * sh-tdep.c: Running thru gdb_indent.sh.
954 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
956 * sh-tdep.c (sh_justify_value_in_reg): New function.
957 (sh_stack_allocsize): Ditto.
958 (flt_argreg_array): New array used for floating point argument
960 (sh_init_flt_argreg): New function.
961 (sh_next_flt_argreg): Ditto.
962 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
963 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
964 Fix argument passing strategy.
965 (sh_push_dummy_call_nofpu): Ditto.
967 2003-10-01 Andrew Cagney <cagney@redhat.com>
969 * value.h (register_value_being_returned): Declare. Replace
970 "value_being_returned".
971 * infcall.c (call_function_by_hand): Use
972 register_value_being_returned.
973 * infcmd.c (print_return_value): Call
974 "register_value_being_returned", handle struct return locally.
975 * values.c (register_value_being_returned): New function. Replace
976 "value_being_returned".
978 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
980 * linux-proc.c (linux_do_registers): New function.
981 (linux_make_note_section): Use linux_do_registers in case of
982 single threaded inferior programs.
984 2003-10-01 Andrew Cagney <cagney@redhat.com>
986 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
987 use STRUCT_ADDR. When not using "struct return convention", pass
988 "0" to "value_being_returned". Add FIXMEs.
989 * infcmd.c (print_return_value): Pass an explicit 0/1 to
990 value_being_returned. Add comments.
991 * values.c (value_being_returned): Add fixme.
992 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
993 (hppa_value_returned_from_stack): Add FIXME.
995 2003-09-30 David Carlton <carlton@kealia.com>
997 * dwarf2read.c (struct die_info): Add 'parent' field; replace
998 'has_children' and 'next' by 'child' and 'sibling'.
999 (read_comp_unit): Rework algorithm, breaking body into
1000 read_die_and_children and read_die_and_siblings.
1001 (read_die_and_children, read_die_and_siblings): New.
1002 (read_full_die): Add 'has_children' argument; set it instead of
1003 the die's 'has_children' field. Minor formatting cleanup.
1004 (free_die_list): Use die->child and die->sibling instead of
1006 (dump_die_list): Ditto.
1007 (sibling_die): Use die->sibling.
1008 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1009 'has_children' and 'next' fields.
1010 (process_die, read_file_scope, read_func_scope)
1011 (read_lexical_block_scope, read_structure_scope)
1012 (read_enumeration, read_array_type, read_common_block)
1013 (read_namespace, read_subroutine_type, dump_die): Ditto.
1015 2003-09-30 Andrew Cagney <cagney@redhat.com>
1017 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1020 2003-09-30 Andrew Cagney <cagney@redhat.com>
1022 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1023 REGISTER_VIRTUAL_SIZE.
1024 * gdbarch.h, gdbarch.c: Regenerate.
1025 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1026 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1027 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1029 2003-09-29 Andrew Cagney <cagney@redhat.com>
1031 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1032 DEPRECATED_REGISTER_VIRTUAL_TYPE.
1033 * gdbarch.h, gdbarch.c: Regenerate.
1034 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1035 * sh64-tdep.c, sparc-tdep.c: Update.
1037 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1038 * remote-vxmips.c (vx_read_register): Ditto.
1039 * remote-vx68.c (vx_read_register): Ditto.
1040 * gnu-nat.c (inf_validate_procs): Ditto.
1042 2003-09-29 J. Brobecker <brobecker@gnat.com>
1044 * infcall.c (call_function_by_hand): Fix build failure
1045 introduced in the previous change to this file.
1047 2003-09-29 Andrew Cagney <cagney@redhat.com>
1049 * NEWS: Mention Objective-C.
1051 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
1053 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1054 test if the register has been saved on the stack.
1055 (arm_scan_prologue_cache): When analysing the instruction
1056 "str lr, [sp, #-4]", save the address where lr has been stored.
1058 2003-09-28 Andrew Cagney <cagney@redhat.com>
1060 * frame.c (frame_read_unsigned_register): Delete function.
1061 * frame.h (frame_read_unsigned_register): Delete declaration.
1062 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1063 get_frame_register_unsigned.
1064 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1065 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1066 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1068 * frame.h (frame_read_register): Delete declaration.
1069 * frame.c (frame_read_register): Delete function.
1070 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1071 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1072 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1073 * mips-tdep.c (mips_register_to_value): Ditto.
1074 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1075 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1077 * frame.c (frame_read_signed_register): Delete function.
1078 (frame_read_unsigned_register): Update comments.
1079 * frame.h (frame_read_signed_register): Delete declaration.
1080 * h8300-tdep.c (h8300_print_register): Use
1081 get_frame_register_signed.
1082 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1084 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1085 Rename VALUE_RETURNED_FROM_STACK.
1086 * infcmd.c (print_return_value): Update.
1087 * infcall.c (call_function_by_hand): Update.
1089 2003-09-28 Mark Kettenis <kettenis@gnu.org>
1091 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1092 regcache argument and reverse the order of the other two
1093 arguments. Remove local regcache variable. Determine
1094 architecture from REGCACHE. Update comments.
1095 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1096 reverse the order of the other two arguments. Remove local
1097 regcache variable. Determine architecture from REGCACHE. Update
1099 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1100 prototypes. Update comments.
1101 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1103 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1105 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1106 * i386-interix-nat.c (supply_fpregset): Update.
1107 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1108 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1109 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1110 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1111 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1113 * i386obsd-tdep.c (fetch_core_registers): Update.
1114 * i386v4-nat.c (supply_fpregset): Update.
1115 * x86-64-linux-nat.c (supply_fpregset): Update.
1116 * x86-64-linux-tdep.c (fetch_core_registers): Update.
1118 2003-09-27 Mark Kettenis <kettenis@gnu.org>
1120 * i386-tdep.h: Put opaque declarations in alphabetical
1121 order. Remove spurious whitespace.
1122 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1123 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1124 * i386-tdep.c (MM0_REGNUM): Remove define.
1125 (i386_mmx_regnum_p): Add gdbarch argument.
1126 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1127 Rewrite using new macro definitions for FPU/SSE registers.
1128 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1129 definitions from i387-tdep.h.
1130 (i386_register_name): Update.
1131 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1132 new macro definitions for FPU/SSE registers.
1133 (i386_extract_return_value): Determine whether floating-point
1134 registers are present by examining REGCACHE's architecture.
1135 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1136 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1138 (i386_register_type): Update.
1139 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1140 definitions for FPU registers. Use REGCACHE's architecture to
1141 determine the appropriate register numbers.
1142 (i386_pseudo_register_read, i386_pseudo_register_write,
1143 i386_register_reggroup_p): Update.
1144 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1146 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1147 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1148 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1149 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1150 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1151 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1153 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1154 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1155 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1156 definitions for FPU/SSE registers.
1157 (FXSAVE_MXCSR_ADDR): New define.
1158 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1160 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1161 (I387_ST0_REGNUM): Define.
1163 * regcache.h (get_regcache_arch): New prototype.
1164 * regcache.c (get_regcache_arch): New function.
1166 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1169 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1170 Initialize using ARRAY_SIZE.
1172 2003-09-27 Andrew Cagney <cagney@redhat.com>
1174 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1175 "init_frame_pc_default".
1176 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1177 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1178 * vax-tdep.c (vax_gdbarch_init): Update.
1179 * v850-tdep.c (v850_gdbarch_init): Update.
1180 * sh64-tdep.c (sh64_gdbarch_init): Update.
1181 * s390-tdep.c (s390_gdbarch_init): Update.
1182 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1183 * mcore-tdep.c (mcore_gdbarch_init): Update.
1184 * h8300-tdep.c (h8300_gdbarch_init): Update.
1185 * cris-tdep.c (cris_gdbarch_init): Update.
1186 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1188 2003-09-26 Mark Kettenis <kettenis@gnu.org>
1190 * regset.h: New file.
1191 * Makefile.in (regset_h): Add.
1193 2003-09-25 Andrew Cagney <cagney@redhat.com>
1195 * frame.h (deprecated_frame_saved_regs): Rename
1196 get_frame_saved_regs.
1197 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1198 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1199 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1200 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1201 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1203 2003-09-25 Andrew Cagney <cagney@redhat.com>
1205 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1206 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1208 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1209 arm*-*-* do not use the new frame code.
1211 2003-09-25 David Carlton <carlton@kealia.com>
1213 * c-exp.y: Remove 'register' declarations.
1214 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1216 2003-09-25 David Carlton <carlton@kealia.com>
1218 * c-exp.y: Include cp-support.h. Add qualified_type.
1219 (yylex): Delete nested type hack; add comments.
1220 * cp-namespace.c (cp_lookup_nested_type): New function.
1221 * cp-support.h: Declare cp_lookup_nested_type.
1222 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1223 instead of value_struct_elt_for_reference.
1224 * valops.c: Include cp-support.h.
1225 (value_aggregate_elt): New function.
1226 (value_namespace_elt): Ditto.
1227 (value_struct_elt_for_reference): Make static.
1228 * value.h: Delete declaration of value_struct_elt_for_reference;
1229 add declaration for value_aggregate_elt.
1230 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1233 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
1235 * stack.c: Include "reggroups.h".
1236 (frame_info): Only display registers in all_reggroup.
1237 * Makefile.in (stack.o): Update dependencies.
1239 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1241 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1242 "add ip, sp #n" in the prologue.
1243 (arm_scan_prologue): Ditto.
1245 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1247 * MAINTAINERS (write after approval): Add myself.
1249 2003-09-25 Andreas Schwab <schwab@suse.de>
1251 * m68k-tdep.c: Include "dwarf2-frame.h".
1252 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1253 * Makefile.in (m68k-tdep.o): Update dependencies.
1255 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
1257 * sh-tdep.c (struct frame_extra_info): Remove.
1258 (struct sh_frame_cache): New structure.
1259 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1260 (GET_TARGET_REG): Ditto but target register.
1261 (GET_PUSHED_REG): Remove.
1262 (IS_MOV_ARG_TO_REG): New macro.
1263 (IS_MOV_ARG_TO_IND_R14): New macro.
1264 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1265 (IS_MOVW_PCREL_TO_REG): New macro.
1266 (IS_MOVL_PCREL_TO_REG): New macro.
1267 (IS_SUB_REG_FROM_SP): New macro.
1268 (IS_ARG_MOV): Remove.
1269 (IS_MOV_TO_R14): Remove.
1270 (IS_RESTORE_FP): New macro.
1271 (IS_RTS): New macro.
1272 (IS_LDS): New macro.
1273 (IS_MOV_FP_SP): New macro.
1274 (IS_ADD_REG_TO_FP): New macro.
1275 (IS_ADD_IMM_FP): New macro.
1276 (sh_skip_prologue_hard_way): Remove.
1277 (sh_saved_pc_after_call): Remove.
1278 (sh_frame_chain): Remove.
1279 (sh_find_callers_reg): Remove.
1280 (sh_nofp_frame_init_saved_regs): Remove.
1281 (sh_fp_frame_init_saved_regs): Remove.
1282 (sh_init_extra_frame_info): Remove.
1283 (sh_analyze_prologue): New function.
1284 (sh_skip_prologue): Remove deprecated code. Rely on new function
1285 sh_analyze_prologue when after_prologue fails.
1286 (sh_frame_saved_pc): Remove.
1287 (sh_alloc_frame_cache): New function.
1288 (sh_frame_cache): Ditto.
1289 (sh_frame_prev_register): Ditto.
1290 (sh_frame_this_id): Ditto.
1291 (sh_frame_unwind): New structure defining the heuristic frame
1293 (sh_frame_sniffer): New function.
1294 (sh_unwind_sp): Ditto.
1295 (sh_unwind_pc): Ditto.
1296 (sh_unwind_dummy_id): Ditto.
1297 (sh_frame_base_address): Ditto.
1298 (sh_frame_base): New structure defining new frame base code.
1299 (sh_in_function_epilogue_p): New function.
1300 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1301 code and to call all new code instead. Initialize dwarf2 and
1302 heuristic frame sniffer.
1304 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1306 * parser-defs.h (struct exp_descriptor): New definition, containing
1307 language-specific info for printing, prefixifying, dumping, and
1308 evaluating expressions.
1309 (exp_descriptor_standard): Declare new variable.
1310 (print_subexp): Make global and declare here (from expprint.c).
1311 (dump_subexp): Ditto.
1312 (dump_subexp_body_standard): Declare.
1313 (operator_length_standard): Declare.
1314 (op_name_standard): Declare.
1315 (print_subexp): Declare.
1316 (print_subexp_standard): Declare.
1318 * language.h (struct language_defn): Add la_exp_desc field to hold
1319 pointer to table for language-specific operators.
1320 Remove evaluate_exp field, which is now in struct exp_descriptor.
1322 * parse.c (operator_length): Move most code to new
1323 operator_length_standard function. Use language-specific information.
1324 (operator_length_standard): New function taking most code from
1326 (exp_descriptor_standard): New constant.
1328 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
1329 and OP_EXTENDED_LAST.
1331 * expprint.c (print_subexp): Use language-specific print_subexp.
1332 Make global; remove static declaration.
1333 Move most code to print_subexp_standard.
1334 (print_subexp_standard): New function, containing code formerly in
1336 (op_name): Add expression to argument signature.
1337 Use langauge-specific op_name.
1338 Move most code to op_name_standard.
1339 (op_name_standard): New function, containing code formerly in op_name.
1340 (dump_subexp): Use new version of op_name function.
1341 Use language-specific dump_subexp_body, and move most existing code to
1342 dump_subexp_body_standard.
1343 (dump_raw_expression): Use new op_name interface.
1344 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1345 (dump_subexp_body_standard): New function, containing code formerly
1346 in dump_subexp_body.
1348 * language.c (unknown_language): Add default la_exp_desc field and
1349 remove evaluate_exp field.
1350 (auto_language): Ditto.
1351 (local_language): Ditto.
1352 * f-lang.c (f_language_defn): Ditto.
1353 * c-lang.c (c_language_defn): Ditto.
1354 (cplus_language_defn): Ditto.
1355 (asm_language_defn): Ditto.
1356 (minimal_language_defn): Ditto.
1357 * p-lang.c (pascal_language_defn): Ditto.
1358 * m2-lang.c (m2_language_defn): Ditto.
1359 * objc-lang.c (objc_language_defn): Ditto.
1361 * jv-lang.c (exp_descriptor_java): New variable, containing
1362 Java-specific expression evaluator.
1363 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1365 * scm-lang.c (exp_descriptor_scm): New variable, containing
1366 Scheme-specific expression evaluator.
1367 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1369 * objc-lang.c (print_object_command): Take evaluate_exp from the
1372 * Makefile.in (eval.o): Add dependency on parser-defs.h.
1374 * eval.c: Include parser-defs.h for the full declaration of
1376 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
1378 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1380 * parser-defs.h (operator_length): Declare.
1382 * parse.c (length_of_subexp): Use operator_length to get operator
1383 lengths and arities for operators.
1384 Move most code to new operator_length function.
1385 (operator_length): New function absorbing most code from
1387 (prefixify_subexp): Remove large case and use operator_length instead.
1388 (parse_exp_1): Use renamings:
1389 dump_prefix_expression => dump_raw_expression and
1390 dump_postfix_expression => dump_prefix_expression.
1392 * expression.h (dump_prefix_expression): Rename to ...
1393 (dump_raw_expression): New name.
1394 (dump_postfix_expression): Rename to ...
1395 (dump_prefix_expression): New name.
1397 * expprint.c (dump_subexp): Make global. Add comment.
1398 Move most existing code to dump_subexp_body.
1399 (dump_subexp_body): New function.
1400 (dump_prefix_expression): Rename to dump_raw_expression.
1401 Remove attempt to print the expression via print_expression: it can't
1402 work before the expression is prefixified.
1403 (dump_raw_expression): Renamed from dump_prefix_expression.
1404 (dump_postfix_expression): Rename to dump_prefix_expression, since
1405 that's what it does.
1406 Remove 'note' parameter, since this routine must be used on
1407 prefixified expression.
1408 (dump_prefix_expression): Renamed from dump_postfix_expression.
1410 2003-09-22 Jim Blandy <jimb@redhat.com>
1412 * dwarf2read.c (read_array_type): When building the type for an
1413 array of unspecified length, make sure to choose the upper bound
1414 so that the array's total length comes out to be zero --- that's
1415 how we represent such arrays.
1417 2003-09-22 Michael Chastain <mec@shout.net>
1419 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1421 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1423 * top.c (quit_force): Fix indirect call to quit_target so
1424 a struct qt_args pointer is passed.
1426 2003-09-22 Andrew Cagney <cagney@redhat.com>
1428 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1429 * arch-utils.c (init_frame_pc_noop): Delete function.
1430 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1432 * mips-tdep.c (mips_gdbarch_init): Ditto.
1433 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1434 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1436 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1437 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1439 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1441 2003-09-22 Anthony Green <green@redhat.com>
1443 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1446 2003-09-20 Andrew Cagney <cagney@redhat.com>
1448 * breakpoint.c: Eliminate ARGSUSED.
1449 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1450 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1451 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1452 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1453 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1454 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1455 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1456 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1457 * wince.c, remote-vx.c: Ditto.
1459 * cli/cli-script.c: Remove "register" attributes.
1460 * config/pa/tm-hppa.h: Ditto.
1461 * cli/cli-decode.c: Ditto.
1462 * cli/cli-cmds.c: Ditto.
1464 2003-09-19 Andrew Cagney <cagney@redhat.com>
1466 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1467 DEPRECATED_NPC_REGNUM.
1468 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1470 2003-09-19 Christopher Faylor <cgf@redhat.com>
1472 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1474 2003-09-19 Jim Blandy <jimb@redhat.com>
1476 * macrotab.c (macro_include): Use the correct comparison to find
1477 the appropriate place for this inclusion in the list.
1479 2003-09-19 Andrew Cagney <cagney@redhat.com>
1481 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1482 (DEPRECATED_HPUX_TEXT_END): Define.
1483 (deprecated_hpux_text_end): Declare.
1484 (struct target_ops): Declare opaque.
1485 * hppah-nat.c (text_end): Make static.
1486 (deprecated_hpux_text_end): New function.
1487 * exec.c (text_end): Delete global variable.
1488 (NEED_TEXT_START_END): Do not define.
1489 (exec_file_attach): Replace code computing "text_end" code with
1490 call to DEPRECATED_HPUX_TEXT_END.
1492 2003-09-19 Andrew Cagney <cagney@redhat.com>
1494 * utils.c (align_up, align_down): New functions.
1495 * defs.h (align_up, align_down): Declare.
1496 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1497 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1499 (round_up, round_down): Delete functions.
1500 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1502 (ROUND_DOWN, ROUND_UP): Delete macros.
1503 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1504 * h8300-tdep.c: Replace "round_up" and "round_down" with
1505 "align_up" and "align_down".
1506 (round_up, round_down): Delete macros.
1507 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1509 (ROUND_UP, ROUND_DOWN): Delete macros.
1511 2003-09-18 J. Brobecker <brobecker@gnat.com>
1513 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1514 hard-coded constant. Use the proper machine name instead.
1516 2003-09-17 Andrew Cagney <cagney@redhat.com>
1518 * sparc-tdep.c (legacy_register_name): Delete function.
1519 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1520 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1521 * infcmd.c (gdb_register_name): Delete variable.
1522 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1523 REGISTER_NAME and "tm.h".
1524 * gdbarch.h, gdbarch.c: Regenerate.
1525 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1526 REGISTER_NAMES in comments.
1527 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1528 * m68klinux-nat.c (regmap): Ditto.
1530 2003-09-17 Jim Blandy <jimb@redhat.com>
1532 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1534 2003-09-17 Andrew Cagney <cagney@redhat.com>
1536 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1537 (ppcnbsd_init_abi): Set "use_struct_convention" to
1538 "ppcnbsd_use_struct_convention".
1540 2003-09-17 Mark Kettenis <kettenis@gnu.org>
1542 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1543 * gdbarch.h, gdbarch.c: Regenerate.
1544 (stabs_argument_has_addr): New architecture method.
1545 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1546 * arch-utils.c: Include "buildsym.h".
1547 (default_stabs_argument_has_addr): New function.
1548 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1549 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1551 2003-09-17 Andrew Cagney <cagney@redhat.com>
1553 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1554 * gdbarch.h, gdbarch.c: Regenerate.
1555 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1556 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1557 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1558 * sparcnbsd-tdep.c: Update.
1560 2003-09-17 Andrew Cagney <cagney@redhat.com>
1562 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1563 * gdbarch.h, gdbarch.c: Regenerate.
1564 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1565 * d10v-tdep.c, frame.c: Update.
1566 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1567 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1568 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1569 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1570 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1571 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1572 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1573 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1574 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1575 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1576 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1577 * config/pa/nm-hppah.h: Update.
1579 2003-09-16 Andrew Cagney <cagney@redhat.com>
1581 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1582 "use_struct_convention" to "ppc_linux_use_struct_convention".
1583 (ppc_linux_use_struct_convention): New function.
1584 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1585 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1586 "rs6000_use_struct_convention".
1587 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1589 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1592 2003-09-16 Andrew Cagney <cagney@redhat.com>
1594 * buildsym.c: Remove more occurances of "register".
1595 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1596 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1597 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1598 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1599 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1600 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1601 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1602 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1604 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
1606 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1607 numbers to enumeration values.
1608 * sh-tdep.c: Accomodate above change.
1609 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1610 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1611 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1612 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1613 (IS_FPUSH): Rename from IS_FMOV.
1614 (sh_extract_struct_value_address): Remove useless comment.
1615 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1616 instead of own local values.
1617 (sh_dump_tdep): Remove.
1618 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1619 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1621 2003-09-15 Andrew Cagney <cagney@redhat.com>
1623 * doublest.c (convert_floatformat_to_doublest): No longer need to
1624 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1626 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
1628 * values.c (unpack_double): Call floatformat_is_valid.
1630 2003-09-15 Mark Kettenis <kettenis@gnu.org>
1632 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1633 ps_strings into a long.
1635 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1636 _initialize_am64fbsd_nat.
1638 2003-09-15 Kevin Buettner <kevinb@redhat.com>
1640 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1641 associated with DW_AT_ranges attribute is out of bounds.
1643 2003-09-15 David Lecomber <dsl@sources.redhat.com>
1645 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1647 2003-09-14 Michael Chastain <mec@shout.net>
1649 * config/m68k/nm-apollo68v.h: Delete.
1650 * config/m68k/xm-apollo68v.h: Delete.
1652 2003-09-14 Andrew Cagney <cagney@redhat.com>
1654 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1655 * dcache.c: Update copyrights and descriptions.
1656 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1658 2003-09-14 Andrew Cagney <cagney@redhat.com>
1660 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1661 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1663 2003-09-14 Andrew Cagney <cagney@redhat.com>
1665 * alpha-nat.c: Remove some occurances of "register".
1666 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1667 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1668 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1669 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1670 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1671 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1672 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1673 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1674 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1675 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1676 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1677 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1678 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1679 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1680 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1681 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1682 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1683 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1684 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1685 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1686 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1687 * values.c, vax-tdep.c, xcoffread.c: Ditto.
1689 2003-09-13 Andrew Cagney <cagney@redhat.com>
1691 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1692 * ppc-tdep.h (struct regcache): Declare opaque.
1693 * objfiles.h (struct objfile_data): Declare opaque.
1694 * cp-support.h (struct objfile): Declare opaque.
1695 * linux-nat.h (target_waitstatus): Declare opaque.
1697 2003-09-14 Mark Kettenis <kettenis@gnu.org>
1699 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1700 (stabs_argument_has_addr): New architecture method.
1701 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1702 * arch-utils.c: Include "buildsym.h".
1703 (default_stabs_argument_has_addr): New function.
1704 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1705 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1707 * cris-tdep.c (cris_gdbarch_init): Set
1708 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1709 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1710 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1711 * mips-tdep.c (mips_gdbarch_init): Likewise.
1712 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1713 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1715 2003-09-13 Andrew Cagney <cagney@redhat.com>
1717 * values.c (using_struct_return): Delete "function" and "funcaddr"
1719 * value.h (using_struct_return): Update declaration.
1720 * infcmd.c (finish_command_continuation): Update.
1721 (finish_command): Update.
1722 * infcall.c (call_function_by_hand): Update.
1723 * eval.c (evaluate_subexp_standard): Update.
1725 2003-09-13 Christopher Faylor <cgf@redhat.com>
1727 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1728 SSE registers since gdb will not operate correctly without this.
1729 Restore include file ordering munged in previous change.
1730 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1732 2003-09-13 Mark Kettenis <kettenis@gnu.org>
1734 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1735 REG_STRUCT_HAS_ADDR.
1736 * gdbarch.c, gdbarch.h: Updated.
1737 * infcall.c (call_function_by_hand): Update.
1738 * stabsread.c (define_symbol): Updated.
1740 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1742 2003-09-12 Christopher Faylor <cgf@redhat.com>
1744 * win32-nat.c: Reorganize so that defines used by target headers are
1745 actually defined by the system headers.
1746 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1747 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1749 2003-09-12 Jim Blandy <jimb@redhat.com>
1751 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1752 the file has no .data, .bss, or .rodata sections. Instead wait
1753 until we see a variable alleged to live in one of those sections.
1755 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1756 .bss section, presume that any variables we find live in the
1759 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1760 offsets for global and static variables.
1762 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1763 symbol types are, by definition, in the .data section, so it is
1764 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1765 If there is no .data section, there should be no N_DATA or N_DATA
1768 2003-09-12 Mark Kettenis <kettenis@gnu.org>
1770 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1771 (amd64fbsd_sigcontext_addr): Rewrite.
1772 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1773 with correct values.
1774 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1775 (amd64fbsd_init_abi): Fix typo.
1777 2003-09-12 Andrew Cagney <cagney@redhat.com>
1779 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1780 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1782 2003-09-12 Andrew Cagney <cagney@redhat.com>
1784 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1785 "entry_file_highpc". Update comments.
1786 * defs.h (deprecated_inside_entry_file): Rename
1787 "inside_entry_file".
1788 * blockframe.c (deprecated_inside_entry_file): Rename
1789 "inside_entry_file".
1790 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1791 * vax-tdep.c (vax_frame_chain): Update.
1792 * sh64-tdep.c (sh64_frame_chain): Update.
1793 * sh-tdep.c (sh_frame_chain): Update.
1794 * rs6000-tdep.c (rs6000_frame_chain): Update.
1795 * ns32k-tdep.c (ns32k_frame_chain): Update.
1796 * mips-tdep.c (mips_frame_chain): Update.
1797 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1798 * m32r-tdep.c (m32r_frame_this_id): Update.
1799 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1800 * frv-tdep.c (frv_frame_this_id): Update.
1801 * d10v-tdep.c (d10v_frame_this_id): Update.
1802 * cris-tdep.c (cris_frame_chain): Update.
1803 * blockframe.c (legacy_frame_chain_valid): Update.
1804 * avr-tdep.c (avr_frame_this_id): Update.
1805 * arm-tdep.c (arm_prologue_this_id): Update.
1806 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1807 * objfiles.c (objfile_relocate): Update.
1808 * mipsread.c (mipscoff_symfile_read): Update.
1809 (mipscoff_symfile_read): Update.
1810 * mdebugread.c (parse_partial_symbols): Update.
1811 * dwarfread.c (read_file_scope): Update.
1812 * dwarf2read.c (read_file_scope): Update.
1813 * dbxread.c (read_dbx_symtab): Update.
1814 (read_dbx_symtab): Update.
1815 * coffread.c (complete_symtab): Update.
1817 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1819 * top.c (quit_target): New static helper function.
1820 (quit_force): Moved code to quit_target(). Call quit_target()
1821 via catch_errors() to catch errors during quit.
1823 2003-09-11 David Carlton <carlton@kealia.com>
1825 * buildsym.c (finish_block): Use allocate_block to allocate the
1827 * mdebugread.c (new_block): Add FIXME.
1829 2003-09-11 David Carlton <carlton@kealia.com>
1831 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1832 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1833 (recursive_dump_type): Ditto.
1834 * printcmd.c (print_formatted): Ditto.
1835 * typeprint.c (print_type_scalar): Ditto.
1836 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1837 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1838 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1839 maint_cplus_cmd_list.
1840 * cp-support.c: Make maint_cplus_cmd_list extern.
1841 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1843 (lookup_symbol_file): Look in possible namespace blocks when
1845 (initialize_namespace_symtab): New.
1846 (get_possible_namespace_block, free_namespace_block)
1847 (check_possible_namespace_symbols)
1848 (check_possible_namespace_symbols_loop)
1849 (check_one_possible_namespace_symbol)
1850 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1851 (_initialize_cp_namespace): Ditto.
1852 * block.h: Declare allocate_block.
1853 * block.c (allocate_block): New.
1854 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1856 * symfile.h: Update declaration of add_psymbol_to_list.
1857 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1859 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1860 scan_partial_symbols_call.
1861 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1863 (add_partial_symbol): If necessary, scan mangled names for names
1865 (add_partial_namespace): Add NAMESPACE argument; generate partial
1866 symbols associated to namespaces.
1867 (add_partial_enumeration): Add NAMESPACE argument.
1868 (new_symbol): Allow namespace syms.
1869 (read_namespace): Generate namespace syms.
1870 * objfiles.h: Add opaque declaration of struct symtab.
1871 (struct objfile): Add cp_namespace_symtab member.
1872 * objfiles.c (allocate_objfile): Set
1873 objfile->cp_namespace_symtab.
1874 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1875 dictionary_h, command_h.
1877 2003-09-11 Andrew Cagney <cagney@redhat.com>
1879 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1880 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1881 near the function's end.
1882 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1883 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1884 regcache_raw_write_signed to set SP_REGNUM.
1886 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
1888 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1889 orig_addrs is set up properly.
1891 2003-09-11 Andrew Cagney <cagney@redhat.com>
1893 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1894 * gdbarch.h, gdbarch.c: Re-generate.
1895 * infcall.c (call_function_by_hand): Update.
1896 * hppa-tdep.c (hppa_push_arguments): Update.
1897 * ada-lang.c (place_on_stack): Update.
1898 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1899 * sparc-tdep.c (sparc_gdbarch_init): Update.
1900 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1901 * hppa-tdep.c (hppa_gdbarch_init): Update.
1902 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1905 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
1907 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1908 register do need a frame.
1910 2003-09-11 Andrew Cagney <cagney@redhat.com>
1912 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1913 buildable since GDB 5.0.
1914 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1915 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1916 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1917 * irix4-nat.c: Delete file.
1918 * config/mips/irix4.mh: Delete file.
1919 * config/mips/irix3.mh: Delete file.
1920 * config/mips/irix3.mt: Delete file.
1921 * config/mips/tm-irix3.h: Delete file.
1922 * config/mips/nm-irix3.h: Delete file.
1923 * config/mips/xm-irix3.h: Delete file.
1924 * config/mips/nm-irix4.h: Delete file.
1925 * config/mips/xm-irix4.h: Delete file.
1926 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1928 2003-09-10 J. Brobecker <brobecker@gnat.com>
1930 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1931 * Makefile.in (hppa-tdep.o): Update dependencies.
1933 2003-09-10 James E Wilson <wilson@specifixinc.com>
1935 * MAINTAINERS: Change my e-mail address. Move to paper trail
1938 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1940 * MAINTAINERS (frv): New ISA entry.
1942 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1944 * frv-tdep.c (dis-asm.h): Include.
1945 * Makefile.in (frv-tdep.o): Update dependencies.
1947 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1949 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1950 Fix typo for high range of floating registers.
1952 2003-09-09 David Carlton <carlton@kealia.com>
1954 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1955 highpc initialization here out of scan_partial_symbols.
1956 (scan_partial_symbols): Restructure into a recursive version,
1957 calling add_partial_namespace and add_partial_enumeration when
1959 (add_partial_namespace): New.
1960 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1962 2003-09-09 Andrew Cagney <cagney@redhat.com>
1964 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1965 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1966 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1967 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1969 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1970 (rs6000_push_dummy_call): Set the "TOC" register.
1972 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1973 methods "max_register_raw_size", "max_register_virtual_size" or
1974 "register_virtual_size".
1976 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1978 * MAINTAINERS: Update my e-mail address.
1980 2003-09-09 Andrew Cagney <cagney@redhat.com>
1982 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1983 (rs6000_push_dummy_call): Store the struct return address.
1984 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1986 2003-09-09 Andrew Cagney <cagney@redhat.com>
1988 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1989 "ppc_sysv_abi_push_arguments".
1990 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1991 "ppc_sysv_abi_push_arguments".
1992 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1993 instead of "push_arguments".
1994 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1996 2003-09-09 Andrew Cagney <cagney@redhat.com>
1998 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1999 instead of CALL_DUMMY_ADDRESS.
2001 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2003 * p-lang.c: Eliminate "register".
2005 * expprint.c: Ditto.
2008 * language.c: Ditto.
2011 * scm-lang.c: Ditto.
2012 * objc-lang.c: Ditto.
2014 2003-09-09 Nick Clifton <nickc@redhat.com>
2016 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2018 2003-09-04 Andrew Cagney <cagney@redhat.com>
2020 * avr-tdep.c: Include "dis-asm.h".
2021 * cris-tdep.c: Include "dis-asm.h".
2022 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2023 instead of corresponding typedef.
2024 * h8300-tdep.c: Include "dis-asm.h".
2025 * ia64-tdep.c: Include "dis-asm.h".
2026 * i386-tdep.c: Include "dis-asm.h".
2027 (i386_print_insn): Use "struct disassemble_info" instead of
2028 corresponding typedef.
2029 * m68k-tdep.c: Include "dis-asm.h".
2030 * mcore-tdep.c: Include "dis-asm.h".
2031 * mips-tdep.c: Include "dis-asm.h".
2032 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2033 instead of corresponding typedef.
2034 * ns32k-tdep.c: Include "dis-asm.h".
2035 * s390-tdep.c: Include "dis-asm.h".
2036 * sparc-tdep.c: Include "dis-asm.h".
2037 * vax-tdep.c: Include "dis-asm.h".
2038 * v850-tdep.c: Include "dis-asm.h".
2039 * mn10300-tdep.c: Include "dis-asm.h".
2040 * rs6000-tdep.c: Include "dis-asm.h".
2041 * xstormy16-tdep.c: Include "dis-asm.h".
2042 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2043 print_insn_xstormy16.
2044 * Makefile.in (v850-tdep.o): Update dependencies.
2045 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2046 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2047 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2048 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2049 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2050 (gdbarch_h): Remove $(dis_asm_h).
2051 * disasm.c: Include "dis-asm.h".
2052 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2053 corresponding typedef.
2054 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2055 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2056 * gdbarch.sh: Do not include "dis-asm.h".
2057 (struct disassemble_info): Declare opaque.
2058 (TARGET_PRINT_INSN): Update declaration.
2059 * gdbarch.h, gdbarch.c: Re-generate.
2061 2003-09-08 Andrew Cagney <cagney@redhat.com>
2063 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2064 CALL_DUMMY_ADDRESS, change to a predicate.
2065 * gdbarch.h, gdbarch.c: Re-generate.
2066 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2067 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2068 * infcall.c (call_function_by_hand): Ditto.
2069 * sparc-tdep.c (sparc_push_return_address): Ditto.
2070 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2071 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2072 CALL_DUMMY_ADDRESS with entry_point_address.
2073 * v850-tdep.c (v850_push_return_address): Ditto.
2074 * s390-tdep.c (s390_push_return_address): Ditto.
2075 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2076 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2077 * mcore-tdep.c (mcore_push_return_address): Ditto.
2078 * cris-tdep.c (cris_push_return_address): Ditto.
2079 * arm-tdep.c (arm_push_return_address): Ditto.
2081 2003-09-08 Andrew Cagney <cagney@redhat.com>
2083 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2084 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2085 and REG_UNMODIFIED to REG_SAME_VALUE.
2086 (execute_cfa_program): Update.
2087 (dwarf2_frame_cache): Update. Initialize table to
2088 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2090 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2092 2003-09-08 Andrew Cagney <cagney@redhat.com>
2094 * gnu-nat.c: Remove "inline" function attribute.
2095 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2097 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2099 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2102 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2104 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2105 (frame_extra_info): Rename this struct to frv_unwind_cache.
2106 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2107 Add fields ``prev_sp'' and ``base''.
2108 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2109 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2110 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2112 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2113 Revise all callers. Fill in the unwind cache argument and make
2114 other adjustments to account for new frame mechanisms.
2115 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2116 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2117 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2118 (frv_frame_unwind, frv_frame_base): New structs.
2119 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2120 additional arguments expected by this method and adjust function
2122 (frv_gdbarch_init): Remove calls to the following functions:
2123 set_gdbarch_deprecated_init_frame_pc(),
2124 set_gdbarch_deprecated_saved_pc_after_call(),
2125 set_gdbarch_deprecated_frame_chain(),
2126 set_gdbarch_deprecated_frame_saved_pc(),
2127 set_gdbarch_deprecated_frame_init_saved_regs(),
2128 set_gdbarch_deprecated_push_arguments(),
2129 set_gdbarch_deprecated_push_return_address(),
2130 set_gdbarch_deprecated_pop_frame(),
2131 set_gdbarch_deprecated_call_dummy_words(),
2132 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2133 set_gdbarch_deprecated_init_extra_frame_info(),
2134 set_gdbarch_deprecated_dummy_write_sp(), and
2135 set_gdbarch_deprecated_pc_in_call_dummy().
2136 Add calls to the following functions:
2137 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2138 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2139 frame_base_set_default().
2140 * Makefile.in (frv-tdep.o): Update dependencies.
2142 2003-09-09 Mark Kettenis <kettenis@gnu.org>
2144 * dwarf2-frame.c (read_encoded_value): Add support for
2145 DW_EH_PE_aligned encoding.
2147 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2149 * infrun.c (normal_stop): Don't print a message if the inferior
2152 2003-09-08 Jim Blandy <jimb@redhat.com>
2154 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2155 * dbxread.c: #include "gdb_assert.h".
2156 (read_dbx_symtab): If the objfile has no .data section, use the
2157 section index for the .bss section instead.
2159 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2161 * frame.c (deprecated_safe_get_selected_frame): New function.
2162 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2163 * findvar.c (read_var_value): Call it.
2165 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
2167 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2168 (sh64-tdep.o): Add dependencies.
2169 * configure.tgt: Add FIXME to sh-*-linux*.
2170 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2171 (sh_gdbarch_init): Always set correct sh_show_regs function
2172 pointer. Call sh64_gdbarch_init() if machine type is sh5.
2173 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2174 * sh64-tdep.c: New file, containing all sh64 related code from
2176 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2177 * config/sh/linux.mt (TDEPFILES): Ditto.
2178 * config/sh/nbsd.mt (TDEPFILES): Ditto.
2179 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2180 * config/sh/wince.mt (TDEPFILES): Ditto.
2182 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2184 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2185 (stop_wait_callback): Handle !lp->signalled also.
2186 (lin_lwp_has_pending, flush_callback): New functions.
2187 (lin_lwp_wait): Call flush_callback.
2188 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2189 (linux_proc_pending_signals): New function.
2190 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2192 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2194 From Nick Kelsey <nickk@ubicom.com>:
2195 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2196 when the stop PC is at the beginning of a function also.
2198 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
2200 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2201 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2203 2003-09-06 Mark Kettenis <kettenis@gnu.org>
2205 * sol-thread.c: Include "gdb_string.h".
2207 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2209 * gcore.c: Reorder include files in alphabetical order. Include
2210 "gdb_assert.h". Various coding style fixes.
2211 (derive_stack_segment, derive_heap_segment): Replace check for
2212 non-null BOTTOM and TOP with gdb_assert.
2213 (derive_heap_segment): Replace check for successful creation of
2214 ZERO with gdb_assert.
2215 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2217 2003-09-04 Andrew Cagney <cagney@redhat.com>
2219 * thread-db.c (verbose_dlsym): New function.
2220 (thread_db_load): Use verbose_dlsym
2221 (thread_db_new_objfile): Print that libthread_db was loaded, and
2222 that thread debugging was enabled.
2224 2003-09-04 Andrew Cagney <cagney@redhat.com>
2226 * configure.tgt: Add "mips64*-*-*" target. Delete
2227 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2228 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2229 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2230 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2231 mips*-sony-*, and mips64*-*-elf* targets.
2232 * config/mips/embedl.mt: Delete file.
2233 * config/mips/embedl64.mt: Delete file.
2234 * config/mips/mips.mt: Delete file.
2235 * config/mips/mips64.mt: Delete file.
2236 * config/mips/tm-embed.h: Delete file.
2237 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2238 * config/mips/embed64.mt: Delete out-of-date comment.
2240 2003-09-04 Andrew Cagney <cagney@redhat.com>
2242 * hppa-tdep.c (hppa_gdbarch_init): Set
2243 "have_nonsteppable_watchpoint".
2244 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2245 * mips-tdep.c (mips_dump_tdep): Do not print
2246 HAVE_NONSTEPPABLE_WATCHPOINT.
2247 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2248 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2249 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2250 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2252 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2254 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2255 unused code. Add comment.
2257 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2259 * breakpoint.c (watchpoint_check): Check for pc being in an
2260 epilogue if watchpoint frame couldn't be found.
2262 2003-09-04 Andrew Cagney <cagney@redhat.com>
2264 * Makefile.in: Re-generate all dependencies.
2266 2003-09-03 Andrew Cagney <cagney@redhat.com>
2268 * arch-utils.h (legacy_print_insn): Delete declaration.
2269 * arch-utils.c (legacy_print_insn): Delete function.
2270 * disasm.c (deprecated_tm_print_insn_info): Delete.
2271 (_initialize_disasm): Delete function, contained code initializing
2272 deprecated_tm_print_insn_info.
2273 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2274 (deprecated_tm_print_insn_info): Delete.
2275 (TARGET_PRINT_INSN): Do not provide a default.
2276 * gdbarch.h, gdbarch.c: Re-generate.
2278 2003-09-03 Andrew Cagney <cagney@redhat.com>
2280 * disasm.c (fprintf_disasm): New function.
2281 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2282 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2283 reverts 2003-08-14 change.
2284 (_initialize_disasm): Call "init_disassemble_info", instead of
2285 INIT_DISASSEMBLE_INFO_NO_ARCH.
2287 2003-09-03 Michael Snyder <msnyder@redhat.com>
2289 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2291 2003-09-03 Andrew Cagney <cagney@redhat.com>
2293 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2294 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2295 * symfile.c (syms_from_objfile): Update.
2296 (reread_symbols): `Update
2297 * exec.c (exec_file_attach): Update.
2298 (exec_file_attach): Update.
2299 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2301 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2303 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2305 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2307 (arm_get_cache): Delete macro.
2308 (struct arm_prologue_cache): Update comments. Make saved_regs into
2309 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2311 (thumb_scan_prologue): Update for cache changes. Don't call
2312 DEPRECATED_PC_IN_CALL_DUMMY.
2313 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2314 argument and use it in desperation search for our prologue. Do not
2315 search past the specified PC.
2316 (arm_make_prologue_cache): Simplify.
2318 (arm_prologue_this_id, arm_prologue_prev_register)
2319 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2320 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2321 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2322 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2323 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2325 (arm_frame_chain_valid, arm_find_callers_reg)
2326 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2327 (arm_pop_frame): Delete obsolete methods.
2328 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2330 (arm_gdbarch_init): Update for new frame methods. Register prologue
2331 and sigtramp unwinders. Set the default frame base method.
2333 * Makefile.in (arm-tdep.o): Update dependencies.
2334 * varobj.c (find_frame_addr_in_frame_chain): Call
2335 get_frame_base_address.
2336 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2338 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2340 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2341 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2342 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2343 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2344 Take NEXT_FRAME and CACHE arguments. Call
2345 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2346 Set unwound_pc in CACHE instead of modifying the frame argument.
2347 Don't bother checking the frame type when looking for sigtramp
2349 (arm_make_prologue_cache, arm_frame_chain)
2350 (arm_init_extra_frame_info): New functions.
2352 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2354 * arm-tdep.c (arm_get_cache): Define.
2355 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2356 unwound_sp, unwound_pc, and saved_regs.
2357 (thumb_scan_prologue): Take a cache instead of the frame.
2358 (arm_scan_prologue): Likewise.
2359 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2360 instead of a temporary frame.
2361 (arm_init_extra_frame_info): Allocate and use a cache.
2362 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2364 2003-09-03 Andrew Cagney <cagney@redhat.com>
2366 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2367 * config/mips/wince.mt (TM_CLIBS): Ditto.
2368 * config/sh/wince.mt (TM_CLIBS): Ditto.
2369 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2370 * config/sparc/sp64.mt (CC): Delete.
2372 2003-09-03 Andrew Cagney <cagney@redhat.com>
2374 * defs.h: Do not include "arch-utils.h".
2375 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2376 GDB_MULTI_ARCH_PURE.
2377 * configure.in (GDB_MULTI_ARCH): Do not define.
2378 * configure, config.in: Regenerate.
2379 * configure.tgt: Do not set variable "gdb_multi_arch".
2380 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2381 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2382 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2383 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2384 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2385 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2386 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2387 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2388 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2389 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2390 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2391 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2392 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2393 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2394 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2395 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2396 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2397 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
2399 2003-08-30 Michael Chastain <mec@shout.net>
2401 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2402 * config/m68k/nm-hp300hpux.h: Delete.
2403 * config/m68k/tm-hp300hpux.h: Delete.
2404 * config/m68k/xm-hp300hpux.h: Delete.
2405 * config/m68k/xm-hp300bsd.h: Delete.
2406 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2407 tm-hp300hpux.h, xm-hp300hpux.h.
2408 * somsolib.c: Remove comment about hp300 shared libraries.
2410 2003-08-31 Mark Kettenis <kettenis@gnu.org>
2412 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2413 Only define PTRACE_GET_THREAD_AREA is not already defined.
2414 Various style fixes in code and comments and some additional
2415 spelling fixes in comments. Move after functions dealing with
2417 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2420 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2421 frame_unwind_register_unsigned instead of
2422 frame_unwind_unsigned_register.
2424 2003-08-30 Mark Kettenis <kettenis@gnu.org>
2426 * configure.in: Search for gethostbyname in libnsl.
2427 * configure: Regenerated.
2429 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2431 * configure.in: Remove redundant AC_MSG_RESULT in check for
2432 uintptr_t in stdint.h.
2433 * configure: Regenerated.
2435 * amd64-nat.h (struct regcache): Add opaque declaration.
2437 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2438 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2439 Change "register array" to "register cache" in comments.
2440 (x86_64_linux_gregset64_reg_offset): New variable.
2441 (GETREGS_SUPPLIES): Remove macro.
2442 (supply_gregset): Call amd64_supply_native_gregset instead of
2443 x86_64_linux_supply_gregset.
2444 (fill_gregset): Rename `regno' to `regnum'. Call
2445 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2446 (store_regs): Rename `regno' to `regnum'.
2447 (store_fpregs): Rename `regno' to `regnum'.
2448 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2449 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2450 Reorganize function a bit.
2451 (store_inferior_registers): Rename `regno' to `regnum'. Use
2452 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2453 Reorganize function a bit.
2454 (_initialize_x86_64_linux_nat): New function.
2455 * config/i386/x86-64linux.mh.
2457 2003-08-29 Andrew Cagney <cagney@redhat.com>
2459 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2460 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2461 (target_remove_watchpoint): Delete macro.
2462 (target_insert_watchpoint): Delete macro.
2463 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2464 (remote_mips_stopped_by_watchpoint): Delete declaration.
2465 (remote_mips_remove_watchpoint): Delete declaration.
2466 (remote_mips_set_watchpoint): Delete declaration.
2467 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2468 * remote-mips.c (_initialize_remote_mips): Set
2469 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2470 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2471 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2472 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2473 (mips_stopped_by_watchpoint): Rename
2474 remote_mips_stopped_by_watchpoint.
2475 (mips_can_hardware_watchpoint): Rename
2476 remote_mips_can_use_hardware_watchpoint, update function
2479 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2481 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2482 USER_DS. We haven't given them a register number yet.
2484 * amd64-nat.h: New file.
2485 * amd64-nat.c: New file.
2486 * amd64fbsd-nat.c: Include "amd64-nat.h".
2487 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2488 (amd64fbsd32_r_reg_offset): New variable.
2489 (supply_gregset): Simply call amd64_supply_native_gregset.
2490 (fill_gregset): Rename `regno' to `regnum'. Simply call
2491 amd64_collect_native_gregset.
2492 (fill_fpregset): Rename `regno' to `regnum'.
2493 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2494 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2495 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2496 `fpregset_t'. Call amd64_supply_native_gregset instead of
2497 supply_gregset. Call x86_64_supply_fxsave instead of
2499 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2500 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2501 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2502 `fpregset_t'. Call amd64_collect_native_gregset instead of
2503 fill_gregset. Call x86_64_collect_fxsave instead of
2505 (_initialize_am64fbsd_nat): Initialize
2506 amd64_native_gregset32_reg_offset and
2507 amd64_native_gregset64_reg_offset.
2508 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2510 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2511 null pointer. Fix typo in comment.
2513 * regcache.c (supply_register): Reimplement to call
2514 regcache_raw_supply.
2515 (regcache_collect): Reimplement by calling regcache_raw_collect.
2517 2003-08-28 Mark Kettenis <kettenis@gnu.org>
2519 * regcache.c (register_buffer): Consitify first argument.
2520 (regcache_raw_supply, regcache_raw_collect): New
2523 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2525 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2526 by Nathan J. Williams.
2528 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2530 * lin-lwp.c (wait_lwp): New function, copied from
2531 stop_wait_callback. Clean up.
2532 (stop_wait_callback): Use wait_lwp.
2534 2003-08-28 Andrew Cagney <cagney@redhat.com>
2536 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2537 flavour and disassembler options.
2538 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2539 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2540 deprecated_tm_print_insn_info.
2542 2003-08-27 Andrew Cagney <cagney@redhat.com>
2544 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2545 Use target_read_memory.
2546 (s390_get_frame_info): Update. Do not reference
2547 deprecated_tm_print_insn_info.
2548 (s390_check_function_end, s390_is_sigreturn): Ditto.
2550 2003-08-27 Andrew Cagney <cagney@redhat.com>
2552 * Makefile.in (cris-tdep.o): Update dependencies.
2553 * cris-tdep.c: Include "gdb_assert.h".
2554 (cris_gdbarch_init): Set print_insn.
2555 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2556 (cris_delayed_get_disassembler): Simplify, directly call the
2557 disassembler returned by cris_get_disassembler.
2558 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2559 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2560 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2561 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2562 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2563 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2564 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2565 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2566 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2567 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2568 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2569 (gdb_print_insn_sparc): Delete function.
2570 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2571 deprecated_tm_print_insn_info.
2572 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2573 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2574 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2575 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2576 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2577 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2578 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2579 (s390_gdbarch_init): Set print_insn.
2581 2003-08-27 Andrew Cagney <cagney@redhat.com>
2583 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2584 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2585 * infcall.c (call_function_by_hand): Convert the entry point
2586 address into a code address.
2588 2003-08-27 Andrew Cagney <cagney@redhat.com>
2590 * dsrec.c: Include "gdb_string.h".
2591 * Makefile.in (dsrec.o): Update dependencies.
2593 2003-08-27 Michael Chastain <mec@shout.net>
2595 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2597 2003-08-27 Andrew Cagney <cagney@redhat.com>
2599 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2600 (alpha_osf1_init_abi): Do not set call_dummy_address.
2602 2003-08-27 David Carlton <carlton@kealia.com>
2604 From Randolph Chung <tausq@debian.org>:
2605 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2606 compiles with -Wformat-nonliteral -Werror.
2608 2003-08-26 Jim Blandy <jimb@redhat.com>
2610 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2611 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2612 bfd_lookup_symbol, since we only want symbols in code sections.
2613 (look_for_base): Pass zero as the SECT_FLAGS argument to
2614 bfd_lookup_symbol, since we're not concerned about which section
2617 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2619 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
2620 we are frameless or the return address register is already known.
2622 2003-08-26 Andrew Cagney <cagney@redhat.com>
2624 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2625 in size. Add comments.
2627 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2629 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
2630 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
2632 2003-08-26 Jason Merrill <jason@redhat.com>
2634 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2635 case out of #ifdef MIPS block.
2637 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
2640 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2641 available before calling SECT_OFF_TEXT.
2642 * PROBLEMS: Remove description of java/1322.
2644 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2646 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
2647 bof, and nat0-nat127 as pseudo-registers.
2648 (ia64_frame_cache): New struct used to cache frame info.
2649 (ia64_register_reggroup_p): New routine used to override default
2650 register grouping so registers without names are still saved and
2652 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
2654 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2655 (ia64_pseudo_register_write): New routine to write pseudo-registers.
2656 (ia64_alloc_frame_cache): New routine to create a new
2658 (examine_prologue): Change prototype to add next_frame pointer.
2659 Assume frameless until otherwise proven. Verify that the cfm for
2660 current frame matches the cfm that should occur for the prologues
2661 alloc insn and if equal, mark as not frameless. At end of routine,
2662 if not frameless, calculate registers for the previous frame and store
2663 in the cache, if a cache is provided.
2664 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2665 and pass 0 for next_frame.
2666 (ia64_store_return_value): Change to use convert_typed_floating()
2667 instead of calling ia64_convert_to_raw().
2668 (ia64_extract_return_value): Change to use convert_typed_floating()
2669 instead of calling ia64_convert_to_virtual().
2670 (ia64_frame_cache): New routine to support new frame model.
2671 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2672 (ia64_frame_sniffer): Ditto.
2673 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2674 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2675 (ia64_sigtramp_frame_prev_register): Ditto.
2676 (ia64_sigtramp_frame_sniffer): Ditto.
2677 (ia64_frame_base_address): Ditto.
2678 (ia64_extract_struct_value_address): Change to issue error message.
2679 (ia64_frame_align): New routine to align sp.
2680 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2681 (ia64_push_arguments): Removed. Logic moved to
2682 ia64_push_dummy_call().
2683 (ia64_push_return_address): Ditto.
2684 (ia64_unwind_dummy_id): New function.
2685 (ia64_unwind_pc): Ditto.
2686 (ia64_convert_register_p): Ditto.
2687 (ia64_register_to_value): Ditto.
2688 (ia64_value_to_register): Ditto.
2689 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2690 (ia64_register_byte, ia64_register_raw_size): Ditto.
2691 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2692 (ia64_saved_pc_after_call): Ditto.
2693 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2694 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2695 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2696 (ia64_register_convert_to_raw): Ditto.
2697 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2698 (ia64_init_extra_frame_info): Ditto.
2699 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2700 (ia64_gdbarch_init): Remove registering of deprecated functions that
2701 are no longer used. Add registration of new gdbarch functions.
2702 Remove registering deprecated_write_sp. Replace
2703 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2704 Delete set_gdbarch_deprecated_register_convertible(),
2705 set_gdbarch_deprecated_register_convert_to_virtual(), and
2706 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2707 set_gdbarch_deprecated_register_size(),
2708 set_gdbarch_deprecated_register_bytes(),
2709 set_gdbarch_pcregnum(),
2710 set_gdbarch_deprecated_register_byte(),
2711 set_gdbarch_deprecated_register_raw_size(),
2712 set_gdbarch_deprecated_max_register_raw_size(),
2713 set_gdbarch_deprecated_register_virtual_size(),
2714 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2715 Replace set_gdbarch_deprecated_extract_return_value() with
2716 set_gdbarch_extract_return_value(). Remove calls to:
2717 set_gdbarch_deprecated_saved_pc_after_call();
2718 set_gdbarch_deprecated_frame_chain(),
2719 set_gdbarch_deprecated_frame_saved_pc(),
2720 set_gdbarch_deprecated_frame_init_saved_regs(),
2721 set_gdbarch_deprecated_get_saved_register(),
2722 set_gdbarch_deprecated_call_dummy_words(),
2723 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2724 set_gdbarch_deprecated_init_extra_frame_info(),
2725 set_gdbarch_deprecated_frame_args_address(),
2726 set_gdbarch_deprecated_frame_locals_address(),
2727 and set_gdbarch_deprecated_dummy_write_sp().
2728 Add set_gdbarch_convert_register_p(),
2729 set_gdbarch_register_to_value(),
2730 set_gdbarch_value_to_register(),
2731 set_gdbarch_push_dummy_call(),
2732 set_gdbarch_frame_align(),
2733 set_gdbarch_unwind_dummy_id(),
2734 set_gdbarch_unwind_pc(),
2735 frame_unwind_append_sniffer(),
2736 frame_unwind_append_sniffer(),
2737 and frame_base_set_default().
2739 2003-08-25 Chris Demetriou <cgd@broadcom.com>
2741 * configure.tgt: Document need for special "mipsisa64" handling.
2742 (mipsisa64*-*-linux64): Handle as target linux64.
2743 (mipsisa64*-*-*): Handle as target embed64.
2745 2003-08-18 Michael Chastain <mec@shout.net>
2747 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2750 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2752 * i387-tdep.h: Update copyright date.
2753 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2755 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2756 CFLAGS games to reflect reality.
2758 2003-08-24 Andrew Cagney <cagney@redhat.com>
2760 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2761 GDB_MULTI_ARCH is always non-zero.
2762 * osabi.c (_initialize_gdb_osabi): Ditto.
2763 (gdbarch_init_osabi): Ditto.
2764 * sparc-tdep.c: Ditto for #if code.
2766 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2768 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2770 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2772 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2773 x86_64_supply_fxsave.
2774 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2775 x86_64_supply_fxsave.
2776 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2777 x86_64_supply_fxsave.
2779 2003-08-23 Andreas Jaeger <aj@suse.de>
2781 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2784 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2786 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2787 i387_supply_register.
2788 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2789 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2791 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2793 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2795 * i386bsd-nat.c (supply_fpregset): Adjust call to
2797 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2798 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2800 (store_inferior_registers): Remove extraneous whitespace. Call
2801 i387_fill_fsave instead of fill_fpregset.
2802 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2803 (supply_fpregset): Likewise.
2804 * i386v4-nat.c (supply_fpregset): Adjust call to
2806 * i386-interix-nat.c (supply_fpregset): Adjust call to
2808 * i386-linux-nat.c (supply_fpregset): Adjust call to
2810 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2811 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2812 i387supply_fsave and i387_supply_fxsave.
2813 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2814 Incorporate code from `i387_supply_register.
2815 (i387_supply_register): Remove.
2816 (i387_supply_fxsave): Add `regnum' argument.
2818 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2820 (i387_supply_register): remove prototype.
2823 2003-08-22 Michael Chastain <mec@shout.net>
2825 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2826 Add lines for files in gdb/testsuite/gdb.cp/* that are
2827 still not 8.3 unique.
2829 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
2831 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2832 TYPE_VPTR_FIELDNO is valid.
2834 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2836 * utils.c (set_width_command): Remove prototypes.
2837 (set_screen_size): New prototype.
2838 (init_page_info): Simplify by fetching the screen size from
2839 Readline. Call set_screen_size.
2840 (set_screen_size): New function.
2841 (set_width): Add missing whitespace in comment.
2842 (set_width_command): Call set_screen_size.
2843 (set_height_command): New function.
2844 (initialize_utils): Fix formatting. Make "set height" command
2845 call set_height_command. Remove redundant code that turns off
2846 pagination if output isn't a terminal. Remove redundant call to
2849 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2851 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2852 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2853 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2854 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2856 (sparc64_register_info): Give the reister with number
2857 SPARC64_STATE_REGNUM a name.
2858 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2860 (sparc64_push_dummy_call): Take BIAS into account when checking
2862 (sparc_software_single_step): Remove assertions that check whether
2863 NPC and NNPC were zero.
2864 (sparc_supply_rwindow): Make public. Merge functionality with
2865 sparc64_supply_rwindow.
2866 (sparc_fill_rwindow): Make public. Merge functionality with
2867 sparc64_fill_rwindow.
2868 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2869 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2870 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2871 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2872 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2874 * reggroups.c: Add whitespace after declarations of local
2875 variables in functions.
2877 2003-08-21 Michael Chastain <mec@shout.net>
2879 * gdbtypes.h: Change array bound type from an int to enum.
2881 2003-08-21 Andrew Cagney <cagney@redhat.com>
2883 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2884 * config/sparc/tm-sparc.h: Ditto.
2885 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2887 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2889 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2891 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2892 (register_objfile_data, set_objfile_data, objfile_data): New
2894 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2896 (allocate_objfile): Call objfile_alloc_data.
2897 (free_objfile): Call objfile_free_data.
2898 (struct objfile_data): New.
2899 (struct objfile_data_registration): New.
2900 (struct objfile_data_registry): New.
2901 (objfile_data_registry): New variable.
2902 (register_objfile_data): New function.
2903 (objfile_alloc_data, objfile_free_data): New functions.
2904 (set_objfile_data, objfile_data): New functions.
2905 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2906 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2907 (_initialize_dwarf2_frame): New function and prototype.
2909 2003-08-21 Andrew Cagney <cagney@redhat.com>
2911 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2912 a specific architecture.
2913 * arch-utils.h (set_architecture_from_arch_mach): Delete
2915 (target_architecture_hook): Delete declaration.
2916 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2917 (default_float_format): Assume GDB_MULTI_ARCH.
2918 (default_double_format): Assume GDB_MULTI_ARCH.
2919 (set_endian_from_file): Delete function.
2920 (arch_ok): Delete function.
2921 (set_arch): Delete function.
2922 (set_architecture_from_arch_mach): Delete function.
2923 (set_architecture_from_file): Delete function.
2924 (set_architecture): Assume GDB_MULTI_ARCH.
2925 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2927 2003-08-21 Mark Kettenis <kettenis@gnu.org>
2929 Rewrite FreeBSD/sparc64 native configuration.
2930 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2931 * sparc64fbsd-nat.c: New file.
2932 * sparc64fbsd-tdep.c: New file.
2933 * sparc64-tdep.c sparc64-tdep.h: New files.
2934 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2935 sparc64fbsd-tdep.o): New dependencies.
2936 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2937 and sparc64fbsd-tdep.c.
2938 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2939 * config/sparc/fbsd.mh: Remove copyright notice.
2940 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2942 * config/sparc/fbsd.mt: Remove copyright notice.
2943 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2944 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2945 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2946 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2947 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2948 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2949 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2950 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2952 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2953 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2955 2003-08-21 Michael Chastain <mec@shout.net>
2957 * symtab.h: Add doco on the space critical structures and
2958 some measurements of space usage.
2960 2003-08-21 Michael Snyder <msnyder@redhat.com>
2962 * tracepoint.c (trace_dump_command): Trace break address
2963 is subject to DECR_PC_AFTER_BREAK.
2964 (set_traceframe_context): Make "trace_line" an int.
2965 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2967 2003-08-20 Michael Snyder <msnyder@redhat.com>
2969 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2970 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2971 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2973 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2974 functions, replace sh_push_dummy_call.
2975 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2977 2003-08-20 Michael Chastain <mec@shout.net>
2979 * gdbtypes.h (struct main_type): Rearrange to save space.
2981 2003-08-20 Michael Snyder <msnyder@redhat.com>
2983 * trad-frame.c: Comment typo fix.
2985 2003-08-20 Michael Snyder <msnyder@redhat.com>
2986 Kevin Buettner <kevinb@redhat.com>
2988 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2989 (frv_frame_init_saved_regs): Add declaration.
2990 (frame_extra_info): Add new field ``saved_regs''.
2991 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2992 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2993 Update frame related code.
2994 (frv_extract_struct_value_address): Adjust formatting.
2995 * Makefile.in (frv-tdep.o): Update dependencies.
2996 * config/frv/tm-frv.h (target_insert_watchpoint)
2997 (target_remove_watchpoint, target_insert_hw_breakpoint)
2998 (target_remove_hw_breakpoint): Delete these macros.
2999 (remote_insert_watchpoint, remote_remove_watchpoint)
3000 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3003 2003-08-20 Michael Chastain <mec@shout.net>
3005 * defs.h (ENUM_BITFIELD): New macro.
3006 * symtab.h (ENUM_BITFIELD): Use it.
3007 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3009 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3011 * MAINTAINERS (write after approval): Add myself.
3013 2003-08-18 Andrew Cagney <cagney@redhat.com>
3015 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3016 * gdbarch.h, gdbarch.c: Re-generate.
3017 * infcall.c (call_function_by_hand): Adjust the SP by
3018 frame_red_zone_size before allocating any stack space.
3019 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3020 * x86-64-tdep.c (x86_64_frame_align): New function.
3021 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3023 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3024 Remove code adjusting SP so that it skips over the Red Zone.
3026 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3028 * NEWS (New native configurations): Mention FreeBSD/amd64.
3030 2003-08-18 Andrew Cagney <cagney@redhat.com>
3032 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3033 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3035 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3037 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3039 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3041 2003-08-18 Michal Ludvig <mludvig@suse.cz>
3043 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3045 * i386-linux-nat.c: Include "linux-nat.h".
3046 (child_post_startup_inferior): New function.
3048 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3050 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3051 at the start of a frameless function. This probably fixes PR
3054 2003-08-17 Michael Chastain <mec@shout.net>
3056 * symfile.c (find_sym_fns): Remove special case for apollo target.
3058 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3060 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3061 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3062 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3063 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3064 (linux_supports_tracevforkdone): New function.
3065 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3067 (child_follow_fork): Handle vfork.
3068 (linux_handle_extended_wait): Likewise. Also handle exec.
3069 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3070 * NEWS: Mention fork tracing.
3072 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3074 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3076 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3078 * Makefile.in (i386-linux-nat.o): Update dependencies.
3079 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3080 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3081 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3082 * i386-linux-nat.c: Include "linux-nat.h".
3083 (child_post_startup_inferior): New function.
3084 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3085 * infptrace.c (kill_inferior): Wrap in #ifdef.
3086 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3087 attaching to each LWP.
3088 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3089 (init_lin_lwp_ops): Fill in some more operations.
3090 * linux-nat.h (linux_enable_event_reporting)
3091 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3093 * linux-nat.c (linux_enable_event_reporting): New function.
3094 (child_post_attach, linux_child_post_startup_inferior)
3095 (child_post_startup_inferior, child_follow_fork)
3096 (linux_handle_extended_wait, kill_inferior): New functions.
3098 2003-08-16 Andrew Cagney <cagney@redhat.com>
3100 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3101 * gdbarch.h, gdbarch.c: Re-generate.
3103 2003-08-16 Mark Kettenis <kettenis@gnu.org>
3105 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3107 2003-08-16 Andrew Cagney <cagney@redhat.com>
3109 * NEWS: Mention that "set prompt-escape-char" was deleted.
3110 * top.c (get_prompt_1): Delete function.
3111 (gdb_prompt_escape):
3112 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3113 prompt-escape-char" command.
3114 (MAX_PROMPT_SIZE): Delete macro.
3115 (get_prompt): Simplify, do not call get_prompt_1.
3117 2003-08-16 Andrew Cagney <cagney@redhat.com>
3119 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3120 -Werror. -Wformat-nonliteral problems.
3122 2003-08-15 J. Brobecker <brobecker@gnat.com>
3124 Further multiarching work mostly for hppa64-*-hpux11:
3125 * hppa-tdep.h: New file.
3126 * hppa-tdep.c: #include hppa-tdep.c.
3127 (hppa32_num_regs): Renamed from hppa_num_regs.
3128 (hppa64_num_regs): New constant.
3129 (hppa64_call_dummy_breakpoint_offset): New constant.
3130 (hppa32_call_dummy_length): New constant.
3131 (hppa64_call_dummy_length): New constant.
3132 (hppa32_stack_align): Make name 32bit explicit.
3133 (hppa32_register_virtual_type): Likewise.
3134 (hppa32_extract_return_value): Likewise.
3135 (hppa32_use_struct_convention): Likewise.
3136 (hppa32_store_return_value): Likewise.
3137 (hppa64_register_virtual_type): New function.
3138 (hppa64_extract_return_value): New function.
3139 (hppa64_use_struct_convention): New function.
3140 (hppa64_store_return_value): New function.
3141 (hppa_frame_locals_address): Remove declaration, function does
3143 (hppa_register_byte): Add support for PA64 ABI.
3144 (hppa_gdbarch_init): Add support for PA64 ABI.
3145 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3146 Make name 32bit explicit.
3147 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3148 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3149 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3150 (hppa64_hpux_frame_base_before_sigtramp): New function.
3151 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3152 * config/pa/tm-hppa64.h: Remove macros that are no longer
3153 necessary now that the gdbarch vector is properly setup.
3154 Transform some macros into function calls. Some minor cleanup.
3155 * config/pa/tm-hppah.h: Update function calls in macros
3156 following the function renaming in hppa-hpux-tdep.c.
3157 * Makefile.in (hppa_tdep_h): New variable.
3158 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3160 2003-08-14 Michael Snyder <msnyder@redhat.com>
3162 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3164 2003-08-13 J. Brobecker <brobecker@gnat.com>
3166 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3167 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3170 2003-08-13 Michael Snyder <msnyder@redhat.com>
3172 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3173 (frv_saved_pc_after_call): Use deprecated ftype.
3174 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3175 (frv_remote_translate_xfer_address): Remove.
3176 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3178 2003-08-13 J. Brobecker <brobecker@gnat.com>
3180 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3181 initialization after the common gdbarch initialization, not before.
3183 2003-08-13 J. Brobecker <brobecker@gnat.com>
3185 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3186 (ADDR_BITS_REMOVE): Remove, redundant.
3188 2003-08-13 J. Brobecker <brobecker@gnat.com>
3190 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3191 gdbarch method to clear the 2 low bits of text addresses.
3193 2003-08-12 Andrew Cagney <cagney@redhat.com>
3195 * Makefile.in (dsrec.o): Update dependencies.
3196 * dsrec.c: Include "gdb_assert.h".
3197 (make_srec): Use snprintf instead of sprintf, use a literal format
3200 2003-08-12 Andrew Cagney <cagney@redhat.com>
3202 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3203 FRAME_OBSTACK_ZALLOC.
3205 2003-08-12 Kevin Buettner <kevinb@redhat.com>
3207 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3210 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3212 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3213 amd64fbsd_sc_reg_offset): Add extern declarations.
3214 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3217 2003-08-11 Ben Elliston <bje@wasabisystems.com>
3219 * MAINTAINERS (write after approval): Update my mail address.
3221 2003-08-10 Andrew Cagney <cagney@redhat.com>
3223 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3225 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3227 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3228 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3229 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3230 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3231 i386bsd_sc_reg_offset): Add extern declarations.
3232 * i386obsd-nat.c: Include "i386-tdep.h"
3233 (_initialize_i386obsd_nat): Remove extern declarations.
3234 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3236 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3239 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3240 instead of frame_read_register.
3241 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3242 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3244 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3245 instead of frame_unwind_unsigned_register. Use
3246 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3247 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3248 instead of read_register. Use builtin_type_void_data_ptr instead
3249 of builtin_type_void_func_ptr when extracting the address of the
3251 (i386_extract_return_value, i386_store_return_value,
3252 i386_pseudo_register_read, i386_pseudo_register_write): Use
3253 register_size instead REGISTER_RAW_SIZE.
3255 2003-08-10 Andrew Cagney <cagney@redhat.com>
3257 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3258 sprintf. Make "name" constant.
3260 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3262 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3263 instead of frame_read_register.
3264 (i387_print_float_info): Use get_frame_register and
3265 get_frame_register_unsigned instead of frame_register_read.
3267 * i386fbsd-nat.c: Include "i386-tdep.h".
3268 (child_resume): Make `eflags' an ULONGEST. Use
3269 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3270 instead of register_read and register_write.
3272 * i386bsd-nat.c (fetch_inferior_registers,
3273 store_inferior_registers): Don't use && at the end of a line.
3274 (_initialize_i386bsd_nat): Fix typo.
3276 * frame.c (_initialize_frame): Add missing backslash.
3278 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3279 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3280 and supply_register instead of manipulating the register buffer
3283 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3284 * config/i386/nm-i386sol2.h
3285 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3287 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3288 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3289 instructions that GCC likes to mingle into the prologue. Fixes
3290 gdb/1253 and gdb/1255.
3292 2003-08-09 Andrew Cagney <cagney@redhat.com>
3295 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3296 * command.h (add_setshow_uinteger_cmd): Declare.
3297 * frame.c (set_backtrace_cmd): New function.
3298 (show_backtrace_cmd): New function.
3299 * frame.c (_initialize_frame): Replace "set/show
3300 backtrace-below-main" with "set/show backtrace past-main". Add
3301 command "set/show backtrace limit".
3302 (backtrace_past_main): Rename "backtrace_below_main".
3303 (backtrace_limit): New variable.
3304 (get_prev_frame): Update. Check the backtrace_limit.
3306 2003-08-09 Andrew Cagney <cagney@redhat.com>
3308 * defs.h (xstrprintf): Declare.
3309 * utils.c (xstrprintf): New function.
3310 * breakpoint.c (insert_breakpoints): Replace sprintf and
3311 non-literal format strings, with xstrprintf and cleanups.
3312 (delete_breakpoint,breakpoint_re_set): Ditto.
3313 (commands_command, insert_breakpoints): Ditto.
3314 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3315 (break_at_finish_command_1): Ditto.
3317 2003-08-09 Andrew Cagney <cagney@redhat.com>
3319 * MAINTAINERS (language support): List Adam Fedor as Objective C
3322 2003-08-08 J. Brobecker <brobecker@gnat.com>
3324 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3325 are now multiarched.
3327 2003-08-08 J. Brobecker <brobecker@gnat.com>
3329 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3330 longer necessary now that hppa64 is partially multiarch'ed.
3332 2003-08-08 Andrew Cagney <cagney@redhat.com>
3334 * interps.c (interp_set): Check for a NULL "old_interp".
3336 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3338 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3339 (install-only): Support DESTDIR.
3340 (uninstall): Likewise.
3341 (install-gdbtk): Likewise.
3343 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
3345 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3346 contains something meaningful at all times.
3348 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
3350 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
3352 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3354 * MAINTAINERS (write after approval): Added self.
3356 2003-08-07 Andrew Cagney <cagney@redhat.com>
3358 * inferior.h (AT_SYMBOL): Define.
3359 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3360 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3361 * mips-tdep.c (mips_call_dummy_address): Delete function.
3362 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3363 set call_dummy_address.
3365 2003-08-07 Andrew Cagney <cagney@redhat.com>
3367 * language.c (op_error): Delete function.
3368 (binop_type_check): Delete function.
3369 * language.h (type_op_error, range_op_error): Delete macros.
3370 (op_error): Delete declaration.
3372 2003-08-07 Andrew Cagney <cagney@redhat.com>
3374 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3376 2003-08-07 Michal Ludvig <mludvig@suse.cz>
3378 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
3379 (x86_64_push_arguments): Skip the red zone.
3381 2003-08-05 Andrew Cagney <cagney@redhat.com>
3383 * reggroups.c (reggroup_next): Check for the final entry.
3385 2003-08-04 Andrew Cagney <cagney@redhat.com>
3387 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3388 * cli/cli-script.c (define_command): Call query directly, instead
3389 of passing it a buffer.
3390 * ocd.c (ocd_error): Pass error a constant format string.
3391 * remote-mips.c (mips_error): Use fputs_filtered.
3393 * solib-svr4.c (_initialize_svr4_solib): Update
3394 register_gdbarch_data call.
3395 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3397 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3398 (register_gdbarch_data): Delete "free" parameter. Update
3400 * gdbarch.h, gdbarch.c: Re-generate.
3401 * reggroups.c (_initialize_reggroup): Update.
3402 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3403 * frame-base.c (_initialize_frame_base): Update.
3404 * frame-unwind.c (_initialize_frame_unwind): Update.
3405 * user-regs.c (_initialize_user_regs): Update.
3406 * remote.c (_initialize_remote): Update.
3407 * regcache.c (_initialize_regcache): Update.
3409 * regcache.c (xfree_regcache_descr): Delete function.
3410 (_initialize_regcache): Update call to register_gdbarch_data.
3411 (init_regcache_descr, init_legacy_regcache_descr): Use
3412 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3414 * remote.c (free_remote_state): Delete function.
3415 (_initialize_remote): Update register_gdbarch_data.
3416 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3417 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3419 2003-08-04 Andrew Cagney <cagney@redhat.com>
3421 * reggroups.c (struct reggroup_el): Define.
3422 (struct reggroups): Delete field "nr_group". Replace array
3423 "group" with a "first" to "last" linked list.
3424 (reggroups_init): Update. Allocate using gdbarch's obstack.
3425 (reggroups_free): Delete function.
3426 (add_group): Update. Add "el" parameter.
3427 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3428 (default_groups): Update.
3429 (reggroup_next): Replace reggroups.
3430 (reggroups_dump): Update.
3431 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3432 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3433 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3435 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
3437 * Makefile.in (tui-interp.o): Update dependencies.
3439 2003-08-04 David Carlton <carlton@kealia.com>
3441 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3442 to internal_error call.
3443 * source.c (forward_search_command): Add "%s" format argument.
3444 (reverse_search_command): Ditto.
3445 * top.c (quit_confirm): Ditto.
3446 * cli/cli-setshow.c (do_setshow_command): Ditto.
3447 * cp-valprint.c (cp_print_class_method): Replace
3448 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3449 (cp_print_class_member): Ditto.
3450 * event-top.c (command_line_handler): Ditto.
3451 * linux-proc.c (linux_info_proc_cmd): Ditto.
3452 * p-typeprint.c (pascal_type_print_base): Ditto.
3453 * p-valprint.c (pascal_object_print_class_method): Ditto.
3454 (pascal_object_print_class_member): Ditto.
3455 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3456 * remote.c (remote_cisco_section_offsets): Ditto.
3457 * top.c (command_line_input): Ditto.
3458 * utils.c (vwarning,error_stream,quit): Ditto.
3459 * valprint.c (print_floating,print_binary_chars)
3460 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3462 2003-08-04 Andrew Cagney <cagney@redhat.com>
3464 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3466 2003-08-02 Andrew Cagney <cagney@redhat.com>
3468 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3469 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3472 2003-08-02 Andrew Cagney <cagney@redhat.com>
3474 * Makefile.in: Update all dependencies and definitions.
3476 2003-08-02 Adam Fedor <fedor@gnu.org>
3478 * linespec.c (is_objc_method_format): New function
3479 (decode_line_1, locate_first_half): Use it.
3482 2003-08-01 Andrew Cagney <cagney@redhat.com>
3484 * NEWS: Mention that m32r is multi-arch.
3485 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3486 * configure.tgt: Recognize m32r-*-*.
3487 * config/m32r/tm-m32r.h: Delete file.
3488 * config/m32r/m32r.mt: New file.
3489 * m32r-rom.c (m32r_upload_command): Use hostent only when
3490 gethostname succeeds, in order to avoid a compilation
3492 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3495 2003-08-01 Michael Snyder <msnyder@redhat.com>
3497 * sh-tdep.c (sh_frame_align): New gdbarch method.
3498 (sh_gdbarch_init): Set up frame_align method.
3500 2003-07-31 Michael Snyder <msnyder@redhat.com>
3502 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3503 which is already covered by the new frames infrastructure.
3505 2003-07-31 Andrew Cagney <cagney@redhat.com>
3507 * user-regs.c (struct user_reg): Add "next" link.
3508 (struct user_regs): Replace "user" with "first" and "last" links.
3509 (append_user_reg): Add pre-allocated "reg" parameter.
3510 (builtin_user_regs): Provide initial value for "last".
3511 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3512 (user_regs_init): Allocate memory from the gdbarch obstack.
3513 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3514 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3516 (usernum_to_user_reg): New function.
3517 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3518 (value_of_user_reg): Use usernum_to_user_reg.
3519 (user_regs_free): Delete function.
3520 (_initialize_user_regs): Update register_gdbarch_data call.
3522 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
3524 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3526 2003-07-30 Michael Snyder <msnyder@redhat.com>
3528 * value.h (value_being_returned): Add a struct_addr argument.
3529 * infcall.c (call_function_by_hand): Pass struct_addr to
3530 value_being_returned.
3531 * infcmd.c (print_return_value): Pass zero as struct_addr.
3532 * values.c (value_being_returned): If struct_addr is passed,
3533 use it instead of trying to recover it from the inferior.
3535 2003-07-30 Kevin Buettner <kevinb@redhat.com>
3537 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3538 the prologue analyzer won't need to attempt to extract the pc
3539 value from the woefully incomplete dummy frame.
3540 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3541 possible. Disable code which modifies the frame.
3543 2003-07-28 Andrew Cagney <cagney@redhat.com>
3545 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3547 (annotate_breakpoints_table, annotate_record): Ditto.
3548 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3549 (annotate_field_name_end, annotate_field_value): Ditto.
3550 (annotate_field_end, annotate_frame_source_begin): Ditto.
3551 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3552 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3553 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3554 (annotate_frame_address_end, annotate_frame_address): Ditto.
3555 (annotate_frame_args, annotate_frame_end): Ditto.
3556 (annotate_frame_where, annotate_arg_begin): Ditto.
3557 (annotate_arg_name_end, annotate_arg_value): Ditto.
3558 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3559 (annotate_function_call, annotate_signal_name): Ditto.
3560 (annotate_signal_string, annotate_signal_name_end): Ditto.
3561 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3562 (annotate_value_begin, annotate_value_history_value): Ditto.
3563 (annotate_value_history_end, annotate_value_end): Ditto.
3564 (annotate_display_begin, annotate_display_number_end): Ditto.
3565 (annotate_display_format, annotate_display_expression): Ditto.
3566 (annotate_display_expression_end, annotate_display_value): Ditto.
3567 (annotate_display_end, annotate_array_section_begin): Ditto.
3568 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3569 (annotate_elt, annotate_array_section_end): Ditto.
3571 2003-07-28 Andrew Cagney <cagney@redhat.com>
3573 * regcache.c (struct regcache_descr): Update comments on
3575 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3576 sizeof_raw_register_valid_p.
3577 (init_regcache_descr): Set nr_raw_registers and
3578 sizeof_raw_register_valid_p before calling
3579 init_legacy_regcache_descr.
3581 2003-07-28 Andrew Cagney <cagney@redhat.com>
3583 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3586 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
3588 * thread.c (info_threads_command): Use get_selected_frame ().
3589 Check that there is at least one non-sentinel frame.
3591 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3593 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3594 (m68hc11_pop_frame): Remove.
3595 (m68hc11_frame_saved_pc): Remove.
3596 (m68hc11_frame_chain): Remove.
3597 (m68hc11_frame_init_saved_regs): Remove.
3598 (m68hc11_init_extra_frame_info): Remove.
3599 (m68hc11_store_struct_return): Remove.
3600 (m68hc11_saved_pc_after_call): Remove.
3602 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3604 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3605 frame unwind information.
3606 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3607 and adapted for frame unwinding.
3608 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3609 (m68hc11_unwind_pc): New function.
3610 (m68hc11_frame_unwind_cache): New function to analyze frames.
3611 (m68hc11_frame_this_id): New function to create new frame struct.
3612 (m68hc11_frame_prev_register): New function to unwind a register from
3614 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3615 (m68hc11_frame_p): New function for the above.
3616 (m68hc11_frame_base_address): New function to return fp of frame.
3617 (m68hc11_frame_args_address): Update for frame.
3618 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3619 (m68hc11_unwind_sp): New function.
3620 (m68hc11_unwind_dummy_id): New function.
3621 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3624 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3626 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3627 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3628 when we are beyond the current pc.
3630 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3632 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3633 from m68hc11_push_arguments.
3634 (m68hc11_push_arguments): Remove.
3635 (m68hc11_push_return_address): Remove.
3636 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3637 handlers; remove deprecated_extra_stack_alignment_needed.
3639 2003-07-27 Andrew Cagney <cagney@redhat.com>
3641 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3642 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3643 REAL_PC and not the pointer.
3644 * hppa-hpux-tdep.c: Include frame.h
3646 2003-07-27 Andrew Cagney <cagney@redhat.com>
3648 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3649 GDB_MULTI_ACH_PARTIAL.
3651 2003-07-27 Andrew Cagney <cagney@redhat.com>
3653 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3654 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3655 operator at start and not end of line.
3656 (decode_prologue): Ditto.
3657 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3658 frame_unwind_register_unsigned instead of
3659 frame_unwind_unsigned_register.
3660 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3662 (m32r_push_dummy_call): Use register_size instead of
3664 (m32r_frame_sniffer): Replace m32r_frame_p.
3665 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3666 * m32r-rom.c (report_transfer_performance): Delete extern
3668 (m32r_load, m32r_upload_command): Use print_transfer_performance
3669 instead of report_transfer_performance.
3670 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3671 / add_show_from_set.
3673 2003-07-26 Andrew Cagney <cagney@redhat.com>
3675 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3676 store_return_value and extract_struct_value_address.
3678 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
3681 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3682 NULL, default to the section containing PC.
3684 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3686 * NEWS: Mention "regs" deprecated for m68hc11 too.
3688 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3689 (m68hc11_print_register): New function to print out one register.
3690 (m68hc11_print_registers_info): New function to print registers.
3691 (show_regs): Deprecate and use the above.
3692 (m68hc11_gdbarch_init): Install the print_registers_info.
3694 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3696 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3697 that we have a SIGTRAP before returning non-zero.
3699 2003-07-23 Michal Ludvig <mludvig@suse.cz>
3700 Elena Zannoni <ezannoni@redhat.com>
3702 * linespec.c (decode_line_2): Avoid crash if
3703 find_function_start_sal() returns empty record.
3705 2003-07-23 Andreas Schwab <schwab@suse.de>
3707 * ia64-tdep.c (ia64_print_insn): New function.
3708 (ia64_gdbarch_init): Set print_insn to it.
3709 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3710 deprecated_tm_print_insn_info.
3712 2003-07-22 Michael Snyder <msnyder@redhat.com>
3714 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3715 handle 8-bit returns (long long).
3716 (h8300h_extract_return_value): Ditto.
3717 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3719 2003-07-22 Andrew Cagney <cagney@redhat.com>
3721 * gdbarch.c Include "gdb_obstack.h".
3722 (struct gdbarch): Add an "obstack".
3723 (alloc_gdbarch_data): Allocate the gdbarch data using
3724 GDBARCH_OBSTACK_CALLOC.
3725 (free_gdbarch_data): Delete function.
3726 (gdbarch_obstack_zalloc): New function.
3727 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3728 Assert that the architecture is not initialized.
3729 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3730 vector from the obstack.
3731 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3732 architecture obstack.
3733 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3734 (set_gdbarch_data): Assert that the data is not initialized.
3735 (struct gdbarch_data): Delete member "free".
3736 (register_gdbarch_data): Do not initialize "free".
3737 * gdbarch.h, gdbarch.c: Re-generate.
3739 2003-07-22 Andrew Cagney <cagney@redhat.com>
3741 * configure.in (build_warnings): Add -Wformat-nonliteral.
3742 * configure: Re-generate.
3744 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3746 * dwarf2loc.c (locexpr_describe_location): Fix typos.
3748 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3750 * findvar.c (read_var_value): Remove case for thread local storage
3751 variables. It is now entirely handled by the dwarf2 location
3753 * printcmd.c (address_info): Ditto.
3754 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3756 (struct symbol): Remove objfile field, which was used by
3757 LOC_THREAD_LOCAL_STATIC only.
3758 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3759 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3760 usage of objfile pointer.
3761 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3762 thread local variables.
3763 Add include of objfiles.h.
3764 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3766 * Makefile.in (dwarf2loc.o): Update dependencies.
3768 2003-07-22 Andrew Cagney <cagney@redhat.com>
3770 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3772 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3773 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3774 (struct value): Add opaque declaration.
3775 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3777 2003-07-21 Andrew Cagney <cagney@redhat.com>
3779 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3780 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3782 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3784 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3785 regcache_cooked_read_unsigned instead of read_register.
3786 (m68hc11_saved_pc_after_call): Likewise.
3787 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3788 instead of write_register.
3789 (m68hc11_register_type): New function.
3790 (m68hc11_register_virtual_type): Remove.
3791 (m68hc11_store_return_value): Convert to use the regcache.
3792 (m68hc11_extract_struct_value_address): Likewise.
3793 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3794 m68hc11_register_type; undeprecate store_return_value and
3795 extract_struct_value_address.
3797 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3799 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3800 and translate to use regcache.
3801 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3803 2003-07-18 Andrew Cagney <cagney@redhat.com>
3805 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3806 * gdbarch.h, gdbarch.c: Re-generate.
3807 * i386-tdep.c (i386_gdbarch_init): Do not set
3808 DWARF2_BUILD_FRAME_INFO.
3809 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3811 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3812 DWARF2_BUILD_FRAME_INFO.
3814 2003-07-18 Andrew Cagney <cagney@redhat.com>
3816 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3817 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3819 2003-07-18 Andrew Cagney <cagney@redhat.com>
3821 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3822 frame_unwind_address_in_block, instead of frame_pc_unwind.
3823 (dwarf2_frame_cache): Ditto.
3825 2003-07-18 Andrew Cagney <cagney@redhat.com>
3827 * user-regs.h (struct gdbarch): Declare opaque.
3828 * ui-out.h (struct ui_file): Declare opaque.
3829 * dwarf2-frame.h (struct frame_info): Declare opaque.
3831 2003-07-18 Kris Warkentin <kewarken@qnx.com>
3833 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3835 (procfs_meminfo): Change strerror to safe_strerror.
3836 (procfs_can_run): Remove K&R badness.
3838 2003-07-17 Michael Snyder <msnyder@redhat.com>
3840 * remote-sim.c: Comment typo fix.
3842 2003-07-17 Andrew Cagney <cagney@redhat.com>
3844 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3846 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3847 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3848 GDB_MULTI_ARCH_PARTIAL.
3850 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3852 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3853 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3854 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3856 2003-07-16 Theodore A. Roth <troth@openavr.org>
3858 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3860 (avr_frame_unwind_cache): Don't unwind FP for main.
3862 Save the computed prev_sp.
3863 (avr_saved_regs_unwinder): Remove function.
3864 (avr_frame_prev_register): Use PC unwind logic from
3865 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3867 2003-07-16 Andrew Cagney <cagney@redhat.com>
3869 * frame-base.h (frame_base_p_ftype): Delete definition.
3870 (frame_base_append_predicate): Delete declaration.
3871 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3872 (frame_unwind_append_predicate): Delete declaration.
3873 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3874 (append_predicate): Delete parameter "p".
3875 (frame_unwind_append_predicate): Delete function.
3876 (frame_unwind_append_sniffer): Update call to append_predicate.
3877 (frame_unwind_free): Delete function.
3878 (_initialize_frame_unwind): Pass NULL as "free" to
3879 register_gdbarch_data.
3880 (frame_unwind_init): Append the dummy_frame_sniffer.
3881 (frame_unwind_find_by_frame): Simplify.
3882 * frame-base.c (struct frame_base_table): Delete field "p".
3883 (append_predicate): Delete parameter "p".
3884 (frame_base_append_predicate): Delete function.
3885 (frame_base_append_sniffer): Update call to append_predicate.
3886 (frame_base_free): Delete function.
3887 (frame_base_find_by_frame): Simplify.
3888 (_initialize_frame_base): Pass NULL as "free" to
3889 register_gdbarch_data.
3890 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3891 (x86_64_sigtramp_frame_sniffer): Replace
3892 "x86_64_sigtramp_frame_p".
3893 (x86_64_init_abi): Set the frame unwind sniffers.
3894 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3895 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3896 (m68k_gdbarch_init): Set the frame unwind sniffers.
3897 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3898 "i386_sigtramp_frame_p".
3899 (i386_frame_sniffer): Replace "i386_frame_p".
3900 (i386_gdbarch_init): Set the frame unwind sniffers.
3901 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3902 (avr_gdbarch_init): Set the frame unwind sniffers.
3903 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3904 "alpha_sigtramp_frame_p"
3905 (alpha_heuristic_frame_sniffer): Replace
3906 "alpha_heuristic_frame_p".
3907 (alpha_gdbarch_init): Set the frame unwind sniffers.
3908 (alpha_dwarf2_init_abi): Ditto.
3909 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3910 "alpha_debug_frame_p".
3911 (alpha_mdebug_frame_base_sniffer): Replace
3912 "alpha_mdebug_frame_base_p".
3913 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3914 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3915 (d10v_gdbarch_init): Set the frame unwind sniffer.
3916 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3917 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3918 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3919 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3920 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3921 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3923 2003-07-16 Michael Snyder <msnyder@redhat.com>
3925 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3926 should go thru sh_dsp_register_sim_regno, else the dsp regs
3927 will not get the right values.
3929 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3931 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3932 deprecated_store_floating by call to store_typed_floating.
3933 (sh_sh4_register_convert_to_raw): Substitute call to
3934 deprecated_extract_floating by call to extract_typed_floating.
3936 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3938 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3940 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3942 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3943 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3944 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3946 (do_pseudo_register): Remove.
3947 (sh_push_dummy_code): New function.
3948 (sh64_store_struct_return): Rename from sh_store_struct_return.
3949 Only called for sh64 now.
3950 (sh_extract_struct_value_address): Regcache'ify.
3951 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3952 and accomodate new tasks.
3953 (sh64_push_return_address): Rename from sh_push_return_address.
3954 Only called for sh64 now.
3955 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3957 (sh3e_sh4_extract_return_value): Regcache'ify.
3958 (sh_default_store_return_value): Ditto.
3959 (sh3e_sh4_store_return_value): Ditto.
3960 (sh_default_register_byte): Remove.
3961 (sh_sh4_register_byte): Remove.
3962 (sh_default_register_raw_size): Remove.
3963 (sh_sh4_register_raw_size): Remove.
3964 (sh_register_virtual_size): Remove.
3965 (sh_sh3e_register_virtual_type): Remove.
3966 (sh_sh3e_register_type): New function.
3967 (sh_sh4_register_virtual_type): Remove.
3968 (sh_sh4_register_type): New function.
3969 (sh_default_register_virtual_type): Remove.
3970 (sh_default_register_type): New function.
3971 (do_fv_register_info): Add parameters to accomodate call from
3972 sh_print_registers_info.
3973 (do_dr_register_info): Ditto.
3974 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3975 Add parameters to accomodate call from sh_print_registers_info.
3976 (sh_do_fp_register): Ditto.
3977 (sh64_do_pseudo_register): Call do_dr_register_info,
3978 do_fv_register_info and sh_do_fp_register with default parameters.
3979 (sh_do_register): Add parameters to accomodate call from
3980 sh_print_registers_info.
3981 (sh_print_register): Ditto.
3982 (sh_print_registers_info): Rename from sh_do_registers_info.
3983 Add parameters to be used as gdbarch_print_registers_info
3984 implementation. Accomodate removed do_pseudo_register function
3986 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3987 function pointer. Call sh_print_register with default parameters.
3988 (sh64_do_registers_info): Call sh_print_registers_info instead of
3989 sh_do_registers_info.
3990 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3991 detection of deprecated vs. non-deprecated functionality.
3992 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3993 function pointer assignments by direct function calls.
3995 2003-07-15 Andrew Cagney <cagney@redhat.com>
3997 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3998 (frame_register_unwind, create_new_frame): Ditto.
3999 (legacy_get_prev_frame, get_frame_type): Ditto.
4000 (get_frame_base_address): Use frame_base_find_by_frame.
4001 (get_frame_locals_address): Use frame_base_find_by_frame.
4002 (get_frame_args_address): Use frame_base_find_by_frame.
4003 * frame-base.h (frame_base_sniffer_ftype): Declare.
4004 (frame_base_append_sniffer): Declare.
4005 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4006 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4007 (frame_base_append_sniffer): New function.
4008 (frame_base_append_predicate): Add a NULL sniffer.
4009 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4010 (struct frame_base_table): Add "sniffer".
4011 (frame_base_free): Free the "sniffer" table.
4012 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4013 (frame_unwind_append_sniffer): Declare.
4014 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4015 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4016 (struct frame_unwind_table): Add "sniffer", delete "middle".
4017 (append_predicate): Add "sniffer" parameter, append the sniffer.
4018 (frame_unwind_init): Update append_predicate call.
4019 (frame_unwind_append_sniffer): New function.
4020 (frame_unwind_append_predicate): Update append_predicate call.
4021 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4023 2003-07-15 Andrew Cagney <cagney@redhat.com>
4025 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4026 before code inhibiting repeated unwind attempts. Add to
4027 commentary on that test's problems.
4028 * blockframe.c (inside_main_func): Look for "main" in the minimal
4030 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4033 2003-07-15 Andrew Cagney <cagney@redhat.com>
4035 * complaints.c (struct explanation): Define.
4036 (struct complaints): Change type of "explanation" to "struct
4038 (symfile_explanations): Convert to a "struct explanation" table.
4039 (vcomplaint): Update.
4041 2003-07-15 Michal Ludvig <mludvig@suse.cz>
4043 * x86-64-linux-nat.c (regmap): Removed.
4044 (supply_gregset, fill_gregset): Call
4045 x86_64_linux_(fill,supply)_gregset functions.
4046 * x86-64-linux-tdep.c (USER_*): New defines.
4047 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4048 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4050 (fetch_core_registers): Ditto.
4051 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4052 * x86-64-linux-tdep.h: New file.
4053 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4055 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4057 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4059 * x86-64-tdep.c (x86_64_store_return_value): Use
4060 regcache_cooked_write_part instead of regcache_cooked_write.
4062 * configure.host: Add x86_64-*-freebsd*.
4063 * configure.tgt: Add x86_64-*-freebsd*.
4064 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4065 * amd64fbsd-nat.c: New file.
4066 * amd64fbsd-tdep.c: New file.
4067 * config/i386/nm-fbsd64.h: New file.
4068 * config/i386/fbsd64.mh: New file.
4069 * config/i386/fbsd64.mt: New file.
4071 2003-07-11 Mark Kettenis <kettenis@gnu.org>
4073 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4074 `sc_regs_offset' and `sc_fpregs_offset'.
4075 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4076 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4077 (alpha_sigtramp_register_address): Rewrite to use new members of
4078 `struct gdbarch_tdep'.
4079 (alpha_gdbarch_init): Initialize new members of struct
4081 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4082 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4083 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4084 (alphafbsd_pc_in_sigtramp): Implement.
4085 (alphafbsd_sigtramp_offset): New function.
4086 (alphafbsd_sigcontext_addr): New function.
4087 (alphafbsd_init_abi): Initialize signal trampoline related members
4088 of `struct gdbarch_tdep'.
4089 (_initialize_alphafbsd_tdep): Add prototype.
4091 2003-07-11 Theodore A. Roth <troth@openavr.org>
4093 * Makefile.in (install-only): Quote sed expression when generating
4096 2003-07-11 Richard Henderson <rth@redhat.com>
4098 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4099 * dwarf2-frame.c: Include complaints.h.
4100 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4101 variable initialization; return NULL on error.
4102 (decode_frame_entry): New.
4104 2003-07-11 Andrew Cagney <cagney@redhat.com>
4106 * frame.h (frame_address_in_block): Delete declaration.
4107 * blockframe.c (frame_address_in_block): Delete function.
4108 (get_frame_block): Use get_frame_address_in_block.
4109 (block_innermost_frame): Ditto.
4110 * stack.c (print_frame, backtrace_command_1): Ditto.
4112 * frame.h (get_frame_address_in_block): Declare.
4113 (frame_unwind_address_in_block): Declare.
4114 * frame.c (frame_unwind_address_in_block): New function.
4115 (get_frame_address_in_block): New function.
4117 2003-07-10 Andrew Cagney <cagney@redhat.com>
4119 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4120 pre-default. Note: re-generate has no effect.
4122 2003-07-10 Andrew Cagney <cagney@redhat.com>
4124 * gdbarch.sh: When a variable, but not a function, compare against
4125 0. Fix problem in previous patch.
4126 * gdbarch.c: Re-generate.
4128 2003-07-10 Andrew Cagney <cagney@redhat.com>
4130 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4131 functions against NULL, not 0.
4132 * gdbarch.c: Re-generate.
4134 2003-07-10 Fred Fish <fnf@ninemoons.com>
4136 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4137 null string instead of a null pointer.
4138 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4140 2003-07-09 Michael Snyder <msnyder@redhat.com>
4142 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4144 2003-07-09 Mark Kettenis <kettenis@gnu.org>
4146 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4147 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4148 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4149 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4150 * x86-64-tdep.c: ... from here.
4152 2003-07-09 Andreas Schwab <schwab@suse.de>
4154 * m68k-tdep.h (enum struct_return): Define.
4155 (struct gdbarch_tdep): Add struct_return.
4156 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4157 bytes are padded to the right, not to the left. Pass struct value
4158 address in register %a1, not on stack.
4159 (m68k_use_struct_convention): New function.
4160 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4161 struct_return in tdep to pcc_struct_return.
4162 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4165 2003-07-09 Joel Brobecker <brobecker@gnat.com>
4167 * somread.c (som_symfile_offsets): Fix compilation error.
4169 2003-07-09 Andrew Cagney <cagney@redhat.com>
4171 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4172 Add comments about the checks.
4174 2003-07-08 Andrew Cagney <cagney@redhat.com>
4176 * Makefile.in: Make dependency section headers consistent.
4177 (config_h): Move to $BUILD headers section.
4178 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4179 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4180 (ada-exp.tab.c): Move to YACC/LEX section.
4181 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4182 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4184 2003-07-08 Kris Warkentin <kewarken@qnx.com>
4186 * nto-procfs.c: Cleaned up a bunch of ARI hits.
4187 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4188 of strerror with safe_strerror, use ISO C function definitions,
4189 and replace instances of sprintf with snprintf.
4191 2003-07-07 Andrew Cagney <cagney@redhat.com>
4193 * frame.c (get_prev_frame): Enable check for identical frames.
4194 Update comments. Update error messages.
4196 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4198 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4200 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4202 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4203 sort_symtab_syms, no longer necessary.
4205 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4207 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4209 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4211 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4212 (mips_register_byte): Likewise.
4214 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4216 * Makefile.in (sparc_tdep_h): New.
4217 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4218 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4219 * sparc-linux-nat.c: Include "sparc-tdep.h".
4220 * sparc-nat.c: Likewise.
4221 * sparc-tdep.c: Likewise.
4222 * sparc64nbsd-nat.c: Likewise.
4223 * sparcnbsd-nat.c: Likewise.
4224 * sparcnbsd-tdep.c: Likewise.
4225 * sparc-tdep.h: New file.
4226 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4227 and sparc_npc_regnum.
4229 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4231 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4232 (mips_linux_cannot_store_register): List supported instead of
4233 unsupported registers.
4235 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4237 * disasm.c (dump_insns): Separate instructions from addresses.
4239 2003-07-07 Andreas Schwab <schwab@suse.de>
4241 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4243 * m68k-tdep.c (NUM_FREGS): Delete.
4244 (SIG_PC_FP_OFFSET): Delete.
4245 (TARGET_M68K): Delete.
4246 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4247 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4248 P_MOVEL_SP, P_MOVEML_SP): Define.
4249 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4251 (m68k_register_raw_size): Delete.
4252 (m68k_register_virtual_size): Delete.
4253 (m68k_register_type): Renamed from m68k_register_virtual_type and
4254 add gdbarch argument.
4255 (m68k_store_struct_return): Delete.
4256 (m68k_deprecated_extract_return_value): Delete.
4257 (m68k_deprecated_extract_struct_value_address): Delete.
4258 (m68k_frame_chain): Delete.
4259 (m68k_frame_saved_pc): Delete.
4260 (m68k_fix_call_dummy): Delete.
4261 (m68k_push_dummy_frame): Delete.
4262 (m68k_pop_frame): Delete.
4263 (m68k_extract_return_value): New function.
4264 (m68k_store_return_value): Rewrite using regcache.
4265 (m68k_extract_struct_value_address): Rewrite using regcache.
4266 (m68k_push_dummy_call): New function.
4267 (struct m68k_frame_cache): Define.
4268 (m68k_alloc_frame_cache): New function.
4269 (m68k_analyze_frame_setup): New function.
4270 (m68k_analyze_register_saves): New function.
4271 (m68k_analyze_prologue): New function.
4272 (m68k_skip_prologue): Rewrite using above functions.
4273 (m68k_unwind_pc): New function.
4274 (m68k_frame_cache): New function.
4275 (m68k_frame_this_id): New function.
4276 (m68k_frame_prev_register): New function.
4277 (m68k_frame_unwind): New variable.
4278 (m68k_frame_p): New function.
4279 (m68k_sigtramp_frame_cache): New function.
4280 (m68k_sigtramp_frame_this_id): New function.
4281 (m68k_sigtramp_frame_prev_register): New function.
4282 (m68k_sigtramp_frame_unwind): New variable.
4283 (m68k_sigtramp_frame_p): New function.
4284 (m68k_frame_base_address): New function.
4285 (m68k_frame_base): New function.
4286 (m68k_unwind_dummy_id): New function.
4287 (fill_gregset): Use regcache_collect.
4288 (fill_fpregset): Likewise.
4289 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4291 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4292 deprecated_init_frame_pc, deprecated_store_struct_return,
4293 deprecated_extract_return_value, deprecated_store_return_value,
4294 deprecated_frame_chain, deprecated_frame_saved_pc,
4295 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4296 deprecated_register_virtual_size,
4297 deprecated_max_register_raw_size,
4298 deprecated_max_register_virtual_size,
4299 deprecated_register_virtual_type, deprecated_register_size,
4300 deprecated_register_byte, deprecated_register_bytes,
4301 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4302 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4303 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4304 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4305 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4306 deprecated_push_dummy_frame, deprecated_pop_frame,
4307 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4308 only if SYSCALL_TRAP is defined. Set extract_return_value,
4309 store_return_value, extract_struct_value_address, register_type,
4310 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4312 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4313 M68K_MAX_REGISTER_SIZE): Define.
4314 (struct m68k_sigtramp_info): Define.
4315 (struct gdbarch_tdep): Add get_sigtramp_info.
4316 * m68klinux-nat.c (fetch_register): Use register_size instead of
4317 REGISTER_RAW_SIZE. Don't put assignment in if.
4318 (store_register): Likewise.
4319 (fetch_inferior_registers): Likewise.
4320 (store_inferior_registers): Likewise.
4321 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4322 (m68k_linux_frame_saved_pc): Delete.
4323 (m68k_linux_sigcontext_reg_offset,
4324 m68k_linux_ucontext_reg_offset): Define.
4325 (m68k_linux_get_sigtramp_info): New function.
4326 (m68k_linux_extract_return_value): Rewrite using regcache.
4327 (m68k_linux_store_return_value): Likewise.
4328 (m68k_linux_extract_struct_value_address): Likewise.
4329 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4330 Don't set deprecated_frame_saved_pc,
4331 deprecated_extract_return_value, deprecated_store_return_value,
4332 deprecated_extract_struct_value_address. Set
4333 extract_return_value, store_return_value,
4334 extract_struct_value_address.
4336 2003-07-07 Andrew Cagney <cagney@redhat.com>
4338 * expprint.c: Include "user-regs.h" instead of "frame.h".
4339 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4340 frame_map_regnum_to_name.
4341 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4342 (frame_map_name_to_regnum): Simplify, call
4343 user_reg_map_name_to_regnum.
4344 (frame_map_regnum_to_name): Simplify, call
4345 user_reg_map_regnum_to_name.
4346 (frame_register_unwind): Update.
4347 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4348 (_initialize_frame_reg): Call user_reg_add_builtin.
4349 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4350 (value_of_register): Use value_of_user_reg.
4351 * eval.c (evaluate_subexp_standard): Update.
4352 * parse.c (write_dollar_variable): Update.
4353 * d10v-tdep.c (d10v_print_registers_info): Update.
4354 * infcmd.c (registers_info): Update.
4355 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4356 (builtin_regs_h): Delete macro.
4357 (user_regs_h): Define.
4358 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4359 (builtin-regs.o): Delete target.
4360 (user-regs.o): Specify dependencies.
4361 (expprint.o): Update dependencies.
4362 (findvar.o): Update dependencies.
4363 (frame.o): Update dependencies.
4364 (std-regs.o): Update dependencies.
4366 2003-07-06 Christopher Faylor <cgf@redhat.com>
4368 * win32-nat.c (solib_symbols_add): Use one variable for all section
4369 address stuff. Pass variable rather than address of variable to
4370 safe_symbol_file_add.
4372 2003-07-06 Andreas Schwab <schwab@suse.de>
4374 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4376 2003-07-04 Joel Brobecker <brobecker@gnat.com>
4378 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4380 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4382 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4384 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4386 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4387 * config/i386/nto.mh: New file.
4388 * config/i386/nm-nto.h: New file.
4389 * configure.host: Add i[3456]86-*-nto*.
4391 2003-07-03 Joel Brobecker <brobecker@gnat.com>
4393 * remote-vx.c (vx_add_symbols): Fix compilation error.
4395 2003-07-03 Andrew Cagney <cagney@redhat.com>
4397 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4398 * gdbarch.h, gdbarch.c: Re-generate.
4399 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4400 (legacy_register_name): Declare.
4401 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4402 (REGISTER_NAME): Define.
4403 * sparc-tdep.c (legacy_register_name): New function.
4404 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4405 (REGISTER_NAME): Define.
4406 (hppa64_register_name): Declare.
4407 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4408 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4409 (hppa64_register_name): New function.
4410 (hppa_register_name): New function.
4411 * arch-utils.c (legacy_register_name): Delete.
4412 * arch-utils.h (legacy_register_name): Delete.
4414 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
4416 * cli/cli-interp.c (cli_interpreter_resume): Update the
4417 cli_uiout's stream to gdb_stdout.
4419 2003-07-03 Andrew Cagney <cagney@redhat.com>
4421 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4423 * gdbarch.h, gdbarch.c: Re-generate.
4424 * regcache.c (init_regcache_descr): Use legacy code when either
4425 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4427 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4429 * NEWS: Move "set logging" entry into GDB 6.0 section.
4431 2003-07-02 Jim Blandy <jimb@redhat.com>
4433 * s390-tdep.c (struct frame_extra_info): new member:
4434 'stack_bought_valid'.
4435 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4436 initialize fextra_info->stack_bought.
4437 (s390_frameless_function_invocation): Don't trust the value of
4438 fextra_info_ptr->stack_bought unless
4439 fextra_info->stack_bought_valid is set.
4441 New S390 prologue analyzer.
4442 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4443 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4444 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4445 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4446 compute_x_addr, s390_on_stack, s390_store,
4447 s390_get_signal_frame_info): New functions.
4448 (S390_NUM_SPILL_SLOTS): New macro.
4449 (s390_get_frame_info): Rewritten.
4450 (is_arg_reg): Deleted.
4452 Break out the decoding of S/390 instructions into separate
4453 functions, to make it more legible, and easier to check
4455 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4456 is_rx, is_rxe): New functions.
4457 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4458 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4459 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4460 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4461 enums for opcode values. (Is this an improvement?)
4463 2003-07-02 Andrew Cagney <cagney@redhat.com>
4465 * i386-tdep.c: Revert change committed as part of trad-frame code
4468 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4470 * breakpoint.c (insert_catchpoint): Make static.
4472 2003-07-02 Andreas Schwab <schwab@suse.de>
4474 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4475 former ia64_push_arguments and ia64_push_return_address, and use
4476 regcache functions instead of read/write_register.
4477 (ia64_gdbarch_init): Set push_dummy_call instead of
4478 deprecated_push_arguments and deprecated_push_return_address.
4480 2003-07-01 Andreas Jaeger <aj@suse.de>
4482 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4484 Set %rax only to number of SSE registers used.
4486 2003-07-01 Andrew Cagney <cagney@redhat.com>
4488 * trad-frame.h: Update comments, a -1 .addr is reserved.
4489 (trad_frame_value_p, trad_frame_addr_p): Declare.
4490 (trad_frame_reg_p): Declare.
4491 (trad_frame_set_value): Rename trad_frame_register_value.
4492 (trad_frame_set_unknown): Declare.
4493 * trad-frame.c (trad_frame_realreg_p): New function.
4494 (trad_frame_addr_p, trad_frame_value_p): New function.
4495 (trad_frame_set_unknown): New function.
4496 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4497 (trad_frame_prev_register): Use trad_frame_realreg_p,
4498 trad_frame_addr_p and trad_frame_value_p.
4499 (trad_frame_set_value): Rename trad_frame_register_value.
4500 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4501 and trad_frame_set_value.
4503 2003-06-30 Jim Blandy <jimb@redhat.com>
4505 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4506 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4507 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4508 for 16 registers, and then 32 more bytes.
4509 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4511 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4512 Move up in the file, since it's now used by is_simple_arg.
4513 (is_simple_arg): Don't assume registers are four bytes long.
4514 Exclude all double arguments. Extended floats are not simple
4516 (is_power_of_two): New function.
4517 (pass_by_copy_ref): Call is_power_of_two, and check that the
4518 length fits in a register, rather than listing all the acceptable
4519 sizes. Extended floats are not passed by reference.
4520 (s390_push_arguments): Don't assume registers are four bytes long.
4521 Reserve an argument register to point to the buffer for structures
4522 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4523 S390_STACK_FRAME_OVERHEAD.
4525 2003-06-30 Andreas Schwab <schwab@suse.de>
4527 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4528 format error message.
4530 2003-06-30 Joel Brobecker <brobecker@gnat.com>
4532 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4534 2003-06-30 David Carlton <carlton@kealia.com>
4536 Band-aid for PR c++/1245.
4537 * Makefile.in (cp-support.o): Depend on complaints_h.
4538 * cp-support.c: Include complaints.h. Add declaration for
4539 find_last_component.
4540 (cp_find_first_component): Separate code into
4541 cp_find_first_component_aux.
4542 (cp_find_first_component_aux): Call demangled_name_complaint.
4543 (demangled_name_complaint): New.
4545 2003-06-30 Andrew Cagney <cagney@redhat.com>
4547 * remote.c (remote_write_bytes): Explicitly compute and then use
4548 the payload size. Update comments to reflect. Fixes problem of
4549 GDB not sending small packets as found by Fred Fish.
4551 2003-06-30 Andrew Cagney <cagney@redhat.com>
4553 * remote.c (remote_async_wait): Fix -Wformat problem.
4555 2003-06-29 Andrew Cagney <cagney@redhat.com>
4557 * remote.c (remote_wait): Call error, and not warning, when the
4559 (remote_async_wait): Ditto.
4561 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4563 * sparc-tdep.c (sparc_y_regnum): Make external again.
4565 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4567 * cli/cli-logging.c (pop_output_files): Add void to function
4570 2003-06-29 Andrew Cagney <cagney@redhat.com>
4572 * frame.c (frame_register_unwind): Use unsigned char when dumping
4573 the buffer contents.
4575 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
4577 * cli/cli-logging.c: New file.
4578 * cli-out.c (struct ui_out_data): Add original_stream.
4579 (cli_redirect): New function.
4580 (cli_ui_out_impl): Add cli_redirect.
4581 (cli_out_new): Initialize original_stream.
4582 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4583 (uo_redirect, ui_out_redirect): New.
4584 * ui-out.h (struct ui_out_impl): Add redirect member.
4585 (redirect_ftype): New.
4586 (ui_out_redirect): Add prototype.
4587 * Makefile.in: Add rules for cli-logging.c.
4588 * NEWS: Mention "set logging".
4590 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4592 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4594 2003-06-27 Andrew Cagney <cagney@redhat.com>
4596 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4597 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4598 * avr-tdep.c (avr_call_dummy_address): Delete function.
4599 (avr_gdbarch_init): Do not set call_dummy_address.
4601 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4603 * symfile.c (syms_from_objfile): Move variables to inner block.
4604 Move the checks for the non-mainline case a bit earlier to avoid
4605 doing some useless computations.
4607 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4609 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4611 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
4613 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4616 2003-06-26 Michael Chastain <mec@shout.net>
4618 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4619 gdb/testsuite/gdb.c++/pr-1210.exp.
4621 2003-06-26 Andrew Cagney <cagney@redhat.com>
4623 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4624 altivec_expression.h and altivec_registers.h.
4626 2003-06-26 Andrew Cagney <cagney@redhat.com>
4628 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4629 info->mach when MIPS16. Patch suggested by Fred Fish.
4631 2003-06-26 Andrew Cagney <cagney@redhat.com>
4633 * utils.c (internal_vproblem): Print the problem to a reason
4634 buffer and then pass to query. Make the msg variable more local.
4636 2003-06-26 Andrew Cagney <cagney@redhat.com>
4638 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4639 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4640 * gdbarch.h, gdbarch.c: Re-generate.
4641 * frame-base.c (default_frame_args_address): Update. Use
4642 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4644 (default_frame_locals_address): Ditto for
4645 DEPRECATED_FRAME_LOCALS_ADDRESS.
4646 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4647 (vax_frame_num_args): Update.
4648 (vax_gdbarch_init): Update.
4649 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4650 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4651 * mcore-tdep.c (mcore_gdbarch_init): Update.
4652 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4653 * ia64-tdep.c (ia64_gdbarch_init): Update.
4654 * symtab.h (address_class): Update comments.
4655 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4656 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4657 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4658 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4659 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4660 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4661 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4662 * alpha-mdebug-tdep.c: Update.
4663 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4665 2003-06-26 Andreas Jaeger <aj@suse.de>
4667 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4668 of SSE registers so that varargs functions work. Rework handling
4669 of passing arguments on the stack.
4670 (x86_64_store_return_value): Return double and float values in SSE
4673 2003-06-24 Michael Chastain <mec@shout.net>
4675 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4676 the "constructor breakpoints ignored" bug.
4678 2003-06-25 David Carlton <carlton@kealia.com>
4680 * MAINTAINERS: Update e-mail address.
4682 2003-06-24 Jim Blandy <jimb@redhat.com>
4684 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4686 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4688 (ppc_linux_init_abi): Register it as the
4689 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4691 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4692 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4695 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4696 (ppc64_standard_linkage_target): Use it.
4698 2003-06-23 Andrew Cagney <cagney@redhat.com>
4700 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4701 for 0 "int0" and 4 "int32" sized registers.
4702 * gdbtypes.c (builtin_type_int0): Define.
4703 (build_gdbtypes): Initialize builtin_type_int0.
4704 * gdbtypes.h (builtin_type_int0): Declare.
4706 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4708 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4709 as characters are unsigned.
4711 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4714 * dwarfread.c (struct_type): Skip static fields without crashing.
4716 2003-06-22 Andrew Cagney <cagney@redhat.com>
4718 GDB 6.0 branch created.
4720 * PROBLEMS: Update. Empty.
4723 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4725 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4726 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4728 2003-06-22 Andrew Cagney <cagney@redhat.com>
4730 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4731 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4734 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4736 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4739 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4741 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4742 argument of val_print.
4743 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4744 to the address argument of baseclass_offset or target_read_memory.
4745 Do add it to the argument of cp_print_value_fields.
4747 2003-06-21 Andrew Cagney <cagney@redhat.com>
4749 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4750 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4751 instead of 0..NUM_REGS.
4752 (mips_register_reggroup_p): New function.
4753 (mips_pseudo_register_write): New function.
4754 (mips_pseudo_register_read): New function.
4755 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4756 based on the register's type.
4757 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4759 (mips_get_saved_register): Simplify. Assert that REGNO is a
4761 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4762 (mips_register_type): Replace mips_register_virtual_type. Map
4763 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4765 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4766 that the register is cooked / virtual.
4767 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4768 Only get the extra info when needed.
4769 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4770 (mips32_heuristic_proc_desc): Fetch the cooked register.
4771 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4772 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4773 (mips_print_register): Use gdbarch_register_type, instead of
4774 REGISTER_VIRTUAL_TYPE.
4775 (print_gp_register_row): Use gdbarch_register_type, instead of
4776 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4777 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4778 Print the pseudo / cooked registers.
4779 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4780 Print the pseudo / cooked registers.
4781 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4782 REG_NUM is pseudo / cooked.
4783 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4784 (mips_n32n64_xfer_return_value): Ditto.
4785 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4786 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4787 (mips_register_sim_regno): New function.
4788 (mips_gdbarch_init): Set deprecated_register_byte,
4789 register_group_p, pseudo_register_write, pseudo_register_read,
4790 register_sim_regno, and num_pseudo_regs. Set register_type,
4791 instead of register_virtual_type.
4792 * Makefile.in (mips-tdep.o): Update dependencies.
4793 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4794 REGISTER_VIRTUAL_TYPE.
4795 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4796 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4797 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4798 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4799 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4801 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4803 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4804 * cli/cli-cmds.c: Include "gdb_vfork.h".
4805 (shell_escape): Use vfork.
4807 2003-06-21 Andrew Cagney <cagney@redhat.com>
4809 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4810 32 bit floating-point register saves.
4812 * frame.h (deprecated_unwind_get_saved_register): Delete.
4813 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4814 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4815 and deprecated_get_next_frame_hack instead of
4816 deprecated_unwind_get_saved_register.
4818 * mips-tdep.c (mips_dump_tdep): Do not print
4819 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4821 * frame.c (get_frame_register): New function.
4822 (frame_unwind_register_signed): New function.
4823 (get_frame_register_signed): New function.
4824 (frame_unwind_register_unsigned): New function.
4825 (get_frame_register_unsigned): New function.
4826 * frame.h: Add comments on naming schema.
4827 (get_frame_register, frame_unwind_register_signed): Declare.
4828 (get_frame_register_signed, get_frame_register_signed): Declare.
4829 (frame_unwind_register_unsigned): Declare.
4830 (get_frame_register_unsigned): Declare.
4832 2003-06-20 Theodore A. Roth <troth@openavr.org>
4834 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4836 2003-06-20 Theodore A. Roth <troth@openavr.org>
4838 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4839 (avr_read_sp): Ditto.
4841 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
4843 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4844 * config/arm/nm-linux.h: Likewise.
4845 * config/arm/tm-linux.h: Likewise.
4846 * config/ia64/nm-linux.h: Likewise.
4847 * config/ia64/tm-ia64.h: Likewise.
4848 * config/s390/tm-linux.h: Likewise.
4849 * config/s390/tm-s390.h: Likewise.
4850 * s390-nat.c: Likewise.
4851 * s390-tdep.c: Likewise.
4853 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4854 * config/ia64/linux.mt: Likewise.
4855 * config/m68k/linux.mh: Likewise.
4856 * config/mips/linux.mt: Likewise.
4857 * config/powerpc/linux.mh: Likewise.
4858 * config/sh/linux.mt: Likewise.
4860 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4862 * solib.c (solib_open): Change tests for whether to search
4863 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4866 2003-06-19 Theodore A. Roth <troth@openavr.org>
4868 * avr-tdep.c (avr_frame_address): Delete function.
4869 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4870 set_gdbarch_frame_args_address.
4872 2003-06-19 Andrew Cagney <cagney@redhat.com>
4874 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4875 (REGISTER_CONVERT_FROM_TYPE): Delete.
4876 (mips_register_convert_to_type): Delete declaration.
4877 (mips_register_convert_from_type): Delete declaration.
4878 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4881 2003-06-19 Michael Snyder <msnyder@redhat.com>
4883 * linux-nat.h: New file.
4884 * linux-nat.c: Include linux-nat.h.
4885 * lin-lwp.c: Include linux-nat.h.
4886 Move struct lwp_info def to linux-nat.h.
4887 * linux-proc.c: Include linux-nat.h.
4888 (linux_make_note_section): Iterate over lwps instead of threads.
4889 (linux_do_thread_registers): Use lwp instead of merged pid.
4890 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4891 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4892 Add dependency on linux_nat_h.
4894 2003-06-19 Theodore A. Roth <troth@openavr.org>
4896 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4898 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4900 * varobj.c (get_type, get_target_type): Use check_typedef.
4902 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4904 * breakpoint.c (insert_catchpoint): Call internal_error.
4906 2003-06-19 Theodore A. Roth <troth@openavr.org>
4908 * avr-tdep.c (avr_push_dummy_code): Delete function.
4909 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4911 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4913 * arch-utils.c (default_prepare_to_proceed): Remove.
4914 (generic_prepare_to_proceed): Remove.
4915 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4916 (generic_prepare_to_proceed): Remove prototype.
4917 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4918 * gdbarch.c: Regenerate.
4919 * gdbarch.h: Regenerate.
4920 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4921 * hppah-nat.c (hppa_switched_threads): Remove.
4922 * infrun.c (prepare_to_proceed): New static function, copied from
4923 generic_prepare_to_proceed. Remove select_it argument.
4924 (proceed): Call prepare_to_proceed.
4925 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4927 (ptrace_wait): Don't set the removed variables.
4928 (hppa_switched_threads): Remove.
4929 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4930 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4931 (lin_lwp_prepare_to_proceed): Remove prototype.
4932 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4933 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4935 2003-06-18 Theodore A. Roth <troth@openavr.org>
4937 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4939 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4940 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4941 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4942 (AVR_PROLOGUE_*): Enumerate prologue types.
4943 (struct frame_extra_info): Remove.
4944 (struct avr_unwind_cache): Define.
4945 (avr_write_sp): Delete function.
4946 (avr_read_fp): Ditto.
4947 (avr_init_extra_frame_info): Ditto.
4948 (avr_pop_frame): Ditto.
4949 (avr_frame_saved_pc): Ditto.
4950 (avr_saved_pc_after_call): Ditto.
4951 (avr_push_return_address): Ditto.
4952 (avr_frame_chain): Ditto.
4953 (avr_store_struct_return): Ditto.
4954 (avr_push_arguments): Ditto.
4955 (avr_scan_prologue): Update comments. Changed to set up the info for
4956 cache unwinding. Now returns end of prologue PC.
4957 (avr_skip_prologue): Better handling of functions lacking a prologue
4958 by using avr_scan_prologue.
4959 (avr_scan_arg_moves): New function.
4960 (avr_saved_regs_unwinder): Ditto.
4961 (avr_frame_unwind_cache): Ditto.
4962 (avr_unwind_pc): Ditto.
4963 (avr_frame_this_id): Ditto.
4964 (avr_frame_prev_register): Ditto.
4965 (avr_frame_p): Ditto.
4966 (avr_frame_base_address ): Ditto.
4967 (avr_unwind_dummy_id): Ditto.
4968 (avr_push_dummy_code): Ditto.
4969 (push_stack_item): Ditto.
4970 (pop_stack_item): Ditto.
4971 (avr_push_dummy_call): Ditto.
4972 (struct stack_item): Define.
4973 (avr_frame_unwind): Declare structure.
4974 (avr_frame_base): Ditto.
4975 (avr_gdbarch_init): Remove calls to
4976 set_gdbarch_deprecated_init_frame_pc,
4977 set_gdbarch_deprecated_target_read_fp,
4978 set_gdbarch_deprecated_dummy_write_sp,
4979 set_gdbarch_deprecated_fp_regnum,
4980 set_gdbarch_deprecated_push_arguments,
4981 set_gdbarch_deprecated_push_return_address,
4982 set_gdbarch_deprecated_pop_frame,
4983 set_gdbarch_deprecated_store_struct_return,
4984 set_gdbarch_deprecated_frame_init_saved_regs,
4985 set_gdbarch_deprecated_init_extra_frame_info,
4986 set_gdbarch_deprecated_frame_chain,
4987 set_gdbarch_deprecated_frame_saved_pc,
4988 set_gdbarch_deprecated_saved_pc_after_call.
4989 Add calls to set_gdbarch_push_dummy_call,
4990 set_gdbarch_push_dummy_code,
4991 frame_unwind_append_predicate,
4992 frame_base_set_default,
4993 set_gdbarch_unwind_dummy_id,
4994 set_gdbarch_unwind_pc.
4997 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4999 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5000 registers for H8/300S.
5001 (h8300_print_registers_info): Ditto.
5002 (h8300_gdbarch_init): Accommodate register count for H8/300S.
5004 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
5006 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5007 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5008 (lin_lwp_wait): Likewise. Update comments.
5009 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5010 (pull_pid_from_list, linux_record_stopped_pid): New.
5012 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5014 * ada-lang.c (scan_discrim_bound): Name first argument.
5015 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5016 declared by ALL_BLOCK_SYMBOLS.
5018 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5020 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5021 ("regcache.h"): Include it.
5022 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5024 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5026 * NEWS: Mention gdbserver detach change and "disconnect" command.
5027 * infcmd.c (disconnect_command): New function.
5028 (_initialize_infcmd): Add ``disconnect'' command.
5029 * remote.c (remote_async_detach): Delete.
5030 (remote_detach): Merge remote_async_detach.
5031 (remote_disconnect): New.
5032 (init_remote_ops): Set to_disconnect.
5033 (init_remote_cisco_ops): Likewise.
5034 (init_remote_async_ops): Likewise. Use remote_detach.
5035 * target.c (cleanup_target): Default to_disconnect.
5036 (update_current_target): Inherit to_disconnect.
5037 (target_disconnect, debug_to_disconnect): New functions.
5038 (setup_target_debug): Set to_disconnect.
5039 * target.h (struct target_ops): Add to_disconnect.
5040 (target_disconnect): Add prototype.
5042 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5044 * breakpoint.c (insert_catchpoint): New function.
5045 (insert_breakpoints): Use catch_exceptions to call
5046 insert_catchpoint. Disable catchpoints if they fail to insert.
5048 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5050 * symfile.c (reread_symbols): Clear sym_private.
5052 2003-06-17 Andrew Cagney <cagney@redhat.com>
5054 * trad-frame.h (struct frame_info): Add opaque declaration.
5055 * remote-fileio.h (struct cmd_list_element): Add opaque
5057 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5060 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5062 * remote.c (remote_prepare_to_store): Replace call to
5063 deprecated_read_register_bytes with multiple regcache_raw_read
5066 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5068 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5069 (nto_find_and_open_solib): Likewise.
5070 (nto_init_solib_absolute_prefix): Likewise.
5071 (_initialize_nto_tdep): Fix indentation.
5073 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5075 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5077 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5079 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5081 2003-06-17 Jim Blandy <jimb@redhat.com>
5083 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5085 2003-06-16 Theodore A. Roth <troth@openavr.org>
5087 * avr-tdep.c (avr_extract_return_value): New function.
5088 (avr_gdbarch_init): Set extract_return_value method.
5090 2003-06-16 Andrew Cagney <cagney@redhat.com>
5092 * frame.h (deprecated_get_next_frame_hack): Declare.
5093 * frame.c (legacy_saved_regs_prev_register): Only require
5094 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5095 there are always saved regs.
5096 (deprecated_generic_get_saved_register): Do not require
5097 DEPRECATED_FRAME_INIT_SAVED_REGS.
5098 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5099 use frame ID unwind instead.
5100 (deprecated_get_next_frame_hack): New function.
5102 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5104 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5105 (h8300_push_dummy_call): ...this function. Some minor optimization.
5106 (h8300_push_return_address): Remove.
5107 (h8300_gdbarch_init): Remove calls to
5108 set_gdbarch_deprecated_dummy_write_sp,
5109 set_gdbarch_deprecated_push_arguments and
5110 set_gdbarch_deprecated_push_return_address.
5111 Add call to set_gdbarch_push_dummy_call.
5113 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5115 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5116 (E_PSEUDO_EXR_REGNUM): Ditto.
5117 (h8300_is_argument_spill): Check for instructions moving argument
5118 registers into safe registers.
5119 (h8300_skip_prologue): Check for stm instruction to push registers
5120 used for register variables onto stack.
5121 (gdb_print_insn_h8300): Remove.
5122 (h8300_examine_prologue): Add a comment.
5123 (h8300_register_name): Take pseudo registers into account.
5124 (h8300s_register_name): Ditto.
5125 (h8300sx_register_name): Ditto.
5126 (h8300_print_register): Ditto.
5127 (h8300_print_registers_info): Define "nice" printing order.
5128 (h8300_saved_pc_after_call): Take pseudo registers into account.
5129 (h8300_register_type): Ditto. Return type used for remote connection
5130 when requesting real CCR or EXR register, return actual type when
5131 requesting pseudo CCR or EXR.
5132 (h8300_pseudo_register_read): New function.
5133 (h8300_pseudo_register_write): Ditto.
5134 (h8300_dbg_reg_to_regnum): Ditto.
5135 (h8300s_dbg_reg_to_regnum): Ditto.
5136 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5137 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5138 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5139 set_gdbarch_print_insn architecture dependent.
5140 Call set_gdbarch_pseudo_register_read and
5141 set_gdbarch_pseudo_register_write.
5142 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5144 2003-06-16 Andrew Cagney <cagney@redhat.com>
5146 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5147 * gdbarch.h, gdbarch.c: Re-generate.
5148 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5149 * s390-tdep.c (s390_gdbarch_init): Update.
5150 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5151 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5152 * mips-tdep.c (mips_gdbarch_init): Update.
5153 * mcore-tdep.c (mcore_gdbarch_init): Update.
5154 * cris-tdep.c (cris_gdbarch_init): Update.
5155 * infcall.c (call_function_by_hand): Update.
5156 * ia64-tdep.c (ia64_push_arguments): Update comment.
5157 * frame.c (legacy_get_prev_frame): Do not assume
5158 SAVE_DUMMY_FRAME_TOS_P.
5159 * dummy-frame.c (find_dummy_frame): Update comment.
5161 2003-06-16 Andrew Cagney <cagney@redhat.com>
5163 * regcache.c (do_cooked_read): Do not use register_valid_p.
5165 2003-06-15 Theodore A. Roth <troth@openavr.org>
5167 * avr-tdep.c (avr_register_type): Remove a blank line.
5168 (avr_scan_prologue): Correct some comments.
5170 2003-06-15 Theodore A. Roth <troth@openavr.org>
5172 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5174 Properly scan prologues generated by gcc with the -mcall-prologues
5176 Add code to scan -mcall-prologues for mega devices.
5178 2003-06-15 Theodore A. Roth <troth@openavr.org>
5180 * avr-tdep.c (avr_register_byte): Delete function.
5181 (avr_register_raw_size): Delete function.
5182 (avr_register_virtual_size): Delete function.
5183 (avr_register_virtual_type): Delete function.
5184 (avr_register_type): New function.
5185 (avr_address_to_pointer): Remove unused code.
5186 (avr_read_fp): Need to read FP as two separate bytes due to change to
5187 avr_register_type() usage.
5188 (avr_gdbarch_init): Don't set deprecated_register_size.
5189 Don't set deprecated_register_bytes.
5190 Don't set deprecated_register_byte.
5191 Don't set deprecated_register_raw_size.
5192 Don't set deprecated_max_register_raw_size.
5193 Don't set deprecated_register_virtual_size.
5194 Don't set deprecated_max_register_virtual_size.
5195 Don't set deprecated_register_virtual_type.
5196 Set register_type method.
5198 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
5200 * Makefile.in (linux-nat.o): Add rule.
5201 * linux-nat.c: New file.
5202 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5203 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5204 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5205 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5206 * config/arm/linux.mh (NATDEPFILES): Likewise.
5207 * config/i386/linux.mh (NATDEPFILES): Likewise.
5208 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5209 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5210 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5211 * config/mips/linux.mh (NATDEPFILES): Likewise.
5212 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5213 * config/s390/s390.mh (NATDEPFILES): Likewise.
5214 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5216 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5218 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5219 replace out-of-date comment.
5221 2003-06-15 Andrew Cagney <cagney@redhat.com>
5223 * rdi-share/host.h (Fail): Change to a varargs function.
5224 * remote-rdi.c (Fail): Update.
5226 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5228 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5229 (i386_convert_register_p, i386_register_to_value,
5230 i386_register_from_value): Handle types longer than 8 bytes.
5232 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5234 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5235 Move floating-point code to new function in i387-tdep.c.
5236 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5237 New functions containing code moved here from i386-tdep.c.
5238 * i387-tdep.h: Add opaque declaration for `struct type'.
5239 (i387_register_to_value, i387_value_to_register): New prototypes.
5240 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5241 (x86_64_init_abi): Set convert_register_p, register_to_value and
5242 value_to_register here.
5244 2003-06-14 Andrew Cagney <cagney@redhat.com>
5246 * mips-tdep.c (mips_register_to_value): Make static.
5247 (mips_value_to_register): Make static.
5248 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5249 * ia64-tdep.c (ia64_register_raw_size): Make static.
5250 (ia64_register_virtual_size): Make static.
5251 (ia64_register_byte): Make static.
5252 * i387-tdep.c: Include "i387-tdep.h".
5253 (print_387_control_word): Delete function.
5254 (print_387_status_word): Delete function.
5255 (print_387_status_bits): Delete function.
5256 (print_387_control_bits): Delete function.
5257 * Makefile.in (i387-tdep.o): Update dependencies.
5258 * rdi-share/host.h (Fail): Declare.
5259 * remote-rdi.c (Fail): Update to match declaration.
5261 2003-06-14 Andrew Cagney <cagney@redhat.com>
5263 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5264 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5265 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5266 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5267 * README: Delete reference to remote-array.
5268 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5269 (remote-array.o): Delete target.
5270 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5271 * remote-array.c: Delete file.
5273 2003-06-14 Andrew Cagney <cagney@redhat.com>
5274 Mark Kettenis <kettenis@gnu.org>
5276 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5277 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5278 parameter with "frame".
5279 * gdbarch.h, gdbarch.c: Re-generate.
5280 * frame.h (put_frame_register): Declare.
5281 * frame.c (put_frame_register): New function.
5282 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5283 (legacy_register_to_value): Rewrite, use "frame" to get the
5285 (legacy_value_to_register): Rewrite, use "frame" to find the
5286 register's location before storing.
5287 * arch-utils.h (legacy_convert_register_p): Update.
5288 (legacy_register_to_value, legacy_value_to_register): Update.
5289 * findvar.c (value_from_register): Rewrite, eliminate use of
5290 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5291 "frame" to REGISTER_TO_VALUE.
5292 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5293 lval_reg_frame_relative + lval_register branch of the switch. Do
5294 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5295 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5296 I386_EDI_REGNUM): New defines.
5297 (i386_next_regnum, i386_convert_register_p,
5298 i386_register_to_value, i386_value_to_register): New functions.
5299 (i386_register_convertible, i386_register_convert_to_virtual,
5300 i386_convert_to_raw): Remove functions.
5301 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5302 value_to_register instead of register_convertible,
5303 register_convert_to_virtual and register_convert_to_raw.
5304 * mips-tdep.c (mips_convert_register_p): New function.
5305 (mips_value_to_register): Replace mips_register_convert_from_type.
5306 (mips_register_to_value): Replace mips_register_convert_to_type.
5307 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5309 * alpha-tdep.c (alpha_convert_register_p): Update.
5310 (alpha_value_to_register): Update, store the register.
5311 (alpha_register_to_value): Update, fetch the register.
5313 2003-06-14 Theodore A. Roth <troth@openavr.org>
5315 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5316 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5317 Don't set deprecated_call_dummy_words.
5318 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5319 Don't set remote_translate_xfer_address.
5320 (avr_io_reg_read_command): Remove commented out debug printf.
5323 2003-06-14 Theodore A. Roth <troth@openavr.org>
5325 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5326 causes gdb to seg fault.
5328 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
5330 * sparc-nat.c (fetch_inferior_registers): Correct
5331 a reference to "registers".
5333 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5335 * Makefile.in (exc_request_U_h): Define
5336 (exc_request_S_h): Likewise.
5337 (msg_reply_S_h): Likewise.
5338 (msg_U_h): Likewise.
5339 (notify_S_h): Likewise.
5340 (process_reply_S_h): Likewise.
5341 (gnu-nat.o): Depend on gdb_obstack_h
5342 * gnu-nat.c: Include "gdb_obstack.h".
5344 2003-06-13 Andrew Cagney <cagney@redhat.com>
5346 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5347 * gdbarch.h, gdbarch.c: Re-generate.
5349 2003-06-13 Andrew Cagney <cagney@redhat.com>
5351 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5352 when deprecated REGISTER macros can be deleted.
5353 * gdbarch.h, gdbarch.c: Re-generate.
5355 2003-06-13 Jim Blandy <jimb@redhat.com>
5357 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5358 Linux entry point symbols for _dl_debug_state, too.
5360 2003-06-13 Andrew Cagney <cagney@redhat.com>
5362 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5363 available, do not use the FP register, and always save the TOS.
5364 * dummy-frame.c (dummy_frame_this_id): Do not assert
5365 SAVE_DUMMY_FRAME_TOS.
5366 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5367 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5368 (i386_push_dummy_call): Add 8 to the returned SP.
5369 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5370 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5371 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5372 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5373 (x86_64_push_dummy_call): Return "sp + 16".
5374 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5375 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5376 save_dummy_frame_tos.
5378 2003-06-13 Jim Blandy <jimb@redhat.com>
5380 * frv-tdep.c (frv_use_struct_convention): Delete static
5381 declaration for function deleted in my change of 2003-06-12.
5383 2003-06-13 Theodore A. Roth <troth@openavr.org>
5385 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5386 (avr_pointer_to_address): Shift code addrs left 1 bit.
5387 (avr_convert_from_func_ptr_addr): Delete function since operation is
5388 better handled by avr_address_to_pointer and avr_pointer_to_address.
5389 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5391 2003-06-13 Mark Kettenis <kettenis@gnu.org>
5393 From Kelley Cook <kelleycook@wideopenwest.com>:
5394 * configure.host: Accept i[34567]86 variants.
5395 * configure.tgt: Likewise.
5396 * nlm/configure.in: Likewise.
5397 * nlm/configure: Regenerated.
5399 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
5401 * arm-tdep.c (solib-svr4.h): Dont' include it.
5402 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5403 * arm-linux-tdep.c: ... here. Make static.
5404 (arm_linux_init_abi): Register it.
5405 (solib-svr4.h): Include it.
5406 * Makefile.in: Update dependencies.
5407 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5408 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5410 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5412 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5413 indicate registers used for return values.
5414 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5415 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5417 (h8300_init_extra_frame_info): Ditto.
5418 (h8300_frame_locals_address): Removed.
5419 (h8300_frame_args_address): Removed.
5420 (h8300_extract_return_value): Use new regcache structure. Only care
5422 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5423 (h8300_store_return_value): Use new regcache structure. Only care
5425 (h8300h_store_return_value): Same function for 32 bit CPUs.
5426 (h8300_store_struct_return): Removed.
5427 (h8300_extract_struct_value_address): Use new regcache structure.
5428 (h8300h_extract_struct_value_address): Removed.
5429 (h8300_push_dummy_code): New function.
5430 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5431 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5432 set_gdbarch_store_return_value architecture dependent.
5433 Call set_gdbarch_push_dummy_code and
5434 set_gdbarch_extract_struct_value_address.
5435 Remove calls to set_gdbarch_frame_args_address,
5436 set_gdbarch_frame_locals_address,
5437 set_gdbarch_deprecated_store_struct_return,
5438 set_gdbarch_deprecated_extract_return_value,
5439 set_gdbarch_deprecated_extract_struct_value_address,
5440 set_gdbarch_deprecated_call_dummy_words and
5441 set_gdbarch_deprecated_sizeof_call_dummy_words.
5443 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5445 * h8300-tdep.c (h8300_register_byte): Remove.
5446 (h8300h_register_byte): Remove.
5447 (h8300_register_virtual_type): Remove. Substitute by...
5448 (h8300_register_type): New function.
5449 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5450 (h8300h_extract_struct_value_address): Ditto.
5451 (h8300_gdbarch_init): Drop calls to
5452 set_gdbarch_deprecated_register_byte and
5453 set_gdbarch_deprecated_register_virtual_type.
5454 Add call to set_gdbarch_register_type.
5456 2003-06-13 Andrew Cagney <cagney@redhat.com>
5458 * gdbarch.sh: Update comments on registers.
5459 (deprecated_register_byte): Rename register_byte.
5460 (deprecated_register_raw_size): Rename register_raw_size.
5461 (deprecated_register_virtual_size): Rename register_virtual_size.
5462 (deprecated_register_virtual_type): Rename register_virtual_type.
5463 * gdbarch.h, gdbarch.c: Re-generate.
5464 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5465 * vax-tdep.c (vax_gdbarch_init): Update.
5466 * v850-tdep.c (v850_gdbarch_init): Update.
5467 * sparc-tdep.c (sparc_gdbarch_init): Update.
5468 * sh-tdep.c (sh_gdbarch_init): Update.
5469 * s390-tdep.c (s390_gdbarch_init): Update.
5470 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5471 * ns32k-tdep.c: Update.
5472 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5473 * mips-tdep.c (mips_gdbarch_init): Update.
5474 * mcore-tdep.c (mcore_gdbarch_init): Update.
5475 * m68k-tdep.c (m68k_gdbarch_init): Update.
5476 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5477 * ia64-tdep.c (ia64_gdbarch_init): Update.
5478 * hppa-tdep.c (hppa_gdbarch_init): Update.
5479 * h8300-tdep.c (h8300_gdbarch_init): Update.
5480 * frv-tdep.c (frv_gdbarch_init): Update.
5481 * cris-tdep.c (cris_gdbarch_init): Update.
5482 * avr-tdep.c (avr_gdbarch_init): Update.
5483 * alpha-tdep.c (alpha_gdbarch_init): Update.
5484 * arm-tdep.c (arm_gdbarch_init): Update.
5486 2003-06-13 Andrew Cagney <cagney@redhat.com>
5488 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5489 mips_o32_use_struct_convention with always_use_struct_convention.
5491 2003-06-12 David Carlton <carlton@kealia.com>
5493 * cp-namespace.c (cp_set_block_scope): Comment out
5494 processing_has_namespace_info branch.
5496 2003-06-12 Jim Blandy <jimb@redhat.com>
5498 Recognize and skip 64-bit PowerPC Linux linkage functions.
5499 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5500 insn_pattern, insns_match_pattern, d_field, ds_field): New
5501 functions, macros, and types for working with PPC instructions.
5502 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5503 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5504 ppc64_skip_trampoline_code): New functions, variables, and macros
5505 for recognizing and skipping linkage functions.
5506 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5507 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5509 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5510 register offsets for both the 32- and 64-bit interfaces.
5512 Actually finish the job started by my change of 2003-05-29.
5513 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5514 other #definition of this.
5515 (ppc_linux_skip_trampoline_code): Remove declaration.
5516 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5518 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5521 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5522 'long' on ppc64-*-linux*.
5524 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5525 isn't #defined, assume the register doesn't exist: act as if
5526 tdep->ppc_mq_regnum were -1.
5528 * configure.host, configure.tgt: Add entries for
5529 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5531 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5534 * arch-utils.c (always_use_struct_convention): New function.
5535 * arch-utils.h (always_use_struct_convention): New prototype.
5536 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5537 (alpha_gdbarch_init): Register always_use_struct_convention,
5538 instead of alpha_use_struct_convention.
5539 * cris-tdep.c (cris_use_struct_convention): Delete.
5540 (cris_gdbarch_init): Register always_use_struct_convention,
5541 instead of cris_use_struct_convention.
5542 * frv-tdep.c (frv_use_struct_convention): Delete.
5543 (frv_gdbarch_init): Register always_use_struct_convention,
5544 instead of frv_use_struct_convention.
5545 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5546 (h8300_gdbarch_init): Register always_use_struct_convention,
5547 instead of h8300_use_struct_convention.
5548 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
5549 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5550 instead of mips_o32_use_struct_convention.
5552 2003-06-12 Andrew Cagney <cagney@redhat.com>
5554 * wince.c: Include "mips-tdep.h".
5555 * mips-tdep.h (mips_next_pc): Declare.
5556 * mcore-tdep.c: Make more local functions static.
5557 * Makefile.in (wince.o): Update dependencies.
5559 2003-06-12 David Carlton <carlton@kealia.com>
5561 * symtab.c (lookup_symbol_aux_minsyms): Replace
5562 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5563 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5564 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5565 SYMBOL_NATURAL_NAME.
5567 2003-06-12 Andreas Schwab <schwab@suse.de>
5569 * Makefile.in (tuiDisassem.o): Update dependencies.
5571 2003-06-12 David Carlton <carlton@bactrian.org>
5573 * symtab.h: Delete declaration of make_symbol_overload_list.
5574 Add declaration of lookup_partial_symbol.
5575 * symtab.c (remove_params): Move to cp-support.c.
5576 (overload_list_add_symbol, make_symbol_overload_list)
5577 (sym_return_val_size, sym_return_val_index): Ditto.
5578 (lookup_partial_symbol): Make extern.
5579 * cp-support.h: Add declaration of make_symbol_overload_list.
5580 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5581 symtab.h, and block.h.
5582 (remove_params): Move here from symtab.c.
5583 (overload_list_add_symbol, make_symbol_overload_list)
5584 (sym_return_val_size, sym_return_val_index): Ditto.
5585 * valops.c: Include cp-support.h.
5586 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5587 frame_h, and block_h.
5588 (valops.o): Depend on cp_support_h.
5590 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
5592 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5593 substitute by NUM_REGS throughout.
5594 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5595 (h8300s_register_name): New function for H8S registers.
5596 (h8300sx_register_name): Ditto for H8SX registers.
5597 (h8300_print_register): Revise register printing, avoid depending
5599 (h8300_register_byte): Only care for H8/300 registers.
5600 (h8300h_register_byte): New function for any other architecture.
5601 (h8300_register_raw_size): Remove.
5602 (h8300_register_virtual_type): Revise to return actually useful
5604 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5605 (h8300h_extract_struct_value_address): New function for any other
5607 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5608 set_gdbarch_register_name, set_gdbarch_register_byte,
5609 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5610 Remove calls to set_gdbarch_deprecated_register_size,
5611 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5612 set_gdbarch_deprecated_max_register_raw_size,
5613 set_gdbarch_register_virtual_size and
5614 set_gdbarch_deprecated_max_register_virtual_size entirely.
5615 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5616 set_gdbarch_long_double_bit.
5618 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5620 * doublest.c (convert_doublest_to_floatformat): When dealing
5621 with the implied integer bit, only alter mant_bits if we are
5622 processing a full 32 bits of mantissa.
5624 2003-06-11 David Carlton <carlton@bactrian.org>
5626 * dictionary.h: New.
5627 * dictionary.c: New.
5628 * block.h: Add opaque declaration for struct dictionary.
5629 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5631 (BLOCK_DICT): New macro.
5632 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5633 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5635 (ALL_BLOCK_SYMBOLS): Update definition.
5636 * Makefile.in (SFILES): Add dictionary.c.
5637 (dictionary_h): New.
5638 (COMMON_OBS): Add dictionary.o.
5639 (dictionary.o): New.
5640 (ada-lang.o): Depend on dictionary_h.
5641 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5642 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5643 (mi-cmd-stack.o): Ditto.
5644 (gdbtk-cmds.o): Update dependencies.
5645 (gdbtk-stack.o): Ditto.
5646 * ada-lang.c: Include dictionary.h.
5647 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5648 (fill_in_ada_prototype, debug_print_block): Ditto.
5649 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5650 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5652 * mdebugread.c: Include dictionary.h.
5653 (struct parse_stack): Delete 'maxsyms' member.
5654 (parse_symbol): Update calls to new_block. Delete calls to
5655 shrink_block. Use dictionary methods.
5656 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5657 Update calls to new_symtab. Don't maintain maxsyms data.
5658 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5659 (add_symbol): Just call dict_add_symbol.
5660 (new_symtab): Delete 'maxsyms' argument.
5661 (new_symtab): Update calls to new_block.
5662 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5663 (shrink_block): Delete function.
5664 (fixup_sigtramp): Update call to new_block. Add symbol via
5666 * jv-lang.c: Include dictionary.h.
5667 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5668 appropriately. Set class_symtab->free_func. Make sure the
5669 blockvector is big enough to hold two blocks.
5670 (add_class_symtab_symbol): Use dictionary methods.
5671 (free_class_block): New function.
5672 (type_from_class): Replace explicit iteration by
5674 * symtab.h (struct symtab): Replace 'free_ptr' method by
5676 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5678 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5680 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5681 Include dictionary.h.
5682 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5683 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5685 * objfiles.c: Include dictionary.h.
5686 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5687 * buildsym.c: Include dictionary.h.
5688 (finish_block): Use dictionary methods.
5689 (end_symtab): Set free_func to NULL, not free_ptr.
5690 * tracepoint.c: Include dictionary.h.
5691 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5692 (scope_info): Ditto.
5693 * stack.c: Include dictionary.h.
5694 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5695 (print_block_frame_labels, print_frame_arg_vars)
5696 (print_frame_args): Ditto.
5697 * symmisc.c (free_symtab_block): Use dictionary methods.
5698 (dump_symtab): Ditto.
5699 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5700 Include dictionary.h.
5701 * symfile.h: Delete declarations of sort_block_syms,
5703 * symfile.c (sort_block_syms): Delete.
5704 (sort_symtab_syms): Delete.
5705 * symtab.c: Include dictionary.h.
5706 (lookup_block_symbol): Use dictionary iterators.
5707 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5708 (search_symbols, make_symbol_completion_list): Ditto.
5709 (make_symbol_overload_list): Ditto.
5710 * valops.c (value_of_local): Use dict_empty.
5711 Include dictionary.h.
5713 2003-06-11 J. Brobecker <brobecker@gnat.com>
5715 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5717 2003-06-11 David Carlton <carlton@bactrian.org>
5719 * block.h (BLOCK_SHOULD_SORT): Delete.
5720 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5722 * ada-lang.c (ada_add_block_symbols): Ditto.
5723 * symfile.c (sort_block_syms): Delete.
5724 (sort_symtab_syms): Ditto.
5725 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5727 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5728 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5729 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5730 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5731 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5732 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5733 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5735 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5737 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
5740 2003-06-11 Andrew Cagney <cagney@redhat.com>
5742 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5743 REGISTER_CONVERTIBLE.
5744 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5745 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5746 * gdbarch.h, gdbarch.c: Re-generate.
5747 * arch-utils.h (deprecated_register_convertible_not): Rename
5748 generic_register_convertible_not.
5749 * arch-utils.c (deprecated_register_convertible_not): Rename
5750 generic_register_convertible.
5751 (legacy_convert_register_p, legacy_register_to_value): Update.
5752 * sh-tdep.c (sh64_push_arguments): Update.
5753 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5754 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5755 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5756 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5757 * arch-utils.c (legacy_value_to_register): Update.
5758 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5759 (rs6000_register_convert_to_raw): Make parameter "from" const.
5760 * mips-tdep.c (mips_gdbarch_init): Update.
5761 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5762 * infcmd.c (default_print_registers_info): Update.
5763 * ia64-tdep.c (ia64_gdbarch_init): Update.
5764 (ia64_register_convert_to_raw): Make parameter "from" const.
5765 * i386-tdep.c (i386_gdbarch_init): Update.
5766 (i386_register_convert_to_raw): Update.
5768 2003-06-11 Andrew Cagney <cagney@redhat.com>
5770 * remote-fileio.c: Include "remote-fileio.h".
5771 * Makefile.in (remote-fileio.o): Update dependencies.
5772 (remote_fileio_h): Fix typo.
5774 2003-06-11 Andrew Cagney <cagney@redhat.com>
5776 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5777 (xstormy16_save_dummy_frame_tos): Make static.
5778 (_initialize_xstormy16_tdep): Add declaration.
5779 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5780 * v850-tdep.c: Make local functions static.
5781 (_initialize_v850_tdep): Add declaration.
5782 * sparc-tdep.c: Make local functions static.
5783 (_initialize_sparc_tdep): Add declaration.
5784 * sh-tdep.c: Make local functions static.
5785 (_initialize_sh_tdep): Add declaration.
5786 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5787 * s390-tdep.c: Make local functions static.
5788 (_initialize_s390_tdep): Add declaration.
5789 * dbxread.c (find_stab_function_addr): Make static.
5790 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5791 * ocd.c (_initialize_remote_ocd): Add declaration.
5792 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5793 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5794 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5795 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5796 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5797 * remote-array.c (_initialize_array): Add declaration.
5798 (_initialize_remote_monitors): Add declaration.
5799 * remote-mips.c: Make local functions static.
5800 (_initialize_remote_mips): Add declaration.
5801 * mcore-tdep.c: Make all local functions static.
5802 (_initialize_mcore_tdep): Add declaration.
5803 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5804 * abug-rom.c (_initialize_abug_rom): Add declaration.
5805 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5806 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5807 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5808 * remote-est.c (_initialize_est): Add declaration.
5809 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5810 (m68hc11_call_dummy_address): Make static.
5811 * ia64-tdep.c: Make local functions static.
5812 (_initialize_ia64_tdep): Add declaration.
5813 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5814 * monitor.c (monitor_wait_filter): Make static.
5815 (_initialize_remote_monitors): Add declaration.
5816 * remote-hms.c (_initialize_remote_hms): Add declaration.
5817 * remote-e7000.c (fetch_regs_from_dump): Make static.
5818 (expect_n): Make static.
5819 (_initialize_remote_e7000): Add declaration.
5820 * ser-e7kpc.c: Always include "defs.h".
5821 (_initialize_ser_e7000pc): Add declaration.
5822 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5823 * cris-tdep.c: Make all but one function static.
5824 (_initialize_cris_tdep): Add declaration.
5825 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5826 * solib.c (update_solib_list): Make static.
5827 (_initialize_solib): Add declaration.
5828 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5829 (_initialize_avr_tdep): Add declaration.
5830 * remote-rdi.c (voiddummy): Make static.
5831 (_initialize_remote_rdi): Add declaration.
5832 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5833 * remote-rdp.c (send_rdp): Make static.
5834 (_initialize_remote_rdp): Add declaration.
5835 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5837 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
5839 * remote-fileio.c: Make ari happy.
5841 2003-06-10 J. Brobecker <brobecker@gnat.com>
5843 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5844 fetching the trailing bytes of the buffer we are about to write.
5846 2003-06-10 Andrew Cagney <cagney@redhat.com>
5848 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5849 * Makefile.in (remote-fileio.o): Update dependencies.
5850 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5851 include <setjmp.h>, or <sys/types.h> conditional on USG.
5852 (remote_fio_jmp_buf): Delete global variable.
5854 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5855 Martin M. Hunt <hunt@redhat.com>
5857 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5858 (SFILES): Add remote-fileio.c.
5859 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5860 dependencies for building remote.o.
5861 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5862 * remote-fileio.h: New header file defining remote File-I/O interface.
5863 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5864 static storage class.
5865 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5867 (_initialize_remote): Call initialize_remote_fileio().
5868 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5869 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5870 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5871 (captured_main): Initialize new ui_files.
5872 * ui-file.c: Add read and fgets input functions.
5873 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5874 (null_file_read): New function.
5875 (ui_file_read): New function.
5876 (set_ui_file_read): New function.
5877 (stdio_file_read): New function.
5878 * ui-file.h: New type ui_file_read_ftype.
5879 (set_ui_file_read): Declare.
5880 (ui_file_read): Declare.
5882 2003-06-09 Andrew Cagney <cagney@redhat.com>
5884 * frame.h (deprecated_unwind_get_saved_register): Rename
5885 generic_unwind_get_saved_register, update comments.
5886 * mips-tdep.c (mips_get_saved_register): Update.
5887 * frame.c (deprecated_unwind_get_saved_register): Update.
5889 2003-06-09 Andrew Cagney <cagney@redhat.com>
5891 * vax-tdep.c (vax_frame_locals_address): Delete function.
5892 (vax_gdbarch_init): Do not set frame_locals_address.
5893 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5894 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5895 * s390-tdep.c (s390_frame_args_address): Delete function.
5896 (s390_gdbarch_init): Do not set frame_args_address or
5897 frame_locals_address.
5898 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5899 (ns32k_gdbarch_init): Do not set frame_locals_address.
5900 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5901 (hppa_frame_locals_address): Delete function.
5902 (hppa_gdbarch_init): Do not set frame_args_address, or
5903 frame_locals_address.
5904 * arm-tdep.c (arm_frame_args_address): Delete.
5905 (arm_frame_locals_address): Delete.
5906 (arm_gdbarch_init): Do not set frame_args_address, or
5907 frame_locals_address.
5909 2003-06-09 Andrew Cagney <cagney@redhat.com>
5911 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5912 * gdbarch.h, gdbarch.c: Re-generate.
5913 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5914 * arch-utils.c (frame_num_args_unknown): Delete function.
5915 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5916 (frame_info): Use FRAME_NUM_ARGS_P.
5917 * arm-tdep.c (arm_frame_num_args): Delete function.
5918 (arm_gdbarch_init): Do not set frame_num_args.
5919 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5920 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5921 (hppa_gdbarch_init): Do not set frame_num_args.
5922 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5923 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5924 frame_num_args to default frame_num_args_unknown.
5925 * v850-tdep.c (v850_gdbarch_init): Ditto.
5926 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5927 * sh-tdep.c (sh_gdbarch_init): Ditto.
5928 * s390-tdep.c (s390_gdbarch_init): Ditto.
5929 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5930 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5931 * mips-tdep.c (mips_gdbarch_init): Ditto.
5932 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5933 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5935 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5936 * i386-tdep.c (i386_gdbarch_init): Ditto.
5937 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5938 * frv-tdep.c (frv_gdbarch_init): Ditto.
5939 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5940 * cris-tdep.c (cris_gdbarch_init): Ditto.
5941 * avr-tdep.c (avr_gdbarch_init): Ditto.
5942 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5944 2003-06-09 Andrew Cagney <cagney@redhat.com>
5946 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5947 (print_frame_args): Moved to "stack.c".
5948 * stack.c: Include "gdb_assert.h".
5949 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5950 (print_frame_args): Moved from "printcmd.c".
5951 * frame.h (print_frame_args): Delete declaration.
5952 * Makefile.in (stack.o): Update dependencies.
5954 2003-06-08 Andrew Cagney <cagney@redhat.com>
5956 * frame.c (get_prev_frame): Remove reference to
5957 frame_args_address_correct in comments.
5958 * frame-base.c (default_frame_args_address): Delete code
5959 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5960 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5961 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5962 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5963 (vax_frame_args_address_correct): Delete declaration.
5965 2003-06-08 Andrew Cagney <cagney@redhat.com>
5967 * gdbarch.sh (UNWIND_SP): Add.
5968 * gdbarch.h, gdbarch.c: Re-generate.
5969 * frame.c (frame_sp_unwind): New function.
5970 (get_frame_sp): New function.
5971 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5972 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5973 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5975 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5976 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5978 2003-06-08 Andrew Cagney <cagney@redhat.com>
5980 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5983 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5984 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5985 * config/m68k/tm-sun3.h: Update.
5986 * config/m68k/tm-m68klynx.h: Update.
5987 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5989 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5990 trad_frame". Update comments.
5991 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5992 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5993 (trad_frame_register_value, trad_frame_prev_register): Update.
5995 2003-06-08 Andrew Cagney <cagney@redhat.com>
5997 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5998 from GCC's acinclude.m4.
5999 * configure.in: Check for getopt's delcaration.
6000 * aclocal.m4, config.in, configure: Re-generate.
6001 * main.c (error_init): Delete declaration.
6002 * defs.h (error_init): Declare.
6003 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6004 (rs6000_convert_from_func_ptr_addr): Make static.
6005 (_initialize_rs6000_tdep): Add declaration.
6006 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6007 (show_commands, set_verbose, show_history): Delete declaration.
6008 * top.h (set_verbose): Add declaration.
6009 (show_history, set_history, show_commands): Add declaration.
6010 (do_restore_instream_cleanup): Add declaration.
6011 * objc-lang.c (specialcmp): Make static.
6012 (print_object_command): Make static.
6013 (find_objc_msgsend): Make static.
6014 (find_objc_msgcall_submethod_helper): Make static.
6015 (find_objc_msgcall_submethod): Make static.
6016 (_initialize_objc_language): Add declaration.
6017 (find_implementation_from_class): Make static.
6018 (find_implementation): Make static.
6019 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6020 * objc-lang.h (lookup_struct_typedef): Add declaration.
6021 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6022 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6023 (do_restore_user_call_depth): Make static.
6024 (do_restore_instream_cleanup): Delete declaration.
6025 (dont_repeat): Delete declaration.
6026 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6027 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6028 * reggroups.c (_initialize_reggroup): Add declaration.
6029 * cp-support.c (_initialize_cp_support): Add declaration.
6030 * cp-abi.c (_initialize_cp_abi): Add declaration.
6031 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6032 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6033 (_initialize_gnu_v3_abi): Add declaration.
6034 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6035 (_initialize_gnu_v2_abi): Add declaration.
6036 * frame-base.c (_initialize_frame_base): Add declaration.
6037 * doublest.c (floatformat_from_length): Make static.
6038 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6039 * frame.c (create_sentinel_frame): Make static.
6040 (_initialize_frame): Add declaration.
6041 * top.c (do_catch_errors): Make static.
6042 (gdb_rl_operate_and_get_next_completion): Make static.
6043 * typeprint.c: Include "typeprint.h".
6044 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6045 (sentinel_frame_this_id): Make static.
6046 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6047 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6048 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6049 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6050 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6051 * maint.c (maintenance_print_architecture): Make static.
6052 * signals/signals.c (_initialize_signals): Add declaration.
6053 * std-regs.c (_initialize_frame_reg): Add declaration.
6054 * jv-exp.y (push_variable): ISO C definition.
6055 (push_qualified_expression_name): Ditto.
6056 * memattr.c (_initialize_mem): Add declaration.
6057 * remote.c (remote_check_watch_resources): Make static.
6058 (remote_stopped_by_watchpoint): Make static.
6059 (remote_stopped_data_address): Make static.
6060 * d10v-tdep.c (nr_dmap_regs): Make static.
6061 (a0_regnum): Make static.
6062 (d10v_frame_unwind_cache): Make static.
6063 (d10v_frame_p): Make static.
6064 * osabi.c (show_osabi): Make static.
6065 (_initialize_gdb_osabi): Add extern declaration.
6066 * gdbtypes.c (make_qualified_type): Make static.
6067 (safe_parse_type): Make static.
6068 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6069 * macrotab.c (macro_bcache_free): Make static.
6070 * interps.c (interp_set_quiet): Make static.
6071 (interpreter_exec_cmd): Make static.
6072 * stack.h (select_frame_command): New file.
6073 * stack.c: Include "stack.h".
6074 (select_frame_command_wrapper): Delete function.
6075 (select_frame_command): Make global.
6076 * infcall.c: Include "infcall.h".
6077 * linespec.c: Include "linespec.h".
6078 * symfile.c (sections_overlap): Make static.
6079 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6080 * charset.c (_initialize_charset): Add missing prototype.
6081 * regcache.c (init_legacy_regcache_descr): Make static.
6082 (do_regcache_xfree): Make static.
6083 (regcache_xfer_part): Make static.
6084 (_initialize_regcache): Add missing prototype.
6085 * breakpoint.c (parse_breakpoint_sals): Make static.
6086 (breakpoint_sals_to_pc): Make static.
6087 * interps.h (clear_interpreter_hooks): ISO C declaration.
6088 * Makefile.in (stack_h): Define.
6089 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6090 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6092 2003-06-08 Andrew Cagney <cagney@redhat.com>
6094 * Makefile.in (d10v-tdep.o): Update dependencies.
6095 (SFILES): Add trad-frame.c.
6096 (trad_frame_h): Define.
6097 (COMMON_OBS): Add trad-frame.o.
6098 (trad-frame.o): Specify dependencies.
6099 * d10v-tdep.c: Include "trad-frame.h".
6100 (saved_regs_unwinder): Delete function.
6101 (d10v_frame_prev_register): Use trad_frame_prev_register.
6102 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6103 trad_frame", delete "regs" and "prev_sp".
6104 (prologue_find_regs): Use trad-frame.
6105 * trad-frame.h, trad-frame.c: New files.
6107 2003-06-08 Mark Kettenis <kettenis@gnu.org>
6109 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6111 2003-06-07 Adam Fedor <fedor@gnu.org>
6113 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6114 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6115 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6116 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
6117 resolve_msgsend_super, resolve_msgsend_super_stret):
6120 2003-06-07 Andrew Cagney <cagney@redhat.com>
6122 * symfile.h: Re-indent, clean up comments.
6124 2003-06-07 Andrew Cagney <cagney@redhat.com>
6126 * inferior.h (deprecated_write_sp): Replace
6127 generic_target_write_sp.
6128 * regcache.c (deprecated_write_sp): Replace
6129 generic_target_write_sp.
6130 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6131 * vax-tdep.c (vax_gdbarch_init): Update.
6132 * v850-tdep.c (v850_gdbarch_init): Update.
6133 * sparc-tdep.c (sparc_gdbarch_init): Update.
6134 * sh-tdep.c (sh_gdbarch_init): Update.
6135 * s390-tdep.c (s390_gdbarch_init): Update.
6136 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6137 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6138 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6139 * mcore-tdep.c (mcore_gdbarch_init): Update.
6140 * m68k-tdep.c (m68k_gdbarch_init): Update.
6141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6142 * ia64-tdep.c (ia64_gdbarch_init): Update.
6143 * h8300-tdep.c (h8300_gdbarch_init): Update.
6144 * frv-tdep.c (frv_gdbarch_init): Update.
6145 * cris-tdep.c (cris_gdbarch_init): Update.
6146 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6148 2003-06-07 Andrew Cagney <cagney@redhat.com>
6150 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6151 Assert that PC_REGNUM is valid.
6152 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6154 2003-06-07 Andrew Cagney <cagney@redhat.com>
6156 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6157 * gdbarch.h, gdbarch.c: Regenerate.
6158 * mn10300-tdep.c: Include "gdb_assert.h".
6159 (mn10300_read_fp): New function.
6160 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6161 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6162 * ia64-tdep.c: Include "gdb_assert.h".
6163 (ia64_read_fp): New function.
6164 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6165 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6166 * regcache.c (generic_target_read_sp): Delete function.
6167 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6168 * inferior.h (generic_target_read_sp): Delete declaration.
6169 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6170 generic_target_read_sp.
6171 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6172 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6173 * sh-tdep.c (sh_gdbarch_init): Ditto.
6174 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6175 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6177 2003-06-07 Andrew Cagney <cagney@redhat.com>
6179 * gdbarch.sh: Comment each field of startup_gdbarch.
6180 * gdbarch.h, gdbarch.c: Re-generate.
6182 2003-06-07 Andrew Cagney <cagney@redhat.com>
6184 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6185 * gdbarch.h, gdbarch.c: Re-generate.
6186 * regcache.c: Update comments on read_pc et.al.
6187 (generic_target_read_pc): Delete function.
6188 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6189 * inferior.h (generic_target_read_pc): Delete declaration.
6190 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6191 generic_target_read_pc.
6192 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6193 * sh-tdep.c (sh_gdbarch_init): Ditto.
6194 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6195 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6197 2003-06-07 Andrew Cagney <cagney@redhat.com>
6199 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6200 "index" with "special_local_sect". Use strcmp instead of STREQ.
6201 Append period to coments.
6203 2003-06-06 Mark Mitchell <mark@codesourcery.com>
6205 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6206 (elfstab_offset_sections): Likewise.
6207 * gdb-stabs.h (stab_section_info): Likewise.
6208 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6209 * objfiles.c (objfile_relocate): Likewise.
6210 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6211 * remote.c (get_offsets): Likewise.
6212 (remote_cisco_objfile_relocate): Likewise.
6213 * somread.c (som_symfile_offsets): Likewise.
6214 * symfile.c (alloc_section_addr_info): New function.
6215 (build_section_addr_info_from_section_tab): Use it.
6216 (free_section_addr_info): Adjust.
6217 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6218 (syms_from_objfile): Allocate local_addr dynamically.
6219 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6221 (add_symbol_file_command): Allocate sect_opts dynamically.
6222 (reread_symbols): Avoid use of SECT_OFF_MAX.
6223 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6224 (alloc_section_addr_info): Declare it.
6225 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6226 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6228 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
6230 2003-06-06 Andrew Cagney <cagney@redhat.com>
6232 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6233 (d10v_frame_unwind_cache): Do not set "return_pc".
6235 2003-06-06 Michael Snyder <msnyder@redhat.com>
6237 * h8300-tdep.c: Make tidy (long lines).
6239 2003-06-06 Michal Ludvig <mludvig@suse.cz>
6241 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
6242 to regcache_collect().
6244 2003-06-05 J. Brobecker <brobecker@gnat.com>
6246 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6247 pc_in_sigtramp multiarch method.
6248 (hppa_hpux_som_init_abi): Use it.
6249 (hppa_hpux_elf_init_abi): Likewise.
6250 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6251 macro has been multiarched.
6252 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6253 macro here, as hppa64 isn't multiarched yet.
6255 2003-06-05 Andrew Cagney <cagney@redhat.com>
6257 * Makefile.in (value_h): Add $(frame_h).
6258 * value.h: Include "frame.h".
6259 (struct value): Replace "frame_addr" with "frame_id".
6260 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6261 * values.c (allocate_value): Use VALUE_FRAME_ID.
6262 (value_copy): Use VALUE_FRAME_ID.
6263 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6264 * valops.c (value_assign): Update. Use frame_find_by_id.
6266 2003-06-05 Michal Ludvig <mludvig@suse.cz>
6268 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6271 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6273 * thread-db.c (check_event): For create/death event breakpoints,
6274 loop through all messages to ensure that we read the message
6275 corresponding to the breakpoint we are at.
6277 2003-06-04 Michael Snyder <msnyder@redhat.com>
6279 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6281 2003-06-04 Mark Kettenis <kettenis@gnu.org>
6283 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6284 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6285 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6286 when handling .eh_frame sections.
6288 2003-06-04 J. Brobecker <brobecker@gnat.com>
6290 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6291 prepare_to_proceed procedure instead of the hppa-specific one.
6292 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6294 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
6296 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6297 * config.in: Regenerated.
6298 * configure.in: Add test for syscall function and check for
6299 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6300 * configure: Regenerated.
6301 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6303 (kill_lwp): New function that uses tkill syscall or
6304 uses kill, depending on whether threading model is nptl or not.
6305 All callers of kill() changed to use kill_lwp().
6306 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6307 see if all threads have already exited in the nptl model.
6308 (stop_and_resume_callback): New callback function used by the
6309 lin_lwp_wait thread exit handling code.
6310 (stop_wait_callback): Check for threads already having exited and
6311 delete such threads fromt the lwp list when discovered.
6312 (stop_callback): Don't assert retcode of kill call.
6314 Roland McGrath <roland@redhat.com>
6315 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6318 2003-06-03 Richard Henderson <rth@redhat.com>
6320 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6321 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6322 (alpha_sigtramp_frame_prev_register): Likewise.
6323 (alpha_heuristic_frame_prev_register): Likewise.
6324 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6326 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
6327 alpha-specific register id names.
6328 (alpha_mdebug_frame_unwind_cache): Likewise.
6329 (alpha_mdebug_frame_prev_register): Likewise.
6331 2003-06-03 Richard Henderson <rth@redhat.com>
6333 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6334 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6335 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6336 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6338 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6339 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6340 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6342 * alpha-linux-tdep.c: Remove unnecessary includes.
6343 * Makefile.in (alpha-linux-tdep.o): Update.
6345 2003-06-03 Richard Henderson <rth@redhat.com>
6347 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6348 (alphabsd_fill_fpreg): Likewise.
6350 2003-06-03 J. Brobecker <brobecker@gnat.com>
6352 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6353 references to struct frame_info fields by calls to the equivalent
6354 accessors. Necessary now that frame_info is opaque.
6356 2003-06-03 J. Brobecker <brobecker@gnat.com>
6358 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6359 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6360 structure, field no longer exists.
6362 2003-06-03 J. Brobecker <brobecker@gnat.com>
6364 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6365 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6367 2003-06-03 J. Brobecker <brobecker@gnat.com>
6369 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6370 references to struct frame_info fields by calls to the equivalent
6371 accessors. Necessary now that frame_info is opaque.
6373 2003-06-03 J. Brobecker <brobecker@gnat.com>
6375 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6376 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6377 structure, field no longer exists.
6379 2003-06-03 Theodore A. Roth <troth@openavr.org>
6381 * remote.c (init_remote_state): Compute sizeof_g_packet by
6382 accumulation of the size of all registers instead of blindly using
6383 DEPRECATED_REGISTER_BYTES.
6385 2003-06-03 Michael Snyder <msnyder@redhat.com>
6387 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6388 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6391 2003-06-03 J. Brobecker <brobecker@gnat.com>
6393 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6394 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6396 2003-06-03 Andrew Cagney <cagney@redhat.com>
6398 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6399 (sparc_convert_to_raw): Delete function.
6400 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6401 register_convert_to_virtual.
6403 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6405 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6406 layer if not dealing with a statically-linked threaded program.
6408 2003-06-03 Kris Warkentin <kewarken@qnx.com>
6410 * solib.c (solib_open): Update comment to reflect actual search order.
6412 2003-06-03 Andrew Cagney <cagney@redhat.com>
6414 * frame.c (get_frame_memory_signed): New function.
6415 (get_frame_memory, get_frame_memory_unsigned): New function.
6416 (get_frame_arch): New function.
6417 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6418 (get_frame_memory, get_frame_unsigned_memory): Declare.
6419 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6420 get_frame_memory_unsigned and get_frame_arch.
6421 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6423 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6425 * MAINTAINERS (write after approval): Add myself.
6427 2003-06-03 Jim Blandy <jimb@redhat.com>
6429 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6430 elements of gregset_t are 64 bits each, but access registers
6431 are still 32 bits, so they're packed two per gregset_t
6432 element. Unpack/pack them properly.
6434 2003-06-02 David Carlton <carlton@bactrian.org>
6436 * linespec.c (find_methods): Break out code into
6437 add_matching_methods and add_constructors.
6438 (add_matching_methods): New.
6439 (add_constructors): Ditto.
6441 2003-06-02 Andrew Cagney <cagney@redhat.com>
6443 * sparc-tdep.c (sparc_print_registers): Delete call to
6444 REGISTER_CONVERTIBLE.
6445 (sparc_gdbarch_init): Do not set register_convertible.
6446 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6447 * frv-tdep.c (frv_gdbarch_init): Ditto.
6448 * cris-tdep.c (cris_gdbarch_init): Ditto.
6450 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
6452 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
6453 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6454 (syms_from_objfile): Ditto.
6456 2003-06-03 Andreas Schwab <schwab@suse.de>
6458 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6459 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6461 2003-06-02 Richard Henderson <rth@redhat.com>
6463 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6464 a member of all_reggroup.
6466 2003-06-02 Richard Henderson <rth@redhat.com>
6468 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6469 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6470 (alpha_lds, alpha_sts): New.
6471 (alpha_convert_register_p): Change from _register_convertible.
6472 (alpha_register_to_value): Change from _convert_to_virtual;
6473 restructure and fail for type sizes other than 4 or 8.
6474 (alpha_value_to_register): Similarly.
6475 (alpha_extract_return_value): Use alpha_sts.
6476 (alpha_store_return_value): Use alpha_lds.
6477 (alpha_gdbarch_init): Update hooks.
6479 2003-06-02 Richard Henderson <rth@redhat.com>
6481 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6483 (alpha_sigtramp_register_address): Likewise.
6485 2003-06-02 Richard Henderson <rth@redhat.com>
6487 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6488 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6489 * alpha-tdep.h: Declare them.
6491 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6492 Remove zerobuf. Don't error on UNIQUE.
6493 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6494 (ALPHA_REGSET_UNIQUE): Provide default.
6495 (supply_gregset): Use alpha_supply_int_regs.
6496 (fill_gregset): Use alpha_fill_int_regs.
6497 (supply_fpregset): Use alpha_supply_fp_regs.
6498 (fill_fpregset): Use alpha_fill_fp_regs.
6499 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6500 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6501 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6502 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6503 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6504 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6506 2003-06-02 Richard Henderson <rth@redhat.com>
6508 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6510 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6511 (alpha_store_return_value): Likewise.
6513 2003-06-02 David Carlton <carlton@math.stanford.edu>
6515 * block.c (contained_in): Add 'const' to arguments.
6516 (block_function): Ditto.
6517 * block.h: Update declarations for block_function and
6520 2003-06-02 David Carlton <carlton@math.stanford.edu>
6522 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6523 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6524 * p-valprint.c (pascal_val_print): Ditto.
6525 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6527 2003-06-02 Richard Henderson <rth@redhat.com>
6529 * alpha-tdep.c (alpha_push_dummy_call): Use
6530 builtin_type_ieee_double_little instead of builtin_type_double.
6532 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
6533 sign-extension of 32-bit values.
6534 (alpha_store_return_value): Similarly.
6536 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6537 (alpha_extract_return_value): Likewise.
6538 (alpha_store_return_value): Likewise.
6540 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6541 (alpha_store_return_value): Error on IEEE Quad floats.
6543 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6544 (alpha_extract_struct_value_address): Likewise.
6545 (alpha_store_return_value): Likewise.
6546 (alpha_store_struct_return): Remove.
6547 (alpha_gdbarch_init): Update hook registration to match.
6549 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6550 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6551 macros where appropriate.
6552 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6553 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
6555 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6556 for SP, GP; void_func_ptr for PC; non-language-specific types
6558 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
6560 2003-06-02 Richard Henderson <rth@redhat.com>
6562 * top.h (lim_at_start): Declare.
6563 * main.c (captured_main): Set it.
6564 * top.c (lim_at_start): Define.
6565 (command_loop): Use it instead of &environ.
6566 * event-top.c (command_handler): Likewise.
6568 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6570 * mipsnbsd-tdep.c: Update copyright years.
6571 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6573 2003-06-01 Richard Henderson <rth@redhat.com>
6575 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6576 (alpha-linux-tdep.o): Update dependencies.
6577 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6578 * alpha-mdebug-tdep.c: Remove unneeded includes.
6580 2003-06-01 Richard Henderson <rth@redhat.com>
6582 * alpha-tdep.c (alpha_register_reggroup_p): New.
6583 (alpha_gdbarch_init): Register it.
6585 2003-06-02 Andrew Cagney <cagney@redhat.com>
6587 * dwarfread.c: Eliminate "register"
6588 (decode_die_type): Eliminate assignment within "if".
6589 (struct_type, decode_array_element_type): Ditto.
6590 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6591 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6592 (decode_modified_type, completedieinfo): Ditto.
6593 * block.c: Eliminate "register".
6594 (blockvector_for_pc_sect): Eliminate assignment within "if".
6595 * cp-support.h (struct symbol): Opaque declaration.
6596 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6598 2003-06-01 Richard Henderson <rth@redhat.com>
6600 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6601 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
6603 2003-06-01 Adam Fedor <fedor@gnu.org>
6605 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6606 * gdbarch.[ch]: Regenerate.
6607 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6608 (hppa_gdbarch_init): Set it in the gdbarch vector.
6609 * i386-tdep.c (i386_fetch_pointer_argument): New
6610 (i386_gdbarch_init): Set it into gdbarch.
6611 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6612 (rs6000_gdbarch_init): Set it in gdbarch.
6613 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6614 (sparc_gdbarch_init): Set it in gdbarch.
6616 2003-06-01 Andrew Cagney <cagney@redhat.com>
6618 * defs.h (extract_address): Delete declaration.
6619 * findvar.c (extract_address): Delete function.
6620 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6621 extract_address with the inline equivalent,
6622 extract_unsigned_integer.
6623 (xstormy16_extract_struct_value_address): Ditto.
6624 (xstormy16_pointer_to_address): Ditto.
6625 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6626 * v850-tdep.c (v850_push_arguments): Ditto.
6627 (v850_extract_return_value): Ditto.
6628 (v850_extract_struct_value_address): Ditto.
6629 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6630 (sparcnbsd_get_longjmp_target_64): Ditto.
6631 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6632 (get_longjmp_target): Ditto.
6633 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6634 (sh64_extract_struct_value_address): Ditto.
6635 (sh_push_arguments): Ditto.
6636 (sh64_push_arguments): Ditto.
6637 * remote-vxsparc.c (vx_read_register): Ditto.
6638 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6639 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6640 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6641 * mipsv4-nat.c (get_longjmp_target): Ditto.
6642 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6643 * mips-nat.c (get_longjmp_target): Ditto.
6644 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6645 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6646 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6647 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6648 * irix5-nat.c (get_longjmp_target): Ditto.
6649 * irix4-nat.c (get_longjmp_target): Ditto.
6650 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6651 (ia64_push_arguments): Ditto.
6652 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6653 * h8300-tdep.c (h8300_push_arguments): Ditto.
6654 (h8300_store_return_value): Ditto.
6655 (h8300_extract_struct_value_address): Ditto.
6656 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6657 (frv_push_arguments): Ditto.
6658 * avr-tdep.c (avr_pointer_to_address): Ditto.
6659 (avr_push_arguments): Ditto.
6660 * arm-tdep.c (arm_push_dummy_call): Ditto.
6661 (arm_get_longjmp_target): Ditto.
6662 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6663 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6664 (alpha_get_longjmp_target): Ditto.
6666 * solib-irix.c (extract_mips_address): Inline extract_address,
6667 replacing it with extract_signed_integer.
6668 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6669 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6670 (first_link_map_member, open_symbol_file_object): Ditto.
6671 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6672 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6673 (LM_NEXT, LM_NAME): Ditto.
6675 2003-06-01 Richard Henderson <rth@redhat.com>
6677 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6678 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6679 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6680 (alpha_cannot_store_register): Likewise.
6681 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6682 * alpha-nat.c (supply_gregset): Likewise.
6683 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
6685 2003-06-01 Andrew Cagney <cagney@redhat.com>
6687 * infcall.c (call_function_by_hand): Update comment on
6688 DEPRECATED_DUMMY_WRITE_SP.
6690 * mips-tdep.c (mips_gdbarch_init): Do not set
6691 deprecated_dummy_write_sp.
6692 (mips_eabi_push_dummy_call): Set the SP register.
6693 (mips_o64_push_dummy_call): Set the SP register.
6694 (mips_o32_push_dummy_call): Set the SP register.
6695 (mips_n32n64_push_dummy_call): Set the SP register.
6697 2003-06-01 Richard Henderson <rth@redhat.com>
6699 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6700 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6701 (supply_gregset): Likewise.
6702 * alpha-tdep.c (alpha_store_return_value): Likewise.
6703 (alpha_get_longjmp_target): Likewise.
6704 (alpha_register_name): Constify array.
6705 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6706 deprecated_register_size, deprecated_register_bytes,
6707 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6708 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6709 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
6711 2003-06-01 Richard Henderson <rth@redhat.com>
6713 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6714 from arg_reg_buffer to regcache to avoid double conversion.
6716 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6718 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6720 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6721 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6723 2003-06-01 Richard Henderson <rth@redhat.com>
6725 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6726 (decode_frame_entry): Set it. Skip FDE augmentation.
6728 2003-06-01 Richard Henderson <rth@redhat.com>
6730 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6731 not overlapping PC_REGNUM.
6733 2003-06-01 Richard Henderson <rth@redhat.com>
6735 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6736 alpha_push_arguments. Don't dump argument register data to
6737 the target stack. Fix float and 128-bit long double semantics.
6738 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6739 (alpha_fix_call_dummy): Remove.
6740 (alpha_call_dummy_words): Remove.
6741 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
6743 2003-06-01 Richard Henderson <rth@redhat.com>
6745 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6747 2003-06-01 Andrew Cagney <cagney@redhat.com>
6749 * mips-tdep.c (is_mips16_addr): New function.
6750 (make_mips16_addr, unmake_mips16_addr): New functions.
6751 (pc_is_mips16, mips_fetch_instruction): Use.
6752 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6753 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6754 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6755 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6757 * config/mips/tm-mips.h: Update copyright.
6758 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6759 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6760 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6761 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6762 (TM_PRINT_INSN_MACH): Delete.
6763 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6765 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6766 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6767 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6768 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6769 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6770 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6771 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6772 mips*-*-riscos* and mips*-*-sysv* onto mips.
6773 * config/mips/mips64.mt: New file.
6774 * config/mips/mips.mt: New file.
6775 * config/mips/littlemips.mt: Delete file.
6776 * config/mips/decstation.mt: Delete file.
6777 * config/mips/vr4300el.mt: Delete file.
6778 * config/mips/vr5000el.mt: Delete file.
6779 * config/mips/vr5000.mt: Delete file.
6780 * config/mips/vr4100.mt: Delete file.
6781 * config/mips/vr4xxxel.mt: Delete file.
6782 * config/mips/vr4300.mt: Delete file.
6783 * config/mips/vr4xxx.mt: Delete file.
6784 * config/mips/bigmips.mt: Delete file.
6785 * config/mips/bigmips64.mt: Delete file.
6786 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6787 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6788 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6789 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6790 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6792 * config/mips/tm-irix3.h: Ditto.
6793 * config/mips/tm-mipsv4.h: Ditto.
6794 * config/mips/tm-embed.h: Ditto.
6795 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6797 * config/mips/tm-vr5000el.h: Delete file.
6798 * config/mips/tm-tx39l.h: Delete file.
6799 * config/mips/tm-vr4300el.h: Delete file.
6800 * config/mips/tm-vr4xxxel.h: Delete file.
6801 * config/mips/tm-vr4300.h: Delete file.
6802 * config/mips/tm-vr4100.h: Delete file.
6803 * config/mips/tm-vr4xxx.h: Delete file.
6804 * config/mips/tm-vr5000.h: Delete file.
6805 * config/mips/tm-embedl64.h: Delete file.
6806 * config/mips/tm-embedl.h: Delete file.
6807 * config/mips/tm-embed64.h: Delete file.
6808 * config/mips/tm-bigmips64.h: Delete file.
6809 * config/mips/tm-bigmips.h: Delete file.
6811 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6814 * shnbsd-nat.c: Include "sh-tdep.h".
6816 From Richard Henderson <rth@redhat.com>:
6817 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6819 2003-05-31 Andrew Cagney <cagney@redhat.com>
6821 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6822 forward declaration.
6823 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6824 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6825 (mips_find_saved_regs): Use set_reg_offset.
6826 (mips_frame_init_saved_regs): Delete function.
6827 (mips_pop_frame): Call mips_find_saved_regs instead of
6828 DEPRECATED_FRAME_INIT_SAVED_REGS.
6830 2003-05-31 Andrew Cagney <cagney@redhat.com>
6832 * mips-tdep.c (mips_gdbarch_init): Do not set
6833 deprecated_max_register_raw_size, register_virtual_size, and
6834 deprecated_max_register_virtual_size.
6836 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6838 * i386-tdep.c: Include "dwarf2-frame.h".
6839 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6840 * Makefile.in (i386-tdep.o): Update dependencies.
6842 * dwarf2-frame.c, dwarf2-frame.h: New files.
6843 * Makefile.in (SFILES): Add dwarf2-frame.c.
6844 (dwarf2_frame_h): Define.
6845 (COMMON_OBS): Add dwarf2-frame.o.
6846 (dwarf2-frame.o): Add dependencies.
6848 2003-05-31 Andreas Jaeger <aj@suse.de>
6850 * x86-64-linux-nat.c: Fix comment.
6852 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6854 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6857 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6858 have a sigcontext_addr handler.
6859 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6860 sigcontext_addr handler.
6862 2003-05-31 Andrew Cagney <cagney@redhat.com>
6864 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6865 (print_fp_register_row): Replace do_fp_register_row.
6866 (mips_print_fp_register): Add "file" and "frame" parameters.
6867 (mips_print_register): Add "file" and "frame" parameters.
6868 (mips_print_registers_info): Replace mips_do_registers_info.
6869 (mips_gdbarch_init): Set print_registers_info instead of
6870 deprecated_do_registers_info.
6871 (mips_read_fp_register_single): Add "frame" parameter.
6872 (mips_read_fp_register_double): Add "frame" parameter.
6874 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6876 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6877 Fixes a bug where GDB would print the wrong register names for
6878 targets without SSE.
6880 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6881 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6884 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6885 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6886 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6889 From Michal Ludvig <mludvig@suse.cz>:
6890 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6892 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6893 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6894 I386_ST0_REGNUM): Move here from...
6895 * i386-tdep.c: ... here.
6896 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6897 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6898 registers if possible.
6899 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6900 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6902 (i386bsd_sc_reg_offset): New variable.
6903 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6904 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6906 (i386fbsd_sc_reg_offset): New variable.
6907 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6909 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6911 (i386fbsd4_sc_reg_offset): New variable.
6912 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6913 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6915 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6916 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6917 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6919 (i386nbsd_sc_reg_offset): New variable.
6920 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6921 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6923 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6925 (i386obsd_sc_reg_offset): New variable.
6926 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6927 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6929 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6930 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6931 for frame pointer offset in `struct sigcontext'.
6933 2003-05-31 Andrew Cagney <cagney@redhat.com>
6935 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6936 architecture methods call_dummy_words, sizeof_call_dummy_words,
6937 push_return_address, store_struct_return, and fix_call_dummy. Set
6938 push_dummy_call instead of deprecated_push_arguments.
6939 (mips_store_struct_return): Delete function.
6940 (mips_fix_call_dummy): Delete function.
6941 (mips_push_return_address): Delete function.
6942 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6943 RA_REGNUM and T9_REGNUM.
6944 (mips_n32n64_push_dummy_call): Ditto for
6945 mips_n32n64_push_arguments.
6946 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6947 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6949 2003-05-31 Andrew Cagney <cagney@redhat.com>
6951 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6952 "dummy_addr" to "bp_addr".
6953 * infcall.c (call_function_by_hand): Pass "funaddr" to
6954 gdbarch_push_dummy_call.
6955 * gdbarch.h, gdbarch.c: Re-generate.
6956 * i386-tdep.c (i386_push_dummy_call): Update.
6957 * arm-tdep.c (arm_push_dummy_call): Update.
6958 * d10v-tdep.c (d10v_push_dummy_call): Update.
6960 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6962 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6963 variable declarations.
6964 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6965 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6966 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6967 x86_64_init_frame_pc, x86_64_init_frame_pc,
6968 x86_64_function_has_prologue): Remove prototypes.
6969 (X86_64_NUM_GREGS): New define.
6970 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6971 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6972 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6973 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6974 XMM1_REGNUM): Remove defines.
6975 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6976 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6977 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6978 X86_64_XMM1_REGNUM): New defines.
6979 (struct x86_64_register_info): Renamed from `struct
6980 register_info'. Remove `size' member.
6981 (x86_64_register_info_table): Remove variable.
6982 (x86_64_register_info): New variable.
6983 (X86_64_NUM_REGS): New define.
6984 (X86_64_NUM_GREGS): Remove define.
6985 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6986 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6988 (x86_54_dwarf2_reg_to_regnum): Remove function.
6989 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6990 (x86_64_dwarf_reg_to_regnum): New function.
6991 (x86_64_register_name): Rewrite.
6992 (x86_64_register_raw_size): Remove function.
6993 (x86_64_register_byte_table): Remove variable.
6994 (x86_64_register_byte): Remove function.
6995 (x86_64_register_virtual_type): Remove function.
6996 (x86_64_register_type): New function.
6997 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6998 x86_64_register_convert_to_raw): Remove functions.
6999 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7000 (x86_64_use_struct_convention): Make static. Adjust for renamed
7002 (x86_64_frame_init_saved_regs): Remove function.
7003 (x86_64_push_arguments): Make static. Change to accept a regcache
7005 (x86_64_store_return_value, x86_64_extract_return_value): Make
7006 static. Rewrite based on i386 counterparts.
7007 (x86_64_push_dummy_call): New function.
7008 (X86_64_NUM_SAVED_REGS): New define.
7009 (x86_64_register_number): Remove function.
7010 (x86_64_store_struct_return): Remove function.
7011 (x86_64_frameless_function_invocation,
7012 x86_64_function_has_prologue): Remove functions.
7013 (PROLOG_BUFSIZE): Remove define.
7014 (struct x86_64_frame_cache): New structure.
7015 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7016 x86_64_frame_cache, x86_64_frame_this_id,
7017 x86_64_frame_prev_register, x86_64_frame_p,
7018 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7019 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7021 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7023 (x86_64_skip_prologue): Rewrite in terms of
7024 x86_64_analyze_prologue.
7025 (x86_64_frame_base_address): New function.
7026 (x86_64_frame_base): New variable.
7027 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7028 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7029 set deprecated_fp_regnum, deprecated_register_size,
7030 deprecated_register_bytes, register_raw_size, register_byte,
7031 register_virtual_type, register_convertiable,
7032 register_convert_to_virtual, convert_to_raw,
7033 deprecated_get_saved_register, deprecated_target_read_fp,
7034 deprecated_push_arguments, deprecated_push_return_address,
7035 deprecated_pop_frame, deprecated_store_struct_return,
7036 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7037 frameless_function_invocation, deprecated_frame_saved_pc,
7038 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7039 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7040 deprecated_init_frame_pc and virtual_frame_pointer. Call
7041 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7042 and x86_64_frame_p. Call frame_base_set_default to register
7044 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7045 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7046 (_initialize_x86_64_tdep): Remove function.
7047 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7048 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7049 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7051 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7052 (x86_64_linux_sigcontext_addr): Rewrite.
7053 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7054 x86_64_linux_frame_saved_pc): Remove functions.
7055 (x86_64_linux_pc_in_sigtramp): Renamed from
7056 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7058 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7060 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7061 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7062 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7063 (x86_64_regmap): Rename to regmap.
7064 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7066 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7068 (x86_64_fxsave_offset): Remove function.
7069 (supply_fpregset): Simply call x86_64_supply_fxsave.
7070 (fill_fpregset): Simply call x86_64_fill_fxsave.
7071 (fetch_inferior_registers, store_inferior_registers): Avoid
7072 asignment in if-statement.
7073 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7074 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7075 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7076 (fetch_core_registers): Remove function.
7077 (linux_elf_core_fns): Remove.
7078 (offsetoff): Don't define.
7079 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7080 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7081 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7083 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7084 protection against multiple includes instead of NM_X86_64_h. Add
7085 various comments. Include "config/nm-linux.h". Don't include
7087 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7088 GET_THREAD_SIGNALS): Remove defines.
7089 (x86_64_register_u_addr, kernel_u_size,
7090 lin_thread_get_thread_signals): Remove prototypes.
7091 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7092 [HAVE_LINK_H]: Don't include "solib.h".
7093 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7094 * config/i386/tm-x86-64linux.h: Fix comments.
7095 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7096 x86-64-tdep.o): Update dependencies.
7098 2003-05-30 Andrew Cagney <cagney@redhat.com>
7100 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7101 Change parameter type to a "struct regcache *".
7103 * gdbarch.sh: Regardless of the multi-arch level, always define
7104 the macro when not already defined.
7105 * gdbarch.h, gdbarch.c: Re-generate.
7107 2003-05-30 Richard Henderson <rth@redhat.com>
7109 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7110 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7111 (alpha_mdebug_frame_this_id): Likewise.
7112 (alpha_mdebug_frame_prev_register): Likewise.
7113 (alpha_mdebug_frame_base_address): Likewise.
7114 (alpha_mdebug_frame_locals_address): Likewise.
7115 (alpha_mdebug_frame_args_address): Likewise.
7116 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7117 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7118 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7120 (alpha_heuristic_frame_this_id): Make static.
7121 (alpha_heuristic_frame_prev_register): Likewise.
7122 (alpha_heuristic_frame_base_address): Likewise.
7123 * alpha-tdep.h: Update.
7125 2003-05-30 Mark Kettenis <kettenis@gnu.org>
7127 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7128 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7130 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7131 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7132 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7133 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7134 I386_ST0_REGNUM): New defines.
7135 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7136 codestream_get): Remove define.
7137 (codestream_next_addr, condestream_addr, condestream_buf,
7138 codestream_off, codestream_cnt): Remove variables.
7139 (codestream_fill, codestream_seek, codestream_read): Remove
7141 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7143 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7144 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7145 i386_frame_saved_pc, i386_saved_pc_after_call,
7146 i386_frame_num_args, i386_frame_init_saved_regs,
7147 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7148 i386_push_arguments): Remove functions.
7149 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7150 functionality. Use i386_analyze_prologue instead of
7151 i386_get_frame_setup.
7152 (I386_NUM_SAVED_REGS): New define.
7153 (struct i386_frame_cache): New structure.
7154 (i386_alloc_frame_cache, i386_analyze_struct_return,
7155 i386_skip_probe, i386_analyze_frame_setup,
7156 i386_analyze_register_saves, i386_analyze_prologue,
7157 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7158 i386_frame_prev_register, i386_sigtramp_frame_cache,
7159 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7160 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7161 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7163 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7165 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7166 I386_EAX_REGNUM and I386_EDX_REGNUM.
7167 (i386_extract_return_value, i386_store_return_value): Use
7168 I386_ST0_REGNUM where appropriate.
7169 (i386_extract_struct_value_address): Rewrite to use extract_address.
7170 (i386_svr4_pc_in_sigtramp): Add comment.
7171 (i386_svr4_sigcontext_addr): Rewrite.
7172 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7174 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7175 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7176 of new defines. Set push_dummy_call, don't set
7177 deprecated_push_arguments, deprecated_push_return_address,
7178 deprecated_pop_frame. Don't set parm_boundary. Don't set
7179 deprecated_frame_chain, deprecated_frame_saved_pc,
7180 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7181 save_dummy_frame_tos, unwind_pc. Call
7182 frame_unwind_append_predicate and frame_base_set_default. Don't
7183 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7184 Don't set frameless_function_invocation. Don't set
7185 deprecated_register_bytes, deprecated_register_size,
7186 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7187 * i386-linux-tdep.c: Fix formatting in some comments.
7188 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7189 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7190 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7191 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7192 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7193 redundant parentheses.
7194 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7195 (i386_linux_sigcontext_addr): Use it. Rewrite.
7196 (find_minsym_and_objfile): Change name of second argument.
7197 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7198 changed. Use frame_pc_unwind instead of
7199 DEPRECATED_SAVED_PC_AFTER_CALL.
7200 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7201 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7202 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7204 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7206 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7207 (_initialize_i386_cygwin_tdep): New prototype.
7208 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7209 deprecated_frame_chain_valid.
7210 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7211 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7212 Rely on the SVR4 defaults.
7213 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7214 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7216 2003-05-30 Andrew Cagney <cagney@redhat.com>
7218 * infcall.c (call_function_by_hand): Always call
7219 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7221 2003-05-30 Richard Henderson <rth@redhat.com>
7223 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7226 2003-05-29 Jim Blandy <jimb@redhat.com>
7228 Use gdbarch methods for solib stuff on PowerPC Linux.
7229 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7230 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7232 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7233 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7234 giving the same effect as the #definitions above.
7236 2003-05-29 Adam Fedor <fedor@gnu.org>
7238 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7239 (find_implementation_from_class): Replace it with the standard
7240 case i.e. do nothing.
7242 2003-05-29 Richard Henderson <rth@redhat.com>
7244 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7245 (alpha_linux_sigtramp_offset): Use it. Make static.
7246 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7247 update for new frame model.
7248 * alpha-mdebug-tdep.c: New file.
7249 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7250 (alpha_osf1_init_abi): Install it.
7251 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7252 (linked_proc_desc_table): Remove.
7253 (alpha_frame_past_sigtramp_frame): Remove.
7254 (alpha_dynamic_sigtramp_offset): Remove.
7255 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7256 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7257 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7258 (push_sigtramp_desc): Remove.
7259 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7260 (alpha_cannot_store_register): Likewise.
7261 (alpha_sigcontext_addr): Remove.
7262 (alpha_find_saved_regs): Remove.
7263 (alpha_frame_init_saved_regs): Remove.
7264 (alpha_init_frame_pc_first): Remove.
7265 (read_next_frame_reg): Remove.
7266 (alpha_frame_saved_pc): Remove.
7267 (alpha_saved_pc_after_call): Remove.
7268 (temp_proc_desc, temp_saved_regs): Remove.
7269 (alpha_about_to_return): Remove.
7270 (cached_proc_desc): Remove.
7271 (alpha_frame_chain): Remove.
7272 (alpha_print_extra_frame_info): Remove.
7273 (alpha_init_extra_frame_info): Remove.
7274 (alpha_frame_locals_address): Remove.
7275 (alpha_frame_args_address): Remove.
7276 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7277 (alpha_push_dummy_frame): Remove.
7278 (alpha_pop_frame): Remove.
7279 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7280 (alpha_read_insn): New.
7281 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7282 for different insn encodings.
7283 (alpha_in_lenient_prologue): Remove.
7284 (struct alpha_sigtramp_unwind_cache): New.
7285 (alpha_sigtramp_frame_unwind_cache): New.
7286 (alpha_sigtramp_register_address): New.
7287 (alpha_sigtramp_frame_this_id): New.
7288 (alpha_sigtramp_frame_prev_register): New.
7289 (alpha_sigtramp_frame_unwind): New.
7290 (alpha_sigtramp_frame_p): New.
7291 (struct alpha_heuristic_unwind_cache): New.
7292 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7293 don't count nop insns that occur between functions.
7294 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7295 heuristic_proc_desc, but without the mdebug wrapping.
7296 (alpha_heuristic_frame_this_id): New.
7297 (alpha_heuristic_frame_prev_register): New.
7298 (alpha_heuristic_frame_unwind): New.
7299 (alpha_heuristic_frame_p): New.
7300 (alpha_heuristic_frame_base_address): New.
7301 (alpha_heuristic_frame_base): New.
7302 (alpha_unwind_dummy_id): New.
7303 (alpha_unwind_pc): New.
7304 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7305 frame related deprecated initializations; install replacements.
7306 (alpha_dump_tdep): Remove.
7307 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7308 (alpha_read_insn, alpha_after_prologue,
7309 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7310 alpha_heuristic_frame_prev_register,
7311 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7312 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7313 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7314 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7316 2003-05-29 Andrew Cagney <cagney@redhat.com>
7318 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7319 dependant on the availability of ASSERT_FUNCTION.
7320 (ASSERT_FUNCTION): Do not define when there is no function name.
7322 2003-05-29 Kevin Buettner <kevinb@redhat.com>
7324 From Jimi X <jimix@watson.ibm.com>:
7325 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7327 2003-05-28 Jim Blandy <jimb@redhat.com>
7329 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7330 argument to ptrace to int; the system headers should give it the
7331 right type, and pointers don't fit in ints on powerpc64-*-*.
7333 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7335 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7338 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7340 * stabsread.c (dbx_lookup_type): Make static.
7342 (add_undefined_type): Ditto.
7343 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7346 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7348 * hpread.c (hpread_has_name): Make static.
7349 (hpread_psymtab_to_symtab): Ditto.
7350 (file_exists): Ditto.
7351 (hpread_call_pxdb): Ditto.
7352 (hpread_pxdb_needed): Ditto.
7353 (hpread_quick_traverse): Ditto.
7354 (hpread_get_header): Ditto.
7355 (hpread_get_lntt): Ditto.
7356 (hpread_get_slt): Ditto.
7359 2003-05-25 Andreas Schwab <schwab@suse.de>
7361 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7362 stack_align and deprecated_extra_stack_alignment_needed.
7363 (m68k_stack_align): Delete.
7365 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7366 (m68k_register_virtual_size): Likewise.
7367 (altos_skip_prologue): Remove obsolete function.
7368 (isi_frame_num_args): Likewise.
7369 (news_frame_num_args): Likewise.
7370 (m68k_fix_call_dummy): Make static.
7371 (m68k_push_dummy_frame): Likewise.
7372 (m68k_pop_frame): Likewise.
7373 (m68k_skip_prologue): Likewise.
7374 (m68k_frame_init_saved_regs): Likewise.
7375 (m68k_saved_pc_after_call): Likewise.
7376 (m68k_get_longjmp_target): Make multi-arch.
7377 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7378 structure. Register m68k_get_longjmp_target if enabled.
7379 * m68k-tdep.h (struct gdbarch_tdep): Define.
7380 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7382 * Makefile.in (config.status): Also depend on configure.tgt
7384 (m68klinux-tdep.o): Update dependencies.
7385 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7386 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7387 (M68K_LINUX_JB_PC): Define.
7388 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7389 and take additional parameter.
7390 (m68k_linux_sigtramp_saved_pc): Update.
7391 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7392 m68k_linux_pc_in_sigtramp, in_plt_section,
7393 find_solib_trampoline_target.
7394 * config/m68k/tm-linux.h: Don't include any tm headers.
7395 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7396 (JB_ELEMENT_SIZE): Likewise.
7398 (GET_LONGJMP_TARGET): Likewise.
7399 (IN_SIGTRAMP): Likewise.
7400 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7402 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7404 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7405 (sparc32_push_arguments): Re-implement by calling
7406 sparc32_do_push_arguments.
7408 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7410 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7411 SPARC_O1_REGNUM): New defines.
7412 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7413 (sparc32_store_return_value): New function.
7414 (sparc_extract_struct_value_address): Rewrite to operate on a
7416 (sparc_gdbarch_init): Don't set
7417 deprecated_extract_struct_value_address. Set
7418 extract_struct_value_address instead. Don't set
7419 deprecated_extract_return_value and deprecated_store_return_value
7420 for 32-bit targets. Set extract_return_value and
7421 store_return_value instead.
7422 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7423 DEPRECTAED_EXTRACT_RETURN_VALUE,
7424 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7425 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7426 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7427 (sparc_store_return_value): Remove prototype.
7428 (sparc32_store_return_value): New prototype.
7429 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7432 2003-05-24 Mark Kettenis <kettenis@gnu.org>
7434 * sparcnbsd-tdep.c: Include "gdb_string.h".
7436 2003-05-23 Andrew Cagney <cagney@redhat.com>
7438 * p-valprint.c (pascal_val_print): Replace extract_address with
7439 the inline equivalent extract_unsigned_integer.
7440 * jv-valprint.c (java_value_print): Ditto.
7441 * ada-valprint.c (ada_val_print_1): Ditto.
7442 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7444 2003-05-23 Theodore A. Roth <troth@openavr.org>
7446 * blockframe.c (frameless_look_for_prologue): Remove unused
7447 after_prologue variable.
7449 2003-05-23 Mark Kettenis <kettenis@gnu.org>
7451 * blockframe.c (get_pc_function_start): Rewrite to avoid
7452 asignments in if-statements.
7454 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7456 Committed by Elena Zannoni <ezannoni@redhat.com>.
7457 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
7458 files, don't relocate absolute symbols (and do use mst_abs).
7460 2003-05-23 Andrew Cagney <cagney@redhat.com>
7462 * objc-lang.c: Include "gdb_assert.h".
7463 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7464 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7465 (gdb_check, gdb_check_fatal): Delete functions.
7466 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7468 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7469 * Makefile.in (objc-lang.o): Update dependencies.
7471 2003-05-22 Ian Lance Taylor <ian@airs.com>
7473 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7474 with fprintf_filtered, not fprintf_unfiltered.
7476 2003-05-22 Andrew Cagney <cagney@redhat.com>
7478 * stack.c (frame_info): Inline extract_address, replacing it with
7479 extract_unsigned_integer.
7480 * findvar.c (unsigned_pointer_to_address): Ditto.
7481 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7482 * dwarf2expr.c (dwarf2_read_address): Ditto.
7483 * frame.c (frame_pc_unwind): Update comment.
7484 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7486 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7488 * infptrace.c (detach): Call print_sys_errmsg rather than
7489 perror_with_name to issue warning message when errno is non-zero
7490 after calling ptrace detach.
7492 2003-05-21 J. Brobecker <brobecker@gnat.com>
7494 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7495 macro definitions from here...
7496 * hppa-tdep.c: ...to there.
7498 2003-05-20 Kevin Buettner <kevinb@redhat.com>
7500 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7501 register_ptrace_addr(). Fix all callers.
7503 2003-05-21 Andreas Schwab <schwab@suse.de>
7505 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7507 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7509 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7510 (_initialize_m68k_linux_tdep): New function.
7511 (m68k_linux_frame_saved_pc): Make static.
7512 (m68k_linux_extract_return_value): Likewise.
7513 (m68k_linux_store_return_value): Likewise.
7514 (m68k_linux_extract_struct_value_address): Likewise.
7515 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7517 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7518 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7519 (DEPRECATED_FRAME_SAVED_PC): Remove.
7521 2003-05-20 Kris Warkentin <kewarken@qnx.com>
7523 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7524 regset numbering rather than our own.
7526 2003-05-19 David Carlton <carlton@bactrian.org>
7528 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7530 2003-05-19 David Carlton <carlton@bactrian.org>
7532 Partial fix for PR c++/827.
7533 * cp-support.h: Include symtab.h.
7534 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7535 * cp-namespace.c: Update contributors.
7536 (cp_lookup_symbol_nonlocal): New.
7537 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7538 (lookup_symbol_file): Ditto.
7539 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7540 * block.h: Declare block_scope, block_using, block_global_block.
7541 * block.c (block_scope): New.
7542 (block_using, block_global_block): Ditto.
7543 * Makefile.in (cp_support_h): Depend on symtab_h.
7544 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7546 2003-05-19 David Carlton <carlton@bactrian.org>
7548 * language.h (struct language_defn): Add 'la_value_of_this'
7549 and 'la_lookup_symbol_nonlocal' members.
7550 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7551 lookup_symbol_static, lookup_symbol_global,
7552 lookup_symbol_aux_block.
7553 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7554 if we should search fields of this and how to do static/global
7556 (lookup_symbol_aux_block): Make extern.
7557 (basic_lookup_symbol_nonlocal): New.
7558 (lookup_symbol_static, lookup_symbol_global): Ditto.
7559 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7560 'la_lookup_symbol_nonlocal' members.
7561 * c-lang.c (c_language_defn, cplus_language_defn)
7562 (asm_language_defn, minimal_language_defn): Ditto.
7563 * jv-lang.c (java_language_defn): Ditto.
7564 * language.c (unknown_language_defn, auto_language_defn)
7565 (local_language_defn): Ditto.
7566 * m2-lang.c (m2_language_defn): Ditto.
7567 * objc-lang.c (objc_language_defn): Ditto.
7568 * scm-lang.c (scm_language_defn): Ditto.
7569 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7570 * p-lang.c (pascal_language_defn): Ditto for both.
7571 * Makefile.in (f-lang.o): Depend on value_h.
7574 2003-05-19 David Carlton <carlton@bactrian.org>
7576 * block.h: Declare block_static_block.
7577 * block.c (block_static_block): New.
7578 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7579 lookup_symbol_aux_local, calling block_static_block instead.
7580 (lookup_symbol_aux_local): Delete 'static_block' argument.
7582 2003-05-19 David Carlton <carlton@bactrian.org>
7584 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7586 2003-05-19 Michal Ludvig <mludvig@suse.cz>
7588 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7589 register numbers mapping.
7591 2003-05-18 Adam Fedor <fedor@gnu.org>
7593 * symtab.c (completion_list_objc_symbol): New function.
7594 (make_symbol_completion_list): Use it to add ObjC symbols
7595 when looking though the list.
7596 (language_search_unquoted_string): New function.
7597 (make_file_symbol_completion_list): Use it.
7599 2003-05-18 Andreas Schwab <schwab@suse.de>
7601 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7603 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7604 as m68k_linux_extract_return_value.
7605 (DEPRECATED_STORE_RETURN_VALUE): Define as
7606 m68k_linux_store_return_value.
7607 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7608 m68k_linux_extract_struct_value_address.
7609 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7610 get_next_frame, get_frame_base, get_frame_pc.
7611 (m68k_linux_frame_saved_pc): Use get_frame_base.
7612 (m68k_linux_extract_return_value): New function.
7613 (m68k_linux_store_return_value): New function.
7614 (m68k_linux_extract_struct_value_address): New function.
7615 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7617 * c-exp.y (typebase): Remove duplicate occurence of
7618 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
7619 of lookup_signed_typename.
7621 2003-05-18 Mark Kettenis <kettenis@gnu.org>
7623 * dwarf2loc.c (find_location_expression): Change type of second
7624 argument to `size_t *'.
7625 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7628 2003-05-18 David Carlton <carlton@bactrian.org>
7630 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7631 'linkage_name'. Add comment.
7632 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7634 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7635 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7636 (lookup_block_symbol): Ditto.
7638 2003-05-16 Andrew Cagney <cagney@redhat.com>
7640 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7641 * gdbarch.h, gdbarch.c: Re-generate.
7642 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7643 * TODO (REGISTER_BYTES): Delete reference.
7644 * alpha-tdep.c (alpha_gdbarch_init): Update.
7645 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7646 * x86-64-tdep.c (x86_64_init_abi): Update.
7647 * vax-tdep.c (vax_gdbarch_init): Update.
7648 * v850-tdep.c (v850_gdbarch_init): Update.
7649 * sparc-tdep.c (sparc_gdbarch_init): Update.
7650 * sh-tdep.c (sh_gdbarch_init): Update.
7651 * s390-tdep.c (s390_gdbarch_init): Update.
7652 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7653 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7654 (ns32k_gdbarch_init_32382): Update.
7655 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7656 * mcore-tdep.c (mcore_gdbarch_init): Update.
7657 * m68k-tdep.c (m68k_gdbarch_init): Update.
7658 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7659 * ia64-tdep.c (ia64_gdbarch_init): Update.
7660 * i386-tdep.c (i386_gdbarch_init): Update.
7661 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7662 * hppa-tdep.c (hppa_gdbarch_init): Update.
7663 * h8300-tdep.c (h8300_gdbarch_init): Update.
7664 * frv-tdep.c (frv_gdbarch_init): Update.
7665 * cris-tdep.c (cris_gdbarch_init): Update.
7666 * avr-tdep.c (avr_gdbarch_init): Update.
7667 * arm-tdep.c (arm_gdbarch_init): Update.
7668 * sparc-tdep.c (sparc_pop_frame): Update.
7669 * rs6000-tdep.c (rs6000_pop_frame): Update.
7670 * remote.c (init_remote_state): Update.
7671 (remote_prepare_to_store): Update.
7672 * remote-vx.c (vx_prepare_to_store): Update.
7673 * remote-sds.c (sds_fetch_registers): Update.
7674 (sds_prepare_to_store): Update.
7675 * remote-array.c: Update.
7676 * regcache.c (init_legacy_regcache_descr): Update.
7677 (init_regcache_descr): Update.
7678 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7679 (mips_o64_extract_return_value): Update.
7680 * irix5-nat.c (fetch_core_registers): Update.
7681 * irix4-nat.c (fetch_core_registers): Update.
7682 * i386-tdep.h: Update.
7683 * hppa-tdep.c (pa_do_registers_info): Update.
7684 (pa_do_strcat_registers_info): Update.
7685 * cris-tdep.c (cris_register_bytes_ok): Update.
7686 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7687 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7688 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7689 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7690 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7691 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7692 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7693 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7694 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7695 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7696 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7697 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7698 (REGISTER_BYTES_OK): Update.
7699 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7700 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7702 2003-05-16 Ian Lance Taylor <ian@airs.com>
7704 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7705 (vax_print_insn, print_insn_arg): Remove static functions.
7706 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7707 print_insn_vax from opcodes library.
7708 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7710 2003-05-15 Andrew Cagney <cagney@redhat.com>
7712 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7713 * target.h (memory_breakpoint_from_pc): Delete declaration.
7714 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7715 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7716 * monitor.c (monitor_insert_breakpoint): Use
7717 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7718 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7719 * gdbarch.h, gdbarch.c: Re-generate.
7720 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7721 (sparc_gdbarch_init): Set breakpoint_from_pc to
7722 sparc_breakpoint_from_pc.
7723 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7724 (BREAKPOINT_FROM_PC): Define.
7725 (sparc_breakpoint_from_pc): Declare.
7726 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7727 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7728 (BREAKPOINT_FROM_PC): Define.
7729 (BREAKPOINT): Delete macro.
7730 * target.h: Update comment.
7731 * s390-tdep.c (s390_gdbarch_init): Update comments.
7732 * remote.c: Update comments.
7733 * remote-mips.c: Update comments.
7734 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7735 * mem-break.c: Update comment.
7736 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7737 (ia64_memory_insert_breakpoint): Update.
7738 * config/sparc/tm-sparc.h: Update comment.
7739 * config/pa/tm-hppa64.h: Update comment.
7740 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7741 (rs6000_breakpoint_from_pc): Update.
7742 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7743 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7744 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7745 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7746 (mips_breakpoint_from_pc): Update.
7747 (mips_dump_tdep): Update.
7749 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7750 * minsyms.c (lookup_minimal_symbol): Inline
7751 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7753 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7754 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7755 * p-lang.c (pascal_printstr): Ditto.
7756 * objc-lang.c (objc_printstr): Ditto.
7757 * m2-lang.c (m2_printstr): Ditto.
7758 * jv-valprint.c (java_print_value_fields): Ditto.
7759 * f-lang.c (f_printstr): Ditto.
7760 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7761 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7762 for repeat_count_threshold.
7763 * Makefile.in (cp-valprint.o): Update dependencies.
7765 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
7767 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7768 (examine_prologue): Support looking through leaf functions, knowing
7769 they start with mov r2,r12. Support skipping over indirect stores
7770 of the input registers. Upon hitting a non-nop branch instruction
7771 or predicated instruction, bail out by setting lim_pc to the current
7772 pc value in the loop. At the end, if the lim_pc value is still
7773 beyond our calculated value and we have trust_limit set,
7774 use the lim_pc value.
7776 2003-05-15 Andrew Cagney <cagney@redhat.com>
7778 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7779 generic_find_dummy_frame.
7780 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7781 (deprecated_generic_find_dummy_frame): Update.
7782 (deprecated_read_register_dummy): Update.
7783 * frame.c (deprecated_generic_get_saved_register): Update.
7785 2003-05-15 Theodore A. Roth <troth@openavr.org>
7787 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7788 (avr_gdbarch_init): Set breakpoint_from_pc method.
7790 2003-05-15 Andrew Cagney <cagney@redhat.com>
7792 * regcache.c (build_regcache): Set deprecated_register_valid
7794 (deprecated_grub_regcache_for_register_valid): Delete function.
7795 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7798 2003-05-15 David Carlton <carlton@bactrian.org>
7800 Committed by Elena Zannoni <ezannoni@redhat.com>
7801 * symtab.c (lookup_symbol_aux): Delete calls to
7802 lookup_symbol_aux_minsyms.
7803 (lookup_symbol_aux_minsyms): Comment out function and
7804 prototype. Delete lookup by mangled name.
7806 2003-05-14 Kevin Buettner <kevinb@redhat.com>
7808 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7809 correctly indicate an empty stack and ``stack_allocated'' to the
7810 indicate the number of elements initially allocated.
7811 (dwarf_expr_grow_stack): Simplify method for computing new
7812 stack size. Don't loop infinitely if ``stack_len'' is zero.
7813 (execute_stack_op): Move ``ctx->in_reg'' initialization
7814 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7815 be used in conjuction with DW_OP_piece. Revise error message
7818 2003-05-14 Theodore A. Roth <troth@openavr.org>
7820 * MAINTAINERS: Update my email address.
7821 * avr-tdep.c: Ditto.
7823 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
7825 * symtab.h (enum domain_enum): Rename from namespace_enum.
7826 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7827 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7828 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7829 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7830 TYPES_NAMESPACE, METHODS_NAMESPACE.
7831 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7832 (struct symbol, struct partial_symbol): Rename field
7833 'namespace_enum namespace' to 'domain_enum domain'.
7834 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7835 Delete old define kludge for namespace.
7837 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7838 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7839 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7840 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7841 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7842 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7843 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7844 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7845 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7846 occurrences of the above.
7848 2003-05-14 Ian Lance Taylor <ian@airs.com>
7850 * Makefile.in (install-only): Use $(SHELL) when running
7853 2003-05-13 Ian Lance Taylor <ian@airs.com>
7855 * MAINTAINERS (write after approval): Add myself.
7857 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7858 second and third arguments.
7859 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7860 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7862 2003-05-13 Andrew Cagney <cagney@redhat.com>
7864 * defs.h (store_address): Delete declaration.
7865 findvar.c (store_address): Delete function.
7866 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7867 store_unsigned_integer.
7868 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7869 * v850-tdep.c (v850_push_arguments): Ditto.
7870 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7871 * sh-tdep.c (sh64_get_saved_register): Ditto.
7872 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7873 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7874 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7875 (mips_get_saved_register): Ditto.
7876 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7877 (find_func_descr, ia64_push_arguments): Ditto.
7878 * i386-tdep.c (i386_push_arguments): Ditto.
7879 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7880 * frv-tdep.c (frv_push_arguments): Ditto.
7881 * frame.c (legacy_saved_regs_prev_register): Ditto.
7882 (deprecated_generic_get_saved_register): Ditto.
7883 * findvar.c (unsigned_address_to_pointer): Ditto.
7884 * dwarf2read.c (dwarf2_const_value): Ditto.
7885 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7886 * alpha-tdep.c (alpha_push_arguments): Ditto.
7888 2003-05-12 J. Brobecker <brobecker@gnat.com>
7890 * NEWS: Mention that the hppa-hpux port has been partially
7891 multiarched (32bit ABIT only, so far).
7893 2003-05-11 Andrew Cagney <cagney@redhat.com>
7895 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7896 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7897 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7898 sim/testsuite/sim/arm/misaligned2.ms, and
7899 sim/testsuite/sim/arm/misaligned3.ms.
7900 * disasm.h (struct ui_file): Add opaque struct declaration.
7901 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7902 * frame.h (struct ui_file): Ditto.
7904 2003-05-11 Mark Kettenis <kettenis@gnu.org>
7906 * value.h: Pretty print.
7908 2003-05-10 Mark Kettenis <kettenis@gnu.org>
7910 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7912 2003-05-08 Andrew Cagney <cagney@redhat.com>
7914 * regcache.h (max_register_size): Delete declaration.
7915 * regcache.c (max_register_size): Delete function.
7916 (struct regcache_descr): Delete field "max_register_size".
7917 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7918 registers fit in MAX_REGISTER_SIZE.
7919 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7920 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7921 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7922 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7923 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7924 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7925 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7926 * dve3900-rom.c, hppa-tdep.c: Ditto.
7928 2003-05-08 David Carlton <carlton@math.stanford.edu>
7930 * valops.c (push_word): Fix typo.
7932 2003-05-08 Andrew Cagney <cagney@redhat.com>
7934 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7935 * gdbarch.h: Re-generate.
7936 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7937 (legacy_max_register_raw_size): Delete declaration.
7938 * regcache.c (legacy_max_register_raw_size): Delete function.
7939 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7940 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7941 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7942 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7943 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7944 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7945 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7946 * findvar.c, dwarf2cfi.c: Ditto.
7948 2003-05-08 Andrew Cagney <cagney@redhat.com>
7950 * mips-tdep.c (read_signed_register): New function, moved to here
7952 (read_signed_register_pid): Ditto.
7953 * regcache.c (read_signed_register_pid): Delete function, moved to
7955 (read_signed_register): Ditto.
7956 * regcache.h (read_signed_register): Delete declaration.
7957 (read_signed_register_pid): Delete declaration.
7959 2003-05-08 Andrew Cagney <cagney@redhat.com>
7961 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7962 * gdbarch.h: Re-generate.
7963 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7964 (legacy_max_register_virtual_size): Delete declaration.
7965 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7966 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7967 * tracepoint.c (memrange_sortmerge): Ditto.
7968 * sparc-tdep.c (sparc_print_registers): Ditto.
7969 * regcache.c (legacy_max_register_virtual_size): Delete function.
7971 2002-05-08 J. Brobecker <brobecker@gnat.com>
7973 * fork-child.c (escape_bang_in_quoted_argument): New function.
7974 (fork_inferior): Escape '!' characters in quoted arguments
7977 2003-05-08 J. Brobecker <brobecker@gnat.com>
7979 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7980 the language of the CU is not currently supported by GDB.
7982 2003-05-08 J. Brobecker <brobecker@gnat.com>
7984 * defs.h (language): Add language_minimal enum value.
7985 * c-lang.c (minimal_language_defn): New language definition.
7986 (_initialize_c_language): Add the new minimal language to the list
7987 of languages known to GDB.
7989 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7991 * frame.c (get_frame_type): Don't attempt to lazily initialize
7992 frame's unwinder for legacy frames.
7994 2003-05-07 Andrew Cagney <cagney@redhat.com>
7996 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7997 and "regcache" parameters.
7998 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8000 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8002 * dwarf2read.c (dwarf_decode_lines): Only use output of
8003 check_cu_functions() when calling record_line(). Do not update
8004 the current address.
8006 2003-05-07 Andrew Cagney <cagney@redhat.com>
8008 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8011 2003-05-07 Jim Blandy <jimb@redhat.com>
8013 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8014 'maint info symtabs' and 'maint info psymtabs'.
8015 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8016 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8017 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8018 Declarations updated.
8019 * maint.c (maintenance_list_command): Delete.
8020 (_initialize_maint_cmds): Update calls to add_cmd.
8021 * gdbcmd.h (maintenancelistlist): Delete declaration.
8022 * cli/cli-cmds.c (maintenancelistlist): Delete.
8023 (init_cmd_lists): Don't initialize it.
8024 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8026 2003-05-07 Andrew Cagney <cagney@redhat.com>
8028 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8030 (d10v_print_registers_info): Update.
8031 (d10v_dmap_register, d10v_imap_register): Delete functions.
8032 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8033 and "imap_register".
8034 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8035 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8036 * arch-utils.c (generic_remote_translate_xfer_address): Add
8037 "regcache" and "gdbarch" parameters.
8038 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8039 parameter. Change class to multi-arch.
8040 * gdbarch.h, gdbarch.c: Re-generate.
8041 * remote.c (remote_xfer_memory): Use
8042 gdbarch_remote_translate_xfer_address.
8044 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8046 * infrun.c (prev_pc): Move declaration ahead of proceed().
8047 (proceed): Refresh prev_pc value before resuming.
8048 (stop_stepping): Remove code to refresh prev_pc.
8050 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8052 * nto-tdep.c: Removed stray comment.
8054 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8056 * i386-nto-tdep.c: Fix old K&R function definitions.
8057 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8058 Also change add_show_from_set() call to add_setshow_cmd().
8059 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8061 2003-05-05 Andrew Cagney <cagney@redhat.com>
8063 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8064 (fprint_dummy_frames): New function.
8065 (maintenance_print_dummy_frames): New function.
8066 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8067 * frame.c (fprint_frame_id): Make global.
8068 * frame.h (fprint_frame_id): Declare.
8069 * Makefile.in (dummy-frame.o): Update dependencies.
8071 2003-05-05 Andrew Cagney <cagney@redhat.com>
8073 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8074 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8075 SIZEOF_CALL_DUMMY_WORDS.
8076 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8077 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8078 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8079 CALL_DUMMY_BREAKPOINT_OFFSET.
8080 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8081 CALL_DUMMY_START_OFFSET.
8082 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8083 * gdbarch.h, gdbarch.c: Re-generate.
8084 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8085 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8086 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8087 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8088 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8089 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8090 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8091 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8092 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8093 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8094 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8095 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8096 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8097 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8098 * config/sparc/tm-sparc.h: Update.
8100 2003-05-05 Kris Warkentin <kewarken@qnx.com>
8102 * configure.tgt: Add i[3456]86-*-nto*.
8103 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8104 * nto-tdep.c: New file. Neutrino target support routines.
8105 * nto-tdep.h: New file. Neutrino target header.
8106 * config/tm-qnxnto.h: New file.
8107 * config/i386/i386nto.mt: New file.
8108 * config/i386/tm-i386nto.h: New file.
8110 2003-05-04 Andrew Cagney <cagney@redhat.com>
8112 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8113 (load_infrun_state): Ditto.
8114 (struct thread_info): Drop "prev_func_name" field.
8115 * thread.c (load_infrun_state): Update.
8116 (save_infrun_state): Update.
8117 * infrun.c (prev_func_name): Delete variable.
8118 (init_wait_for_inferior): Do not clear prev_func_name.
8119 (stop_stepping, keep_going, context_switch): Do not swap
8121 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8122 instead of PC_IN_SIGTRAMP.
8124 2003-05-04 Andrew Cagney <cagney@redhat.com>
8126 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8127 REGISTER_BYTE with register_offset_hack.
8128 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8129 that REGISTER_BYTE is consistent with the regcache.
8130 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8131 * gdbarch.h, gdbarch.c: Regenerate.
8133 2003-05-04 Mark Kettenis <kettenis@gnu.org>
8135 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8136 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8138 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8140 2003-05-03 J. Brobecker <brobecker@gnat.com>
8142 From Thierry Schneider <tpschneider1@yahoo.com>
8143 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8144 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8145 (mi-cmd-symbol.o): Add rule.
8147 2003-05-03 Andrew Cagney <cagney@redhat.com>
8149 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8150 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8151 * gdbarch.h, gdbarch.c: Re-generate.
8152 * d10v-tdep.c (d10v_push_dummy_code): New function.
8153 (d10v_gdbarch_init): Set push_dummy_code.
8154 * infcall.c (legacy_push_dummy_code): New function.
8155 (generic_push_dummy_code): New function.
8156 (push_dummy_code): New function.
8157 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8158 instead of dummy_addr, to push_dummy_call. Move call to
8159 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8161 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8163 2003-05-03 Andrew Cagney <cagney@redhat.com>
8165 * disasm.h (print_insn): Declare.
8166 * disasm.c (init_gdb_disassemble_info): New function.
8167 (gdb_disassembly): Call init_gdb_disassemble_info.
8168 (gdb_print_insn): New function.
8169 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8170 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8171 * mcore-tdep.c: Include "disasm.h"
8172 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8173 * d10v-tdep.c: Include "disasm.h".
8174 (display_trace): Call gdb_print_insn, instead of print_insn.
8175 (print_insn): Delete function.
8176 * printcmd.c: Include "disasm.h".
8177 (print_insn): Delete function.
8178 (print_formatted): Call gdb_print_insn, instead of print_insn.
8179 * Makefile.in (printcmd.o): Update dependencies.
8180 (mcore-tdep.o, d10v-tdep.o): Ditto.
8182 2003-05-02 Andrew Cagney <cagney@redhat.com>
8184 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8185 PC_REGNUM, re-indent.
8186 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8187 PC_REGNUM isn't set.
8189 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8190 * gdbarch.h, gdbarch.c: Re-generate.
8191 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8192 register_virtual_size, pc_regnum, or register_bytes.
8193 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8194 (d10v_register_type): Use D10V_PC_REGNUM.
8195 (d10v_print_registers_info, d10v_read_pc): Ditto.
8196 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8197 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8199 2003-05-02 David Carlton <carlton@bactrian.org>
8201 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8202 the name with mstrsave.
8204 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
8206 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8207 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8208 (host_charset_name, target_charset_name): New vars for use by
8210 (host_charset_enum, target_charset_enum): New enums for set/show
8212 (set_charset_sfunc, set_host_charset_sfunc,
8213 set_target_charset_sfunc): New functions.
8214 (set_host_charset, set_target_charset): Make static.
8215 (list_charsets, set_host_charset_command,
8216 set_target_charset_command): Delete functions.
8217 (show_charset_command): Rewrite as....
8218 (show_charset): Hook this up with the set/show command mechanism.
8219 (_initialize_charset): Change names of charsets to match the
8220 set/show enums. Use host_charset_name and target_charset_name.
8221 Use set/show mechanism for charset, host-charset, target-charset
8222 commands. Do not make 'show host-charset' and 'show
8223 target-charset' be aliases of 'show charset'.
8225 * charset.h (set_host_charset, set_target_charset): Don't export,
8226 they are not used outside the file.
8228 2003-05-01 Andrew Cagney <cagney@redhat.com>
8230 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8231 (gdb_disassembly): Make "di" non static, always initialize and
8232 cleanup. Always use dis_asm_read_memory.
8233 (gdb_dis_asm_read_memory): Delete function.
8235 2003-05-01 Andrew Cagney <cagney@redhat.com>
8237 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8238 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8240 2003-04-30 Andrew Cagney <cagney@redhat.com>
8242 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8243 "tm_print_insn_info".
8244 (TARGET_PRINT_INSN_INFO): Delete macro.
8245 (dis_asm_read_memory): Delete function declaration.
8246 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8247 (tm_print_insn_info): Delete variable definition.
8248 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8249 * gdbarch.h, gdbarch.c: Re-generate.
8250 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8251 "deprecated_tm_print_insn_info".
8252 * mcore-tdep.c (mcore_dump_insn): Ditto.
8253 * mips-tdep.c (mips_gdbarch_init): Ditto.
8254 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8255 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8256 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8257 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8258 instead of TARGET_PRINT_INSN_INFO, add comment.
8259 * s390-tdep.c (s390_get_frame_info): Instead of
8260 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8261 (s390_check_function_end, s390_is_sigreturn): Ditto.
8262 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8263 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8264 * disasm.c: Include "gdbcore.h".
8265 (_initialize_disasm): New function, initialize
8266 "deprecated_tm_print_insn_info".
8267 (deprecated_tm_print_insn_info): New variable.
8268 (dis_asm_read_memory): Moved from "corefile.c", made static.
8269 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8270 * Makefile.in (disasm.o): Update dependencies.
8272 2003-04-30 Andrew Cagney <cagney@redhat.com>
8274 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8276 2003-04-29 Adam Fedor <fedor@gnu.org>
8278 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8279 * infcall.c (find_function_addr): Make non-static.
8280 * infcall.h (find_function_addr): Declare.
8281 * Makefile.in (eval.o): Update dependencies.
8283 2003-04-28 Adam Fedor <fedor@gnu.org>
8285 * symtab.c (symbol_find_demangled_name): Check for and demangle
8287 (symbol_init_demangled_name): Init for language_objc as well.
8289 2003-04-28 Andrew Cagney <cagney@redhat.com>
8291 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8292 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8293 * gdbarch.h, gdbarch.c: Re-generate.
8294 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8295 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8296 * inferior.h (deprecated_read_fp): Rename read_fp.
8297 (generic_target_read_fp): Delete declaration.
8298 * regcache.c (generic_target_read_fp): Delete function.
8299 (deprecated_read_fp): Replace read_fp, use
8300 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8301 * d10v-tdep.c (d10v_read_fp): Delete function.
8302 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8304 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8305 deprecated_target_read_fp to generic_target_read_fp.
8306 * sh-tdep.c (sh_gdbarch_init): Ditto.
8307 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8308 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8309 * frv-tdep.c (frv_gdbarch_init): Ditto.
8311 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8312 deprecated_fp_regnum.
8313 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8314 * vax-tdep.c (vax_gdbarch_init): Ditto.
8315 * v850-tdep.c (v850_gdbarch_init): Ditto.
8316 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8317 * sh-tdep.c (sh_gdbarch_init): Ditto.
8318 * s390-tdep.c (s390_gdbarch_init): Ditto.
8319 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8320 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8321 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8322 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8323 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8324 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8325 * i386-tdep.c (i386_gdbarch_init): Ditto.
8326 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8327 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8328 * frv-tdep.c (frv_gdbarch_init): Ditto.
8329 * cris-tdep.c (cris_gdbarch_init): Ditto.
8330 * avr-tdep.c (avr_gdbarch_init): Ditto.
8331 * arm-tdep.c (arm_gdbarch_init): Ditto.
8332 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8334 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8335 * v850-tdep.c (v850_gdbarch_init): Ditto.
8336 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8337 * sh-tdep.c (sh_gdbarch_init): Ditto.
8338 * s390-tdep.c (s390_gdbarch_init): Ditto.
8339 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8340 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8341 * mips-tdep.c (mips_gdbarch_init): Ditto.
8342 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8343 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8344 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8345 * frv-tdep.c (frv_gdbarch_init): Ditto.
8346 * avr-tdep.c (avr_gdbarch_init): Ditto.
8347 * arm-tdep.c (arm_gdbarch_init): Ditto.
8349 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8350 DEPRECATED_FP_REGNUM.
8351 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8352 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8353 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8354 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8355 (sparc32_register_virtual_type): Ditto.
8356 * sh-tdep.c (sh64_frame_chain): Ditto.
8357 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8358 (sh_nofp_frame_init_saved_regs): Ditto.
8359 (sh64_nofp_frame_init_saved_regs): Ditto.
8360 (sh_fp_frame_init_saved_regs): Ditto.
8361 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8362 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8363 * procfs.c (procfs_fetch_registers): Ditto.
8364 (procfs_store_registers): Ditto.
8365 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8366 (store_inferior_registers, fetch_core_registers): Ditto.
8367 (fetch_kcore_registers, clear_regs): Ditto.
8368 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8369 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8370 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8371 * nlm/i386.c (do_status): Ditto.
8372 * mipsv4-nat.c (supply_gregset): Ditto.
8373 * mips-tdep.c: Ditto for comments.
8374 * mips-nat.c (fetch_inferior_registers): Ditto.
8375 (store_inferior_registers, fetch_core_registers): Ditto.
8376 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8377 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8378 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8379 (i386_do_pop_frame, i386_register_type): Ditto.
8380 * hppa-tdep.c (hppa_frame_chain): Ditto.
8381 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8382 (hppa_pop_frame, hppa_read_fp): Ditto.
8383 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8384 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8385 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8386 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8387 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8388 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8389 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8390 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8391 * blockframe.c: Ditto for comments.
8392 * arch-utils.h: Ditto for comments.
8393 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8394 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8395 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8396 * alpha-tdep.h: Ditto for comments.
8397 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8398 (alpha_cannot_store_register): Ditto.
8399 (alpha_push_dummy_frame): Ditto.
8400 * alpha-nat.c (supply_gregset): Ditto.
8402 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8403 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8404 * config/sparc/tm-sparc.h: Update comment.
8406 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8407 deprecated_read_fp instead of TARGET_READ_FP.
8408 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8409 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8410 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8411 deprecated_read_fp instead of read_fp.
8412 * s390-tdep.c (s390_push_arguments): Ditto.
8413 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8414 * frame.h: Ditto in comments.
8415 * frame.c (legacy_get_prev_frame): Ditto.
8416 * dummy-frame.c (dummy_frame_this_id): Ditto.
8417 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8419 2003-04-28 Andrew Cagney <cagney@redhat.com>
8421 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8422 * gdbarch.h, gdbarch.c: Re-generate.
8423 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8424 * vax-tdep.c (_initialize_vax_tdep): Update.
8425 * v850-tdep.c (_initialize_v850_tdep): Update.
8426 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8427 * s390-tdep.c (_initialize_s390_tdep): Update.
8428 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8429 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8430 * mips-tdep.c (_initialize_mips_tdep): Update.
8431 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8432 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8433 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8434 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8435 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8436 * frv-tdep.c (_initialize_frv_tdep): Update.
8437 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8438 (_initialize_cris_tdep): Update.
8439 * arch-utils.c (legacy_print_insn): Update.
8440 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8442 2003-04-26 Adam Fedor <fedor@gnu.org>
8444 * linespec.c (decode_objc): New function to decode ObjC calls
8445 (decode_line_1): Check for ObjC calls (using decode_objc)
8446 * Makefile (linespec.o): Update dependencies.
8448 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
8450 * breakpoint.h (struct breakpoint_ops): New.
8451 (struct breakpoint): Add ops member.
8453 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8454 (mention): Use new breakpoint ops member.
8455 (set_raw_breakpoint): Initialize ops field to NULL.
8456 (print_exception_catchpoint, print_one_exception_catchpoint)
8457 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8458 (gnu_v3_exception_catchpoint_ops): New.
8459 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8461 2003-04-25 Adam Fedor <fedor@gnu.org>
8463 * Makefile.in (COMMON_OBS): Add objc-lang.o
8465 2003-04-25 Andrew Cagney <cagney@redhat.com>
8467 * d10v-tdep.c (print_insn): Delete function.
8468 (display_trace): Use TARGET_PRINT_INSN.
8469 (_initialize_d10v_tdep): Do not set tm_print_insn.
8470 (d10v_gdbarch_init): Set print_insn.
8472 2003-04-25 Andrew Cagney <cagney@redhat.com>
8474 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8475 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8476 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8477 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8478 (nr_dmap_regs, a0_regnum): ... new functions.
8479 (d10v_print_registers_info): Use a0_regnum, use register_size.
8480 (d10v_register_byte): Delete function.
8481 (d10v_register_raw_size): Delete function.
8482 (d10v_register_type): Use a0_regnum.
8483 (d10v_print_registers_info): Use a0_regnum.
8484 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8485 (d10v_gdbarch_init): Do not set register_byte or
8486 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8487 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8489 (trace_command): Use XCALLOC.
8490 (print_insn): Delete reference to tm_print_insn.
8491 (saved_regs_unwinder): Use store_unsigned_integer instead of
8493 * frame.h (FRAME_OBSTACK_CALLOC): Define
8495 2003-04-25 David Carlton <carlton@bactrian.org>
8497 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8499 2003-04-24 Adam Fedor <fedor@gnu.org>
8501 * objc-lang.c: Include "valprint.h"
8502 * Makefile.in (objc-lang.o): Update dependencies.
8504 2003-04-24 Adam Fedor <fedor@gnu.org>
8506 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
8507 architecture dependant compilation and mark as unimplemented
8508 (until they get put in the gdbarch vector).
8510 2003-04-23 David Carlton <carlton@bactrian.org>
8512 * cp-support.c (cp_find_first_component): Accept 'operator' in
8515 2003-04-23 Andrew Cagney <cagney@redhat.com>
8517 * infcall.c (call_function_by_hand): Eliminate redundant
8518 indentation. Move "saved_async" and "old_cleanups" to where they
8521 2003-04-23 Andrew Cagney <cagney@redhat.com>
8523 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8524 and "buffer". Move the "name" code to where it is needed.
8526 2003-04-23 Andrew Cagney <cagney@redhat.com>
8528 * infcall.c (call_function_by_hand): Move variables "start_sp",
8529 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8530 code to ON_STACK switch branch.
8532 2003-04-23 Andrew Cagney <cagney@redhat.com>
8534 * infcall.c (call_function_by_hand): Make declaration of "i",
8535 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8538 2003-04-23 Andrew Cagney <cagney@redhat.com>
8540 * infcall.c (call_function_by_hand): Delete variable
8541 "n_method_args". Localize "param_type"'s declaration to the loop
8542 that it is used. Reinstate code assigning to said variable -
8543 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8544 Rationalize code using "param_type".
8546 2003-04-22 Andrew Cagney <cagney@redhat.com>
8548 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8549 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8550 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8551 to DEPRECATED_PUSH_RETURN_ADDRESS.
8553 2003-04-22 Kevin Buettner <kevinb@redhat.com>
8555 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8556 on the DWARF2 register number prior to fetching a register.
8558 2003-04-22 J. Brobecker <brobecker@gnat.com>
8560 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8561 Update all the tests using SOFT_FLOAT considering the fact that
8562 this macro was always set to 0.
8563 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8564 considering the fact that this macro was always set to 0.
8565 * hppa-tdep.h (hppa_store_return_value): Likewise.
8566 (hppa_extract_return_value): Likewise.
8568 2003-04-22 J. Brobecker <brobecker@gnat.com>
8570 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8571 the hppa-pro target only.
8573 2003-04-21 J. Brobecker <brobecker@gnat.com>
8575 Ongoing multi-arch conversion effort for HP/UX:
8576 * config/pa/tm-hppa.h: Move all macro that are no longer
8577 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8578 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8580 2003-04-21 J. Brobecker <brobecker@gnat.com>
8582 * config/pa/tm-hppa.h: Obsolete a section that was only used
8585 2003-04-21 J. Brobecker <brobecker@gnat.com>
8587 Ongoing multi-arch conversion for HP/UX.
8588 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8589 if already defined (allows hppa64 to stay non-multiarched for now).
8590 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8592 2003-04-21 Andrew Cagney <cagney@redhat.com>
8594 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8596 2003-04-21 Andrew Cagney <cagney@redhat.com>
8598 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8599 "i386_num_mmx_regs".
8601 2003-04-21 Andrew Cagney <cagney@redhat.com>
8603 * infcall.c: New file.
8604 * infcall.h: New file.
8605 * valarith.c: Include "infcall.h".
8606 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8607 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8608 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8609 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8610 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8611 (SFILES): Add "infcall.c"
8612 (COMMON_OBS): Add "infcall.o".
8613 (infcall.o): Specify dependencies.
8614 * value.h (call_function_by_hand): Delete declaration.
8615 * inferior.h (run_stack_dummy): Delete declaration.
8616 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8617 (run_stack_dummy): Move to "infcall.c", merged into
8618 call_function_by_hand.
8619 * valops.c (call_function_by_hand): Moved to "infcall.c".
8620 (find_function_addr, value_arg_coerce): Ditto.
8621 (unwindonsignal_p, coerce_float_to_double): Ditto.
8622 (_initialize_valops): Move "set/show coerce-float-to-double", and
8623 "set/show unwindonsignal" commands to "infcall.c".
8624 * v850-tdep.c, target.h: Update comments.
8625 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8626 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8627 (sh64_init_extra_frame_info): Update comments.
8628 * mn10300-tdep.c: Update comments.
8629 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8630 * config/sparc/tm-sparc.h: Update comments.
8631 * breakpoint.h: Update comments.
8632 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8633 * arm-tdep.c: Update comment.
8635 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8637 * i386-tdep.c (i386_num_register_names): New variable.
8638 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8639 (MM0_REGNUM): Remove redundant parentheses in define.
8640 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8641 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8642 i386_mxcsr_regnum_p): Remove redundant parentheses.
8643 (i386_register_name): Use i386_num_register_names.
8645 * i386-tdep.c (i386_extract_return_value,
8646 i386_store_return_value): Correct check for availability of
8647 floating-point registers.
8649 * i386-tdep.c (i386_frame_num_args): Remove function.
8650 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8652 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8653 mmx_regnum_to_fp_regnum. Adjust all callers.
8655 * i386-tdep.c (i386_get_longjmp_target): Use
8656 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8657 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8660 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8662 * core-regset.c: Update comments to reflect reality. Re-order
8664 (fetch_core_registers): Use switch instead of if. Remove
8665 redundant prototype.
8667 2003-04-18 Jim Blandy <jimb@redhat.com>
8669 * s390-tdep.c (s390_frame_align): New function.
8670 (s390_gdbarch_init): Register it with the gdbarch object.
8672 2003-04-17 Richard Henderson <rth@redhat.com>
8674 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8676 2003-04-17 Michael Snyder <msnyder@redhat.com>
8677 Karen Bennet <bennet@redhat.com>
8679 Committed by Elena Zannoni <ezannoni@redhat.com>
8680 * gdb_gcore.sh: New script to create a core dump of a process.
8682 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
8684 * values.c (value_being_returned): Don't fetch the return
8685 value if the return type is void.
8687 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8689 * thread-db.c: Reindented.
8691 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8693 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8694 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
8721 2003-04-16 Kevin Buettner <kevinb@redhat.com>
8723 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
8724 the size of ``long double'' to 16, instead of 8.
8726 2003-04-16 Mark Kettenis <kettenis@gnu.org>
8728 * i386-linux-nat.c: Add some whitespace to make things more
8730 (fetch_register, store_register, fetch_inferior_registers,
8731 store_inferior_registers): Get rid of assignment in if-statement.
8732 (store_register): Fix typo in error message.
8734 2003-04-16 Andrew Cagney <cagney@redhat.com>
8736 * utils.c (xmmalloc): Always allocate something, matches
8737 libiberty/xmalloc's semantics.
8738 (xmrealloc, xmcalloc): Ditto.
8740 2003-04-16 Andrew Cagney <cagney@redhat.com>
8742 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8744 (get_frame_type): Initialize unwind and type when needed.
8745 (get_frame_id, frame_register_unwind): Ditto.
8747 2003-04-16 Andrew Cagney <cagney@redhat.com>
8749 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8751 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8752 * sparcl-stub.c: Obsolete file.
8753 * config/sparc/tm-sparclet.h: Obsolete file.
8754 * sparclet-stub.c: Obsolete file.
8755 * sparclet-rom.c: Obsolete file.
8756 * sparcl-tdep.c: Obsolete file.
8757 * config/sparc/tm-sparclite.h: Obsolete file.
8758 * config/sparc/sparclite.mt: Obsolete file.
8759 * config/sparc/sparclet.mt: Obsolete file.
8760 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8761 sparc86x-*-* obsolete.
8763 2003-04-15 David Carlton <carlton@math.stanford.edu>
8765 * Makefile.in (SFILES): Add cp-namespace.c.
8766 (COMMON_OBS): Add cp-namespace.o.
8767 (block.o): Depend on gdb_obstack_h and cp_support_h.
8768 (buildsym.o): Depend on cp_support_h.
8769 (cp-namespace.o): New.
8770 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8771 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8772 (dwarf2read.o): Depend on cp_support_h.
8773 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8774 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8775 processing_current_namespace.
8776 (read_namespace): Update processing_current_namespace; check for
8777 anonymous namespaces.
8778 (dwarf2_name): New function.
8779 (dwarf2_extension): Ditto.
8780 * cp-support.h: Update copyright, contributors.
8781 Add inclusion guards.
8782 Add opaque declaration for structs obstack, block, symbol.
8783 (struct using_direct): New struct.
8784 Add declarations for cp_find_first_component,
8785 cp_entire_prefix_len, processing_has_namespace_info,
8786 processing_current_namespace, cp_is_anonymous,
8787 cp_add_using_directive, cp_initialize_namespace,
8788 cp_finalize_namespace, cp_set_block_scope,
8789 cp_scan_for_anonymous_namespaces.
8790 * cp-namespace.c: New file.
8791 * cp-support.c: Update copyright.
8792 Include ctype.h, gdb_assert.h, gdbcmd.h.
8793 New variable maint_cplus_cmd_list.
8794 (cp_find_first_component): New function.
8795 (cp_entire_prefix_len, maint_cplus_command)
8796 (first_component_command, _initialize_cp_support): Ditto.
8797 * buildsym.c: Include cp-support.h.
8798 New variable using_list.
8799 (add_symbol_to_list): Check for anonymous namespaces.
8800 (finish_block): Set block's scope.
8801 (start_symtab): Initialize C++ namespace support.
8802 (end_symtab): Finalize C++ namespace support.
8803 * block.h: Add opaque declarations for structs
8804 block_namespace_info, using_direct, and obstack.
8805 Add declarations for block_set_scope and block_set_using.
8806 (struct block): Add 'language_specific' member.
8807 (BLOCK_NAMESPACE): New macro.
8808 * block.c: Include gdb_obstack.h and cp-support.h.
8809 (struct block_namespace_info): New struct.
8810 (block_set_scope): New function.
8811 (block_set_using, block_initialize_namespace): Ditto.
8813 2003-04-14 Kevin Buettner <kevinb@redhat.com>
8815 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8816 (locate_base): Return early if there aren't any link map offsets.
8817 (svr4_solib_create_inferior_hook): Warn if shared library support
8820 2003-04-14 David Carlton <carlton@math.stanford.edu>
8822 * symtab.c (symbol_set_names): Add prefix when storing Java names
8823 in hash table. Fix for PR java/1039.
8825 2003-04-14 David Carlton <carlton@math.stanford.edu>
8827 * symtab.c (symbol_set_names): Rename 'name' arg to
8828 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8829 * symtab.h: Change 'name' argument in declaration of
8830 symbol_set_names to 'linkage_name'.
8831 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8833 2003-04-14 Andrew Cagney <cagney@redhat.com>
8835 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8836 return the fully sign-extended register value.
8837 (get_frame_pointer): Ditto.
8838 (mips_pop_frame): Initialize "proc_desc" after checking for a
8841 2003-04-14 Andrew Cagney <cagney@redhat.com>
8843 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8844 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8845 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8846 (mips_push_register): Delete function.
8847 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8850 2003-04-14 Jim Blandy <jimb@redhat.com>
8852 * symmisc.c: #include "gdb_regex.h".
8853 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8855 * maint.c (maintenance_list_command): New function.
8856 (_initialize_maint_cmds): Register the above as commands.
8857 * symtab.h (maintenance_list_symtabs,
8858 maintenance_list_psymtabs): New declarations.
8859 * cli/cli-cmds.c (maintenancelistlist): New variable.
8860 (init_cmd_lists): Initialize it.
8861 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8862 * gdbcmd.h (maintenancelistlist): New declaration.
8863 * Makefile.in (symmisc.o): Update dependencies.
8865 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8867 * s390-nat.c: Include asm/types.h for addr_t.
8869 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8871 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8872 actually incoming type.
8874 2003-04-13 Andrew Cagney <cagney@redhat.com>
8876 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8877 get_next_frame and get_frame_saved_regs.
8879 2003-04-13 Andrew Cagney <cagney@redhat.com>
8881 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8882 of gdbarch_num_regs.
8884 2003-04-13 Andrew Cagney <cagney@redhat.com>
8886 * frame.h: Mention what replaced what in "struct frame_info".
8887 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8888 deprecated_update_frame_base_hack and
8889 deprecated_update_frame_pc_hack.
8890 * hppa-tdep.c: Ditto.
8892 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8894 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8895 to read_reg and update its comment. Remove regnum member.
8896 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8897 Don't call read_reg when setting in_reg. Call read_reg to get
8898 the frame base if it's in a register. Return the register number
8899 on the stack instead of in the context. Remove extra arguments
8901 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8902 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8903 the register number on the expression stack.
8904 (needs_frame_read_reg): Remove extra arguments.
8906 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8908 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8910 (execute_stack_op): All callers updated.
8911 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8912 * dwarf2loc.c (find_location_expression): New function.
8913 (dwarf_expr_frame_base): Call it.
8914 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8915 (dwarf2_tracepoint_var_ref): New function, broken out from
8916 locexpr_tracepoint_var_ref.
8917 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8919 (loclist_read_variable, loclist_read_needs_frame): New functions.
8920 (loclist_describe_location, loclist_tracepoint_var_ref): New
8922 (dwarf2_loclist_funcs): New struct location_funcs.
8923 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8924 (struct dwarf2_locexpr_baton): Add comments.
8925 (dwarf2_loclist_funcs): New extern.
8926 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8927 base_address and base_known.
8928 (dwarf_loc_buffer): New variable.
8929 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8930 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8931 (dwarf2_has_info): Initialize dwarf_loc_offset.
8932 (dwarf2_build_psymtabs): Read in .debug_loc.
8933 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8935 (psymtab_to_symtab_1): Likewise. Move base address calculation
8937 (dwarf2_get_pc_bounds): ... here. Use the base address from
8939 (dwarf2_symbol_mark_computed): Handle location lists.
8941 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8943 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8944 if the linkage name demangled successfully.
8946 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8948 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8949 disassmbly_flavour): Removed.
8951 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8953 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8955 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8957 2003-04-12 Andrew Cagney <cagney@redhat.com>
8959 * frame.h (struct frame_info): Move definition from here ...
8960 * frame.c (struct frame_info): ... to here.
8962 2003-04-12 Andrew Cagney <cagney@redhat.com>
8964 * gdbthread.h (save_infrun_state): Delete parameter
8966 (struct thread_info): Delete field "prev_func_start".
8967 (load_infrun_state): Ditto.
8968 * thread.c (load_infrun_state, save_infrun_state): Update.
8969 * infrun.c (prev_func_start): Delete variable.
8970 (context_switch, init_wait_for_inferior): Update.
8971 (stop_stepping, keep_going): Update.
8973 2003-04-12 Andrew Cagney <cagney@redhat.com>
8975 * gdbarch.sh: Add missing opaque declarations.
8976 * gdbarch.h: Regnerate.
8977 * symtab.h: Add missing opaque declarations.
8978 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8979 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8980 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8981 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8982 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8983 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8984 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8985 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8986 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8987 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8988 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8989 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8990 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8992 2003-04-11 Andrew Cagney <cagney@redhat.com>
8994 * frame.c (get_frame_id): Return this frame's "id".
8995 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8997 (legacy_saved_regs_this_id): Replace function body with
8999 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9000 FRAME_OBSTACK_ZALLOC.
9001 (create_new_frame): Mark the frame ID as valid.
9003 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
9005 * Makefile.in (libbfd_h): Added missing setting.
9006 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9007 according to the selected ABI.
9009 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9011 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9013 2003-04-11 Andrew Cagney <cagney@redhat.com>
9015 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9016 SAVED_PC_AFTER_CALL.
9017 * gdbarch.h, gdbarch.c: Regenerate.
9018 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9019 * x86-64-tdep.c (x86_64_init_abi): Update.
9020 * vax-tdep.c (vax_gdbarch_init): Update.
9021 * v850-tdep.c (v850_gdbarch_init): Update.
9022 * sparc-tdep.c (sparc_gdbarch_init): Update.
9023 * sh-tdep.c (sh_gdbarch_init): Update.
9024 * s390-tdep.c (s390_gdbarch_init): Update.
9025 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9026 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9027 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9028 * mips-tdep.c (mips_gdbarch_init): Update.
9029 * mcore-tdep.c (mcore_gdbarch_init): Update.
9030 * m68k-tdep.c (m68k_gdbarch_init): Update.
9031 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9032 * ia64-tdep.c (ia64_gdbarch_init): Update.
9033 (ia64_saved_pc_after_call): Update declaration.
9034 * i386ly-tdep.c (i386lynx_init_abi): Update.
9035 * i386-tdep.c (i386_gdbarch_init): Update.
9036 * hppa-tdep.c (hppa_gdbarch_init): Update.
9037 * h8300-tdep.c (h8300_gdbarch_init): Update.
9038 * frv-tdep.c (frv_gdbarch_init): Update.
9039 * cris-tdep.c (cris_gdbarch_init): Update.
9040 * avr-tdep.c (avr_gdbarch_init): Update.
9041 * arm-tdep.c (arm_gdbarch_init): Update.
9042 * alpha-tdep.c (alpha_gdbarch_init): Update.
9043 * ns32knbsd-nat.c (frame_num_args): Update.
9044 * ns32k-tdep.c (umax_frame_num_args): Update.
9045 * mips-tdep.c (mips_init_frame_pc_first): Update.
9046 * infrun.c (step_over_function): Update.
9047 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9048 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9049 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9050 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9051 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9052 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9053 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9054 * arch-utils.c (init_frame_pc_default): Update.
9055 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9056 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9059 2003-04-11 Andrew Cagney <cagney@redhat.com>
9061 * i387-tdep.c: Update copyright.
9062 (i387_to_double): Delete function.
9063 (double_to_i387): Delete function.
9065 2003-04-10 Andrew Cagney <cagney@redhat.com>
9067 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9068 frame's function's address. Simplify.
9069 (d10v_frame_unwind_cache): Check that the frame's function is
9072 2003-04-10 Jim Blandy <jimb@redhat.com>
9074 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9075 call to set_gdbarch_deprecated_push_arguments.
9077 2003-04-10 Andrew Cagney <cagney@redhat.com>
9079 * frame.c (fprint_frame_id): New function.
9080 (fprint_frame_type, fprint_frame): New function.
9081 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9082 (create_sentinel_frame, get_frame_id): Ditto.
9083 (frame_id_p, frame_id_eq): Ditto.
9084 (frame_id_inner, create_new_frame): Ditto.
9085 (legacy_get_prev_frame, get_prev_frame): Ditto.
9086 (deprecated_update_frame_pc_hack): Ditto.
9087 (frame_register_unwind): Ditto.
9088 (deprecated_update_frame_base_hack): Ditto.
9090 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9092 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9093 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9094 frame_chain function.
9095 * Makefile.in: Add dependencies due to above change.
9097 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9099 * blockframe.c (legacy_frame_chain_valid): Move call to
9100 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9103 2003-04-09 Andrew Cagney <cagney@redhat.com>
9105 * frame.h (struct frame_id): Replace "pc" and "base" with
9106 "stack_addr" and "code_addr". Update comments.
9107 (frame_id_build): Update parameter names and comment.
9108 (struct frame_info): Replace "id_p" and "id" with "this_id".
9109 * dummy-frame.c (dummy_frame_this_id): Update.
9110 * breakpoint.c (print_one_breakpoint): Update.
9111 * frame.c (get_frame_id): Update.
9112 (get_frame_base, frame_id_build): Update.
9113 (create_sentinel_frame, legacy_get_prev_frame): Update.
9114 (deprecated_update_frame_base_hack): Update.
9115 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9116 (frame_id_inner): Ditto.
9118 2003-04-09 Andrew Cagney <cagney@redhat.com>
9120 * defs.h (gdb_print_host_address): Make "addr" parameter a
9122 * utils.c (gdb_print_host_address): Update.
9124 2003-04-09 Kevin Buettner <kevinb@redhat.com>
9126 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9127 register number for R0 is 0.
9129 2003-04-09 J. Brobecker <brobecker@gnat.com>
9131 * frame.h (struct gdbarch): Add opaque structure definition
9132 to avoid a compilation warning on LynxOS 4.0.
9134 2003-04-09 Andrew Cagney <cagney@redhat.com>
9136 * frame.h (struct frame_info): Delete field "pc". Replace
9137 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9139 * frame.c (frame_pc_unwind): Update.
9140 (create_sentinel_frame): Do not set "pc".
9141 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9142 (get_frame_pc): Call frame_pc_unwind.
9143 (deprecated_update_frame_pc_hack): Update.
9144 (create_new_frame): Use "pc" not "->pc".
9146 2003-04-09 Andrew Cagney <cagney@redhat.com>
9148 * frame.c (get_frame_id): Eliminate code updating "frame".
9149 (legacy_get_prev_frame): Ditto.
9150 (get_frame_base): Return id.base directly.
9151 (deprecated_update_frame_base_hack): Update "id.base".
9152 * frame.h (struct frame_info): Delete field "frame".
9154 2003-04-09 Andrew Cagney <cagney@redhat.com>
9156 * NEWS: Mention that the "Sequent family" is obsolete.
9157 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9158 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9159 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9160 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9161 * config/i386/tm-ptx4.h: Obsolete file.
9162 * config/i386/tm-ptx.h: Obsolete file.
9163 * symm-tdep.c: Obsolete file.
9164 * config/i386/symmetry.mt: Obsolete file.
9165 * config/i386/tm-symmetry.h: Obsolete file.
9166 * symm-nat.c: Obsolete file.
9167 * config/i386/nm-symmetry.h: Obsolete file.
9168 * config/i386/xm-symmetry.h: Obsolete file.
9169 * config/i386/symmetry.mh: Obsolete file.
9170 * config/i386/nm-ptx4.h: Obsolete file.
9171 * config/i386/ptx4.mh: Obsolete file.
9172 * config/i386/ptx.mt: Obsolete file.
9173 * config/i386/ptx.mh: Obsolete file.
9174 * config/i386/xm-ptx4.h: Obsolete file.
9175 * config/i386/xm-ptx.h: Obsolete file.
9177 2003-04-09 Andrew Cagney <cagney@redhat.com>
9179 Obsolete mips*-*-mach3*.
9180 * NEWS: Mention that mips*-*-mach3* is obsolete.
9181 * m3-nat.c: Obsolete file.
9182 * config/nm-m3.h: Obsolete file.
9183 * config/mips/tm-mipsm3.h: Obsolete file.
9184 * config/mips/mipsm3.mt: Obsolete file.
9185 * config/mips/mipsm3.mh: Obsolete file.
9186 * config/mips/xm-mipsm3.h: Obsolete file.
9187 * mipsm3-nat.c: Obsolete file.
9188 * configure.host: Obsolete mips-dec-mach3*.
9189 * configure.tgt: Obsolete mips*-*-mach3*.
9191 2003-04-09 Andrew Cagney <cagney@redhat.com>
9193 * doublest.h: Update copyright.
9194 (deprecated_store_floating, deprecated_extract_floating): Rename
9195 store_floating and extract_floating. Update comments.
9196 * doublest.c: Update copyright.
9197 (extract_floating_by_length): Replace extract_floating.
9198 (store_floating_by_length): Replace store_floating.
9199 (deprecated_extract_floating): New function.
9200 (deprecated_store_floating): New function.
9201 (extract_typed_floating): Call extract_floating_by_length.
9202 (store_typed_floating): Call store_floating_by_length.
9203 * x86-64-tdep.c (x86_64_store_return_value): Update.
9204 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9205 (sh64_extract_return_value): Update.
9206 (sh_sh4_register_convert_to_virtual): Update.
9207 (sh_sh64_register_convert_to_virtual): Update.
9208 (sh_sh4_register_convert_to_raw): Update.
9209 (sh_sh64_register_convert_to_raw): Update.
9210 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9211 (rs6000_register_convert_to_raw): Update.
9212 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9213 (ia64_register_convert_to_raw): Update.
9214 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9215 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9216 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9217 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9218 (alpha_register_convert_to_raw): Update.
9220 2003-04-08 Andrew Cagney <cagney@redhat.com>
9222 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9223 * gdbarch.h, gdbarch.c: Re-generate.
9224 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9225 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9226 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9227 conditionally, use frame_pc_unwind as an alternative. Add
9229 * arch-utils.c (init_frame_pc_default): Only call
9230 SAVED_PC_AFTER_CALL when available.
9232 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9234 * infrun.c (stop_soon): Rename from stop_soon_quietly.
9235 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9236 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9237 (start_remote): Ditto.
9238 (handle_inferior_event): Ditto.
9239 (save_inferior_status): Ditto.
9240 (restore_inferior_status): Ditto.
9241 * infcmd.c (attach_command): Ditto.
9242 * fork-child.c (startup_inferior): Ditto.
9243 * inferior.h (stop_soon): Rename from stop_soon_quietly.
9244 * alpha-tdep.c (heuristic_proc_start): Ditto.
9245 * mips-tdep.c (heuristic_proc_start): Ditto.
9246 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9247 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9248 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9249 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9250 * remote-vx.c (vx_create_inferior): Ditto.
9252 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9254 * infrun.c (stop_soon_quietly): Make it an enum, to better
9255 override the default behavior of handle_inferior_event.
9256 (clear_proceed_status): Update uses of stop_soon_quietly to
9257 reflect that it is now an enum.
9258 (start_remote): Ditto.
9259 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9260 is set to handle the new GNU/Linux kernel behavior for
9261 attach/sigstop. Update uses of stop_soon_quietly.
9262 * inferior.h (enum stop_kind): New enum.
9263 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9264 Reset normal handle_inferior_event behavior, afterwards.
9265 * fork-child.c (startup_inferior): Update.
9266 * alpha-tdep.c (heuristic_proc_start): Update.
9267 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9268 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9269 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9270 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9271 * remote-vx.c (vx_create_inferior): Update.
9272 * mips-tdep.c (heuristic_proc_start): Update.
9274 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
9276 * disasm.c (dump_insns): Move variables inside loop, or they will
9277 be freed more than once, causing wild memory corruptions.
9278 (gdb_disassembly): Look for the substring "-thread",
9279 instead of "-threads" in the target name, to make sure to find
9280 the 'multi-thread' target. Also, make sure we do the right thing
9281 with the "core" target.
9283 2003-04-07 Kevin Buettner <kevinb@redhat.com>
9285 * mips-tdep.c (mips_print_fp_register): New function, created from
9286 do_fp_register_row(). Registers are now (also) printed as hex.
9287 Only one register is printed per row.
9288 (mips_print_register, do_fp_register_row): Print floating point
9289 registers with mips_print_fp_register().
9291 2003-04-06 Andrew Cagney <cagney@redhat.com>
9293 * valprint.h (inspect_it): Add extern declaration.
9294 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9295 (selectors_info, classes_info): Ditto.
9296 (find_objc_msgcall): Fix indentation.
9297 (objc_printstr): Delete extern declarations.
9299 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9301 2003-04-06 Andrew Cagney <cagney@redhat.com>
9303 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9305 * frame.c (legacy_saved_regs_this_id): Update.
9306 (legacy_get_prev_frame): Update.
9307 * xstormy16-tdep.c: Update comment.
9308 * sparc-tdep.c (sparc_frame_chain): Update comment.
9309 * blockframe.c (legacy_frame_chain_valid): Update.
9311 2003-04-06 Andrew Cagney <cagney@redhat.com>
9313 * valprint.c (val_print_type_code_int): Delete #ifdef
9314 PRINT_TYPELESS_INTEGER code.
9316 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9317 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9318 multi-arch definition.
9319 * gdbarch.h: Re-generate.
9321 2003-04-05 Andrew Cagney <cagney@redhat.com>
9323 Eliminate FRAME_FIND_SAVED_REGS.
9324 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9325 Change FSR parameter to a pointer.
9326 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9327 Assume FSR parameter is a pointer.
9328 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9330 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9331 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9332 saved_regs a pointer.
9333 (hppa_frame_saved_pc): Ditto.
9334 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9335 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9337 (restore_pc_queue): Make fsr a pointer.
9338 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9339 (hppa_frame_chain): Make saved_regs a pointer, call
9340 hppa_frame_init_saved_regs.
9341 * sparc-tdep.c: Include "gdb_assert.h".
9342 (sparc_frame_find_saved_regs): Replace internal_error with
9344 * remote-vxsparc.c (vx_read_register): Delete reference to
9345 FRAME_FIND_SAVED_REGS.
9346 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9347 * gdbarch.h: Regenerate.
9348 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9349 (deprecated_get_frame_saved_regs): Delete declaration.
9350 (struct frame_saved_regs): Delete definition.
9351 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9352 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9353 (hppa_frame_find_saved_regs): Delete declaration.
9354 (FRAME_FIND_SAVED_REGS): Delete macro.
9355 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9356 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9357 FRAME_FIND_SAVED_REGS in comment.
9359 2003-04-05 Andrew Cagney <cagney@redhat.com>
9361 * frame.c (frame_func_unwind, get_frame_func): New functions.
9362 * frame.h (get_frame_func, frame_func_unwind): Declare.
9363 (struct frame_info): Add field "prev_func" for caching the
9364 previous frame's function address.
9365 * arm-tdep.c (arm_frameless_function_invocation): Combine
9366 get_pc_function_start and get_frame_pc into get_frame_func.
9367 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9368 (sh64_nofp_frame_init_saved_regs): Ditto.
9369 * s390-tdep.c (s390_function_start): Ditto.
9370 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9371 (rs6000_frameless_function_invocation): Ditto.
9372 (rs6000_frame_saved_pc): Ditto.
9373 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9374 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9375 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9376 (i386_frame_init_saved_regs): Ditto.
9377 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9378 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9379 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9380 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9381 * blockframe.c (frameless_look_for_prologue): Ditto.
9383 2003-04-05 Andrew Cagney <cagney@redhat.com>
9385 * frame.c (legacy_get_prev_frame): Link prev to next at the
9386 function start. Update comments.
9388 2003-04-05 Andrew Cagney <cagney@redhat.com>
9390 * frame.c (get_frame_id): Update comment.
9391 (legacy_get_prev_frame): Update comment.
9392 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9393 * gdbarch.h: Regenerate.
9394 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9395 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9397 2003-04-05 Andrew Cagney <cagney@redhat.com>
9399 * stack.c (print_frame_info): Use get_frame_pc.
9401 2003-04-04 Andrew Cagney <cagney@redhat.com>
9403 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9404 the frame's type from the unwinder.
9405 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9406 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9407 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9408 (get_frame_base_address): Use get_frame_type.
9409 (get_frame_locals_address, get_frame_args_address): Ditto.
9410 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9411 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9412 (struct frame_info): Add comment explaining why the frame contains
9414 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9415 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9416 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9418 * frame-unwind.h: Include "frame.h".
9419 (struct frame_unwind): Add "type" field.
9420 * Makefile.in (frame_unwind_h): Add $(frame_h).
9422 2003-04-04 Andrew Cagney <cagney@redhat.com>
9424 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9425 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9426 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9428 (d10v_unwind_dummy_id): Use frame_id_build.
9429 * frame.c (find_frame_sal): Use get_frame_pc.
9430 (create_new_frame): Use deprecated_update_frame_pc_hack and
9431 deprecated_update_frame_base_hack.
9432 (create_sentinel_frame): Add comment about ->pc going away.
9433 (get_prev_frame): Add comment about ->pc going away.
9434 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9435 frame_id_build, deprecated_update_frame_pc_hack and
9436 deprecated_update_frame_base_hack.
9437 (select_frame): Use get_frame_pc.
9438 (legacy_saved_regs_this_id): Use frame_id_build.
9440 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
9442 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9443 signed integer case.
9444 (classify_argument): Handle enumerations and references.
9446 2003-04-04 Andrew Cagney <cagney@redhat.com>
9448 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9451 2003-04-01 Adam Fedor <fedor@gnu.org>
9453 * gdb/objc-lang.c (selectors_info): Replace calls to
9454 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9455 SYMBOL_NATURAL_NAME.
9456 (classes_info, find_methods): Likewise.
9458 2003-04-03 Kevin Buettner <kevinb@redhat.com>
9460 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9461 ``mach'' to the value determined by bfd_default_set_arch_mach().
9463 2003-04-02 Bob Rossi <bob_rossi@cox.net>
9465 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9466 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9467 (mi-cmd-file.o): Update dependencies.
9469 2003-04-01 Kevin Buettner <kevinb@redhat.com>
9471 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9472 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9474 2003-04-01 Adam Fedor <fedor@gnu.org>
9476 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9477 * language.h (struct language_defn): Add la_demangle.
9478 (language_demangle): Declare.
9479 * language.c (language_demangle): New function.
9480 (unk_lang_demangle): Likewise.
9481 (unknown_language_defn, auto_language_defn, local_language_defn):
9482 Add ukn_lang_demangle.
9483 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
9484 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9485 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9486 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9487 * jv-lang.c (java_demangle): New function
9488 (java_language_defn): Use it for la_demangle element.
9489 * objc-lang.c (objc_demangle): Add options argument
9490 (objc_language_defn): Use objc_demangle for la_demangle element.
9491 * maint.c (maintenance_demangle): Replace switch with
9492 call to language_demangle.
9493 * utils.c (fprintf_symbol_filtered): Likewise.
9495 2003-04-01 Andrew Cagney <cagney@redhat.com>
9497 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9498 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9499 PRINT_TYPELESS_INTEGER.
9500 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9501 PUSH_RETURN_ADDRESS.
9503 2003-04-01 Andrew Cagney <cagney@redhat.com>
9505 * Makefile.in (d10v-tdep.o): Update dependencies.
9506 * d10v-tdep.c: Include "frame-base.h".
9507 (d10v_frame_unwind): Make constant.
9508 (d10v_frame_base_address): New function.
9509 (d10v_frame_base): New variable.
9510 (d10v_gdbarch_init): Set frame_base default.
9511 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9513 (d10v_frame_unwind_cache): Set and use "prev_sp".
9514 (d10v_frame_this_id): Use the previous frame's inner most stack
9515 address and this frame's func address for the frame ID. Use
9516 frame_id_build. Don't analyze beyond the current instruction.
9518 2003-04-01 Andrew Cagney <cagney@redhat.com>
9520 * frame.h (get_frame_locals_address, get_frame_args_address):
9521 Refer to the base address, instead of the address of the first
9524 2003-04-01 Andrew Cagney <cagney@redhat.com>
9526 Add frame debug info addresses:
9527 * frame-base.c: New file.
9528 * frame-base.h: New file.
9529 * frame.h (struct frame_base): Add opaque declaration.
9530 (get_frame_base): Update comment.
9531 (get_frame_base_address): Declare.
9532 (get_frame_locals_address): Declare.
9533 (get_frame_args_address): Declare.
9534 (struct frame_info): Add "base" and "base_cache". Update
9535 comments on the unwinder.
9536 * frame.c: Include "frame-base.h".
9537 (get_frame_locals_address): New function.
9538 (get_frame_base_address): New function.
9539 (get_frame_args_address): New function.
9540 * findvar.c (read_var_value): Use get_frame_locals_address and
9541 get_frame_args_address.
9542 * stack.c (frame_info): Use get_frame_locals_address and
9543 get_frame_args_address.
9544 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9545 moved to "frame-base.c".
9546 * printcmd.c (print_frame_nameless_args): Ditto.
9547 * symtab.h (address_class): Update comments.
9548 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9549 get_frame_base_address.
9550 * dwarf2expr.c (execute_stack_op): Ditto.
9551 * Makefile.in (frame_base_h): Define.
9552 (frame.o): Update dependencies.
9553 (frame-base.o): Add dependencies.
9554 (SFILES): Add frame-base.c.
9555 (COMMON_OBS): Add frame-base.o.
9557 2003-04-01 Andrew Cagney <cagney@redhat.com>
9559 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9560 CALL_DUMMY_LENGTH): Ditto.
9561 * gdbarch.c: Re-generate.
9562 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9563 (CALL_DUMMY_LENGTH): Delete macro.
9564 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9565 * arm-tdep.c (arm_gdbarch_init): Ditto.
9566 * avr-tdep.c (avr_gdbarch_init): Ditto.
9567 * cris-tdep.c (cris_gdbarch_init): Ditto.
9568 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9569 * frv-tdep.c (frv_gdbarch_init): Ditto.
9570 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9571 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9572 * i386-tdep.c (i386_gdbarch_init): Ditto.
9573 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9574 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9575 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9576 * mips-tdep.c (mips_gdbarch_init): Ditto.
9577 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9578 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9579 * s390-tdep.c (s390_gdbarch_init): Ditto.
9580 * sh-tdep.c (sh_gdbarch_init): Ditto.
9581 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9582 * v850-tdep.c (v850_gdbarch_init): Ditto.
9583 * vax-tdep.c (vax_gdbarch_init): Ditto.
9584 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9586 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
9588 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9590 2003-04-01 Andrew Cagney <cagney@redhat.com>
9592 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9593 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9594 * gdbarch.h, gdbarch.c: Re-generate.
9595 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9596 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9597 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9598 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9599 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9600 * infcmd.c (run_stack_dummy): Simplify assuming
9601 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9602 * infrun.c (handle_inferior_event): Ditto.
9603 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9604 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9605 * arm-tdep.c (arm_gdbarch_init): Ditto.
9606 * avr-tdep.c (avr_gdbarch_init): Ditto.
9607 * cris-tdep.c (cris_gdbarch_init): Ditto.
9608 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9609 * frv-tdep.c (frv_gdbarch_init): Ditto.
9610 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9611 * i386-tdep.c (i386_gdbarch_init): Ditto.
9612 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9614 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9615 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9616 * mips-tdep.c (mips_gdbarch_init): Ditto.
9617 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9618 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9619 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9620 * s390-tdep.c (s390_gdbarch_init): Ditto.
9621 * sh-tdep.c (sh_gdbarch_init): Ditto.
9622 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9623 * v850-tdep.c (v850_gdbarch_init): Ditto.
9624 * vax-tdep.c (vax_gdbarch_init): Ditto.
9625 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9627 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
9629 * symfile.c (symfile_relocate_debug_section): Update call to
9630 bfd_simple_get_relocated_section_contents.
9632 2003-03-31 Andrew Cagney <cagney@redhat.com>
9634 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9635 * gdbarch.h, gdbarch.c: Regenerate.
9636 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9637 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9639 * frame.h (generic_fix_call_dummy): Delete declaration.
9640 * dummy-frame.h: Update comment.
9641 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9642 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9644 * sh-tdep.c (sh_gdbarch_init): Ditto.
9645 * s390-tdep.c (s390_gdbarch_init): Ditto.
9646 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9647 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9648 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9649 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9650 * i386-tdep.c (i386_gdbarch_init): Ditto.
9651 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9652 * frv-tdep.c (frv_gdbarch_init): Ditto.
9653 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9654 * cris-tdep.c (cris_gdbarch_init): Ditto.
9655 * avr-tdep.c (avr_gdbarch_init): Ditto.
9656 * arm-tdep.c (arm_gdbarch_init): Ditto.
9658 2003-03-31 J. Brobecker <brobecker@gnat.com>
9660 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9661 (INIT_FRAME_AP): Likewise.
9662 (EXTRA_FRAME_INFO): Likewise.
9664 2003-03-31 Andrew Cagney <cagney@redhat.com>
9666 * gdbarch.sh: Include "symfile.h".
9667 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9668 * gdbarch.h, gdbarch.c: Re-generate.
9669 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9670 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9671 call_dummy_address, the default is at entry_point_address.
9672 * v850-tdep.c (v850_gdbarch_init): Ditto.
9673 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9674 * sh-tdep.c (sh_gdbarch_init): Ditto.
9675 * s390-tdep.c (s390_gdbarch_init): Ditto.
9676 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9677 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9678 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9679 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9680 * i386-tdep.c (i386_gdbarch_init): Ditto.
9681 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9682 * frv-tdep.c (frv_gdbarch_init): Ditto.
9683 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9684 * cris-tdep.c (cris_gdbarch_init): Ditto.
9685 * arm-tdep.c (arm_gdbarch_init): Ditto.
9687 2003-03-31 Andrew Cagney <cagney@redhat.com>
9689 * gdbarch.sh (CALL_DUMMY_P): Delete.
9690 * gdbarch.h, gdbarch.c: Re-generate.
9691 * inferior.h (CALL_DUMMY_P): Delete macro.
9692 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9693 * vax-tdep.c (vax_gdbarch_init): Update.
9694 * v850-tdep.c (v850_gdbarch_init): Update.
9695 * sparc-tdep.c (sparc_gdbarch_init): Update.
9696 * sh-tdep.c (sh_gdbarch_init): Update.
9697 * s390-tdep.c (s390_gdbarch_init): Update.
9698 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9699 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9700 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9701 * mips-tdep.c (mips_gdbarch_init): Update.
9702 * mcore-tdep.c (mcore_gdbarch_init): Update.
9703 * m68k-tdep.c (m68k_gdbarch_init): Update.
9704 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9705 * ia64-tdep.c (ia64_gdbarch_init): Update.
9706 * i386-tdep.c (i386_gdbarch_init): Update.
9707 * h8300-tdep.c (h8300_gdbarch_init): Update.
9708 * frv-tdep.c (frv_gdbarch_init): Update.
9709 * d10v-tdep.c (d10v_gdbarch_init): Update.
9710 * cris-tdep.c (cris_gdbarch_init): Update.
9711 * breakpoint.c (deprecated_frame_in_dummy): Update.
9712 * avr-tdep.c (avr_gdbarch_init): Update.
9713 * alpha-tdep.c (alpha_gdbarch_init): Update.
9714 * arm-tdep.c (arm_gdbarch_init): Update.
9715 * dummy-frame.c (dummy_frame_this_id): Update comments.
9716 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9717 * frame.c (legacy_get_prev_frame): Ditto.
9718 * valops.c (call_function_by_hand): Delete function.
9719 (hand_function_call): Rename to call_function_by_hand
9721 2003-03-30 Andrew Cagney <cagney@redhat.com>
9723 2002-11-10 Klee Dienes <kdienes@apple.com>
9724 * value.h (struct value): Update comment.
9726 2003-03-30 Andrew Cagney <cagney@redhat.com>
9728 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9730 (d10v_gdbarch_init): Do not set fp_regnum.
9732 * frame.c (get_frame_base): Force ID initialization.
9733 (get_prev_frame): Move computation of the frame ID from here ...
9734 (get_frame_id): ... to here.
9735 (legacy_get_prev_frame): Mark the frame ID as valid.
9736 * frame.h (struct frame_info): Add field "id_p".
9738 2003-03-30 Mark Kettenis <kettenis@gnu.org>
9740 * i386-tdep.c (i386_store_struct_return): Removed.
9741 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9743 2003-03-30 Andrew Cagney <cagney@redhat.com>
9745 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9746 * gdbarch.h, gdbarch.c: Regenerate.
9747 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9748 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9749 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9750 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9751 * i386-tdep.c (i386_gdbarch_init): Ditto.
9752 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9753 * cris-tdep.c (cris_gdbarch_init): Ditto.
9754 * vax-tdep.c (vax_gdbarch_init): Ditto.
9755 * s390-tdep.c (s390_gdbarch_init): Ditto.
9756 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9757 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9758 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9759 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9760 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9761 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9762 * sparc-tdep.c (sparc_gdbarch_init): Update.
9763 * sh-tdep.c (sh_gdbarch_init): Update.
9764 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9765 * mips-tdep.c (mips_gdbarch_init): Update.
9766 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9767 * ia64-tdep.c (ia64_gdbarch_init): Update.
9768 * frv-tdep.c (frv_gdbarch_init): Update.
9769 * avr-tdep.c (avr_gdbarch_init): Update.
9770 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9771 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9772 instead of when push_dummy_call is not available.
9774 2003-03-30 Andrew Cagney <cagney@redhat.com>
9776 * infttrace.c: Include "gdbthread.h".
9777 (parent_attach_all): Fix function signature.
9778 (call_ptrace): Update call.
9779 * Makefile.in (infttrace.o): Update dependencies.
9781 2003-03-30 Andrew Cagney <cagney@redhat.com>
9783 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9784 PUSH_RETURN_ADDRESS.
9785 * gdbarch.h, gdbarch.c: Regenerate.
9786 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9787 * x86-64-tdep.c (x86_64_init_abi): Update.
9788 * v850-tdep.c (v850_gdbarch_init): Update.
9789 * sparc-tdep.c (sparc_gdbarch_init): Update.
9790 * sh-tdep.c (sh_gdbarch_init): Update.
9791 * s390-tdep.c (s390_gdbarch_init): Update.
9792 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9793 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9794 * mips-tdep.c (mips_gdbarch_init): Update.
9795 * mcore-tdep.c (mcore_gdbarch_init): Update.
9796 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9797 * ia64-tdep.c (ia64_gdbarch_init): Update.
9798 * i386-tdep.c (i386_gdbarch_init): Update.
9799 * h8300-tdep.c (h8300_gdbarch_init): Update.
9800 * frv-tdep.c (frv_gdbarch_init): Update.
9801 * cris-tdep.c (cris_gdbarch_init): Update.
9802 * avr-tdep.c (avr_gdbarch_init): Update.
9803 * arm-tdep.c (arm_gdbarch_init): Update.
9804 * valops.c (hand_function_call): Update.
9806 2003-03-29 Andrew Cagney <cagney@redhat.com>
9808 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9809 sizeof_call_dummy_words.
9810 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9812 * gdbarch.h: Regenerate.
9814 2003-03-29 Andrew Cagney <cagney@redhat.com>
9816 * infttrace.h: New file.
9817 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9818 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9819 (hpread_read_doc_function_type): Detect an initialized type1.
9820 (hpread_quick_traverse): Initialize mod_name_string.
9821 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9822 (som_solib_get_solib_by_pc): Declare.
9823 (so_lib_thread_start_addr): Declare.
9824 (no_shared_libraries): Declare.
9825 * somread.c (init_import_symbols): Make static. Add forward
9827 * config/pa/nm-hppah.h: Include "infttrace.h" for
9829 (hppa_insert_hw_watchpoint): Declare.
9830 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9831 * hppah-nat.c: Include "gdb_string.h".
9832 (parent_attach_all): Delete extern declaration, moved to
9834 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9836 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9837 * Makefile.in (infttrace_h): Define.
9838 (hpread.o): Update dependencies.
9839 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9840 * hppa-hpux-tdep.c: Include "gdb_string.h".
9841 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9842 * infrun.c (handle_inferior_event): Always initialize
9843 stepped_after_stopped_by_watchpoint. Add default and remove
9844 fallthrough in switch statement.
9845 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9847 (hppa_remove_hw_watchpoint): Ditto.
9849 2003-03-29 Andrew Cagney <cagney@redhat.com>
9851 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9854 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9856 * arm-tdep.c (arm_push_arguments): Delete.
9857 (struct stack_item): New type.
9858 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9859 (arm_store_struct_return): Delte.
9860 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9861 arm_push_arguments or arm_store_struct_return.
9863 2003-03-28 Andrew Cagney <cagney@redhat.com>
9865 * Makefile.in (d10v-tdep.o): Update dependencies.
9866 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9867 * d10v-tdep.c: Include "remote.h".
9868 (target_resume_hook): Delete extern declaration.
9869 (target_wait_loop_hook): Ditto.
9870 (tdisassemble_command): Eliminate assignment in "if" conditional.
9871 (d10v_ts2_register_sim_regno): Eliminate call to
9872 legacy_register_sim_regno.
9873 (d10v_ts3_register_sim_regno): Ditto.
9875 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9877 * thread.c: Reindented.
9879 * linux-proc.c: Ditto.
9881 2003-03-28 Bob Rossi <bob_rossi@cox.net>
9883 * MAINTAINERS (write after approval): Add myself.
9885 2003-03-27 Theodore A. Roth <troth@openavr.org>
9887 * objc-exp.y: Add missing semi-colons.
9889 2003-03-27 Andrew Cagney <cagney@redhat.com>
9891 * regcache.c (write_sp): Delete function and references.
9892 * inferior.h (write_sp): Delete declaration.
9893 * valops.c (hand_function_call): Replace write_sp with
9895 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9896 (sparc_pop_frame): Ditto.
9898 2003-03-27 Andrew Cagney <cagney@redhat.com>
9900 * NEWS: Mention removal of support for hppa*-*-bsd* and
9901 hppa*-*-osf* natives, and hppa*-*-pro* target.
9902 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9903 * config/pa/xm-pa.h: Obsolete file.
9904 * config/pa/xm-hppab.h: Obsolete file.
9905 * config/pa/nm-hppab.h: Obsolete file.
9906 * config/pa/tm-hppab.h: Obsolete file.
9907 * config/pa/tm-hppao.h: Obsolete file.
9908 * config/pa/nm-hppao.h: Obsolete file.
9909 * config/pa/tm-pro.h: Obsolete file.
9910 * config/pa/hppaosf.mt: Obsolete file.
9911 * config/pa/hppaosf.mh: Obsolete file.
9912 * config/pa/hppapro.mt: Obsolete file.
9913 * config/pa/hppabsd.mt: Obsolete file.
9914 * config/pa/hppabsd.mh: Obsolete file.
9915 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9916 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9919 2003-03-27 Andrew Cagney <cagney@redhat.com>
9921 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9922 push_arguments. Don't set push_return_address or write_sp.
9923 (d10v_push_dummy_call): Replace d10v_push_arguments.
9924 (d10v_push_return_address, d10v_write_sp): Delete function,
9925 handled by push_dummy_call.
9927 2003-03-26 Andrew Cagney <cagney@redhat.com>
9929 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9930 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9931 regcache and dummy_addr parameters.
9932 * gdbarch.h, gdbarch.c: Re-generate.
9933 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9934 available; assume it will handle stack alignment and return
9935 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9936 legacy_push_arguments.
9937 (legacy_push_arguments): Rename default_push_arguments.
9938 * value.h (legacy_push_arguments): Rename default_push_arguments.
9939 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9940 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9941 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9942 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9943 * config/i386/tm-symmetry.h: Update.
9944 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9945 * x86-64-tdep.c (x86_64_init_abi): Update.
9946 * v850-tdep.c (v850_gdbarch_init): Update.
9947 * sparc-tdep.c (sparc_gdbarch_init): Update.
9948 * sh-tdep.c (sh_gdbarch_init): Update.
9949 * s390-tdep.c (s390_gdbarch_init): Update.
9950 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9951 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9952 * mips-tdep.c (mips_gdbarch_init): Update.
9953 * mcore-tdep.c (mcore_gdbarch_init): Update.
9954 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9955 * ia64-tdep.c (ia64_gdbarch_init): Update.
9956 * i386-tdep.c (i386_gdbarch_init): Update.
9957 * hppa-tdep.c (hppa_gdbarch_init): Update.
9958 * h8300-tdep.c (h8300_gdbarch_init): Update.
9959 * frv-tdep.c (frv_gdbarch_init): Update.
9960 * d10v-tdep.c (d10v_gdbarch_init): Update.
9961 * cris-tdep.c (cris_gdbarch_init): Update.
9962 * avr-tdep.c (avr_gdbarch_init): Update.
9963 * arm-tdep.c (arm_gdbarch_init): Update.
9964 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9965 * alpha-tdep.c (alpha_gdbarch_init): Update.
9967 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9969 * signals/signals.c (do_target_signal_to_host): Correct realtime
9972 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9974 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9975 (struct sal_chain, map_catch_names): Remove.
9976 (catch_exception_command_1): Don't call
9977 handle_gnu_4_16_catch_command.
9979 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9981 From Mark Dettinger <dettinge@de.ibm.com>:
9982 * dwarf2cfi.c (read_2u): Increment pointer by two.
9984 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9986 * signals/signals.c: Fix typos in last change.
9988 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9990 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9991 not already defined. Use __SIGRTMIN if available.
9992 (target_signal_from_host): Remove SIGRTMIN block.
9993 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9994 the signal is within the realtime range.
9996 2003-03-25 Adam Fedor <fedor@gnu.org>
9998 * Makefile.in (infrun.o): Add $(language_h)
9999 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10000 for language specific trampolines.
10001 * language.h (struct language_defn): Add skip_trampoline.
10002 (skip_language_trampoline): Declare.
10003 * language.c (unk_lang_trampoline, skip_language_trampoline):
10005 (unknown_language_defn, auto_language_defn, local_language_defn):
10006 Add ukn_lang_trampoline.
10007 * ada-lang.c (ada_language_defn): Add NULL for language
10008 specific skip_trampoline.
10009 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10010 scm-lang.c: Likewise.
10011 * objc-lang.c (objc_skip_trampoline): New function.
10012 (objc_language_defn): Add objc_skip_trampoline.
10014 2003-03-25 Andrew Cagney <cagney@redhat.com>
10016 * frame.c (get_prev_frame): Delay validating a frame's ID -
10017 non-NULL, didn't go backwards - until an attempt to unwind it to
10018 the previous frame.
10020 2003-03-25 Andrew Cagney <cagney@redhat.com>
10022 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10023 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10024 * gdbarch.h, gdbarch.c: Re-generate.
10025 * config/sparc/tm-sparc.h
10026 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10027 * sparc-tdep.c (sparc_gdbarch_init): Set
10028 deprecated_extra_stack_alignment_needed.
10029 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10030 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10031 extra_stack_alignment_needed.
10032 * v850-tdep.c (v850_gdbarch_init): Ditto.
10033 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10034 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10035 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10036 * cris-tdep.c (cris_gdbarch_init): Ditto.
10037 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10038 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10040 2003-03-25 Andrew Cagney <cagney@redhat.com>
10042 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10043 STORE_STRUCT_RETURN.
10044 * gdbarch.h, gdbarch.c: Regenerate.
10045 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10046 (d10v_push_arguments): Set the struct return register.
10047 (d10v_gdbarch_init): Update.
10048 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10049 * x86-64-tdep.c (x86_64_init_abi): Update.
10050 * vax-tdep.c (vax_gdbarch_init): Update.
10051 * v850-tdep.c (v850_gdbarch_init): Update.
10052 * sparc-tdep.c (sparc_gdbarch_init): Update.
10053 * sh-tdep.c (sh_gdbarch_init): Update.
10054 * s390-tdep.c (s390_gdbarch_init): Update.
10055 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10056 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10057 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10058 * mips-tdep.c (mips_gdbarch_init): Update.
10059 * mcore-tdep.c (mcore_gdbarch_init): Update.
10060 * m68k-tdep.c (m68k_gdbarch_init): Update.
10061 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10062 * ia64-tdep.c (ia64_gdbarch_init): Update.
10063 * i386-tdep.c (i386_gdbarch_init): Update.
10064 * hppa-tdep.c (hppa_gdbarch_init): Update.
10065 * h8300-tdep.c (h8300_gdbarch_init): Update.
10066 * frv-tdep.c (frv_gdbarch_init): Update.
10067 * cris-tdep.c (cris_gdbarch_init): Update.
10068 * avr-tdep.c (avr_gdbarch_init): Update.
10069 * arm-tdep.c (arm_gdbarch_init): Update.
10070 * alpha-tdep.c (alpha_gdbarch_init): Update.
10072 2003-03-25 Andrew Cagney <cagney@redhat.com>
10074 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10075 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10076 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10077 * gdbarch.h, gdbarch.c: Regenerate.
10078 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10079 call_dummy_stack_adjust_p.
10080 * vax-tdep.c (vax_gdbarch_init): Ditto.
10081 * v850-tdep.c (v850_gdbarch_init): Ditto.
10082 * sh-tdep.c (sh_gdbarch_init): Ditto.
10083 * s390-tdep.c (s390_gdbarch_init): Ditto.
10084 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10085 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10086 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10087 * mips-tdep.c (mips_gdbarch_init): Ditto.
10088 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10089 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10090 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10091 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10092 * i386-tdep.c (i386_gdbarch_init): Ditto.
10093 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10094 * frv-tdep.c (frv_gdbarch_init): Ditto.
10095 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10096 * cris-tdep.c (cris_gdbarch_init): Ditto.
10097 * avr-tdep.c (avr_gdbarch_init): Ditto.
10098 * arm-tdep.c (arm_gdbarch_init): Ditto.
10099 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10100 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10101 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10102 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10103 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10104 call_dummy_stack_adjust_p.
10105 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10106 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10107 * sparc-tdep.c (sparc32_push_arguments): Update.
10108 * valops.c (hand_function_call): Update.
10110 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
10112 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10113 set_gdbarch_char_signed.
10115 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10118 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10120 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10122 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10123 (_initialize_arm_tdep): Don't set tm_print_insn.
10125 2003-03-24 Adam Fedor <fedor@gnu.org>
10127 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10128 * objc-lang.h: Add multiple inclusion protection.
10129 (start_msglist, add_msglist, end_msglist): Additional declarations.
10131 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
10133 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10134 value was renamed to ARM_FLOAT_SOFT_FPA.
10136 2003-03-23 Andrew Cagney <cagney@redhat.com>
10138 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10139 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10140 * gdbarch.h, gdbarch.c: Regenerate.
10141 * valops.c (hand_function_call): Update.
10142 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10143 * frame.c (legacy_saved_regs_this_id): Update.
10144 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10145 * dummy-frame.h: Update.
10146 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10147 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10148 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10149 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10150 * config/m68k/tm-sun3.h: Update.
10151 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10152 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10153 * x86-64-tdep.c (x86_64_init_abi): Update.
10154 * vax-tdep.c (vax_gdbarch_init): Update.
10155 * v850-tdep.c (v850_gdbarch_init): Update.
10156 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10157 * sh-tdep.c (sh_gdbarch_init): Update.
10158 * s390-tdep.c (s390_gdbarch_init): Update.
10159 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10160 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10161 (frame_get_saved_regs): Update.
10162 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10163 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10164 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10165 * mips-tdep.c (mips_gdbarch_init): Update.
10166 * mcore-tdep.c (mcore_gdbarch_init): Update.
10167 * m68k-tdep.c (m68k_gdbarch_init): Update.
10168 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10169 * ia64-tdep.c (ia64_gdbarch_init): Update.
10170 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10171 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10172 (i386_interix_back_one_frame): Update.
10173 * hppa-tdep.c (hppa_gdbarch_init): Update.
10174 (hppa_init_extra_frame_info): Update.
10175 * h8300-tdep.c (h8300_gdbarch_init): Update.
10176 * frv-tdep.c (frv_gdbarch_init): Update.
10177 * cris-tdep.c (cris_gdbarch_init): Update.
10178 * avr-tdep.c (avr_gdbarch_init): Update.
10179 * arm-tdep.c (arm_gdbarch_init): Update.
10180 * alpha-tdep.c (alpha_gdbarch_init): Update.
10182 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10184 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10185 (arm_get_fp_model): Declare.
10186 * arm-tdep.c (fp_model_strings): New string array.
10187 (arm_fp_model, current_fp_model): New variables.
10188 (arm_get_fp_model): New function.
10189 (arm_set_fp): New function.
10190 (set_fp_model_sfunc): New function.
10191 (show_fp_model): New function.
10192 (_initialize_arm_tdep): Add new command to set/show the FPU.
10193 (arm_extract_return_value): Use arm_get_fp_model.
10194 (arm_store_return_value): Likewise.
10195 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10196 to initialize the floating-point data types.
10197 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10200 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10202 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10203 the current setting of each value.
10204 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
10205 new_set and new_show. Use add_setshow_cmd_full and
10206 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10207 commands and add new version as subcommands of "set/show arm".
10209 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10211 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10212 (set_arm_command, show_arm_command): New functions.
10213 (_initialize_arm_tdep): Add them.
10214 (num_disassembly_options): Renamed from num_flavor_options.
10215 (valid_disassembly_styles): Renamed from valid_flavors.
10216 (disassembly_style): Renamed from disassembly_flavor.
10217 (set_disassembly_style_sfunc): Renamed from
10218 set_disassembly_flavor_sfunc.
10219 (set_disassembly_style): Renamed from set_disassembly_flavor.
10220 (arm_othernames): Updated.
10221 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10222 command. Add "set/show arm disassembly" commands. Deprecate
10223 "othernames" command.
10225 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10227 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10228 (arm-tdep.o): Depend on elf_arm_h.
10230 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10232 * Makefile.in (coff_internal_h): Define.
10233 (arm-tdep.o): Update dependencies.
10235 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10237 * arm-tdep.c (prologue_cache): Delete.
10238 (check_prologue_cache, save_prologue_cache): Delete.
10239 (arm_scan_prologue): Don't check or update the prologue_cache.
10240 (arm_gdb_arch_init): Don't initialize it.
10241 (_initialize_arm_tdep): Likewise.
10243 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10245 * MAINTAINERS (tui): Maintainer of tui code.
10247 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
10249 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10250 (i386-cygwin-tdep.o): Add dependencies.
10251 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10252 * i386-cygwin-tdep.c: New file.
10253 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10254 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10256 2003-03-20 Andrew Cagney <cagney@redhat.com>
10258 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10259 (handle_inferior_event): Remove code calling
10260 DYNAMIC_TRAMPOLINE_NEXTPC.
10262 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10263 already has a full path.
10265 * main.c (gdb_main): Return 1.
10266 (captured_main): Call error to report an invalid interpreter.
10268 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10269 * alpha-osf1-tdep.c: Include "gdb_string.h".
10271 2003-03-19 J. Brobecker <brobecker@gnat.com>
10273 Continuing work to convert the hppa targets to multiarch partial.
10275 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10276 method, now that hppa_push_dummy_frame has a conformant prototype.
10277 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10278 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10279 for the switch to multiarch partial.
10281 2003-03-19 Kevin Buettner <kevinb@redhat.com>
10283 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10284 when iss is issNull.
10286 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10288 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10289 NUM_REGS bounds check.
10291 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10293 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10294 * mips-tdep.c (gdb_assert.h): Include.
10295 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10296 (mips_register_name): Handle integer registers explicitly. Add
10298 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10299 (mips_lsi33k_reg_names): Don't list integer registers; they're
10300 handled by mips_register_name() now.
10301 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10302 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10303 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10304 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10305 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10307 2003-03-18 Andrew Cagney <cagney@redhat.com>
10309 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10311 * gdbtypes.h (print_scalar_formatted): Update declaration.
10312 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10314 2003-03-18 J. Brobecker <brobecker@gnat.com>
10316 * infrun.c (observer.h): Add #include.
10317 (normal_stop): Add call to observer_notify_normal_stop.
10318 * Makefile.in (infrun.o): Add dependency on observer.h.
10320 2003-03-18 J. Brobecker <brobecker@gnat.com>
10322 Continuing work to convert the hppa targets to multiarch partial.
10323 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10324 parameter. Reformat comment.
10325 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10326 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10327 to match new profile.
10329 2003-03-18 J. Brobecker <brobecker@gnat.com>
10331 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10332 appear to be working in any case.
10334 2003-03-18 J. Brobecker <brobecker@gnat.com>
10336 * observer.c (observer_test_first_observer): New static variable.
10337 (observer_test_second_observer): Likewise.
10338 (observer_test_third_observer): Likewise.
10339 (observer_test_first_notification_function): New static function.
10340 (observer_test_second_notification_function): Likewise.
10341 (observer_test_third_notification_function): Likewise.
10343 2003-03-17 J. Brobecker <brobecker@gnat.com>
10345 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10346 * somsolib.c (gdb_assert.h): Likewise.
10347 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10348 (somsolib.o): Likewise.
10350 2003-03-17 Andrew Cagney <cagney@redhat.com>
10352 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10353 BFD. Simplify setting of di.endian.
10355 2003-03-17 Andrew Cagney <cagney@redhat.com>
10357 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10358 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10360 From Elena Zannoni <ezannoni@redhat.com>
10361 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10362 vector and floating-point parameters.
10363 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10365 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10367 2003-03-17 Fernando Nasser <fnasser@redhat.com>
10369 * MAINTAINERS: Remove my name from several maintainership roles.
10371 2003-03-17 Andrew Cagney <cagney@redhat.com>
10373 Fix frame off-by-one bug.
10374 * frame-unwind.h (frame_this_id_ftype): Replace
10375 frame_unwind_id_ftype.
10376 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10377 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10378 with "prev_register".
10379 * frame-unwind.c (frame_unwind_find_by_pc): Return
10380 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10382 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10383 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10384 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10385 (dummy_frame_unwind): Update.
10386 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10387 sentinel_frame_register_unwind.
10388 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10389 (sentinel_frame_unwinder): Update.
10390 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10391 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10392 * frame.c (create_sentinel_frame): Update. Initialize
10393 "prologue_cache" instead of "unwind_cache".
10394 (frame_register_unwind): Call this frame's prev_register with the
10395 next frame and this frame's prologue cache.
10396 (get_prev_frame): Simplify. Always call prev frame's this_id with
10397 this frame and prev frame's prologue cache. Document that this
10398 call is shifted one to the left when compared to the
10399 frame_register_unwind call.
10400 (legacy_saved_regs_prev_register): Replace
10401 frame_saved_regs_register_unwind.
10402 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10403 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10404 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10405 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10406 (d10v_frame_unwind): Update.
10407 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10408 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10409 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10410 "saved_regs" with "this_saved_regs".
10412 2003-03-16 Andrew Cagney <cagney@redhat.com>
10414 * frame.c (frame_pop): Don't call target_store_registers. Fix
10415 problem reported by Mark Kettenis.
10417 2003-03-16 Mark Kettenis <kettenis@gnu.org>
10419 * i386-tdep.c (i386_register_type): Renamed from
10420 i386_register_virtual_type. Adjust function signature.
10421 (i386_gdbarch_init): Set register_type instead of
10422 deprecated_max_register_raw_size,
10423 deprecated_max_register_virtual_size and register_virtual_type.
10425 2003-03-14 Andrew Cagney <cagney@redhat.com>
10427 * frame.c (get_prev_frame): When a legacy frame, always call
10428 legacy_get_prev_frame. Simplify unwind code using assumption that
10429 the unwinder is new.
10430 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10431 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10432 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10434 2003-03-14 Andrew Cagney <cagney@redhat.com>
10436 * frame.c (get_saved_register): Delete function.
10437 * frame.h (get_saved_register): Delete declaration.
10438 * xstormy16-tdep.c: Update comment.
10439 * regcache.h: Update comments.
10440 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10441 get_saved_register and extract_address, use
10442 frame_read_unsigned_register.
10443 (sparc_frame_saved_pc): Ditto.
10444 (sparc_get_saved_register): Instead of get_saved_register, use
10446 (sparc_pop_frame): Ditto.
10447 * findvar.c: Update comments.
10448 (value_of_register): Call frame_register instead of
10449 get_saved_register.
10450 (value_from_register): Ditto.
10451 * config/sparc/tm-sparc.h: Update comment.
10452 * breakpoint.c: Update comment.
10454 2003-03-14 Andrew Cagney <cagney@redhat.com>
10456 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10457 GET_SAVED_REGISTER.
10458 * gdbarch.h, gdbarch.c: Re-generate.
10459 * frame.h: Update comments.
10460 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10461 * x86-64-tdep.c (x86_64_init_abi): Update.
10462 * sparc-tdep.c (sparc_gdbarch_init): Update.
10463 * sh-tdep.c (sh_gdbarch_init): Update.
10464 * mips-tdep.c (mips_gdbarch_init): Update.
10465 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10466 * cris-tdep.c (cris_gdbarch_init): Update.
10467 * ia64-tdep.c (ia64_gdbarch_init): Update.
10468 * frame.c (frame_register): Update.
10469 (get_saved_register): Update.
10470 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
10472 2003-03-13 Andrew Cagney <cagney@redhat.com>
10474 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10475 * gdbarch.h, gdbarch.c: Regenerate.
10476 * valops.c (hand_function_call): Update comment.
10477 * stack.c (return_command): Update comment.
10478 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10479 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10480 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10481 * x86-64-tdep.c (x86_64_init_abi): Update.
10482 * vax-tdep.c (vax_gdbarch_init): Update.
10483 * v850-tdep.c (v850_gdbarch_init): Update.
10484 * sparc-tdep.c (sparc_gdbarch_init): Update.
10485 * sh-tdep.c (sh_gdbarch_init): Update.
10486 * s390-tdep.c (s390_gdbarch_init): Update.
10487 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10488 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10489 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10490 * mips-tdep.c (mips_gdbarch_init): Update.
10491 * mcore-tdep.c (mcore_gdbarch_init): Update.
10492 * m68k-tdep.c (m68k_gdbarch_init): Update.
10493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10494 * ia64-tdep.c (ia64_gdbarch_init): Update.
10495 * i386-tdep.c (i386_gdbarch_init): Update.
10496 * hppa-tdep.c (hppa_gdbarch_init): Update.
10497 * h8300-tdep.c (h8300_gdbarch_init): Update.
10498 * frv-tdep.c (frv_gdbarch_init): Update.
10499 * cris-tdep.c (cris_gdbarch_init): Update.
10500 * avr-tdep.c (avr_gdbarch_init): Update.
10501 * arm-tdep.c (arm_gdbarch_init): Update.
10502 * alpha-tdep.c (alpha_gdbarch_init): Update.
10504 2003-03-13 Andrew Cagney <cagney@redhat.com>
10506 * frame.c (legacy_frame_p): New function.
10507 (get_prev_frame): Use legacy_frame_p.
10508 * frame.h (legacy_frame_p): Declare.
10510 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10512 * MAINTAINERS (write after approval): Alphabetically
10515 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10517 * MAINTAINERS (write after approval): Add myself.
10519 2003-03-12 Andrew Cagney <cagney@redhat.com>
10521 * frame.c (get_prev_frame): Rename the frame parameter to
10523 (get_next_frame, legacy_get_prev_frame): Ditto.
10525 2003-03-12 Andrew Cagney <cagney@redhat.com>
10527 * frame.c (get_current_frame): Check target_has_registers before
10528 checking target_has_stack.
10529 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10530 instead of deprecated_selected_frame.
10531 * findvar.c (value_of_register): Pass "frame", not
10532 deprecated_selected_frame, to value_of_builtin_reg.
10534 2003-03-12 Andrew Cagney <cagney@redhat.com>
10536 * regcache.c (regcache_cooked_write_signed): New function.
10537 (regcache_cooked_write_unsigned): New function.
10538 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10539 (regcache_cooked_read_signed): Fix regnum in range assertion.
10540 * regcache.h (regcache_cooked_write_signed): Declare.
10541 (regcache_cooked_write_unsigned): Declare.
10543 2003-03-12 Andrew Cagney <cagney@redhat.com>
10545 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10546 * gdbarch.h, gdbarch.c: Re-generate.
10547 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10548 * x86-64-tdep.h: Update.
10549 * x86-64-tdep.c (x86_64_init_abi): Update.
10550 * v850-tdep.c (v850_gdbarch_init): Update.
10551 * sparc-tdep.c (sparc_gdbarch_init): Update.
10552 * sh-tdep.c (sh_gdbarch_init): Update.
10553 * s390-tdep.c (s390_gdbarch_init): Update.
10554 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10555 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10556 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10557 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10558 * mips-tdep.c (mips_gdbarch_init): Update.
10559 * mcore-tdep.c (mcore_gdbarch_init): Update.
10560 * m68k-tdep.c (m68k_gdbarch_init): Update.
10561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10562 * ia64-tdep.c (ia64_gdbarch_init): Update.
10563 * i386-tdep.c (i386_gdbarch_init): Update.
10564 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10565 * hppa-tdep.c (hppa_gdbarch_init): Update.
10566 * h8300-tdep.c (h8300_gdbarch_init): Update.
10567 * frv-tdep.c (frv_gdbarch_init): Update.
10568 * cris-tdep.c (cris_gdbarch_init): Update.
10569 * avr-tdep.c (avr_gdbarch_init): Update.
10570 * arm-tdep.c (arm_gdbarch_init): Update.
10571 * alpha-tdep.c (alpha_gdbarch_init): Update.
10572 * sh-tdep.c (sh_init_extra_frame_info): Update.
10573 (sh64_init_extra_frame_info): Update.
10574 * ns32knbsd-nat.c (frame_num_args): Update.
10575 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10576 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10577 (xstormy16_frame_chain_valid): Update.
10578 * vax-tdep.c (vax_saved_pc_after_call): Update.
10579 * v850-tdep.c (v850_frame_chain): Update.
10580 (v850_pop_frame): Update.
10581 (v850_init_extra_frame_info): Update.
10582 * sparc-tdep.c (setup_arbitrary_frame): Update.
10583 * ns32k-tdep.c (umax_frame_num_args): Update.
10584 * s390-tdep.c (s390_pop_frame_regular): Update.
10585 * mn10300-tdep.c (mn10300_frame_chain): Update.
10586 (mn10300_pop_frame_regular): Update.
10587 (mn10300_init_extra_frame_info): Update.
10588 * mips-tdep.c (mips_init_frame_pc_first): Update.
10589 (mips_frame_chain): Update.
10590 (mips_pop_frame): Update.
10591 * mcore-tdep.c (mcore_frame_chain): Update.
10592 (mcore_pop_frame): Update.
10593 (mcore_init_extra_frame_info): Update.
10594 * arch-utils.c (init_frame_pc_default): Update.
10595 * m68k-tdep.c (isi_frame_num_args): Update.
10596 (delta68_frame_num_args): Update.
10597 (news_frame_num_args): Update.
10598 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10599 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10600 (alpha_frame_chain): Update.
10601 (alpha_pop_frame): Update.
10602 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10603 (hppa_init_extra_frame_info): Update.
10604 (hppa_frame_chain): Update.
10605 (hppa_frame_chain_valid): Update.
10606 * cris-tdep.c (cris_init_extra_frame_info): Update.
10607 * avr-tdep.c (avr_init_extra_frame_info): Update.
10608 * arm-tdep.c (arm_frame_chain_valid): Update.
10609 (arm_init_extra_frame_info): Update.
10610 (arm_pop_frame): Update.
10611 * frame.c (frame_pc_unwind): Update.
10612 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10613 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10614 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10615 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10616 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10617 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10619 2003-03-12 Andrew Cagney <cagney@redhat.com>
10621 Eliminate the need for POP_FRAME.
10622 * frame.c (do_frame_unwind_register): New function.
10623 (frame_pop): When no POP_FRAME, pop the frame using register
10624 unwind and a scratch regcache.
10625 (frame_saved_regs_pop): Delete function.
10626 (trad_frame_unwinder): Update.
10627 * d10v-tdep.c (d10v_frame_pop): Delete function.
10628 (d10v_frame_unwind): Update.
10629 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10630 (sentinel_frame_unwinder): Update.
10631 * dummy-frame.c (dummy_frame_pop): Delete function.
10632 (dummy_frame_unwind): Update.
10633 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10634 (struct frame_unwind): Update.
10636 2003-03-11 Kevin Buettner <kevinb@redhat.com>
10638 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10639 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10640 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10641 Do range checks on register number obtained from debugging info.
10642 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10643 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10644 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10646 (do_fp_register_row): Fix typo which caused double type to be
10647 used when attempting to unpack a float.
10649 2003-03-11 J. Brobecker <brobecker@gnat.com>
10651 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10653 2003-03-11 Andrew Cagney <cagney@redhat.com>
10655 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10656 frame. Problem found by Corinna Vinschen.
10658 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10660 * doublest.c (floatformat_from_length): Accept also
10661 the real size of 'long double' type.
10663 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
10665 From Klee Dienes <kdienes@apple.com>:
10666 * breakpoint.c (bpstat_copy): Copy the command lines as well
10667 as the old value, to match what is freed in bpstat_clear.
10669 2003-03-10 David Carlton <carlton@math.stanford.edu>
10671 * minsyms.c (add_minsym_to_hash_table): Replace
10672 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10673 (compare_minimal_symbols, compact_minimal_symbols)
10674 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10675 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10676 of DEPRECATED_SYMBOL_MATCHES_NAME.
10677 (lookup_minimal_symbol_solib_trampoline): Ditto.
10679 2003-03-10 Andrew Cagney <cagney@redhat.com>
10681 * regcache.h (regcache_cooked_read_ftype): Define.
10682 (regcache_save, regcache_restore): Add a cooked_read parameter.
10683 * regcache.c (regcache_save, regcache_restore): Update.
10684 (do_cooked_read): New function.
10685 (regcache_cpy): Pass do_cooked_read to regcache_save and
10688 2003-03-10 Andrew Cagney <cagney@redhat.com>
10690 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10691 * gdbarch.h, gdbarch.c: Re-generate.
10692 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10693 * x86-64-tdep.h: Update.
10694 * x86-64-tdep.c (x86_64_init_abi): Update.
10695 * v850-tdep.c (v850_gdbarch_init): Update.
10696 * sparc-tdep.c (sparc_gdbarch_init): Update.
10697 * sh-tdep.c (sh_gdbarch_init): Update.
10698 * s390-tdep.c (s390_gdbarch_init): Update.
10699 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10700 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10701 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10702 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10703 * mips-tdep.c (mips_gdbarch_init): Update.
10704 * mcore-tdep.c (mcore_gdbarch_init): Update.
10705 * m68k-tdep.c (m68k_gdbarch_init): Update.
10706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10707 * ia64-tdep.c (ia64_gdbarch_init): Update.
10708 * i386-tdep.c (i386_gdbarch_init): Update.
10709 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10710 * hppa-tdep.c (hppa_gdbarch_init): Update.
10711 * h8300-tdep.c (h8300_gdbarch_init): Update.
10712 * frv-tdep.c (frv_gdbarch_init): Update.
10713 * cris-tdep.c (cris_gdbarch_init): Update.
10714 * avr-tdep.c (avr_gdbarch_init): Update.
10715 * arm-tdep.c (arm_gdbarch_init): Update.
10716 * alpha-tdep.c (alpha_gdbarch_init): Update.
10717 * sh-tdep.c (sh_init_extra_frame_info): Update.
10718 (sh64_init_extra_frame_info): Update.
10719 * ns32knbsd-nat.c (frame_num_args): Update.
10720 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10721 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10722 (xstormy16_frame_chain_valid): Update.
10723 * vax-tdep.c (vax_saved_pc_after_call): Update.
10724 * v850-tdep.c (v850_frame_chain): Update.
10725 (v850_pop_frame): Update.
10726 (v850_init_extra_frame_info): Update.
10727 * sparc-tdep.c (setup_arbitrary_frame): Update.
10728 * ns32k-tdep.c (umax_frame_num_args): Update.
10729 * s390-tdep.c (s390_pop_frame_regular): Update.
10730 * mn10300-tdep.c (mn10300_frame_chain): Update.
10731 (mn10300_pop_frame_regular): Update.
10732 (mn10300_init_extra_frame_info): Update.
10733 * mips-tdep.c (mips_init_frame_pc_first): Update.
10734 (mips_frame_chain): Update.
10735 (mips_pop_frame): Update.
10736 * mcore-tdep.c (mcore_frame_chain): Update.
10737 (mcore_pop_frame): Update.
10738 (mcore_init_extra_frame_info): Update.
10739 * arch-utils.c (init_frame_pc_default): Update.
10740 * m68k-tdep.c (isi_frame_num_args): Update.
10741 (delta68_frame_num_args): Update.
10742 (news_frame_num_args): Update.
10743 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10744 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10745 (alpha_frame_chain): Update.
10746 (alpha_pop_frame): Update.
10747 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10748 (hppa_init_extra_frame_info): Update.
10749 (hppa_frame_chain): Update.
10750 (hppa_frame_chain_valid): Update.
10751 * cris-tdep.c (cris_init_extra_frame_info): Update.
10752 * avr-tdep.c (avr_init_extra_frame_info): Update.
10753 * arm-tdep.c (arm_frame_chain_valid): Update.
10754 (arm_init_extra_frame_info): Update.
10755 (arm_pop_frame): Update.
10756 * frame.c (frame_pc_unwind): Update.
10757 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10758 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10759 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10760 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10761 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10762 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10764 2003-03-10 Andrew Cagney <cagney@redhat.com>
10766 * gdbarch.sh (gdbarch_unwind_pc): New method.
10767 * gdbarch.h, gdbarch.c: Regenerate.
10768 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10769 but use read_pc and FRAME_SAVED_PC as fall backs.
10770 (frame_saved_regs_pc_unwind): Delete function.
10771 (trad_frame_unwinder): Update.
10772 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10773 (struct frame_unwind): Update.
10774 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10775 (dummy_frame_unwind): Update.
10776 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10777 (sentinel_frame_unwinder): Update.
10778 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10779 (d10v_frame_unwind): Update.
10780 (d10v_unwind_pc): New function.
10781 (d10v_gdbarch_init): Set unwind_pc.
10783 2003-03-10 Andrew Cagney <cagney@redhat.com>
10785 * gdbarch.h: Re-generate.
10787 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10789 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10792 2003-03-08 Mark Kettenis <kettenis@gnu.org>
10794 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10796 2003-03-08 Andrew Cagney <cagney@redhat.com>
10798 * cli-out.c: Update copyright.
10799 (cli_out_data): Define typedef. Use instead of ui_out_data.
10801 2003-03-08 Andrew Cagney <cagney@redhat.com>
10803 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10806 2003-03-07 Andrew Cagney <cagney@redhat.com>
10808 * gdbarch.sh: Don't generate two macro definitions when an
10809 undefined macro taking no arguments.
10810 * gdbarch.h: Regenerate.
10812 2002-03-07 Michal Ludvig <mludvig@suse.cz>
10814 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10815 (x86_64_unwind_dummy_id): New functions.
10816 (x86_64_init_abi): Register these two new functions.
10818 2003-03-07 Michal Ludvig <mludvig@suse.cz>
10820 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10821 (x86_64_skip_prologue): Move prologue detection to
10823 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10825 2003-03-05 Andrew Cagney <cagney@redhat.com>
10827 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10828 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10829 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10830 to use unwind_dummy_id when a dummy frame.
10831 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10833 * gdbarch.h, gdbarch.c: Regneerate.
10835 2003-03-05 Andrew Cagney <cagney@redhat.com>
10837 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10838 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10839 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10842 2003-03-05 Andrew Cagney <cagney@redhat.com>
10844 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10845 (struct d10v_unwind_cache): Delete field "frameless". Replace
10846 "next_addr" with "sp_offset". Add "r11_offset".
10847 (d10v_frame_unwind_cache): Update.
10848 (prologue_find_regs): Update. When "mv r11, sp", save the
10849 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10850 RN was saved in r11_offset.
10852 2003-03-05 Andrew Cagney <cagney@redhat.com>
10854 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10855 cached PC value in the next frame.
10857 2003-03-05 Andrew Cagney <cagney@redhat.com>
10859 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10860 "id_unwind_cache" with "id".
10861 (frame_id_unwind): Delete declaration.
10862 * frame.c (frame_id_unwind): Delete function.
10863 (get_prev_frame): Call the frame id unwind method directly. Store
10864 the returned next frame's ID value in NEXT_FRAME. Note that there
10865 is a problem with the wrong unwind ID being called with the wrong
10868 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10870 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10872 2003-03-05 James Ingham <jingham@apple.com>
10873 Daniel Jacobowitz <drow@mvista.com>
10875 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10876 (auto_cp_abi): New variable.
10877 (current_cp_abi, num_cp_abis): Make static.
10878 (CP_ABI_MAX): Define.
10879 (cp_abis): Turn into an array.
10880 (value_virtual_fn_field): Fix formatting.
10881 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10883 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10884 (list_cp_abis, _initialize_cp_abi): New functions.
10885 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10886 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10887 switch_to_cp_abi. Update prototype for register_cp_abi.
10888 * Makefile.in (cp-abi.o): Update dependencies.
10889 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10890 instead of switch_to_cp_abi.
10891 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10893 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10895 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10897 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10899 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10900 * dwarf2loc.c: Include "regcache.h".
10901 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10903 * Makefile.in (dwarf2loc.o): Update dependencies.
10905 2003-03-04 Theodore A. Roth <troth@openavr.org>
10907 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10908 number of io registers reported by remote target is not a multiple of
10911 2003-03-04 David Carlton <carlton@math.stanford.edu>
10913 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10914 (lookup_symbol_aux_psymtabs): Update call to
10915 lookup_partial_symbol.
10916 (lookup_transparent_type, find_main_psymtab)
10917 (make_symbol_overload_list): Ditto.
10919 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10921 * MAINTAINERS (Write after approval): Update my email address.
10923 2003-03-03 Andrew Cagney <cagney@redhat.com>
10925 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10926 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10927 predicate. Replace MAX_REGISTER_RAW_SIZE.
10928 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10929 MAX_REGISTER_VIRTUAL_SIZE.
10930 * regcache.c (legacy_max_register_raw_size): New function.
10931 (legacy_max_register_virtual_size): New function.
10932 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10933 (MAX_REGISTER_RAW_SIZE): Define.
10934 (legacy_max_register_raw_size): Declare.
10935 (legacy_max_register_virtual_size): Declare.
10936 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10937 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10938 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10939 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10940 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10941 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10942 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10943 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10944 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10945 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10946 * vax-tdep.c (vax_gdbarch_init): Update.
10947 * v850-tdep.c (v850_gdbarch_init): Update.
10948 * sparc-tdep.c (sparc_gdbarch_init): Update.
10949 * sh-tdep.c (sh_gdbarch_init): Update.
10950 * s390-tdep.c (s390_gdbarch_init): Update.
10951 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10952 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10953 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10954 * mips-tdep.c (mips_gdbarch_init): Update.
10955 * mcore-tdep.c (mcore_gdbarch_init): Update.
10956 * m68k-tdep.c (m68k_gdbarch_init): Update.
10957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10958 * ia64-tdep.c (ia64_gdbarch_init): Update.
10959 * i386-tdep.c (i386_gdbarch_init): Update.
10960 * hppa-tdep.c (hppa_gdbarch_init): Update.
10961 * h8300-tdep.c (h8300_gdbarch_init): Update.
10962 * frv-tdep.c (frv_gdbarch_init): Update.
10963 * cris-tdep.c (cris_gdbarch_init): Update.
10964 * avr-tdep.c (avr_gdbarch_init): Update.
10965 * arm-tdep.c (arm_gdbarch_init): Update.
10966 * alpha-tdep.c (alpha_gdbarch_init): Update.
10967 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10968 max_register_raw_size or max_register_virtual_size.
10970 2003-03-03 David Carlton <carlton@math.stanford.edu>
10972 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10973 SYMBOL_MATCHES_NAME, add comment.
10974 (SYMBOL_MATCHES_NATURAL_NAME): New.
10975 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10976 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10977 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10978 * symtab.c (lookup_partial_symbol): Use
10979 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10981 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10982 SYMBOL_MATCHES_NAME.
10985 2003-03-03 David Carlton <carlton@math.stanford.edu>
10987 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10988 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10989 by regexp matching against SYMBOL_NATURAL_NAME.
10991 2003-03-03 David Carlton <carlton@math.stanford.edu>
10993 * linespec.c (find_method): Extract code into collect_methods.
10994 (collect_methods): New.
10996 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10998 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11001 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11002 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11004 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11006 * arch-utils.c (generic_register_byte): Fix to use the loop index
11007 and not regnum when summing the size of all registers up to regnum.
11009 2003-03-01 Andrew Cagney <cagney@redhat.com>
11011 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11012 FRAME_INIT_SAVED_REGS.
11013 * gdbarch.h, gdbarch.c: Regenerate.
11014 * stack.c (frame_info): Update.
11015 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11016 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11017 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11018 * ns32k-tdep.c (ns32k_pop_frame): Update.
11019 * mips-tdep.c (mips_pop_frame): Update.
11020 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11021 * ia64-tdep.c (ia64_frame_chain): Update.
11022 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11023 (ia64_frameless_function_invocation): Update.
11024 (ia64_init_extra_frame_info): Update.
11025 (ia64_pop_frame_regular): Update.
11026 * frame.h (struct frame_info): Update comment.
11027 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11028 * frame.c (frame_saved_regs_register_unwind): Update.
11029 (frame_saved_regs_register_unwind): Update.
11030 (deprecated_generic_get_saved_register): Update.
11031 * cris-tdep.c: Update comment.
11032 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11034 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11035 * x86-64-tdep.c (x86_64_init_abi): Update.
11036 * vax-tdep.c (vax_gdbarch_init): Update.
11037 * v850-tdep.c (v850_gdbarch_init): Update.
11038 * sparc-tdep.c (sparc_gdbarch_init): Update.
11039 * sh-tdep.c (sh_gdbarch_init): Update.
11040 * s390-tdep.c (s390_gdbarch_init): Update.
11041 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11042 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11043 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11044 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11045 * mips-tdep.c (mips_gdbarch_init): Update.
11046 * mcore-tdep.c (mcore_gdbarch_init): Update.
11047 * m68k-tdep.c (m68k_gdbarch_init): Update.
11048 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11049 * ia64-tdep.c (ia64_gdbarch_init): Update.
11050 * i386-tdep.c (i386_gdbarch_init): Update.
11051 * frv-tdep.c (frv_gdbarch_init): Update.
11052 * avr-tdep.c (avr_gdbarch_init): Update.
11053 * arm-tdep.c (arm_gdbarch_init): Update.
11054 * alpha-tdep.c (alpha_gdbarch_init): Update.
11056 2003-03-01 Andrew Cagney <cagney@redhat.com>
11058 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11059 option enum and switch. When no windows, set the interpreter to
11062 2003-03-01 Andrew Cagney <cagney@redhat.com>
11064 * main.c (captured_main): Replace magic option characters with an
11067 2003-03-01 Andrew Cagney <cagney@redhat.com>
11069 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11070 INIT_EXTRA_FRAME_INFO.
11071 * gdbarch.h, gdbarch.c: Regenerate.
11072 * arm-tdep.c: Update comments.
11073 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11074 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11075 * frame.h, avr-tdep.c: Ditto.
11076 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11077 (create_new_frame, legacy_get_prev_frame): Ditto.
11078 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11079 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11080 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11081 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11082 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11083 * v850-tdep.c (v850_gdbarch_init): Ditto.
11084 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11085 * sh-tdep.c (sh_gdbarch_init): Ditto.
11086 * s390-tdep.c (s390_gdbarch_init): Ditto.
11087 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11088 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11089 * mips-tdep.c (mips_gdbarch_init): Ditto.
11090 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11091 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11092 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11093 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11094 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11095 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11096 * frv-tdep.c (frv_gdbarch_init): Ditto.
11097 * cris-tdep.c (cris_gdbarch_init): Ditto.
11098 * avr-tdep.c (avr_gdbarch_init): Ditto.
11099 * arm-tdep.c (arm_gdbarch_init): Ditto.
11100 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11101 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11103 2003-03-01 Andrew Cagney <cagney@redhat.com>
11105 * gdbarch.sh (register_type): New function with predicate.
11106 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11107 * gdbarch.h, gdbarch.c: Re-generate.
11108 * arch-utils.c (generic_register_byte): Use generic_register_size.
11109 (generic_register_size): When available, use
11110 gdbarch_register_type.
11111 * regcache.c (init_regcache_descr): When available, initialize the
11112 register type array using gdbarch_register_type. If the
11113 architecture supplies gdbarch_register_type, do not use the legacy
11115 * d10v-tdep.c (d10v_register_type): Replace
11116 d10v_register_virtual_type.
11117 (d10v_gdbarch_init): Set register_type instead of
11118 register_virtual_type.
11120 2003-03-01 Andrew Cagney <cagney@redhat.com>
11122 * Makefile.in (ax-gdb.o): Update dependencies.
11123 * ax-gdb.c: Include "regcache.h".
11124 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11125 * findvar.c (value_of_register): Ditto.
11126 * infcmd.c (default_print_registers_info): Ditto.
11128 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11130 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11131 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11133 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11135 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11138 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
11140 * Makefile.in (dwarf2loc.o): Update dependencies.
11141 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11142 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11143 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11144 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11145 (locexpr_tracepoint_var_ref): New function.
11146 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11148 2003-02-28 Andrew Cagney <cagney@redhat.com>
11150 * regcache.c (register_size): New function.
11151 * regcache.h (register_size): Declare
11152 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11153 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11155 2003-02-28 David Carlton <carlton@math.stanford.edu>
11157 * linespec.c (decode_compound): Extract code into find_method.
11158 (find_method): New.
11160 2003-02-28 J. Brobecker <brobecker@gnat.com>
11162 * Makefile.in: Add rules to build and link in observer.o.
11164 2003-02-27 J. Brobecker <brobecker@gnat.com>
11166 * observer.c: Minor comments edits.
11168 2003-02-27 J. Brobecker <brobecker@gnat.com>
11170 * observer.h, observer.c: New file.
11172 2003-02-27 Andrew Cagney <cagney@redhat.com>
11174 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11176 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11178 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11179 (M6812_OP_STS_EXT): Likewise.
11180 (m6811_prologue): Use the above to recognize prologue.
11181 (m6812_prologue): Likewise.
11183 2003-02-27 David Carlton <carlton@math.stanford.edu>
11185 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11187 (compare_psymbols): Ditto.
11188 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11190 2003-02-27 Michael Snyder <msnyder@redhat.com>
11192 * f-lang.c (build_fortran_types): New function.
11193 (_initialize_f_language): Gdbarch-register built-in fortran types.
11194 * doublest.c (extract_floating): Fix warning text.
11196 2003-02-27 Andrew Cagney <cagney@redhat.com>
11198 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11199 predicate. Replaces PUSH_DUMMY_FRAME.
11200 * gdbarch.h, gdbarch.c: Regnerate.
11201 * valops.c (hand_function_call): Update. Call
11202 generic_push_dummy_frame directly.
11203 * vax-tdep.c (vax_gdbarch_init): Update.
11204 * sparc-tdep.c (sparc_gdbarch_init): Update.
11205 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11206 * m68k-tdep.c (m68k_gdbarch_init): Update.
11207 * hppa-tdep.c (hppa_gdbarch_init): Update.
11208 * alpha-tdep.c (alpha_gdbarch_init): Update.
11209 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11210 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11211 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11212 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11213 push_dummy_frame to generic_push_dummy_frame.
11214 * v850-tdep.c (v850_gdbarch_init): Ditto.
11215 * sh-tdep.c (sh_gdbarch_init): Ditto.
11216 * s390-tdep.c (s390_gdbarch_init): Ditto.
11217 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11218 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11219 * mips-tdep.c (mips_gdbarch_init): Ditto.
11220 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11221 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11222 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11223 * i386-tdep.c (i386_gdbarch_init): Ditto.
11224 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11225 * frv-tdep.c (frv_gdbarch_init): Ditto.
11226 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11227 * cris-tdep.c (cris_gdbarch_init): Ditto.
11228 * avr-tdep.c (avr_gdbarch_init): Ditto.
11229 * arm-tdep.c (arm_gdbarch_init): Ditto.
11231 2003-02-26 Kevin Buettner <kevinb@redhat.com>
11233 * mips-tdep.c (show_mips_abi): New function.
11234 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11235 command ``show mips abi''.
11237 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
11239 From Elena Zannoni <ezannoni@redhat.com>
11240 * dbxread.c (process_one_symbol): Only record line 0 if one or
11241 more sline entries have been seen for the function.
11243 2003-02-26 Michael Chastain <mec@shout.net>
11245 * configure: Regenerate with autoconf 000227.
11247 2003-02-26 Michael Chastain <mec@shout.net>
11249 Close PR build/660.
11250 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11251 for old libc5/glibc.
11252 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11254 2003-02-26 Kris Warkentin <kewarken@qnx.com>
11256 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11257 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11259 2003-02-26 Michael Chastain <mec@shout.net>
11261 * configure.in: New variable HAVE_UINTPTR_T.
11262 * configure, config.in: Regenerated.
11264 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
11267 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11269 2003-02-25 Andrew Cagney <cagney@redhat.com>
11271 * frame.c (get_prev_frame): Add comment on check for
11272 inside_entry_func. Only check for inside_entry_file when not a
11273 dummy and not a sentinel. Check that the new frame is not inner
11276 2003-02-25 Andrew Cagney <cagney@redhat.com>
11278 * frame.c (frame_debug): New variable.
11279 (_initialize_frame): Add "set/show debug frame" command.
11280 (get_prev_frame): When frame_debug, print reason why unwind
11283 2003-02-25 Michael Chastain <mec@shout.net>
11285 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11286 to avoid uintptr_t definition problems.
11288 2003-02-25 David Carlton <carlton@math.stanford.edu>
11290 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11291 (SYMBOL_LINKAGE_NAME): Ditto.
11292 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11293 SYMBOL_LINKAGE_NAME.
11294 (struct general_symbol_info): Expand comment.
11295 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11296 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11297 (SYMBOL_MATCHES_REGEXP): Ditto.
11298 * symtab.c (symbol_natural_name): New function.
11299 * objfiles.h: Replace all uses of SYMBOL_NAME by
11300 DEPRECATED_SYMBOL_NAME.
11301 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11302 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11303 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11304 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11305 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11306 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11307 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11308 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11309 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11310 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11311 * ada-exp.y: Ditto.
11312 * ada-exp.y: Update copyright.
11313 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11314 * cp-valprint.c: Ditto.
11316 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11318 * infptrace.c (detach): Do not flag error if ptrace detach fails
11319 and errno is set to ESRCH.
11321 2003-02-24 Andrew Cagney <cagney@redhat.com>
11323 * infptrace.c (udot_info): Change type of udot_off to long. Use
11324 paddr when printing udot_off's value.
11326 2003-02-24 David Carlton <carlton@math.stanford.edu>
11328 * symtab.c (make_symbol_overload_list): Only read in partial
11329 symtabs containing a matching partial symbol.
11331 2003-02-24 David Carlton <carlton@math.stanford.edu>
11333 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11334 do the comparison, not strcmp.
11335 * symfile.c (compare_psymbols): Ditto.
11336 * defs.h: Declare strcmp_iw_ordered.
11337 * utils.c (strcmp_iw_ordered): New function.
11339 2003-02-24 Jim Blandy <jimb@redhat.com>
11341 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11342 support, shared libs): Remove my name from here, to better reflect
11345 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11347 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11348 (target_ops): Add to_have_continuable_watchpoint.
11349 * target.c (update_current_target): Add INHERIT line for
11350 to_have_continuable_watchpoint.
11351 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11352 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11353 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11354 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11356 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
11358 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11361 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11363 * solib.c (solib_open): Call target defined search function after
11364 failing with solib-search-path.
11365 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11366 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
11368 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11370 * MAINTAINERS: Add myself to Write After section.
11372 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11374 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11376 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11378 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11379 (m68hc11_add_reggroups): New function.
11380 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11381 (m68hc11_gdbarch_init): Install the reggroups.
11382 (_initialize_m68hc11_tdep): Initialize them.
11384 2003-02-21 James E Wilson <wilson@tuliptree.org>
11386 * MAINTAINERS: Update my email address.
11388 2003-02-21 David Carlton <carlton@math.stanford.edu>
11390 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11392 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
11394 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11395 * symtab.h: Add opaque declarations of struct axs_value and
11397 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11398 (struct location_funcs): New type.
11399 (struct symbol): Add "loc" to aux_value.
11400 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11401 * dwarf2read.c: Include "dwarf2expr.h".
11402 (dwarf2_symbol_mark_computed): New function.
11403 (read_func_scope): Use it.
11404 (var_decode_location): New function.
11405 (new_symbol): Use it.
11406 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11408 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11409 (dwarf2expr_h, dwarf2loc_h): New variables.
11410 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11411 (dwarf2expr.o, dwarf2loc.o): New rules.
11412 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11413 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11415 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11416 * m2-exp.y (yylex): Likewise.
11417 * printcmd.c (address_info, print_frame_args): Likewise.
11418 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11419 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11420 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11421 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11422 * symtab.c (lookup_block_symbol): Likewise.
11424 2003-02-20 Adam Fedor <fedor@gnu.org>
11426 * symtab.h: Remove objc_specific struct
11427 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11428 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11429 Have language_objc use cplus_specific struct.
11431 2003-02-20 Tom Tromey <tromey@redhat.com>
11433 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11434 TYPE_NAME, when printing a String value. PR java/1075.
11436 2003-02-20 Adam Fedor <fedor@gnu.org>
11438 * objc-lang.h (find_methods): Remove declaration.
11439 * objc-lang.c (find_methods): Make static.
11441 2003-02-20 Christopher Faylor <cgf@redhat.com>
11443 * win32-nat.c (get_image_name): Check return value from
11445 (child_xfer_memory): Ditto.
11447 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
11449 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11450 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11451 '${exec_prefix}' (in addition to the expansion thereof) as
11453 * configure: Rebuilt.
11455 2003-02-20 David Carlton <carlton@math.stanford.edu>
11457 * symtab.c (search_symbols): Revert the search_symbols part of my
11458 2002-12-23 patch. Add comment.
11460 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11462 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11463 * dbxread.c (elfstab_build_psymtabs): Don't call
11464 install_minimal_symbols.
11465 (stabsect_build_psymtabs): Likewise.
11466 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11468 * somread.c (som_symfile_read): Call install_minimal_symbols
11469 and do_cleanups earlier.
11470 * nlmread.c (nlm_symfile_read): Likewise.
11471 * mdebugread.c (elfmdebug_build_psymtabs): Call
11472 install_minimal_symbols and make appropriate cleanups.
11474 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11476 * solib.c (reload_shared_libraries): New function.
11477 (_initialize_solib): Add callbacks for ``set solib-search-path''
11478 and ``set solib-absolute-prefix''.
11480 2003-02-20 David Carlton <carlton@math.stanford.edu>
11482 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11484 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11485 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11486 * ada-typeprint.c (ada_typedef_print): Ditto.
11487 * ax-gdb.c (gen_var_ref): Ditto.
11488 * breakpoint.c (print_one_breakpoint): Ditto.
11489 * buildsym.c (finish_block): Ditto.
11490 * c-valprint.c (c_val_print): Ditto.
11491 * expprint.c (print_subexp): Ditto.
11492 * findvar.c (locate_var_value): Ditto.
11493 * infcmd.c (jump_command): Ditto.
11494 * linespec.c (decode_line_2, decode_compound): Ditto.
11495 * maint.c (maintenance_translate_address): Ditto.
11496 * objc-lang.c (compare_selectors, compare_classes): Ditto.
11497 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11499 * p-valprint.c (pascal_val_print): Ditto.
11500 * stabsread.c (define_symbol): Ditto.
11501 * stack.c (print_frame, frame_info, print_block_frame_locals)
11502 (print_frame_arg_vars, return_command): Ditto.
11503 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11504 * symmisc.c (print_symbol): Ditto.
11505 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11506 (compare_search_syms, print_symbol_info, print_msymbol_info)
11507 (rbreak_command): Ditto.
11508 * tracepoint.c (tracepoints_info): Ditto.
11509 * typeprint.c (typedef_print): Ditto.
11510 * valops.c (value_of_variable, hand_function_call): Ditto.
11511 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11512 * ada-typeprint.c: Update Copyright.
11513 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11514 * tracepoint.c, cli/cli-cmds.c: Ditto.
11516 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11518 * frame.c (generic_unwind_get_saved_register): Make non-static.
11519 * frame.h (generic_unwind_get_saved_register): Declare.
11520 * mips-tdep.c (read_next_frame_reg): Fetch register from
11521 current regcache when frame is NULL.
11522 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11524 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11525 instead of frame_register_unwind().
11527 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11529 * remote-sim.c (gdbsim_insert_breakpoint)
11530 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11533 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11535 * remote.c (_initialize_remote): Add commands "set/show remote
11536 hardware-watchpoint-limit" and "set/show remote
11537 hardware-breakpoint-limit".
11538 (remote_hw_watchpoint_limit): Initialize to -1.
11539 (remote_hw_breakpoint_limit): Ditto.
11540 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11542 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11544 * coff-pe-read.c: New file - support reading of minimal symbols from a
11545 portable executable using the export table.
11546 * coff-pe-read.h: New file.
11547 * coffread.c: Include coff-pe-read.h.
11548 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11549 debugging symbols found.
11550 * Makefile.in (SFILES): Add coff-pe-read.o.
11551 (coff_pe_read_h): Define.
11552 (COMMON_OBS): Add coff-pe-read.o.
11553 (coffread.o): Add coff_pe_read_h dependency.
11554 (coff-pe-read.o): New target.
11556 2003-02-19 David Carlton <carlton@math.stanford.edu>
11558 * Makefile.in (SFILES): Add block.c.
11560 (COMMON_OBS): Add block.o.
11562 (x86-64-tdep.o): Add $(block_h).
11563 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11564 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11565 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11566 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11567 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11568 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11569 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11570 * value.h: Add opaque declaration for struct block.
11571 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11572 * ada-lang.h: Ditto.
11573 * x86-64-tdep.c: #include "block.h"
11574 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11575 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11576 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11577 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11578 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11579 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11580 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11581 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11582 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11583 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11584 * symtab.c (block_function): Ditto.
11585 (contained_in): Ditto.
11586 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11587 block.h. Add opaque declaration for struct block.
11588 * symtab.h: Move block_function and contained_in declarations to
11589 block.h. Add opaque declarations for struct block, struct
11591 (struct block): Move to block.h.
11592 (struct blockvector): Ditto.
11593 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11594 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11595 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11596 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11597 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11599 * block.c: New file.
11600 * block.h: New file.
11602 2003-02-19 Theodore A. Roth <troth@openavr.org>
11604 * avr-tdep.c (avr_extract_return_value): Remove function.
11605 (avr_store_return_value): Remove function.
11606 (avr_extract_struct_value_address): Remove function.
11607 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11609 2003-02-19 Andrew Cagney <ac131313@redhat.com>
11611 * rs6000-tdep.c: Include "gdb_assert.h".
11612 (registers_e500): Add "acc" and "spefscr".
11613 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11614 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11615 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11617 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11619 2003-02-18 Keith Seitz <keiths@redhat.com>
11621 * Makefile.in: Add gdbtk-interps.c.
11623 2003-02-18 Kevin Buettner <kevinb@redhat.com>
11625 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11626 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11628 2003-02-18 Andrew Cagney <cagney@redhat.com>
11630 * symtab.h (struct objfile): Add opaque declaration.
11632 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
11634 From Jim Ingham <jingham@apple.com>:
11635 * dbxread.c (process_one_symbol): Use last_function_start rather
11636 than function_start_offset to find the real beginning of the
11637 current function. The latter is just the text section offset on
11638 some systems, the former is always the real function start.
11640 2003-02-17 Andrew Cagney <cagney@redhat.com>
11642 * configure.in: Revert ${target} != ${host}.
11644 2003-02-17 Andrew Cagney <ac131313@redhat.com>
11646 * configure.in (Makefile): Use the test ${target} != ${host},
11647 instead of the absence of the "nm.h" file, to determine of the
11648 configuration non-native.
11649 * configure: Regenerate.
11651 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
11653 From Brian Ford <ford@vss.fsi.com>
11655 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11656 conditionalize tui_active test.
11657 (lookup_cmd_1): Ditto.
11659 2003-02-14 Mark Kettenis <kettenis@gnu.org>
11661 * configure.in: Add check for _etext.
11662 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11664 * config.in, configure: regenerated.
11666 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
11668 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11670 2003-02-14 Andrew Cagney <ac131313@redhat.com>
11672 * main.c (tui_version): Delete variable.
11673 (captured_main): When --tui, set interpreter_p to "tui" instead of
11674 enabling tui_version.
11675 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11677 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11678 * cli/cli-cmds.c (disassemble_command): Ditto.
11679 * defs.h (tui_version): Delete declaration.
11680 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11681 (tui-interp.o): Add rules.
11682 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11684 2003-02-14 Christopher Faylor <cgf@redhat.com>
11686 * win32-nat.c (register_loaded_dll): Correctly set address range for
11689 2003-02-12 Jason Molenda (jmolenda@apple.com)
11691 * symmisc.c (print_objfile_statistics): Include information about
11692 the number of psymtabs and symtabs in each object file.
11694 2003-02-13 Keith R Seitz <keiths@redhat.com>
11696 * main.h (struct captured_main_args): Add interpreter_p.
11697 * main.c (captured_main): Initialize interpreter_p from context.
11698 * gdb.c (main): Set interpreter_p argument.
11699 * Makefile.in (gdb.o): Add dependency for interps.h.
11701 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11703 * event-top.c (cli_command_loop): Delete declaration.
11704 (_initialize_event_loop): Delete function setting event_loop_hook.
11705 * event-top.h (cli_command_loop): Declare. Update copyright.
11706 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11707 * interps.c (current_interp_command_loop): When event_loop_p, call
11710 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11712 * interps.h (interp_command_loop_ftype): Change return type to
11715 2003-02-12 Michal Ludvig <mludvig@suse.cz>
11717 * x86-64-tdep.c (x86_64_extract_return_value)
11718 (x86_64_store_return_value): Use regcache instead of regbuf.
11719 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11720 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11722 2003-02-11 Andrew Cagney <ac131313@redhat.com>
11724 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11725 * aclocal.m4: Regenerate.
11726 * configure: Regenerate.
11728 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11729 TCL_LD_SEARCH_FLAGS.
11731 2003-02-10 Michal Ludvig <mludvig@suse.cz>
11733 * dwarf2cfi.c: Reindented.
11735 2003-02-09 Andrew Cagney <ac131313@redhat.com>
11737 * interps.c (clear_interpreter_hooks): Convert function definition
11740 2003-02-07 David Carlton <carlton@math.stanford.edu>
11742 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11744 2003-02-07 Kevin Buettner <kevinb@redhat.com>
11746 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11747 (struct type): ...to here.
11748 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11750 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11751 (replace_type): Set length on all type variants for a given type.
11753 2003-02-07 Andrew Cagney <ac131313@redhat.com>
11755 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11757 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11759 2003-02-06 Andrew Cagney <ac131313@redhat.com>
11761 * Makefile.in (symm-nat.o): Update dependencies.
11762 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11763 (lynx-nat.o, ia64-linux-nat.): Ditto.
11764 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11765 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11766 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11768 * Makefile.in (inflow_h): Define.
11769 (procfs.o, inflow.o, procfs.o): Update dependencies.
11770 * inftarg.c (child_stop): Delete extern declaration of
11771 inferior_process_group. Include "inflow.h".
11772 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11773 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11774 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11775 (our_process_group, inferior_process_group): Extern declarations.
11777 * procfs.c: Include "gdb_assert.h".
11779 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11780 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11781 * jv-typeprint.c (java_type_print_base): Ditto.
11782 * typeprint.c (typedef_print): Eliminate STREQ.
11783 * cli/cli-script.c (define_command, define_command): Ditto.
11784 * main.c (captured_main): Ditto.
11785 * values.c (lookup_internalvar): Ditto.
11786 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11787 within `if' conditional.
11788 * linespec.c (decode_line_2): Ditto.
11789 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11790 (bfd_openw_with_cleanup): Ditto.
11792 2003-02-07 Mark Kettenis <kettenis@gnu.org>
11794 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11795 legacy_extract_return_value and store_return_value to
11796 legacy_return_value.
11798 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11800 * win32-nat.c (get_relocated_section_addrs): New function. Find
11801 section load addresses for symbol handling in relocated DLLs.
11802 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11804 2003-02-05 Fred Fish <fnf@intrinsity.com>
11806 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11808 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11810 (angel_RDI_info): Ditto.
11811 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11813 (threads_continue_all_with_signals): Ditto.
11815 2003-02-05 Jim Ingham <jingham@apple.com>
11816 Keith Seitz <keiths@redhat.com>
11817 Elena Zannoni <ezannoni@redhat.com>
11818 Andrew Cagney <ac131313@redhat.com>
11820 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11821 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11822 (SUBDIR_MI_OBS): Add "mi-interp.o".
11823 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11824 (SFILES): Add "interps.c".
11825 (COMMON_OBS): Add "interps.o".
11826 (interps_h, mi_main_h): Define.
11827 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11828 (mi-main.o, main.o, event-top.o): Update dependencies.
11829 * cli/cli-interp.c: New file.
11830 * interps.h, interps.c: New files.
11831 * top.c: (gdb_init): Don't install the default interpreter, handed
11833 * main.c: Include "interps.h".
11834 (interpreter_p): Note that it should malloc'ed.
11835 (captured_command_loop): Call current_interp_command_loop.
11836 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11837 xfree and xstrdup when updating interpreter_p. Install the
11838 default interpreter. Add hack to stop mi1's copyright notice
11840 * event-top.h (gdb_setup_readline): Declare.
11841 (gdb_disable_readline): Declare.
11842 * event-top.c: Include "interps.h".
11843 (display_gdb_prompt): Call current_interp_display_prompt_p.
11844 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11845 gdb_stdlog, and gdb_stdtarg.
11846 (_initialize_event_loop): Don't call gdb_setup_readline.
11847 * cli-out.c (cli_out_set_stream): New function.
11848 * cli-out.h (cli_out_set_stream): Declare.
11850 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11852 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11853 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11854 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11855 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11856 config/i386/i386v42mp.mt: Removed.
11858 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11860 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11863 2003-02-05 Michael Chastain <mec@shout.net>
11865 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11866 2.12.1 and earlier versions.
11868 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11870 Remove orphaned hosts, targets and files.
11871 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11872 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11873 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11874 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11875 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11876 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11877 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11878 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11879 * config/sparc/tm-sp64sim.h: Delete.
11880 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11882 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11883 mips*-dec-mach3* targets.
11885 2003-02-04 Michael Chastain <mec@shout.net>
11887 * NEWS: Fix typo: sepcifying -> specifying.
11889 2003-02-04 Michael Chastain <mec@shout.net>
11891 * dwarfread.c: Add documentation on the state of dwarf-1,
11892 looking towards obsoletion.
11894 2003-02-03 Michael Chastain <mec@shout.net>
11896 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11897 gdb/testsuite/gdb.c++/pr-1023.exp.
11899 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11901 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11902 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11904 * utils.c (init_page_info): Delete reference to MPW in comments.
11905 * main.c (captured_main): Delete #ifdef MPW.
11907 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11909 * NEWS: Note that the m32r-*-elf* is obsolete.
11910 * monitor.c (monitor_expect): Obsolete reference to m32r.
11911 * configure.tgt: Mark m32r-*-elf* as obsolete.
11912 * MAINTAINERS: Mark m32k as obsolete.
11913 * m32r-rom.c: Obsolete file.
11914 * config/m32r/m32r.mt: Obsolete file.
11915 * config/m32r/tm-m32r.h: Obsolete file.
11916 * m32r-stub.c: Obsolete file.
11917 * m32r-tdep.c: Obsolete file.
11919 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11921 * NEWS: Mention that the z8k-zilog-none is obsolete.
11922 * MAINTAINERS: Mark z8k as obsolete.
11923 * configure.tgt: Obsolete the z8k-*-coff* target.
11924 * config/z8k/z8k.mt: Obsolete file.
11925 * config/z8k/tm-z8k.h: Obsolete file.
11926 * z8k-tdep.c: Obsolete file.
11928 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11930 * NEWS: Mention that the mn10200-elf is obsolete.
11931 * configure.tgt: Obsolete mn10200-*-* target.
11932 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11933 mention that the mn10200 is obsolete.
11934 * breakpoint.h: Ditto.
11935 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11936 * config/mn10200/mn10200.mt: Obsolete file.
11937 * config/mn10200/tm-mn10200.h: Obsolete file.
11938 * mn10200-tdep.c: Obsolete file.
11940 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11942 * MAINTAINERS: Mark h8500 as obsolete.
11943 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11944 * findvar.c (value_from_register): Ditto.
11945 * h8500-tdep.c: Mark file as obsolete.
11946 * config/h8500/h8500.mt: Ditto.
11947 * config/h8500/tm-h8500.h: Ditto.
11948 * NEWS: Mention that h8500 is obsolete.
11950 2003-02-04 David Carlton <carlton@math.stanford.edu>
11952 * objfiles.c (allocate_objfile): Always set name. Add comment at
11954 * jv-lang.c (get_dynamics_objfile): Add comment.
11956 2003-02-04 David Carlton <carlton@math.stanford.edu>
11958 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11959 * printcmd.c (build_address_symbolic): Replace uses of
11960 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11961 SYMBOL_NAME, and asm_demangle.
11964 2003-02-04 David Carlton <carlton@math.stanford.edu>
11966 * linespec.c (decode_compound): Extract code into
11968 (lookup_prefix_sym): New function.
11970 2003-02-04 David Carlton <carlton@math.stanford.edu>
11972 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11973 FLOAT_COERCION_BADNESS.
11974 * gdbtypes.c (rank_one_type): Replace all uses of
11975 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11977 2003-02-04 Jim Blandy <jimb@redhat.com>
11979 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11980 section, let dwarf_macinfo_section point to it, not
11983 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11985 Pointed out by Anton Blanchard <anton@samba.org>.
11986 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11987 (ppc_linux_at_sigtramp_return_path): Use it.
11989 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11991 * defs.h (streq): Add prototype.
11992 * utils.c (streq): New function.
11994 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11995 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11996 * mdebugread.c (new_symbol): Likewise.
11997 * stabsread.c (define_symbol): Likewise.
11998 * coffread.c (process_coff_symbol): Likewise.
11999 * dwarfread.c (new_symbol): Likewise.
12001 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12002 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12004 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12005 SYMBOL_INIT_DEMANGLED_NAME.
12006 * objfiles.c: Include "hashtab.h".
12007 (allocate_objfile): Call htab_set_functions_ex for the
12008 demangled_names_hash.
12009 (free_objfile): Call htab_delete for the demangled_names_hash.
12010 * objfiles.h (struct htab): Add declaration.
12011 (struct objfile): Add demangled_names_hash.
12012 * symfile.c: Include "hashtab.h".
12013 (reread_symbols): Call htab_delete for the demangled_names_hash.
12014 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12015 SYMBOL_NAME in the bcache.
12016 * symtab.c: Include "hashtab.h". Update comments.
12017 (create_demangled_names_hash, symbol_set_names): New functions.
12018 (symbol_find_demangled_name): New function, broken out from
12019 symbol_init_demangled_names.
12020 (symbol_init_demangled_names): Use it.
12021 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12022 (SYMBOL_SET_NAMES): New macro.
12023 (symbol_set_names): Add prototype.
12025 2003-02-03 Jim Blandy <jimb@redhat.com>
12027 Use a single, consistent representation for an empty minimal
12028 symbol table in an objfile.
12029 * objfiles.c (terminate_minimal_symbol_table): New function.
12030 (allocate_objfile): Call it.
12031 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12032 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
12034 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12035 objfile has minimal symbols, compare minimal_symbol_count to zero,
12036 instead of comparing msymbols with NULL.
12037 * objfiles.c (have_minimal_symbols): Same.
12038 * solib-sunos.c (solib_add_common_symbols): Call
12039 terminate_minimal_symbol_table.
12040 * symfile.c (reread_symbols): Same.
12042 2003-02-03 Kevin Buettner <kevinb@redhat.com>
12044 * s390-tdep.c (s390_address_class_type_flags)
12045 (s390_address_class_type_flags_to_name)
12046 (s390_address_class_name_to_type_flags): New functions.
12047 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12048 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12050 2003-02-03 Michael Snyder <msnyder@redhat.com>
12052 * arm-tdep.c: Fix spell-o in comment.
12054 2003-02-03 Michal Ludvig <mludvig@suse.cz>
12056 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12057 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
12058 error messages to contain BFD filename.
12060 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
12062 Fix PR gdb/742 gdb/743 gdb/877
12063 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12064 (do_mixed_source_and_assembly): Use
12065 make_cleanup_ui_out_tuple_begin_end and
12066 make_cleanup_ui_out_tuple_begin_end.
12067 (do_mixed_source_and_assembly): Ditto.
12068 * thread.c (do_captured_list_thread_ids): Ditto.
12069 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12070 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12071 ui_out_tuple_end): Delete prototypes.
12072 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12073 ui_out_list_end, ui_out_tuple_end): Delete.
12075 From Kevin Buettner <kevinb@redhat.com>:
12076 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
12077 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12078 (do_cleanup_table_end): New functions.
12079 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12080 Use cleanups to invoke_ui_out_tuple_end().
12081 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
12082 * cli/cli-setshow.c (cmd_show_list): Use
12083 make_cleanup_ui_out_tuple_begin_end.
12085 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12087 * frame.c (frame_unwind_register): New function.
12088 (frame_unwind_unsigned_register): Use.
12089 (frame_unwind_signed_register): Use.
12090 (frame_read_register): New function.
12091 * frame.h (frame_unwind_register): Declare.
12092 (frame_read_register): Declare.
12094 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12095 and frame_unwind_register instead of read_memory, write_register
12096 and deprecated_write_register_bytes.
12098 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12100 * frame.h: Note that namelen can be negative.
12101 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12104 * NEWS: Mention that the d10v's `regs' command is deprecated.
12105 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12106 (d10v_print_registers_info): New function.
12107 (show_regs): Call d10v_print_registers_info.
12108 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12110 2003-02-02 Mark Kettenis <kettenis@gnu.org>
12112 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12113 lost in the previous patch.
12115 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12117 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
12118 * stack.c (print_frame_info_base): Output complete FRAME tuple
12119 for synthesized frames.
12121 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12123 * mips-nat.c (zerobuf): Delete.
12124 (fetch_inferior_registers): Alloc local zerobuf.
12125 (fetch_core_registers): Alloc local zerobuf.
12126 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12127 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12128 * thread-db.c (thread_db_store_registers): Ditto.
12129 * sh-tdep.c (sh_do_register): Ditto.
12130 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12131 * remote-sim.c (gdbsim_store_register): Ditto.
12132 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12133 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12134 * monitor.c (monitor_supply_register): Ditto.
12135 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12136 * mips-nat.c (fetch_inferior_registers): Ditto.
12137 * m68klinux-nat.c (fetch_register): Ditto.
12138 * lynx-nat.c (fetch_inferior_registers): Ditto.
12139 (fetch_inferior_registers): Ditto.
12140 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12141 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12142 (hpux_thread_store_registers): Ditto.
12143 * hppah-nat.c (fetch_register): Ditto.
12144 * hppab-nat.c (fetch_register): Ditto.
12145 * hppa-tdep.c (pa_register_look_aside): Ditto.
12146 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12147 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12149 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12151 * gdbarch.sh: Explictly specify all method levels. When a
12152 variable with an empty level, provide a non-multi-arch default.
12153 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12154 * gdbarch.h: Re-generate.
12155 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12156 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12158 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12160 * defs.h (host_pointer_to_address): Delete declaration.
12161 (address_to_host_pointer): Delete declaration.
12162 * utils.c (host_pointer_to_address): Delete function.
12163 (address_to_host_pointer): Delete function.
12164 * procfs.c (procfs_address_to_host_pointer): New function.
12165 * procfs.c (proc_set_watchpoint): Use.
12166 (procfs_can_use_hw_breakpoint): Update comments.
12167 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12168 (som_solib_add): Use.
12169 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12170 * hppa-tdep.c (unwind_command): Use.
12172 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12174 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12177 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12178 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12179 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12180 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12181 (define_symbol): Update.
12182 * symfile.c (generic_load): Remove references to nindy.
12183 * symtab.c: Remove references to nindy.
12185 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12187 * infcmd.c (print_float_info): Delete code conditional on
12189 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12190 * config/m68k/nm-apollo68b.h: Ditto.
12191 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12192 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12193 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12195 2003-02-01 Mark Kettenis <kettenis@gnu.org>
12197 * config/i386/tm-i386os9k.h: Removed.
12199 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12200 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12201 they're identical to i[3456]86-*-sysv* now.
12202 * config/i386/i386v32.mh: Removed.
12203 * config/i386/xm-i386v32.h: Removed.
12204 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12206 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12208 * config/i386/i386dgux.mh: Removed.
12209 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12211 * configure.in: Fix typo.
12212 * configure: Regenerated.
12214 2003-01-31 David Carlton <carlton@math.stanford.edu>
12216 * dwarf2read.c (dwarf2_locate_sections): Set
12217 dwarf_ranges_section.
12219 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12221 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12222 * utils.c: Update comments documenting legitimate uses of PTR.
12224 * utils.c: Re-indent.
12226 * config/djgpp/fnchange.lst: Delete nindy files.
12227 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12228 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12229 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12230 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12231 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12232 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12233 * Makefile.in (init.c): Remove nindy references.
12234 (saber_gdb): Delete rule.
12235 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12236 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12238 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12239 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12240 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12241 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12242 nindy-share/stop.h.
12243 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12244 * saber.suppress: Delete file.
12246 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
12248 * dbxread.c (stabs_data): New static variable.
12249 (fill_symbuf): Support an in-memory buffer for stabs data.
12250 (stabs_seek): New function.
12251 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12252 (read_ofile_symtab): Use stabs_seek.
12253 (elfstab_build_psymtabs): Take an asection* instead of
12254 an offset and size. Relocate the stabs data if necessary.
12255 Save the section* for dbx_psymtab_to_symtab.
12256 * dwarf2read.c: Add section variables for each debug section.
12257 (dwarf2_locate_sections): Fill them in.
12258 (dwarf2_read_section): Take an asection* argument.
12259 Relocate the section contents if necessary.
12260 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12261 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12262 it to dwarf2_read_section.
12263 (dwarf2_build_frame_info): Update callers.
12264 * elfread.c (elf_symfile_read): Update call to
12265 elfstab_build_psymtabs.
12266 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12267 (DBX_STAB_SECTION): New macro.
12268 * stabsread.h (elfstab_build_psymtabs): Update prototype.
12269 * symfile.c (symfile_dummy_outputs): New function.
12270 (symfile_relocate_debug_section): New function.
12271 * symfile.h (symfile_relocate_debug_section): Add prototype.
12273 2003-01-31 Richard Henderson <rth@redhat.com>
12275 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12276 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12277 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12278 * alpha-tdep.c (alpha_register_name): Add "unique".
12279 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12280 (ALPHA_UNIQUE_REGNUM): New.
12281 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12283 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12285 * README: Remove reference to Ericsson 1800 monitor.
12286 * Makefile.in (remote-es.o): Delete rule.
12287 (ALLDEPFILES): Delete remote-es.c.
12288 * remote-es.c: Delete file.
12289 * config/m68k/es1800.mt: Delete file.
12290 * config/djgpp/fnchange.lst: Update.
12291 * configure.tgt: Delete m68*-ericsson-* target.
12293 2003-01-31 Adam Fedor <fedor@gnu.org>
12295 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12296 Remove duplicate/shadowing variable of same name.
12298 2003-01-30 Jim Blandy <jimb@redhat.com>
12300 * symfile.c (find_separate_debug_file): Assert that the objfile's
12301 directory name we compute ends with a slash, and then assume that
12302 that's so everywhere we use it.
12304 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
12306 * valops.c (value_assign): Flush frame cache after stores to memory
12309 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12311 * Makefile.in (mon960-rom.o): Delete rule.
12312 * mon960-rom.c: Delete file.
12314 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12316 * d10v-tdep.c: Include "frame-unwind.h".
12317 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12319 (next_addr, uses_frame): Delete.
12320 (struct d10v_unwind_cache): Define.
12321 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12322 Use info instead of next_addr and uses_frame globals.
12323 (d10v_frame_init_saved_regs): Delete function.
12324 (d10v_init_extra_frame_info): Delete function.
12325 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12326 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12327 init_frame_pc or frame_saved_pc.
12328 (d10v_pop_frame): Delete function.
12329 (do_d10v_pop_frame): Delete function.
12330 (d10v_frame_chain): Delete function.
12331 (d10v_frame_chain_valid): Delete function.
12332 (d10v_frame_pc_unwind): New function.
12333 (d10v_frame_id_unwind): New function.
12334 (saved_regs_unwinder): New function.
12335 (d10v_frame_register_unwind): New function.
12336 (d10v_frame_pop): New function.
12337 (d10v_frame_unwind): New variable.
12338 (d10v_frame_p): New function.
12339 (d10v_frame_saved_pc): Delete function.
12340 * Makefile.in (d10v-tdep.o): Update dependencies.
12342 2003-01-30 J. Brobecker <brobecker@gnat.com>
12344 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12345 causing some regressions due to a change in the default value
12348 2003-01-29 Richard Henderson <rth@redhat.com>
12349 Elena Zannoni <ezannoni@redhat.com>
12350 Daniel Jacobowitz <drow@mvista.com>
12353 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
12355 (RANGES_SECTION): New.
12356 (dwarf_ranges_buffer): New variable.
12357 (struct comp_unit_head): Add member "die".
12358 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12359 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12360 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12361 (dwarf2_locate_sections): Likewise.
12362 (dwarf2_build_psymtabs): Read .debug_ranges.
12363 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12364 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12365 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12366 Look for DW_AT_ranges and return the bounding box.
12368 2003-01-29 Brian Ford <ford@vss.fsi.com>
12370 * win32-nat.c (cygwin_pid): Removed as unused.
12371 (child_attach): Try fall back to Cygwin pid.
12373 2003-01-29 Jim Blandy <jimb@redhat.com>
12375 * objfiles.h (struct objfile): Doc fix.
12377 2003-01-29 Andrew Cagney <ac131313@redhat.com>
12379 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12380 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12381 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12382 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12383 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12384 (FRAME_SAVED_PC): Change to a function with predicate.
12385 * gdbarch.h, gdbarch.c: Re-generate.
12387 2003-01-28 Andrew Cagney <ac131313@redhat.com>
12389 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12391 * complaints.c (complain): Delete function.
12392 * complaints.h (struct deprecated_complaint): Delete definition.
12393 (complain): Delete declaration.
12395 2003-01-28 Kevin Buettner <kevinb@redhat.com>
12397 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12400 2003-01-27 Andrew Cagney <ac131313@redhat.com>
12402 * sentinel-frame.h, sentinel-frame.c: New files.
12403 * Makefile.in (frame.o): Update dependencies.
12404 (SFILES): Add sentinel-frame.c.
12405 (sentinel_frame_h): Define.
12406 (COMMON_OBS): Add sentinel-frame.o.
12407 (sentinel-frame.o): Specify dependencies.
12408 * frame.c: Include "sentinel-frame.h".
12409 (frame_register_unwind): Rewrite assuming that there is always a a
12411 (frame_register, generic_unwind_get_saved_register): Ditto.
12412 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12413 (create_sentinel_frame, unwind_to_current_frame): New functions.
12414 (get_current_frame): Rewrite using create_sentinel_frame and
12415 unwind_to_current_frame. When possible, always create a frame.
12416 (create_new_frame): Set next to the sentinel frame.
12417 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12418 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12419 ID cache when necessary.
12420 (frame_saved_regs_id_unwind): Use frame_relative_level.
12421 (deprecated_generic_get_saved_register): Use frame_relative_level,
12422 get_frame_saved_regs, get_frame_pc, get_frame_base and
12424 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12427 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12429 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12431 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12433 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12434 (maintenance_set_profile_cmd): Use error () instead of warning ().
12436 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12438 * configure.in: Check that -pg works if using --enable-profiling.
12439 Check for monstartup and _mcleanup regardless of --enable-profiling.
12440 * maint.c: Check for monstartup and _mcleanup before using them.
12441 * config.in: Regenerated.
12442 * configure: Regenerated.
12444 2003-01-24 Nick Clifton <nickc@redhat.com>
12446 * Add sh2e support:
12448 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12450 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12451 (sh2e_show_regs): New.
12452 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12453 * config/sh/tm-sh.h: Added sh2e to comments.
12455 2003-01-23 Jim Blandy <jimb@redhat.com>
12457 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12458 symbols found)" message here; we haven't checked for a separate
12459 debug info file yet, so we don't know yet.
12460 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12461 we've looked everywhere. Also, there's no need to print a special
12462 message when we're loading the separate debug info file: the one
12463 symbol_file_add prints is fine.
12465 2003-01-23 Alexander Larsson <alexl@redhat.com>
12466 Jim Blandy <jimb@redhat.com>
12468 Add support for executables whose debug info has been separated
12469 out into a separate file, leaving only a link behind.
12470 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12471 and separate_debug_objfile_backlink.
12472 (put_objfile_before): New declaration.
12473 * symfile.c: #include "filenames.h".
12474 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12475 debug info in a separate file, read that, too. Save the addrs
12476 argument, so we can use it again to read the separated debug info;
12477 syms_from_objfile modifies the table we pass it.
12478 (reread_symbols): After re-reading an objfile, call
12479 reread_separate_symbols to refresh its separate debug info
12480 objfile, if it has one.
12481 (reread_separate_symbols, find_separate_debug_file,
12482 get_debug_link_info, separate_debug_file_exists): New functions.
12483 (debug_file_directory): New global var.
12484 (_initialize_symfile): Initialize debug_file_directory, and
12485 provide the new `set debug-file-directory' command to let the user
12487 * objfiles.c (free_objfile): If this objfile has its debug info in
12488 a separate objfile, free that one too. If this is itself a
12489 separate debug info objfile, clear our parent's backlink.
12490 (put_objfile_before): New function.
12491 * utils.c (gnu_debuglink_crc32): New function.
12492 * defs.h (gnu_debuglink_crc32): New declaration.
12493 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12494 * configure.in: Handle --with-separate-debug-dir config option.
12495 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12496 * acconfig.h (DEBUGDIR): New macro.
12497 * configure, aclocal.m4, config.in: Regenerated.
12499 2003-01-22 Jim Blandy <jimb@redhat.com>
12501 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12502 like the old symbol_file_add, but taking new arguments: you can
12503 now pass in either a `struct section_addr_info' list to say where
12504 each section is loaded, or a `struct section_offsets' table. Pass
12505 these new arguments through to syms_from_objfile as appropriate.
12506 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
12507 with the appropriate quiescent values for the new arguments.
12509 * symfile.c: #include "gdb_assert.h".
12510 (syms_from_objfile): Add the ability to pass in a section offset
12511 table directly, as an alternative to the section_addr_info table.
12512 Document arguments better.
12513 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12514 * symfile.h (syms_from_objfile): Update declaration.
12515 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12517 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12519 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
12521 Original patch by Tom Tromey <tromey@cygnus.com> and
12522 Jason Molenda <jmolenda@apple.com>.
12523 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12524 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12525 * NEWS: Mention profiling.
12526 * configure.in (--enable-gdbtk): Fix typo.
12527 (--enable-profiling): New. Set PROFILE_CFLAGS.
12528 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12530 (profiling_state): New variable.
12531 (mcleanup_wrapper): New function.
12532 (_initialize_maint): Remove NOTYET, fix call to
12533 add_setshow_boolean_cmd for "maint set profile".
12534 * configure: Regenerated.
12536 2003-01-21 Martin M. Hunt <hunt@redhat.com>
12538 * Makefile.in (install-gdbtk): Install PNG images too.
12540 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12542 * exec.c (text_start): Delete global variable.
12543 (exec_file_attach): Make text_start local to the function.
12544 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12545 * valops.c (hand_function_call): Delete code that handles
12546 BEFORE_TEXT_END and AFTER_TEXT_END.
12547 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12548 of CALL_DUMMY_LOCATION.
12549 * gdbarch.c: Regenerate.
12550 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12551 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12552 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12553 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12554 (text_end): Delete extern declaration.
12556 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12558 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12559 * blockframe.c (backtrace_below_main): Move to "frame.c".
12560 (frame_chain_valid): Delete check for backtrace_below_main.
12561 (_initialize_blockframe): Delete initialization, move ``set
12562 backtrace-below-main'' command to "frame.c".
12563 (do_flush_frames_sfunc): Delete function.
12564 * frame.c: Include "command.h" and "gdbcmd.h".
12565 (frame_type_from_pc): New function.
12566 (create_new_frame): Use frame_type_from_pc.
12567 (legacy_get_prev_frame): New function.
12568 (get_prev_frame): Rewrite. When an old style frame, call
12569 legacy_get_prev_frame. Otherwize, unwind the PC first.
12570 (_initialize_frame): Add ``set backtrace-below-main'' command.
12571 * Makefile.in (frame.o): Update dependencies.
12573 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12575 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12576 DEPRECATED_REGISTERS_INFO.
12578 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12580 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12581 Maintainers'. Update `Various Maintainers'.
12583 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12585 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12586 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12587 Suppress actual parameters when `-'.
12588 * gdbarch.h, gdbarch.c: Regenerate.
12590 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12592 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12593 code handling dummy frames.
12595 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12597 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12598 (struct frame_unwind): Add field pop.
12599 * frame.h (frame_pop): Declare.
12600 * frame.c (frame_saved_regs_pop): New function.
12601 (trad_frame_unwinder): Add frame_saved_regs_pop.
12602 (frame_pop): New function.
12603 * dummy-frame.c (dummy_frame_pop): New function.
12604 (discard_innermost_dummy): New function.
12605 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12606 (dummy_frame_unwind): Add dummy_frame_pop.
12607 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12608 * valops.c (hand_function_call): Ditto.
12609 * stack.c (return_command): Ditto.
12611 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12613 * cris-tdep.c: Fix function declaration indentation.
12614 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12615 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12616 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12617 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12618 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12619 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12621 2003-01-18 Michael Chastain <mec@shout.net>
12623 * README (Unpacking and Installation -- quick overview):
12624 Warn against ".../gdb-5.3/gdb/configure".
12626 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12628 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12629 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12630 (struct frame_unwind): Declare opaque.
12631 (dummy_frame_p): Declare function.
12632 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12633 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12634 * dummy-frame.c: Include "frame-unwind.h".
12635 (dummy_frame_p): New function.
12636 (dummy_frame_unwind): New variable.
12637 * frame.c: Include "frame-unwind.h".
12638 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12639 to use the new unwind field.
12640 (set_unwind_by_pc): Delete function.
12641 (create_new_frame, get_prev_frame): Set unwind field using
12642 frame_unwind_find_by_pc.
12643 (trad_frame_unwind, trad_frame_unwinder): New variables.
12644 * frame.h (trad_frame_unwind): Declare variable.
12645 (frame_id_unwind_ftype): Delete declaration.
12646 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12647 (struct frame_unwind): Declare opaque.
12648 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12649 register_unwind with a single unwind pointer.
12650 * frame-unwind.h, frame-unwind.c: New files.
12651 * Makefile.in (SFILES): Add frame-unwind.c.
12652 (frame_unwind_h): Define.
12653 (COMMON_OBS): Add frame-unwind.o.
12654 (frame-unwind.o): Specify dependencies.
12655 (frame.o, dummy-frame.o): Update dependencies.
12657 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12659 * ada-valprint.c: Eliminate PTR.
12660 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12661 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12662 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12663 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12664 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12665 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12666 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
12668 2003-01-17 Andrew Cagney <ac131313@redhat.com>
12670 * main.c (captured_main): Don't use PTR.
12671 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12672 * gdbtypes.c (lookup_primitive_typename): Ditto.
12673 (lookup_struct_elt_type): Ditto.
12674 * f-valprint.c (info_common_command): Ditto.
12675 (list_all_visible_commons): Ditto.
12676 * jv-typeprint.c (java_type_print_base): Ditto.
12678 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12679 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12680 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12681 i386-interix-nat.c and i386-interix-tdep.c. Rename
12682 m68klinux-nat.c and m68klinux-tdep.c. Rename
12683 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12684 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12685 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12686 * main.c (captured_main): Use xfree, not free.
12688 2003-01-16 Andrew Cagney <ac131313@redhat.com>
12690 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12691 ID back using a parameter.
12692 * frame.c (frame_id_unwind): Update call.
12693 (frame_saved_regs_id_unwind): Update.
12694 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12695 * dummy-frame.h (struct frame_id): Add opaque declaration.
12696 (dummy_frame_id_unwind): Update declaration.
12698 2003-01-15 Andrew Cagney <ac131313@redhat.com>
12700 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12702 2003-01-15 Stephen P. Smith <ischis2@cox.net>
12704 * MAINTAINERS (Stephen P. Smith): Updated email address.
12706 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
12709 * breakpoint.c (until_break_command): Add new argument. Use it to
12710 decide whether to stop only at the current frame or not.
12711 * breakpoint.h (until_break_command): Update prototype.
12712 * infcmd.c (until_command): Add new argument to until_break_command
12714 (advance_command): New function.
12715 (_initialize_infcmd): Update help string for 'until' command.
12716 Add new 'advance' command.
12718 2003-01-14 David Carlton <carlton@math.stanford.edu>
12720 * linespec.c (decode_line_1): Normalize comments.
12721 (set_flags): Ditto.
12722 (locate_first_half): Ditto.
12723 (decode_compound): Ditto.
12724 (symtab_from_filename): Ditto.
12725 (decode_all_digits): Ditto.
12726 (decode_dollar): Ditto.
12727 (find_methods): Ditto.
12728 (find_toplevel_char): Ditto.
12730 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12732 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12733 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12734 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12735 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12736 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12737 * language.c, language.h, m32r-tdep.c: Update copyright.
12738 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12739 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12740 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12741 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12742 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12743 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12745 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12747 * stabsread.h (process_later, resolve_cfront_continuation):
12749 Update copyright years.
12750 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12751 Update copyright year.
12752 * dbxread.c(struct cont_elem): Obsolete.
12753 (process_later, process_now): Obsolete functions.
12754 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12755 Update copyright year.
12756 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12757 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12758 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12759 (parse_partial_symbols): Obsolete cfront support.
12761 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12763 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12764 read_cfront_baseclasses, read_cfront_member_functions,
12765 resolve_cfront_continuation,read_cfront_static_fields,
12766 copy_cfront_struct_fields): Obsolete functions.
12767 (define_symbol, read_one_struct_field): Obsolete cfront support.
12768 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12769 Update Copyright year.
12771 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12773 * stack.c (print_frame_info, print_stack_frame_base_stub,
12774 print_stack_frame_base, show_and_print_stack_frame_stub,
12775 show_and_print_stack_frame, print_only_stack_frame_stub,
12776 print_only_stack_frame): Delete functions.
12777 (print_stack_frame_stub): Call print_frame_info instead of
12778 print_frame_info_base.
12779 (print_frame_info_base): Rename to print_frame_info.
12780 (backtrace_command_1): Call print_frame_info, instead of
12781 print_frame_info_base.
12782 (current_frame_command): Call print_stack_frame, instead of
12783 print_only_stack_frame.
12784 (frame_command): Call print_stack_frame, instead of
12785 show_and_print_stack_frame.
12786 (up_command): Ditto.
12787 (down_command): Ditto.
12788 * frame.h (print_only_stack_frame): Delete prototype.
12789 * infrun.c (normal_stop): Call print_stack_frame, instead of
12790 show_and_print_stack_frame.
12791 * thread.c (info_threads_command): Call print_stack_frame, instead
12792 of print_only_stack_frame.
12794 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12796 * README (Graphical interface to GDB): Update URL. Point at
12799 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12802 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12804 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12807 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12809 * thread-db.c (attach_thread): Prototype.
12810 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12811 thread information (ti), and valid flags (th_valid, ti_valid).
12812 (attach_thread): Move target_pid_to_str call to after the thread
12813 is added to GDB's list. Initialize the cache.
12814 (thread_get_info_callback, thread_db_map_id2thr)
12815 (thread_db_get_info): New functions.
12816 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12817 (thread_db_store_registers, thread_db_thread_alive)
12818 (thread_db_get_thread_local_address): Use them.
12819 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12820 of calling error() for threads in unknown state.
12822 (clear_lwpid_callback): New function.
12823 (thread_db_resume): Use it to clear the cache.
12825 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12827 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12828 (resume_callback): Remove dead code.
12830 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12832 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12834 * gdbarch.h, gdbarch.c: Regenerate.
12835 * stack.c (frame_info): Only initialize the saved registers when
12836 FRAME_INIT_SAVED_REGS_P.
12837 * frame.c (frame_saved_regs_register_unwind): Assert
12838 FRAME_INIT_SAVED_REGS_P.
12839 (deprecated_generic_get_saved_register): Ditto.
12841 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12843 * source.c (openp): Squelch warning about "filename".
12845 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12847 * source.c (openp): If the file does not exist don't necessarily
12850 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12853 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12854 (integer_types_same_name_p): New function.
12855 (rank_one_type): Use it.
12856 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12858 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12860 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12862 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12863 * configure.in: Add --with-sysroot.
12864 * configure: Regenerated.
12865 * main.c (gdb_sysroot): New variable.
12866 (captured_main): Initialize gdb_sysroot.
12867 * defs.h (gdb_sysroot): New extern declaration.
12868 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12870 2003-01-12 Michael Chastain <mec@shout.net>
12872 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12874 2003-01-12 Michael Chastain <mec@shout.net>
12876 * top.c (print_gdb_version): Bump copyright year to 2003.
12878 2003-01-12 David Carlton <carlton@bactrian.org>
12880 * linespec.c (symtab_from_filename): Rename variable 's' to
12883 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12885 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12887 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12889 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12891 * d10v-tdep.c: Include "gdb_assert.h".
12892 (d10v_store_return_value): Rewrite to match current interface.
12893 (d10v_extract_struct_value_address): Ditto.
12894 (d10v_extract_return_value): Ditto.
12895 (d10v_gdbarch_init): Set store_restore_value,
12896 extract_struct_value_address and extract_return_value.
12898 2003-01-12 J. Brobecker <brobecker@gnat.com>
12900 * hpread.c (set_namestring): New procedure replacing the
12901 SET_NAMESTRING macro.
12902 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12903 by calls to set_namestring.
12905 2003-01-11 J. Brobecker <brobecker@gnat.com>
12907 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12908 a compilation warning.
12909 (hpread_process_one_debug_symbol): Likewise.
12911 2003-01-10 David Carlton <carlton@math.stanford.edu>
12913 * linespec.c (decode_line_1): Rename variable 's' to
12915 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12916 (decode_dollar): Ditto.
12917 (decode_variable): Ditto.
12918 (symbol_found): Ditto.
12920 2003-01-09 Michael Chastain <mec@shout.net>
12922 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12924 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
12926 * win32-nat.c (set_process_privilege): New function.
12927 (child_attach): Call set_process_privilege() to enable the
12928 SE_DEBUG_NAME user privilege if available in process token.
12930 2003-01-10 J. Brobecker <brobecker@gnat.com>
12932 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12933 compilation error in the previous revision.
12935 2003-01-09 David Carlton <carlton@math.stanford.edu>
12937 * linespec.c: Update copyright.
12939 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
12941 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12942 than inferior_ptid.
12943 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12945 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12947 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12949 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12950 (frame_saved_regs_zalloc): Update.
12951 (frame_saved_regs_register_unwind): Update.
12952 (create_new_frame): Update.
12953 (get_prev_frame): Update.
12954 (frame_extra_info_zalloc): Update.
12955 (deprecated_get_frame_saved_regs): Update.
12956 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12957 * cris-tdep.c: Update comment.
12959 * somsolib.h: Fix function indentation.
12960 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12961 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12962 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12963 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12964 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12966 * infrun.c (follow_fork): Use ISO C definition.
12967 * expprint.c (print_subexp): Use xfree instead of free.
12968 * charset.c: Include "gdb_string.h" instead of <string.h>.
12969 (register_iconv_charsets): Use ISO C definition.
12970 (host_charset, target_charset): Ditto.
12971 * Makefile.in (charset.o): Update dependencies.
12972 (mi-cmd-env.o): Update dependencies.
12974 2003-01-08 Andrew Cagney <cagney@redhat.com>
12976 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12979 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12981 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12982 build directories. Save edited gdb output in Mbuild.log. If a
12983 build fails, remove any final GDB executable.
12985 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12987 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12988 replacing hex constants with function names and stripping leading
12989 file name directory prefixes.
12991 2003-01-08 Andrew Cagney <cagney@redhat.com>
12993 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12996 2003-01-08 David Carlton <carlton@math.stanford.edu>
12998 * linespec.c (decode_line_1): Move code into decode_variable.
12999 (decode_variable): New function.
13001 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13003 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13005 2003-01-08 Andrew Cagney <cagney@redhat.com>
13007 * cris-tdep.c (cris_frame_init_saved_regs): Use
13008 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13010 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13011 (sh64_nofp_frame_init_saved_regs): Ditto.
13012 (sh_fp_frame_init_saved_regs): Ditto.
13013 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13014 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13015 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13016 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13018 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
13020 * minsyms.c (lookup_minimal_symbol): Update comment.
13021 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13022 (lookup_minimal_symbol_solib_trampoline): Likewise.
13024 2003-01-08 Andrew Cagney <cagney@redhat.com>
13026 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13027 frame_relative_level.
13029 * alpha-tdep.c: Use get_frame_extra_info.
13030 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13031 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13032 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13033 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13035 * alpha-tdep.c: Use get_next_frame.
13036 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13037 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13038 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13039 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13040 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13041 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13042 * xstormy16-tdep.c: Ditto.
13044 2003-01-07 Andrew Cagney <cagney@redhat.com>
13046 * alpha-tdep.c: Use get_frame_base.
13047 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13048 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13049 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13050 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13051 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13052 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13053 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13054 * config/sparc/tm-sparc.h: Ditto.
13056 2003-01-07 Andrew Cagney <cagney@redhat.com>
13058 * frame.c (deprecated_get_frame_context): New function.
13059 (deprecated_set_frame_context): New function.
13060 * frame.h (deprecated_get_frame_context): Declare.
13061 (deprecated_set_frame_context): Declare.
13062 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13063 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
13065 2003-01-07 Andrew Cagney <cagney@redhat.com>
13067 * frame.c (deprecated_set_frame_next_hack): New function.
13068 (deprecated_set_frame_prev_hack): New function.
13069 * frame.h (deprecated_set_frame_next_hack): Declare.
13070 (deprecated_set_frame_prev_hack): Declare.
13071 * mcore-tdep.c (analyze_dummy_frame): Use
13072 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13073 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13075 2003-01-07 David Carlton <carlton@math.stanford.edu>
13077 * linespec.c (decode_line_1): Move code into decode_dollar.
13078 (decode_dollar): New function.
13080 2003-01-07 Andrew Cagney <cagney@redhat.com>
13082 * arm-tdep.c (arm_init_extra_frame_info): Use
13083 deprecated_update_frame_base_hack.
13084 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13085 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13086 (fix_frame_pointer): Ditto.
13087 (mn10300_analyze_prologue): Ditto.
13089 2003-01-07 Andrew Cagney <cagney@redhat.com>
13091 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13092 extra_info using frame_extra_info_zalloc.
13093 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13094 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13095 (sh64_init_extra_frame_info): Ditto.
13096 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13097 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13098 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13099 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13100 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13101 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13102 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13103 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13104 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13105 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13106 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13107 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13109 * mn10300-tdep.c (analyze_dummy_frame): Use
13110 deprecated_set_frame_extra_info_hack.
13111 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13113 2003-01-07 J. Brobecker <brobecker@gnat.com>
13115 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13116 class is not scText. These do not define "real" procedures.
13117 (parse_partial_symbols): Likewise.
13119 2003-01-06 Michael Snyder <msnyder@redhat.com>
13121 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13123 2003-01-06 Andrew Cagney <ac131313@redhat.com>
13125 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13126 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13127 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13128 deprecated_frame_xmalloc_with_cleanup.
13129 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13130 deprecated_frame_xmalloc.
13131 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13132 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13134 2003-01-06 Andrew Cagney <cagney@redhat.com>
13136 * x86-64-linux-tdep.c: Include "osabi.h".
13137 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13139 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13141 2003-01-06 Andrew Cagney <cagney@redhat.com>
13143 * MAINTAINERS (Target Instruction Set Architectures): Update
13144 arm-elf. Can be built with -Werror, has been multiarched.
13146 * value.h (unpack_long): Make buffer parameter constant.
13147 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13148 * scm-lang.h (scm_parse): Ditto.
13149 * defs.h (extract_typed_address, extract_address): Ditto.
13150 (extract_long_unsigned_integer): Ditto.
13151 * inferior.h (unsigned_pointer_to_address): Ditto.
13152 (signed_pointer_to_address): Ditto.
13153 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13154 * gdbarch.h, gdbarch.c: Regenerate.
13155 * findvar.c (extract_long_unsigned_integer): Update.
13156 (extract_address): Update.
13157 (extract_typed_address): Update.
13158 (unsigned_pointer_to_address): Update.
13159 * values.c (unpack_long): Update.
13160 (unpack_double): Update.
13161 (unpack_pointer): Update.
13162 (unpack_field_as_long): Update.
13163 * d10v-tdep.c (d10v_pointer_to_address): Update.
13164 * avr-tdep.c (avr_pointer_to_address): Update.
13165 * scm-lang.c (scm_unpack): Update.
13166 * findvar.c (signed_pointer_to_address): Update.
13168 2003-01-06 Michal Ludvig <mludvig@suse.cz>
13170 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
13171 since it is in i386-tdep.c.
13173 2003-01-06 J. Brobecker <brobecker@gnat.com>
13175 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13176 failure introduced in the previous change.
13178 2003-01-05 Michael Chastain <mec@shout.net>
13180 * README: Remove references to deleted remote-*.c files:
13181 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13182 remote-nrom.c, remote-os9k.c, remote-udi.c.
13184 2003-01-05 Mark Kettenis <kettenis@gnu.org>
13186 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13187 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13188 i386_get_longjmp_target.
13190 2003-01-05 Andrew Cagney <ac131313@redhat.com>
13192 * arm-tdep.c (prologue_cache): Change to a pointer.
13193 (_initialize_arm_tdep): Allocate prologue_cache.
13194 (check_prologue_cache): Update.
13195 (save_prologue_cache): Update.
13196 (arm_gdbarch_init): Update.
13198 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13200 * stabsread.c (update_method_name_from_physname): Call complaint()
13203 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13205 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13206 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13207 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13209 * blockframe.c: Include "gdbcmd.h" and "command.h".
13210 (backtrace_below_main): New variable.
13211 (file_frame_chain_valid, func_frame_chain_valid)
13212 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13213 (generic_func_frame_chain_valid): Remove functions.
13214 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13215 (_initialize_blockframe): New function.
13216 * Makefile.in (blockframe.o): Update dependencies.
13217 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13218 comment. Call frame_chain_valid ().
13219 * frame.h: Remove old prototypes. Add prototype for
13220 frame_chain_valid and update comments to match.
13221 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13222 Remove old comment.
13223 * gdbarch.h: Regenerated.
13224 * gdbarch.c: Regenerated.
13226 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13227 set_gdbarch_frame_chain_valid.
13228 * avr-tdep.c (avr_gdbarch_init): Likewise.
13229 * cris-tdep.c (cris_gdbarch_init): Likewise.
13230 * frv-tdep.c (frv_gdbarch_init): Likewise.
13231 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13232 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13233 (i386_nw_init_abi): Likewise.
13234 (i386_gdbarch_init): Likewise.
13235 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13237 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13238 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13239 * mips-tdep.c (mips_gdbarch_init): Likewise.
13240 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13241 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13242 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13243 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13244 * s390-tdep.c (s390_gdbarch_init): Likewise.
13245 * sh-tdep.c (sh_gdbarch_init): Likewise.
13246 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13247 * v850-tdep.c (v850_gdbarch_init): Likewise.
13248 * vax-tdep.c (vax_gdbarch_init): Likewise.
13249 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13251 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13252 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13253 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13254 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13255 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13256 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13257 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13258 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13260 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13262 * Makefile.in (acconfig_h): Remove incorrect macro.
13263 (config_h): Define.
13264 (osabi.o): Update dependencies.
13265 * configure.tgt: Set gdb_osabi based on target triplet.
13266 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13267 * configure: Regenerated.
13268 * config.in: Regenerated.
13269 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13270 (GDB_OSABI_DEFAULT): Define if not already defined.
13271 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13272 (set_osabi_string): New variables.
13273 (gdbarch_register_osabi): Add new OS ABI to
13274 gdb_osabi_available_names.
13275 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13276 (set_osabi, show_osabi): New functions.
13277 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13279 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13281 * arch-utils.c (gdbarch_info_init): Set osabi to
13282 GDB_OSABI_UNINITIALIZED.
13283 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13284 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13285 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13286 * gdbarch.c: Regenerated.
13287 * gdbarch.h: Regenerated.
13288 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13290 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13291 * osabi.h (enum gdb_osabi): Move to defs.h.
13292 (gdbarch_init_osabi): Update prototype.
13293 * defs.h (enum gdb_osabi): Moved here.
13294 * Makefile.in: Update dependencies.
13296 * alpha-tdep.h: Don't include "osabi.h".
13297 (struct gdbarch_tdep): Remove osabi member.
13298 * alpha-tdep.c: Include "osabi.h".
13299 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13300 iterate over arches. Update call to gdbarch_init_osabi.
13301 (alpha_dump_tdep): Don't dump osabi.
13302 * alpha-linux-tdep.c: Include "osabi.h".
13303 * alpha-osf1-tdep.c: Include "osabi.h".
13304 * alphafbsd-tdep.c: Include "osabi.h".
13305 * alphanbsd-tdep.c: Include "osabi.h".
13307 * arm-tdep.h: Don't include "osabi.h".
13308 (struct gdbarch_tdep): Remove osabi member.
13309 * arm-tdep.c: Include "osabi.h".
13310 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13311 iterate over arches. Update call to gdbarch_init_osabi.
13312 (arm_dump_tdep): Don't dump osabi.
13313 * arm-linux-tdep.c: Include "osabi.h".
13314 * armnbsd-tdep.c: Include "osabi.h".
13316 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13317 Update call to gdbarch_init_osabi.
13319 * i386-tdep.h: Don't include "osabi.h".
13320 (struct gdbarch_tdep): Remove osabi member.
13321 * i386-tdep.c: Include "osabi.h".
13322 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13323 iterate over arches. Update call to gdbarch_init_osabi.
13324 (i386_dump_tdep): Don't dump osabi.
13325 * i386-linux-tdep.c: Include "osabi.h".
13326 * i386-sol2-tdep.c: Include "osabi.h".
13327 * i386bsd-tdep.c: Include "osabi.h".
13328 * i386gnu-tdep.c: Include "osabi.h".
13329 * i386ly-tdep.c: Include "osabi.h".
13330 * i386nbsd-tdep.c: Include "osabi.h".
13331 * i386obsd-tdep.c: Include "osabi.h".
13333 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13334 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13335 check osabi when iterating over arches. Update call to
13336 gdbarch_init_osabi.
13337 (mips_dump_tdep): Don't dump osabi.
13339 * ns32k-tdep.h: Don't include "osabi.h".
13340 (struct gdbarch_tdep): Remove.
13341 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13342 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13343 allocate tdep. Update call to gdbarch_init_osabi.
13344 (ns32k_dump_tdep): Remove.
13345 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13346 * ns32knbsd-tdep.c: Include "osabi.h".
13348 * ppc-tdep.h: Don't include "osabi.h".
13349 (struct gdbarch_tdep): Remove osabi member.
13350 * rs6000-tdep.c: Include "osabi.h".
13351 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13352 osabi when iterating over arches. Update call to
13353 gdbarch_init_osabi.
13354 (rs6000_dump_tdep): Don't dump osabi.
13355 * ppc-linux-tdep.c: Include "osabi.h".
13356 * ppcnbsd-tdep.c: Include "osabi.h".
13358 * sh-tdep.h: Don't include "osabi.h".
13359 (struct gdbarch_tdep): Remove osabi member.
13360 * sh-tdep.c: Include "osabi.h".
13361 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13362 iterate over arches. Update call to gdbarch_init_osabi.
13363 (sh_dump_tdep): Don't dump osabi.
13364 * shnbsd-tdep.c: Include "osabi.h".
13366 * sparc-tdep.c: Include "osabi.h".
13367 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13368 iterate over arches. Update call to gdbarch_init_osabi.
13369 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13372 * vax-tdep.h: Don't include "osabi.h".
13373 (struct gdbarch_tdep): Remove.
13374 * vax-tdep.c: Include "osabi.h".
13375 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13376 iterate over arches. Don't allocate tdep. Update call
13377 to gdbarch_init_osabi.
13378 (vax_dump_tdep): Remove.
13379 (_initialize_vax_tdep): Update call to gdbarch_register.
13381 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13383 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13385 (breakpoint_re_set_one): Don't fetch the value for a disabled
13388 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13390 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13391 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13392 (COERCE_FLOAT_TO_DOUBLE): Remove.
13393 * gdbarch.c: Regenerate.
13394 * gdbarch.h: Regenerate.
13395 * Makefile.in: Remove value_h from gdbarch_h.
13396 * valops.c (coerce_float_to_double): New variable.
13397 (default_coerce_float_to_double): Remove.
13398 (standard_coerce_float_to_double): Remove.
13399 (value_arg_coerce): Use coerce_float_to_double.
13400 (_initialize_valops): Add "set coerce-float-to-double".
13401 * value.h (default_coerce_float_to_double): Remove prototype.
13402 (standard_coerce_float_to_double): Remove prototype.
13404 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13406 * mdebugread.c (parse_symbol): Likewise.
13407 * stabsread.c (define_symbol): Mark all functions as prototyped.
13409 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13410 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13411 set_gdbarch_coerce_float_to_double.
13412 * arm-tdep.c (arm_gdbarch_init): Likewise.
13413 * frv-tdep.c (frv_gdbarch_init): Likewise.
13414 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13415 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13416 * mips-tdep.c (mips_gdbarch_init): Likewise.
13417 (mips_coerce_float_to_double): Remove.
13418 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13419 (rs6000_coerce_float_to_double): Remove.
13420 * s390-tdep.c (s390_gdbarch_init): Likewise.
13421 * sh-tdep.c (sh_gdbarch_init): Likewise.
13422 (sh_coerce_float_to_double): Remove.
13423 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13424 (sparc_coerce_float_to_double): Remove.
13425 * v850-tdep.c (v850_gdbarch_init): Likewise.
13426 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13427 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13428 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13429 (hppa_coerce_float_to_double): Remove prototype.
13430 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13432 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13434 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13436 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13438 Suggested by Stewart Brown <sb24@avaya.com>:
13439 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13440 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13441 (c_type_print_varspec_suffix): Likewise.
13443 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13445 * configure.in: Don't set and AC_SUBST SUBDIRS.
13446 * configure: Regenerated.
13448 * configure.in: Remove code dealing with shared libraries.
13449 * Makefile.in: Remove HLDFLAGS and HLDENV.
13450 * configure: Regenerated.
13452 2003-01-04 Andrew Cagney <ac131313@redhat.com>
13454 * frame.c (deprecated_frame_xmalloc): New function.
13455 (deprecated_set_frame_saved_regs_hack): New function.
13456 (deprecated_set_frame_extra_info_hack): New function.
13457 * frame.h (deprecated_frame_xmalloc): Declare.
13458 (deprecated_set_frame_saved_regs_hack): Declare.
13459 (deprecated_set_frame_extra_info_hack): Declare.
13461 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13463 * configure.in: Move code that provides the --enable-gdbtk option
13464 right after the code that handles the --enable-tui option, and
13465 polish it somewhat.
13466 * configure: Regenerated.
13468 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13469 AC_CHECK_FUNCS and remove the old check for pread64.
13470 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13471 * acconfig.h (_GNU_SOURCE): Add.
13472 (HAVE_PREAD64): Remove.
13473 * configure, aclocal.m4, config.in: Regenerated.
13475 2003-01-03 Andrew Cagney <ac131313@redhat.com>
13477 * alpha-tdep.c: Use get_frame_saved_regs.
13478 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13479 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13480 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13481 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13482 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13484 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13486 * configure.in: Remove all use of the SUBDIRS variable; add
13487 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13488 code providing the --enable-multi-ice option, and move it right in
13489 front of the code that checks whether gdbserver is supported.
13491 * configure: Regenerated.
13492 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13495 2003-01-03 Andrew Cagney <cagney@redhat.com>
13497 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13498 * avr-tdep.c, cris-tdep.c: Ditto.
13499 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13500 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13502 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13504 * configure.in: Remove --enable-netrom option.
13505 * configure: Regenerated.
13507 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13509 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13510 declaration for `struct re_pattern_buffer' instead.
13511 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13513 2003-01-03 J. Brobecker <brobecker@gnat.com>
13515 * mdebugread.c (parse_symbol): Count until the stEnd matching
13516 the structure name.
13518 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13520 * configure.in: Remove --with-cpu option.
13521 subscripts. Remove evil changequotes here.
13522 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13523 * config.in, configure: Regenerated.
13525 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13526 * configure.in: Cleanup section that sources GDB and BFD configure
13527 subscripts. Remove evil changequotes here.
13528 * config.in, configure: Regenerated.
13530 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13532 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13533 frame accessor methods.
13534 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13535 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13536 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13537 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13538 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13539 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13540 * z8k-tdep.c: Ditto.
13542 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13544 * configure.in: Remove UI_OUT configuration code.
13545 * ada-lang.c: Update assuming UI_OUT is always true.
13546 * Makefile.in (UIOUT_CFLAGS): Remove.
13547 * configure: Regenerated.
13548 * TODO: Remove blurb about elimination of -DUI_OUT.
13550 * configure.in: Move code that provides the --enable-gdbcli,
13551 --enable-gdbmi options right before the code that handles the
13552 --enable-tui option. Polish a bit.
13553 * configure: Regenerated.
13555 * configure.in: Rewrite check for GNU regex and the
13556 --without-included regex option, and move it into the "Checks for
13557 library functions" section. This makes us use the system regex
13558 again by default on systems with version 2 of the GNU C library.
13559 This was apparently broken.
13560 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13561 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13562 * config.in, configure: Regenerated.
13564 * configure.in: Move code that provides the --enable-tui option
13565 before the "Checks for libraries" section. Polish the code
13566 somewhat and set need_curses to yes if we build the TUI. Rewrite
13567 code that looks for a library providing termcap functionality to
13568 match more closely what's done in the Readline library, and move
13569 it into to the "Checks for libraries" section.
13570 * configure: Regenerated.
13571 * Makefile.in (TERMCAP): Remove variable.
13572 * config/i386/go32.mh (TERMCAP): Remove variable.
13574 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13576 * MAINTAINERS: Mention gdb_mbuild.sh.
13577 * gdb_mbuild.sh: Rewrite.
13579 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13581 * configure.in: Fix typo in last change.
13582 * config.in, configure: Regenerated.
13584 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13586 * valarith.c (value_binop): Delete obsolete code and comments.
13587 * configure.host: Ditto.
13588 * buildsym.h (make_blockvector): Ditto.
13589 * buildsym.c (make_blockvector): Ditto.
13590 * defs.h (enum language): Ditto.
13591 (chill_demangle): Ditto.
13592 * elfread.c (elf_symtab_read): Ditto.
13593 * dwarfread.c (CHILL_PRODUCER): Ditto.
13594 (set_cu_language): Ditto.
13595 (handle_producer): Ditto.
13596 * expprint.c (print_subexp): Ditto.
13597 * gdbtypes.c (chill_varying_type): Ditto.
13598 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13599 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13600 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13601 (chill_varying_type): Ditto.
13602 * language.h (_LANG_chill): Ditto.
13603 * language.c (binop_result_type, integral_type): Ditto.
13604 (character_type, string_type, structured_type): Ditto.
13605 (lang_bool_type, binop_type_check): Ditto.
13606 * stabsread.h (os9k_stabs): Ditto.
13607 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13608 (define_symbol, read_type, read_struct_fields): Ditto.
13609 (read_array_type, read_enum_type, read_huge_number): Ditto.
13610 (read_range_type, start_stabs): Ditto.
13611 * symfile.c (init_filename_language_table): Ditto.
13612 (add_psymbol_with_dem_name_to_list): Ditto.
13613 * symtab.c (symbol_init_language_specific): Ditto.
13614 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13615 * symtab.h (struct general_symbol_info): Ditto.
13616 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13617 * typeprint.c (typedef_print): Ditto.
13618 * utils.c (fprintf_symbol_filtered): Ditto.
13619 * valops.c (value_cast, search_struct_field, value_slice): Delete
13621 (varying_to_slice): Delete function.
13622 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13623 (varying_to_slice): Delete declaration.
13624 * MAINTAINERS: Update.
13626 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13628 * configure.in: Reorganize "Checks for library functions section"
13629 a bit. Remove check for `btowc' and `isascii' functions.
13630 * configure: Regenerated.
13632 * acconfig.h (_MSE_INT_H): Remove.
13633 * configure.in: Create "Checks for header files" section, and move
13634 appropriate tests there. Don't check for objlist.h, wchar.h,
13635 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13636 misdetection fix. Also add "Checks for types", "Checks for
13637 compiler characteristics" and "Checks for library functions"
13639 * config.in, configure: Regenerated.
13641 * configure.in: Create "Checks for programs" section, and move
13642 appropriate tests there.
13644 2003-01-01 Mark Kettenis <kettenis@gnu.org>
13646 * configure.in: Create "Checks for libraries" section, and move
13647 appropriate tests there. Cleanup check for wctype in libw. Use
13648 AC_SEARCH_LIBS to see whether we need libsocket.
13649 * configure: Regenerated.
13651 For older changes see ChangeLog-2002
13657 version-control: never