1 2003-10-26 Mark Kettenis <kettenis@gnu.org>
3 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
4 * x86-64-tdep.c (x86_64_store_return_value): Use
5 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
7 Change register numbers to enumartion values.
8 * i386-tdep.h (enum i386_regnum): New.
9 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
10 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
11 I386_ST0_REGNUM): Remove defines.
12 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
13 I386_EDI_REGNUM): Remove defines.
15 2003-10-24 Andrew Cagney <cagney@redhat.com>
17 * target.c: Include "gdbcore.h".
18 (get_target_memory, get_target_memory_unsigned): New functions.
19 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
20 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
21 Use get_target_memory_unsigned.
22 * Makefile.in (target.o): Update dependencies.
24 2003-10-24 Andrew Cagney <cagney@redhat.com>
26 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
27 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
28 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
29 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
30 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
32 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
33 (can_run_code_for): Use the OO term "singleton".
35 2003-10-23 Andrew Cagney <cagney@redhat.com>
37 * Makefile.in (stack.o): Add $(regcache_h).
38 * stack.c: Include "regcache.h"
39 (return_command): Rewrite. Use get_frame_id and
40 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
41 about unhandled return-values.
42 * value.h (set_return_value): Delete declaration.
43 * values.c (set_return_value): Delete function.
45 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
47 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
48 (pseudo_regs): Add comment regarding register stack registers.
49 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
50 (floatformat_valid): New static routine.
51 (floatformat_ia64_ext): Add name field and set up is_valid routine
52 to floatformat_valid().
53 (examine_prologue): For the previous cfm, use
54 frame_unwind_register()
55 if the cfm is not stored in a register-stack register. Save the
56 previous cfm value in the prev_cfm field. Add debug output.
57 (ia64_frame_this_id): Use frame_id_build_special() to also register
58 the bsp. Add debug output.
59 (ia64_sigtramp_frame_this_id): Ditto.
60 (ia64_frame_prev_register): Look at cache saved_regs for a few more
61 registers and also add some checks for framelessness before accepting
62 current register values for fields such as return address. For cfm,
63 use the cached prev_cfm field if available. Add comment to explain
64 PSR logic. Add debug output.
65 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
66 as part of initialization.
67 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
68 calculated. Cache the bsp and cfm values.
69 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
70 instead of using ia64_frame_prev_register() which doesn't expect most
71 registers to be saved. The saved values for bsp and sp
72 can be taken from the cache. Add debug output.
73 (ia64_push_dummy_call): Use frame_id_build_special() to also register
76 2003-10-23 Jim Blandy <jimb@redhat.com>
78 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
79 architecture the current arch can run code for --- but not if it's
81 (can_run_code_for): New function.
83 2003-10-22 James E Wilson <wilson@specifixinc.com>
85 * MAINTAINERS: Move myself from paper trail section back to write
86 after approval section.
88 2003-10-22 Andrew Cagney <cagney@redhat.com>
91 * win32-nat.c: Include "exec.h".
92 * solib.c: Include "exec.h".
93 * target.h (build_section_table): Delete declaration.
94 * somsolib.c: Include "exec.h".
95 (exec_ops): Delete extern declaration.
96 * rs6000-nat.c: Update copyright. Include "exec.h".
97 (exec_ops): Delete extern declaration.
98 * pa64solib.c: Update copyright. Include "exec.h".
99 (exec_ops): Delete extern declaration.
100 * exec.c: Update copyright. Include "exec.h".
101 * corelow.c: Update dependencies. Include "exec.h".
102 * Makefile.in (exec_h): Define.
103 (exec.o, somsolib.o): Update dependencies.
104 (pa64solib.o, corelow.o): Update dependencies.
106 2003-10-22 Andrew Cagney <cagney@redhat.com>
108 * target.c: Include "gdb_assert.h" (target_read): Call
109 "target_read_partial", not "target_write_partial".
110 (default_read_partial, default_write_partial): New function.
111 (target_read_partial, target_write_partial): Simplify, assume that
112 there is always a read/write method.
113 (update_current_target, add_target): Always set "to_read_partial"
114 and "to_write_partial".
115 (target_write, target_read): Fail on a zero byte transfer.
116 * Makefile.in (target.o): Update dependencies.
117 * target.h: Update copyright date.
118 (target_object): Fix typo.
120 2003-10-22 Andrew Cagney <cagney@redhat.com>
122 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
123 multi-arch method, add "targ" parameter.
124 (struct target_ops): Declare.
125 * gdbarch.h, gdbarch.c: Re-generate.
126 * Makefile.in (c-valprint.o): Update dependencies.
127 * arch-utils.h: Update copyright.
128 (convert_from_func_ptr_addr_identity): Declare.
129 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
130 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
131 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
132 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
133 * infcall.c (find_function_addr, call_function_by_hand): Update.
134 * c-valprint.c: Include "target.h".
135 (print_function_pointer_address): Update.
137 2003-10-22 Andrew Cagney <cagney@redhat.com>
139 * target.c (target_close): New function.
140 (debug_to_close): Use "target_close".
141 (push_target): Use "target_close".
142 (unpush_target): Use "target_close".
143 (pop_target): Use "target_close".
144 * target.h (struct target_ops): Add "to_xclose".
145 (target_open): Delete macro. Move comment to "to_open".
146 (target_close): Replace macro with function that takes a target.
147 * top.c (quit_target): Pass "current_target" to "target_close".
149 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
151 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
152 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
153 * symtab.h (lookup_minimal_symbol_text): Update.
154 * breakpoint.c (create_overlay_event_breakpoint,
155 create_longjmp_breakpoint): Update callers.
156 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
157 * symtab.c (find_pc_sect_line): Ditto.
159 2003-10-21 Andrew Cagney <cagney@redhat.com>
161 * target.c (errno): Delete extern declaration.
163 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
165 * ia64-tdep.c: Change all occurrences of
166 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
167 (ia64_frame_prev_register): Minor whitespace change.
169 2003-10-20 Michael Chastain <mec@shout.net>
171 * config/djgpp/fnchange.lst: Add lines for:
172 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
173 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
174 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
175 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
176 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
177 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
178 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
180 2003-10-20 Andrew Cagney <cagney@redhat.com>
182 * values.c (register_value_being_returned): Update comments. Use
183 "gdbarch_return_value" when available.
184 (using_struct_return): Ditto.
185 (set_return_value): Ditto. Use "gdbarch_return_value" when
186 available.. Print a warning, and not an error, when an unhandled
187 return type is encountered.
188 * infcmd.c: Include "gdb_assert.h".
189 (print_return_value): When gdbarch_return_value_p, and using
190 struct return, assume that the value is not available.
191 * defs.h (return_value_convention): Define.
192 * gdbarch.sh (gdbarch_return_value): New predicate method.
193 * gdbarch.h, gdbarch.c: Re-generate
194 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
196 2003-10-20 Andrew Cagney <cagney@redhat.com>
198 * symtab.c: Replace "struct sec" with "struct bfd_section".
199 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
201 2003-10-19 Michael Chastain <mec@shout.net>
203 * config/djgpp/fnchange.lst: Add lines for:
204 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
205 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
206 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
208 2003-10-19 Mark Kettenis <kettenis@gnu.org>
210 * amd64fbsd-nat.c (fetch_inferior_registers,
211 store_inferior_registers): Remove functions.
212 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
214 2003-10-18 Mark Kettenis <kettenis@gnu.org>
216 Add NetBSD/amd64 native configuration:
217 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
218 * amd64nbsd-tdep.c: New file.
219 * amd64nbsd-nat.c: New file.
220 * amd64bsd-nat.c: New file.
221 * config/i386/nbsd64.mh: New file.
222 * config/i386/nbsd64.mt: New file.
223 * configure.host: Add x86_64-*-netbsd*.
224 * configure.tgt: Add x86_64-*-netbsd*.
225 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
227 * NEWS (New native configurations): Mention NetBSD/amd64.
229 2003-10-17 Michael Chastain <mec@shout.net>
231 * config/djgpp/fnchange.lst: Remove dead lines for:
232 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
233 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
234 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
235 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
236 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
237 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
238 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
239 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
240 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
241 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
242 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
243 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
244 gdb/config/sparc/tm-sparclite.h,
245 gdb/gdbtk/generic/ChangeLog-2001,
246 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
247 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
248 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
249 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
250 gdb/testsuite/gdb.mi/mi0-var-block.exp,
251 gdb/testsuite/gdb.mi/mi0-var-child.exp,
252 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
253 gdb/testsuite/gdb.mi/mi0-var-display.exp,
254 itcl/iwidgets3.0.0/demos/extfileselectionbox,
255 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
256 itcl/iwidgets3.0.0/demos/fileselectionbox,
257 itcl/iwidgets3.0.0/demos/fileselectiondialog,
258 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
259 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
260 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
261 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
262 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
263 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
264 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
265 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
266 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
267 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
268 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
269 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
270 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
271 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
272 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
273 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
274 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
275 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
276 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
277 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
278 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
279 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
280 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
281 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
282 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
283 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
284 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
285 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
286 itcl/iwidgets3.0.0/demos/html/shell.n.html,
287 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
288 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
289 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
290 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
291 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
292 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
293 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
294 itcl/iwidgets3.0.0/demos/scrolledcanvas,
295 itcl/iwidgets3.0.0/demos/scrolledframe,
296 itcl/iwidgets3.0.0/demos/scrolledhtml,
297 itcl/iwidgets3.0.0/demos/scrolledlistbox,
298 itcl/iwidgets3.0.0/demos/scrolledtext,
299 itcl/iwidgets3.0.0/demos/selectionbox,
300 itcl/iwidgets3.0.0/demos/selectiondialog,
301 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
302 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
303 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
304 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
305 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
306 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
307 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
308 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
309 itcl/iwidgets3.0.0/doc/scrolledframe.n,
310 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
311 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
312 itcl/iwidgets3.0.0/doc/scrolledtext.n,
313 itcl/iwidgets3.0.0/doc/selectionbox.n,
314 itcl/iwidgets3.0.0/doc/selectiondialog.n,
315 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
316 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
317 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
318 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
319 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
320 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
321 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
322 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
323 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
324 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
325 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
326 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
327 itcl/iwidgets3.0.0/generic/selectionbox.itk,
328 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
329 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
330 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
331 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
332 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
333 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
334 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
335 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
336 itcl/iwidgets3.0.0/tests/scrolledframe.test,
337 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
338 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
339 itcl/iwidgets3.0.0/tests/scrolledtext.test,
340 itcl/iwidgets3.0.0/tests/selectionbox.test,
341 itcl/iwidgets3.0.0/tests/selectiondialog.test,
342 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
343 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
344 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
345 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
346 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
347 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
348 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
349 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
350 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
351 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
352 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
353 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
354 tk/mac/tkMacProjects.sit.hqx.
356 2003-10-17 Andrew Cagney <cagney@redhat.com>
358 * target.c (target_section_by_addr): New function.
359 (do_xfer_memory): Use "target_section_by_addr".
360 * target.h (target_section_by_addr): Declare.
362 * target.h (struct target_ops): Add "to_read_partial" and
363 "to_write_partial", delete "to_query".
364 (target_read_partial, target_write_partial): Declare.
365 (target_read, target_write): Declare.
366 (target_query): Delete macro.
367 * target.c (target_read_partial): New function.
368 (target_write_partial, target_read, target_write): New function.
369 (update_current_target): Delete inheritance of "to_query". Add
370 comments about "to_read_partial" and "to_write_partial".
371 (debug_to_partial_read, debug_to_partial_write): New functions.
372 (debug_to_query): Delete function.
373 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
374 instead of "to_query".
375 * remote.c (remote_read_partial): Replace "remote_query".
376 (init_remote_ops): Set "to_read_partial" instead of "to_query".
377 (init_remote_async_ops): Ditto.
378 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
379 "target_read_partial" instead of "target_query".
380 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
381 Use "target_read_partial" instead of "target_query".
383 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
385 * frame.h (struct frame_id): Add new field: special_addr.
386 (frame_id_build_special): New prototype.
387 * frame.c (frame_id_build_special): New function.
388 (frame_id_build): Change to call frame_id_build_special().
389 (frame_id_eq): Change to also test special_addr field.
390 (frame_id_inner): Update comment.
392 2003-10-17 Andrew Cagney <cagney@redhat.com>
394 * target.c (update_current_target): Perform the target cleanup.
395 Put the target stack beneath the squashed "current_target".
396 (add_target): Delete disabled call to "cleanup_target".
397 (cleanup_target): Delete function.
398 (push_target, unpush_target): Do not call "cleanup_target".
400 2003-10-17 Andrew Cagney <cagney@redhat.com>
402 * target.c (target_stack): Change to a static target_ops.
403 (update_current_target): Walk the "struct target_ops" stack.
404 (pop_target, do_xfer_memory, target_info): Ditto.
405 (find_target_beneath): Ditto.
406 (push_target): Rewrite to use the "struct target_ops" stack.
407 (unpush_target): Ditto.
408 * target.h (struct target_stack_item): Delete definition.
409 (target_stack): Delete declaration.
410 (struct target_ops): Add field "beneath".
412 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
414 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
416 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
417 (h8300_examine_prologue): Use h8300_normal_mode flag
418 (h8300_gdbarch_init): Set architecture info for normal mode
420 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
422 * remote.c (remote_protocol_vcont): New variable.
423 (set_remote_protocol_vcont_packet_cmd): New function.
424 (show_remote_protocol_vcont_packet_cmd): New function.
425 (init_all_packet_configs): Handle remote_protocol_vcont.
426 (remote_vcont_probe): New function.
427 (remote_vcont_resume): New function.
428 (remote_resume): Use it.
429 (remote_async_resume): Call remote_resume.
430 (_initialize_remote): Add verbose-resume packet commands.
432 2003-10-16 Andrew Cagney <cagney@redhat.com>
434 * infrun.c (handle_inferior_event): Add comment about
435 "frame_id_inner" being too weak.
437 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
439 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
440 second parameter, which is always null. Remove
441 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
442 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
444 * somsolib.c (som_solib_create_inferior_hook,
445 som_solib_desire_dynamic_linker_symbols): Update callers.
446 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
448 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
450 * remote-m32r-sdi.c : New file, interface to m32r on-chip
451 debug interface, SDI (Scalable Debug Interface).
452 * NEWS: Mention m32r SDI protocol was supported.
453 * Makefile.in (remote-m32r-sdi.o): Add build rule.
454 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
456 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
458 * ia64-linux-tdep.c: Include gdbcore.h.
459 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
460 (ia64_linux_sigcontext_register_addr): Find the address of the
461 sigcontext area stored in the sigframe instead of using
462 a magic offset constant.
464 2003-10-15 Andrew Cagney <cagney@redhat.com>
466 * remote.c (remote_search): Delete function.
467 * target.h (target_search): Delete disabled macro.
468 (struct target_ops): Delete disabled field "to_search".
470 2003-10-14 Kevin Buettner <kevinb@redhat.com>
472 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
473 instead of deprecated_inside_entry_file().
475 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
477 * sh-tdep.c: Fix copy/paste hangover in comment.
478 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
480 (sh3e_sh4_extract_return_value): Ditto.
482 2003-10-13 Richard Henderson <rth@redhat.com>
484 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
485 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
486 match c_val_print a bit closer.
488 2003-10-13 Kevin Buettner <kevinb@redhat.com>
490 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
491 (frv_gdbarch_adjust_breakpoint_address): New function.
492 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
495 2003-10-13 Kevin Buettner <kevinb@redhat.com>
497 * breakpoint.h (struct breakpoint): Add new member
498 ``requested_address''.
499 * breakpoint.c (breakpoint_adjustment_warning)
500 (adjust_breakpoint_address): New static functions.
501 (print_it_typical): Issue warning if breakpoint's address is different
502 from its requested address.
503 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
504 (breakpoint_re_set_one): Set breakpoint's
505 ``requested_address'' field. Set ``address'' field to the
506 result of calling adjust_breakpoint_address() on the requested
509 2003-10-13 Kevin Buettner <kevinb@redhat.com>
511 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
512 * gdbarch.h, gdbarch.c: Regenerate.
514 2003-10-11 Mark Kettenis <kettenis@gnu.org>
516 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
519 * i386fbsd-tdep.c: New file.
520 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
521 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
522 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
524 (_initialize_i386fbsd_tdep): New function.
525 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
526 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
527 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
528 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
530 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
531 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
532 to initialize TDEP->sc_num_regs.
533 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
534 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
535 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
536 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
537 FreeBSD ELF OS/ABI's here.
538 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
539 (i386fbsd-tdep.o): New target.
540 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
541 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
543 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
544 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
545 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
546 in initialization of TDEP->sc_num_regs.
548 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
549 (x86_64_init_abi): Initialize regset_from_core_section if
552 * i386-tdep.c (i386_regset_from_core_section): New function.
553 (i386_gdbarch_init): Initialize regset_from_core_section if
555 * i386-tdep.h (i386_regset_from_core_section): New declaration.
557 * i386-tdep.h (struct regset): Declare opaque.
559 * gdbarch.sh (regset_from_core_section): New method.
560 (struct regset): Declare opaque.
561 * gdbarch.c, gdbarch.h: Regenerated.
563 2003-10-11 Alan Modra <amodra@bigpond.net.au>
565 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
566 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
567 Correct test for pc within section.
569 2003-10-11 Mark Kettenis <kettenis@gnu.org>
571 * gdbarch.sh: Remove trailing whitepsace from comments.
573 2003-10-08 Roland McGrath <roland@redhat.com>
575 * gcore.c (make_mem_sec): Function removed, folded into ...
576 (gcore_create_callback): ... here. To omit a section, clear its
577 SEC_LOAD bit rather than zeroing its size.
578 Omit read-only sections only if they correspond to a known disk file.
579 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
581 2003-10-10 Michael Snyder <msnyder@redhat.com>
583 * d10v-tdep.c: Fix typo in comment.
585 2003-10-10 Andrew Cagney <cagney@redhat.com>
587 * rs6000-tdep.c (e500_store_return_value): Delete function.
588 (e500_extract_return_value): Delete function.
589 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
590 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
591 "ppc_sysv_abi_restore_return_value" where applicable.
592 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
593 (ppc_sysv_abi_extract_return_value): Declare.
594 (ppc_sysv_abi_broken_store_return_value): Declare.
595 (ppc_sysv_abi_broken_extract_return_value): Declare.
596 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
597 * ppc-sysv-tdep.c (return_value_convention): Move definition to
599 (do_ppc_sysv_return_value): New function.
600 (ppc_sysv_abi_extract_return_value): New function.
601 (ppc_sysv_abi_store_return_value): New function.
602 (ppc_sysv_abi_broken_extract_return_value): New function.
603 (ppc_sysv_abi_broken_store_return_value): New function.
604 (ppc_sysv_abi_use_struct_convention): Call
605 do_ppc_sysv_return_value.
607 2003-10-10 J. Brobecker <brobecker@gnat.com>
609 * blockframe.c (inside_main_func): No longer use symbol_lookup()
610 to lookup the main function symbol.
612 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
614 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
616 (sh_push_dummy_call_fpu): Fix argument passing rules.
617 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
619 (sh3e_sh4_store_return_value): Ditto.
621 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
623 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
626 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
628 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
629 more readable code. Accomodate passing of bitfields.
631 2003-10-10 Andrew Cagney <cagney@redhat.com>
633 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
634 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
635 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
636 * ppc-sysv-tdep.c: Include "gdb_assert.h".
637 (ppc64_sysv_abi_push_dummy_call): New function.
638 (ppc64_sysv_abi_broken_push_dummy_call): New function.
639 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
640 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
642 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
644 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
646 * d10v-tdep.c: Ditto.
647 * h8300-tdep.c: Ditto.
648 * remote-e7000.c: Ditto.
649 * remote-hms.c: Ditto.
650 * ser-e7kpc.c: Ditto.
655 * sh64-tdep.c: Ditto.
658 * config/d10v/d10v.mt: Ditto.
659 * config/sh/embed.mt: Ditto.
660 * config/sh/linux.mt: Ditto.
661 * config/sh/tm-linux.h: Ditto.
662 * config/sh/tm-sh.h: Ditto.
663 * config/sh/wince.mt: Ditto.
665 2003-10-09 Andrew Cagney <cagney@redhat.com>
667 * ppc-tdep.h (struct type): Declare opaque.
668 * x86-64-tdep.h (struct regcache): Declare opaque.
669 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
672 2003-10-09 Andrew Cagney <cagney@redhat.com>
674 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
675 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
676 (SOFTWARE_SINGLE_STEP_P): Ditto.
677 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
678 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
679 (SOFTWARE_SINGLE_STEP_P): Ditto.
680 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
681 software_single_step to rs6000_software_single_step.
683 2003-10-09 Andrew Cagney <cagney@redhat.com>
685 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
687 2003-10-09 Michael Snyder <msnyder@redhat.com>
689 * frame.h: Fix typo in comment.
690 * dummy-frame.c: Fix typo in comment.
691 * d10v-tdep.c: Random whitespace/comment tweaks.
693 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
695 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
696 (sh_push_dummy_code): Delete function, it's only used for dummy calls
699 Based on input by Stephen Clarke (stephen.clarke@superh.com):
700 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
703 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
705 * remote-mips.c (mips_initialize): Remove unneeded call to
706 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
708 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
710 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
713 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
715 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
716 for any lwp we resume.
717 (running_callback): Add lwps that have pending status events
718 against them to be considered running.
720 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
722 * m32r-tdep.c : Include "dis-asm.h".
723 * Makefile.in (m32r-tdep.o): Update dependencies.
725 2003-10-06 J. Brobecker <brobecker@gnat.com>
727 * completer.h (get_gdb_completer_word_break_characters): Delete.
728 * completer.c: include language.h.
729 (gdb_completer_word_break_characters): Delete.
730 (get_gdb_completer_word_break_characters): Delete.
731 (location_completer): Use the word break characters of the current
733 (complete_line): Likewise.
734 (line_completion_function): Likewise.
735 (skip_quoted_chars): Likewise.
736 * Makefile.in (completer.o): Add dependency on language.h.
737 * top.c (init_main): Set the readline word break characters
738 to GDB's default word break characters.
740 2003-10-06 J. Brobecker <brobecker@gnat.com>
742 * language.h (language_defn): new field, la_word_break_characters.
743 * language.c (unknown_language_defn): Set new field to
744 default_word_break_characters.
745 (auto_language_defn): Likewise.
746 (local_language_defn): Likewise.
747 * ada-lang.c (ada_language_defn): Likewise.
748 * c-lang.c (c_language_defn): Likewise.
749 (cplus_language_defn): Likewise.
750 (asm_language_defn): Likewise.
751 (minimal_language_defn): Likewise.
752 * f-lang.c (f_language_defn): Likewise.
753 * jv-lang.c (java_language_defn): Likewise.
754 * m2-lang.c (m2_language_defn): Likewise.
755 * objc-lang.c (objc_language_defn): Likewise.
756 * p-lang.c (pascal_language_defn): Likewise.
757 * scm-lang.c (scm_language_defn): Likewise.
759 2003-10-06 Andrew Cagney <cagney@redhat.com>
761 * ppc-sysv-tdep.c: Re-indent.
763 2003-10-06 J. Brobecker <brobecker@gnat.com>
765 * language.h (default_word_break_characters): Add prototype.
766 * language.c (default_word_break_characters): New function.
768 2003-10-06 Andreas Schwab <schwab@suse.de>
770 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
773 2003-10-06 Andrew Cagney <cagney@redhat.com>
775 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
777 (z8k-tdep.o): Delete custom build rule.
779 2003-10-06 Andrew Cagney <cagney@redhat.com>
781 * Makefile.in: Update all dependencies.
783 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
784 No longer list PA as as obsolete candidate. List m32r as
785 broken instead of obsolete.
787 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
788 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
789 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
790 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
791 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
792 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
793 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
794 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
795 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
796 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
797 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
798 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
799 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
800 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
801 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
802 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
803 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
804 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
805 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
806 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
807 * config/z8k/z8k.mt: Ditto.
809 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
810 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
811 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
812 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
813 sparclite were removed.
814 * configure.host, configure.tgt: Remove corresponding tuples.
816 * breakpoint.c, breakpoint.h: Remove obsolete code.
817 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
818 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
819 * stabsread.h, xcoffread.c: Ditto.
821 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
822 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
823 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
824 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
826 2003-10-06 David Lecomber <dsl@sources.redhat.com>
828 * f-valprint.c: Reformatting
830 2003-10-06 Mark Kettenis <kettenis@gnu.org>
832 * x86-64-tdep.c: Remove duplicate comment.
834 * x86-64-tdep.c (x86_64_store_return_value): Don't use
835 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
836 names for return values. This fixes a bug since we looked at %rbx
839 2003-10-05 Mark Kettenis <kettenis@gnu.org>
841 * x86-64-tdep.c: Include "regset.h".
843 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
844 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
846 * i386-tdep.c: Include "regset.h".
847 (i386_supply_gregset): New function.
848 (i386_supply_fpregset): New function.
849 (i386_gdbarch_init): Initialze register set-related members of
851 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
852 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
854 2003-10-03 Andrew Cagney <cagney@redhat.com>
856 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
857 set extract_return_value, store_return_value and
858 use_struct_convention to ppc64_sysv_abi_extract_return_value,
859 ppc64_sysv_abi_store_return_value and
860 ppc64_sysv_abi_use_struct_convention.
861 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
862 (ppc64_sysv_abi_store_return_value): Declare.
863 (ppc64_sysv_abi_use_struct_convention): Declare.
864 * ppc-sysv-tdep.c (enum return_value_convention): Define.
865 (ppc64_sysv_abi_extract_return_value): New function.
866 (ppc64_sysv_abi_store_return_value): New function.
867 (ppc64_sysv_abi_use_struct_convention): New function.
868 (ppc64_sysv_abi_return_value): New function.
870 2003-10-03 Andrew Cagney <cagney@redhat.com>
872 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
873 convert a descriptor to a function when it's in the ".opd"
876 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
878 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
879 reg_size to keep GCC silent.
881 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
883 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
884 base for DW_EH_PE_textrel encodings.
885 (read_encoded_value): Add a DW_EH_PE_textrel case.
886 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
889 2003-10-03 Mark Kettenis <kettenis@gnu.org>
891 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
893 2003-10-02 Andrew Cagney <cagney@redhat.com>
895 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
897 * gdbarch.h, gdbarch.c: Re-generate.
898 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
899 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
900 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
901 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
902 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
903 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
904 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
905 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
906 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
907 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
908 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
909 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
910 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
911 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
912 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
913 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
915 2003-10-02 Jim Blandy <jimb@redhat.com>
917 * dwarf2read.c (struct die_info): Doc fix.
919 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
921 * sh-tdep.c: Running thru gdb_indent.sh.
923 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
925 * sh-tdep.c (sh_justify_value_in_reg): New function.
926 (sh_stack_allocsize): Ditto.
927 (flt_argreg_array): New array used for floating point argument
929 (sh_init_flt_argreg): New function.
930 (sh_next_flt_argreg): Ditto.
931 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
932 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
933 Fix argument passing strategy.
934 (sh_push_dummy_call_nofpu): Ditto.
936 2003-10-01 Andrew Cagney <cagney@redhat.com>
938 * value.h (register_value_being_returned): Declare. Replace
939 "value_being_returned".
940 * infcall.c (call_function_by_hand): Use
941 register_value_being_returned.
942 * infcmd.c (print_return_value): Call
943 "register_value_being_returned", handle struct return locally.
944 * values.c (register_value_being_returned): New function. Replace
945 "value_being_returned".
947 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
949 * linux-proc.c (linux_do_registers): New function.
950 (linux_make_note_section): Use linux_do_registers in case of
951 single threaded inferior programs.
953 2003-10-01 Andrew Cagney <cagney@redhat.com>
955 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
956 use STRUCT_ADDR. When not using "struct return convention", pass
957 "0" to "value_being_returned". Add FIXMEs.
958 * infcmd.c (print_return_value): Pass an explicit 0/1 to
959 value_being_returned. Add comments.
960 * values.c (value_being_returned): Add fixme.
961 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
962 (hppa_value_returned_from_stack): Add FIXME.
964 2003-09-30 David Carlton <carlton@kealia.com>
966 * dwarf2read.c (struct die_info): Add 'parent' field; replace
967 'has_children' and 'next' by 'child' and 'sibling'.
968 (read_comp_unit): Rework algorithm, breaking body into
969 read_die_and_children and read_die_and_siblings.
970 (read_die_and_children, read_die_and_siblings): New.
971 (read_full_die): Add 'has_children' argument; set it instead of
972 the die's 'has_children' field. Minor formatting cleanup.
973 (free_die_list): Use die->child and die->sibling instead of
975 (dump_die_list): Ditto.
976 (sibling_die): Use die->sibling.
977 (psymtab_to_symtab_1): Use die's 'child' field in place of its
978 'has_children' and 'next' fields.
979 (process_die, read_file_scope, read_func_scope)
980 (read_lexical_block_scope, read_structure_scope)
981 (read_enumeration, read_array_type, read_common_block)
982 (read_namespace, read_subroutine_type, dump_die): Ditto.
984 2003-09-30 Andrew Cagney <cagney@redhat.com>
986 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
989 2003-09-30 Andrew Cagney <cagney@redhat.com>
991 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
992 REGISTER_VIRTUAL_SIZE.
993 * gdbarch.h, gdbarch.c: Regenerate.
994 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
995 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
996 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
998 2003-09-29 Andrew Cagney <cagney@redhat.com>
1000 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1001 DEPRECATED_REGISTER_VIRTUAL_TYPE.
1002 * gdbarch.h, gdbarch.c: Regenerate.
1003 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1004 * sh64-tdep.c, sparc-tdep.c: Update.
1006 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1007 * remote-vxmips.c (vx_read_register): Ditto.
1008 * remote-vx68.c (vx_read_register): Ditto.
1009 * gnu-nat.c (inf_validate_procs): Ditto.
1011 2003-09-29 J. Brobecker <brobecker@gnat.com>
1013 * infcall.c (call_function_by_hand): Fix build failure
1014 introduced in the previous change to this file.
1016 2003-09-29 Andrew Cagney <cagney@redhat.com>
1018 * NEWS: Mention Objective-C.
1020 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
1022 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1023 test if the register has been saved on the stack.
1024 (arm_scan_prologue_cache): When analysing the instruction
1025 "str lr, [sp, #-4]", save the address where lr has been stored.
1027 2003-09-28 Andrew Cagney <cagney@redhat.com>
1029 * frame.c (frame_read_unsigned_register): Delete function.
1030 * frame.h (frame_read_unsigned_register): Delete declaration.
1031 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1032 get_frame_register_unsigned.
1033 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1034 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1035 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1037 * frame.h (frame_read_register): Delete declaration.
1038 * frame.c (frame_read_register): Delete function.
1039 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1040 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1041 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1042 * mips-tdep.c (mips_register_to_value): Ditto.
1043 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1044 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1046 * frame.c (frame_read_signed_register): Delete function.
1047 (frame_read_unsigned_register): Update comments.
1048 * frame.h (frame_read_signed_register): Delete declaration.
1049 * h8300-tdep.c (h8300_print_register): Use
1050 get_frame_register_signed.
1051 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1053 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1054 Rename VALUE_RETURNED_FROM_STACK.
1055 * infcmd.c (print_return_value): Update.
1056 * infcall.c (call_function_by_hand): Update.
1058 2003-09-28 Mark Kettenis <kettenis@gnu.org>
1060 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1061 regcache argument and reverse the order of the other two
1062 arguments. Remove local regcache variable. Determine
1063 architecture from REGCACHE. Update comments.
1064 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1065 reverse the order of the other two arguments. Remove local
1066 regcache variable. Determine architecture from REGCACHE. Update
1068 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1069 prototypes. Update comments.
1070 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1072 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1074 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1075 * i386-interix-nat.c (supply_fpregset): Update.
1076 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1077 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1078 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1079 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1080 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1082 * i386obsd-tdep.c (fetch_core_registers): Update.
1083 * i386v4-nat.c (supply_fpregset): Update.
1084 * x86-64-linux-nat.c (supply_fpregset): Update.
1085 * x86-64-linux-tdep.c (fetch_core_registers): Update.
1087 2003-09-27 Mark Kettenis <kettenis@gnu.org>
1089 * i386-tdep.h: Put opaque declarations in alphabetical
1090 order. Remove spurious whitespace.
1091 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1092 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1093 * i386-tdep.c (MM0_REGNUM): Remove define.
1094 (i386_mmx_regnum_p): Add gdbarch argument.
1095 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1096 Rewrite using new macro definitions for FPU/SSE registers.
1097 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1098 definitions from i387-tdep.h.
1099 (i386_register_name): Update.
1100 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1101 new macro definitions for FPU/SSE registers.
1102 (i386_extract_return_value): Determine whether floating-point
1103 registers are present by examining REGCACHE's architecture.
1104 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1105 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1107 (i386_register_type): Update.
1108 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1109 definitions for FPU registers. Use REGCACHE's architecture to
1110 determine the appropriate register numbers.
1111 (i386_pseudo_register_read, i386_pseudo_register_write,
1112 i386_register_reggroup_p): Update.
1113 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1115 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1116 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1117 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1118 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1119 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1120 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1122 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1123 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1124 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1125 definitions for FPU/SSE registers.
1126 (FXSAVE_MXCSR_ADDR): New define.
1127 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1129 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1130 (I387_ST0_REGNUM): Define.
1132 * regcache.h (get_regcache_arch): New prototype.
1133 * regcache.c (get_regcache_arch): New function.
1135 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1138 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1139 Initialize using ARRAY_SIZE.
1141 2003-09-27 Andrew Cagney <cagney@redhat.com>
1143 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1144 "init_frame_pc_default".
1145 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1146 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1147 * vax-tdep.c (vax_gdbarch_init): Update.
1148 * v850-tdep.c (v850_gdbarch_init): Update.
1149 * sh64-tdep.c (sh64_gdbarch_init): Update.
1150 * s390-tdep.c (s390_gdbarch_init): Update.
1151 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1152 * mcore-tdep.c (mcore_gdbarch_init): Update.
1153 * h8300-tdep.c (h8300_gdbarch_init): Update.
1154 * cris-tdep.c (cris_gdbarch_init): Update.
1155 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1157 2003-09-26 Mark Kettenis <kettenis@gnu.org>
1159 * regset.h: New file.
1160 * Makefile.in (regset_h): Add.
1162 2003-09-25 Andrew Cagney <cagney@redhat.com>
1164 * frame.h (deprecated_frame_saved_regs): Rename
1165 get_frame_saved_regs.
1166 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1167 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1168 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1169 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1170 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1172 2003-09-25 Andrew Cagney <cagney@redhat.com>
1174 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1175 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1177 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1178 arm*-*-* do not use the new frame code.
1180 2003-09-25 David Carlton <carlton@kealia.com>
1182 * c-exp.y: Remove 'register' declarations.
1183 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1185 2003-09-25 David Carlton <carlton@kealia.com>
1187 * c-exp.y: Include cp-support.h. Add qualified_type.
1188 (yylex): Delete nested type hack; add comments.
1189 * cp-namespace.c (cp_lookup_nested_type): New function.
1190 * cp-support.h: Declare cp_lookup_nested_type.
1191 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1192 instead of value_struct_elt_for_reference.
1193 * valops.c: Include cp-support.h.
1194 (value_aggregate_elt): New function.
1195 (value_namespace_elt): Ditto.
1196 (value_struct_elt_for_reference): Make static.
1197 * value.h: Delete declaration of value_struct_elt_for_reference;
1198 add declaration for value_aggregate_elt.
1199 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1202 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
1204 * stack.c: Include "reggroups.h".
1205 (frame_info): Only display registers in all_reggroup.
1206 * Makefile.in (stack.o): Update dependencies.
1208 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1210 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1211 "add ip, sp #n" in the prologue.
1212 (arm_scan_prologue): Ditto.
1214 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1216 * MAINTAINERS (write after approval): Add myself.
1218 2003-09-25 Andreas Schwab <schwab@suse.de>
1220 * m68k-tdep.c: Include "dwarf2-frame.h".
1221 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1222 * Makefile.in (m68k-tdep.o): Update dependencies.
1224 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
1226 * sh-tdep.c (struct frame_extra_info): Remove.
1227 (struct sh_frame_cache): New structure.
1228 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1229 (GET_TARGET_REG): Ditto but target register.
1230 (GET_PUSHED_REG): Remove.
1231 (IS_MOV_ARG_TO_REG): New macro.
1232 (IS_MOV_ARG_TO_IND_R14): New macro.
1233 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1234 (IS_MOVW_PCREL_TO_REG): New macro.
1235 (IS_MOVL_PCREL_TO_REG): New macro.
1236 (IS_SUB_REG_FROM_SP): New macro.
1237 (IS_ARG_MOV): Remove.
1238 (IS_MOV_TO_R14): Remove.
1239 (IS_RESTORE_FP): New macro.
1240 (IS_RTS): New macro.
1241 (IS_LDS): New macro.
1242 (IS_MOV_FP_SP): New macro.
1243 (IS_ADD_REG_TO_FP): New macro.
1244 (IS_ADD_IMM_FP): New macro.
1245 (sh_skip_prologue_hard_way): Remove.
1246 (sh_saved_pc_after_call): Remove.
1247 (sh_frame_chain): Remove.
1248 (sh_find_callers_reg): Remove.
1249 (sh_nofp_frame_init_saved_regs): Remove.
1250 (sh_fp_frame_init_saved_regs): Remove.
1251 (sh_init_extra_frame_info): Remove.
1252 (sh_analyze_prologue): New function.
1253 (sh_skip_prologue): Remove deprecated code. Rely on new function
1254 sh_analyze_prologue when after_prologue fails.
1255 (sh_frame_saved_pc): Remove.
1256 (sh_alloc_frame_cache): New function.
1257 (sh_frame_cache): Ditto.
1258 (sh_frame_prev_register): Ditto.
1259 (sh_frame_this_id): Ditto.
1260 (sh_frame_unwind): New structure defining the heuristic frame
1262 (sh_frame_sniffer): New function.
1263 (sh_unwind_sp): Ditto.
1264 (sh_unwind_pc): Ditto.
1265 (sh_unwind_dummy_id): Ditto.
1266 (sh_frame_base_address): Ditto.
1267 (sh_frame_base): New structure defining new frame base code.
1268 (sh_in_function_epilogue_p): New function.
1269 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1270 code and to call all new code instead. Initialize dwarf2 and
1271 heuristic frame sniffer.
1273 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1275 * parser-defs.h (struct exp_descriptor): New definition, containing
1276 language-specific info for printing, prefixifying, dumping, and
1277 evaluating expressions.
1278 (exp_descriptor_standard): Declare new variable.
1279 (print_subexp): Make global and declare here (from expprint.c).
1280 (dump_subexp): Ditto.
1281 (dump_subexp_body_standard): Declare.
1282 (operator_length_standard): Declare.
1283 (op_name_standard): Declare.
1284 (print_subexp): Declare.
1285 (print_subexp_standard): Declare.
1287 * language.h (struct language_defn): Add la_exp_desc field to hold
1288 pointer to table for language-specific operators.
1289 Remove evaluate_exp field, which is now in struct exp_descriptor.
1291 * parse.c (operator_length): Move most code to new
1292 operator_length_standard function. Use language-specific information.
1293 (operator_length_standard): New function taking most code from
1295 (exp_descriptor_standard): New constant.
1297 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
1298 and OP_EXTENDED_LAST.
1300 * expprint.c (print_subexp): Use language-specific print_subexp.
1301 Make global; remove static declaration.
1302 Move most code to print_subexp_standard.
1303 (print_subexp_standard): New function, containing code formerly in
1305 (op_name): Add expression to argument signature.
1306 Use langauge-specific op_name.
1307 Move most code to op_name_standard.
1308 (op_name_standard): New function, containing code formerly in op_name.
1309 (dump_subexp): Use new version of op_name function.
1310 Use language-specific dump_subexp_body, and move most existing code to
1311 dump_subexp_body_standard.
1312 (dump_raw_expression): Use new op_name interface.
1313 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1314 (dump_subexp_body_standard): New function, containing code formerly
1315 in dump_subexp_body.
1317 * language.c (unknown_language): Add default la_exp_desc field and
1318 remove evaluate_exp field.
1319 (auto_language): Ditto.
1320 (local_language): Ditto.
1321 * f-lang.c (f_language_defn): Ditto.
1322 * c-lang.c (c_language_defn): Ditto.
1323 (cplus_language_defn): Ditto.
1324 (asm_language_defn): Ditto.
1325 (minimal_language_defn): Ditto.
1326 * p-lang.c (pascal_language_defn): Ditto.
1327 * m2-lang.c (m2_language_defn): Ditto.
1328 * objc-lang.c (objc_language_defn): Ditto.
1330 * jv-lang.c (exp_descriptor_java): New variable, containing
1331 Java-specific expression evaluator.
1332 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1334 * scm-lang.c (exp_descriptor_scm): New variable, containing
1335 Scheme-specific expression evaluator.
1336 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1338 * objc-lang.c (print_object_command): Take evaluate_exp from the
1341 * Makefile.in (eval.o): Add dependency on parser-defs.h.
1343 * eval.c: Include parser-defs.h for the full declaration of
1345 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
1347 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1349 * parser-defs.h (operator_length): Declare.
1351 * parse.c (length_of_subexp): Use operator_length to get operator
1352 lengths and arities for operators.
1353 Move most code to new operator_length function.
1354 (operator_length): New function absorbing most code from
1356 (prefixify_subexp): Remove large case and use operator_length instead.
1357 (parse_exp_1): Use renamings:
1358 dump_prefix_expression => dump_raw_expression and
1359 dump_postfix_expression => dump_prefix_expression.
1361 * expression.h (dump_prefix_expression): Rename to ...
1362 (dump_raw_expression): New name.
1363 (dump_postfix_expression): Rename to ...
1364 (dump_prefix_expression): New name.
1366 * expprint.c (dump_subexp): Make global. Add comment.
1367 Move most existing code to dump_subexp_body.
1368 (dump_subexp_body): New function.
1369 (dump_prefix_expression): Rename to dump_raw_expression.
1370 Remove attempt to print the expression via print_expression: it can't
1371 work before the expression is prefixified.
1372 (dump_raw_expression): Renamed from dump_prefix_expression.
1373 (dump_postfix_expression): Rename to dump_prefix_expression, since
1374 that's what it does.
1375 Remove 'note' parameter, since this routine must be used on
1376 prefixified expression.
1377 (dump_prefix_expression): Renamed from dump_postfix_expression.
1379 2003-09-22 Jim Blandy <jimb@redhat.com>
1381 * dwarf2read.c (read_array_type): When building the type for an
1382 array of unspecified length, make sure to choose the upper bound
1383 so that the array's total length comes out to be zero --- that's
1384 how we represent such arrays.
1386 2003-09-22 Michael Chastain <mec@shout.net>
1388 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1390 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1392 * top.c (quit_force): Fix indirect call to quit_target so
1393 a struct qt_args pointer is passed.
1395 2003-09-22 Andrew Cagney <cagney@redhat.com>
1397 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1398 * arch-utils.c (init_frame_pc_noop): Delete function.
1399 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1401 * mips-tdep.c (mips_gdbarch_init): Ditto.
1402 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1403 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1405 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1406 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1408 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1410 2003-09-22 Anthony Green <green@redhat.com>
1412 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1415 2003-09-20 Andrew Cagney <cagney@redhat.com>
1417 * breakpoint.c: Eliminate ARGSUSED.
1418 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1419 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1420 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1421 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1422 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1423 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1424 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1425 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1426 * wince.c, remote-vx.c: Ditto.
1428 * cli/cli-script.c: Remove "register" attributes.
1429 * config/pa/tm-hppa.h: Ditto.
1430 * cli/cli-decode.c: Ditto.
1431 * cli/cli-cmds.c: Ditto.
1433 2003-09-19 Andrew Cagney <cagney@redhat.com>
1435 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1436 DEPRECATED_NPC_REGNUM.
1437 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1439 2003-09-19 Christopher Faylor <cgf@redhat.com>
1441 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1443 2003-09-19 Jim Blandy <jimb@redhat.com>
1445 * macrotab.c (macro_include): Use the correct comparison to find
1446 the appropriate place for this inclusion in the list.
1448 2003-09-19 Andrew Cagney <cagney@redhat.com>
1450 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1451 (DEPRECATED_HPUX_TEXT_END): Define.
1452 (deprecated_hpux_text_end): Declare.
1453 (struct target_ops): Declare opaque.
1454 * hppah-nat.c (text_end): Make static.
1455 (deprecated_hpux_text_end): New function.
1456 * exec.c (text_end): Delete global variable.
1457 (NEED_TEXT_START_END): Do not define.
1458 (exec_file_attach): Replace code computing "text_end" code with
1459 call to DEPRECATED_HPUX_TEXT_END.
1461 2003-09-19 Andrew Cagney <cagney@redhat.com>
1463 * utils.c (align_up, align_down): New functions.
1464 * defs.h (align_up, align_down): Declare.
1465 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1466 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1468 (round_up, round_down): Delete functions.
1469 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1471 (ROUND_DOWN, ROUND_UP): Delete macros.
1472 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1473 * h8300-tdep.c: Replace "round_up" and "round_down" with
1474 "align_up" and "align_down".
1475 (round_up, round_down): Delete macros.
1476 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1478 (ROUND_UP, ROUND_DOWN): Delete macros.
1480 2003-09-18 J. Brobecker <brobecker@gnat.com>
1482 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1483 hard-coded constant. Use the proper machine name instead.
1485 2003-09-17 Andrew Cagney <cagney@redhat.com>
1487 * sparc-tdep.c (legacy_register_name): Delete function.
1488 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1489 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1490 * infcmd.c (gdb_register_name): Delete variable.
1491 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1492 REGISTER_NAME and "tm.h".
1493 * gdbarch.h, gdbarch.c: Regenerate.
1494 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1495 REGISTER_NAMES in comments.
1496 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1497 * m68klinux-nat.c (regmap): Ditto.
1499 2003-09-17 Jim Blandy <jimb@redhat.com>
1501 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1503 2003-09-17 Andrew Cagney <cagney@redhat.com>
1505 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1506 (ppcnbsd_init_abi): Set "use_struct_convention" to
1507 "ppcnbsd_use_struct_convention".
1509 2003-09-17 Mark Kettenis <kettenis@gnu.org>
1511 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1512 * gdbarch.h, gdbarch.c: Regenerate.
1513 (stabs_argument_has_addr): New architecture method.
1514 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1515 * arch-utils.c: Include "buildsym.h".
1516 (default_stabs_argument_has_addr): New function.
1517 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1518 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1520 2003-09-17 Andrew Cagney <cagney@redhat.com>
1522 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1523 * gdbarch.h, gdbarch.c: Regenerate.
1524 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1525 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1526 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1527 * sparcnbsd-tdep.c: Update.
1529 2003-09-17 Andrew Cagney <cagney@redhat.com>
1531 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1532 * gdbarch.h, gdbarch.c: Regenerate.
1533 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1534 * d10v-tdep.c, frame.c: Update.
1535 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1536 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1537 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1538 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1539 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1540 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1541 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1542 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1543 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1544 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1545 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1546 * config/pa/nm-hppah.h: Update.
1548 2003-09-16 Andrew Cagney <cagney@redhat.com>
1550 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1551 "use_struct_convention" to "ppc_linux_use_struct_convention".
1552 (ppc_linux_use_struct_convention): New function.
1553 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1554 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1555 "rs6000_use_struct_convention".
1556 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1558 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1561 2003-09-16 Andrew Cagney <cagney@redhat.com>
1563 * buildsym.c: Remove more occurances of "register".
1564 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1565 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1566 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1567 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1568 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1569 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1570 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1571 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1573 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
1575 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1576 numbers to enumeration values.
1577 * sh-tdep.c: Accomodate above change.
1578 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1579 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1580 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1581 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1582 (IS_FPUSH): Rename from IS_FMOV.
1583 (sh_extract_struct_value_address): Remove useless comment.
1584 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1585 instead of own local values.
1586 (sh_dump_tdep): Remove.
1587 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1588 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1590 2003-09-15 Andrew Cagney <cagney@redhat.com>
1592 * doublest.c (convert_floatformat_to_doublest): No longer need to
1593 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1595 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
1597 * values.c (unpack_double): Call floatformat_is_valid.
1599 2003-09-15 Mark Kettenis <kettenis@gnu.org>
1601 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1602 ps_strings into a long.
1604 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1605 _initialize_am64fbsd_nat.
1607 2003-09-15 Kevin Buettner <kevinb@redhat.com>
1609 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1610 associated with DW_AT_ranges attribute is out of bounds.
1612 2003-09-15 David Lecomber <dsl@sources.redhat.com>
1614 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1616 2003-09-14 Michael Chastain <mec@shout.net>
1618 * config/m68k/nm-apollo68v.h: Delete.
1619 * config/m68k/xm-apollo68v.h: Delete.
1621 2003-09-14 Andrew Cagney <cagney@redhat.com>
1623 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1624 * dcache.c: Update copyrights and descriptions.
1625 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1627 2003-09-14 Andrew Cagney <cagney@redhat.com>
1629 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1630 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1632 2003-09-14 Andrew Cagney <cagney@redhat.com>
1634 * alpha-nat.c: Remove some occurances of "register".
1635 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1636 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1637 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1638 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1639 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1640 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1641 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1642 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1643 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1644 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1645 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1646 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1647 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1648 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1649 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1650 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1651 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1652 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1653 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1654 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1655 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1656 * values.c, vax-tdep.c, xcoffread.c: Ditto.
1658 2003-09-13 Andrew Cagney <cagney@redhat.com>
1660 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1661 * ppc-tdep.h (struct regcache): Declare opaque.
1662 * objfiles.h (struct objfile_data): Declare opaque.
1663 * cp-support.h (struct objfile): Declare opaque.
1664 * linux-nat.h (target_waitstatus): Declare opaque.
1666 2003-09-14 Mark Kettenis <kettenis@gnu.org>
1668 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1669 (stabs_argument_has_addr): New architecture method.
1670 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1671 * arch-utils.c: Include "buildsym.h".
1672 (default_stabs_argument_has_addr): New function.
1673 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1674 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1676 * cris-tdep.c (cris_gdbarch_init): Set
1677 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1678 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1679 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1680 * mips-tdep.c (mips_gdbarch_init): Likewise.
1681 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1682 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1684 2003-09-13 Andrew Cagney <cagney@redhat.com>
1686 * values.c (using_struct_return): Delete "function" and "funcaddr"
1688 * value.h (using_struct_return): Update declaration.
1689 * infcmd.c (finish_command_continuation): Update.
1690 (finish_command): Update.
1691 * infcall.c (call_function_by_hand): Update.
1692 * eval.c (evaluate_subexp_standard): Update.
1694 2003-09-13 Christopher Faylor <cgf@redhat.com>
1696 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1697 SSE registers since gdb will not operate correctly without this.
1698 Restore include file ordering munged in previous change.
1699 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1701 2003-09-13 Mark Kettenis <kettenis@gnu.org>
1703 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1704 REG_STRUCT_HAS_ADDR.
1705 * gdbarch.c, gdbarch.h: Updated.
1706 * infcall.c (call_function_by_hand): Update.
1707 * stabsread.c (define_symbol): Updated.
1709 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1711 2003-09-12 Christopher Faylor <cgf@redhat.com>
1713 * win32-nat.c: Reorganize so that defines used by target headers are
1714 actually defined by the system headers.
1715 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1716 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1718 2003-09-12 Jim Blandy <jimb@redhat.com>
1720 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1721 the file has no .data, .bss, or .rodata sections. Instead wait
1722 until we see a variable alleged to live in one of those sections.
1724 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1725 .bss section, presume that any variables we find live in the
1728 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1729 offsets for global and static variables.
1731 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1732 symbol types are, by definition, in the .data section, so it is
1733 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1734 If there is no .data section, there should be no N_DATA or N_DATA
1737 2003-09-12 Mark Kettenis <kettenis@gnu.org>
1739 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1740 (amd64fbsd_sigcontext_addr): Rewrite.
1741 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1742 with correct values.
1743 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1744 (amd64fbsd_init_abi): Fix typo.
1746 2003-09-12 Andrew Cagney <cagney@redhat.com>
1748 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1749 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1751 2003-09-12 Andrew Cagney <cagney@redhat.com>
1753 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1754 "entry_file_highpc". Update comments.
1755 * defs.h (deprecated_inside_entry_file): Rename
1756 "inside_entry_file".
1757 * blockframe.c (deprecated_inside_entry_file): Rename
1758 "inside_entry_file".
1759 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1760 * vax-tdep.c (vax_frame_chain): Update.
1761 * sh64-tdep.c (sh64_frame_chain): Update.
1762 * sh-tdep.c (sh_frame_chain): Update.
1763 * rs6000-tdep.c (rs6000_frame_chain): Update.
1764 * ns32k-tdep.c (ns32k_frame_chain): Update.
1765 * mips-tdep.c (mips_frame_chain): Update.
1766 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1767 * m32r-tdep.c (m32r_frame_this_id): Update.
1768 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1769 * frv-tdep.c (frv_frame_this_id): Update.
1770 * d10v-tdep.c (d10v_frame_this_id): Update.
1771 * cris-tdep.c (cris_frame_chain): Update.
1772 * blockframe.c (legacy_frame_chain_valid): Update.
1773 * avr-tdep.c (avr_frame_this_id): Update.
1774 * arm-tdep.c (arm_prologue_this_id): Update.
1775 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1776 * objfiles.c (objfile_relocate): Update.
1777 * mipsread.c (mipscoff_symfile_read): Update.
1778 (mipscoff_symfile_read): Update.
1779 * mdebugread.c (parse_partial_symbols): Update.
1780 * dwarfread.c (read_file_scope): Update.
1781 * dwarf2read.c (read_file_scope): Update.
1782 * dbxread.c (read_dbx_symtab): Update.
1783 (read_dbx_symtab): Update.
1784 * coffread.c (complete_symtab): Update.
1786 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1788 * top.c (quit_target): New static helper function.
1789 (quit_force): Moved code to quit_target(). Call quit_target()
1790 via catch_errors() to catch errors during quit.
1792 2003-09-11 David Carlton <carlton@kealia.com>
1794 * buildsym.c (finish_block): Use allocate_block to allocate the
1796 * mdebugread.c (new_block): Add FIXME.
1798 2003-09-11 David Carlton <carlton@kealia.com>
1800 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1801 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1802 (recursive_dump_type): Ditto.
1803 * printcmd.c (print_formatted): Ditto.
1804 * typeprint.c (print_type_scalar): Ditto.
1805 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1806 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1807 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1808 maint_cplus_cmd_list.
1809 * cp-support.c: Make maint_cplus_cmd_list extern.
1810 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1812 (lookup_symbol_file): Look in possible namespace blocks when
1814 (initialize_namespace_symtab): New.
1815 (get_possible_namespace_block, free_namespace_block)
1816 (check_possible_namespace_symbols)
1817 (check_possible_namespace_symbols_loop)
1818 (check_one_possible_namespace_symbol)
1819 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1820 (_initialize_cp_namespace): Ditto.
1821 * block.h: Declare allocate_block.
1822 * block.c (allocate_block): New.
1823 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1825 * symfile.h: Update declaration of add_psymbol_to_list.
1826 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1828 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1829 scan_partial_symbols_call.
1830 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1832 (add_partial_symbol): If necessary, scan mangled names for names
1834 (add_partial_namespace): Add NAMESPACE argument; generate partial
1835 symbols associated to namespaces.
1836 (add_partial_enumeration): Add NAMESPACE argument.
1837 (new_symbol): Allow namespace syms.
1838 (read_namespace): Generate namespace syms.
1839 * objfiles.h: Add opaque declaration of struct symtab.
1840 (struct objfile): Add cp_namespace_symtab member.
1841 * objfiles.c (allocate_objfile): Set
1842 objfile->cp_namespace_symtab.
1843 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1844 dictionary_h, command_h.
1846 2003-09-11 Andrew Cagney <cagney@redhat.com>
1848 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1849 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1850 near the function's end.
1851 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1852 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1853 regcache_raw_write_signed to set SP_REGNUM.
1855 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
1857 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1858 orig_addrs is set up properly.
1860 2003-09-11 Andrew Cagney <cagney@redhat.com>
1862 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1863 * gdbarch.h, gdbarch.c: Re-generate.
1864 * infcall.c (call_function_by_hand): Update.
1865 * hppa-tdep.c (hppa_push_arguments): Update.
1866 * ada-lang.c (place_on_stack): Update.
1867 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1868 * sparc-tdep.c (sparc_gdbarch_init): Update.
1869 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1870 * hppa-tdep.c (hppa_gdbarch_init): Update.
1871 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1874 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
1876 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1877 register do need a frame.
1879 2003-09-11 Andrew Cagney <cagney@redhat.com>
1881 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1882 buildable since GDB 5.0.
1883 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1884 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1885 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1886 * irix4-nat.c: Delete file.
1887 * config/mips/irix4.mh: Delete file.
1888 * config/mips/irix3.mh: Delete file.
1889 * config/mips/irix3.mt: Delete file.
1890 * config/mips/tm-irix3.h: Delete file.
1891 * config/mips/nm-irix3.h: Delete file.
1892 * config/mips/xm-irix3.h: Delete file.
1893 * config/mips/nm-irix4.h: Delete file.
1894 * config/mips/xm-irix4.h: Delete file.
1895 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1897 2003-09-10 J. Brobecker <brobecker@gnat.com>
1899 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1900 * Makefile.in (hppa-tdep.o): Update dependencies.
1902 2003-09-10 James E Wilson <wilson@specifixinc.com>
1904 * MAINTAINERS: Change my e-mail address. Move to paper trail
1907 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1909 * MAINTAINERS (frv): New ISA entry.
1911 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1913 * frv-tdep.c (dis-asm.h): Include.
1914 * Makefile.in (frv-tdep.o): Update dependencies.
1916 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1918 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1919 Fix typo for high range of floating registers.
1921 2003-09-09 David Carlton <carlton@kealia.com>
1923 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1924 highpc initialization here out of scan_partial_symbols.
1925 (scan_partial_symbols): Restructure into a recursive version,
1926 calling add_partial_namespace and add_partial_enumeration when
1928 (add_partial_namespace): New.
1929 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1931 2003-09-09 Andrew Cagney <cagney@redhat.com>
1933 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1934 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1935 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1936 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1938 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1939 (rs6000_push_dummy_call): Set the "TOC" register.
1941 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1942 methods "max_register_raw_size", "max_register_virtual_size" or
1943 "register_virtual_size".
1945 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1947 * MAINTAINERS: Update my e-mail address.
1949 2003-09-09 Andrew Cagney <cagney@redhat.com>
1951 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1952 (rs6000_push_dummy_call): Store the struct return address.
1953 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1955 2003-09-09 Andrew Cagney <cagney@redhat.com>
1957 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1958 "ppc_sysv_abi_push_arguments".
1959 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1960 "ppc_sysv_abi_push_arguments".
1961 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1962 instead of "push_arguments".
1963 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1965 2003-09-09 Andrew Cagney <cagney@redhat.com>
1967 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1968 instead of CALL_DUMMY_ADDRESS.
1970 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1972 * p-lang.c: Eliminate "register".
1974 * expprint.c: Ditto.
1977 * language.c: Ditto.
1980 * scm-lang.c: Ditto.
1981 * objc-lang.c: Ditto.
1983 2003-09-09 Nick Clifton <nickc@redhat.com>
1985 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1987 2003-09-04 Andrew Cagney <cagney@redhat.com>
1989 * avr-tdep.c: Include "dis-asm.h".
1990 * cris-tdep.c: Include "dis-asm.h".
1991 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1992 instead of corresponding typedef.
1993 * h8300-tdep.c: Include "dis-asm.h".
1994 * ia64-tdep.c: Include "dis-asm.h".
1995 * i386-tdep.c: Include "dis-asm.h".
1996 (i386_print_insn): Use "struct disassemble_info" instead of
1997 corresponding typedef.
1998 * m68k-tdep.c: Include "dis-asm.h".
1999 * mcore-tdep.c: Include "dis-asm.h".
2000 * mips-tdep.c: Include "dis-asm.h".
2001 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2002 instead of corresponding typedef.
2003 * ns32k-tdep.c: Include "dis-asm.h".
2004 * s390-tdep.c: Include "dis-asm.h".
2005 * sparc-tdep.c: Include "dis-asm.h".
2006 * vax-tdep.c: Include "dis-asm.h".
2007 * v850-tdep.c: Include "dis-asm.h".
2008 * mn10300-tdep.c: Include "dis-asm.h".
2009 * rs6000-tdep.c: Include "dis-asm.h".
2010 * xstormy16-tdep.c: Include "dis-asm.h".
2011 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2012 print_insn_xstormy16.
2013 * Makefile.in (v850-tdep.o): Update dependencies.
2014 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2015 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2016 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2017 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2018 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2019 (gdbarch_h): Remove $(dis_asm_h).
2020 * disasm.c: Include "dis-asm.h".
2021 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2022 corresponding typedef.
2023 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2024 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2025 * gdbarch.sh: Do not include "dis-asm.h".
2026 (struct disassemble_info): Declare opaque.
2027 (TARGET_PRINT_INSN): Update declaration.
2028 * gdbarch.h, gdbarch.c: Re-generate.
2030 2003-09-08 Andrew Cagney <cagney@redhat.com>
2032 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2033 CALL_DUMMY_ADDRESS, change to a predicate.
2034 * gdbarch.h, gdbarch.c: Re-generate.
2035 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2036 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2037 * infcall.c (call_function_by_hand): Ditto.
2038 * sparc-tdep.c (sparc_push_return_address): Ditto.
2039 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2040 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2041 CALL_DUMMY_ADDRESS with entry_point_address.
2042 * v850-tdep.c (v850_push_return_address): Ditto.
2043 * s390-tdep.c (s390_push_return_address): Ditto.
2044 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2045 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2046 * mcore-tdep.c (mcore_push_return_address): Ditto.
2047 * cris-tdep.c (cris_push_return_address): Ditto.
2048 * arm-tdep.c (arm_push_return_address): Ditto.
2050 2003-09-08 Andrew Cagney <cagney@redhat.com>
2052 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2053 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2054 and REG_UNMODIFIED to REG_SAME_VALUE.
2055 (execute_cfa_program): Update.
2056 (dwarf2_frame_cache): Update. Initialize table to
2057 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2059 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2061 2003-09-08 Andrew Cagney <cagney@redhat.com>
2063 * gnu-nat.c: Remove "inline" function attribute.
2064 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2066 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2068 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2071 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2073 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2074 (frame_extra_info): Rename this struct to frv_unwind_cache.
2075 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2076 Add fields ``prev_sp'' and ``base''.
2077 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2078 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2079 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2081 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2082 Revise all callers. Fill in the unwind cache argument and make
2083 other adjustments to account for new frame mechanisms.
2084 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2085 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2086 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2087 (frv_frame_unwind, frv_frame_base): New structs.
2088 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2089 additional arguments expected by this method and adjust function
2091 (frv_gdbarch_init): Remove calls to the following functions:
2092 set_gdbarch_deprecated_init_frame_pc(),
2093 set_gdbarch_deprecated_saved_pc_after_call(),
2094 set_gdbarch_deprecated_frame_chain(),
2095 set_gdbarch_deprecated_frame_saved_pc(),
2096 set_gdbarch_deprecated_frame_init_saved_regs(),
2097 set_gdbarch_deprecated_push_arguments(),
2098 set_gdbarch_deprecated_push_return_address(),
2099 set_gdbarch_deprecated_pop_frame(),
2100 set_gdbarch_deprecated_call_dummy_words(),
2101 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2102 set_gdbarch_deprecated_init_extra_frame_info(),
2103 set_gdbarch_deprecated_dummy_write_sp(), and
2104 set_gdbarch_deprecated_pc_in_call_dummy().
2105 Add calls to the following functions:
2106 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2107 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2108 frame_base_set_default().
2109 * Makefile.in (frv-tdep.o): Update dependencies.
2111 2003-09-09 Mark Kettenis <kettenis@gnu.org>
2113 * dwarf2-frame.c (read_encoded_value): Add support for
2114 DW_EH_PE_aligned encoding.
2116 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2118 * infrun.c (normal_stop): Don't print a message if the inferior
2121 2003-09-08 Jim Blandy <jimb@redhat.com>
2123 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2124 * dbxread.c: #include "gdb_assert.h".
2125 (read_dbx_symtab): If the objfile has no .data section, use the
2126 section index for the .bss section instead.
2128 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2130 * frame.c (deprecated_safe_get_selected_frame): New function.
2131 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2132 * findvar.c (read_var_value): Call it.
2134 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
2136 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2137 (sh64-tdep.o): Add dependencies.
2138 * configure.tgt: Add FIXME to sh-*-linux*.
2139 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2140 (sh_gdbarch_init): Always set correct sh_show_regs function
2141 pointer. Call sh64_gdbarch_init() if machine type is sh5.
2142 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2143 * sh64-tdep.c: New file, containing all sh64 related code from
2145 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2146 * config/sh/linux.mt (TDEPFILES): Ditto.
2147 * config/sh/nbsd.mt (TDEPFILES): Ditto.
2148 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2149 * config/sh/wince.mt (TDEPFILES): Ditto.
2151 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2153 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2154 (stop_wait_callback): Handle !lp->signalled also.
2155 (lin_lwp_has_pending, flush_callback): New functions.
2156 (lin_lwp_wait): Call flush_callback.
2157 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2158 (linux_proc_pending_signals): New function.
2159 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2161 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2163 From Nick Kelsey <nickk@ubicom.com>:
2164 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2165 when the stop PC is at the beginning of a function also.
2167 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
2169 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2170 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2172 2003-09-06 Mark Kettenis <kettenis@gnu.org>
2174 * sol-thread.c: Include "gdb_string.h".
2176 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2178 * gcore.c: Reorder include files in alphabetical order. Include
2179 "gdb_assert.h". Various coding style fixes.
2180 (derive_stack_segment, derive_heap_segment): Replace check for
2181 non-null BOTTOM and TOP with gdb_assert.
2182 (derive_heap_segment): Replace check for successful creation of
2183 ZERO with gdb_assert.
2184 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2186 2003-09-04 Andrew Cagney <cagney@redhat.com>
2188 * thread-db.c (verbose_dlsym): New function.
2189 (thread_db_load): Use verbose_dlsym
2190 (thread_db_new_objfile): Print that libthread_db was loaded, and
2191 that thread debugging was enabled.
2193 2003-09-04 Andrew Cagney <cagney@redhat.com>
2195 * configure.tgt: Add "mips64*-*-*" target. Delete
2196 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2197 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2198 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2199 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2200 mips*-sony-*, and mips64*-*-elf* targets.
2201 * config/mips/embedl.mt: Delete file.
2202 * config/mips/embedl64.mt: Delete file.
2203 * config/mips/mips.mt: Delete file.
2204 * config/mips/mips64.mt: Delete file.
2205 * config/mips/tm-embed.h: Delete file.
2206 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2207 * config/mips/embed64.mt: Delete out-of-date comment.
2209 2003-09-04 Andrew Cagney <cagney@redhat.com>
2211 * hppa-tdep.c (hppa_gdbarch_init): Set
2212 "have_nonsteppable_watchpoint".
2213 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2214 * mips-tdep.c (mips_dump_tdep): Do not print
2215 HAVE_NONSTEPPABLE_WATCHPOINT.
2216 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2217 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2218 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2219 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2221 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2223 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2224 unused code. Add comment.
2226 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2228 * breakpoint.c (watchpoint_check): Check for pc being in an
2229 epilogue if watchpoint frame couldn't be found.
2231 2003-09-04 Andrew Cagney <cagney@redhat.com>
2233 * Makefile.in: Re-generate all dependencies.
2235 2003-09-03 Andrew Cagney <cagney@redhat.com>
2237 * arch-utils.h (legacy_print_insn): Delete declaration.
2238 * arch-utils.c (legacy_print_insn): Delete function.
2239 * disasm.c (deprecated_tm_print_insn_info): Delete.
2240 (_initialize_disasm): Delete function, contained code initializing
2241 deprecated_tm_print_insn_info.
2242 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2243 (deprecated_tm_print_insn_info): Delete.
2244 (TARGET_PRINT_INSN): Do not provide a default.
2245 * gdbarch.h, gdbarch.c: Re-generate.
2247 2003-09-03 Andrew Cagney <cagney@redhat.com>
2249 * disasm.c (fprintf_disasm): New function.
2250 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2251 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2252 reverts 2003-08-14 change.
2253 (_initialize_disasm): Call "init_disassemble_info", instead of
2254 INIT_DISASSEMBLE_INFO_NO_ARCH.
2256 2003-09-03 Michael Snyder <msnyder@redhat.com>
2258 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2260 2003-09-03 Andrew Cagney <cagney@redhat.com>
2262 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2263 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2264 * symfile.c (syms_from_objfile): Update.
2265 (reread_symbols): `Update
2266 * exec.c (exec_file_attach): Update.
2267 (exec_file_attach): Update.
2268 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2270 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2272 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2274 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2276 (arm_get_cache): Delete macro.
2277 (struct arm_prologue_cache): Update comments. Make saved_regs into
2278 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2280 (thumb_scan_prologue): Update for cache changes. Don't call
2281 DEPRECATED_PC_IN_CALL_DUMMY.
2282 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2283 argument and use it in desperation search for our prologue. Do not
2284 search past the specified PC.
2285 (arm_make_prologue_cache): Simplify.
2287 (arm_prologue_this_id, arm_prologue_prev_register)
2288 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2289 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2290 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2291 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2292 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2294 (arm_frame_chain_valid, arm_find_callers_reg)
2295 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2296 (arm_pop_frame): Delete obsolete methods.
2297 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2299 (arm_gdbarch_init): Update for new frame methods. Register prologue
2300 and sigtramp unwinders. Set the default frame base method.
2302 * Makefile.in (arm-tdep.o): Update dependencies.
2303 * varobj.c (find_frame_addr_in_frame_chain): Call
2304 get_frame_base_address.
2305 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2307 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2309 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2310 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2311 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2312 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2313 Take NEXT_FRAME and CACHE arguments. Call
2314 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2315 Set unwound_pc in CACHE instead of modifying the frame argument.
2316 Don't bother checking the frame type when looking for sigtramp
2318 (arm_make_prologue_cache, arm_frame_chain)
2319 (arm_init_extra_frame_info): New functions.
2321 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2323 * arm-tdep.c (arm_get_cache): Define.
2324 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2325 unwound_sp, unwound_pc, and saved_regs.
2326 (thumb_scan_prologue): Take a cache instead of the frame.
2327 (arm_scan_prologue): Likewise.
2328 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2329 instead of a temporary frame.
2330 (arm_init_extra_frame_info): Allocate and use a cache.
2331 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2333 2003-09-03 Andrew Cagney <cagney@redhat.com>
2335 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2336 * config/mips/wince.mt (TM_CLIBS): Ditto.
2337 * config/sh/wince.mt (TM_CLIBS): Ditto.
2338 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2339 * config/sparc/sp64.mt (CC): Delete.
2341 2003-09-03 Andrew Cagney <cagney@redhat.com>
2343 * defs.h: Do not include "arch-utils.h".
2344 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2345 GDB_MULTI_ARCH_PURE.
2346 * configure.in (GDB_MULTI_ARCH): Do not define.
2347 * configure, config.in: Regenerate.
2348 * configure.tgt: Do not set variable "gdb_multi_arch".
2349 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2350 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2351 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2352 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2353 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2354 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2355 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2356 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2357 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2358 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2359 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2360 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2361 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2362 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2363 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2364 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2365 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2366 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
2368 2003-08-30 Michael Chastain <mec@shout.net>
2370 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2371 * config/m68k/nm-hp300hpux.h: Delete.
2372 * config/m68k/tm-hp300hpux.h: Delete.
2373 * config/m68k/xm-hp300hpux.h: Delete.
2374 * config/m68k/xm-hp300bsd.h: Delete.
2375 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2376 tm-hp300hpux.h, xm-hp300hpux.h.
2377 * somsolib.c: Remove comment about hp300 shared libraries.
2379 2003-08-31 Mark Kettenis <kettenis@gnu.org>
2381 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2382 Only define PTRACE_GET_THREAD_AREA is not already defined.
2383 Various style fixes in code and comments and some additional
2384 spelling fixes in comments. Move after functions dealing with
2386 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2389 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2390 frame_unwind_register_unsigned instead of
2391 frame_unwind_unsigned_register.
2393 2003-08-30 Mark Kettenis <kettenis@gnu.org>
2395 * configure.in: Search for gethostbyname in libnsl.
2396 * configure: Regenerated.
2398 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2400 * configure.in: Remove redundant AC_MSG_RESULT in check for
2401 uintptr_t in stdint.h.
2402 * configure: Regenerated.
2404 * amd64-nat.h (struct regcache): Add opaque declaration.
2406 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2407 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2408 Change "register array" to "register cache" in comments.
2409 (x86_64_linux_gregset64_reg_offset): New variable.
2410 (GETREGS_SUPPLIES): Remove macro.
2411 (supply_gregset): Call amd64_supply_native_gregset instead of
2412 x86_64_linux_supply_gregset.
2413 (fill_gregset): Rename `regno' to `regnum'. Call
2414 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2415 (store_regs): Rename `regno' to `regnum'.
2416 (store_fpregs): Rename `regno' to `regnum'.
2417 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2418 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2419 Reorganize function a bit.
2420 (store_inferior_registers): Rename `regno' to `regnum'. Use
2421 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2422 Reorganize function a bit.
2423 (_initialize_x86_64_linux_nat): New function.
2424 * config/i386/x86-64linux.mh.
2426 2003-08-29 Andrew Cagney <cagney@redhat.com>
2428 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2429 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2430 (target_remove_watchpoint): Delete macro.
2431 (target_insert_watchpoint): Delete macro.
2432 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2433 (remote_mips_stopped_by_watchpoint): Delete declaration.
2434 (remote_mips_remove_watchpoint): Delete declaration.
2435 (remote_mips_set_watchpoint): Delete declaration.
2436 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2437 * remote-mips.c (_initialize_remote_mips): Set
2438 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2439 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2440 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2441 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2442 (mips_stopped_by_watchpoint): Rename
2443 remote_mips_stopped_by_watchpoint.
2444 (mips_can_hardware_watchpoint): Rename
2445 remote_mips_can_use_hardware_watchpoint, update function
2448 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2450 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2451 USER_DS. We haven't given them a register number yet.
2453 * amd64-nat.h: New file.
2454 * amd64-nat.c: New file.
2455 * amd64fbsd-nat.c: Include "amd64-nat.h".
2456 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2457 (amd64fbsd32_r_reg_offset): New variable.
2458 (supply_gregset): Simply call amd64_supply_native_gregset.
2459 (fill_gregset): Rename `regno' to `regnum'. Simply call
2460 amd64_collect_native_gregset.
2461 (fill_fpregset): Rename `regno' to `regnum'.
2462 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2463 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2464 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2465 `fpregset_t'. Call amd64_supply_native_gregset instead of
2466 supply_gregset. Call x86_64_supply_fxsave instead of
2468 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2469 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2470 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2471 `fpregset_t'. Call amd64_collect_native_gregset instead of
2472 fill_gregset. Call x86_64_collect_fxsave instead of
2474 (_initialize_am64fbsd_nat): Initialize
2475 amd64_native_gregset32_reg_offset and
2476 amd64_native_gregset64_reg_offset.
2477 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2479 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2480 null pointer. Fix typo in comment.
2482 * regcache.c (supply_register): Reimplement to call
2483 regcache_raw_supply.
2484 (regcache_collect): Reimplement by calling regcache_raw_collect.
2486 2003-08-28 Mark Kettenis <kettenis@gnu.org>
2488 * regcache.c (register_buffer): Consitify first argument.
2489 (regcache_raw_supply, regcache_raw_collect): New
2492 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2494 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2495 by Nathan J. Williams.
2497 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2499 * lin-lwp.c (wait_lwp): New function, copied from
2500 stop_wait_callback. Clean up.
2501 (stop_wait_callback): Use wait_lwp.
2503 2003-08-28 Andrew Cagney <cagney@redhat.com>
2505 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2506 flavour and disassembler options.
2507 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2508 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2509 deprecated_tm_print_insn_info.
2511 2003-08-27 Andrew Cagney <cagney@redhat.com>
2513 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2514 Use target_read_memory.
2515 (s390_get_frame_info): Update. Do not reference
2516 deprecated_tm_print_insn_info.
2517 (s390_check_function_end, s390_is_sigreturn): Ditto.
2519 2003-08-27 Andrew Cagney <cagney@redhat.com>
2521 * Makefile.in (cris-tdep.o): Update dependencies.
2522 * cris-tdep.c: Include "gdb_assert.h".
2523 (cris_gdbarch_init): Set print_insn.
2524 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2525 (cris_delayed_get_disassembler): Simplify, directly call the
2526 disassembler returned by cris_get_disassembler.
2527 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2528 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2529 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2530 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2531 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2532 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2533 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2534 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2535 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2536 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2537 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2538 (gdb_print_insn_sparc): Delete function.
2539 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2540 deprecated_tm_print_insn_info.
2541 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2542 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2543 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2544 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2545 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2546 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2547 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2548 (s390_gdbarch_init): Set print_insn.
2550 2003-08-27 Andrew Cagney <cagney@redhat.com>
2552 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2553 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2554 * infcall.c (call_function_by_hand): Convert the entry point
2555 address into a code address.
2557 2003-08-27 Andrew Cagney <cagney@redhat.com>
2559 * dsrec.c: Include "gdb_string.h".
2560 * Makefile.in (dsrec.o): Update dependencies.
2562 2003-08-27 Michael Chastain <mec@shout.net>
2564 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2566 2003-08-27 Andrew Cagney <cagney@redhat.com>
2568 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2569 (alpha_osf1_init_abi): Do not set call_dummy_address.
2571 2003-08-27 David Carlton <carlton@kealia.com>
2573 From Randolph Chung <tausq@debian.org>:
2574 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2575 compiles with -Wformat-nonliteral -Werror.
2577 2003-08-26 Jim Blandy <jimb@redhat.com>
2579 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2580 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2581 bfd_lookup_symbol, since we only want symbols in code sections.
2582 (look_for_base): Pass zero as the SECT_FLAGS argument to
2583 bfd_lookup_symbol, since we're not concerned about which section
2586 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2588 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
2589 we are frameless or the return address register is already known.
2591 2003-08-26 Andrew Cagney <cagney@redhat.com>
2593 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2594 in size. Add comments.
2596 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2598 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
2599 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
2601 2003-08-26 Jason Merrill <jason@redhat.com>
2603 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2604 case out of #ifdef MIPS block.
2606 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
2609 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2610 available before calling SECT_OFF_TEXT.
2611 * PROBLEMS: Remove description of java/1322.
2613 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2615 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
2616 bof, and nat0-nat127 as pseudo-registers.
2617 (ia64_frame_cache): New struct used to cache frame info.
2618 (ia64_register_reggroup_p): New routine used to override default
2619 register grouping so registers without names are still saved and
2621 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
2623 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2624 (ia64_pseudo_register_write): New routine to write pseudo-registers.
2625 (ia64_alloc_frame_cache): New routine to create a new
2627 (examine_prologue): Change prototype to add next_frame pointer.
2628 Assume frameless until otherwise proven. Verify that the cfm for
2629 current frame matches the cfm that should occur for the prologues
2630 alloc insn and if equal, mark as not frameless. At end of routine,
2631 if not frameless, calculate registers for the previous frame and store
2632 in the cache, if a cache is provided.
2633 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2634 and pass 0 for next_frame.
2635 (ia64_store_return_value): Change to use convert_typed_floating()
2636 instead of calling ia64_convert_to_raw().
2637 (ia64_extract_return_value): Change to use convert_typed_floating()
2638 instead of calling ia64_convert_to_virtual().
2639 (ia64_frame_cache): New routine to support new frame model.
2640 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2641 (ia64_frame_sniffer): Ditto.
2642 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2643 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2644 (ia64_sigtramp_frame_prev_register): Ditto.
2645 (ia64_sigtramp_frame_sniffer): Ditto.
2646 (ia64_frame_base_address): Ditto.
2647 (ia64_extract_struct_value_address): Change to issue error message.
2648 (ia64_frame_align): New routine to align sp.
2649 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2650 (ia64_push_arguments): Removed. Logic moved to
2651 ia64_push_dummy_call().
2652 (ia64_push_return_address): Ditto.
2653 (ia64_unwind_dummy_id): New function.
2654 (ia64_unwind_pc): Ditto.
2655 (ia64_convert_register_p): Ditto.
2656 (ia64_register_to_value): Ditto.
2657 (ia64_value_to_register): Ditto.
2658 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2659 (ia64_register_byte, ia64_register_raw_size): Ditto.
2660 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2661 (ia64_saved_pc_after_call): Ditto.
2662 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2663 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2664 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2665 (ia64_register_convert_to_raw): Ditto.
2666 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2667 (ia64_init_extra_frame_info): Ditto.
2668 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2669 (ia64_gdbarch_init): Remove registering of deprecated functions that
2670 are no longer used. Add registration of new gdbarch functions.
2671 Remove registering deprecated_write_sp. Replace
2672 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2673 Delete set_gdbarch_deprecated_register_convertible(),
2674 set_gdbarch_deprecated_register_convert_to_virtual(), and
2675 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2676 set_gdbarch_deprecated_register_size(),
2677 set_gdbarch_deprecated_register_bytes(),
2678 set_gdbarch_pcregnum(),
2679 set_gdbarch_deprecated_register_byte(),
2680 set_gdbarch_deprecated_register_raw_size(),
2681 set_gdbarch_deprecated_max_register_raw_size(),
2682 set_gdbarch_deprecated_register_virtual_size(),
2683 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2684 Replace set_gdbarch_deprecated_extract_return_value() with
2685 set_gdbarch_extract_return_value(). Remove calls to:
2686 set_gdbarch_deprecated_saved_pc_after_call();
2687 set_gdbarch_deprecated_frame_chain(),
2688 set_gdbarch_deprecated_frame_saved_pc(),
2689 set_gdbarch_deprecated_frame_init_saved_regs(),
2690 set_gdbarch_deprecated_get_saved_register(),
2691 set_gdbarch_deprecated_call_dummy_words(),
2692 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2693 set_gdbarch_deprecated_init_extra_frame_info(),
2694 set_gdbarch_deprecated_frame_args_address(),
2695 set_gdbarch_deprecated_frame_locals_address(),
2696 and set_gdbarch_deprecated_dummy_write_sp().
2697 Add set_gdbarch_convert_register_p(),
2698 set_gdbarch_register_to_value(),
2699 set_gdbarch_value_to_register(),
2700 set_gdbarch_push_dummy_call(),
2701 set_gdbarch_frame_align(),
2702 set_gdbarch_unwind_dummy_id(),
2703 set_gdbarch_unwind_pc(),
2704 frame_unwind_append_sniffer(),
2705 frame_unwind_append_sniffer(),
2706 and frame_base_set_default().
2708 2003-08-25 Chris Demetriou <cgd@broadcom.com>
2710 * configure.tgt: Document need for special "mipsisa64" handling.
2711 (mipsisa64*-*-linux64): Handle as target linux64.
2712 (mipsisa64*-*-*): Handle as target embed64.
2714 2003-08-18 Michael Chastain <mec@shout.net>
2716 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2719 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2721 * i387-tdep.h: Update copyright date.
2722 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2724 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2725 CFLAGS games to reflect reality.
2727 2003-08-24 Andrew Cagney <cagney@redhat.com>
2729 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2730 GDB_MULTI_ARCH is always non-zero.
2731 * osabi.c (_initialize_gdb_osabi): Ditto.
2732 (gdbarch_init_osabi): Ditto.
2733 * sparc-tdep.c: Ditto for #if code.
2735 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2737 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2739 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2741 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2742 x86_64_supply_fxsave.
2743 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2744 x86_64_supply_fxsave.
2745 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2746 x86_64_supply_fxsave.
2748 2003-08-23 Andreas Jaeger <aj@suse.de>
2750 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2753 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2755 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2756 i387_supply_register.
2757 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2758 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2760 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2762 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2764 * i386bsd-nat.c (supply_fpregset): Adjust call to
2766 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2767 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2769 (store_inferior_registers): Remove extraneous whitespace. Call
2770 i387_fill_fsave instead of fill_fpregset.
2771 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2772 (supply_fpregset): Likewise.
2773 * i386v4-nat.c (supply_fpregset): Adjust call to
2775 * i386-interix-nat.c (supply_fpregset): Adjust call to
2777 * i386-linux-nat.c (supply_fpregset): Adjust call to
2779 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2780 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2781 i387supply_fsave and i387_supply_fxsave.
2782 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2783 Incorporate code from `i387_supply_register.
2784 (i387_supply_register): Remove.
2785 (i387_supply_fxsave): Add `regnum' argument.
2787 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2789 (i387_supply_register): remove prototype.
2792 2003-08-22 Michael Chastain <mec@shout.net>
2794 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2795 Add lines for files in gdb/testsuite/gdb.cp/* that are
2796 still not 8.3 unique.
2798 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
2800 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2801 TYPE_VPTR_FIELDNO is valid.
2803 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2805 * utils.c (set_width_command): Remove prototypes.
2806 (set_screen_size): New prototype.
2807 (init_page_info): Simplify by fetching the screen size from
2808 Readline. Call set_screen_size.
2809 (set_screen_size): New function.
2810 (set_width): Add missing whitespace in comment.
2811 (set_width_command): Call set_screen_size.
2812 (set_height_command): New function.
2813 (initialize_utils): Fix formatting. Make "set height" command
2814 call set_height_command. Remove redundant code that turns off
2815 pagination if output isn't a terminal. Remove redundant call to
2818 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2820 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2821 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2822 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2823 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2825 (sparc64_register_info): Give the reister with number
2826 SPARC64_STATE_REGNUM a name.
2827 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2829 (sparc64_push_dummy_call): Take BIAS into account when checking
2831 (sparc_software_single_step): Remove assertions that check whether
2832 NPC and NNPC were zero.
2833 (sparc_supply_rwindow): Make public. Merge functionality with
2834 sparc64_supply_rwindow.
2835 (sparc_fill_rwindow): Make public. Merge functionality with
2836 sparc64_fill_rwindow.
2837 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2838 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2839 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2840 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2841 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2843 * reggroups.c: Add whitespace after declarations of local
2844 variables in functions.
2846 2003-08-21 Michael Chastain <mec@shout.net>
2848 * gdbtypes.h: Change array bound type from an int to enum.
2850 2003-08-21 Andrew Cagney <cagney@redhat.com>
2852 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2853 * config/sparc/tm-sparc.h: Ditto.
2854 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2856 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2858 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2860 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2861 (register_objfile_data, set_objfile_data, objfile_data): New
2863 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2865 (allocate_objfile): Call objfile_alloc_data.
2866 (free_objfile): Call objfile_free_data.
2867 (struct objfile_data): New.
2868 (struct objfile_data_registration): New.
2869 (struct objfile_data_registry): New.
2870 (objfile_data_registry): New variable.
2871 (register_objfile_data): New function.
2872 (objfile_alloc_data, objfile_free_data): New functions.
2873 (set_objfile_data, objfile_data): New functions.
2874 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2875 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2876 (_initialize_dwarf2_frame): New function and prototype.
2878 2003-08-21 Andrew Cagney <cagney@redhat.com>
2880 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2881 a specific architecture.
2882 * arch-utils.h (set_architecture_from_arch_mach): Delete
2884 (target_architecture_hook): Delete declaration.
2885 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2886 (default_float_format): Assume GDB_MULTI_ARCH.
2887 (default_double_format): Assume GDB_MULTI_ARCH.
2888 (set_endian_from_file): Delete function.
2889 (arch_ok): Delete function.
2890 (set_arch): Delete function.
2891 (set_architecture_from_arch_mach): Delete function.
2892 (set_architecture_from_file): Delete function.
2893 (set_architecture): Assume GDB_MULTI_ARCH.
2894 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2896 2003-08-21 Mark Kettenis <kettenis@gnu.org>
2898 Rewrite FreeBSD/sparc64 native configuration.
2899 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2900 * sparc64fbsd-nat.c: New file.
2901 * sparc64fbsd-tdep.c: New file.
2902 * sparc64-tdep.c sparc64-tdep.h: New files.
2903 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2904 sparc64fbsd-tdep.o): New dependencies.
2905 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2906 and sparc64fbsd-tdep.c.
2907 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2908 * config/sparc/fbsd.mh: Remove copyright notice.
2909 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2911 * config/sparc/fbsd.mt: Remove copyright notice.
2912 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2913 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2914 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2915 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2916 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2917 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2918 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2919 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2921 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2922 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2924 2003-08-21 Michael Chastain <mec@shout.net>
2926 * symtab.h: Add doco on the space critical structures and
2927 some measurements of space usage.
2929 2003-08-21 Michael Snyder <msnyder@redhat.com>
2931 * tracepoint.c (trace_dump_command): Trace break address
2932 is subject to DECR_PC_AFTER_BREAK.
2933 (set_traceframe_context): Make "trace_line" an int.
2934 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2936 2003-08-20 Michael Snyder <msnyder@redhat.com>
2938 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2939 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2940 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2942 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2943 functions, replace sh_push_dummy_call.
2944 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2946 2003-08-20 Michael Chastain <mec@shout.net>
2948 * gdbtypes.h (struct main_type): Rearrange to save space.
2950 2003-08-20 Michael Snyder <msnyder@redhat.com>
2952 * trad-frame.c: Comment typo fix.
2954 2003-08-20 Michael Snyder <msnyder@redhat.com>
2955 Kevin Buettner <kevinb@redhat.com>
2957 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2958 (frv_frame_init_saved_regs): Add declaration.
2959 (frame_extra_info): Add new field ``saved_regs''.
2960 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2961 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2962 Update frame related code.
2963 (frv_extract_struct_value_address): Adjust formatting.
2964 * Makefile.in (frv-tdep.o): Update dependencies.
2965 * config/frv/tm-frv.h (target_insert_watchpoint)
2966 (target_remove_watchpoint, target_insert_hw_breakpoint)
2967 (target_remove_hw_breakpoint): Delete these macros.
2968 (remote_insert_watchpoint, remote_remove_watchpoint)
2969 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2972 2003-08-20 Michael Chastain <mec@shout.net>
2974 * defs.h (ENUM_BITFIELD): New macro.
2975 * symtab.h (ENUM_BITFIELD): Use it.
2976 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2978 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2980 * MAINTAINERS (write after approval): Add myself.
2982 2003-08-18 Andrew Cagney <cagney@redhat.com>
2984 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2985 * gdbarch.h, gdbarch.c: Re-generate.
2986 * infcall.c (call_function_by_hand): Adjust the SP by
2987 frame_red_zone_size before allocating any stack space.
2988 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2989 * x86-64-tdep.c (x86_64_frame_align): New function.
2990 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2992 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2993 Remove code adjusting SP so that it skips over the Red Zone.
2995 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2997 * NEWS (New native configurations): Mention FreeBSD/amd64.
2999 2003-08-18 Andrew Cagney <cagney@redhat.com>
3001 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3002 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3004 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3006 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3008 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3010 2003-08-18 Michal Ludvig <mludvig@suse.cz>
3012 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3014 * i386-linux-nat.c: Include "linux-nat.h".
3015 (child_post_startup_inferior): New function.
3017 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3019 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3020 at the start of a frameless function. This probably fixes PR
3023 2003-08-17 Michael Chastain <mec@shout.net>
3025 * symfile.c (find_sym_fns): Remove special case for apollo target.
3027 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3029 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3030 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3031 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3032 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3033 (linux_supports_tracevforkdone): New function.
3034 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3036 (child_follow_fork): Handle vfork.
3037 (linux_handle_extended_wait): Likewise. Also handle exec.
3038 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3039 * NEWS: Mention fork tracing.
3041 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3043 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3045 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3047 * Makefile.in (i386-linux-nat.o): Update dependencies.
3048 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3049 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3050 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3051 * i386-linux-nat.c: Include "linux-nat.h".
3052 (child_post_startup_inferior): New function.
3053 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3054 * infptrace.c (kill_inferior): Wrap in #ifdef.
3055 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3056 attaching to each LWP.
3057 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3058 (init_lin_lwp_ops): Fill in some more operations.
3059 * linux-nat.h (linux_enable_event_reporting)
3060 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3062 * linux-nat.c (linux_enable_event_reporting): New function.
3063 (child_post_attach, linux_child_post_startup_inferior)
3064 (child_post_startup_inferior, child_follow_fork)
3065 (linux_handle_extended_wait, kill_inferior): New functions.
3067 2003-08-16 Andrew Cagney <cagney@redhat.com>
3069 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3070 * gdbarch.h, gdbarch.c: Re-generate.
3072 2003-08-16 Mark Kettenis <kettenis@gnu.org>
3074 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3076 2003-08-16 Andrew Cagney <cagney@redhat.com>
3078 * NEWS: Mention that "set prompt-escape-char" was deleted.
3079 * top.c (get_prompt_1): Delete function.
3080 (gdb_prompt_escape):
3081 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3082 prompt-escape-char" command.
3083 (MAX_PROMPT_SIZE): Delete macro.
3084 (get_prompt): Simplify, do not call get_prompt_1.
3086 2003-08-16 Andrew Cagney <cagney@redhat.com>
3088 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3089 -Werror. -Wformat-nonliteral problems.
3091 2003-08-15 J. Brobecker <brobecker@gnat.com>
3093 Further multiarching work mostly for hppa64-*-hpux11:
3094 * hppa-tdep.h: New file.
3095 * hppa-tdep.c: #include hppa-tdep.c.
3096 (hppa32_num_regs): Renamed from hppa_num_regs.
3097 (hppa64_num_regs): New constant.
3098 (hppa64_call_dummy_breakpoint_offset): New constant.
3099 (hppa32_call_dummy_length): New constant.
3100 (hppa64_call_dummy_length): New constant.
3101 (hppa32_stack_align): Make name 32bit explicit.
3102 (hppa32_register_virtual_type): Likewise.
3103 (hppa32_extract_return_value): Likewise.
3104 (hppa32_use_struct_convention): Likewise.
3105 (hppa32_store_return_value): Likewise.
3106 (hppa64_register_virtual_type): New function.
3107 (hppa64_extract_return_value): New function.
3108 (hppa64_use_struct_convention): New function.
3109 (hppa64_store_return_value): New function.
3110 (hppa_frame_locals_address): Remove declaration, function does
3112 (hppa_register_byte): Add support for PA64 ABI.
3113 (hppa_gdbarch_init): Add support for PA64 ABI.
3114 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3115 Make name 32bit explicit.
3116 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3117 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3118 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3119 (hppa64_hpux_frame_base_before_sigtramp): New function.
3120 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3121 * config/pa/tm-hppa64.h: Remove macros that are no longer
3122 necessary now that the gdbarch vector is properly setup.
3123 Transform some macros into function calls. Some minor cleanup.
3124 * config/pa/tm-hppah.h: Update function calls in macros
3125 following the function renaming in hppa-hpux-tdep.c.
3126 * Makefile.in (hppa_tdep_h): New variable.
3127 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3129 2003-08-14 Michael Snyder <msnyder@redhat.com>
3131 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3133 2003-08-13 J. Brobecker <brobecker@gnat.com>
3135 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3136 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3139 2003-08-13 Michael Snyder <msnyder@redhat.com>
3141 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3142 (frv_saved_pc_after_call): Use deprecated ftype.
3143 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3144 (frv_remote_translate_xfer_address): Remove.
3145 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3147 2003-08-13 J. Brobecker <brobecker@gnat.com>
3149 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3150 initialization after the common gdbarch initialization, not before.
3152 2003-08-13 J. Brobecker <brobecker@gnat.com>
3154 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3155 (ADDR_BITS_REMOVE): Remove, redundant.
3157 2003-08-13 J. Brobecker <brobecker@gnat.com>
3159 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3160 gdbarch method to clear the 2 low bits of text addresses.
3162 2003-08-12 Andrew Cagney <cagney@redhat.com>
3164 * Makefile.in (dsrec.o): Update dependencies.
3165 * dsrec.c: Include "gdb_assert.h".
3166 (make_srec): Use snprintf instead of sprintf, use a literal format
3169 2003-08-12 Andrew Cagney <cagney@redhat.com>
3171 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3172 FRAME_OBSTACK_ZALLOC.
3174 2003-08-12 Kevin Buettner <kevinb@redhat.com>
3176 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3179 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3181 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3182 amd64fbsd_sc_reg_offset): Add extern declarations.
3183 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3186 2003-08-11 Ben Elliston <bje@wasabisystems.com>
3188 * MAINTAINERS (write after approval): Update my mail address.
3190 2003-08-10 Andrew Cagney <cagney@redhat.com>
3192 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3194 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3196 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3197 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3198 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3199 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3200 i386bsd_sc_reg_offset): Add extern declarations.
3201 * i386obsd-nat.c: Include "i386-tdep.h"
3202 (_initialize_i386obsd_nat): Remove extern declarations.
3203 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3205 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3208 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3209 instead of frame_read_register.
3210 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3211 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3213 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3214 instead of frame_unwind_unsigned_register. Use
3215 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3216 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3217 instead of read_register. Use builtin_type_void_data_ptr instead
3218 of builtin_type_void_func_ptr when extracting the address of the
3220 (i386_extract_return_value, i386_store_return_value,
3221 i386_pseudo_register_read, i386_pseudo_register_write): Use
3222 register_size instead REGISTER_RAW_SIZE.
3224 2003-08-10 Andrew Cagney <cagney@redhat.com>
3226 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3227 sprintf. Make "name" constant.
3229 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3231 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3232 instead of frame_read_register.
3233 (i387_print_float_info): Use get_frame_register and
3234 get_frame_register_unsigned instead of frame_register_read.
3236 * i386fbsd-nat.c: Include "i386-tdep.h".
3237 (child_resume): Make `eflags' an ULONGEST. Use
3238 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3239 instead of register_read and register_write.
3241 * i386bsd-nat.c (fetch_inferior_registers,
3242 store_inferior_registers): Don't use && at the end of a line.
3243 (_initialize_i386bsd_nat): Fix typo.
3245 * frame.c (_initialize_frame): Add missing backslash.
3247 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3248 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3249 and supply_register instead of manipulating the register buffer
3252 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3253 * config/i386/nm-i386sol2.h
3254 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3256 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3257 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3258 instructions that GCC likes to mingle into the prologue. Fixes
3259 gdb/1253 and gdb/1255.
3261 2003-08-09 Andrew Cagney <cagney@redhat.com>
3264 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3265 * command.h (add_setshow_uinteger_cmd): Declare.
3266 * frame.c (set_backtrace_cmd): New function.
3267 (show_backtrace_cmd): New function.
3268 * frame.c (_initialize_frame): Replace "set/show
3269 backtrace-below-main" with "set/show backtrace past-main". Add
3270 command "set/show backtrace limit".
3271 (backtrace_past_main): Rename "backtrace_below_main".
3272 (backtrace_limit): New variable.
3273 (get_prev_frame): Update. Check the backtrace_limit.
3275 2003-08-09 Andrew Cagney <cagney@redhat.com>
3277 * defs.h (xstrprintf): Declare.
3278 * utils.c (xstrprintf): New function.
3279 * breakpoint.c (insert_breakpoints): Replace sprintf and
3280 non-literal format strings, with xstrprintf and cleanups.
3281 (delete_breakpoint,breakpoint_re_set): Ditto.
3282 (commands_command, insert_breakpoints): Ditto.
3283 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3284 (break_at_finish_command_1): Ditto.
3286 2003-08-09 Andrew Cagney <cagney@redhat.com>
3288 * MAINTAINERS (language support): List Adam Fedor as Objective C
3291 2003-08-08 J. Brobecker <brobecker@gnat.com>
3293 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3294 are now multiarched.
3296 2003-08-08 J. Brobecker <brobecker@gnat.com>
3298 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3299 longer necessary now that hppa64 is partially multiarch'ed.
3301 2003-08-08 Andrew Cagney <cagney@redhat.com>
3303 * interps.c (interp_set): Check for a NULL "old_interp".
3305 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3307 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3308 (install-only): Support DESTDIR.
3309 (uninstall): Likewise.
3310 (install-gdbtk): Likewise.
3312 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
3314 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3315 contains something meaningful at all times.
3317 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
3319 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
3321 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3323 * MAINTAINERS (write after approval): Added self.
3325 2003-08-07 Andrew Cagney <cagney@redhat.com>
3327 * inferior.h (AT_SYMBOL): Define.
3328 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3329 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3330 * mips-tdep.c (mips_call_dummy_address): Delete function.
3331 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3332 set call_dummy_address.
3334 2003-08-07 Andrew Cagney <cagney@redhat.com>
3336 * language.c (op_error): Delete function.
3337 (binop_type_check): Delete function.
3338 * language.h (type_op_error, range_op_error): Delete macros.
3339 (op_error): Delete declaration.
3341 2003-08-07 Andrew Cagney <cagney@redhat.com>
3343 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3345 2003-08-07 Michal Ludvig <mludvig@suse.cz>
3347 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
3348 (x86_64_push_arguments): Skip the red zone.
3350 2003-08-05 Andrew Cagney <cagney@redhat.com>
3352 * reggroups.c (reggroup_next): Check for the final entry.
3354 2003-08-04 Andrew Cagney <cagney@redhat.com>
3356 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3357 * cli/cli-script.c (define_command): Call query directly, instead
3358 of passing it a buffer.
3359 * ocd.c (ocd_error): Pass error a constant format string.
3360 * remote-mips.c (mips_error): Use fputs_filtered.
3362 * solib-svr4.c (_initialize_svr4_solib): Update
3363 register_gdbarch_data call.
3364 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3366 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3367 (register_gdbarch_data): Delete "free" parameter. Update
3369 * gdbarch.h, gdbarch.c: Re-generate.
3370 * reggroups.c (_initialize_reggroup): Update.
3371 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3372 * frame-base.c (_initialize_frame_base): Update.
3373 * frame-unwind.c (_initialize_frame_unwind): Update.
3374 * user-regs.c (_initialize_user_regs): Update.
3375 * remote.c (_initialize_remote): Update.
3376 * regcache.c (_initialize_regcache): Update.
3378 * regcache.c (xfree_regcache_descr): Delete function.
3379 (_initialize_regcache): Update call to register_gdbarch_data.
3380 (init_regcache_descr, init_legacy_regcache_descr): Use
3381 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3383 * remote.c (free_remote_state): Delete function.
3384 (_initialize_remote): Update register_gdbarch_data.
3385 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3386 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3388 2003-08-04 Andrew Cagney <cagney@redhat.com>
3390 * reggroups.c (struct reggroup_el): Define.
3391 (struct reggroups): Delete field "nr_group". Replace array
3392 "group" with a "first" to "last" linked list.
3393 (reggroups_init): Update. Allocate using gdbarch's obstack.
3394 (reggroups_free): Delete function.
3395 (add_group): Update. Add "el" parameter.
3396 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3397 (default_groups): Update.
3398 (reggroup_next): Replace reggroups.
3399 (reggroups_dump): Update.
3400 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3401 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3402 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3404 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
3406 * Makefile.in (tui-interp.o): Update dependencies.
3408 2003-08-04 David Carlton <carlton@kealia.com>
3410 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3411 to internal_error call.
3412 * source.c (forward_search_command): Add "%s" format argument.
3413 (reverse_search_command): Ditto.
3414 * top.c (quit_confirm): Ditto.
3415 * cli/cli-setshow.c (do_setshow_command): Ditto.
3416 * cp-valprint.c (cp_print_class_method): Replace
3417 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3418 (cp_print_class_member): Ditto.
3419 * event-top.c (command_line_handler): Ditto.
3420 * linux-proc.c (linux_info_proc_cmd): Ditto.
3421 * p-typeprint.c (pascal_type_print_base): Ditto.
3422 * p-valprint.c (pascal_object_print_class_method): Ditto.
3423 (pascal_object_print_class_member): Ditto.
3424 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3425 * remote.c (remote_cisco_section_offsets): Ditto.
3426 * top.c (command_line_input): Ditto.
3427 * utils.c (vwarning,error_stream,quit): Ditto.
3428 * valprint.c (print_floating,print_binary_chars)
3429 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3431 2003-08-04 Andrew Cagney <cagney@redhat.com>
3433 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3435 2003-08-02 Andrew Cagney <cagney@redhat.com>
3437 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3438 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3441 2003-08-02 Andrew Cagney <cagney@redhat.com>
3443 * Makefile.in: Update all dependencies and definitions.
3445 2003-08-02 Adam Fedor <fedor@gnu.org>
3447 * linespec.c (is_objc_method_format): New function
3448 (decode_line_1, locate_first_half): Use it.
3451 2003-08-01 Andrew Cagney <cagney@redhat.com>
3453 * NEWS: Mention that m32r is multi-arch.
3454 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3455 * configure.tgt: Recognize m32r-*-*.
3456 * config/m32r/tm-m32r.h: Delete file.
3457 * config/m32r/m32r.mt: New file.
3458 * m32r-rom.c (m32r_upload_command): Use hostent only when
3459 gethostname succeeds, in order to avoid a compilation
3461 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3464 2003-08-01 Michael Snyder <msnyder@redhat.com>
3466 * sh-tdep.c (sh_frame_align): New gdbarch method.
3467 (sh_gdbarch_init): Set up frame_align method.
3469 2003-07-31 Michael Snyder <msnyder@redhat.com>
3471 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3472 which is already covered by the new frames infrastructure.
3474 2003-07-31 Andrew Cagney <cagney@redhat.com>
3476 * user-regs.c (struct user_reg): Add "next" link.
3477 (struct user_regs): Replace "user" with "first" and "last" links.
3478 (append_user_reg): Add pre-allocated "reg" parameter.
3479 (builtin_user_regs): Provide initial value for "last".
3480 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3481 (user_regs_init): Allocate memory from the gdbarch obstack.
3482 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3483 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3485 (usernum_to_user_reg): New function.
3486 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3487 (value_of_user_reg): Use usernum_to_user_reg.
3488 (user_regs_free): Delete function.
3489 (_initialize_user_regs): Update register_gdbarch_data call.
3491 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
3493 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3495 2003-07-30 Michael Snyder <msnyder@redhat.com>
3497 * value.h (value_being_returned): Add a struct_addr argument.
3498 * infcall.c (call_function_by_hand): Pass struct_addr to
3499 value_being_returned.
3500 * infcmd.c (print_return_value): Pass zero as struct_addr.
3501 * values.c (value_being_returned): If struct_addr is passed,
3502 use it instead of trying to recover it from the inferior.
3504 2003-07-30 Kevin Buettner <kevinb@redhat.com>
3506 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3507 the prologue analyzer won't need to attempt to extract the pc
3508 value from the woefully incomplete dummy frame.
3509 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3510 possible. Disable code which modifies the frame.
3512 2003-07-28 Andrew Cagney <cagney@redhat.com>
3514 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3516 (annotate_breakpoints_table, annotate_record): Ditto.
3517 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3518 (annotate_field_name_end, annotate_field_value): Ditto.
3519 (annotate_field_end, annotate_frame_source_begin): Ditto.
3520 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3521 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3522 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3523 (annotate_frame_address_end, annotate_frame_address): Ditto.
3524 (annotate_frame_args, annotate_frame_end): Ditto.
3525 (annotate_frame_where, annotate_arg_begin): Ditto.
3526 (annotate_arg_name_end, annotate_arg_value): Ditto.
3527 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3528 (annotate_function_call, annotate_signal_name): Ditto.
3529 (annotate_signal_string, annotate_signal_name_end): Ditto.
3530 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3531 (annotate_value_begin, annotate_value_history_value): Ditto.
3532 (annotate_value_history_end, annotate_value_end): Ditto.
3533 (annotate_display_begin, annotate_display_number_end): Ditto.
3534 (annotate_display_format, annotate_display_expression): Ditto.
3535 (annotate_display_expression_end, annotate_display_value): Ditto.
3536 (annotate_display_end, annotate_array_section_begin): Ditto.
3537 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3538 (annotate_elt, annotate_array_section_end): Ditto.
3540 2003-07-28 Andrew Cagney <cagney@redhat.com>
3542 * regcache.c (struct regcache_descr): Update comments on
3544 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3545 sizeof_raw_register_valid_p.
3546 (init_regcache_descr): Set nr_raw_registers and
3547 sizeof_raw_register_valid_p before calling
3548 init_legacy_regcache_descr.
3550 2003-07-28 Andrew Cagney <cagney@redhat.com>
3552 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3555 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
3557 * thread.c (info_threads_command): Use get_selected_frame ().
3558 Check that there is at least one non-sentinel frame.
3560 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3562 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3563 (m68hc11_pop_frame): Remove.
3564 (m68hc11_frame_saved_pc): Remove.
3565 (m68hc11_frame_chain): Remove.
3566 (m68hc11_frame_init_saved_regs): Remove.
3567 (m68hc11_init_extra_frame_info): Remove.
3568 (m68hc11_store_struct_return): Remove.
3569 (m68hc11_saved_pc_after_call): Remove.
3571 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3573 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3574 frame unwind information.
3575 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3576 and adapted for frame unwinding.
3577 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3578 (m68hc11_unwind_pc): New function.
3579 (m68hc11_frame_unwind_cache): New function to analyze frames.
3580 (m68hc11_frame_this_id): New function to create new frame struct.
3581 (m68hc11_frame_prev_register): New function to unwind a register from
3583 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3584 (m68hc11_frame_p): New function for the above.
3585 (m68hc11_frame_base_address): New function to return fp of frame.
3586 (m68hc11_frame_args_address): Update for frame.
3587 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3588 (m68hc11_unwind_sp): New function.
3589 (m68hc11_unwind_dummy_id): New function.
3590 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3593 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3595 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3596 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3597 when we are beyond the current pc.
3599 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3601 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3602 from m68hc11_push_arguments.
3603 (m68hc11_push_arguments): Remove.
3604 (m68hc11_push_return_address): Remove.
3605 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3606 handlers; remove deprecated_extra_stack_alignment_needed.
3608 2003-07-27 Andrew Cagney <cagney@redhat.com>
3610 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3611 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3612 REAL_PC and not the pointer.
3613 * hppa-hpux-tdep.c: Include frame.h
3615 2003-07-27 Andrew Cagney <cagney@redhat.com>
3617 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3618 GDB_MULTI_ACH_PARTIAL.
3620 2003-07-27 Andrew Cagney <cagney@redhat.com>
3622 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3623 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3624 operator at start and not end of line.
3625 (decode_prologue): Ditto.
3626 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3627 frame_unwind_register_unsigned instead of
3628 frame_unwind_unsigned_register.
3629 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3631 (m32r_push_dummy_call): Use register_size instead of
3633 (m32r_frame_sniffer): Replace m32r_frame_p.
3634 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3635 * m32r-rom.c (report_transfer_performance): Delete extern
3637 (m32r_load, m32r_upload_command): Use print_transfer_performance
3638 instead of report_transfer_performance.
3639 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3640 / add_show_from_set.
3642 2003-07-26 Andrew Cagney <cagney@redhat.com>
3644 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3645 store_return_value and extract_struct_value_address.
3647 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
3650 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3651 NULL, default to the section containing PC.
3653 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3655 * NEWS: Mention "regs" deprecated for m68hc11 too.
3657 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3658 (m68hc11_print_register): New function to print out one register.
3659 (m68hc11_print_registers_info): New function to print registers.
3660 (show_regs): Deprecate and use the above.
3661 (m68hc11_gdbarch_init): Install the print_registers_info.
3663 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3665 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3666 that we have a SIGTRAP before returning non-zero.
3668 2003-07-23 Michal Ludvig <mludvig@suse.cz>
3669 Elena Zannoni <ezannoni@redhat.com>
3671 * linespec.c (decode_line_2): Avoid crash if
3672 find_function_start_sal() returns empty record.
3674 2003-07-23 Andreas Schwab <schwab@suse.de>
3676 * ia64-tdep.c (ia64_print_insn): New function.
3677 (ia64_gdbarch_init): Set print_insn to it.
3678 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3679 deprecated_tm_print_insn_info.
3681 2003-07-22 Michael Snyder <msnyder@redhat.com>
3683 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3684 handle 8-bit returns (long long).
3685 (h8300h_extract_return_value): Ditto.
3686 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3688 2003-07-22 Andrew Cagney <cagney@redhat.com>
3690 * gdbarch.c Include "gdb_obstack.h".
3691 (struct gdbarch): Add an "obstack".
3692 (alloc_gdbarch_data): Allocate the gdbarch data using
3693 GDBARCH_OBSTACK_CALLOC.
3694 (free_gdbarch_data): Delete function.
3695 (gdbarch_obstack_zalloc): New function.
3696 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3697 Assert that the architecture is not initialized.
3698 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3699 vector from the obstack.
3700 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3701 architecture obstack.
3702 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3703 (set_gdbarch_data): Assert that the data is not initialized.
3704 (struct gdbarch_data): Delete member "free".
3705 (register_gdbarch_data): Do not initialize "free".
3706 * gdbarch.h, gdbarch.c: Re-generate.
3708 2003-07-22 Andrew Cagney <cagney@redhat.com>
3710 * configure.in (build_warnings): Add -Wformat-nonliteral.
3711 * configure: Re-generate.
3713 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3715 * dwarf2loc.c (locexpr_describe_location): Fix typos.
3717 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3719 * findvar.c (read_var_value): Remove case for thread local storage
3720 variables. It is now entirely handled by the dwarf2 location
3722 * printcmd.c (address_info): Ditto.
3723 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3725 (struct symbol): Remove objfile field, which was used by
3726 LOC_THREAD_LOCAL_STATIC only.
3727 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3728 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3729 usage of objfile pointer.
3730 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3731 thread local variables.
3732 Add include of objfiles.h.
3733 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3735 * Makefile.in (dwarf2loc.o): Update dependencies.
3737 2003-07-22 Andrew Cagney <cagney@redhat.com>
3739 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3741 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3742 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3743 (struct value): Add opaque declaration.
3744 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3746 2003-07-21 Andrew Cagney <cagney@redhat.com>
3748 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3749 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3751 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3753 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3754 regcache_cooked_read_unsigned instead of read_register.
3755 (m68hc11_saved_pc_after_call): Likewise.
3756 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3757 instead of write_register.
3758 (m68hc11_register_type): New function.
3759 (m68hc11_register_virtual_type): Remove.
3760 (m68hc11_store_return_value): Convert to use the regcache.
3761 (m68hc11_extract_struct_value_address): Likewise.
3762 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3763 m68hc11_register_type; undeprecate store_return_value and
3764 extract_struct_value_address.
3766 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3768 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3769 and translate to use regcache.
3770 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3772 2003-07-18 Andrew Cagney <cagney@redhat.com>
3774 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3775 * gdbarch.h, gdbarch.c: Re-generate.
3776 * i386-tdep.c (i386_gdbarch_init): Do not set
3777 DWARF2_BUILD_FRAME_INFO.
3778 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3780 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3781 DWARF2_BUILD_FRAME_INFO.
3783 2003-07-18 Andrew Cagney <cagney@redhat.com>
3785 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3786 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3788 2003-07-18 Andrew Cagney <cagney@redhat.com>
3790 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3791 frame_unwind_address_in_block, instead of frame_pc_unwind.
3792 (dwarf2_frame_cache): Ditto.
3794 2003-07-18 Andrew Cagney <cagney@redhat.com>
3796 * user-regs.h (struct gdbarch): Declare opaque.
3797 * ui-out.h (struct ui_file): Declare opaque.
3798 * dwarf2-frame.h (struct frame_info): Declare opaque.
3800 2003-07-18 Kris Warkentin <kewarken@qnx.com>
3802 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3804 (procfs_meminfo): Change strerror to safe_strerror.
3805 (procfs_can_run): Remove K&R badness.
3807 2003-07-17 Michael Snyder <msnyder@redhat.com>
3809 * remote-sim.c: Comment typo fix.
3811 2003-07-17 Andrew Cagney <cagney@redhat.com>
3813 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3815 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3816 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3817 GDB_MULTI_ARCH_PARTIAL.
3819 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3821 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3822 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3823 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3825 2003-07-16 Theodore A. Roth <troth@openavr.org>
3827 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3829 (avr_frame_unwind_cache): Don't unwind FP for main.
3831 Save the computed prev_sp.
3832 (avr_saved_regs_unwinder): Remove function.
3833 (avr_frame_prev_register): Use PC unwind logic from
3834 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3836 2003-07-16 Andrew Cagney <cagney@redhat.com>
3838 * frame-base.h (frame_base_p_ftype): Delete definition.
3839 (frame_base_append_predicate): Delete declaration.
3840 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3841 (frame_unwind_append_predicate): Delete declaration.
3842 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3843 (append_predicate): Delete parameter "p".
3844 (frame_unwind_append_predicate): Delete function.
3845 (frame_unwind_append_sniffer): Update call to append_predicate.
3846 (frame_unwind_free): Delete function.
3847 (_initialize_frame_unwind): Pass NULL as "free" to
3848 register_gdbarch_data.
3849 (frame_unwind_init): Append the dummy_frame_sniffer.
3850 (frame_unwind_find_by_frame): Simplify.
3851 * frame-base.c (struct frame_base_table): Delete field "p".
3852 (append_predicate): Delete parameter "p".
3853 (frame_base_append_predicate): Delete function.
3854 (frame_base_append_sniffer): Update call to append_predicate.
3855 (frame_base_free): Delete function.
3856 (frame_base_find_by_frame): Simplify.
3857 (_initialize_frame_base): Pass NULL as "free" to
3858 register_gdbarch_data.
3859 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3860 (x86_64_sigtramp_frame_sniffer): Replace
3861 "x86_64_sigtramp_frame_p".
3862 (x86_64_init_abi): Set the frame unwind sniffers.
3863 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3864 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3865 (m68k_gdbarch_init): Set the frame unwind sniffers.
3866 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3867 "i386_sigtramp_frame_p".
3868 (i386_frame_sniffer): Replace "i386_frame_p".
3869 (i386_gdbarch_init): Set the frame unwind sniffers.
3870 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3871 (avr_gdbarch_init): Set the frame unwind sniffers.
3872 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3873 "alpha_sigtramp_frame_p"
3874 (alpha_heuristic_frame_sniffer): Replace
3875 "alpha_heuristic_frame_p".
3876 (alpha_gdbarch_init): Set the frame unwind sniffers.
3877 (alpha_dwarf2_init_abi): Ditto.
3878 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3879 "alpha_debug_frame_p".
3880 (alpha_mdebug_frame_base_sniffer): Replace
3881 "alpha_mdebug_frame_base_p".
3882 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3883 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3884 (d10v_gdbarch_init): Set the frame unwind sniffer.
3885 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3886 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3887 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3888 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3889 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3890 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3892 2003-07-16 Michael Snyder <msnyder@redhat.com>
3894 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3895 should go thru sh_dsp_register_sim_regno, else the dsp regs
3896 will not get the right values.
3898 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3900 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3901 deprecated_store_floating by call to store_typed_floating.
3902 (sh_sh4_register_convert_to_raw): Substitute call to
3903 deprecated_extract_floating by call to extract_typed_floating.
3905 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3907 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3909 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3911 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3912 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3913 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3915 (do_pseudo_register): Remove.
3916 (sh_push_dummy_code): New function.
3917 (sh64_store_struct_return): Rename from sh_store_struct_return.
3918 Only called for sh64 now.
3919 (sh_extract_struct_value_address): Regcache'ify.
3920 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3921 and accomodate new tasks.
3922 (sh64_push_return_address): Rename from sh_push_return_address.
3923 Only called for sh64 now.
3924 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3926 (sh3e_sh4_extract_return_value): Regcache'ify.
3927 (sh_default_store_return_value): Ditto.
3928 (sh3e_sh4_store_return_value): Ditto.
3929 (sh_default_register_byte): Remove.
3930 (sh_sh4_register_byte): Remove.
3931 (sh_default_register_raw_size): Remove.
3932 (sh_sh4_register_raw_size): Remove.
3933 (sh_register_virtual_size): Remove.
3934 (sh_sh3e_register_virtual_type): Remove.
3935 (sh_sh3e_register_type): New function.
3936 (sh_sh4_register_virtual_type): Remove.
3937 (sh_sh4_register_type): New function.
3938 (sh_default_register_virtual_type): Remove.
3939 (sh_default_register_type): New function.
3940 (do_fv_register_info): Add parameters to accomodate call from
3941 sh_print_registers_info.
3942 (do_dr_register_info): Ditto.
3943 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3944 Add parameters to accomodate call from sh_print_registers_info.
3945 (sh_do_fp_register): Ditto.
3946 (sh64_do_pseudo_register): Call do_dr_register_info,
3947 do_fv_register_info and sh_do_fp_register with default parameters.
3948 (sh_do_register): Add parameters to accomodate call from
3949 sh_print_registers_info.
3950 (sh_print_register): Ditto.
3951 (sh_print_registers_info): Rename from sh_do_registers_info.
3952 Add parameters to be used as gdbarch_print_registers_info
3953 implementation. Accomodate removed do_pseudo_register function
3955 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3956 function pointer. Call sh_print_register with default parameters.
3957 (sh64_do_registers_info): Call sh_print_registers_info instead of
3958 sh_do_registers_info.
3959 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3960 detection of deprecated vs. non-deprecated functionality.
3961 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3962 function pointer assignments by direct function calls.
3964 2003-07-15 Andrew Cagney <cagney@redhat.com>
3966 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3967 (frame_register_unwind, create_new_frame): Ditto.
3968 (legacy_get_prev_frame, get_frame_type): Ditto.
3969 (get_frame_base_address): Use frame_base_find_by_frame.
3970 (get_frame_locals_address): Use frame_base_find_by_frame.
3971 (get_frame_args_address): Use frame_base_find_by_frame.
3972 * frame-base.h (frame_base_sniffer_ftype): Declare.
3973 (frame_base_append_sniffer): Declare.
3974 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3975 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3976 (frame_base_append_sniffer): New function.
3977 (frame_base_append_predicate): Add a NULL sniffer.
3978 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3979 (struct frame_base_table): Add "sniffer".
3980 (frame_base_free): Free the "sniffer" table.
3981 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3982 (frame_unwind_append_sniffer): Declare.
3983 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3984 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3985 (struct frame_unwind_table): Add "sniffer", delete "middle".
3986 (append_predicate): Add "sniffer" parameter, append the sniffer.
3987 (frame_unwind_init): Update append_predicate call.
3988 (frame_unwind_append_sniffer): New function.
3989 (frame_unwind_append_predicate): Update append_predicate call.
3990 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3992 2003-07-15 Andrew Cagney <cagney@redhat.com>
3994 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3995 before code inhibiting repeated unwind attempts. Add to
3996 commentary on that test's problems.
3997 * blockframe.c (inside_main_func): Look for "main" in the minimal
3999 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4002 2003-07-15 Andrew Cagney <cagney@redhat.com>
4004 * complaints.c (struct explanation): Define.
4005 (struct complaints): Change type of "explanation" to "struct
4007 (symfile_explanations): Convert to a "struct explanation" table.
4008 (vcomplaint): Update.
4010 2003-07-15 Michal Ludvig <mludvig@suse.cz>
4012 * x86-64-linux-nat.c (regmap): Removed.
4013 (supply_gregset, fill_gregset): Call
4014 x86_64_linux_(fill,supply)_gregset functions.
4015 * x86-64-linux-tdep.c (USER_*): New defines.
4016 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4017 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4019 (fetch_core_registers): Ditto.
4020 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4021 * x86-64-linux-tdep.h: New file.
4022 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4024 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4026 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4028 * x86-64-tdep.c (x86_64_store_return_value): Use
4029 regcache_cooked_write_part instead of regcache_cooked_write.
4031 * configure.host: Add x86_64-*-freebsd*.
4032 * configure.tgt: Add x86_64-*-freebsd*.
4033 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4034 * amd64fbsd-nat.c: New file.
4035 * amd64fbsd-tdep.c: New file.
4036 * config/i386/nm-fbsd64.h: New file.
4037 * config/i386/fbsd64.mh: New file.
4038 * config/i386/fbsd64.mt: New file.
4040 2003-07-11 Mark Kettenis <kettenis@gnu.org>
4042 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4043 `sc_regs_offset' and `sc_fpregs_offset'.
4044 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4045 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4046 (alpha_sigtramp_register_address): Rewrite to use new members of
4047 `struct gdbarch_tdep'.
4048 (alpha_gdbarch_init): Initialize new members of struct
4050 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4051 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4052 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4053 (alphafbsd_pc_in_sigtramp): Implement.
4054 (alphafbsd_sigtramp_offset): New function.
4055 (alphafbsd_sigcontext_addr): New function.
4056 (alphafbsd_init_abi): Initialize signal trampoline related members
4057 of `struct gdbarch_tdep'.
4058 (_initialize_alphafbsd_tdep): Add prototype.
4060 2003-07-11 Theodore A. Roth <troth@openavr.org>
4062 * Makefile.in (install-only): Quote sed expression when generating
4065 2003-07-11 Richard Henderson <rth@redhat.com>
4067 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4068 * dwarf2-frame.c: Include complaints.h.
4069 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4070 variable initialization; return NULL on error.
4071 (decode_frame_entry): New.
4073 2003-07-11 Andrew Cagney <cagney@redhat.com>
4075 * frame.h (frame_address_in_block): Delete declaration.
4076 * blockframe.c (frame_address_in_block): Delete function.
4077 (get_frame_block): Use get_frame_address_in_block.
4078 (block_innermost_frame): Ditto.
4079 * stack.c (print_frame, backtrace_command_1): Ditto.
4081 * frame.h (get_frame_address_in_block): Declare.
4082 (frame_unwind_address_in_block): Declare.
4083 * frame.c (frame_unwind_address_in_block): New function.
4084 (get_frame_address_in_block): New function.
4086 2003-07-10 Andrew Cagney <cagney@redhat.com>
4088 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4089 pre-default. Note: re-generate has no effect.
4091 2003-07-10 Andrew Cagney <cagney@redhat.com>
4093 * gdbarch.sh: When a variable, but not a function, compare against
4094 0. Fix problem in previous patch.
4095 * gdbarch.c: Re-generate.
4097 2003-07-10 Andrew Cagney <cagney@redhat.com>
4099 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4100 functions against NULL, not 0.
4101 * gdbarch.c: Re-generate.
4103 2003-07-10 Fred Fish <fnf@ninemoons.com>
4105 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4106 null string instead of a null pointer.
4107 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4109 2003-07-09 Michael Snyder <msnyder@redhat.com>
4111 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4113 2003-07-09 Mark Kettenis <kettenis@gnu.org>
4115 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4116 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4117 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4118 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4119 * x86-64-tdep.c: ... from here.
4121 2003-07-09 Andreas Schwab <schwab@suse.de>
4123 * m68k-tdep.h (enum struct_return): Define.
4124 (struct gdbarch_tdep): Add struct_return.
4125 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4126 bytes are padded to the right, not to the left. Pass struct value
4127 address in register %a1, not on stack.
4128 (m68k_use_struct_convention): New function.
4129 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4130 struct_return in tdep to pcc_struct_return.
4131 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4134 2003-07-09 Joel Brobecker <brobecker@gnat.com>
4136 * somread.c (som_symfile_offsets): Fix compilation error.
4138 2003-07-09 Andrew Cagney <cagney@redhat.com>
4140 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4141 Add comments about the checks.
4143 2003-07-08 Andrew Cagney <cagney@redhat.com>
4145 * Makefile.in: Make dependency section headers consistent.
4146 (config_h): Move to $BUILD headers section.
4147 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4148 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4149 (ada-exp.tab.c): Move to YACC/LEX section.
4150 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4151 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4153 2003-07-08 Kris Warkentin <kewarken@qnx.com>
4155 * nto-procfs.c: Cleaned up a bunch of ARI hits.
4156 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4157 of strerror with safe_strerror, use ISO C function definitions,
4158 and replace instances of sprintf with snprintf.
4160 2003-07-07 Andrew Cagney <cagney@redhat.com>
4162 * frame.c (get_prev_frame): Enable check for identical frames.
4163 Update comments. Update error messages.
4165 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4167 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4169 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4171 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4172 sort_symtab_syms, no longer necessary.
4174 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4176 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4178 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4180 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4181 (mips_register_byte): Likewise.
4183 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4185 * Makefile.in (sparc_tdep_h): New.
4186 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4187 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4188 * sparc-linux-nat.c: Include "sparc-tdep.h".
4189 * sparc-nat.c: Likewise.
4190 * sparc-tdep.c: Likewise.
4191 * sparc64nbsd-nat.c: Likewise.
4192 * sparcnbsd-nat.c: Likewise.
4193 * sparcnbsd-tdep.c: Likewise.
4194 * sparc-tdep.h: New file.
4195 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4196 and sparc_npc_regnum.
4198 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4200 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4201 (mips_linux_cannot_store_register): List supported instead of
4202 unsupported registers.
4204 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4206 * disasm.c (dump_insns): Separate instructions from addresses.
4208 2003-07-07 Andreas Schwab <schwab@suse.de>
4210 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4212 * m68k-tdep.c (NUM_FREGS): Delete.
4213 (SIG_PC_FP_OFFSET): Delete.
4214 (TARGET_M68K): Delete.
4215 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4216 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4217 P_MOVEL_SP, P_MOVEML_SP): Define.
4218 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4220 (m68k_register_raw_size): Delete.
4221 (m68k_register_virtual_size): Delete.
4222 (m68k_register_type): Renamed from m68k_register_virtual_type and
4223 add gdbarch argument.
4224 (m68k_store_struct_return): Delete.
4225 (m68k_deprecated_extract_return_value): Delete.
4226 (m68k_deprecated_extract_struct_value_address): Delete.
4227 (m68k_frame_chain): Delete.
4228 (m68k_frame_saved_pc): Delete.
4229 (m68k_fix_call_dummy): Delete.
4230 (m68k_push_dummy_frame): Delete.
4231 (m68k_pop_frame): Delete.
4232 (m68k_extract_return_value): New function.
4233 (m68k_store_return_value): Rewrite using regcache.
4234 (m68k_extract_struct_value_address): Rewrite using regcache.
4235 (m68k_push_dummy_call): New function.
4236 (struct m68k_frame_cache): Define.
4237 (m68k_alloc_frame_cache): New function.
4238 (m68k_analyze_frame_setup): New function.
4239 (m68k_analyze_register_saves): New function.
4240 (m68k_analyze_prologue): New function.
4241 (m68k_skip_prologue): Rewrite using above functions.
4242 (m68k_unwind_pc): New function.
4243 (m68k_frame_cache): New function.
4244 (m68k_frame_this_id): New function.
4245 (m68k_frame_prev_register): New function.
4246 (m68k_frame_unwind): New variable.
4247 (m68k_frame_p): New function.
4248 (m68k_sigtramp_frame_cache): New function.
4249 (m68k_sigtramp_frame_this_id): New function.
4250 (m68k_sigtramp_frame_prev_register): New function.
4251 (m68k_sigtramp_frame_unwind): New variable.
4252 (m68k_sigtramp_frame_p): New function.
4253 (m68k_frame_base_address): New function.
4254 (m68k_frame_base): New function.
4255 (m68k_unwind_dummy_id): New function.
4256 (fill_gregset): Use regcache_collect.
4257 (fill_fpregset): Likewise.
4258 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4260 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4261 deprecated_init_frame_pc, deprecated_store_struct_return,
4262 deprecated_extract_return_value, deprecated_store_return_value,
4263 deprecated_frame_chain, deprecated_frame_saved_pc,
4264 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4265 deprecated_register_virtual_size,
4266 deprecated_max_register_raw_size,
4267 deprecated_max_register_virtual_size,
4268 deprecated_register_virtual_type, deprecated_register_size,
4269 deprecated_register_byte, deprecated_register_bytes,
4270 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4271 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4272 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4273 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4274 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4275 deprecated_push_dummy_frame, deprecated_pop_frame,
4276 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4277 only if SYSCALL_TRAP is defined. Set extract_return_value,
4278 store_return_value, extract_struct_value_address, register_type,
4279 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4281 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4282 M68K_MAX_REGISTER_SIZE): Define.
4283 (struct m68k_sigtramp_info): Define.
4284 (struct gdbarch_tdep): Add get_sigtramp_info.
4285 * m68klinux-nat.c (fetch_register): Use register_size instead of
4286 REGISTER_RAW_SIZE. Don't put assignment in if.
4287 (store_register): Likewise.
4288 (fetch_inferior_registers): Likewise.
4289 (store_inferior_registers): Likewise.
4290 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4291 (m68k_linux_frame_saved_pc): Delete.
4292 (m68k_linux_sigcontext_reg_offset,
4293 m68k_linux_ucontext_reg_offset): Define.
4294 (m68k_linux_get_sigtramp_info): New function.
4295 (m68k_linux_extract_return_value): Rewrite using regcache.
4296 (m68k_linux_store_return_value): Likewise.
4297 (m68k_linux_extract_struct_value_address): Likewise.
4298 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4299 Don't set deprecated_frame_saved_pc,
4300 deprecated_extract_return_value, deprecated_store_return_value,
4301 deprecated_extract_struct_value_address. Set
4302 extract_return_value, store_return_value,
4303 extract_struct_value_address.
4305 2003-07-07 Andrew Cagney <cagney@redhat.com>
4307 * expprint.c: Include "user-regs.h" instead of "frame.h".
4308 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4309 frame_map_regnum_to_name.
4310 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4311 (frame_map_name_to_regnum): Simplify, call
4312 user_reg_map_name_to_regnum.
4313 (frame_map_regnum_to_name): Simplify, call
4314 user_reg_map_regnum_to_name.
4315 (frame_register_unwind): Update.
4316 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4317 (_initialize_frame_reg): Call user_reg_add_builtin.
4318 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4319 (value_of_register): Use value_of_user_reg.
4320 * eval.c (evaluate_subexp_standard): Update.
4321 * parse.c (write_dollar_variable): Update.
4322 * d10v-tdep.c (d10v_print_registers_info): Update.
4323 * infcmd.c (registers_info): Update.
4324 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4325 (builtin_regs_h): Delete macro.
4326 (user_regs_h): Define.
4327 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4328 (builtin-regs.o): Delete target.
4329 (user-regs.o): Specify dependencies.
4330 (expprint.o): Update dependencies.
4331 (findvar.o): Update dependencies.
4332 (frame.o): Update dependencies.
4333 (std-regs.o): Update dependencies.
4335 2003-07-06 Christopher Faylor <cgf@redhat.com>
4337 * win32-nat.c (solib_symbols_add): Use one variable for all section
4338 address stuff. Pass variable rather than address of variable to
4339 safe_symbol_file_add.
4341 2003-07-06 Andreas Schwab <schwab@suse.de>
4343 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4345 2003-07-04 Joel Brobecker <brobecker@gnat.com>
4347 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4349 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4351 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4353 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4355 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4356 * config/i386/nto.mh: New file.
4357 * config/i386/nm-nto.h: New file.
4358 * configure.host: Add i[3456]86-*-nto*.
4360 2003-07-03 Joel Brobecker <brobecker@gnat.com>
4362 * remote-vx.c (vx_add_symbols): Fix compilation error.
4364 2003-07-03 Andrew Cagney <cagney@redhat.com>
4366 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4367 * gdbarch.h, gdbarch.c: Re-generate.
4368 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4369 (legacy_register_name): Declare.
4370 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4371 (REGISTER_NAME): Define.
4372 * sparc-tdep.c (legacy_register_name): New function.
4373 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4374 (REGISTER_NAME): Define.
4375 (hppa64_register_name): Declare.
4376 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4377 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4378 (hppa64_register_name): New function.
4379 (hppa_register_name): New function.
4380 * arch-utils.c (legacy_register_name): Delete.
4381 * arch-utils.h (legacy_register_name): Delete.
4383 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
4385 * cli/cli-interp.c (cli_interpreter_resume): Update the
4386 cli_uiout's stream to gdb_stdout.
4388 2003-07-03 Andrew Cagney <cagney@redhat.com>
4390 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4392 * gdbarch.h, gdbarch.c: Re-generate.
4393 * regcache.c (init_regcache_descr): Use legacy code when either
4394 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4396 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4398 * NEWS: Move "set logging" entry into GDB 6.0 section.
4400 2003-07-02 Jim Blandy <jimb@redhat.com>
4402 * s390-tdep.c (struct frame_extra_info): new member:
4403 'stack_bought_valid'.
4404 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4405 initialize fextra_info->stack_bought.
4406 (s390_frameless_function_invocation): Don't trust the value of
4407 fextra_info_ptr->stack_bought unless
4408 fextra_info->stack_bought_valid is set.
4410 New S390 prologue analyzer.
4411 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4412 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4413 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4414 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4415 compute_x_addr, s390_on_stack, s390_store,
4416 s390_get_signal_frame_info): New functions.
4417 (S390_NUM_SPILL_SLOTS): New macro.
4418 (s390_get_frame_info): Rewritten.
4419 (is_arg_reg): Deleted.
4421 Break out the decoding of S/390 instructions into separate
4422 functions, to make it more legible, and easier to check
4424 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4425 is_rx, is_rxe): New functions.
4426 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4427 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4428 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4429 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4430 enums for opcode values. (Is this an improvement?)
4432 2003-07-02 Andrew Cagney <cagney@redhat.com>
4434 * i386-tdep.c: Revert change committed as part of trad-frame code
4437 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4439 * breakpoint.c (insert_catchpoint): Make static.
4441 2003-07-02 Andreas Schwab <schwab@suse.de>
4443 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4444 former ia64_push_arguments and ia64_push_return_address, and use
4445 regcache functions instead of read/write_register.
4446 (ia64_gdbarch_init): Set push_dummy_call instead of
4447 deprecated_push_arguments and deprecated_push_return_address.
4449 2003-07-01 Andreas Jaeger <aj@suse.de>
4451 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4453 Set %rax only to number of SSE registers used.
4455 2003-07-01 Andrew Cagney <cagney@redhat.com>
4457 * trad-frame.h: Update comments, a -1 .addr is reserved.
4458 (trad_frame_value_p, trad_frame_addr_p): Declare.
4459 (trad_frame_reg_p): Declare.
4460 (trad_frame_set_value): Rename trad_frame_register_value.
4461 (trad_frame_set_unknown): Declare.
4462 * trad-frame.c (trad_frame_realreg_p): New function.
4463 (trad_frame_addr_p, trad_frame_value_p): New function.
4464 (trad_frame_set_unknown): New function.
4465 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4466 (trad_frame_prev_register): Use trad_frame_realreg_p,
4467 trad_frame_addr_p and trad_frame_value_p.
4468 (trad_frame_set_value): Rename trad_frame_register_value.
4469 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4470 and trad_frame_set_value.
4472 2003-06-30 Jim Blandy <jimb@redhat.com>
4474 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4475 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4476 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4477 for 16 registers, and then 32 more bytes.
4478 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4480 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4481 Move up in the file, since it's now used by is_simple_arg.
4482 (is_simple_arg): Don't assume registers are four bytes long.
4483 Exclude all double arguments. Extended floats are not simple
4485 (is_power_of_two): New function.
4486 (pass_by_copy_ref): Call is_power_of_two, and check that the
4487 length fits in a register, rather than listing all the acceptable
4488 sizes. Extended floats are not passed by reference.
4489 (s390_push_arguments): Don't assume registers are four bytes long.
4490 Reserve an argument register to point to the buffer for structures
4491 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4492 S390_STACK_FRAME_OVERHEAD.
4494 2003-06-30 Andreas Schwab <schwab@suse.de>
4496 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4497 format error message.
4499 2003-06-30 Joel Brobecker <brobecker@gnat.com>
4501 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4503 2003-06-30 David Carlton <carlton@kealia.com>
4505 Band-aid for PR c++/1245.
4506 * Makefile.in (cp-support.o): Depend on complaints_h.
4507 * cp-support.c: Include complaints.h. Add declaration for
4508 find_last_component.
4509 (cp_find_first_component): Separate code into
4510 cp_find_first_component_aux.
4511 (cp_find_first_component_aux): Call demangled_name_complaint.
4512 (demangled_name_complaint): New.
4514 2003-06-30 Andrew Cagney <cagney@redhat.com>
4516 * remote.c (remote_write_bytes): Explicitly compute and then use
4517 the payload size. Update comments to reflect. Fixes problem of
4518 GDB not sending small packets as found by Fred Fish.
4520 2003-06-30 Andrew Cagney <cagney@redhat.com>
4522 * remote.c (remote_async_wait): Fix -Wformat problem.
4524 2003-06-29 Andrew Cagney <cagney@redhat.com>
4526 * remote.c (remote_wait): Call error, and not warning, when the
4528 (remote_async_wait): Ditto.
4530 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4532 * sparc-tdep.c (sparc_y_regnum): Make external again.
4534 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4536 * cli/cli-logging.c (pop_output_files): Add void to function
4539 2003-06-29 Andrew Cagney <cagney@redhat.com>
4541 * frame.c (frame_register_unwind): Use unsigned char when dumping
4542 the buffer contents.
4544 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
4546 * cli/cli-logging.c: New file.
4547 * cli-out.c (struct ui_out_data): Add original_stream.
4548 (cli_redirect): New function.
4549 (cli_ui_out_impl): Add cli_redirect.
4550 (cli_out_new): Initialize original_stream.
4551 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4552 (uo_redirect, ui_out_redirect): New.
4553 * ui-out.h (struct ui_out_impl): Add redirect member.
4554 (redirect_ftype): New.
4555 (ui_out_redirect): Add prototype.
4556 * Makefile.in: Add rules for cli-logging.c.
4557 * NEWS: Mention "set logging".
4559 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4561 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4563 2003-06-27 Andrew Cagney <cagney@redhat.com>
4565 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4566 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4567 * avr-tdep.c (avr_call_dummy_address): Delete function.
4568 (avr_gdbarch_init): Do not set call_dummy_address.
4570 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4572 * symfile.c (syms_from_objfile): Move variables to inner block.
4573 Move the checks for the non-mainline case a bit earlier to avoid
4574 doing some useless computations.
4576 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4578 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4580 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
4582 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4585 2003-06-26 Michael Chastain <mec@shout.net>
4587 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4588 gdb/testsuite/gdb.c++/pr-1210.exp.
4590 2003-06-26 Andrew Cagney <cagney@redhat.com>
4592 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4593 altivec_expression.h and altivec_registers.h.
4595 2003-06-26 Andrew Cagney <cagney@redhat.com>
4597 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4598 info->mach when MIPS16. Patch suggested by Fred Fish.
4600 2003-06-26 Andrew Cagney <cagney@redhat.com>
4602 * utils.c (internal_vproblem): Print the problem to a reason
4603 buffer and then pass to query. Make the msg variable more local.
4605 2003-06-26 Andrew Cagney <cagney@redhat.com>
4607 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4608 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4609 * gdbarch.h, gdbarch.c: Re-generate.
4610 * frame-base.c (default_frame_args_address): Update. Use
4611 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4613 (default_frame_locals_address): Ditto for
4614 DEPRECATED_FRAME_LOCALS_ADDRESS.
4615 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4616 (vax_frame_num_args): Update.
4617 (vax_gdbarch_init): Update.
4618 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4619 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4620 * mcore-tdep.c (mcore_gdbarch_init): Update.
4621 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4622 * ia64-tdep.c (ia64_gdbarch_init): Update.
4623 * symtab.h (address_class): Update comments.
4624 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4625 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4626 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4627 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4628 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4629 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4630 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4631 * alpha-mdebug-tdep.c: Update.
4632 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4634 2003-06-26 Andreas Jaeger <aj@suse.de>
4636 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4637 of SSE registers so that varargs functions work. Rework handling
4638 of passing arguments on the stack.
4639 (x86_64_store_return_value): Return double and float values in SSE
4642 2003-06-24 Michael Chastain <mec@shout.net>
4644 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4645 the "constructor breakpoints ignored" bug.
4647 2003-06-25 David Carlton <carlton@kealia.com>
4649 * MAINTAINERS: Update e-mail address.
4651 2003-06-24 Jim Blandy <jimb@redhat.com>
4653 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4655 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4657 (ppc_linux_init_abi): Register it as the
4658 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4660 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4661 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4664 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4665 (ppc64_standard_linkage_target): Use it.
4667 2003-06-23 Andrew Cagney <cagney@redhat.com>
4669 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4670 for 0 "int0" and 4 "int32" sized registers.
4671 * gdbtypes.c (builtin_type_int0): Define.
4672 (build_gdbtypes): Initialize builtin_type_int0.
4673 * gdbtypes.h (builtin_type_int0): Declare.
4675 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4677 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4678 as characters are unsigned.
4680 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4683 * dwarfread.c (struct_type): Skip static fields without crashing.
4685 2003-06-22 Andrew Cagney <cagney@redhat.com>
4687 GDB 6.0 branch created.
4689 * PROBLEMS: Update. Empty.
4692 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4694 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4695 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4697 2003-06-22 Andrew Cagney <cagney@redhat.com>
4699 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4700 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4703 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4705 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4708 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4710 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4711 argument of val_print.
4712 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4713 to the address argument of baseclass_offset or target_read_memory.
4714 Do add it to the argument of cp_print_value_fields.
4716 2003-06-21 Andrew Cagney <cagney@redhat.com>
4718 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4719 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4720 instead of 0..NUM_REGS.
4721 (mips_register_reggroup_p): New function.
4722 (mips_pseudo_register_write): New function.
4723 (mips_pseudo_register_read): New function.
4724 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4725 based on the register's type.
4726 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4728 (mips_get_saved_register): Simplify. Assert that REGNO is a
4730 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4731 (mips_register_type): Replace mips_register_virtual_type. Map
4732 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4734 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4735 that the register is cooked / virtual.
4736 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4737 Only get the extra info when needed.
4738 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4739 (mips32_heuristic_proc_desc): Fetch the cooked register.
4740 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4741 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4742 (mips_print_register): Use gdbarch_register_type, instead of
4743 REGISTER_VIRTUAL_TYPE.
4744 (print_gp_register_row): Use gdbarch_register_type, instead of
4745 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4746 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4747 Print the pseudo / cooked registers.
4748 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4749 Print the pseudo / cooked registers.
4750 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4751 REG_NUM is pseudo / cooked.
4752 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4753 (mips_n32n64_xfer_return_value): Ditto.
4754 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4755 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4756 (mips_register_sim_regno): New function.
4757 (mips_gdbarch_init): Set deprecated_register_byte,
4758 register_group_p, pseudo_register_write, pseudo_register_read,
4759 register_sim_regno, and num_pseudo_regs. Set register_type,
4760 instead of register_virtual_type.
4761 * Makefile.in (mips-tdep.o): Update dependencies.
4762 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4763 REGISTER_VIRTUAL_TYPE.
4764 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4765 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4766 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4767 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4768 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4770 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4772 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4773 * cli/cli-cmds.c: Include "gdb_vfork.h".
4774 (shell_escape): Use vfork.
4776 2003-06-21 Andrew Cagney <cagney@redhat.com>
4778 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4779 32 bit floating-point register saves.
4781 * frame.h (deprecated_unwind_get_saved_register): Delete.
4782 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4783 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4784 and deprecated_get_next_frame_hack instead of
4785 deprecated_unwind_get_saved_register.
4787 * mips-tdep.c (mips_dump_tdep): Do not print
4788 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4790 * frame.c (get_frame_register): New function.
4791 (frame_unwind_register_signed): New function.
4792 (get_frame_register_signed): New function.
4793 (frame_unwind_register_unsigned): New function.
4794 (get_frame_register_unsigned): New function.
4795 * frame.h: Add comments on naming schema.
4796 (get_frame_register, frame_unwind_register_signed): Declare.
4797 (get_frame_register_signed, get_frame_register_signed): Declare.
4798 (frame_unwind_register_unsigned): Declare.
4799 (get_frame_register_unsigned): Declare.
4801 2003-06-20 Theodore A. Roth <troth@openavr.org>
4803 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4805 2003-06-20 Theodore A. Roth <troth@openavr.org>
4807 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4808 (avr_read_sp): Ditto.
4810 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
4812 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4813 * config/arm/nm-linux.h: Likewise.
4814 * config/arm/tm-linux.h: Likewise.
4815 * config/ia64/nm-linux.h: Likewise.
4816 * config/ia64/tm-ia64.h: Likewise.
4817 * config/s390/tm-linux.h: Likewise.
4818 * config/s390/tm-s390.h: Likewise.
4819 * s390-nat.c: Likewise.
4820 * s390-tdep.c: Likewise.
4822 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4823 * config/ia64/linux.mt: Likewise.
4824 * config/m68k/linux.mh: Likewise.
4825 * config/mips/linux.mt: Likewise.
4826 * config/powerpc/linux.mh: Likewise.
4827 * config/sh/linux.mt: Likewise.
4829 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4831 * solib.c (solib_open): Change tests for whether to search
4832 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4835 2003-06-19 Theodore A. Roth <troth@openavr.org>
4837 * avr-tdep.c (avr_frame_address): Delete function.
4838 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4839 set_gdbarch_frame_args_address.
4841 2003-06-19 Andrew Cagney <cagney@redhat.com>
4843 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4844 (REGISTER_CONVERT_FROM_TYPE): Delete.
4845 (mips_register_convert_to_type): Delete declaration.
4846 (mips_register_convert_from_type): Delete declaration.
4847 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4850 2003-06-19 Michael Snyder <msnyder@redhat.com>
4852 * linux-nat.h: New file.
4853 * linux-nat.c: Include linux-nat.h.
4854 * lin-lwp.c: Include linux-nat.h.
4855 Move struct lwp_info def to linux-nat.h.
4856 * linux-proc.c: Include linux-nat.h.
4857 (linux_make_note_section): Iterate over lwps instead of threads.
4858 (linux_do_thread_registers): Use lwp instead of merged pid.
4859 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4860 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4861 Add dependency on linux_nat_h.
4863 2003-06-19 Theodore A. Roth <troth@openavr.org>
4865 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4867 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4869 * varobj.c (get_type, get_target_type): Use check_typedef.
4871 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4873 * breakpoint.c (insert_catchpoint): Call internal_error.
4875 2003-06-19 Theodore A. Roth <troth@openavr.org>
4877 * avr-tdep.c (avr_push_dummy_code): Delete function.
4878 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4880 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4882 * arch-utils.c (default_prepare_to_proceed): Remove.
4883 (generic_prepare_to_proceed): Remove.
4884 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4885 (generic_prepare_to_proceed): Remove prototype.
4886 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4887 * gdbarch.c: Regenerate.
4888 * gdbarch.h: Regenerate.
4889 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4890 * hppah-nat.c (hppa_switched_threads): Remove.
4891 * infrun.c (prepare_to_proceed): New static function, copied from
4892 generic_prepare_to_proceed. Remove select_it argument.
4893 (proceed): Call prepare_to_proceed.
4894 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4896 (ptrace_wait): Don't set the removed variables.
4897 (hppa_switched_threads): Remove.
4898 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4899 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4900 (lin_lwp_prepare_to_proceed): Remove prototype.
4901 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4902 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4904 2003-06-18 Theodore A. Roth <troth@openavr.org>
4906 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4908 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4909 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4910 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4911 (AVR_PROLOGUE_*): Enumerate prologue types.
4912 (struct frame_extra_info): Remove.
4913 (struct avr_unwind_cache): Define.
4914 (avr_write_sp): Delete function.
4915 (avr_read_fp): Ditto.
4916 (avr_init_extra_frame_info): Ditto.
4917 (avr_pop_frame): Ditto.
4918 (avr_frame_saved_pc): Ditto.
4919 (avr_saved_pc_after_call): Ditto.
4920 (avr_push_return_address): Ditto.
4921 (avr_frame_chain): Ditto.
4922 (avr_store_struct_return): Ditto.
4923 (avr_push_arguments): Ditto.
4924 (avr_scan_prologue): Update comments. Changed to set up the info for
4925 cache unwinding. Now returns end of prologue PC.
4926 (avr_skip_prologue): Better handling of functions lacking a prologue
4927 by using avr_scan_prologue.
4928 (avr_scan_arg_moves): New function.
4929 (avr_saved_regs_unwinder): Ditto.
4930 (avr_frame_unwind_cache): Ditto.
4931 (avr_unwind_pc): Ditto.
4932 (avr_frame_this_id): Ditto.
4933 (avr_frame_prev_register): Ditto.
4934 (avr_frame_p): Ditto.
4935 (avr_frame_base_address ): Ditto.
4936 (avr_unwind_dummy_id): Ditto.
4937 (avr_push_dummy_code): Ditto.
4938 (push_stack_item): Ditto.
4939 (pop_stack_item): Ditto.
4940 (avr_push_dummy_call): Ditto.
4941 (struct stack_item): Define.
4942 (avr_frame_unwind): Declare structure.
4943 (avr_frame_base): Ditto.
4944 (avr_gdbarch_init): Remove calls to
4945 set_gdbarch_deprecated_init_frame_pc,
4946 set_gdbarch_deprecated_target_read_fp,
4947 set_gdbarch_deprecated_dummy_write_sp,
4948 set_gdbarch_deprecated_fp_regnum,
4949 set_gdbarch_deprecated_push_arguments,
4950 set_gdbarch_deprecated_push_return_address,
4951 set_gdbarch_deprecated_pop_frame,
4952 set_gdbarch_deprecated_store_struct_return,
4953 set_gdbarch_deprecated_frame_init_saved_regs,
4954 set_gdbarch_deprecated_init_extra_frame_info,
4955 set_gdbarch_deprecated_frame_chain,
4956 set_gdbarch_deprecated_frame_saved_pc,
4957 set_gdbarch_deprecated_saved_pc_after_call.
4958 Add calls to set_gdbarch_push_dummy_call,
4959 set_gdbarch_push_dummy_code,
4960 frame_unwind_append_predicate,
4961 frame_base_set_default,
4962 set_gdbarch_unwind_dummy_id,
4963 set_gdbarch_unwind_pc.
4966 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4968 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4969 registers for H8/300S.
4970 (h8300_print_registers_info): Ditto.
4971 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4973 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4975 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4976 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4977 (lin_lwp_wait): Likewise. Update comments.
4978 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4979 (pull_pid_from_list, linux_record_stopped_pid): New.
4981 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4983 * ada-lang.c (scan_discrim_bound): Name first argument.
4984 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4985 declared by ALL_BLOCK_SYMBOLS.
4987 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4989 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4990 ("regcache.h"): Include it.
4991 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4993 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4995 * NEWS: Mention gdbserver detach change and "disconnect" command.
4996 * infcmd.c (disconnect_command): New function.
4997 (_initialize_infcmd): Add ``disconnect'' command.
4998 * remote.c (remote_async_detach): Delete.
4999 (remote_detach): Merge remote_async_detach.
5000 (remote_disconnect): New.
5001 (init_remote_ops): Set to_disconnect.
5002 (init_remote_cisco_ops): Likewise.
5003 (init_remote_async_ops): Likewise. Use remote_detach.
5004 * target.c (cleanup_target): Default to_disconnect.
5005 (update_current_target): Inherit to_disconnect.
5006 (target_disconnect, debug_to_disconnect): New functions.
5007 (setup_target_debug): Set to_disconnect.
5008 * target.h (struct target_ops): Add to_disconnect.
5009 (target_disconnect): Add prototype.
5011 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5013 * breakpoint.c (insert_catchpoint): New function.
5014 (insert_breakpoints): Use catch_exceptions to call
5015 insert_catchpoint. Disable catchpoints if they fail to insert.
5017 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5019 * symfile.c (reread_symbols): Clear sym_private.
5021 2003-06-17 Andrew Cagney <cagney@redhat.com>
5023 * trad-frame.h (struct frame_info): Add opaque declaration.
5024 * remote-fileio.h (struct cmd_list_element): Add opaque
5026 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5029 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5031 * remote.c (remote_prepare_to_store): Replace call to
5032 deprecated_read_register_bytes with multiple regcache_raw_read
5035 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5037 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5038 (nto_find_and_open_solib): Likewise.
5039 (nto_init_solib_absolute_prefix): Likewise.
5040 (_initialize_nto_tdep): Fix indentation.
5042 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5044 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5046 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5048 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5050 2003-06-17 Jim Blandy <jimb@redhat.com>
5052 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5054 2003-06-16 Theodore A. Roth <troth@openavr.org>
5056 * avr-tdep.c (avr_extract_return_value): New function.
5057 (avr_gdbarch_init): Set extract_return_value method.
5059 2003-06-16 Andrew Cagney <cagney@redhat.com>
5061 * frame.h (deprecated_get_next_frame_hack): Declare.
5062 * frame.c (legacy_saved_regs_prev_register): Only require
5063 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5064 there are always saved regs.
5065 (deprecated_generic_get_saved_register): Do not require
5066 DEPRECATED_FRAME_INIT_SAVED_REGS.
5067 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5068 use frame ID unwind instead.
5069 (deprecated_get_next_frame_hack): New function.
5071 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5073 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5074 (h8300_push_dummy_call): ...this function. Some minor optimization.
5075 (h8300_push_return_address): Remove.
5076 (h8300_gdbarch_init): Remove calls to
5077 set_gdbarch_deprecated_dummy_write_sp,
5078 set_gdbarch_deprecated_push_arguments and
5079 set_gdbarch_deprecated_push_return_address.
5080 Add call to set_gdbarch_push_dummy_call.
5082 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5084 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5085 (E_PSEUDO_EXR_REGNUM): Ditto.
5086 (h8300_is_argument_spill): Check for instructions moving argument
5087 registers into safe registers.
5088 (h8300_skip_prologue): Check for stm instruction to push registers
5089 used for register variables onto stack.
5090 (gdb_print_insn_h8300): Remove.
5091 (h8300_examine_prologue): Add a comment.
5092 (h8300_register_name): Take pseudo registers into account.
5093 (h8300s_register_name): Ditto.
5094 (h8300sx_register_name): Ditto.
5095 (h8300_print_register): Ditto.
5096 (h8300_print_registers_info): Define "nice" printing order.
5097 (h8300_saved_pc_after_call): Take pseudo registers into account.
5098 (h8300_register_type): Ditto. Return type used for remote connection
5099 when requesting real CCR or EXR register, return actual type when
5100 requesting pseudo CCR or EXR.
5101 (h8300_pseudo_register_read): New function.
5102 (h8300_pseudo_register_write): Ditto.
5103 (h8300_dbg_reg_to_regnum): Ditto.
5104 (h8300s_dbg_reg_to_regnum): Ditto.
5105 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5106 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5107 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5108 set_gdbarch_print_insn architecture dependent.
5109 Call set_gdbarch_pseudo_register_read and
5110 set_gdbarch_pseudo_register_write.
5111 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5113 2003-06-16 Andrew Cagney <cagney@redhat.com>
5115 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5116 * gdbarch.h, gdbarch.c: Re-generate.
5117 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5118 * s390-tdep.c (s390_gdbarch_init): Update.
5119 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5120 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5121 * mips-tdep.c (mips_gdbarch_init): Update.
5122 * mcore-tdep.c (mcore_gdbarch_init): Update.
5123 * cris-tdep.c (cris_gdbarch_init): Update.
5124 * infcall.c (call_function_by_hand): Update.
5125 * ia64-tdep.c (ia64_push_arguments): Update comment.
5126 * frame.c (legacy_get_prev_frame): Do not assume
5127 SAVE_DUMMY_FRAME_TOS_P.
5128 * dummy-frame.c (find_dummy_frame): Update comment.
5130 2003-06-16 Andrew Cagney <cagney@redhat.com>
5132 * regcache.c (do_cooked_read): Do not use register_valid_p.
5134 2003-06-15 Theodore A. Roth <troth@openavr.org>
5136 * avr-tdep.c (avr_register_type): Remove a blank line.
5137 (avr_scan_prologue): Correct some comments.
5139 2003-06-15 Theodore A. Roth <troth@openavr.org>
5141 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5143 Properly scan prologues generated by gcc with the -mcall-prologues
5145 Add code to scan -mcall-prologues for mega devices.
5147 2003-06-15 Theodore A. Roth <troth@openavr.org>
5149 * avr-tdep.c (avr_register_byte): Delete function.
5150 (avr_register_raw_size): Delete function.
5151 (avr_register_virtual_size): Delete function.
5152 (avr_register_virtual_type): Delete function.
5153 (avr_register_type): New function.
5154 (avr_address_to_pointer): Remove unused code.
5155 (avr_read_fp): Need to read FP as two separate bytes due to change to
5156 avr_register_type() usage.
5157 (avr_gdbarch_init): Don't set deprecated_register_size.
5158 Don't set deprecated_register_bytes.
5159 Don't set deprecated_register_byte.
5160 Don't set deprecated_register_raw_size.
5161 Don't set deprecated_max_register_raw_size.
5162 Don't set deprecated_register_virtual_size.
5163 Don't set deprecated_max_register_virtual_size.
5164 Don't set deprecated_register_virtual_type.
5165 Set register_type method.
5167 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
5169 * Makefile.in (linux-nat.o): Add rule.
5170 * linux-nat.c: New file.
5171 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5172 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5173 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5174 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5175 * config/arm/linux.mh (NATDEPFILES): Likewise.
5176 * config/i386/linux.mh (NATDEPFILES): Likewise.
5177 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5178 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5179 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5180 * config/mips/linux.mh (NATDEPFILES): Likewise.
5181 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5182 * config/s390/s390.mh (NATDEPFILES): Likewise.
5183 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5185 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5187 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5188 replace out-of-date comment.
5190 2003-06-15 Andrew Cagney <cagney@redhat.com>
5192 * rdi-share/host.h (Fail): Change to a varargs function.
5193 * remote-rdi.c (Fail): Update.
5195 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5197 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5198 (i386_convert_register_p, i386_register_to_value,
5199 i386_register_from_value): Handle types longer than 8 bytes.
5201 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5203 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5204 Move floating-point code to new function in i387-tdep.c.
5205 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5206 New functions containing code moved here from i386-tdep.c.
5207 * i387-tdep.h: Add opaque declaration for `struct type'.
5208 (i387_register_to_value, i387_value_to_register): New prototypes.
5209 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5210 (x86_64_init_abi): Set convert_register_p, register_to_value and
5211 value_to_register here.
5213 2003-06-14 Andrew Cagney <cagney@redhat.com>
5215 * mips-tdep.c (mips_register_to_value): Make static.
5216 (mips_value_to_register): Make static.
5217 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5218 * ia64-tdep.c (ia64_register_raw_size): Make static.
5219 (ia64_register_virtual_size): Make static.
5220 (ia64_register_byte): Make static.
5221 * i387-tdep.c: Include "i387-tdep.h".
5222 (print_387_control_word): Delete function.
5223 (print_387_status_word): Delete function.
5224 (print_387_status_bits): Delete function.
5225 (print_387_control_bits): Delete function.
5226 * Makefile.in (i387-tdep.o): Update dependencies.
5227 * rdi-share/host.h (Fail): Declare.
5228 * remote-rdi.c (Fail): Update to match declaration.
5230 2003-06-14 Andrew Cagney <cagney@redhat.com>
5232 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5233 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5234 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5235 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5236 * README: Delete reference to remote-array.
5237 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5238 (remote-array.o): Delete target.
5239 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5240 * remote-array.c: Delete file.
5242 2003-06-14 Andrew Cagney <cagney@redhat.com>
5243 Mark Kettenis <kettenis@gnu.org>
5245 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5246 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5247 parameter with "frame".
5248 * gdbarch.h, gdbarch.c: Re-generate.
5249 * frame.h (put_frame_register): Declare.
5250 * frame.c (put_frame_register): New function.
5251 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5252 (legacy_register_to_value): Rewrite, use "frame" to get the
5254 (legacy_value_to_register): Rewrite, use "frame" to find the
5255 register's location before storing.
5256 * arch-utils.h (legacy_convert_register_p): Update.
5257 (legacy_register_to_value, legacy_value_to_register): Update.
5258 * findvar.c (value_from_register): Rewrite, eliminate use of
5259 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5260 "frame" to REGISTER_TO_VALUE.
5261 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5262 lval_reg_frame_relative + lval_register branch of the switch. Do
5263 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5264 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5265 I386_EDI_REGNUM): New defines.
5266 (i386_next_regnum, i386_convert_register_p,
5267 i386_register_to_value, i386_value_to_register): New functions.
5268 (i386_register_convertible, i386_register_convert_to_virtual,
5269 i386_convert_to_raw): Remove functions.
5270 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5271 value_to_register instead of register_convertible,
5272 register_convert_to_virtual and register_convert_to_raw.
5273 * mips-tdep.c (mips_convert_register_p): New function.
5274 (mips_value_to_register): Replace mips_register_convert_from_type.
5275 (mips_register_to_value): Replace mips_register_convert_to_type.
5276 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5278 * alpha-tdep.c (alpha_convert_register_p): Update.
5279 (alpha_value_to_register): Update, store the register.
5280 (alpha_register_to_value): Update, fetch the register.
5282 2003-06-14 Theodore A. Roth <troth@openavr.org>
5284 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5285 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5286 Don't set deprecated_call_dummy_words.
5287 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5288 Don't set remote_translate_xfer_address.
5289 (avr_io_reg_read_command): Remove commented out debug printf.
5292 2003-06-14 Theodore A. Roth <troth@openavr.org>
5294 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5295 causes gdb to seg fault.
5297 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
5299 * sparc-nat.c (fetch_inferior_registers): Correct
5300 a reference to "registers".
5302 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5304 * Makefile.in (exc_request_U_h): Define
5305 (exc_request_S_h): Likewise.
5306 (msg_reply_S_h): Likewise.
5307 (msg_U_h): Likewise.
5308 (notify_S_h): Likewise.
5309 (process_reply_S_h): Likewise.
5310 (gnu-nat.o): Depend on gdb_obstack_h
5311 * gnu-nat.c: Include "gdb_obstack.h".
5313 2003-06-13 Andrew Cagney <cagney@redhat.com>
5315 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5316 * gdbarch.h, gdbarch.c: Re-generate.
5318 2003-06-13 Andrew Cagney <cagney@redhat.com>
5320 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5321 when deprecated REGISTER macros can be deleted.
5322 * gdbarch.h, gdbarch.c: Re-generate.
5324 2003-06-13 Jim Blandy <jimb@redhat.com>
5326 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5327 Linux entry point symbols for _dl_debug_state, too.
5329 2003-06-13 Andrew Cagney <cagney@redhat.com>
5331 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5332 available, do not use the FP register, and always save the TOS.
5333 * dummy-frame.c (dummy_frame_this_id): Do not assert
5334 SAVE_DUMMY_FRAME_TOS.
5335 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5336 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5337 (i386_push_dummy_call): Add 8 to the returned SP.
5338 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5339 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5340 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5341 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5342 (x86_64_push_dummy_call): Return "sp + 16".
5343 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5344 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5345 save_dummy_frame_tos.
5347 2003-06-13 Jim Blandy <jimb@redhat.com>
5349 * frv-tdep.c (frv_use_struct_convention): Delete static
5350 declaration for function deleted in my change of 2003-06-12.
5352 2003-06-13 Theodore A. Roth <troth@openavr.org>
5354 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5355 (avr_pointer_to_address): Shift code addrs left 1 bit.
5356 (avr_convert_from_func_ptr_addr): Delete function since operation is
5357 better handled by avr_address_to_pointer and avr_pointer_to_address.
5358 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5360 2003-06-13 Mark Kettenis <kettenis@gnu.org>
5362 From Kelley Cook <kelleycook@wideopenwest.com>:
5363 * configure.host: Accept i[34567]86 variants.
5364 * configure.tgt: Likewise.
5365 * nlm/configure.in: Likewise.
5366 * nlm/configure: Regenerated.
5368 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
5370 * arm-tdep.c (solib-svr4.h): Dont' include it.
5371 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5372 * arm-linux-tdep.c: ... here. Make static.
5373 (arm_linux_init_abi): Register it.
5374 (solib-svr4.h): Include it.
5375 * Makefile.in: Update dependencies.
5376 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5377 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5379 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5381 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5382 indicate registers used for return values.
5383 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5384 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5386 (h8300_init_extra_frame_info): Ditto.
5387 (h8300_frame_locals_address): Removed.
5388 (h8300_frame_args_address): Removed.
5389 (h8300_extract_return_value): Use new regcache structure. Only care
5391 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5392 (h8300_store_return_value): Use new regcache structure. Only care
5394 (h8300h_store_return_value): Same function for 32 bit CPUs.
5395 (h8300_store_struct_return): Removed.
5396 (h8300_extract_struct_value_address): Use new regcache structure.
5397 (h8300h_extract_struct_value_address): Removed.
5398 (h8300_push_dummy_code): New function.
5399 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5400 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5401 set_gdbarch_store_return_value architecture dependent.
5402 Call set_gdbarch_push_dummy_code and
5403 set_gdbarch_extract_struct_value_address.
5404 Remove calls to set_gdbarch_frame_args_address,
5405 set_gdbarch_frame_locals_address,
5406 set_gdbarch_deprecated_store_struct_return,
5407 set_gdbarch_deprecated_extract_return_value,
5408 set_gdbarch_deprecated_extract_struct_value_address,
5409 set_gdbarch_deprecated_call_dummy_words and
5410 set_gdbarch_deprecated_sizeof_call_dummy_words.
5412 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5414 * h8300-tdep.c (h8300_register_byte): Remove.
5415 (h8300h_register_byte): Remove.
5416 (h8300_register_virtual_type): Remove. Substitute by...
5417 (h8300_register_type): New function.
5418 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5419 (h8300h_extract_struct_value_address): Ditto.
5420 (h8300_gdbarch_init): Drop calls to
5421 set_gdbarch_deprecated_register_byte and
5422 set_gdbarch_deprecated_register_virtual_type.
5423 Add call to set_gdbarch_register_type.
5425 2003-06-13 Andrew Cagney <cagney@redhat.com>
5427 * gdbarch.sh: Update comments on registers.
5428 (deprecated_register_byte): Rename register_byte.
5429 (deprecated_register_raw_size): Rename register_raw_size.
5430 (deprecated_register_virtual_size): Rename register_virtual_size.
5431 (deprecated_register_virtual_type): Rename register_virtual_type.
5432 * gdbarch.h, gdbarch.c: Re-generate.
5433 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5434 * vax-tdep.c (vax_gdbarch_init): Update.
5435 * v850-tdep.c (v850_gdbarch_init): Update.
5436 * sparc-tdep.c (sparc_gdbarch_init): Update.
5437 * sh-tdep.c (sh_gdbarch_init): Update.
5438 * s390-tdep.c (s390_gdbarch_init): Update.
5439 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5440 * ns32k-tdep.c: Update.
5441 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5442 * mips-tdep.c (mips_gdbarch_init): Update.
5443 * mcore-tdep.c (mcore_gdbarch_init): Update.
5444 * m68k-tdep.c (m68k_gdbarch_init): Update.
5445 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5446 * ia64-tdep.c (ia64_gdbarch_init): Update.
5447 * hppa-tdep.c (hppa_gdbarch_init): Update.
5448 * h8300-tdep.c (h8300_gdbarch_init): Update.
5449 * frv-tdep.c (frv_gdbarch_init): Update.
5450 * cris-tdep.c (cris_gdbarch_init): Update.
5451 * avr-tdep.c (avr_gdbarch_init): Update.
5452 * alpha-tdep.c (alpha_gdbarch_init): Update.
5453 * arm-tdep.c (arm_gdbarch_init): Update.
5455 2003-06-13 Andrew Cagney <cagney@redhat.com>
5457 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5458 mips_o32_use_struct_convention with always_use_struct_convention.
5460 2003-06-12 David Carlton <carlton@kealia.com>
5462 * cp-namespace.c (cp_set_block_scope): Comment out
5463 processing_has_namespace_info branch.
5465 2003-06-12 Jim Blandy <jimb@redhat.com>
5467 Recognize and skip 64-bit PowerPC Linux linkage functions.
5468 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5469 insn_pattern, insns_match_pattern, d_field, ds_field): New
5470 functions, macros, and types for working with PPC instructions.
5471 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5472 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5473 ppc64_skip_trampoline_code): New functions, variables, and macros
5474 for recognizing and skipping linkage functions.
5475 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5476 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5478 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5479 register offsets for both the 32- and 64-bit interfaces.
5481 Actually finish the job started by my change of 2003-05-29.
5482 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5483 other #definition of this.
5484 (ppc_linux_skip_trampoline_code): Remove declaration.
5485 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5487 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5490 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5491 'long' on ppc64-*-linux*.
5493 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5494 isn't #defined, assume the register doesn't exist: act as if
5495 tdep->ppc_mq_regnum were -1.
5497 * configure.host, configure.tgt: Add entries for
5498 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5500 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5503 * arch-utils.c (always_use_struct_convention): New function.
5504 * arch-utils.h (always_use_struct_convention): New prototype.
5505 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5506 (alpha_gdbarch_init): Register always_use_struct_convention,
5507 instead of alpha_use_struct_convention.
5508 * cris-tdep.c (cris_use_struct_convention): Delete.
5509 (cris_gdbarch_init): Register always_use_struct_convention,
5510 instead of cris_use_struct_convention.
5511 * frv-tdep.c (frv_use_struct_convention): Delete.
5512 (frv_gdbarch_init): Register always_use_struct_convention,
5513 instead of frv_use_struct_convention.
5514 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5515 (h8300_gdbarch_init): Register always_use_struct_convention,
5516 instead of h8300_use_struct_convention.
5517 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
5518 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5519 instead of mips_o32_use_struct_convention.
5521 2003-06-12 Andrew Cagney <cagney@redhat.com>
5523 * wince.c: Include "mips-tdep.h".
5524 * mips-tdep.h (mips_next_pc): Declare.
5525 * mcore-tdep.c: Make more local functions static.
5526 * Makefile.in (wince.o): Update dependencies.
5528 2003-06-12 David Carlton <carlton@kealia.com>
5530 * symtab.c (lookup_symbol_aux_minsyms): Replace
5531 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5532 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5533 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5534 SYMBOL_NATURAL_NAME.
5536 2003-06-12 Andreas Schwab <schwab@suse.de>
5538 * Makefile.in (tuiDisassem.o): Update dependencies.
5540 2003-06-12 David Carlton <carlton@bactrian.org>
5542 * symtab.h: Delete declaration of make_symbol_overload_list.
5543 Add declaration of lookup_partial_symbol.
5544 * symtab.c (remove_params): Move to cp-support.c.
5545 (overload_list_add_symbol, make_symbol_overload_list)
5546 (sym_return_val_size, sym_return_val_index): Ditto.
5547 (lookup_partial_symbol): Make extern.
5548 * cp-support.h: Add declaration of make_symbol_overload_list.
5549 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5550 symtab.h, and block.h.
5551 (remove_params): Move here from symtab.c.
5552 (overload_list_add_symbol, make_symbol_overload_list)
5553 (sym_return_val_size, sym_return_val_index): Ditto.
5554 * valops.c: Include cp-support.h.
5555 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5556 frame_h, and block_h.
5557 (valops.o): Depend on cp_support_h.
5559 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
5561 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5562 substitute by NUM_REGS throughout.
5563 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5564 (h8300s_register_name): New function for H8S registers.
5565 (h8300sx_register_name): Ditto for H8SX registers.
5566 (h8300_print_register): Revise register printing, avoid depending
5568 (h8300_register_byte): Only care for H8/300 registers.
5569 (h8300h_register_byte): New function for any other architecture.
5570 (h8300_register_raw_size): Remove.
5571 (h8300_register_virtual_type): Revise to return actually useful
5573 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5574 (h8300h_extract_struct_value_address): New function for any other
5576 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5577 set_gdbarch_register_name, set_gdbarch_register_byte,
5578 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5579 Remove calls to set_gdbarch_deprecated_register_size,
5580 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5581 set_gdbarch_deprecated_max_register_raw_size,
5582 set_gdbarch_register_virtual_size and
5583 set_gdbarch_deprecated_max_register_virtual_size entirely.
5584 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5585 set_gdbarch_long_double_bit.
5587 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5589 * doublest.c (convert_doublest_to_floatformat): When dealing
5590 with the implied integer bit, only alter mant_bits if we are
5591 processing a full 32 bits of mantissa.
5593 2003-06-11 David Carlton <carlton@bactrian.org>
5595 * dictionary.h: New.
5596 * dictionary.c: New.
5597 * block.h: Add opaque declaration for struct dictionary.
5598 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5600 (BLOCK_DICT): New macro.
5601 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5602 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5604 (ALL_BLOCK_SYMBOLS): Update definition.
5605 * Makefile.in (SFILES): Add dictionary.c.
5606 (dictionary_h): New.
5607 (COMMON_OBS): Add dictionary.o.
5608 (dictionary.o): New.
5609 (ada-lang.o): Depend on dictionary_h.
5610 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5611 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5612 (mi-cmd-stack.o): Ditto.
5613 (gdbtk-cmds.o): Update dependencies.
5614 (gdbtk-stack.o): Ditto.
5615 * ada-lang.c: Include dictionary.h.
5616 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5617 (fill_in_ada_prototype, debug_print_block): Ditto.
5618 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5619 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5621 * mdebugread.c: Include dictionary.h.
5622 (struct parse_stack): Delete 'maxsyms' member.
5623 (parse_symbol): Update calls to new_block. Delete calls to
5624 shrink_block. Use dictionary methods.
5625 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5626 Update calls to new_symtab. Don't maintain maxsyms data.
5627 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5628 (add_symbol): Just call dict_add_symbol.
5629 (new_symtab): Delete 'maxsyms' argument.
5630 (new_symtab): Update calls to new_block.
5631 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5632 (shrink_block): Delete function.
5633 (fixup_sigtramp): Update call to new_block. Add symbol via
5635 * jv-lang.c: Include dictionary.h.
5636 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5637 appropriately. Set class_symtab->free_func. Make sure the
5638 blockvector is big enough to hold two blocks.
5639 (add_class_symtab_symbol): Use dictionary methods.
5640 (free_class_block): New function.
5641 (type_from_class): Replace explicit iteration by
5643 * symtab.h (struct symtab): Replace 'free_ptr' method by
5645 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5647 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5649 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5650 Include dictionary.h.
5651 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5652 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5654 * objfiles.c: Include dictionary.h.
5655 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5656 * buildsym.c: Include dictionary.h.
5657 (finish_block): Use dictionary methods.
5658 (end_symtab): Set free_func to NULL, not free_ptr.
5659 * tracepoint.c: Include dictionary.h.
5660 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5661 (scope_info): Ditto.
5662 * stack.c: Include dictionary.h.
5663 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5664 (print_block_frame_labels, print_frame_arg_vars)
5665 (print_frame_args): Ditto.
5666 * symmisc.c (free_symtab_block): Use dictionary methods.
5667 (dump_symtab): Ditto.
5668 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5669 Include dictionary.h.
5670 * symfile.h: Delete declarations of sort_block_syms,
5672 * symfile.c (sort_block_syms): Delete.
5673 (sort_symtab_syms): Delete.
5674 * symtab.c: Include dictionary.h.
5675 (lookup_block_symbol): Use dictionary iterators.
5676 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5677 (search_symbols, make_symbol_completion_list): Ditto.
5678 (make_symbol_overload_list): Ditto.
5679 * valops.c (value_of_local): Use dict_empty.
5680 Include dictionary.h.
5682 2003-06-11 J. Brobecker <brobecker@gnat.com>
5684 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5686 2003-06-11 David Carlton <carlton@bactrian.org>
5688 * block.h (BLOCK_SHOULD_SORT): Delete.
5689 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5691 * ada-lang.c (ada_add_block_symbols): Ditto.
5692 * symfile.c (sort_block_syms): Delete.
5693 (sort_symtab_syms): Ditto.
5694 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5696 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5697 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5698 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5699 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5700 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5701 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5702 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5704 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5706 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
5709 2003-06-11 Andrew Cagney <cagney@redhat.com>
5711 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5712 REGISTER_CONVERTIBLE.
5713 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5714 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5715 * gdbarch.h, gdbarch.c: Re-generate.
5716 * arch-utils.h (deprecated_register_convertible_not): Rename
5717 generic_register_convertible_not.
5718 * arch-utils.c (deprecated_register_convertible_not): Rename
5719 generic_register_convertible.
5720 (legacy_convert_register_p, legacy_register_to_value): Update.
5721 * sh-tdep.c (sh64_push_arguments): Update.
5722 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5723 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5724 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5725 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5726 * arch-utils.c (legacy_value_to_register): Update.
5727 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5728 (rs6000_register_convert_to_raw): Make parameter "from" const.
5729 * mips-tdep.c (mips_gdbarch_init): Update.
5730 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5731 * infcmd.c (default_print_registers_info): Update.
5732 * ia64-tdep.c (ia64_gdbarch_init): Update.
5733 (ia64_register_convert_to_raw): Make parameter "from" const.
5734 * i386-tdep.c (i386_gdbarch_init): Update.
5735 (i386_register_convert_to_raw): Update.
5737 2003-06-11 Andrew Cagney <cagney@redhat.com>
5739 * remote-fileio.c: Include "remote-fileio.h".
5740 * Makefile.in (remote-fileio.o): Update dependencies.
5741 (remote_fileio_h): Fix typo.
5743 2003-06-11 Andrew Cagney <cagney@redhat.com>
5745 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5746 (xstormy16_save_dummy_frame_tos): Make static.
5747 (_initialize_xstormy16_tdep): Add declaration.
5748 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5749 * v850-tdep.c: Make local functions static.
5750 (_initialize_v850_tdep): Add declaration.
5751 * sparc-tdep.c: Make local functions static.
5752 (_initialize_sparc_tdep): Add declaration.
5753 * sh-tdep.c: Make local functions static.
5754 (_initialize_sh_tdep): Add declaration.
5755 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5756 * s390-tdep.c: Make local functions static.
5757 (_initialize_s390_tdep): Add declaration.
5758 * dbxread.c (find_stab_function_addr): Make static.
5759 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5760 * ocd.c (_initialize_remote_ocd): Add declaration.
5761 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5762 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5763 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5764 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5765 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5766 * remote-array.c (_initialize_array): Add declaration.
5767 (_initialize_remote_monitors): Add declaration.
5768 * remote-mips.c: Make local functions static.
5769 (_initialize_remote_mips): Add declaration.
5770 * mcore-tdep.c: Make all local functions static.
5771 (_initialize_mcore_tdep): Add declaration.
5772 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5773 * abug-rom.c (_initialize_abug_rom): Add declaration.
5774 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5775 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5776 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5777 * remote-est.c (_initialize_est): Add declaration.
5778 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5779 (m68hc11_call_dummy_address): Make static.
5780 * ia64-tdep.c: Make local functions static.
5781 (_initialize_ia64_tdep): Add declaration.
5782 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5783 * monitor.c (monitor_wait_filter): Make static.
5784 (_initialize_remote_monitors): Add declaration.
5785 * remote-hms.c (_initialize_remote_hms): Add declaration.
5786 * remote-e7000.c (fetch_regs_from_dump): Make static.
5787 (expect_n): Make static.
5788 (_initialize_remote_e7000): Add declaration.
5789 * ser-e7kpc.c: Always include "defs.h".
5790 (_initialize_ser_e7000pc): Add declaration.
5791 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5792 * cris-tdep.c: Make all but one function static.
5793 (_initialize_cris_tdep): Add declaration.
5794 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5795 * solib.c (update_solib_list): Make static.
5796 (_initialize_solib): Add declaration.
5797 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5798 (_initialize_avr_tdep): Add declaration.
5799 * remote-rdi.c (voiddummy): Make static.
5800 (_initialize_remote_rdi): Add declaration.
5801 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5802 * remote-rdp.c (send_rdp): Make static.
5803 (_initialize_remote_rdp): Add declaration.
5804 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5806 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
5808 * remote-fileio.c: Make ari happy.
5810 2003-06-10 J. Brobecker <brobecker@gnat.com>
5812 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5813 fetching the trailing bytes of the buffer we are about to write.
5815 2003-06-10 Andrew Cagney <cagney@redhat.com>
5817 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5818 * Makefile.in (remote-fileio.o): Update dependencies.
5819 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5820 include <setjmp.h>, or <sys/types.h> conditional on USG.
5821 (remote_fio_jmp_buf): Delete global variable.
5823 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5824 Martin M. Hunt <hunt@redhat.com>
5826 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5827 (SFILES): Add remote-fileio.c.
5828 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5829 dependencies for building remote.o.
5830 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5831 * remote-fileio.h: New header file defining remote File-I/O interface.
5832 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5833 static storage class.
5834 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5836 (_initialize_remote): Call initialize_remote_fileio().
5837 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5838 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5839 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5840 (captured_main): Initialize new ui_files.
5841 * ui-file.c: Add read and fgets input functions.
5842 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5843 (null_file_read): New function.
5844 (ui_file_read): New function.
5845 (set_ui_file_read): New function.
5846 (stdio_file_read): New function.
5847 * ui-file.h: New type ui_file_read_ftype.
5848 (set_ui_file_read): Declare.
5849 (ui_file_read): Declare.
5851 2003-06-09 Andrew Cagney <cagney@redhat.com>
5853 * frame.h (deprecated_unwind_get_saved_register): Rename
5854 generic_unwind_get_saved_register, update comments.
5855 * mips-tdep.c (mips_get_saved_register): Update.
5856 * frame.c (deprecated_unwind_get_saved_register): Update.
5858 2003-06-09 Andrew Cagney <cagney@redhat.com>
5860 * vax-tdep.c (vax_frame_locals_address): Delete function.
5861 (vax_gdbarch_init): Do not set frame_locals_address.
5862 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5863 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5864 * s390-tdep.c (s390_frame_args_address): Delete function.
5865 (s390_gdbarch_init): Do not set frame_args_address or
5866 frame_locals_address.
5867 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5868 (ns32k_gdbarch_init): Do not set frame_locals_address.
5869 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5870 (hppa_frame_locals_address): Delete function.
5871 (hppa_gdbarch_init): Do not set frame_args_address, or
5872 frame_locals_address.
5873 * arm-tdep.c (arm_frame_args_address): Delete.
5874 (arm_frame_locals_address): Delete.
5875 (arm_gdbarch_init): Do not set frame_args_address, or
5876 frame_locals_address.
5878 2003-06-09 Andrew Cagney <cagney@redhat.com>
5880 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5881 * gdbarch.h, gdbarch.c: Re-generate.
5882 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5883 * arch-utils.c (frame_num_args_unknown): Delete function.
5884 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5885 (frame_info): Use FRAME_NUM_ARGS_P.
5886 * arm-tdep.c (arm_frame_num_args): Delete function.
5887 (arm_gdbarch_init): Do not set frame_num_args.
5888 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5889 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5890 (hppa_gdbarch_init): Do not set frame_num_args.
5891 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5892 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5893 frame_num_args to default frame_num_args_unknown.
5894 * v850-tdep.c (v850_gdbarch_init): Ditto.
5895 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5896 * sh-tdep.c (sh_gdbarch_init): Ditto.
5897 * s390-tdep.c (s390_gdbarch_init): Ditto.
5898 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5899 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5900 * mips-tdep.c (mips_gdbarch_init): Ditto.
5901 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5902 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5903 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5904 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5905 * i386-tdep.c (i386_gdbarch_init): Ditto.
5906 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5907 * frv-tdep.c (frv_gdbarch_init): Ditto.
5908 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5909 * cris-tdep.c (cris_gdbarch_init): Ditto.
5910 * avr-tdep.c (avr_gdbarch_init): Ditto.
5911 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5913 2003-06-09 Andrew Cagney <cagney@redhat.com>
5915 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5916 (print_frame_args): Moved to "stack.c".
5917 * stack.c: Include "gdb_assert.h".
5918 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5919 (print_frame_args): Moved from "printcmd.c".
5920 * frame.h (print_frame_args): Delete declaration.
5921 * Makefile.in (stack.o): Update dependencies.
5923 2003-06-08 Andrew Cagney <cagney@redhat.com>
5925 * frame.c (get_prev_frame): Remove reference to
5926 frame_args_address_correct in comments.
5927 * frame-base.c (default_frame_args_address): Delete code
5928 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5929 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5930 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5931 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5932 (vax_frame_args_address_correct): Delete declaration.
5934 2003-06-08 Andrew Cagney <cagney@redhat.com>
5936 * gdbarch.sh (UNWIND_SP): Add.
5937 * gdbarch.h, gdbarch.c: Re-generate.
5938 * frame.c (frame_sp_unwind): New function.
5939 (get_frame_sp): New function.
5940 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5941 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5942 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5944 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5945 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5947 2003-06-08 Andrew Cagney <cagney@redhat.com>
5949 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5952 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5953 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5954 * config/m68k/tm-sun3.h: Update.
5955 * config/m68k/tm-m68klynx.h: Update.
5956 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5958 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5959 trad_frame". Update comments.
5960 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5961 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5962 (trad_frame_register_value, trad_frame_prev_register): Update.
5964 2003-06-08 Andrew Cagney <cagney@redhat.com>
5966 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5967 from GCC's acinclude.m4.
5968 * configure.in: Check for getopt's delcaration.
5969 * aclocal.m4, config.in, configure: Re-generate.
5970 * main.c (error_init): Delete declaration.
5971 * defs.h (error_init): Declare.
5972 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5973 (rs6000_convert_from_func_ptr_addr): Make static.
5974 (_initialize_rs6000_tdep): Add declaration.
5975 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5976 (show_commands, set_verbose, show_history): Delete declaration.
5977 * top.h (set_verbose): Add declaration.
5978 (show_history, set_history, show_commands): Add declaration.
5979 (do_restore_instream_cleanup): Add declaration.
5980 * objc-lang.c (specialcmp): Make static.
5981 (print_object_command): Make static.
5982 (find_objc_msgsend): Make static.
5983 (find_objc_msgcall_submethod_helper): Make static.
5984 (find_objc_msgcall_submethod): Make static.
5985 (_initialize_objc_language): Add declaration.
5986 (find_implementation_from_class): Make static.
5987 (find_implementation): Make static.
5988 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5989 * objc-lang.h (lookup_struct_typedef): Add declaration.
5990 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5991 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5992 (do_restore_user_call_depth): Make static.
5993 (do_restore_instream_cleanup): Delete declaration.
5994 (dont_repeat): Delete declaration.
5995 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5996 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5997 * reggroups.c (_initialize_reggroup): Add declaration.
5998 * cp-support.c (_initialize_cp_support): Add declaration.
5999 * cp-abi.c (_initialize_cp_abi): Add declaration.
6000 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6001 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6002 (_initialize_gnu_v3_abi): Add declaration.
6003 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6004 (_initialize_gnu_v2_abi): Add declaration.
6005 * frame-base.c (_initialize_frame_base): Add declaration.
6006 * doublest.c (floatformat_from_length): Make static.
6007 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6008 * frame.c (create_sentinel_frame): Make static.
6009 (_initialize_frame): Add declaration.
6010 * top.c (do_catch_errors): Make static.
6011 (gdb_rl_operate_and_get_next_completion): Make static.
6012 * typeprint.c: Include "typeprint.h".
6013 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6014 (sentinel_frame_this_id): Make static.
6015 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6016 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6017 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6018 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6019 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6020 * maint.c (maintenance_print_architecture): Make static.
6021 * signals/signals.c (_initialize_signals): Add declaration.
6022 * std-regs.c (_initialize_frame_reg): Add declaration.
6023 * jv-exp.y (push_variable): ISO C definition.
6024 (push_qualified_expression_name): Ditto.
6025 * memattr.c (_initialize_mem): Add declaration.
6026 * remote.c (remote_check_watch_resources): Make static.
6027 (remote_stopped_by_watchpoint): Make static.
6028 (remote_stopped_data_address): Make static.
6029 * d10v-tdep.c (nr_dmap_regs): Make static.
6030 (a0_regnum): Make static.
6031 (d10v_frame_unwind_cache): Make static.
6032 (d10v_frame_p): Make static.
6033 * osabi.c (show_osabi): Make static.
6034 (_initialize_gdb_osabi): Add extern declaration.
6035 * gdbtypes.c (make_qualified_type): Make static.
6036 (safe_parse_type): Make static.
6037 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6038 * macrotab.c (macro_bcache_free): Make static.
6039 * interps.c (interp_set_quiet): Make static.
6040 (interpreter_exec_cmd): Make static.
6041 * stack.h (select_frame_command): New file.
6042 * stack.c: Include "stack.h".
6043 (select_frame_command_wrapper): Delete function.
6044 (select_frame_command): Make global.
6045 * infcall.c: Include "infcall.h".
6046 * linespec.c: Include "linespec.h".
6047 * symfile.c (sections_overlap): Make static.
6048 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6049 * charset.c (_initialize_charset): Add missing prototype.
6050 * regcache.c (init_legacy_regcache_descr): Make static.
6051 (do_regcache_xfree): Make static.
6052 (regcache_xfer_part): Make static.
6053 (_initialize_regcache): Add missing prototype.
6054 * breakpoint.c (parse_breakpoint_sals): Make static.
6055 (breakpoint_sals_to_pc): Make static.
6056 * interps.h (clear_interpreter_hooks): ISO C declaration.
6057 * Makefile.in (stack_h): Define.
6058 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6059 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6061 2003-06-08 Andrew Cagney <cagney@redhat.com>
6063 * Makefile.in (d10v-tdep.o): Update dependencies.
6064 (SFILES): Add trad-frame.c.
6065 (trad_frame_h): Define.
6066 (COMMON_OBS): Add trad-frame.o.
6067 (trad-frame.o): Specify dependencies.
6068 * d10v-tdep.c: Include "trad-frame.h".
6069 (saved_regs_unwinder): Delete function.
6070 (d10v_frame_prev_register): Use trad_frame_prev_register.
6071 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6072 trad_frame", delete "regs" and "prev_sp".
6073 (prologue_find_regs): Use trad-frame.
6074 * trad-frame.h, trad-frame.c: New files.
6076 2003-06-08 Mark Kettenis <kettenis@gnu.org>
6078 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6080 2003-06-07 Adam Fedor <fedor@gnu.org>
6082 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6083 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6084 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6085 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
6086 resolve_msgsend_super, resolve_msgsend_super_stret):
6089 2003-06-07 Andrew Cagney <cagney@redhat.com>
6091 * symfile.h: Re-indent, clean up comments.
6093 2003-06-07 Andrew Cagney <cagney@redhat.com>
6095 * inferior.h (deprecated_write_sp): Replace
6096 generic_target_write_sp.
6097 * regcache.c (deprecated_write_sp): Replace
6098 generic_target_write_sp.
6099 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6100 * vax-tdep.c (vax_gdbarch_init): Update.
6101 * v850-tdep.c (v850_gdbarch_init): Update.
6102 * sparc-tdep.c (sparc_gdbarch_init): Update.
6103 * sh-tdep.c (sh_gdbarch_init): Update.
6104 * s390-tdep.c (s390_gdbarch_init): Update.
6105 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6106 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6107 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6108 * mcore-tdep.c (mcore_gdbarch_init): Update.
6109 * m68k-tdep.c (m68k_gdbarch_init): Update.
6110 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6111 * ia64-tdep.c (ia64_gdbarch_init): Update.
6112 * h8300-tdep.c (h8300_gdbarch_init): Update.
6113 * frv-tdep.c (frv_gdbarch_init): Update.
6114 * cris-tdep.c (cris_gdbarch_init): Update.
6115 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6117 2003-06-07 Andrew Cagney <cagney@redhat.com>
6119 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6120 Assert that PC_REGNUM is valid.
6121 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6123 2003-06-07 Andrew Cagney <cagney@redhat.com>
6125 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6126 * gdbarch.h, gdbarch.c: Regenerate.
6127 * mn10300-tdep.c: Include "gdb_assert.h".
6128 (mn10300_read_fp): New function.
6129 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6130 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6131 * ia64-tdep.c: Include "gdb_assert.h".
6132 (ia64_read_fp): New function.
6133 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6134 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6135 * regcache.c (generic_target_read_sp): Delete function.
6136 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6137 * inferior.h (generic_target_read_sp): Delete declaration.
6138 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6139 generic_target_read_sp.
6140 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6141 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6142 * sh-tdep.c (sh_gdbarch_init): Ditto.
6143 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6144 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6146 2003-06-07 Andrew Cagney <cagney@redhat.com>
6148 * gdbarch.sh: Comment each field of startup_gdbarch.
6149 * gdbarch.h, gdbarch.c: Re-generate.
6151 2003-06-07 Andrew Cagney <cagney@redhat.com>
6153 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6154 * gdbarch.h, gdbarch.c: Re-generate.
6155 * regcache.c: Update comments on read_pc et.al.
6156 (generic_target_read_pc): Delete function.
6157 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6158 * inferior.h (generic_target_read_pc): Delete declaration.
6159 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6160 generic_target_read_pc.
6161 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6162 * sh-tdep.c (sh_gdbarch_init): Ditto.
6163 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6164 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6166 2003-06-07 Andrew Cagney <cagney@redhat.com>
6168 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6169 "index" with "special_local_sect". Use strcmp instead of STREQ.
6170 Append period to coments.
6172 2003-06-06 Mark Mitchell <mark@codesourcery.com>
6174 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6175 (elfstab_offset_sections): Likewise.
6176 * gdb-stabs.h (stab_section_info): Likewise.
6177 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6178 * objfiles.c (objfile_relocate): Likewise.
6179 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6180 * remote.c (get_offsets): Likewise.
6181 (remote_cisco_objfile_relocate): Likewise.
6182 * somread.c (som_symfile_offsets): Likewise.
6183 * symfile.c (alloc_section_addr_info): New function.
6184 (build_section_addr_info_from_section_tab): Use it.
6185 (free_section_addr_info): Adjust.
6186 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6187 (syms_from_objfile): Allocate local_addr dynamically.
6188 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6190 (add_symbol_file_command): Allocate sect_opts dynamically.
6191 (reread_symbols): Avoid use of SECT_OFF_MAX.
6192 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6193 (alloc_section_addr_info): Declare it.
6194 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6195 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6197 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
6199 2003-06-06 Andrew Cagney <cagney@redhat.com>
6201 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6202 (d10v_frame_unwind_cache): Do not set "return_pc".
6204 2003-06-06 Michael Snyder <msnyder@redhat.com>
6206 * h8300-tdep.c: Make tidy (long lines).
6208 2003-06-06 Michal Ludvig <mludvig@suse.cz>
6210 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
6211 to regcache_collect().
6213 2003-06-05 J. Brobecker <brobecker@gnat.com>
6215 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6216 pc_in_sigtramp multiarch method.
6217 (hppa_hpux_som_init_abi): Use it.
6218 (hppa_hpux_elf_init_abi): Likewise.
6219 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6220 macro has been multiarched.
6221 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6222 macro here, as hppa64 isn't multiarched yet.
6224 2003-06-05 Andrew Cagney <cagney@redhat.com>
6226 * Makefile.in (value_h): Add $(frame_h).
6227 * value.h: Include "frame.h".
6228 (struct value): Replace "frame_addr" with "frame_id".
6229 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6230 * values.c (allocate_value): Use VALUE_FRAME_ID.
6231 (value_copy): Use VALUE_FRAME_ID.
6232 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6233 * valops.c (value_assign): Update. Use frame_find_by_id.
6235 2003-06-05 Michal Ludvig <mludvig@suse.cz>
6237 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6240 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6242 * thread-db.c (check_event): For create/death event breakpoints,
6243 loop through all messages to ensure that we read the message
6244 corresponding to the breakpoint we are at.
6246 2003-06-04 Michael Snyder <msnyder@redhat.com>
6248 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6250 2003-06-04 Mark Kettenis <kettenis@gnu.org>
6252 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6253 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6254 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6255 when handling .eh_frame sections.
6257 2003-06-04 J. Brobecker <brobecker@gnat.com>
6259 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6260 prepare_to_proceed procedure instead of the hppa-specific one.
6261 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6263 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
6265 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6266 * config.in: Regenerated.
6267 * configure.in: Add test for syscall function and check for
6268 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6269 * configure: Regenerated.
6270 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6272 (kill_lwp): New function that uses tkill syscall or
6273 uses kill, depending on whether threading model is nptl or not.
6274 All callers of kill() changed to use kill_lwp().
6275 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6276 see if all threads have already exited in the nptl model.
6277 (stop_and_resume_callback): New callback function used by the
6278 lin_lwp_wait thread exit handling code.
6279 (stop_wait_callback): Check for threads already having exited and
6280 delete such threads fromt the lwp list when discovered.
6281 (stop_callback): Don't assert retcode of kill call.
6283 Roland McGrath <roland@redhat.com>
6284 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6287 2003-06-03 Richard Henderson <rth@redhat.com>
6289 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6290 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6291 (alpha_sigtramp_frame_prev_register): Likewise.
6292 (alpha_heuristic_frame_prev_register): Likewise.
6293 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6295 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
6296 alpha-specific register id names.
6297 (alpha_mdebug_frame_unwind_cache): Likewise.
6298 (alpha_mdebug_frame_prev_register): Likewise.
6300 2003-06-03 Richard Henderson <rth@redhat.com>
6302 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6303 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6304 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6305 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6307 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6308 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6309 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6311 * alpha-linux-tdep.c: Remove unnecessary includes.
6312 * Makefile.in (alpha-linux-tdep.o): Update.
6314 2003-06-03 Richard Henderson <rth@redhat.com>
6316 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6317 (alphabsd_fill_fpreg): Likewise.
6319 2003-06-03 J. Brobecker <brobecker@gnat.com>
6321 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6322 references to struct frame_info fields by calls to the equivalent
6323 accessors. Necessary now that frame_info is opaque.
6325 2003-06-03 J. Brobecker <brobecker@gnat.com>
6327 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6328 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6329 structure, field no longer exists.
6331 2003-06-03 J. Brobecker <brobecker@gnat.com>
6333 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6334 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6336 2003-06-03 J. Brobecker <brobecker@gnat.com>
6338 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6339 references to struct frame_info fields by calls to the equivalent
6340 accessors. Necessary now that frame_info is opaque.
6342 2003-06-03 J. Brobecker <brobecker@gnat.com>
6344 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6345 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6346 structure, field no longer exists.
6348 2003-06-03 Theodore A. Roth <troth@openavr.org>
6350 * remote.c (init_remote_state): Compute sizeof_g_packet by
6351 accumulation of the size of all registers instead of blindly using
6352 DEPRECATED_REGISTER_BYTES.
6354 2003-06-03 Michael Snyder <msnyder@redhat.com>
6356 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6357 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6360 2003-06-03 J. Brobecker <brobecker@gnat.com>
6362 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6363 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6365 2003-06-03 Andrew Cagney <cagney@redhat.com>
6367 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6368 (sparc_convert_to_raw): Delete function.
6369 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6370 register_convert_to_virtual.
6372 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6374 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6375 layer if not dealing with a statically-linked threaded program.
6377 2003-06-03 Kris Warkentin <kewarken@qnx.com>
6379 * solib.c (solib_open): Update comment to reflect actual search order.
6381 2003-06-03 Andrew Cagney <cagney@redhat.com>
6383 * frame.c (get_frame_memory_signed): New function.
6384 (get_frame_memory, get_frame_memory_unsigned): New function.
6385 (get_frame_arch): New function.
6386 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6387 (get_frame_memory, get_frame_unsigned_memory): Declare.
6388 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6389 get_frame_memory_unsigned and get_frame_arch.
6390 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6392 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6394 * MAINTAINERS (write after approval): Add myself.
6396 2003-06-03 Jim Blandy <jimb@redhat.com>
6398 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6399 elements of gregset_t are 64 bits each, but access registers
6400 are still 32 bits, so they're packed two per gregset_t
6401 element. Unpack/pack them properly.
6403 2003-06-02 David Carlton <carlton@bactrian.org>
6405 * linespec.c (find_methods): Break out code into
6406 add_matching_methods and add_constructors.
6407 (add_matching_methods): New.
6408 (add_constructors): Ditto.
6410 2003-06-02 Andrew Cagney <cagney@redhat.com>
6412 * sparc-tdep.c (sparc_print_registers): Delete call to
6413 REGISTER_CONVERTIBLE.
6414 (sparc_gdbarch_init): Do not set register_convertible.
6415 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6416 * frv-tdep.c (frv_gdbarch_init): Ditto.
6417 * cris-tdep.c (cris_gdbarch_init): Ditto.
6419 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
6421 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
6422 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6423 (syms_from_objfile): Ditto.
6425 2003-06-03 Andreas Schwab <schwab@suse.de>
6427 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6428 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6430 2003-06-02 Richard Henderson <rth@redhat.com>
6432 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6433 a member of all_reggroup.
6435 2003-06-02 Richard Henderson <rth@redhat.com>
6437 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6438 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6439 (alpha_lds, alpha_sts): New.
6440 (alpha_convert_register_p): Change from _register_convertible.
6441 (alpha_register_to_value): Change from _convert_to_virtual;
6442 restructure and fail for type sizes other than 4 or 8.
6443 (alpha_value_to_register): Similarly.
6444 (alpha_extract_return_value): Use alpha_sts.
6445 (alpha_store_return_value): Use alpha_lds.
6446 (alpha_gdbarch_init): Update hooks.
6448 2003-06-02 Richard Henderson <rth@redhat.com>
6450 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6452 (alpha_sigtramp_register_address): Likewise.
6454 2003-06-02 Richard Henderson <rth@redhat.com>
6456 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6457 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6458 * alpha-tdep.h: Declare them.
6460 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6461 Remove zerobuf. Don't error on UNIQUE.
6462 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6463 (ALPHA_REGSET_UNIQUE): Provide default.
6464 (supply_gregset): Use alpha_supply_int_regs.
6465 (fill_gregset): Use alpha_fill_int_regs.
6466 (supply_fpregset): Use alpha_supply_fp_regs.
6467 (fill_fpregset): Use alpha_fill_fp_regs.
6468 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6469 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6470 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6471 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6472 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6473 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6475 2003-06-02 Richard Henderson <rth@redhat.com>
6477 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6479 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6480 (alpha_store_return_value): Likewise.
6482 2003-06-02 David Carlton <carlton@math.stanford.edu>
6484 * block.c (contained_in): Add 'const' to arguments.
6485 (block_function): Ditto.
6486 * block.h: Update declarations for block_function and
6489 2003-06-02 David Carlton <carlton@math.stanford.edu>
6491 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6492 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6493 * p-valprint.c (pascal_val_print): Ditto.
6494 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6496 2003-06-02 Richard Henderson <rth@redhat.com>
6498 * alpha-tdep.c (alpha_push_dummy_call): Use
6499 builtin_type_ieee_double_little instead of builtin_type_double.
6501 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
6502 sign-extension of 32-bit values.
6503 (alpha_store_return_value): Similarly.
6505 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6506 (alpha_extract_return_value): Likewise.
6507 (alpha_store_return_value): Likewise.
6509 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6510 (alpha_store_return_value): Error on IEEE Quad floats.
6512 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6513 (alpha_extract_struct_value_address): Likewise.
6514 (alpha_store_return_value): Likewise.
6515 (alpha_store_struct_return): Remove.
6516 (alpha_gdbarch_init): Update hook registration to match.
6518 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6519 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6520 macros where appropriate.
6521 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6522 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
6524 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6525 for SP, GP; void_func_ptr for PC; non-language-specific types
6527 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
6529 2003-06-02 Richard Henderson <rth@redhat.com>
6531 * top.h (lim_at_start): Declare.
6532 * main.c (captured_main): Set it.
6533 * top.c (lim_at_start): Define.
6534 (command_loop): Use it instead of &environ.
6535 * event-top.c (command_handler): Likewise.
6537 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6539 * mipsnbsd-tdep.c: Update copyright years.
6540 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6542 2003-06-01 Richard Henderson <rth@redhat.com>
6544 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6545 (alpha-linux-tdep.o): Update dependencies.
6546 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6547 * alpha-mdebug-tdep.c: Remove unneeded includes.
6549 2003-06-01 Richard Henderson <rth@redhat.com>
6551 * alpha-tdep.c (alpha_register_reggroup_p): New.
6552 (alpha_gdbarch_init): Register it.
6554 2003-06-02 Andrew Cagney <cagney@redhat.com>
6556 * dwarfread.c: Eliminate "register"
6557 (decode_die_type): Eliminate assignment within "if".
6558 (struct_type, decode_array_element_type): Ditto.
6559 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6560 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6561 (decode_modified_type, completedieinfo): Ditto.
6562 * block.c: Eliminate "register".
6563 (blockvector_for_pc_sect): Eliminate assignment within "if".
6564 * cp-support.h (struct symbol): Opaque declaration.
6565 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6567 2003-06-01 Richard Henderson <rth@redhat.com>
6569 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6570 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
6572 2003-06-01 Adam Fedor <fedor@gnu.org>
6574 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6575 * gdbarch.[ch]: Regenerate.
6576 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6577 (hppa_gdbarch_init): Set it in the gdbarch vector.
6578 * i386-tdep.c (i386_fetch_pointer_argument): New
6579 (i386_gdbarch_init): Set it into gdbarch.
6580 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6581 (rs6000_gdbarch_init): Set it in gdbarch.
6582 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6583 (sparc_gdbarch_init): Set it in gdbarch.
6585 2003-06-01 Andrew Cagney <cagney@redhat.com>
6587 * defs.h (extract_address): Delete declaration.
6588 * findvar.c (extract_address): Delete function.
6589 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6590 extract_address with the inline equivalent,
6591 extract_unsigned_integer.
6592 (xstormy16_extract_struct_value_address): Ditto.
6593 (xstormy16_pointer_to_address): Ditto.
6594 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6595 * v850-tdep.c (v850_push_arguments): Ditto.
6596 (v850_extract_return_value): Ditto.
6597 (v850_extract_struct_value_address): Ditto.
6598 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6599 (sparcnbsd_get_longjmp_target_64): Ditto.
6600 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6601 (get_longjmp_target): Ditto.
6602 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6603 (sh64_extract_struct_value_address): Ditto.
6604 (sh_push_arguments): Ditto.
6605 (sh64_push_arguments): Ditto.
6606 * remote-vxsparc.c (vx_read_register): Ditto.
6607 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6608 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6609 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6610 * mipsv4-nat.c (get_longjmp_target): Ditto.
6611 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6612 * mips-nat.c (get_longjmp_target): Ditto.
6613 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6614 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6615 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6616 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6617 * irix5-nat.c (get_longjmp_target): Ditto.
6618 * irix4-nat.c (get_longjmp_target): Ditto.
6619 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6620 (ia64_push_arguments): Ditto.
6621 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6622 * h8300-tdep.c (h8300_push_arguments): Ditto.
6623 (h8300_store_return_value): Ditto.
6624 (h8300_extract_struct_value_address): Ditto.
6625 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6626 (frv_push_arguments): Ditto.
6627 * avr-tdep.c (avr_pointer_to_address): Ditto.
6628 (avr_push_arguments): Ditto.
6629 * arm-tdep.c (arm_push_dummy_call): Ditto.
6630 (arm_get_longjmp_target): Ditto.
6631 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6632 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6633 (alpha_get_longjmp_target): Ditto.
6635 * solib-irix.c (extract_mips_address): Inline extract_address,
6636 replacing it with extract_signed_integer.
6637 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6638 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6639 (first_link_map_member, open_symbol_file_object): Ditto.
6640 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6641 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6642 (LM_NEXT, LM_NAME): Ditto.
6644 2003-06-01 Richard Henderson <rth@redhat.com>
6646 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6647 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6648 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6649 (alpha_cannot_store_register): Likewise.
6650 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6651 * alpha-nat.c (supply_gregset): Likewise.
6652 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
6654 2003-06-01 Andrew Cagney <cagney@redhat.com>
6656 * infcall.c (call_function_by_hand): Update comment on
6657 DEPRECATED_DUMMY_WRITE_SP.
6659 * mips-tdep.c (mips_gdbarch_init): Do not set
6660 deprecated_dummy_write_sp.
6661 (mips_eabi_push_dummy_call): Set the SP register.
6662 (mips_o64_push_dummy_call): Set the SP register.
6663 (mips_o32_push_dummy_call): Set the SP register.
6664 (mips_n32n64_push_dummy_call): Set the SP register.
6666 2003-06-01 Richard Henderson <rth@redhat.com>
6668 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6669 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6670 (supply_gregset): Likewise.
6671 * alpha-tdep.c (alpha_store_return_value): Likewise.
6672 (alpha_get_longjmp_target): Likewise.
6673 (alpha_register_name): Constify array.
6674 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6675 deprecated_register_size, deprecated_register_bytes,
6676 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6677 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6678 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
6680 2003-06-01 Richard Henderson <rth@redhat.com>
6682 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6683 from arg_reg_buffer to regcache to avoid double conversion.
6685 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6687 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6689 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6690 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6692 2003-06-01 Richard Henderson <rth@redhat.com>
6694 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6695 (decode_frame_entry): Set it. Skip FDE augmentation.
6697 2003-06-01 Richard Henderson <rth@redhat.com>
6699 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6700 not overlapping PC_REGNUM.
6702 2003-06-01 Richard Henderson <rth@redhat.com>
6704 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6705 alpha_push_arguments. Don't dump argument register data to
6706 the target stack. Fix float and 128-bit long double semantics.
6707 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6708 (alpha_fix_call_dummy): Remove.
6709 (alpha_call_dummy_words): Remove.
6710 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
6712 2003-06-01 Richard Henderson <rth@redhat.com>
6714 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6716 2003-06-01 Andrew Cagney <cagney@redhat.com>
6718 * mips-tdep.c (is_mips16_addr): New function.
6719 (make_mips16_addr, unmake_mips16_addr): New functions.
6720 (pc_is_mips16, mips_fetch_instruction): Use.
6721 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6722 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6723 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6724 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6726 * config/mips/tm-mips.h: Update copyright.
6727 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6728 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6729 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6730 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6731 (TM_PRINT_INSN_MACH): Delete.
6732 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6734 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6735 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6736 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6737 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6738 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6739 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6740 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6741 mips*-*-riscos* and mips*-*-sysv* onto mips.
6742 * config/mips/mips64.mt: New file.
6743 * config/mips/mips.mt: New file.
6744 * config/mips/littlemips.mt: Delete file.
6745 * config/mips/decstation.mt: Delete file.
6746 * config/mips/vr4300el.mt: Delete file.
6747 * config/mips/vr5000el.mt: Delete file.
6748 * config/mips/vr5000.mt: Delete file.
6749 * config/mips/vr4100.mt: Delete file.
6750 * config/mips/vr4xxxel.mt: Delete file.
6751 * config/mips/vr4300.mt: Delete file.
6752 * config/mips/vr4xxx.mt: Delete file.
6753 * config/mips/bigmips.mt: Delete file.
6754 * config/mips/bigmips64.mt: Delete file.
6755 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6756 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6757 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6758 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6759 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6761 * config/mips/tm-irix3.h: Ditto.
6762 * config/mips/tm-mipsv4.h: Ditto.
6763 * config/mips/tm-embed.h: Ditto.
6764 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6766 * config/mips/tm-vr5000el.h: Delete file.
6767 * config/mips/tm-tx39l.h: Delete file.
6768 * config/mips/tm-vr4300el.h: Delete file.
6769 * config/mips/tm-vr4xxxel.h: Delete file.
6770 * config/mips/tm-vr4300.h: Delete file.
6771 * config/mips/tm-vr4100.h: Delete file.
6772 * config/mips/tm-vr4xxx.h: Delete file.
6773 * config/mips/tm-vr5000.h: Delete file.
6774 * config/mips/tm-embedl64.h: Delete file.
6775 * config/mips/tm-embedl.h: Delete file.
6776 * config/mips/tm-embed64.h: Delete file.
6777 * config/mips/tm-bigmips64.h: Delete file.
6778 * config/mips/tm-bigmips.h: Delete file.
6780 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6783 * shnbsd-nat.c: Include "sh-tdep.h".
6785 From Richard Henderson <rth@redhat.com>:
6786 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6788 2003-05-31 Andrew Cagney <cagney@redhat.com>
6790 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6791 forward declaration.
6792 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6793 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6794 (mips_find_saved_regs): Use set_reg_offset.
6795 (mips_frame_init_saved_regs): Delete function.
6796 (mips_pop_frame): Call mips_find_saved_regs instead of
6797 DEPRECATED_FRAME_INIT_SAVED_REGS.
6799 2003-05-31 Andrew Cagney <cagney@redhat.com>
6801 * mips-tdep.c (mips_gdbarch_init): Do not set
6802 deprecated_max_register_raw_size, register_virtual_size, and
6803 deprecated_max_register_virtual_size.
6805 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6807 * i386-tdep.c: Include "dwarf2-frame.h".
6808 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6809 * Makefile.in (i386-tdep.o): Update dependencies.
6811 * dwarf2-frame.c, dwarf2-frame.h: New files.
6812 * Makefile.in (SFILES): Add dwarf2-frame.c.
6813 (dwarf2_frame_h): Define.
6814 (COMMON_OBS): Add dwarf2-frame.o.
6815 (dwarf2-frame.o): Add dependencies.
6817 2003-05-31 Andreas Jaeger <aj@suse.de>
6819 * x86-64-linux-nat.c: Fix comment.
6821 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6823 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6826 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6827 have a sigcontext_addr handler.
6828 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6829 sigcontext_addr handler.
6831 2003-05-31 Andrew Cagney <cagney@redhat.com>
6833 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6834 (print_fp_register_row): Replace do_fp_register_row.
6835 (mips_print_fp_register): Add "file" and "frame" parameters.
6836 (mips_print_register): Add "file" and "frame" parameters.
6837 (mips_print_registers_info): Replace mips_do_registers_info.
6838 (mips_gdbarch_init): Set print_registers_info instead of
6839 deprecated_do_registers_info.
6840 (mips_read_fp_register_single): Add "frame" parameter.
6841 (mips_read_fp_register_double): Add "frame" parameter.
6843 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6845 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6846 Fixes a bug where GDB would print the wrong register names for
6847 targets without SSE.
6849 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6850 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6853 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6854 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6855 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6858 From Michal Ludvig <mludvig@suse.cz>:
6859 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6861 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6862 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6863 I386_ST0_REGNUM): Move here from...
6864 * i386-tdep.c: ... here.
6865 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6866 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6867 registers if possible.
6868 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6869 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6871 (i386bsd_sc_reg_offset): New variable.
6872 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6873 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6875 (i386fbsd_sc_reg_offset): New variable.
6876 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6878 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6880 (i386fbsd4_sc_reg_offset): New variable.
6881 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6882 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6884 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6885 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6886 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6888 (i386nbsd_sc_reg_offset): New variable.
6889 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6890 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6892 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6894 (i386obsd_sc_reg_offset): New variable.
6895 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6896 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6898 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6899 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6900 for frame pointer offset in `struct sigcontext'.
6902 2003-05-31 Andrew Cagney <cagney@redhat.com>
6904 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6905 architecture methods call_dummy_words, sizeof_call_dummy_words,
6906 push_return_address, store_struct_return, and fix_call_dummy. Set
6907 push_dummy_call instead of deprecated_push_arguments.
6908 (mips_store_struct_return): Delete function.
6909 (mips_fix_call_dummy): Delete function.
6910 (mips_push_return_address): Delete function.
6911 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6912 RA_REGNUM and T9_REGNUM.
6913 (mips_n32n64_push_dummy_call): Ditto for
6914 mips_n32n64_push_arguments.
6915 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6916 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6918 2003-05-31 Andrew Cagney <cagney@redhat.com>
6920 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6921 "dummy_addr" to "bp_addr".
6922 * infcall.c (call_function_by_hand): Pass "funaddr" to
6923 gdbarch_push_dummy_call.
6924 * gdbarch.h, gdbarch.c: Re-generate.
6925 * i386-tdep.c (i386_push_dummy_call): Update.
6926 * arm-tdep.c (arm_push_dummy_call): Update.
6927 * d10v-tdep.c (d10v_push_dummy_call): Update.
6929 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6931 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6932 variable declarations.
6933 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6934 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6935 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6936 x86_64_init_frame_pc, x86_64_init_frame_pc,
6937 x86_64_function_has_prologue): Remove prototypes.
6938 (X86_64_NUM_GREGS): New define.
6939 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6940 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6941 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6942 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6943 XMM1_REGNUM): Remove defines.
6944 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6945 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6946 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6947 X86_64_XMM1_REGNUM): New defines.
6948 (struct x86_64_register_info): Renamed from `struct
6949 register_info'. Remove `size' member.
6950 (x86_64_register_info_table): Remove variable.
6951 (x86_64_register_info): New variable.
6952 (X86_64_NUM_REGS): New define.
6953 (X86_64_NUM_GREGS): Remove define.
6954 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6955 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6957 (x86_54_dwarf2_reg_to_regnum): Remove function.
6958 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6959 (x86_64_dwarf_reg_to_regnum): New function.
6960 (x86_64_register_name): Rewrite.
6961 (x86_64_register_raw_size): Remove function.
6962 (x86_64_register_byte_table): Remove variable.
6963 (x86_64_register_byte): Remove function.
6964 (x86_64_register_virtual_type): Remove function.
6965 (x86_64_register_type): New function.
6966 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6967 x86_64_register_convert_to_raw): Remove functions.
6968 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6969 (x86_64_use_struct_convention): Make static. Adjust for renamed
6971 (x86_64_frame_init_saved_regs): Remove function.
6972 (x86_64_push_arguments): Make static. Change to accept a regcache
6974 (x86_64_store_return_value, x86_64_extract_return_value): Make
6975 static. Rewrite based on i386 counterparts.
6976 (x86_64_push_dummy_call): New function.
6977 (X86_64_NUM_SAVED_REGS): New define.
6978 (x86_64_register_number): Remove function.
6979 (x86_64_store_struct_return): Remove function.
6980 (x86_64_frameless_function_invocation,
6981 x86_64_function_has_prologue): Remove functions.
6982 (PROLOG_BUFSIZE): Remove define.
6983 (struct x86_64_frame_cache): New structure.
6984 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6985 x86_64_frame_cache, x86_64_frame_this_id,
6986 x86_64_frame_prev_register, x86_64_frame_p,
6987 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6988 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6990 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6992 (x86_64_skip_prologue): Rewrite in terms of
6993 x86_64_analyze_prologue.
6994 (x86_64_frame_base_address): New function.
6995 (x86_64_frame_base): New variable.
6996 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6997 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6998 set deprecated_fp_regnum, deprecated_register_size,
6999 deprecated_register_bytes, register_raw_size, register_byte,
7000 register_virtual_type, register_convertiable,
7001 register_convert_to_virtual, convert_to_raw,
7002 deprecated_get_saved_register, deprecated_target_read_fp,
7003 deprecated_push_arguments, deprecated_push_return_address,
7004 deprecated_pop_frame, deprecated_store_struct_return,
7005 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7006 frameless_function_invocation, deprecated_frame_saved_pc,
7007 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7008 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7009 deprecated_init_frame_pc and virtual_frame_pointer. Call
7010 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7011 and x86_64_frame_p. Call frame_base_set_default to register
7013 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7014 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7015 (_initialize_x86_64_tdep): Remove function.
7016 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7017 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7018 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7020 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7021 (x86_64_linux_sigcontext_addr): Rewrite.
7022 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7023 x86_64_linux_frame_saved_pc): Remove functions.
7024 (x86_64_linux_pc_in_sigtramp): Renamed from
7025 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7027 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7029 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7030 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7031 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7032 (x86_64_regmap): Rename to regmap.
7033 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7035 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7037 (x86_64_fxsave_offset): Remove function.
7038 (supply_fpregset): Simply call x86_64_supply_fxsave.
7039 (fill_fpregset): Simply call x86_64_fill_fxsave.
7040 (fetch_inferior_registers, store_inferior_registers): Avoid
7041 asignment in if-statement.
7042 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7043 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7044 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7045 (fetch_core_registers): Remove function.
7046 (linux_elf_core_fns): Remove.
7047 (offsetoff): Don't define.
7048 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7049 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7050 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7052 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7053 protection against multiple includes instead of NM_X86_64_h. Add
7054 various comments. Include "config/nm-linux.h". Don't include
7056 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7057 GET_THREAD_SIGNALS): Remove defines.
7058 (x86_64_register_u_addr, kernel_u_size,
7059 lin_thread_get_thread_signals): Remove prototypes.
7060 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7061 [HAVE_LINK_H]: Don't include "solib.h".
7062 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7063 * config/i386/tm-x86-64linux.h: Fix comments.
7064 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7065 x86-64-tdep.o): Update dependencies.
7067 2003-05-30 Andrew Cagney <cagney@redhat.com>
7069 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7070 Change parameter type to a "struct regcache *".
7072 * gdbarch.sh: Regardless of the multi-arch level, always define
7073 the macro when not already defined.
7074 * gdbarch.h, gdbarch.c: Re-generate.
7076 2003-05-30 Richard Henderson <rth@redhat.com>
7078 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7079 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7080 (alpha_mdebug_frame_this_id): Likewise.
7081 (alpha_mdebug_frame_prev_register): Likewise.
7082 (alpha_mdebug_frame_base_address): Likewise.
7083 (alpha_mdebug_frame_locals_address): Likewise.
7084 (alpha_mdebug_frame_args_address): Likewise.
7085 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7086 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7087 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7089 (alpha_heuristic_frame_this_id): Make static.
7090 (alpha_heuristic_frame_prev_register): Likewise.
7091 (alpha_heuristic_frame_base_address): Likewise.
7092 * alpha-tdep.h: Update.
7094 2003-05-30 Mark Kettenis <kettenis@gnu.org>
7096 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7097 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7099 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7100 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7101 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7102 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7103 I386_ST0_REGNUM): New defines.
7104 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7105 codestream_get): Remove define.
7106 (codestream_next_addr, condestream_addr, condestream_buf,
7107 codestream_off, codestream_cnt): Remove variables.
7108 (codestream_fill, codestream_seek, codestream_read): Remove
7110 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7112 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7113 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7114 i386_frame_saved_pc, i386_saved_pc_after_call,
7115 i386_frame_num_args, i386_frame_init_saved_regs,
7116 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7117 i386_push_arguments): Remove functions.
7118 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7119 functionality. Use i386_analyze_prologue instead of
7120 i386_get_frame_setup.
7121 (I386_NUM_SAVED_REGS): New define.
7122 (struct i386_frame_cache): New structure.
7123 (i386_alloc_frame_cache, i386_analyze_struct_return,
7124 i386_skip_probe, i386_analyze_frame_setup,
7125 i386_analyze_register_saves, i386_analyze_prologue,
7126 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7127 i386_frame_prev_register, i386_sigtramp_frame_cache,
7128 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7129 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7130 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7132 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7134 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7135 I386_EAX_REGNUM and I386_EDX_REGNUM.
7136 (i386_extract_return_value, i386_store_return_value): Use
7137 I386_ST0_REGNUM where appropriate.
7138 (i386_extract_struct_value_address): Rewrite to use extract_address.
7139 (i386_svr4_pc_in_sigtramp): Add comment.
7140 (i386_svr4_sigcontext_addr): Rewrite.
7141 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7143 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7144 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7145 of new defines. Set push_dummy_call, don't set
7146 deprecated_push_arguments, deprecated_push_return_address,
7147 deprecated_pop_frame. Don't set parm_boundary. Don't set
7148 deprecated_frame_chain, deprecated_frame_saved_pc,
7149 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7150 save_dummy_frame_tos, unwind_pc. Call
7151 frame_unwind_append_predicate and frame_base_set_default. Don't
7152 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7153 Don't set frameless_function_invocation. Don't set
7154 deprecated_register_bytes, deprecated_register_size,
7155 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7156 * i386-linux-tdep.c: Fix formatting in some comments.
7157 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7158 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7159 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7160 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7161 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7162 redundant parentheses.
7163 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7164 (i386_linux_sigcontext_addr): Use it. Rewrite.
7165 (find_minsym_and_objfile): Change name of second argument.
7166 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7167 changed. Use frame_pc_unwind instead of
7168 DEPRECATED_SAVED_PC_AFTER_CALL.
7169 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7170 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7171 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7173 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7175 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7176 (_initialize_i386_cygwin_tdep): New prototype.
7177 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7178 deprecated_frame_chain_valid.
7179 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7180 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7181 Rely on the SVR4 defaults.
7182 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7183 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7185 2003-05-30 Andrew Cagney <cagney@redhat.com>
7187 * infcall.c (call_function_by_hand): Always call
7188 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7190 2003-05-30 Richard Henderson <rth@redhat.com>
7192 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7195 2003-05-29 Jim Blandy <jimb@redhat.com>
7197 Use gdbarch methods for solib stuff on PowerPC Linux.
7198 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7199 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7201 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7202 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7203 giving the same effect as the #definitions above.
7205 2003-05-29 Adam Fedor <fedor@gnu.org>
7207 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7208 (find_implementation_from_class): Replace it with the standard
7209 case i.e. do nothing.
7211 2003-05-29 Richard Henderson <rth@redhat.com>
7213 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7214 (alpha_linux_sigtramp_offset): Use it. Make static.
7215 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7216 update for new frame model.
7217 * alpha-mdebug-tdep.c: New file.
7218 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7219 (alpha_osf1_init_abi): Install it.
7220 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7221 (linked_proc_desc_table): Remove.
7222 (alpha_frame_past_sigtramp_frame): Remove.
7223 (alpha_dynamic_sigtramp_offset): Remove.
7224 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7225 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7226 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7227 (push_sigtramp_desc): Remove.
7228 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7229 (alpha_cannot_store_register): Likewise.
7230 (alpha_sigcontext_addr): Remove.
7231 (alpha_find_saved_regs): Remove.
7232 (alpha_frame_init_saved_regs): Remove.
7233 (alpha_init_frame_pc_first): Remove.
7234 (read_next_frame_reg): Remove.
7235 (alpha_frame_saved_pc): Remove.
7236 (alpha_saved_pc_after_call): Remove.
7237 (temp_proc_desc, temp_saved_regs): Remove.
7238 (alpha_about_to_return): Remove.
7239 (cached_proc_desc): Remove.
7240 (alpha_frame_chain): Remove.
7241 (alpha_print_extra_frame_info): Remove.
7242 (alpha_init_extra_frame_info): Remove.
7243 (alpha_frame_locals_address): Remove.
7244 (alpha_frame_args_address): Remove.
7245 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7246 (alpha_push_dummy_frame): Remove.
7247 (alpha_pop_frame): Remove.
7248 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7249 (alpha_read_insn): New.
7250 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7251 for different insn encodings.
7252 (alpha_in_lenient_prologue): Remove.
7253 (struct alpha_sigtramp_unwind_cache): New.
7254 (alpha_sigtramp_frame_unwind_cache): New.
7255 (alpha_sigtramp_register_address): New.
7256 (alpha_sigtramp_frame_this_id): New.
7257 (alpha_sigtramp_frame_prev_register): New.
7258 (alpha_sigtramp_frame_unwind): New.
7259 (alpha_sigtramp_frame_p): New.
7260 (struct alpha_heuristic_unwind_cache): New.
7261 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7262 don't count nop insns that occur between functions.
7263 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7264 heuristic_proc_desc, but without the mdebug wrapping.
7265 (alpha_heuristic_frame_this_id): New.
7266 (alpha_heuristic_frame_prev_register): New.
7267 (alpha_heuristic_frame_unwind): New.
7268 (alpha_heuristic_frame_p): New.
7269 (alpha_heuristic_frame_base_address): New.
7270 (alpha_heuristic_frame_base): New.
7271 (alpha_unwind_dummy_id): New.
7272 (alpha_unwind_pc): New.
7273 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7274 frame related deprecated initializations; install replacements.
7275 (alpha_dump_tdep): Remove.
7276 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7277 (alpha_read_insn, alpha_after_prologue,
7278 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7279 alpha_heuristic_frame_prev_register,
7280 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7281 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7282 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7283 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7285 2003-05-29 Andrew Cagney <cagney@redhat.com>
7287 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7288 dependant on the availability of ASSERT_FUNCTION.
7289 (ASSERT_FUNCTION): Do not define when there is no function name.
7291 2003-05-29 Kevin Buettner <kevinb@redhat.com>
7293 From Jimi X <jimix@watson.ibm.com>:
7294 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7296 2003-05-28 Jim Blandy <jimb@redhat.com>
7298 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7299 argument to ptrace to int; the system headers should give it the
7300 right type, and pointers don't fit in ints on powerpc64-*-*.
7302 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7304 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7307 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7309 * stabsread.c (dbx_lookup_type): Make static.
7311 (add_undefined_type): Ditto.
7312 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7315 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7317 * hpread.c (hpread_has_name): Make static.
7318 (hpread_psymtab_to_symtab): Ditto.
7319 (file_exists): Ditto.
7320 (hpread_call_pxdb): Ditto.
7321 (hpread_pxdb_needed): Ditto.
7322 (hpread_quick_traverse): Ditto.
7323 (hpread_get_header): Ditto.
7324 (hpread_get_lntt): Ditto.
7325 (hpread_get_slt): Ditto.
7328 2003-05-25 Andreas Schwab <schwab@suse.de>
7330 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7331 stack_align and deprecated_extra_stack_alignment_needed.
7332 (m68k_stack_align): Delete.
7334 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7335 (m68k_register_virtual_size): Likewise.
7336 (altos_skip_prologue): Remove obsolete function.
7337 (isi_frame_num_args): Likewise.
7338 (news_frame_num_args): Likewise.
7339 (m68k_fix_call_dummy): Make static.
7340 (m68k_push_dummy_frame): Likewise.
7341 (m68k_pop_frame): Likewise.
7342 (m68k_skip_prologue): Likewise.
7343 (m68k_frame_init_saved_regs): Likewise.
7344 (m68k_saved_pc_after_call): Likewise.
7345 (m68k_get_longjmp_target): Make multi-arch.
7346 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7347 structure. Register m68k_get_longjmp_target if enabled.
7348 * m68k-tdep.h (struct gdbarch_tdep): Define.
7349 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7351 * Makefile.in (config.status): Also depend on configure.tgt
7353 (m68klinux-tdep.o): Update dependencies.
7354 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7355 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7356 (M68K_LINUX_JB_PC): Define.
7357 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7358 and take additional parameter.
7359 (m68k_linux_sigtramp_saved_pc): Update.
7360 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7361 m68k_linux_pc_in_sigtramp, in_plt_section,
7362 find_solib_trampoline_target.
7363 * config/m68k/tm-linux.h: Don't include any tm headers.
7364 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7365 (JB_ELEMENT_SIZE): Likewise.
7367 (GET_LONGJMP_TARGET): Likewise.
7368 (IN_SIGTRAMP): Likewise.
7369 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7371 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7373 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7374 (sparc32_push_arguments): Re-implement by calling
7375 sparc32_do_push_arguments.
7377 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7379 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7380 SPARC_O1_REGNUM): New defines.
7381 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7382 (sparc32_store_return_value): New function.
7383 (sparc_extract_struct_value_address): Rewrite to operate on a
7385 (sparc_gdbarch_init): Don't set
7386 deprecated_extract_struct_value_address. Set
7387 extract_struct_value_address instead. Don't set
7388 deprecated_extract_return_value and deprecated_store_return_value
7389 for 32-bit targets. Set extract_return_value and
7390 store_return_value instead.
7391 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7392 DEPRECTAED_EXTRACT_RETURN_VALUE,
7393 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7394 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7395 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7396 (sparc_store_return_value): Remove prototype.
7397 (sparc32_store_return_value): New prototype.
7398 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7401 2003-05-24 Mark Kettenis <kettenis@gnu.org>
7403 * sparcnbsd-tdep.c: Include "gdb_string.h".
7405 2003-05-23 Andrew Cagney <cagney@redhat.com>
7407 * p-valprint.c (pascal_val_print): Replace extract_address with
7408 the inline equivalent extract_unsigned_integer.
7409 * jv-valprint.c (java_value_print): Ditto.
7410 * ada-valprint.c (ada_val_print_1): Ditto.
7411 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7413 2003-05-23 Theodore A. Roth <troth@openavr.org>
7415 * blockframe.c (frameless_look_for_prologue): Remove unused
7416 after_prologue variable.
7418 2003-05-23 Mark Kettenis <kettenis@gnu.org>
7420 * blockframe.c (get_pc_function_start): Rewrite to avoid
7421 asignments in if-statements.
7423 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7425 Committed by Elena Zannoni <ezannoni@redhat.com>.
7426 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
7427 files, don't relocate absolute symbols (and do use mst_abs).
7429 2003-05-23 Andrew Cagney <cagney@redhat.com>
7431 * objc-lang.c: Include "gdb_assert.h".
7432 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7433 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7434 (gdb_check, gdb_check_fatal): Delete functions.
7435 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7437 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7438 * Makefile.in (objc-lang.o): Update dependencies.
7440 2003-05-22 Ian Lance Taylor <ian@airs.com>
7442 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7443 with fprintf_filtered, not fprintf_unfiltered.
7445 2003-05-22 Andrew Cagney <cagney@redhat.com>
7447 * stack.c (frame_info): Inline extract_address, replacing it with
7448 extract_unsigned_integer.
7449 * findvar.c (unsigned_pointer_to_address): Ditto.
7450 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7451 * dwarf2expr.c (dwarf2_read_address): Ditto.
7452 * frame.c (frame_pc_unwind): Update comment.
7453 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7455 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7457 * infptrace.c (detach): Call print_sys_errmsg rather than
7458 perror_with_name to issue warning message when errno is non-zero
7459 after calling ptrace detach.
7461 2003-05-21 J. Brobecker <brobecker@gnat.com>
7463 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7464 macro definitions from here...
7465 * hppa-tdep.c: ...to there.
7467 2003-05-20 Kevin Buettner <kevinb@redhat.com>
7469 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7470 register_ptrace_addr(). Fix all callers.
7472 2003-05-21 Andreas Schwab <schwab@suse.de>
7474 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7476 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7478 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7479 (_initialize_m68k_linux_tdep): New function.
7480 (m68k_linux_frame_saved_pc): Make static.
7481 (m68k_linux_extract_return_value): Likewise.
7482 (m68k_linux_store_return_value): Likewise.
7483 (m68k_linux_extract_struct_value_address): Likewise.
7484 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7486 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7487 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7488 (DEPRECATED_FRAME_SAVED_PC): Remove.
7490 2003-05-20 Kris Warkentin <kewarken@qnx.com>
7492 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7493 regset numbering rather than our own.
7495 2003-05-19 David Carlton <carlton@bactrian.org>
7497 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7499 2003-05-19 David Carlton <carlton@bactrian.org>
7501 Partial fix for PR c++/827.
7502 * cp-support.h: Include symtab.h.
7503 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7504 * cp-namespace.c: Update contributors.
7505 (cp_lookup_symbol_nonlocal): New.
7506 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7507 (lookup_symbol_file): Ditto.
7508 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7509 * block.h: Declare block_scope, block_using, block_global_block.
7510 * block.c (block_scope): New.
7511 (block_using, block_global_block): Ditto.
7512 * Makefile.in (cp_support_h): Depend on symtab_h.
7513 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7515 2003-05-19 David Carlton <carlton@bactrian.org>
7517 * language.h (struct language_defn): Add 'la_value_of_this'
7518 and 'la_lookup_symbol_nonlocal' members.
7519 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7520 lookup_symbol_static, lookup_symbol_global,
7521 lookup_symbol_aux_block.
7522 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7523 if we should search fields of this and how to do static/global
7525 (lookup_symbol_aux_block): Make extern.
7526 (basic_lookup_symbol_nonlocal): New.
7527 (lookup_symbol_static, lookup_symbol_global): Ditto.
7528 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7529 'la_lookup_symbol_nonlocal' members.
7530 * c-lang.c (c_language_defn, cplus_language_defn)
7531 (asm_language_defn, minimal_language_defn): Ditto.
7532 * jv-lang.c (java_language_defn): Ditto.
7533 * language.c (unknown_language_defn, auto_language_defn)
7534 (local_language_defn): Ditto.
7535 * m2-lang.c (m2_language_defn): Ditto.
7536 * objc-lang.c (objc_language_defn): Ditto.
7537 * scm-lang.c (scm_language_defn): Ditto.
7538 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7539 * p-lang.c (pascal_language_defn): Ditto for both.
7540 * Makefile.in (f-lang.o): Depend on value_h.
7543 2003-05-19 David Carlton <carlton@bactrian.org>
7545 * block.h: Declare block_static_block.
7546 * block.c (block_static_block): New.
7547 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7548 lookup_symbol_aux_local, calling block_static_block instead.
7549 (lookup_symbol_aux_local): Delete 'static_block' argument.
7551 2003-05-19 David Carlton <carlton@bactrian.org>
7553 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7555 2003-05-19 Michal Ludvig <mludvig@suse.cz>
7557 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7558 register numbers mapping.
7560 2003-05-18 Adam Fedor <fedor@gnu.org>
7562 * symtab.c (completion_list_objc_symbol): New function.
7563 (make_symbol_completion_list): Use it to add ObjC symbols
7564 when looking though the list.
7565 (language_search_unquoted_string): New function.
7566 (make_file_symbol_completion_list): Use it.
7568 2003-05-18 Andreas Schwab <schwab@suse.de>
7570 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7572 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7573 as m68k_linux_extract_return_value.
7574 (DEPRECATED_STORE_RETURN_VALUE): Define as
7575 m68k_linux_store_return_value.
7576 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7577 m68k_linux_extract_struct_value_address.
7578 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7579 get_next_frame, get_frame_base, get_frame_pc.
7580 (m68k_linux_frame_saved_pc): Use get_frame_base.
7581 (m68k_linux_extract_return_value): New function.
7582 (m68k_linux_store_return_value): New function.
7583 (m68k_linux_extract_struct_value_address): New function.
7584 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7586 * c-exp.y (typebase): Remove duplicate occurence of
7587 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
7588 of lookup_signed_typename.
7590 2003-05-18 Mark Kettenis <kettenis@gnu.org>
7592 * dwarf2loc.c (find_location_expression): Change type of second
7593 argument to `size_t *'.
7594 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7597 2003-05-18 David Carlton <carlton@bactrian.org>
7599 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7600 'linkage_name'. Add comment.
7601 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7603 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7604 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7605 (lookup_block_symbol): Ditto.
7607 2003-05-16 Andrew Cagney <cagney@redhat.com>
7609 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7610 * gdbarch.h, gdbarch.c: Re-generate.
7611 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7612 * TODO (REGISTER_BYTES): Delete reference.
7613 * alpha-tdep.c (alpha_gdbarch_init): Update.
7614 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7615 * x86-64-tdep.c (x86_64_init_abi): Update.
7616 * vax-tdep.c (vax_gdbarch_init): Update.
7617 * v850-tdep.c (v850_gdbarch_init): Update.
7618 * sparc-tdep.c (sparc_gdbarch_init): Update.
7619 * sh-tdep.c (sh_gdbarch_init): Update.
7620 * s390-tdep.c (s390_gdbarch_init): Update.
7621 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7622 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7623 (ns32k_gdbarch_init_32382): Update.
7624 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7625 * mcore-tdep.c (mcore_gdbarch_init): Update.
7626 * m68k-tdep.c (m68k_gdbarch_init): Update.
7627 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7628 * ia64-tdep.c (ia64_gdbarch_init): Update.
7629 * i386-tdep.c (i386_gdbarch_init): Update.
7630 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7631 * hppa-tdep.c (hppa_gdbarch_init): Update.
7632 * h8300-tdep.c (h8300_gdbarch_init): Update.
7633 * frv-tdep.c (frv_gdbarch_init): Update.
7634 * cris-tdep.c (cris_gdbarch_init): Update.
7635 * avr-tdep.c (avr_gdbarch_init): Update.
7636 * arm-tdep.c (arm_gdbarch_init): Update.
7637 * sparc-tdep.c (sparc_pop_frame): Update.
7638 * rs6000-tdep.c (rs6000_pop_frame): Update.
7639 * remote.c (init_remote_state): Update.
7640 (remote_prepare_to_store): Update.
7641 * remote-vx.c (vx_prepare_to_store): Update.
7642 * remote-sds.c (sds_fetch_registers): Update.
7643 (sds_prepare_to_store): Update.
7644 * remote-array.c: Update.
7645 * regcache.c (init_legacy_regcache_descr): Update.
7646 (init_regcache_descr): Update.
7647 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7648 (mips_o64_extract_return_value): Update.
7649 * irix5-nat.c (fetch_core_registers): Update.
7650 * irix4-nat.c (fetch_core_registers): Update.
7651 * i386-tdep.h: Update.
7652 * hppa-tdep.c (pa_do_registers_info): Update.
7653 (pa_do_strcat_registers_info): Update.
7654 * cris-tdep.c (cris_register_bytes_ok): Update.
7655 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7656 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7657 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7658 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7659 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7660 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7661 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7662 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7663 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7664 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7665 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7666 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7667 (REGISTER_BYTES_OK): Update.
7668 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7669 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7671 2003-05-16 Ian Lance Taylor <ian@airs.com>
7673 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7674 (vax_print_insn, print_insn_arg): Remove static functions.
7675 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7676 print_insn_vax from opcodes library.
7677 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7679 2003-05-15 Andrew Cagney <cagney@redhat.com>
7681 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7682 * target.h (memory_breakpoint_from_pc): Delete declaration.
7683 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7684 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7685 * monitor.c (monitor_insert_breakpoint): Use
7686 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7687 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7688 * gdbarch.h, gdbarch.c: Re-generate.
7689 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7690 (sparc_gdbarch_init): Set breakpoint_from_pc to
7691 sparc_breakpoint_from_pc.
7692 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7693 (BREAKPOINT_FROM_PC): Define.
7694 (sparc_breakpoint_from_pc): Declare.
7695 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7696 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7697 (BREAKPOINT_FROM_PC): Define.
7698 (BREAKPOINT): Delete macro.
7699 * target.h: Update comment.
7700 * s390-tdep.c (s390_gdbarch_init): Update comments.
7701 * remote.c: Update comments.
7702 * remote-mips.c: Update comments.
7703 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7704 * mem-break.c: Update comment.
7705 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7706 (ia64_memory_insert_breakpoint): Update.
7707 * config/sparc/tm-sparc.h: Update comment.
7708 * config/pa/tm-hppa64.h: Update comment.
7709 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7710 (rs6000_breakpoint_from_pc): Update.
7711 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7712 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7713 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7714 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7715 (mips_breakpoint_from_pc): Update.
7716 (mips_dump_tdep): Update.
7718 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7719 * minsyms.c (lookup_minimal_symbol): Inline
7720 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7722 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7723 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7724 * p-lang.c (pascal_printstr): Ditto.
7725 * objc-lang.c (objc_printstr): Ditto.
7726 * m2-lang.c (m2_printstr): Ditto.
7727 * jv-valprint.c (java_print_value_fields): Ditto.
7728 * f-lang.c (f_printstr): Ditto.
7729 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7730 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7731 for repeat_count_threshold.
7732 * Makefile.in (cp-valprint.o): Update dependencies.
7734 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
7736 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7737 (examine_prologue): Support looking through leaf functions, knowing
7738 they start with mov r2,r12. Support skipping over indirect stores
7739 of the input registers. Upon hitting a non-nop branch instruction
7740 or predicated instruction, bail out by setting lim_pc to the current
7741 pc value in the loop. At the end, if the lim_pc value is still
7742 beyond our calculated value and we have trust_limit set,
7743 use the lim_pc value.
7745 2003-05-15 Andrew Cagney <cagney@redhat.com>
7747 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7748 generic_find_dummy_frame.
7749 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7750 (deprecated_generic_find_dummy_frame): Update.
7751 (deprecated_read_register_dummy): Update.
7752 * frame.c (deprecated_generic_get_saved_register): Update.
7754 2003-05-15 Theodore A. Roth <troth@openavr.org>
7756 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7757 (avr_gdbarch_init): Set breakpoint_from_pc method.
7759 2003-05-15 Andrew Cagney <cagney@redhat.com>
7761 * regcache.c (build_regcache): Set deprecated_register_valid
7763 (deprecated_grub_regcache_for_register_valid): Delete function.
7764 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7767 2003-05-15 David Carlton <carlton@bactrian.org>
7769 Committed by Elena Zannoni <ezannoni@redhat.com>
7770 * symtab.c (lookup_symbol_aux): Delete calls to
7771 lookup_symbol_aux_minsyms.
7772 (lookup_symbol_aux_minsyms): Comment out function and
7773 prototype. Delete lookup by mangled name.
7775 2003-05-14 Kevin Buettner <kevinb@redhat.com>
7777 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7778 correctly indicate an empty stack and ``stack_allocated'' to the
7779 indicate the number of elements initially allocated.
7780 (dwarf_expr_grow_stack): Simplify method for computing new
7781 stack size. Don't loop infinitely if ``stack_len'' is zero.
7782 (execute_stack_op): Move ``ctx->in_reg'' initialization
7783 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7784 be used in conjuction with DW_OP_piece. Revise error message
7787 2003-05-14 Theodore A. Roth <troth@openavr.org>
7789 * MAINTAINERS: Update my email address.
7790 * avr-tdep.c: Ditto.
7792 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
7794 * symtab.h (enum domain_enum): Rename from namespace_enum.
7795 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7796 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7797 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7798 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7799 TYPES_NAMESPACE, METHODS_NAMESPACE.
7800 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7801 (struct symbol, struct partial_symbol): Rename field
7802 'namespace_enum namespace' to 'domain_enum domain'.
7803 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7804 Delete old define kludge for namespace.
7806 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7807 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7808 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7809 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7810 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7811 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7812 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7813 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7814 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7815 occurrences of the above.
7817 2003-05-14 Ian Lance Taylor <ian@airs.com>
7819 * Makefile.in (install-only): Use $(SHELL) when running
7822 2003-05-13 Ian Lance Taylor <ian@airs.com>
7824 * MAINTAINERS (write after approval): Add myself.
7826 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7827 second and third arguments.
7828 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7829 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7831 2003-05-13 Andrew Cagney <cagney@redhat.com>
7833 * defs.h (store_address): Delete declaration.
7834 findvar.c (store_address): Delete function.
7835 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7836 store_unsigned_integer.
7837 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7838 * v850-tdep.c (v850_push_arguments): Ditto.
7839 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7840 * sh-tdep.c (sh64_get_saved_register): Ditto.
7841 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7842 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7843 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7844 (mips_get_saved_register): Ditto.
7845 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7846 (find_func_descr, ia64_push_arguments): Ditto.
7847 * i386-tdep.c (i386_push_arguments): Ditto.
7848 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7849 * frv-tdep.c (frv_push_arguments): Ditto.
7850 * frame.c (legacy_saved_regs_prev_register): Ditto.
7851 (deprecated_generic_get_saved_register): Ditto.
7852 * findvar.c (unsigned_address_to_pointer): Ditto.
7853 * dwarf2read.c (dwarf2_const_value): Ditto.
7854 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7855 * alpha-tdep.c (alpha_push_arguments): Ditto.
7857 2003-05-12 J. Brobecker <brobecker@gnat.com>
7859 * NEWS: Mention that the hppa-hpux port has been partially
7860 multiarched (32bit ABIT only, so far).
7862 2003-05-11 Andrew Cagney <cagney@redhat.com>
7864 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7865 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7866 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7867 sim/testsuite/sim/arm/misaligned2.ms, and
7868 sim/testsuite/sim/arm/misaligned3.ms.
7869 * disasm.h (struct ui_file): Add opaque struct declaration.
7870 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7871 * frame.h (struct ui_file): Ditto.
7873 2003-05-11 Mark Kettenis <kettenis@gnu.org>
7875 * value.h: Pretty print.
7877 2003-05-10 Mark Kettenis <kettenis@gnu.org>
7879 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7881 2003-05-08 Andrew Cagney <cagney@redhat.com>
7883 * regcache.h (max_register_size): Delete declaration.
7884 * regcache.c (max_register_size): Delete function.
7885 (struct regcache_descr): Delete field "max_register_size".
7886 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7887 registers fit in MAX_REGISTER_SIZE.
7888 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7889 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7890 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7891 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7892 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7893 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7894 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7895 * dve3900-rom.c, hppa-tdep.c: Ditto.
7897 2003-05-08 David Carlton <carlton@math.stanford.edu>
7899 * valops.c (push_word): Fix typo.
7901 2003-05-08 Andrew Cagney <cagney@redhat.com>
7903 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7904 * gdbarch.h: Re-generate.
7905 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7906 (legacy_max_register_raw_size): Delete declaration.
7907 * regcache.c (legacy_max_register_raw_size): Delete function.
7908 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7909 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7910 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7911 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7912 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7913 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7914 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7915 * findvar.c, dwarf2cfi.c: Ditto.
7917 2003-05-08 Andrew Cagney <cagney@redhat.com>
7919 * mips-tdep.c (read_signed_register): New function, moved to here
7921 (read_signed_register_pid): Ditto.
7922 * regcache.c (read_signed_register_pid): Delete function, moved to
7924 (read_signed_register): Ditto.
7925 * regcache.h (read_signed_register): Delete declaration.
7926 (read_signed_register_pid): Delete declaration.
7928 2003-05-08 Andrew Cagney <cagney@redhat.com>
7930 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7931 * gdbarch.h: Re-generate.
7932 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7933 (legacy_max_register_virtual_size): Delete declaration.
7934 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7935 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7936 * tracepoint.c (memrange_sortmerge): Ditto.
7937 * sparc-tdep.c (sparc_print_registers): Ditto.
7938 * regcache.c (legacy_max_register_virtual_size): Delete function.
7940 2002-05-08 J. Brobecker <brobecker@gnat.com>
7942 * fork-child.c (escape_bang_in_quoted_argument): New function.
7943 (fork_inferior): Escape '!' characters in quoted arguments
7946 2003-05-08 J. Brobecker <brobecker@gnat.com>
7948 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7949 the language of the CU is not currently supported by GDB.
7951 2003-05-08 J. Brobecker <brobecker@gnat.com>
7953 * defs.h (language): Add language_minimal enum value.
7954 * c-lang.c (minimal_language_defn): New language definition.
7955 (_initialize_c_language): Add the new minimal language to the list
7956 of languages known to GDB.
7958 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7960 * frame.c (get_frame_type): Don't attempt to lazily initialize
7961 frame's unwinder for legacy frames.
7963 2003-05-07 Andrew Cagney <cagney@redhat.com>
7965 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7966 and "regcache" parameters.
7967 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7969 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7971 * dwarf2read.c (dwarf_decode_lines): Only use output of
7972 check_cu_functions() when calling record_line(). Do not update
7973 the current address.
7975 2003-05-07 Andrew Cagney <cagney@redhat.com>
7977 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7980 2003-05-07 Jim Blandy <jimb@redhat.com>
7982 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7983 'maint info symtabs' and 'maint info psymtabs'.
7984 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7985 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7986 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7987 Declarations updated.
7988 * maint.c (maintenance_list_command): Delete.
7989 (_initialize_maint_cmds): Update calls to add_cmd.
7990 * gdbcmd.h (maintenancelistlist): Delete declaration.
7991 * cli/cli-cmds.c (maintenancelistlist): Delete.
7992 (init_cmd_lists): Don't initialize it.
7993 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7995 2003-05-07 Andrew Cagney <cagney@redhat.com>
7997 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7999 (d10v_print_registers_info): Update.
8000 (d10v_dmap_register, d10v_imap_register): Delete functions.
8001 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8002 and "imap_register".
8003 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8004 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8005 * arch-utils.c (generic_remote_translate_xfer_address): Add
8006 "regcache" and "gdbarch" parameters.
8007 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8008 parameter. Change class to multi-arch.
8009 * gdbarch.h, gdbarch.c: Re-generate.
8010 * remote.c (remote_xfer_memory): Use
8011 gdbarch_remote_translate_xfer_address.
8013 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8015 * infrun.c (prev_pc): Move declaration ahead of proceed().
8016 (proceed): Refresh prev_pc value before resuming.
8017 (stop_stepping): Remove code to refresh prev_pc.
8019 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8021 * nto-tdep.c: Removed stray comment.
8023 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8025 * i386-nto-tdep.c: Fix old K&R function definitions.
8026 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8027 Also change add_show_from_set() call to add_setshow_cmd().
8028 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8030 2003-05-05 Andrew Cagney <cagney@redhat.com>
8032 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8033 (fprint_dummy_frames): New function.
8034 (maintenance_print_dummy_frames): New function.
8035 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8036 * frame.c (fprint_frame_id): Make global.
8037 * frame.h (fprint_frame_id): Declare.
8038 * Makefile.in (dummy-frame.o): Update dependencies.
8040 2003-05-05 Andrew Cagney <cagney@redhat.com>
8042 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8043 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8044 SIZEOF_CALL_DUMMY_WORDS.
8045 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8046 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8047 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8048 CALL_DUMMY_BREAKPOINT_OFFSET.
8049 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8050 CALL_DUMMY_START_OFFSET.
8051 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8052 * gdbarch.h, gdbarch.c: Re-generate.
8053 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8054 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8055 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8056 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8057 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8058 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8059 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8060 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8061 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8062 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8063 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8064 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8065 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8066 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8067 * config/sparc/tm-sparc.h: Update.
8069 2003-05-05 Kris Warkentin <kewarken@qnx.com>
8071 * configure.tgt: Add i[3456]86-*-nto*.
8072 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8073 * nto-tdep.c: New file. Neutrino target support routines.
8074 * nto-tdep.h: New file. Neutrino target header.
8075 * config/tm-qnxnto.h: New file.
8076 * config/i386/i386nto.mt: New file.
8077 * config/i386/tm-i386nto.h: New file.
8079 2003-05-04 Andrew Cagney <cagney@redhat.com>
8081 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8082 (load_infrun_state): Ditto.
8083 (struct thread_info): Drop "prev_func_name" field.
8084 * thread.c (load_infrun_state): Update.
8085 (save_infrun_state): Update.
8086 * infrun.c (prev_func_name): Delete variable.
8087 (init_wait_for_inferior): Do not clear prev_func_name.
8088 (stop_stepping, keep_going, context_switch): Do not swap
8090 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8091 instead of PC_IN_SIGTRAMP.
8093 2003-05-04 Andrew Cagney <cagney@redhat.com>
8095 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8096 REGISTER_BYTE with register_offset_hack.
8097 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8098 that REGISTER_BYTE is consistent with the regcache.
8099 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8100 * gdbarch.h, gdbarch.c: Regenerate.
8102 2003-05-04 Mark Kettenis <kettenis@gnu.org>
8104 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8105 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8107 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8109 2003-05-03 J. Brobecker <brobecker@gnat.com>
8111 From Thierry Schneider <tpschneider1@yahoo.com>
8112 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8113 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8114 (mi-cmd-symbol.o): Add rule.
8116 2003-05-03 Andrew Cagney <cagney@redhat.com>
8118 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8119 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8120 * gdbarch.h, gdbarch.c: Re-generate.
8121 * d10v-tdep.c (d10v_push_dummy_code): New function.
8122 (d10v_gdbarch_init): Set push_dummy_code.
8123 * infcall.c (legacy_push_dummy_code): New function.
8124 (generic_push_dummy_code): New function.
8125 (push_dummy_code): New function.
8126 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8127 instead of dummy_addr, to push_dummy_call. Move call to
8128 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8130 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8132 2003-05-03 Andrew Cagney <cagney@redhat.com>
8134 * disasm.h (print_insn): Declare.
8135 * disasm.c (init_gdb_disassemble_info): New function.
8136 (gdb_disassembly): Call init_gdb_disassemble_info.
8137 (gdb_print_insn): New function.
8138 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8139 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8140 * mcore-tdep.c: Include "disasm.h"
8141 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8142 * d10v-tdep.c: Include "disasm.h".
8143 (display_trace): Call gdb_print_insn, instead of print_insn.
8144 (print_insn): Delete function.
8145 * printcmd.c: Include "disasm.h".
8146 (print_insn): Delete function.
8147 (print_formatted): Call gdb_print_insn, instead of print_insn.
8148 * Makefile.in (printcmd.o): Update dependencies.
8149 (mcore-tdep.o, d10v-tdep.o): Ditto.
8151 2003-05-02 Andrew Cagney <cagney@redhat.com>
8153 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8154 PC_REGNUM, re-indent.
8155 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8156 PC_REGNUM isn't set.
8158 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8159 * gdbarch.h, gdbarch.c: Re-generate.
8160 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8161 register_virtual_size, pc_regnum, or register_bytes.
8162 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8163 (d10v_register_type): Use D10V_PC_REGNUM.
8164 (d10v_print_registers_info, d10v_read_pc): Ditto.
8165 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8166 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8168 2003-05-02 David Carlton <carlton@bactrian.org>
8170 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8171 the name with mstrsave.
8173 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
8175 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8176 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8177 (host_charset_name, target_charset_name): New vars for use by
8179 (host_charset_enum, target_charset_enum): New enums for set/show
8181 (set_charset_sfunc, set_host_charset_sfunc,
8182 set_target_charset_sfunc): New functions.
8183 (set_host_charset, set_target_charset): Make static.
8184 (list_charsets, set_host_charset_command,
8185 set_target_charset_command): Delete functions.
8186 (show_charset_command): Rewrite as....
8187 (show_charset): Hook this up with the set/show command mechanism.
8188 (_initialize_charset): Change names of charsets to match the
8189 set/show enums. Use host_charset_name and target_charset_name.
8190 Use set/show mechanism for charset, host-charset, target-charset
8191 commands. Do not make 'show host-charset' and 'show
8192 target-charset' be aliases of 'show charset'.
8194 * charset.h (set_host_charset, set_target_charset): Don't export,
8195 they are not used outside the file.
8197 2003-05-01 Andrew Cagney <cagney@redhat.com>
8199 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8200 (gdb_disassembly): Make "di" non static, always initialize and
8201 cleanup. Always use dis_asm_read_memory.
8202 (gdb_dis_asm_read_memory): Delete function.
8204 2003-05-01 Andrew Cagney <cagney@redhat.com>
8206 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8207 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8209 2003-04-30 Andrew Cagney <cagney@redhat.com>
8211 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8212 "tm_print_insn_info".
8213 (TARGET_PRINT_INSN_INFO): Delete macro.
8214 (dis_asm_read_memory): Delete function declaration.
8215 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8216 (tm_print_insn_info): Delete variable definition.
8217 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8218 * gdbarch.h, gdbarch.c: Re-generate.
8219 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8220 "deprecated_tm_print_insn_info".
8221 * mcore-tdep.c (mcore_dump_insn): Ditto.
8222 * mips-tdep.c (mips_gdbarch_init): Ditto.
8223 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8224 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8225 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8226 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8227 instead of TARGET_PRINT_INSN_INFO, add comment.
8228 * s390-tdep.c (s390_get_frame_info): Instead of
8229 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8230 (s390_check_function_end, s390_is_sigreturn): Ditto.
8231 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8232 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8233 * disasm.c: Include "gdbcore.h".
8234 (_initialize_disasm): New function, initialize
8235 "deprecated_tm_print_insn_info".
8236 (deprecated_tm_print_insn_info): New variable.
8237 (dis_asm_read_memory): Moved from "corefile.c", made static.
8238 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8239 * Makefile.in (disasm.o): Update dependencies.
8241 2003-04-30 Andrew Cagney <cagney@redhat.com>
8243 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8245 2003-04-29 Adam Fedor <fedor@gnu.org>
8247 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8248 * infcall.c (find_function_addr): Make non-static.
8249 * infcall.h (find_function_addr): Declare.
8250 * Makefile.in (eval.o): Update dependencies.
8252 2003-04-28 Adam Fedor <fedor@gnu.org>
8254 * symtab.c (symbol_find_demangled_name): Check for and demangle
8256 (symbol_init_demangled_name): Init for language_objc as well.
8258 2003-04-28 Andrew Cagney <cagney@redhat.com>
8260 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8261 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8262 * gdbarch.h, gdbarch.c: Re-generate.
8263 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8264 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8265 * inferior.h (deprecated_read_fp): Rename read_fp.
8266 (generic_target_read_fp): Delete declaration.
8267 * regcache.c (generic_target_read_fp): Delete function.
8268 (deprecated_read_fp): Replace read_fp, use
8269 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8270 * d10v-tdep.c (d10v_read_fp): Delete function.
8271 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8273 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8274 deprecated_target_read_fp to generic_target_read_fp.
8275 * sh-tdep.c (sh_gdbarch_init): Ditto.
8276 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8278 * frv-tdep.c (frv_gdbarch_init): Ditto.
8280 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8281 deprecated_fp_regnum.
8282 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8283 * vax-tdep.c (vax_gdbarch_init): Ditto.
8284 * v850-tdep.c (v850_gdbarch_init): Ditto.
8285 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8286 * sh-tdep.c (sh_gdbarch_init): Ditto.
8287 * s390-tdep.c (s390_gdbarch_init): Ditto.
8288 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8289 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8290 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8291 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8292 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8293 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8294 * i386-tdep.c (i386_gdbarch_init): Ditto.
8295 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8296 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8297 * frv-tdep.c (frv_gdbarch_init): Ditto.
8298 * cris-tdep.c (cris_gdbarch_init): Ditto.
8299 * avr-tdep.c (avr_gdbarch_init): Ditto.
8300 * arm-tdep.c (arm_gdbarch_init): Ditto.
8301 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8303 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8304 * v850-tdep.c (v850_gdbarch_init): Ditto.
8305 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8306 * sh-tdep.c (sh_gdbarch_init): Ditto.
8307 * s390-tdep.c (s390_gdbarch_init): Ditto.
8308 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8309 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8310 * mips-tdep.c (mips_gdbarch_init): Ditto.
8311 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8312 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8313 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8314 * frv-tdep.c (frv_gdbarch_init): Ditto.
8315 * avr-tdep.c (avr_gdbarch_init): Ditto.
8316 * arm-tdep.c (arm_gdbarch_init): Ditto.
8318 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8319 DEPRECATED_FP_REGNUM.
8320 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8321 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8322 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8323 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8324 (sparc32_register_virtual_type): Ditto.
8325 * sh-tdep.c (sh64_frame_chain): Ditto.
8326 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8327 (sh_nofp_frame_init_saved_regs): Ditto.
8328 (sh64_nofp_frame_init_saved_regs): Ditto.
8329 (sh_fp_frame_init_saved_regs): Ditto.
8330 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8331 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8332 * procfs.c (procfs_fetch_registers): Ditto.
8333 (procfs_store_registers): Ditto.
8334 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8335 (store_inferior_registers, fetch_core_registers): Ditto.
8336 (fetch_kcore_registers, clear_regs): Ditto.
8337 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8338 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8339 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8340 * nlm/i386.c (do_status): Ditto.
8341 * mipsv4-nat.c (supply_gregset): Ditto.
8342 * mips-tdep.c: Ditto for comments.
8343 * mips-nat.c (fetch_inferior_registers): Ditto.
8344 (store_inferior_registers, fetch_core_registers): Ditto.
8345 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8346 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8347 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8348 (i386_do_pop_frame, i386_register_type): Ditto.
8349 * hppa-tdep.c (hppa_frame_chain): Ditto.
8350 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8351 (hppa_pop_frame, hppa_read_fp): Ditto.
8352 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8353 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8354 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8355 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8356 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8357 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8358 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8359 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8360 * blockframe.c: Ditto for comments.
8361 * arch-utils.h: Ditto for comments.
8362 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8363 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8364 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8365 * alpha-tdep.h: Ditto for comments.
8366 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8367 (alpha_cannot_store_register): Ditto.
8368 (alpha_push_dummy_frame): Ditto.
8369 * alpha-nat.c (supply_gregset): Ditto.
8371 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8372 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8373 * config/sparc/tm-sparc.h: Update comment.
8375 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8376 deprecated_read_fp instead of TARGET_READ_FP.
8377 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8378 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8379 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8380 deprecated_read_fp instead of read_fp.
8381 * s390-tdep.c (s390_push_arguments): Ditto.
8382 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8383 * frame.h: Ditto in comments.
8384 * frame.c (legacy_get_prev_frame): Ditto.
8385 * dummy-frame.c (dummy_frame_this_id): Ditto.
8386 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8388 2003-04-28 Andrew Cagney <cagney@redhat.com>
8390 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8391 * gdbarch.h, gdbarch.c: Re-generate.
8392 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8393 * vax-tdep.c (_initialize_vax_tdep): Update.
8394 * v850-tdep.c (_initialize_v850_tdep): Update.
8395 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8396 * s390-tdep.c (_initialize_s390_tdep): Update.
8397 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8398 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8399 * mips-tdep.c (_initialize_mips_tdep): Update.
8400 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8401 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8402 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8403 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8404 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8405 * frv-tdep.c (_initialize_frv_tdep): Update.
8406 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8407 (_initialize_cris_tdep): Update.
8408 * arch-utils.c (legacy_print_insn): Update.
8409 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8411 2003-04-26 Adam Fedor <fedor@gnu.org>
8413 * linespec.c (decode_objc): New function to decode ObjC calls
8414 (decode_line_1): Check for ObjC calls (using decode_objc)
8415 * Makefile (linespec.o): Update dependencies.
8417 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
8419 * breakpoint.h (struct breakpoint_ops): New.
8420 (struct breakpoint): Add ops member.
8422 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8423 (mention): Use new breakpoint ops member.
8424 (set_raw_breakpoint): Initialize ops field to NULL.
8425 (print_exception_catchpoint, print_one_exception_catchpoint)
8426 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8427 (gnu_v3_exception_catchpoint_ops): New.
8428 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8430 2003-04-25 Adam Fedor <fedor@gnu.org>
8432 * Makefile.in (COMMON_OBS): Add objc-lang.o
8434 2003-04-25 Andrew Cagney <cagney@redhat.com>
8436 * d10v-tdep.c (print_insn): Delete function.
8437 (display_trace): Use TARGET_PRINT_INSN.
8438 (_initialize_d10v_tdep): Do not set tm_print_insn.
8439 (d10v_gdbarch_init): Set print_insn.
8441 2003-04-25 Andrew Cagney <cagney@redhat.com>
8443 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8444 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8445 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8446 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8447 (nr_dmap_regs, a0_regnum): ... new functions.
8448 (d10v_print_registers_info): Use a0_regnum, use register_size.
8449 (d10v_register_byte): Delete function.
8450 (d10v_register_raw_size): Delete function.
8451 (d10v_register_type): Use a0_regnum.
8452 (d10v_print_registers_info): Use a0_regnum.
8453 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8454 (d10v_gdbarch_init): Do not set register_byte or
8455 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8456 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8458 (trace_command): Use XCALLOC.
8459 (print_insn): Delete reference to tm_print_insn.
8460 (saved_regs_unwinder): Use store_unsigned_integer instead of
8462 * frame.h (FRAME_OBSTACK_CALLOC): Define
8464 2003-04-25 David Carlton <carlton@bactrian.org>
8466 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8468 2003-04-24 Adam Fedor <fedor@gnu.org>
8470 * objc-lang.c: Include "valprint.h"
8471 * Makefile.in (objc-lang.o): Update dependencies.
8473 2003-04-24 Adam Fedor <fedor@gnu.org>
8475 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
8476 architecture dependant compilation and mark as unimplemented
8477 (until they get put in the gdbarch vector).
8479 2003-04-23 David Carlton <carlton@bactrian.org>
8481 * cp-support.c (cp_find_first_component): Accept 'operator' in
8484 2003-04-23 Andrew Cagney <cagney@redhat.com>
8486 * infcall.c (call_function_by_hand): Eliminate redundant
8487 indentation. Move "saved_async" and "old_cleanups" to where they
8490 2003-04-23 Andrew Cagney <cagney@redhat.com>
8492 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8493 and "buffer". Move the "name" code to where it is needed.
8495 2003-04-23 Andrew Cagney <cagney@redhat.com>
8497 * infcall.c (call_function_by_hand): Move variables "start_sp",
8498 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8499 code to ON_STACK switch branch.
8501 2003-04-23 Andrew Cagney <cagney@redhat.com>
8503 * infcall.c (call_function_by_hand): Make declaration of "i",
8504 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8507 2003-04-23 Andrew Cagney <cagney@redhat.com>
8509 * infcall.c (call_function_by_hand): Delete variable
8510 "n_method_args". Localize "param_type"'s declaration to the loop
8511 that it is used. Reinstate code assigning to said variable -
8512 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8513 Rationalize code using "param_type".
8515 2003-04-22 Andrew Cagney <cagney@redhat.com>
8517 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8518 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8519 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8520 to DEPRECATED_PUSH_RETURN_ADDRESS.
8522 2003-04-22 Kevin Buettner <kevinb@redhat.com>
8524 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8525 on the DWARF2 register number prior to fetching a register.
8527 2003-04-22 J. Brobecker <brobecker@gnat.com>
8529 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8530 Update all the tests using SOFT_FLOAT considering the fact that
8531 this macro was always set to 0.
8532 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8533 considering the fact that this macro was always set to 0.
8534 * hppa-tdep.h (hppa_store_return_value): Likewise.
8535 (hppa_extract_return_value): Likewise.
8537 2003-04-22 J. Brobecker <brobecker@gnat.com>
8539 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8540 the hppa-pro target only.
8542 2003-04-21 J. Brobecker <brobecker@gnat.com>
8544 Ongoing multi-arch conversion effort for HP/UX:
8545 * config/pa/tm-hppa.h: Move all macro that are no longer
8546 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8547 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8549 2003-04-21 J. Brobecker <brobecker@gnat.com>
8551 * config/pa/tm-hppa.h: Obsolete a section that was only used
8554 2003-04-21 J. Brobecker <brobecker@gnat.com>
8556 Ongoing multi-arch conversion for HP/UX.
8557 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8558 if already defined (allows hppa64 to stay non-multiarched for now).
8559 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8561 2003-04-21 Andrew Cagney <cagney@redhat.com>
8563 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8565 2003-04-21 Andrew Cagney <cagney@redhat.com>
8567 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8568 "i386_num_mmx_regs".
8570 2003-04-21 Andrew Cagney <cagney@redhat.com>
8572 * infcall.c: New file.
8573 * infcall.h: New file.
8574 * valarith.c: Include "infcall.h".
8575 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8576 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8577 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8578 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8579 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8580 (SFILES): Add "infcall.c"
8581 (COMMON_OBS): Add "infcall.o".
8582 (infcall.o): Specify dependencies.
8583 * value.h (call_function_by_hand): Delete declaration.
8584 * inferior.h (run_stack_dummy): Delete declaration.
8585 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8586 (run_stack_dummy): Move to "infcall.c", merged into
8587 call_function_by_hand.
8588 * valops.c (call_function_by_hand): Moved to "infcall.c".
8589 (find_function_addr, value_arg_coerce): Ditto.
8590 (unwindonsignal_p, coerce_float_to_double): Ditto.
8591 (_initialize_valops): Move "set/show coerce-float-to-double", and
8592 "set/show unwindonsignal" commands to "infcall.c".
8593 * v850-tdep.c, target.h: Update comments.
8594 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8595 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8596 (sh64_init_extra_frame_info): Update comments.
8597 * mn10300-tdep.c: Update comments.
8598 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8599 * config/sparc/tm-sparc.h: Update comments.
8600 * breakpoint.h: Update comments.
8601 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8602 * arm-tdep.c: Update comment.
8604 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8606 * i386-tdep.c (i386_num_register_names): New variable.
8607 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8608 (MM0_REGNUM): Remove redundant parentheses in define.
8609 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8610 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8611 i386_mxcsr_regnum_p): Remove redundant parentheses.
8612 (i386_register_name): Use i386_num_register_names.
8614 * i386-tdep.c (i386_extract_return_value,
8615 i386_store_return_value): Correct check for availability of
8616 floating-point registers.
8618 * i386-tdep.c (i386_frame_num_args): Remove function.
8619 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8621 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8622 mmx_regnum_to_fp_regnum. Adjust all callers.
8624 * i386-tdep.c (i386_get_longjmp_target): Use
8625 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8626 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8629 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8631 * core-regset.c: Update comments to reflect reality. Re-order
8633 (fetch_core_registers): Use switch instead of if. Remove
8634 redundant prototype.
8636 2003-04-18 Jim Blandy <jimb@redhat.com>
8638 * s390-tdep.c (s390_frame_align): New function.
8639 (s390_gdbarch_init): Register it with the gdbarch object.
8641 2003-04-17 Richard Henderson <rth@redhat.com>
8643 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8645 2003-04-17 Michael Snyder <msnyder@redhat.com>
8646 Karen Bennet <bennet@redhat.com>
8648 Committed by Elena Zannoni <ezannoni@redhat.com>
8649 * gdb_gcore.sh: New script to create a core dump of a process.
8651 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
8653 * values.c (value_being_returned): Don't fetch the return
8654 value if the return type is void.
8656 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8658 * thread-db.c: Reindented.
8660 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8662 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8663 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
8690 2003-04-16 Kevin Buettner <kevinb@redhat.com>
8692 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
8693 the size of ``long double'' to 16, instead of 8.
8695 2003-04-16 Mark Kettenis <kettenis@gnu.org>
8697 * i386-linux-nat.c: Add some whitespace to make things more
8699 (fetch_register, store_register, fetch_inferior_registers,
8700 store_inferior_registers): Get rid of assignment in if-statement.
8701 (store_register): Fix typo in error message.
8703 2003-04-16 Andrew Cagney <cagney@redhat.com>
8705 * utils.c (xmmalloc): Always allocate something, matches
8706 libiberty/xmalloc's semantics.
8707 (xmrealloc, xmcalloc): Ditto.
8709 2003-04-16 Andrew Cagney <cagney@redhat.com>
8711 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8713 (get_frame_type): Initialize unwind and type when needed.
8714 (get_frame_id, frame_register_unwind): Ditto.
8716 2003-04-16 Andrew Cagney <cagney@redhat.com>
8718 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8720 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8721 * sparcl-stub.c: Obsolete file.
8722 * config/sparc/tm-sparclet.h: Obsolete file.
8723 * sparclet-stub.c: Obsolete file.
8724 * sparclet-rom.c: Obsolete file.
8725 * sparcl-tdep.c: Obsolete file.
8726 * config/sparc/tm-sparclite.h: Obsolete file.
8727 * config/sparc/sparclite.mt: Obsolete file.
8728 * config/sparc/sparclet.mt: Obsolete file.
8729 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8730 sparc86x-*-* obsolete.
8732 2003-04-15 David Carlton <carlton@math.stanford.edu>
8734 * Makefile.in (SFILES): Add cp-namespace.c.
8735 (COMMON_OBS): Add cp-namespace.o.
8736 (block.o): Depend on gdb_obstack_h and cp_support_h.
8737 (buildsym.o): Depend on cp_support_h.
8738 (cp-namespace.o): New.
8739 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8740 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8741 (dwarf2read.o): Depend on cp_support_h.
8742 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8743 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8744 processing_current_namespace.
8745 (read_namespace): Update processing_current_namespace; check for
8746 anonymous namespaces.
8747 (dwarf2_name): New function.
8748 (dwarf2_extension): Ditto.
8749 * cp-support.h: Update copyright, contributors.
8750 Add inclusion guards.
8751 Add opaque declaration for structs obstack, block, symbol.
8752 (struct using_direct): New struct.
8753 Add declarations for cp_find_first_component,
8754 cp_entire_prefix_len, processing_has_namespace_info,
8755 processing_current_namespace, cp_is_anonymous,
8756 cp_add_using_directive, cp_initialize_namespace,
8757 cp_finalize_namespace, cp_set_block_scope,
8758 cp_scan_for_anonymous_namespaces.
8759 * cp-namespace.c: New file.
8760 * cp-support.c: Update copyright.
8761 Include ctype.h, gdb_assert.h, gdbcmd.h.
8762 New variable maint_cplus_cmd_list.
8763 (cp_find_first_component): New function.
8764 (cp_entire_prefix_len, maint_cplus_command)
8765 (first_component_command, _initialize_cp_support): Ditto.
8766 * buildsym.c: Include cp-support.h.
8767 New variable using_list.
8768 (add_symbol_to_list): Check for anonymous namespaces.
8769 (finish_block): Set block's scope.
8770 (start_symtab): Initialize C++ namespace support.
8771 (end_symtab): Finalize C++ namespace support.
8772 * block.h: Add opaque declarations for structs
8773 block_namespace_info, using_direct, and obstack.
8774 Add declarations for block_set_scope and block_set_using.
8775 (struct block): Add 'language_specific' member.
8776 (BLOCK_NAMESPACE): New macro.
8777 * block.c: Include gdb_obstack.h and cp-support.h.
8778 (struct block_namespace_info): New struct.
8779 (block_set_scope): New function.
8780 (block_set_using, block_initialize_namespace): Ditto.
8782 2003-04-14 Kevin Buettner <kevinb@redhat.com>
8784 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8785 (locate_base): Return early if there aren't any link map offsets.
8786 (svr4_solib_create_inferior_hook): Warn if shared library support
8789 2003-04-14 David Carlton <carlton@math.stanford.edu>
8791 * symtab.c (symbol_set_names): Add prefix when storing Java names
8792 in hash table. Fix for PR java/1039.
8794 2003-04-14 David Carlton <carlton@math.stanford.edu>
8796 * symtab.c (symbol_set_names): Rename 'name' arg to
8797 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8798 * symtab.h: Change 'name' argument in declaration of
8799 symbol_set_names to 'linkage_name'.
8800 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8802 2003-04-14 Andrew Cagney <cagney@redhat.com>
8804 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8805 return the fully sign-extended register value.
8806 (get_frame_pointer): Ditto.
8807 (mips_pop_frame): Initialize "proc_desc" after checking for a
8810 2003-04-14 Andrew Cagney <cagney@redhat.com>
8812 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8813 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8814 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8815 (mips_push_register): Delete function.
8816 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8819 2003-04-14 Jim Blandy <jimb@redhat.com>
8821 * symmisc.c: #include "gdb_regex.h".
8822 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8824 * maint.c (maintenance_list_command): New function.
8825 (_initialize_maint_cmds): Register the above as commands.
8826 * symtab.h (maintenance_list_symtabs,
8827 maintenance_list_psymtabs): New declarations.
8828 * cli/cli-cmds.c (maintenancelistlist): New variable.
8829 (init_cmd_lists): Initialize it.
8830 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8831 * gdbcmd.h (maintenancelistlist): New declaration.
8832 * Makefile.in (symmisc.o): Update dependencies.
8834 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8836 * s390-nat.c: Include asm/types.h for addr_t.
8838 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8840 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8841 actually incoming type.
8843 2003-04-13 Andrew Cagney <cagney@redhat.com>
8845 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8846 get_next_frame and get_frame_saved_regs.
8848 2003-04-13 Andrew Cagney <cagney@redhat.com>
8850 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8851 of gdbarch_num_regs.
8853 2003-04-13 Andrew Cagney <cagney@redhat.com>
8855 * frame.h: Mention what replaced what in "struct frame_info".
8856 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8857 deprecated_update_frame_base_hack and
8858 deprecated_update_frame_pc_hack.
8859 * hppa-tdep.c: Ditto.
8861 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8863 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8864 to read_reg and update its comment. Remove regnum member.
8865 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8866 Don't call read_reg when setting in_reg. Call read_reg to get
8867 the frame base if it's in a register. Return the register number
8868 on the stack instead of in the context. Remove extra arguments
8870 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8871 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8872 the register number on the expression stack.
8873 (needs_frame_read_reg): Remove extra arguments.
8875 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8877 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8879 (execute_stack_op): All callers updated.
8880 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8881 * dwarf2loc.c (find_location_expression): New function.
8882 (dwarf_expr_frame_base): Call it.
8883 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8884 (dwarf2_tracepoint_var_ref): New function, broken out from
8885 locexpr_tracepoint_var_ref.
8886 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8888 (loclist_read_variable, loclist_read_needs_frame): New functions.
8889 (loclist_describe_location, loclist_tracepoint_var_ref): New
8891 (dwarf2_loclist_funcs): New struct location_funcs.
8892 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8893 (struct dwarf2_locexpr_baton): Add comments.
8894 (dwarf2_loclist_funcs): New extern.
8895 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8896 base_address and base_known.
8897 (dwarf_loc_buffer): New variable.
8898 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8899 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8900 (dwarf2_has_info): Initialize dwarf_loc_offset.
8901 (dwarf2_build_psymtabs): Read in .debug_loc.
8902 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8904 (psymtab_to_symtab_1): Likewise. Move base address calculation
8906 (dwarf2_get_pc_bounds): ... here. Use the base address from
8908 (dwarf2_symbol_mark_computed): Handle location lists.
8910 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8912 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8913 if the linkage name demangled successfully.
8915 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8917 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8918 disassmbly_flavour): Removed.
8920 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8922 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8924 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8926 2003-04-12 Andrew Cagney <cagney@redhat.com>
8928 * frame.h (struct frame_info): Move definition from here ...
8929 * frame.c (struct frame_info): ... to here.
8931 2003-04-12 Andrew Cagney <cagney@redhat.com>
8933 * gdbthread.h (save_infrun_state): Delete parameter
8935 (struct thread_info): Delete field "prev_func_start".
8936 (load_infrun_state): Ditto.
8937 * thread.c (load_infrun_state, save_infrun_state): Update.
8938 * infrun.c (prev_func_start): Delete variable.
8939 (context_switch, init_wait_for_inferior): Update.
8940 (stop_stepping, keep_going): Update.
8942 2003-04-12 Andrew Cagney <cagney@redhat.com>
8944 * gdbarch.sh: Add missing opaque declarations.
8945 * gdbarch.h: Regnerate.
8946 * symtab.h: Add missing opaque declarations.
8947 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8948 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8949 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8950 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8951 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8952 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8953 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8954 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8955 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8956 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8957 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8958 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8959 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8961 2003-04-11 Andrew Cagney <cagney@redhat.com>
8963 * frame.c (get_frame_id): Return this frame's "id".
8964 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8966 (legacy_saved_regs_this_id): Replace function body with
8968 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8969 FRAME_OBSTACK_ZALLOC.
8970 (create_new_frame): Mark the frame ID as valid.
8972 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8974 * Makefile.in (libbfd_h): Added missing setting.
8975 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8976 according to the selected ABI.
8978 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8980 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8982 2003-04-11 Andrew Cagney <cagney@redhat.com>
8984 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8985 SAVED_PC_AFTER_CALL.
8986 * gdbarch.h, gdbarch.c: Regenerate.
8987 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8988 * x86-64-tdep.c (x86_64_init_abi): Update.
8989 * vax-tdep.c (vax_gdbarch_init): Update.
8990 * v850-tdep.c (v850_gdbarch_init): Update.
8991 * sparc-tdep.c (sparc_gdbarch_init): Update.
8992 * sh-tdep.c (sh_gdbarch_init): Update.
8993 * s390-tdep.c (s390_gdbarch_init): Update.
8994 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8995 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8996 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8997 * mips-tdep.c (mips_gdbarch_init): Update.
8998 * mcore-tdep.c (mcore_gdbarch_init): Update.
8999 * m68k-tdep.c (m68k_gdbarch_init): Update.
9000 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9001 * ia64-tdep.c (ia64_gdbarch_init): Update.
9002 (ia64_saved_pc_after_call): Update declaration.
9003 * i386ly-tdep.c (i386lynx_init_abi): Update.
9004 * i386-tdep.c (i386_gdbarch_init): Update.
9005 * hppa-tdep.c (hppa_gdbarch_init): Update.
9006 * h8300-tdep.c (h8300_gdbarch_init): Update.
9007 * frv-tdep.c (frv_gdbarch_init): Update.
9008 * cris-tdep.c (cris_gdbarch_init): Update.
9009 * avr-tdep.c (avr_gdbarch_init): Update.
9010 * arm-tdep.c (arm_gdbarch_init): Update.
9011 * alpha-tdep.c (alpha_gdbarch_init): Update.
9012 * ns32knbsd-nat.c (frame_num_args): Update.
9013 * ns32k-tdep.c (umax_frame_num_args): Update.
9014 * mips-tdep.c (mips_init_frame_pc_first): Update.
9015 * infrun.c (step_over_function): Update.
9016 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9017 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9018 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9019 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9020 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9021 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9022 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9023 * arch-utils.c (init_frame_pc_default): Update.
9024 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9025 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9028 2003-04-11 Andrew Cagney <cagney@redhat.com>
9030 * i387-tdep.c: Update copyright.
9031 (i387_to_double): Delete function.
9032 (double_to_i387): Delete function.
9034 2003-04-10 Andrew Cagney <cagney@redhat.com>
9036 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9037 frame's function's address. Simplify.
9038 (d10v_frame_unwind_cache): Check that the frame's function is
9041 2003-04-10 Jim Blandy <jimb@redhat.com>
9043 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9044 call to set_gdbarch_deprecated_push_arguments.
9046 2003-04-10 Andrew Cagney <cagney@redhat.com>
9048 * frame.c (fprint_frame_id): New function.
9049 (fprint_frame_type, fprint_frame): New function.
9050 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9051 (create_sentinel_frame, get_frame_id): Ditto.
9052 (frame_id_p, frame_id_eq): Ditto.
9053 (frame_id_inner, create_new_frame): Ditto.
9054 (legacy_get_prev_frame, get_prev_frame): Ditto.
9055 (deprecated_update_frame_pc_hack): Ditto.
9056 (frame_register_unwind): Ditto.
9057 (deprecated_update_frame_base_hack): Ditto.
9059 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9061 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9062 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9063 frame_chain function.
9064 * Makefile.in: Add dependencies due to above change.
9066 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9068 * blockframe.c (legacy_frame_chain_valid): Move call to
9069 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9072 2003-04-09 Andrew Cagney <cagney@redhat.com>
9074 * frame.h (struct frame_id): Replace "pc" and "base" with
9075 "stack_addr" and "code_addr". Update comments.
9076 (frame_id_build): Update parameter names and comment.
9077 (struct frame_info): Replace "id_p" and "id" with "this_id".
9078 * dummy-frame.c (dummy_frame_this_id): Update.
9079 * breakpoint.c (print_one_breakpoint): Update.
9080 * frame.c (get_frame_id): Update.
9081 (get_frame_base, frame_id_build): Update.
9082 (create_sentinel_frame, legacy_get_prev_frame): Update.
9083 (deprecated_update_frame_base_hack): Update.
9084 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9085 (frame_id_inner): Ditto.
9087 2003-04-09 Andrew Cagney <cagney@redhat.com>
9089 * defs.h (gdb_print_host_address): Make "addr" parameter a
9091 * utils.c (gdb_print_host_address): Update.
9093 2003-04-09 Kevin Buettner <kevinb@redhat.com>
9095 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9096 register number for R0 is 0.
9098 2003-04-09 J. Brobecker <brobecker@gnat.com>
9100 * frame.h (struct gdbarch): Add opaque structure definition
9101 to avoid a compilation warning on LynxOS 4.0.
9103 2003-04-09 Andrew Cagney <cagney@redhat.com>
9105 * frame.h (struct frame_info): Delete field "pc". Replace
9106 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9108 * frame.c (frame_pc_unwind): Update.
9109 (create_sentinel_frame): Do not set "pc".
9110 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9111 (get_frame_pc): Call frame_pc_unwind.
9112 (deprecated_update_frame_pc_hack): Update.
9113 (create_new_frame): Use "pc" not "->pc".
9115 2003-04-09 Andrew Cagney <cagney@redhat.com>
9117 * frame.c (get_frame_id): Eliminate code updating "frame".
9118 (legacy_get_prev_frame): Ditto.
9119 (get_frame_base): Return id.base directly.
9120 (deprecated_update_frame_base_hack): Update "id.base".
9121 * frame.h (struct frame_info): Delete field "frame".
9123 2003-04-09 Andrew Cagney <cagney@redhat.com>
9125 * NEWS: Mention that the "Sequent family" is obsolete.
9126 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9127 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9128 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9129 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9130 * config/i386/tm-ptx4.h: Obsolete file.
9131 * config/i386/tm-ptx.h: Obsolete file.
9132 * symm-tdep.c: Obsolete file.
9133 * config/i386/symmetry.mt: Obsolete file.
9134 * config/i386/tm-symmetry.h: Obsolete file.
9135 * symm-nat.c: Obsolete file.
9136 * config/i386/nm-symmetry.h: Obsolete file.
9137 * config/i386/xm-symmetry.h: Obsolete file.
9138 * config/i386/symmetry.mh: Obsolete file.
9139 * config/i386/nm-ptx4.h: Obsolete file.
9140 * config/i386/ptx4.mh: Obsolete file.
9141 * config/i386/ptx.mt: Obsolete file.
9142 * config/i386/ptx.mh: Obsolete file.
9143 * config/i386/xm-ptx4.h: Obsolete file.
9144 * config/i386/xm-ptx.h: Obsolete file.
9146 2003-04-09 Andrew Cagney <cagney@redhat.com>
9148 Obsolete mips*-*-mach3*.
9149 * NEWS: Mention that mips*-*-mach3* is obsolete.
9150 * m3-nat.c: Obsolete file.
9151 * config/nm-m3.h: Obsolete file.
9152 * config/mips/tm-mipsm3.h: Obsolete file.
9153 * config/mips/mipsm3.mt: Obsolete file.
9154 * config/mips/mipsm3.mh: Obsolete file.
9155 * config/mips/xm-mipsm3.h: Obsolete file.
9156 * mipsm3-nat.c: Obsolete file.
9157 * configure.host: Obsolete mips-dec-mach3*.
9158 * configure.tgt: Obsolete mips*-*-mach3*.
9160 2003-04-09 Andrew Cagney <cagney@redhat.com>
9162 * doublest.h: Update copyright.
9163 (deprecated_store_floating, deprecated_extract_floating): Rename
9164 store_floating and extract_floating. Update comments.
9165 * doublest.c: Update copyright.
9166 (extract_floating_by_length): Replace extract_floating.
9167 (store_floating_by_length): Replace store_floating.
9168 (deprecated_extract_floating): New function.
9169 (deprecated_store_floating): New function.
9170 (extract_typed_floating): Call extract_floating_by_length.
9171 (store_typed_floating): Call store_floating_by_length.
9172 * x86-64-tdep.c (x86_64_store_return_value): Update.
9173 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9174 (sh64_extract_return_value): Update.
9175 (sh_sh4_register_convert_to_virtual): Update.
9176 (sh_sh64_register_convert_to_virtual): Update.
9177 (sh_sh4_register_convert_to_raw): Update.
9178 (sh_sh64_register_convert_to_raw): Update.
9179 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9180 (rs6000_register_convert_to_raw): Update.
9181 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9182 (ia64_register_convert_to_raw): Update.
9183 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9184 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9185 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9186 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9187 (alpha_register_convert_to_raw): Update.
9189 2003-04-08 Andrew Cagney <cagney@redhat.com>
9191 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9192 * gdbarch.h, gdbarch.c: Re-generate.
9193 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9194 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9195 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9196 conditionally, use frame_pc_unwind as an alternative. Add
9198 * arch-utils.c (init_frame_pc_default): Only call
9199 SAVED_PC_AFTER_CALL when available.
9201 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9203 * infrun.c (stop_soon): Rename from stop_soon_quietly.
9204 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9205 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9206 (start_remote): Ditto.
9207 (handle_inferior_event): Ditto.
9208 (save_inferior_status): Ditto.
9209 (restore_inferior_status): Ditto.
9210 * infcmd.c (attach_command): Ditto.
9211 * fork-child.c (startup_inferior): Ditto.
9212 * inferior.h (stop_soon): Rename from stop_soon_quietly.
9213 * alpha-tdep.c (heuristic_proc_start): Ditto.
9214 * mips-tdep.c (heuristic_proc_start): Ditto.
9215 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9216 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9217 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9218 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9219 * remote-vx.c (vx_create_inferior): Ditto.
9221 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9223 * infrun.c (stop_soon_quietly): Make it an enum, to better
9224 override the default behavior of handle_inferior_event.
9225 (clear_proceed_status): Update uses of stop_soon_quietly to
9226 reflect that it is now an enum.
9227 (start_remote): Ditto.
9228 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9229 is set to handle the new GNU/Linux kernel behavior for
9230 attach/sigstop. Update uses of stop_soon_quietly.
9231 * inferior.h (enum stop_kind): New enum.
9232 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9233 Reset normal handle_inferior_event behavior, afterwards.
9234 * fork-child.c (startup_inferior): Update.
9235 * alpha-tdep.c (heuristic_proc_start): Update.
9236 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9237 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9238 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9239 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9240 * remote-vx.c (vx_create_inferior): Update.
9241 * mips-tdep.c (heuristic_proc_start): Update.
9243 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
9245 * disasm.c (dump_insns): Move variables inside loop, or they will
9246 be freed more than once, causing wild memory corruptions.
9247 (gdb_disassembly): Look for the substring "-thread",
9248 instead of "-threads" in the target name, to make sure to find
9249 the 'multi-thread' target. Also, make sure we do the right thing
9250 with the "core" target.
9252 2003-04-07 Kevin Buettner <kevinb@redhat.com>
9254 * mips-tdep.c (mips_print_fp_register): New function, created from
9255 do_fp_register_row(). Registers are now (also) printed as hex.
9256 Only one register is printed per row.
9257 (mips_print_register, do_fp_register_row): Print floating point
9258 registers with mips_print_fp_register().
9260 2003-04-06 Andrew Cagney <cagney@redhat.com>
9262 * valprint.h (inspect_it): Add extern declaration.
9263 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9264 (selectors_info, classes_info): Ditto.
9265 (find_objc_msgcall): Fix indentation.
9266 (objc_printstr): Delete extern declarations.
9268 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9270 2003-04-06 Andrew Cagney <cagney@redhat.com>
9272 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9274 * frame.c (legacy_saved_regs_this_id): Update.
9275 (legacy_get_prev_frame): Update.
9276 * xstormy16-tdep.c: Update comment.
9277 * sparc-tdep.c (sparc_frame_chain): Update comment.
9278 * blockframe.c (legacy_frame_chain_valid): Update.
9280 2003-04-06 Andrew Cagney <cagney@redhat.com>
9282 * valprint.c (val_print_type_code_int): Delete #ifdef
9283 PRINT_TYPELESS_INTEGER code.
9285 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9286 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9287 multi-arch definition.
9288 * gdbarch.h: Re-generate.
9290 2003-04-05 Andrew Cagney <cagney@redhat.com>
9292 Eliminate FRAME_FIND_SAVED_REGS.
9293 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9294 Change FSR parameter to a pointer.
9295 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9296 Assume FSR parameter is a pointer.
9297 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9299 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9300 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9301 saved_regs a pointer.
9302 (hppa_frame_saved_pc): Ditto.
9303 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9304 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9306 (restore_pc_queue): Make fsr a pointer.
9307 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9308 (hppa_frame_chain): Make saved_regs a pointer, call
9309 hppa_frame_init_saved_regs.
9310 * sparc-tdep.c: Include "gdb_assert.h".
9311 (sparc_frame_find_saved_regs): Replace internal_error with
9313 * remote-vxsparc.c (vx_read_register): Delete reference to
9314 FRAME_FIND_SAVED_REGS.
9315 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9316 * gdbarch.h: Regenerate.
9317 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9318 (deprecated_get_frame_saved_regs): Delete declaration.
9319 (struct frame_saved_regs): Delete definition.
9320 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9321 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9322 (hppa_frame_find_saved_regs): Delete declaration.
9323 (FRAME_FIND_SAVED_REGS): Delete macro.
9324 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9325 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9326 FRAME_FIND_SAVED_REGS in comment.
9328 2003-04-05 Andrew Cagney <cagney@redhat.com>
9330 * frame.c (frame_func_unwind, get_frame_func): New functions.
9331 * frame.h (get_frame_func, frame_func_unwind): Declare.
9332 (struct frame_info): Add field "prev_func" for caching the
9333 previous frame's function address.
9334 * arm-tdep.c (arm_frameless_function_invocation): Combine
9335 get_pc_function_start and get_frame_pc into get_frame_func.
9336 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9337 (sh64_nofp_frame_init_saved_regs): Ditto.
9338 * s390-tdep.c (s390_function_start): Ditto.
9339 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9340 (rs6000_frameless_function_invocation): Ditto.
9341 (rs6000_frame_saved_pc): Ditto.
9342 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9343 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9344 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9345 (i386_frame_init_saved_regs): Ditto.
9346 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9347 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9348 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9349 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9350 * blockframe.c (frameless_look_for_prologue): Ditto.
9352 2003-04-05 Andrew Cagney <cagney@redhat.com>
9354 * frame.c (legacy_get_prev_frame): Link prev to next at the
9355 function start. Update comments.
9357 2003-04-05 Andrew Cagney <cagney@redhat.com>
9359 * frame.c (get_frame_id): Update comment.
9360 (legacy_get_prev_frame): Update comment.
9361 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9362 * gdbarch.h: Regenerate.
9363 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9364 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9366 2003-04-05 Andrew Cagney <cagney@redhat.com>
9368 * stack.c (print_frame_info): Use get_frame_pc.
9370 2003-04-04 Andrew Cagney <cagney@redhat.com>
9372 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9373 the frame's type from the unwinder.
9374 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9375 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9376 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9377 (get_frame_base_address): Use get_frame_type.
9378 (get_frame_locals_address, get_frame_args_address): Ditto.
9379 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9380 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9381 (struct frame_info): Add comment explaining why the frame contains
9383 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9384 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9385 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9387 * frame-unwind.h: Include "frame.h".
9388 (struct frame_unwind): Add "type" field.
9389 * Makefile.in (frame_unwind_h): Add $(frame_h).
9391 2003-04-04 Andrew Cagney <cagney@redhat.com>
9393 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9394 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9395 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9397 (d10v_unwind_dummy_id): Use frame_id_build.
9398 * frame.c (find_frame_sal): Use get_frame_pc.
9399 (create_new_frame): Use deprecated_update_frame_pc_hack and
9400 deprecated_update_frame_base_hack.
9401 (create_sentinel_frame): Add comment about ->pc going away.
9402 (get_prev_frame): Add comment about ->pc going away.
9403 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9404 frame_id_build, deprecated_update_frame_pc_hack and
9405 deprecated_update_frame_base_hack.
9406 (select_frame): Use get_frame_pc.
9407 (legacy_saved_regs_this_id): Use frame_id_build.
9409 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
9411 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9412 signed integer case.
9413 (classify_argument): Handle enumerations and references.
9415 2003-04-04 Andrew Cagney <cagney@redhat.com>
9417 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9420 2003-04-01 Adam Fedor <fedor@gnu.org>
9422 * gdb/objc-lang.c (selectors_info): Replace calls to
9423 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9424 SYMBOL_NATURAL_NAME.
9425 (classes_info, find_methods): Likewise.
9427 2003-04-03 Kevin Buettner <kevinb@redhat.com>
9429 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9430 ``mach'' to the value determined by bfd_default_set_arch_mach().
9432 2003-04-02 Bob Rossi <bob_rossi@cox.net>
9434 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9435 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9436 (mi-cmd-file.o): Update dependencies.
9438 2003-04-01 Kevin Buettner <kevinb@redhat.com>
9440 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9441 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9443 2003-04-01 Adam Fedor <fedor@gnu.org>
9445 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9446 * language.h (struct language_defn): Add la_demangle.
9447 (language_demangle): Declare.
9448 * language.c (language_demangle): New function.
9449 (unk_lang_demangle): Likewise.
9450 (unknown_language_defn, auto_language_defn, local_language_defn):
9451 Add ukn_lang_demangle.
9452 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
9453 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9454 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9455 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9456 * jv-lang.c (java_demangle): New function
9457 (java_language_defn): Use it for la_demangle element.
9458 * objc-lang.c (objc_demangle): Add options argument
9459 (objc_language_defn): Use objc_demangle for la_demangle element.
9460 * maint.c (maintenance_demangle): Replace switch with
9461 call to language_demangle.
9462 * utils.c (fprintf_symbol_filtered): Likewise.
9464 2003-04-01 Andrew Cagney <cagney@redhat.com>
9466 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9467 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9468 PRINT_TYPELESS_INTEGER.
9469 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9470 PUSH_RETURN_ADDRESS.
9472 2003-04-01 Andrew Cagney <cagney@redhat.com>
9474 * Makefile.in (d10v-tdep.o): Update dependencies.
9475 * d10v-tdep.c: Include "frame-base.h".
9476 (d10v_frame_unwind): Make constant.
9477 (d10v_frame_base_address): New function.
9478 (d10v_frame_base): New variable.
9479 (d10v_gdbarch_init): Set frame_base default.
9480 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9482 (d10v_frame_unwind_cache): Set and use "prev_sp".
9483 (d10v_frame_this_id): Use the previous frame's inner most stack
9484 address and this frame's func address for the frame ID. Use
9485 frame_id_build. Don't analyze beyond the current instruction.
9487 2003-04-01 Andrew Cagney <cagney@redhat.com>
9489 * frame.h (get_frame_locals_address, get_frame_args_address):
9490 Refer to the base address, instead of the address of the first
9493 2003-04-01 Andrew Cagney <cagney@redhat.com>
9495 Add frame debug info addresses:
9496 * frame-base.c: New file.
9497 * frame-base.h: New file.
9498 * frame.h (struct frame_base): Add opaque declaration.
9499 (get_frame_base): Update comment.
9500 (get_frame_base_address): Declare.
9501 (get_frame_locals_address): Declare.
9502 (get_frame_args_address): Declare.
9503 (struct frame_info): Add "base" and "base_cache". Update
9504 comments on the unwinder.
9505 * frame.c: Include "frame-base.h".
9506 (get_frame_locals_address): New function.
9507 (get_frame_base_address): New function.
9508 (get_frame_args_address): New function.
9509 * findvar.c (read_var_value): Use get_frame_locals_address and
9510 get_frame_args_address.
9511 * stack.c (frame_info): Use get_frame_locals_address and
9512 get_frame_args_address.
9513 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9514 moved to "frame-base.c".
9515 * printcmd.c (print_frame_nameless_args): Ditto.
9516 * symtab.h (address_class): Update comments.
9517 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9518 get_frame_base_address.
9519 * dwarf2expr.c (execute_stack_op): Ditto.
9520 * Makefile.in (frame_base_h): Define.
9521 (frame.o): Update dependencies.
9522 (frame-base.o): Add dependencies.
9523 (SFILES): Add frame-base.c.
9524 (COMMON_OBS): Add frame-base.o.
9526 2003-04-01 Andrew Cagney <cagney@redhat.com>
9528 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9529 CALL_DUMMY_LENGTH): Ditto.
9530 * gdbarch.c: Re-generate.
9531 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9532 (CALL_DUMMY_LENGTH): Delete macro.
9533 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9534 * arm-tdep.c (arm_gdbarch_init): Ditto.
9535 * avr-tdep.c (avr_gdbarch_init): Ditto.
9536 * cris-tdep.c (cris_gdbarch_init): Ditto.
9537 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9538 * frv-tdep.c (frv_gdbarch_init): Ditto.
9539 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9540 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9541 * i386-tdep.c (i386_gdbarch_init): Ditto.
9542 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9543 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9544 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9545 * mips-tdep.c (mips_gdbarch_init): Ditto.
9546 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9547 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9548 * s390-tdep.c (s390_gdbarch_init): Ditto.
9549 * sh-tdep.c (sh_gdbarch_init): Ditto.
9550 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9551 * v850-tdep.c (v850_gdbarch_init): Ditto.
9552 * vax-tdep.c (vax_gdbarch_init): Ditto.
9553 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9555 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
9557 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9559 2003-04-01 Andrew Cagney <cagney@redhat.com>
9561 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9562 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9563 * gdbarch.h, gdbarch.c: Re-generate.
9564 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9565 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9566 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9567 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9568 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9569 * infcmd.c (run_stack_dummy): Simplify assuming
9570 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9571 * infrun.c (handle_inferior_event): Ditto.
9572 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9573 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9574 * arm-tdep.c (arm_gdbarch_init): Ditto.
9575 * avr-tdep.c (avr_gdbarch_init): Ditto.
9576 * cris-tdep.c (cris_gdbarch_init): Ditto.
9577 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9578 * frv-tdep.c (frv_gdbarch_init): Ditto.
9579 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9580 * i386-tdep.c (i386_gdbarch_init): Ditto.
9581 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9582 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9583 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9584 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9585 * mips-tdep.c (mips_gdbarch_init): Ditto.
9586 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9587 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9588 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9589 * s390-tdep.c (s390_gdbarch_init): Ditto.
9590 * sh-tdep.c (sh_gdbarch_init): Ditto.
9591 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9592 * v850-tdep.c (v850_gdbarch_init): Ditto.
9593 * vax-tdep.c (vax_gdbarch_init): Ditto.
9594 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9596 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
9598 * symfile.c (symfile_relocate_debug_section): Update call to
9599 bfd_simple_get_relocated_section_contents.
9601 2003-03-31 Andrew Cagney <cagney@redhat.com>
9603 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9604 * gdbarch.h, gdbarch.c: Regenerate.
9605 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9606 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9608 * frame.h (generic_fix_call_dummy): Delete declaration.
9609 * dummy-frame.h: Update comment.
9610 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9611 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9613 * sh-tdep.c (sh_gdbarch_init): Ditto.
9614 * s390-tdep.c (s390_gdbarch_init): Ditto.
9615 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9616 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9617 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9618 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9619 * i386-tdep.c (i386_gdbarch_init): Ditto.
9620 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9621 * frv-tdep.c (frv_gdbarch_init): Ditto.
9622 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9623 * cris-tdep.c (cris_gdbarch_init): Ditto.
9624 * avr-tdep.c (avr_gdbarch_init): Ditto.
9625 * arm-tdep.c (arm_gdbarch_init): Ditto.
9627 2003-03-31 J. Brobecker <brobecker@gnat.com>
9629 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9630 (INIT_FRAME_AP): Likewise.
9631 (EXTRA_FRAME_INFO): Likewise.
9633 2003-03-31 Andrew Cagney <cagney@redhat.com>
9635 * gdbarch.sh: Include "symfile.h".
9636 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9637 * gdbarch.h, gdbarch.c: Re-generate.
9638 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9639 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9640 call_dummy_address, the default is at entry_point_address.
9641 * v850-tdep.c (v850_gdbarch_init): Ditto.
9642 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9643 * sh-tdep.c (sh_gdbarch_init): Ditto.
9644 * s390-tdep.c (s390_gdbarch_init): Ditto.
9645 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9646 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9647 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9648 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9649 * i386-tdep.c (i386_gdbarch_init): Ditto.
9650 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9651 * frv-tdep.c (frv_gdbarch_init): Ditto.
9652 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9653 * cris-tdep.c (cris_gdbarch_init): Ditto.
9654 * arm-tdep.c (arm_gdbarch_init): Ditto.
9656 2003-03-31 Andrew Cagney <cagney@redhat.com>
9658 * gdbarch.sh (CALL_DUMMY_P): Delete.
9659 * gdbarch.h, gdbarch.c: Re-generate.
9660 * inferior.h (CALL_DUMMY_P): Delete macro.
9661 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9662 * vax-tdep.c (vax_gdbarch_init): Update.
9663 * v850-tdep.c (v850_gdbarch_init): Update.
9664 * sparc-tdep.c (sparc_gdbarch_init): Update.
9665 * sh-tdep.c (sh_gdbarch_init): Update.
9666 * s390-tdep.c (s390_gdbarch_init): Update.
9667 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9668 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9669 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9670 * mips-tdep.c (mips_gdbarch_init): Update.
9671 * mcore-tdep.c (mcore_gdbarch_init): Update.
9672 * m68k-tdep.c (m68k_gdbarch_init): Update.
9673 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9674 * ia64-tdep.c (ia64_gdbarch_init): Update.
9675 * i386-tdep.c (i386_gdbarch_init): Update.
9676 * h8300-tdep.c (h8300_gdbarch_init): Update.
9677 * frv-tdep.c (frv_gdbarch_init): Update.
9678 * d10v-tdep.c (d10v_gdbarch_init): Update.
9679 * cris-tdep.c (cris_gdbarch_init): Update.
9680 * breakpoint.c (deprecated_frame_in_dummy): Update.
9681 * avr-tdep.c (avr_gdbarch_init): Update.
9682 * alpha-tdep.c (alpha_gdbarch_init): Update.
9683 * arm-tdep.c (arm_gdbarch_init): Update.
9684 * dummy-frame.c (dummy_frame_this_id): Update comments.
9685 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9686 * frame.c (legacy_get_prev_frame): Ditto.
9687 * valops.c (call_function_by_hand): Delete function.
9688 (hand_function_call): Rename to call_function_by_hand
9690 2003-03-30 Andrew Cagney <cagney@redhat.com>
9692 2002-11-10 Klee Dienes <kdienes@apple.com>
9693 * value.h (struct value): Update comment.
9695 2003-03-30 Andrew Cagney <cagney@redhat.com>
9697 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9699 (d10v_gdbarch_init): Do not set fp_regnum.
9701 * frame.c (get_frame_base): Force ID initialization.
9702 (get_prev_frame): Move computation of the frame ID from here ...
9703 (get_frame_id): ... to here.
9704 (legacy_get_prev_frame): Mark the frame ID as valid.
9705 * frame.h (struct frame_info): Add field "id_p".
9707 2003-03-30 Mark Kettenis <kettenis@gnu.org>
9709 * i386-tdep.c (i386_store_struct_return): Removed.
9710 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9712 2003-03-30 Andrew Cagney <cagney@redhat.com>
9714 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9715 * gdbarch.h, gdbarch.c: Regenerate.
9716 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9717 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9718 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9719 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9720 * i386-tdep.c (i386_gdbarch_init): Ditto.
9721 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9722 * cris-tdep.c (cris_gdbarch_init): Ditto.
9723 * vax-tdep.c (vax_gdbarch_init): Ditto.
9724 * s390-tdep.c (s390_gdbarch_init): Ditto.
9725 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9726 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9727 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9728 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9729 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9730 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9731 * sparc-tdep.c (sparc_gdbarch_init): Update.
9732 * sh-tdep.c (sh_gdbarch_init): Update.
9733 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9734 * mips-tdep.c (mips_gdbarch_init): Update.
9735 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9736 * ia64-tdep.c (ia64_gdbarch_init): Update.
9737 * frv-tdep.c (frv_gdbarch_init): Update.
9738 * avr-tdep.c (avr_gdbarch_init): Update.
9739 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9740 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9741 instead of when push_dummy_call is not available.
9743 2003-03-30 Andrew Cagney <cagney@redhat.com>
9745 * infttrace.c: Include "gdbthread.h".
9746 (parent_attach_all): Fix function signature.
9747 (call_ptrace): Update call.
9748 * Makefile.in (infttrace.o): Update dependencies.
9750 2003-03-30 Andrew Cagney <cagney@redhat.com>
9752 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9753 PUSH_RETURN_ADDRESS.
9754 * gdbarch.h, gdbarch.c: Regenerate.
9755 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9756 * x86-64-tdep.c (x86_64_init_abi): Update.
9757 * v850-tdep.c (v850_gdbarch_init): Update.
9758 * sparc-tdep.c (sparc_gdbarch_init): Update.
9759 * sh-tdep.c (sh_gdbarch_init): Update.
9760 * s390-tdep.c (s390_gdbarch_init): Update.
9761 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9762 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9763 * mips-tdep.c (mips_gdbarch_init): Update.
9764 * mcore-tdep.c (mcore_gdbarch_init): Update.
9765 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9766 * ia64-tdep.c (ia64_gdbarch_init): Update.
9767 * i386-tdep.c (i386_gdbarch_init): Update.
9768 * h8300-tdep.c (h8300_gdbarch_init): Update.
9769 * frv-tdep.c (frv_gdbarch_init): Update.
9770 * cris-tdep.c (cris_gdbarch_init): Update.
9771 * avr-tdep.c (avr_gdbarch_init): Update.
9772 * arm-tdep.c (arm_gdbarch_init): Update.
9773 * valops.c (hand_function_call): Update.
9775 2003-03-29 Andrew Cagney <cagney@redhat.com>
9777 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9778 sizeof_call_dummy_words.
9779 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9781 * gdbarch.h: Regenerate.
9783 2003-03-29 Andrew Cagney <cagney@redhat.com>
9785 * infttrace.h: New file.
9786 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9787 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9788 (hpread_read_doc_function_type): Detect an initialized type1.
9789 (hpread_quick_traverse): Initialize mod_name_string.
9790 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9791 (som_solib_get_solib_by_pc): Declare.
9792 (so_lib_thread_start_addr): Declare.
9793 (no_shared_libraries): Declare.
9794 * somread.c (init_import_symbols): Make static. Add forward
9796 * config/pa/nm-hppah.h: Include "infttrace.h" for
9798 (hppa_insert_hw_watchpoint): Declare.
9799 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9800 * hppah-nat.c: Include "gdb_string.h".
9801 (parent_attach_all): Delete extern declaration, moved to
9803 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9805 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9806 * Makefile.in (infttrace_h): Define.
9807 (hpread.o): Update dependencies.
9808 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9809 * hppa-hpux-tdep.c: Include "gdb_string.h".
9810 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9811 * infrun.c (handle_inferior_event): Always initialize
9812 stepped_after_stopped_by_watchpoint. Add default and remove
9813 fallthrough in switch statement.
9814 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9816 (hppa_remove_hw_watchpoint): Ditto.
9818 2003-03-29 Andrew Cagney <cagney@redhat.com>
9820 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9823 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9825 * arm-tdep.c (arm_push_arguments): Delete.
9826 (struct stack_item): New type.
9827 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9828 (arm_store_struct_return): Delte.
9829 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9830 arm_push_arguments or arm_store_struct_return.
9832 2003-03-28 Andrew Cagney <cagney@redhat.com>
9834 * Makefile.in (d10v-tdep.o): Update dependencies.
9835 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9836 * d10v-tdep.c: Include "remote.h".
9837 (target_resume_hook): Delete extern declaration.
9838 (target_wait_loop_hook): Ditto.
9839 (tdisassemble_command): Eliminate assignment in "if" conditional.
9840 (d10v_ts2_register_sim_regno): Eliminate call to
9841 legacy_register_sim_regno.
9842 (d10v_ts3_register_sim_regno): Ditto.
9844 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9846 * thread.c: Reindented.
9848 * linux-proc.c: Ditto.
9850 2003-03-28 Bob Rossi <bob_rossi@cox.net>
9852 * MAINTAINERS (write after approval): Add myself.
9854 2003-03-27 Theodore A. Roth <troth@openavr.org>
9856 * objc-exp.y: Add missing semi-colons.
9858 2003-03-27 Andrew Cagney <cagney@redhat.com>
9860 * regcache.c (write_sp): Delete function and references.
9861 * inferior.h (write_sp): Delete declaration.
9862 * valops.c (hand_function_call): Replace write_sp with
9864 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9865 (sparc_pop_frame): Ditto.
9867 2003-03-27 Andrew Cagney <cagney@redhat.com>
9869 * NEWS: Mention removal of support for hppa*-*-bsd* and
9870 hppa*-*-osf* natives, and hppa*-*-pro* target.
9871 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9872 * config/pa/xm-pa.h: Obsolete file.
9873 * config/pa/xm-hppab.h: Obsolete file.
9874 * config/pa/nm-hppab.h: Obsolete file.
9875 * config/pa/tm-hppab.h: Obsolete file.
9876 * config/pa/tm-hppao.h: Obsolete file.
9877 * config/pa/nm-hppao.h: Obsolete file.
9878 * config/pa/tm-pro.h: Obsolete file.
9879 * config/pa/hppaosf.mt: Obsolete file.
9880 * config/pa/hppaosf.mh: Obsolete file.
9881 * config/pa/hppapro.mt: Obsolete file.
9882 * config/pa/hppabsd.mt: Obsolete file.
9883 * config/pa/hppabsd.mh: Obsolete file.
9884 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9885 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9888 2003-03-27 Andrew Cagney <cagney@redhat.com>
9890 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9891 push_arguments. Don't set push_return_address or write_sp.
9892 (d10v_push_dummy_call): Replace d10v_push_arguments.
9893 (d10v_push_return_address, d10v_write_sp): Delete function,
9894 handled by push_dummy_call.
9896 2003-03-26 Andrew Cagney <cagney@redhat.com>
9898 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9899 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9900 regcache and dummy_addr parameters.
9901 * gdbarch.h, gdbarch.c: Re-generate.
9902 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9903 available; assume it will handle stack alignment and return
9904 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9905 legacy_push_arguments.
9906 (legacy_push_arguments): Rename default_push_arguments.
9907 * value.h (legacy_push_arguments): Rename default_push_arguments.
9908 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9909 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9910 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9911 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9912 * config/i386/tm-symmetry.h: Update.
9913 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9914 * x86-64-tdep.c (x86_64_init_abi): Update.
9915 * v850-tdep.c (v850_gdbarch_init): Update.
9916 * sparc-tdep.c (sparc_gdbarch_init): Update.
9917 * sh-tdep.c (sh_gdbarch_init): Update.
9918 * s390-tdep.c (s390_gdbarch_init): Update.
9919 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9920 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9921 * mips-tdep.c (mips_gdbarch_init): Update.
9922 * mcore-tdep.c (mcore_gdbarch_init): Update.
9923 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9924 * ia64-tdep.c (ia64_gdbarch_init): Update.
9925 * i386-tdep.c (i386_gdbarch_init): Update.
9926 * hppa-tdep.c (hppa_gdbarch_init): Update.
9927 * h8300-tdep.c (h8300_gdbarch_init): Update.
9928 * frv-tdep.c (frv_gdbarch_init): Update.
9929 * d10v-tdep.c (d10v_gdbarch_init): Update.
9930 * cris-tdep.c (cris_gdbarch_init): Update.
9931 * avr-tdep.c (avr_gdbarch_init): Update.
9932 * arm-tdep.c (arm_gdbarch_init): Update.
9933 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9934 * alpha-tdep.c (alpha_gdbarch_init): Update.
9936 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9938 * signals/signals.c (do_target_signal_to_host): Correct realtime
9941 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9943 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9944 (struct sal_chain, map_catch_names): Remove.
9945 (catch_exception_command_1): Don't call
9946 handle_gnu_4_16_catch_command.
9948 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9950 From Mark Dettinger <dettinge@de.ibm.com>:
9951 * dwarf2cfi.c (read_2u): Increment pointer by two.
9953 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9955 * signals/signals.c: Fix typos in last change.
9957 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9959 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9960 not already defined. Use __SIGRTMIN if available.
9961 (target_signal_from_host): Remove SIGRTMIN block.
9962 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9963 the signal is within the realtime range.
9965 2003-03-25 Adam Fedor <fedor@gnu.org>
9967 * Makefile.in (infrun.o): Add $(language_h)
9968 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9969 for language specific trampolines.
9970 * language.h (struct language_defn): Add skip_trampoline.
9971 (skip_language_trampoline): Declare.
9972 * language.c (unk_lang_trampoline, skip_language_trampoline):
9974 (unknown_language_defn, auto_language_defn, local_language_defn):
9975 Add ukn_lang_trampoline.
9976 * ada-lang.c (ada_language_defn): Add NULL for language
9977 specific skip_trampoline.
9978 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9979 scm-lang.c: Likewise.
9980 * objc-lang.c (objc_skip_trampoline): New function.
9981 (objc_language_defn): Add objc_skip_trampoline.
9983 2003-03-25 Andrew Cagney <cagney@redhat.com>
9985 * frame.c (get_prev_frame): Delay validating a frame's ID -
9986 non-NULL, didn't go backwards - until an attempt to unwind it to
9989 2003-03-25 Andrew Cagney <cagney@redhat.com>
9991 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9992 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9993 * gdbarch.h, gdbarch.c: Re-generate.
9994 * config/sparc/tm-sparc.h
9995 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9996 * sparc-tdep.c (sparc_gdbarch_init): Set
9997 deprecated_extra_stack_alignment_needed.
9998 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9999 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10000 extra_stack_alignment_needed.
10001 * v850-tdep.c (v850_gdbarch_init): Ditto.
10002 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10003 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10004 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10005 * cris-tdep.c (cris_gdbarch_init): Ditto.
10006 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10007 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10009 2003-03-25 Andrew Cagney <cagney@redhat.com>
10011 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10012 STORE_STRUCT_RETURN.
10013 * gdbarch.h, gdbarch.c: Regenerate.
10014 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10015 (d10v_push_arguments): Set the struct return register.
10016 (d10v_gdbarch_init): Update.
10017 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10018 * x86-64-tdep.c (x86_64_init_abi): Update.
10019 * vax-tdep.c (vax_gdbarch_init): Update.
10020 * v850-tdep.c (v850_gdbarch_init): Update.
10021 * sparc-tdep.c (sparc_gdbarch_init): Update.
10022 * sh-tdep.c (sh_gdbarch_init): Update.
10023 * s390-tdep.c (s390_gdbarch_init): Update.
10024 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10025 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10026 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10027 * mips-tdep.c (mips_gdbarch_init): Update.
10028 * mcore-tdep.c (mcore_gdbarch_init): Update.
10029 * m68k-tdep.c (m68k_gdbarch_init): Update.
10030 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10031 * ia64-tdep.c (ia64_gdbarch_init): Update.
10032 * i386-tdep.c (i386_gdbarch_init): Update.
10033 * hppa-tdep.c (hppa_gdbarch_init): Update.
10034 * h8300-tdep.c (h8300_gdbarch_init): Update.
10035 * frv-tdep.c (frv_gdbarch_init): Update.
10036 * cris-tdep.c (cris_gdbarch_init): Update.
10037 * avr-tdep.c (avr_gdbarch_init): Update.
10038 * arm-tdep.c (arm_gdbarch_init): Update.
10039 * alpha-tdep.c (alpha_gdbarch_init): Update.
10041 2003-03-25 Andrew Cagney <cagney@redhat.com>
10043 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10044 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10045 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10046 * gdbarch.h, gdbarch.c: Regenerate.
10047 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10048 call_dummy_stack_adjust_p.
10049 * vax-tdep.c (vax_gdbarch_init): Ditto.
10050 * v850-tdep.c (v850_gdbarch_init): Ditto.
10051 * sh-tdep.c (sh_gdbarch_init): Ditto.
10052 * s390-tdep.c (s390_gdbarch_init): Ditto.
10053 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10054 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10055 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10056 * mips-tdep.c (mips_gdbarch_init): Ditto.
10057 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10058 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10059 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10060 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10061 * i386-tdep.c (i386_gdbarch_init): Ditto.
10062 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10063 * frv-tdep.c (frv_gdbarch_init): Ditto.
10064 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10065 * cris-tdep.c (cris_gdbarch_init): Ditto.
10066 * avr-tdep.c (avr_gdbarch_init): Ditto.
10067 * arm-tdep.c (arm_gdbarch_init): Ditto.
10068 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10069 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10070 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10071 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10072 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10073 call_dummy_stack_adjust_p.
10074 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10075 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10076 * sparc-tdep.c (sparc32_push_arguments): Update.
10077 * valops.c (hand_function_call): Update.
10079 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
10081 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10082 set_gdbarch_char_signed.
10084 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10087 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10089 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10091 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10092 (_initialize_arm_tdep): Don't set tm_print_insn.
10094 2003-03-24 Adam Fedor <fedor@gnu.org>
10096 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10097 * objc-lang.h: Add multiple inclusion protection.
10098 (start_msglist, add_msglist, end_msglist): Additional declarations.
10100 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
10102 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10103 value was renamed to ARM_FLOAT_SOFT_FPA.
10105 2003-03-23 Andrew Cagney <cagney@redhat.com>
10107 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10108 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10109 * gdbarch.h, gdbarch.c: Regenerate.
10110 * valops.c (hand_function_call): Update.
10111 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10112 * frame.c (legacy_saved_regs_this_id): Update.
10113 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10114 * dummy-frame.h: Update.
10115 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10116 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10117 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10118 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10119 * config/m68k/tm-sun3.h: Update.
10120 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10121 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10122 * x86-64-tdep.c (x86_64_init_abi): Update.
10123 * vax-tdep.c (vax_gdbarch_init): Update.
10124 * v850-tdep.c (v850_gdbarch_init): Update.
10125 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10126 * sh-tdep.c (sh_gdbarch_init): Update.
10127 * s390-tdep.c (s390_gdbarch_init): Update.
10128 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10129 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10130 (frame_get_saved_regs): Update.
10131 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10132 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10133 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10134 * mips-tdep.c (mips_gdbarch_init): Update.
10135 * mcore-tdep.c (mcore_gdbarch_init): Update.
10136 * m68k-tdep.c (m68k_gdbarch_init): Update.
10137 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10138 * ia64-tdep.c (ia64_gdbarch_init): Update.
10139 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10140 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10141 (i386_interix_back_one_frame): Update.
10142 * hppa-tdep.c (hppa_gdbarch_init): Update.
10143 (hppa_init_extra_frame_info): Update.
10144 * h8300-tdep.c (h8300_gdbarch_init): Update.
10145 * frv-tdep.c (frv_gdbarch_init): Update.
10146 * cris-tdep.c (cris_gdbarch_init): Update.
10147 * avr-tdep.c (avr_gdbarch_init): Update.
10148 * arm-tdep.c (arm_gdbarch_init): Update.
10149 * alpha-tdep.c (alpha_gdbarch_init): Update.
10151 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10153 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10154 (arm_get_fp_model): Declare.
10155 * arm-tdep.c (fp_model_strings): New string array.
10156 (arm_fp_model, current_fp_model): New variables.
10157 (arm_get_fp_model): New function.
10158 (arm_set_fp): New function.
10159 (set_fp_model_sfunc): New function.
10160 (show_fp_model): New function.
10161 (_initialize_arm_tdep): Add new command to set/show the FPU.
10162 (arm_extract_return_value): Use arm_get_fp_model.
10163 (arm_store_return_value): Likewise.
10164 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10165 to initialize the floating-point data types.
10166 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10169 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10171 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10172 the current setting of each value.
10173 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
10174 new_set and new_show. Use add_setshow_cmd_full and
10175 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10176 commands and add new version as subcommands of "set/show arm".
10178 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10180 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10181 (set_arm_command, show_arm_command): New functions.
10182 (_initialize_arm_tdep): Add them.
10183 (num_disassembly_options): Renamed from num_flavor_options.
10184 (valid_disassembly_styles): Renamed from valid_flavors.
10185 (disassembly_style): Renamed from disassembly_flavor.
10186 (set_disassembly_style_sfunc): Renamed from
10187 set_disassembly_flavor_sfunc.
10188 (set_disassembly_style): Renamed from set_disassembly_flavor.
10189 (arm_othernames): Updated.
10190 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10191 command. Add "set/show arm disassembly" commands. Deprecate
10192 "othernames" command.
10194 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10196 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10197 (arm-tdep.o): Depend on elf_arm_h.
10199 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10201 * Makefile.in (coff_internal_h): Define.
10202 (arm-tdep.o): Update dependencies.
10204 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10206 * arm-tdep.c (prologue_cache): Delete.
10207 (check_prologue_cache, save_prologue_cache): Delete.
10208 (arm_scan_prologue): Don't check or update the prologue_cache.
10209 (arm_gdb_arch_init): Don't initialize it.
10210 (_initialize_arm_tdep): Likewise.
10212 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10214 * MAINTAINERS (tui): Maintainer of tui code.
10216 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
10218 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10219 (i386-cygwin-tdep.o): Add dependencies.
10220 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10221 * i386-cygwin-tdep.c: New file.
10222 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10223 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10225 2003-03-20 Andrew Cagney <cagney@redhat.com>
10227 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10228 (handle_inferior_event): Remove code calling
10229 DYNAMIC_TRAMPOLINE_NEXTPC.
10231 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10232 already has a full path.
10234 * main.c (gdb_main): Return 1.
10235 (captured_main): Call error to report an invalid interpreter.
10237 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10238 * alpha-osf1-tdep.c: Include "gdb_string.h".
10240 2003-03-19 J. Brobecker <brobecker@gnat.com>
10242 Continuing work to convert the hppa targets to multiarch partial.
10244 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10245 method, now that hppa_push_dummy_frame has a conformant prototype.
10246 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10247 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10248 for the switch to multiarch partial.
10250 2003-03-19 Kevin Buettner <kevinb@redhat.com>
10252 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10253 when iss is issNull.
10255 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10257 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10258 NUM_REGS bounds check.
10260 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10262 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10263 * mips-tdep.c (gdb_assert.h): Include.
10264 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10265 (mips_register_name): Handle integer registers explicitly. Add
10267 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10268 (mips_lsi33k_reg_names): Don't list integer registers; they're
10269 handled by mips_register_name() now.
10270 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10271 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10272 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10273 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10274 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10276 2003-03-18 Andrew Cagney <cagney@redhat.com>
10278 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10280 * gdbtypes.h (print_scalar_formatted): Update declaration.
10281 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10283 2003-03-18 J. Brobecker <brobecker@gnat.com>
10285 * infrun.c (observer.h): Add #include.
10286 (normal_stop): Add call to observer_notify_normal_stop.
10287 * Makefile.in (infrun.o): Add dependency on observer.h.
10289 2003-03-18 J. Brobecker <brobecker@gnat.com>
10291 Continuing work to convert the hppa targets to multiarch partial.
10292 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10293 parameter. Reformat comment.
10294 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10295 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10296 to match new profile.
10298 2003-03-18 J. Brobecker <brobecker@gnat.com>
10300 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10301 appear to be working in any case.
10303 2003-03-18 J. Brobecker <brobecker@gnat.com>
10305 * observer.c (observer_test_first_observer): New static variable.
10306 (observer_test_second_observer): Likewise.
10307 (observer_test_third_observer): Likewise.
10308 (observer_test_first_notification_function): New static function.
10309 (observer_test_second_notification_function): Likewise.
10310 (observer_test_third_notification_function): Likewise.
10312 2003-03-17 J. Brobecker <brobecker@gnat.com>
10314 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10315 * somsolib.c (gdb_assert.h): Likewise.
10316 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10317 (somsolib.o): Likewise.
10319 2003-03-17 Andrew Cagney <cagney@redhat.com>
10321 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10322 BFD. Simplify setting of di.endian.
10324 2003-03-17 Andrew Cagney <cagney@redhat.com>
10326 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10327 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10329 From Elena Zannoni <ezannoni@redhat.com>
10330 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10331 vector and floating-point parameters.
10332 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10334 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10336 2003-03-17 Fernando Nasser <fnasser@redhat.com>
10338 * MAINTAINERS: Remove my name from several maintainership roles.
10340 2003-03-17 Andrew Cagney <cagney@redhat.com>
10342 Fix frame off-by-one bug.
10343 * frame-unwind.h (frame_this_id_ftype): Replace
10344 frame_unwind_id_ftype.
10345 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10346 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10347 with "prev_register".
10348 * frame-unwind.c (frame_unwind_find_by_pc): Return
10349 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10351 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10352 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10353 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10354 (dummy_frame_unwind): Update.
10355 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10356 sentinel_frame_register_unwind.
10357 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10358 (sentinel_frame_unwinder): Update.
10359 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10360 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10361 * frame.c (create_sentinel_frame): Update. Initialize
10362 "prologue_cache" instead of "unwind_cache".
10363 (frame_register_unwind): Call this frame's prev_register with the
10364 next frame and this frame's prologue cache.
10365 (get_prev_frame): Simplify. Always call prev frame's this_id with
10366 this frame and prev frame's prologue cache. Document that this
10367 call is shifted one to the left when compared to the
10368 frame_register_unwind call.
10369 (legacy_saved_regs_prev_register): Replace
10370 frame_saved_regs_register_unwind.
10371 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10372 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10373 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10374 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10375 (d10v_frame_unwind): Update.
10376 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10377 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10378 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10379 "saved_regs" with "this_saved_regs".
10381 2003-03-16 Andrew Cagney <cagney@redhat.com>
10383 * frame.c (frame_pop): Don't call target_store_registers. Fix
10384 problem reported by Mark Kettenis.
10386 2003-03-16 Mark Kettenis <kettenis@gnu.org>
10388 * i386-tdep.c (i386_register_type): Renamed from
10389 i386_register_virtual_type. Adjust function signature.
10390 (i386_gdbarch_init): Set register_type instead of
10391 deprecated_max_register_raw_size,
10392 deprecated_max_register_virtual_size and register_virtual_type.
10394 2003-03-14 Andrew Cagney <cagney@redhat.com>
10396 * frame.c (get_prev_frame): When a legacy frame, always call
10397 legacy_get_prev_frame. Simplify unwind code using assumption that
10398 the unwinder is new.
10399 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10400 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10401 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10403 2003-03-14 Andrew Cagney <cagney@redhat.com>
10405 * frame.c (get_saved_register): Delete function.
10406 * frame.h (get_saved_register): Delete declaration.
10407 * xstormy16-tdep.c: Update comment.
10408 * regcache.h: Update comments.
10409 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10410 get_saved_register and extract_address, use
10411 frame_read_unsigned_register.
10412 (sparc_frame_saved_pc): Ditto.
10413 (sparc_get_saved_register): Instead of get_saved_register, use
10415 (sparc_pop_frame): Ditto.
10416 * findvar.c: Update comments.
10417 (value_of_register): Call frame_register instead of
10418 get_saved_register.
10419 (value_from_register): Ditto.
10420 * config/sparc/tm-sparc.h: Update comment.
10421 * breakpoint.c: Update comment.
10423 2003-03-14 Andrew Cagney <cagney@redhat.com>
10425 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10426 GET_SAVED_REGISTER.
10427 * gdbarch.h, gdbarch.c: Re-generate.
10428 * frame.h: Update comments.
10429 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10430 * x86-64-tdep.c (x86_64_init_abi): Update.
10431 * sparc-tdep.c (sparc_gdbarch_init): Update.
10432 * sh-tdep.c (sh_gdbarch_init): Update.
10433 * mips-tdep.c (mips_gdbarch_init): Update.
10434 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10435 * cris-tdep.c (cris_gdbarch_init): Update.
10436 * ia64-tdep.c (ia64_gdbarch_init): Update.
10437 * frame.c (frame_register): Update.
10438 (get_saved_register): Update.
10439 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
10441 2003-03-13 Andrew Cagney <cagney@redhat.com>
10443 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10444 * gdbarch.h, gdbarch.c: Regenerate.
10445 * valops.c (hand_function_call): Update comment.
10446 * stack.c (return_command): Update comment.
10447 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10448 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10449 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10450 * x86-64-tdep.c (x86_64_init_abi): Update.
10451 * vax-tdep.c (vax_gdbarch_init): Update.
10452 * v850-tdep.c (v850_gdbarch_init): Update.
10453 * sparc-tdep.c (sparc_gdbarch_init): Update.
10454 * sh-tdep.c (sh_gdbarch_init): Update.
10455 * s390-tdep.c (s390_gdbarch_init): Update.
10456 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10457 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10458 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10459 * mips-tdep.c (mips_gdbarch_init): Update.
10460 * mcore-tdep.c (mcore_gdbarch_init): Update.
10461 * m68k-tdep.c (m68k_gdbarch_init): Update.
10462 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10463 * ia64-tdep.c (ia64_gdbarch_init): Update.
10464 * i386-tdep.c (i386_gdbarch_init): Update.
10465 * hppa-tdep.c (hppa_gdbarch_init): Update.
10466 * h8300-tdep.c (h8300_gdbarch_init): Update.
10467 * frv-tdep.c (frv_gdbarch_init): Update.
10468 * cris-tdep.c (cris_gdbarch_init): Update.
10469 * avr-tdep.c (avr_gdbarch_init): Update.
10470 * arm-tdep.c (arm_gdbarch_init): Update.
10471 * alpha-tdep.c (alpha_gdbarch_init): Update.
10473 2003-03-13 Andrew Cagney <cagney@redhat.com>
10475 * frame.c (legacy_frame_p): New function.
10476 (get_prev_frame): Use legacy_frame_p.
10477 * frame.h (legacy_frame_p): Declare.
10479 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10481 * MAINTAINERS (write after approval): Alphabetically
10484 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10486 * MAINTAINERS (write after approval): Add myself.
10488 2003-03-12 Andrew Cagney <cagney@redhat.com>
10490 * frame.c (get_prev_frame): Rename the frame parameter to
10492 (get_next_frame, legacy_get_prev_frame): Ditto.
10494 2003-03-12 Andrew Cagney <cagney@redhat.com>
10496 * frame.c (get_current_frame): Check target_has_registers before
10497 checking target_has_stack.
10498 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10499 instead of deprecated_selected_frame.
10500 * findvar.c (value_of_register): Pass "frame", not
10501 deprecated_selected_frame, to value_of_builtin_reg.
10503 2003-03-12 Andrew Cagney <cagney@redhat.com>
10505 * regcache.c (regcache_cooked_write_signed): New function.
10506 (regcache_cooked_write_unsigned): New function.
10507 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10508 (regcache_cooked_read_signed): Fix regnum in range assertion.
10509 * regcache.h (regcache_cooked_write_signed): Declare.
10510 (regcache_cooked_write_unsigned): Declare.
10512 2003-03-12 Andrew Cagney <cagney@redhat.com>
10514 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10515 * gdbarch.h, gdbarch.c: Re-generate.
10516 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10517 * x86-64-tdep.h: Update.
10518 * x86-64-tdep.c (x86_64_init_abi): Update.
10519 * v850-tdep.c (v850_gdbarch_init): Update.
10520 * sparc-tdep.c (sparc_gdbarch_init): Update.
10521 * sh-tdep.c (sh_gdbarch_init): Update.
10522 * s390-tdep.c (s390_gdbarch_init): Update.
10523 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10524 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10525 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10526 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10527 * mips-tdep.c (mips_gdbarch_init): Update.
10528 * mcore-tdep.c (mcore_gdbarch_init): Update.
10529 * m68k-tdep.c (m68k_gdbarch_init): Update.
10530 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10531 * ia64-tdep.c (ia64_gdbarch_init): Update.
10532 * i386-tdep.c (i386_gdbarch_init): Update.
10533 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10534 * hppa-tdep.c (hppa_gdbarch_init): Update.
10535 * h8300-tdep.c (h8300_gdbarch_init): Update.
10536 * frv-tdep.c (frv_gdbarch_init): Update.
10537 * cris-tdep.c (cris_gdbarch_init): Update.
10538 * avr-tdep.c (avr_gdbarch_init): Update.
10539 * arm-tdep.c (arm_gdbarch_init): Update.
10540 * alpha-tdep.c (alpha_gdbarch_init): Update.
10541 * sh-tdep.c (sh_init_extra_frame_info): Update.
10542 (sh64_init_extra_frame_info): Update.
10543 * ns32knbsd-nat.c (frame_num_args): Update.
10544 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10545 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10546 (xstormy16_frame_chain_valid): Update.
10547 * vax-tdep.c (vax_saved_pc_after_call): Update.
10548 * v850-tdep.c (v850_frame_chain): Update.
10549 (v850_pop_frame): Update.
10550 (v850_init_extra_frame_info): Update.
10551 * sparc-tdep.c (setup_arbitrary_frame): Update.
10552 * ns32k-tdep.c (umax_frame_num_args): Update.
10553 * s390-tdep.c (s390_pop_frame_regular): Update.
10554 * mn10300-tdep.c (mn10300_frame_chain): Update.
10555 (mn10300_pop_frame_regular): Update.
10556 (mn10300_init_extra_frame_info): Update.
10557 * mips-tdep.c (mips_init_frame_pc_first): Update.
10558 (mips_frame_chain): Update.
10559 (mips_pop_frame): Update.
10560 * mcore-tdep.c (mcore_frame_chain): Update.
10561 (mcore_pop_frame): Update.
10562 (mcore_init_extra_frame_info): Update.
10563 * arch-utils.c (init_frame_pc_default): Update.
10564 * m68k-tdep.c (isi_frame_num_args): Update.
10565 (delta68_frame_num_args): Update.
10566 (news_frame_num_args): Update.
10567 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10568 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10569 (alpha_frame_chain): Update.
10570 (alpha_pop_frame): Update.
10571 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10572 (hppa_init_extra_frame_info): Update.
10573 (hppa_frame_chain): Update.
10574 (hppa_frame_chain_valid): Update.
10575 * cris-tdep.c (cris_init_extra_frame_info): Update.
10576 * avr-tdep.c (avr_init_extra_frame_info): Update.
10577 * arm-tdep.c (arm_frame_chain_valid): Update.
10578 (arm_init_extra_frame_info): Update.
10579 (arm_pop_frame): Update.
10580 * frame.c (frame_pc_unwind): Update.
10581 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10582 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10583 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10584 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10585 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10586 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10588 2003-03-12 Andrew Cagney <cagney@redhat.com>
10590 Eliminate the need for POP_FRAME.
10591 * frame.c (do_frame_unwind_register): New function.
10592 (frame_pop): When no POP_FRAME, pop the frame using register
10593 unwind and a scratch regcache.
10594 (frame_saved_regs_pop): Delete function.
10595 (trad_frame_unwinder): Update.
10596 * d10v-tdep.c (d10v_frame_pop): Delete function.
10597 (d10v_frame_unwind): Update.
10598 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10599 (sentinel_frame_unwinder): Update.
10600 * dummy-frame.c (dummy_frame_pop): Delete function.
10601 (dummy_frame_unwind): Update.
10602 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10603 (struct frame_unwind): Update.
10605 2003-03-11 Kevin Buettner <kevinb@redhat.com>
10607 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10608 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10609 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10610 Do range checks on register number obtained from debugging info.
10611 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10612 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10613 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10615 (do_fp_register_row): Fix typo which caused double type to be
10616 used when attempting to unpack a float.
10618 2003-03-11 J. Brobecker <brobecker@gnat.com>
10620 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10622 2003-03-11 Andrew Cagney <cagney@redhat.com>
10624 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10625 frame. Problem found by Corinna Vinschen.
10627 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10629 * doublest.c (floatformat_from_length): Accept also
10630 the real size of 'long double' type.
10632 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
10634 From Klee Dienes <kdienes@apple.com>:
10635 * breakpoint.c (bpstat_copy): Copy the command lines as well
10636 as the old value, to match what is freed in bpstat_clear.
10638 2003-03-10 David Carlton <carlton@math.stanford.edu>
10640 * minsyms.c (add_minsym_to_hash_table): Replace
10641 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10642 (compare_minimal_symbols, compact_minimal_symbols)
10643 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10644 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10645 of DEPRECATED_SYMBOL_MATCHES_NAME.
10646 (lookup_minimal_symbol_solib_trampoline): Ditto.
10648 2003-03-10 Andrew Cagney <cagney@redhat.com>
10650 * regcache.h (regcache_cooked_read_ftype): Define.
10651 (regcache_save, regcache_restore): Add a cooked_read parameter.
10652 * regcache.c (regcache_save, regcache_restore): Update.
10653 (do_cooked_read): New function.
10654 (regcache_cpy): Pass do_cooked_read to regcache_save and
10657 2003-03-10 Andrew Cagney <cagney@redhat.com>
10659 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10660 * gdbarch.h, gdbarch.c: Re-generate.
10661 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10662 * x86-64-tdep.h: Update.
10663 * x86-64-tdep.c (x86_64_init_abi): Update.
10664 * v850-tdep.c (v850_gdbarch_init): Update.
10665 * sparc-tdep.c (sparc_gdbarch_init): Update.
10666 * sh-tdep.c (sh_gdbarch_init): Update.
10667 * s390-tdep.c (s390_gdbarch_init): Update.
10668 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10669 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10670 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10671 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10672 * mips-tdep.c (mips_gdbarch_init): Update.
10673 * mcore-tdep.c (mcore_gdbarch_init): Update.
10674 * m68k-tdep.c (m68k_gdbarch_init): Update.
10675 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10676 * ia64-tdep.c (ia64_gdbarch_init): Update.
10677 * i386-tdep.c (i386_gdbarch_init): Update.
10678 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10679 * hppa-tdep.c (hppa_gdbarch_init): Update.
10680 * h8300-tdep.c (h8300_gdbarch_init): Update.
10681 * frv-tdep.c (frv_gdbarch_init): Update.
10682 * cris-tdep.c (cris_gdbarch_init): Update.
10683 * avr-tdep.c (avr_gdbarch_init): Update.
10684 * arm-tdep.c (arm_gdbarch_init): Update.
10685 * alpha-tdep.c (alpha_gdbarch_init): Update.
10686 * sh-tdep.c (sh_init_extra_frame_info): Update.
10687 (sh64_init_extra_frame_info): Update.
10688 * ns32knbsd-nat.c (frame_num_args): Update.
10689 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10690 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10691 (xstormy16_frame_chain_valid): Update.
10692 * vax-tdep.c (vax_saved_pc_after_call): Update.
10693 * v850-tdep.c (v850_frame_chain): Update.
10694 (v850_pop_frame): Update.
10695 (v850_init_extra_frame_info): Update.
10696 * sparc-tdep.c (setup_arbitrary_frame): Update.
10697 * ns32k-tdep.c (umax_frame_num_args): Update.
10698 * s390-tdep.c (s390_pop_frame_regular): Update.
10699 * mn10300-tdep.c (mn10300_frame_chain): Update.
10700 (mn10300_pop_frame_regular): Update.
10701 (mn10300_init_extra_frame_info): Update.
10702 * mips-tdep.c (mips_init_frame_pc_first): Update.
10703 (mips_frame_chain): Update.
10704 (mips_pop_frame): Update.
10705 * mcore-tdep.c (mcore_frame_chain): Update.
10706 (mcore_pop_frame): Update.
10707 (mcore_init_extra_frame_info): Update.
10708 * arch-utils.c (init_frame_pc_default): Update.
10709 * m68k-tdep.c (isi_frame_num_args): Update.
10710 (delta68_frame_num_args): Update.
10711 (news_frame_num_args): Update.
10712 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10713 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10714 (alpha_frame_chain): Update.
10715 (alpha_pop_frame): Update.
10716 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10717 (hppa_init_extra_frame_info): Update.
10718 (hppa_frame_chain): Update.
10719 (hppa_frame_chain_valid): Update.
10720 * cris-tdep.c (cris_init_extra_frame_info): Update.
10721 * avr-tdep.c (avr_init_extra_frame_info): Update.
10722 * arm-tdep.c (arm_frame_chain_valid): Update.
10723 (arm_init_extra_frame_info): Update.
10724 (arm_pop_frame): Update.
10725 * frame.c (frame_pc_unwind): Update.
10726 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10727 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10728 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10729 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10730 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10731 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10733 2003-03-10 Andrew Cagney <cagney@redhat.com>
10735 * gdbarch.sh (gdbarch_unwind_pc): New method.
10736 * gdbarch.h, gdbarch.c: Regenerate.
10737 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10738 but use read_pc and FRAME_SAVED_PC as fall backs.
10739 (frame_saved_regs_pc_unwind): Delete function.
10740 (trad_frame_unwinder): Update.
10741 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10742 (struct frame_unwind): Update.
10743 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10744 (dummy_frame_unwind): Update.
10745 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10746 (sentinel_frame_unwinder): Update.
10747 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10748 (d10v_frame_unwind): Update.
10749 (d10v_unwind_pc): New function.
10750 (d10v_gdbarch_init): Set unwind_pc.
10752 2003-03-10 Andrew Cagney <cagney@redhat.com>
10754 * gdbarch.h: Re-generate.
10756 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10758 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10761 2003-03-08 Mark Kettenis <kettenis@gnu.org>
10763 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10765 2003-03-08 Andrew Cagney <cagney@redhat.com>
10767 * cli-out.c: Update copyright.
10768 (cli_out_data): Define typedef. Use instead of ui_out_data.
10770 2003-03-08 Andrew Cagney <cagney@redhat.com>
10772 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10775 2003-03-07 Andrew Cagney <cagney@redhat.com>
10777 * gdbarch.sh: Don't generate two macro definitions when an
10778 undefined macro taking no arguments.
10779 * gdbarch.h: Regenerate.
10781 2002-03-07 Michal Ludvig <mludvig@suse.cz>
10783 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10784 (x86_64_unwind_dummy_id): New functions.
10785 (x86_64_init_abi): Register these two new functions.
10787 2003-03-07 Michal Ludvig <mludvig@suse.cz>
10789 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10790 (x86_64_skip_prologue): Move prologue detection to
10792 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10794 2003-03-05 Andrew Cagney <cagney@redhat.com>
10796 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10797 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10798 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10799 to use unwind_dummy_id when a dummy frame.
10800 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10802 * gdbarch.h, gdbarch.c: Regneerate.
10804 2003-03-05 Andrew Cagney <cagney@redhat.com>
10806 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10807 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10808 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10811 2003-03-05 Andrew Cagney <cagney@redhat.com>
10813 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10814 (struct d10v_unwind_cache): Delete field "frameless". Replace
10815 "next_addr" with "sp_offset". Add "r11_offset".
10816 (d10v_frame_unwind_cache): Update.
10817 (prologue_find_regs): Update. When "mv r11, sp", save the
10818 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10819 RN was saved in r11_offset.
10821 2003-03-05 Andrew Cagney <cagney@redhat.com>
10823 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10824 cached PC value in the next frame.
10826 2003-03-05 Andrew Cagney <cagney@redhat.com>
10828 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10829 "id_unwind_cache" with "id".
10830 (frame_id_unwind): Delete declaration.
10831 * frame.c (frame_id_unwind): Delete function.
10832 (get_prev_frame): Call the frame id unwind method directly. Store
10833 the returned next frame's ID value in NEXT_FRAME. Note that there
10834 is a problem with the wrong unwind ID being called with the wrong
10837 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10839 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10841 2003-03-05 James Ingham <jingham@apple.com>
10842 Daniel Jacobowitz <drow@mvista.com>
10844 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10845 (auto_cp_abi): New variable.
10846 (current_cp_abi, num_cp_abis): Make static.
10847 (CP_ABI_MAX): Define.
10848 (cp_abis): Turn into an array.
10849 (value_virtual_fn_field): Fix formatting.
10850 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10852 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10853 (list_cp_abis, _initialize_cp_abi): New functions.
10854 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10855 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10856 switch_to_cp_abi. Update prototype for register_cp_abi.
10857 * Makefile.in (cp-abi.o): Update dependencies.
10858 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10859 instead of switch_to_cp_abi.
10860 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10862 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10864 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10866 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10868 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10869 * dwarf2loc.c: Include "regcache.h".
10870 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10872 * Makefile.in (dwarf2loc.o): Update dependencies.
10874 2003-03-04 Theodore A. Roth <troth@openavr.org>
10876 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10877 number of io registers reported by remote target is not a multiple of
10880 2003-03-04 David Carlton <carlton@math.stanford.edu>
10882 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10883 (lookup_symbol_aux_psymtabs): Update call to
10884 lookup_partial_symbol.
10885 (lookup_transparent_type, find_main_psymtab)
10886 (make_symbol_overload_list): Ditto.
10888 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10890 * MAINTAINERS (Write after approval): Update my email address.
10892 2003-03-03 Andrew Cagney <cagney@redhat.com>
10894 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10895 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10896 predicate. Replace MAX_REGISTER_RAW_SIZE.
10897 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10898 MAX_REGISTER_VIRTUAL_SIZE.
10899 * regcache.c (legacy_max_register_raw_size): New function.
10900 (legacy_max_register_virtual_size): New function.
10901 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10902 (MAX_REGISTER_RAW_SIZE): Define.
10903 (legacy_max_register_raw_size): Declare.
10904 (legacy_max_register_virtual_size): Declare.
10905 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10906 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10907 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10908 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10909 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10910 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10911 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10912 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10913 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10914 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10915 * vax-tdep.c (vax_gdbarch_init): Update.
10916 * v850-tdep.c (v850_gdbarch_init): Update.
10917 * sparc-tdep.c (sparc_gdbarch_init): Update.
10918 * sh-tdep.c (sh_gdbarch_init): Update.
10919 * s390-tdep.c (s390_gdbarch_init): Update.
10920 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10921 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10922 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10923 * mips-tdep.c (mips_gdbarch_init): Update.
10924 * mcore-tdep.c (mcore_gdbarch_init): Update.
10925 * m68k-tdep.c (m68k_gdbarch_init): Update.
10926 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10927 * ia64-tdep.c (ia64_gdbarch_init): Update.
10928 * i386-tdep.c (i386_gdbarch_init): Update.
10929 * hppa-tdep.c (hppa_gdbarch_init): Update.
10930 * h8300-tdep.c (h8300_gdbarch_init): Update.
10931 * frv-tdep.c (frv_gdbarch_init): Update.
10932 * cris-tdep.c (cris_gdbarch_init): Update.
10933 * avr-tdep.c (avr_gdbarch_init): Update.
10934 * arm-tdep.c (arm_gdbarch_init): Update.
10935 * alpha-tdep.c (alpha_gdbarch_init): Update.
10936 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10937 max_register_raw_size or max_register_virtual_size.
10939 2003-03-03 David Carlton <carlton@math.stanford.edu>
10941 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10942 SYMBOL_MATCHES_NAME, add comment.
10943 (SYMBOL_MATCHES_NATURAL_NAME): New.
10944 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10945 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10946 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10947 * symtab.c (lookup_partial_symbol): Use
10948 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10950 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10951 SYMBOL_MATCHES_NAME.
10954 2003-03-03 David Carlton <carlton@math.stanford.edu>
10956 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10957 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10958 by regexp matching against SYMBOL_NATURAL_NAME.
10960 2003-03-03 David Carlton <carlton@math.stanford.edu>
10962 * linespec.c (find_method): Extract code into collect_methods.
10963 (collect_methods): New.
10965 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10967 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10970 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10971 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10973 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10975 * arch-utils.c (generic_register_byte): Fix to use the loop index
10976 and not regnum when summing the size of all registers up to regnum.
10978 2003-03-01 Andrew Cagney <cagney@redhat.com>
10980 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10981 FRAME_INIT_SAVED_REGS.
10982 * gdbarch.h, gdbarch.c: Regenerate.
10983 * stack.c (frame_info): Update.
10984 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10985 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10986 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10987 * ns32k-tdep.c (ns32k_pop_frame): Update.
10988 * mips-tdep.c (mips_pop_frame): Update.
10989 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10990 * ia64-tdep.c (ia64_frame_chain): Update.
10991 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10992 (ia64_frameless_function_invocation): Update.
10993 (ia64_init_extra_frame_info): Update.
10994 (ia64_pop_frame_regular): Update.
10995 * frame.h (struct frame_info): Update comment.
10996 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10997 * frame.c (frame_saved_regs_register_unwind): Update.
10998 (frame_saved_regs_register_unwind): Update.
10999 (deprecated_generic_get_saved_register): Update.
11000 * cris-tdep.c: Update comment.
11001 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11003 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11004 * x86-64-tdep.c (x86_64_init_abi): Update.
11005 * vax-tdep.c (vax_gdbarch_init): Update.
11006 * v850-tdep.c (v850_gdbarch_init): Update.
11007 * sparc-tdep.c (sparc_gdbarch_init): Update.
11008 * sh-tdep.c (sh_gdbarch_init): Update.
11009 * s390-tdep.c (s390_gdbarch_init): Update.
11010 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11011 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11012 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11013 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11014 * mips-tdep.c (mips_gdbarch_init): Update.
11015 * mcore-tdep.c (mcore_gdbarch_init): Update.
11016 * m68k-tdep.c (m68k_gdbarch_init): Update.
11017 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11018 * ia64-tdep.c (ia64_gdbarch_init): Update.
11019 * i386-tdep.c (i386_gdbarch_init): Update.
11020 * frv-tdep.c (frv_gdbarch_init): Update.
11021 * avr-tdep.c (avr_gdbarch_init): Update.
11022 * arm-tdep.c (arm_gdbarch_init): Update.
11023 * alpha-tdep.c (alpha_gdbarch_init): Update.
11025 2003-03-01 Andrew Cagney <cagney@redhat.com>
11027 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11028 option enum and switch. When no windows, set the interpreter to
11031 2003-03-01 Andrew Cagney <cagney@redhat.com>
11033 * main.c (captured_main): Replace magic option characters with an
11036 2003-03-01 Andrew Cagney <cagney@redhat.com>
11038 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11039 INIT_EXTRA_FRAME_INFO.
11040 * gdbarch.h, gdbarch.c: Regenerate.
11041 * arm-tdep.c: Update comments.
11042 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11043 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11044 * frame.h, avr-tdep.c: Ditto.
11045 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11046 (create_new_frame, legacy_get_prev_frame): Ditto.
11047 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11048 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11049 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11050 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11051 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11052 * v850-tdep.c (v850_gdbarch_init): Ditto.
11053 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11054 * sh-tdep.c (sh_gdbarch_init): Ditto.
11055 * s390-tdep.c (s390_gdbarch_init): Ditto.
11056 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11057 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11058 * mips-tdep.c (mips_gdbarch_init): Ditto.
11059 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11060 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11061 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11062 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11063 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11064 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11065 * frv-tdep.c (frv_gdbarch_init): Ditto.
11066 * cris-tdep.c (cris_gdbarch_init): Ditto.
11067 * avr-tdep.c (avr_gdbarch_init): Ditto.
11068 * arm-tdep.c (arm_gdbarch_init): Ditto.
11069 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11070 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11072 2003-03-01 Andrew Cagney <cagney@redhat.com>
11074 * gdbarch.sh (register_type): New function with predicate.
11075 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11076 * gdbarch.h, gdbarch.c: Re-generate.
11077 * arch-utils.c (generic_register_byte): Use generic_register_size.
11078 (generic_register_size): When available, use
11079 gdbarch_register_type.
11080 * regcache.c (init_regcache_descr): When available, initialize the
11081 register type array using gdbarch_register_type. If the
11082 architecture supplies gdbarch_register_type, do not use the legacy
11084 * d10v-tdep.c (d10v_register_type): Replace
11085 d10v_register_virtual_type.
11086 (d10v_gdbarch_init): Set register_type instead of
11087 register_virtual_type.
11089 2003-03-01 Andrew Cagney <cagney@redhat.com>
11091 * Makefile.in (ax-gdb.o): Update dependencies.
11092 * ax-gdb.c: Include "regcache.h".
11093 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11094 * findvar.c (value_of_register): Ditto.
11095 * infcmd.c (default_print_registers_info): Ditto.
11097 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11099 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11100 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11102 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11104 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11107 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
11109 * Makefile.in (dwarf2loc.o): Update dependencies.
11110 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11111 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11112 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11113 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11114 (locexpr_tracepoint_var_ref): New function.
11115 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11117 2003-02-28 Andrew Cagney <cagney@redhat.com>
11119 * regcache.c (register_size): New function.
11120 * regcache.h (register_size): Declare
11121 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11122 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11124 2003-02-28 David Carlton <carlton@math.stanford.edu>
11126 * linespec.c (decode_compound): Extract code into find_method.
11127 (find_method): New.
11129 2003-02-28 J. Brobecker <brobecker@gnat.com>
11131 * Makefile.in: Add rules to build and link in observer.o.
11133 2003-02-27 J. Brobecker <brobecker@gnat.com>
11135 * observer.c: Minor comments edits.
11137 2003-02-27 J. Brobecker <brobecker@gnat.com>
11139 * observer.h, observer.c: New file.
11141 2003-02-27 Andrew Cagney <cagney@redhat.com>
11143 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11145 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11147 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11148 (M6812_OP_STS_EXT): Likewise.
11149 (m6811_prologue): Use the above to recognize prologue.
11150 (m6812_prologue): Likewise.
11152 2003-02-27 David Carlton <carlton@math.stanford.edu>
11154 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11156 (compare_psymbols): Ditto.
11157 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11159 2003-02-27 Michael Snyder <msnyder@redhat.com>
11161 * f-lang.c (build_fortran_types): New function.
11162 (_initialize_f_language): Gdbarch-register built-in fortran types.
11163 * doublest.c (extract_floating): Fix warning text.
11165 2003-02-27 Andrew Cagney <cagney@redhat.com>
11167 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11168 predicate. Replaces PUSH_DUMMY_FRAME.
11169 * gdbarch.h, gdbarch.c: Regnerate.
11170 * valops.c (hand_function_call): Update. Call
11171 generic_push_dummy_frame directly.
11172 * vax-tdep.c (vax_gdbarch_init): Update.
11173 * sparc-tdep.c (sparc_gdbarch_init): Update.
11174 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11175 * m68k-tdep.c (m68k_gdbarch_init): Update.
11176 * hppa-tdep.c (hppa_gdbarch_init): Update.
11177 * alpha-tdep.c (alpha_gdbarch_init): Update.
11178 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11179 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11180 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11181 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11182 push_dummy_frame to generic_push_dummy_frame.
11183 * v850-tdep.c (v850_gdbarch_init): Ditto.
11184 * sh-tdep.c (sh_gdbarch_init): Ditto.
11185 * s390-tdep.c (s390_gdbarch_init): Ditto.
11186 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11187 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11188 * mips-tdep.c (mips_gdbarch_init): Ditto.
11189 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11191 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11192 * i386-tdep.c (i386_gdbarch_init): Ditto.
11193 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11194 * frv-tdep.c (frv_gdbarch_init): Ditto.
11195 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11196 * cris-tdep.c (cris_gdbarch_init): Ditto.
11197 * avr-tdep.c (avr_gdbarch_init): Ditto.
11198 * arm-tdep.c (arm_gdbarch_init): Ditto.
11200 2003-02-26 Kevin Buettner <kevinb@redhat.com>
11202 * mips-tdep.c (show_mips_abi): New function.
11203 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11204 command ``show mips abi''.
11206 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
11208 From Elena Zannoni <ezannoni@redhat.com>
11209 * dbxread.c (process_one_symbol): Only record line 0 if one or
11210 more sline entries have been seen for the function.
11212 2003-02-26 Michael Chastain <mec@shout.net>
11214 * configure: Regenerate with autoconf 000227.
11216 2003-02-26 Michael Chastain <mec@shout.net>
11218 Close PR build/660.
11219 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11220 for old libc5/glibc.
11221 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11223 2003-02-26 Kris Warkentin <kewarken@qnx.com>
11225 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11226 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11228 2003-02-26 Michael Chastain <mec@shout.net>
11230 * configure.in: New variable HAVE_UINTPTR_T.
11231 * configure, config.in: Regenerated.
11233 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
11236 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11238 2003-02-25 Andrew Cagney <cagney@redhat.com>
11240 * frame.c (get_prev_frame): Add comment on check for
11241 inside_entry_func. Only check for inside_entry_file when not a
11242 dummy and not a sentinel. Check that the new frame is not inner
11245 2003-02-25 Andrew Cagney <cagney@redhat.com>
11247 * frame.c (frame_debug): New variable.
11248 (_initialize_frame): Add "set/show debug frame" command.
11249 (get_prev_frame): When frame_debug, print reason why unwind
11252 2003-02-25 Michael Chastain <mec@shout.net>
11254 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11255 to avoid uintptr_t definition problems.
11257 2003-02-25 David Carlton <carlton@math.stanford.edu>
11259 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11260 (SYMBOL_LINKAGE_NAME): Ditto.
11261 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11262 SYMBOL_LINKAGE_NAME.
11263 (struct general_symbol_info): Expand comment.
11264 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11265 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11266 (SYMBOL_MATCHES_REGEXP): Ditto.
11267 * symtab.c (symbol_natural_name): New function.
11268 * objfiles.h: Replace all uses of SYMBOL_NAME by
11269 DEPRECATED_SYMBOL_NAME.
11270 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11271 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11272 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11273 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11274 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11275 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11276 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11277 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11278 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11279 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11280 * ada-exp.y: Ditto.
11281 * ada-exp.y: Update copyright.
11282 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11283 * cp-valprint.c: Ditto.
11285 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11287 * infptrace.c (detach): Do not flag error if ptrace detach fails
11288 and errno is set to ESRCH.
11290 2003-02-24 Andrew Cagney <cagney@redhat.com>
11292 * infptrace.c (udot_info): Change type of udot_off to long. Use
11293 paddr when printing udot_off's value.
11295 2003-02-24 David Carlton <carlton@math.stanford.edu>
11297 * symtab.c (make_symbol_overload_list): Only read in partial
11298 symtabs containing a matching partial symbol.
11300 2003-02-24 David Carlton <carlton@math.stanford.edu>
11302 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11303 do the comparison, not strcmp.
11304 * symfile.c (compare_psymbols): Ditto.
11305 * defs.h: Declare strcmp_iw_ordered.
11306 * utils.c (strcmp_iw_ordered): New function.
11308 2003-02-24 Jim Blandy <jimb@redhat.com>
11310 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11311 support, shared libs): Remove my name from here, to better reflect
11314 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11316 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11317 (target_ops): Add to_have_continuable_watchpoint.
11318 * target.c (update_current_target): Add INHERIT line for
11319 to_have_continuable_watchpoint.
11320 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11321 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11322 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11323 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11325 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
11327 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11330 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11332 * solib.c (solib_open): Call target defined search function after
11333 failing with solib-search-path.
11334 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11335 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
11337 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11339 * MAINTAINERS: Add myself to Write After section.
11341 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11343 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11345 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11347 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11348 (m68hc11_add_reggroups): New function.
11349 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11350 (m68hc11_gdbarch_init): Install the reggroups.
11351 (_initialize_m68hc11_tdep): Initialize them.
11353 2003-02-21 James E Wilson <wilson@tuliptree.org>
11355 * MAINTAINERS: Update my email address.
11357 2003-02-21 David Carlton <carlton@math.stanford.edu>
11359 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11361 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
11363 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11364 * symtab.h: Add opaque declarations of struct axs_value and
11366 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11367 (struct location_funcs): New type.
11368 (struct symbol): Add "loc" to aux_value.
11369 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11370 * dwarf2read.c: Include "dwarf2expr.h".
11371 (dwarf2_symbol_mark_computed): New function.
11372 (read_func_scope): Use it.
11373 (var_decode_location): New function.
11374 (new_symbol): Use it.
11375 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11377 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11378 (dwarf2expr_h, dwarf2loc_h): New variables.
11379 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11380 (dwarf2expr.o, dwarf2loc.o): New rules.
11381 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11382 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11384 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11385 * m2-exp.y (yylex): Likewise.
11386 * printcmd.c (address_info, print_frame_args): Likewise.
11387 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11388 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11389 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11390 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11391 * symtab.c (lookup_block_symbol): Likewise.
11393 2003-02-20 Adam Fedor <fedor@gnu.org>
11395 * symtab.h: Remove objc_specific struct
11396 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11397 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11398 Have language_objc use cplus_specific struct.
11400 2003-02-20 Tom Tromey <tromey@redhat.com>
11402 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11403 TYPE_NAME, when printing a String value. PR java/1075.
11405 2003-02-20 Adam Fedor <fedor@gnu.org>
11407 * objc-lang.h (find_methods): Remove declaration.
11408 * objc-lang.c (find_methods): Make static.
11410 2003-02-20 Christopher Faylor <cgf@redhat.com>
11412 * win32-nat.c (get_image_name): Check return value from
11414 (child_xfer_memory): Ditto.
11416 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
11418 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11419 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11420 '${exec_prefix}' (in addition to the expansion thereof) as
11422 * configure: Rebuilt.
11424 2003-02-20 David Carlton <carlton@math.stanford.edu>
11426 * symtab.c (search_symbols): Revert the search_symbols part of my
11427 2002-12-23 patch. Add comment.
11429 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11431 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11432 * dbxread.c (elfstab_build_psymtabs): Don't call
11433 install_minimal_symbols.
11434 (stabsect_build_psymtabs): Likewise.
11435 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11437 * somread.c (som_symfile_read): Call install_minimal_symbols
11438 and do_cleanups earlier.
11439 * nlmread.c (nlm_symfile_read): Likewise.
11440 * mdebugread.c (elfmdebug_build_psymtabs): Call
11441 install_minimal_symbols and make appropriate cleanups.
11443 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11445 * solib.c (reload_shared_libraries): New function.
11446 (_initialize_solib): Add callbacks for ``set solib-search-path''
11447 and ``set solib-absolute-prefix''.
11449 2003-02-20 David Carlton <carlton@math.stanford.edu>
11451 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11453 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11454 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11455 * ada-typeprint.c (ada_typedef_print): Ditto.
11456 * ax-gdb.c (gen_var_ref): Ditto.
11457 * breakpoint.c (print_one_breakpoint): Ditto.
11458 * buildsym.c (finish_block): Ditto.
11459 * c-valprint.c (c_val_print): Ditto.
11460 * expprint.c (print_subexp): Ditto.
11461 * findvar.c (locate_var_value): Ditto.
11462 * infcmd.c (jump_command): Ditto.
11463 * linespec.c (decode_line_2, decode_compound): Ditto.
11464 * maint.c (maintenance_translate_address): Ditto.
11465 * objc-lang.c (compare_selectors, compare_classes): Ditto.
11466 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11468 * p-valprint.c (pascal_val_print): Ditto.
11469 * stabsread.c (define_symbol): Ditto.
11470 * stack.c (print_frame, frame_info, print_block_frame_locals)
11471 (print_frame_arg_vars, return_command): Ditto.
11472 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11473 * symmisc.c (print_symbol): Ditto.
11474 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11475 (compare_search_syms, print_symbol_info, print_msymbol_info)
11476 (rbreak_command): Ditto.
11477 * tracepoint.c (tracepoints_info): Ditto.
11478 * typeprint.c (typedef_print): Ditto.
11479 * valops.c (value_of_variable, hand_function_call): Ditto.
11480 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11481 * ada-typeprint.c: Update Copyright.
11482 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11483 * tracepoint.c, cli/cli-cmds.c: Ditto.
11485 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11487 * frame.c (generic_unwind_get_saved_register): Make non-static.
11488 * frame.h (generic_unwind_get_saved_register): Declare.
11489 * mips-tdep.c (read_next_frame_reg): Fetch register from
11490 current regcache when frame is NULL.
11491 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11493 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11494 instead of frame_register_unwind().
11496 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11498 * remote-sim.c (gdbsim_insert_breakpoint)
11499 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11502 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11504 * remote.c (_initialize_remote): Add commands "set/show remote
11505 hardware-watchpoint-limit" and "set/show remote
11506 hardware-breakpoint-limit".
11507 (remote_hw_watchpoint_limit): Initialize to -1.
11508 (remote_hw_breakpoint_limit): Ditto.
11509 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11511 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11513 * coff-pe-read.c: New file - support reading of minimal symbols from a
11514 portable executable using the export table.
11515 * coff-pe-read.h: New file.
11516 * coffread.c: Include coff-pe-read.h.
11517 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11518 debugging symbols found.
11519 * Makefile.in (SFILES): Add coff-pe-read.o.
11520 (coff_pe_read_h): Define.
11521 (COMMON_OBS): Add coff-pe-read.o.
11522 (coffread.o): Add coff_pe_read_h dependency.
11523 (coff-pe-read.o): New target.
11525 2003-02-19 David Carlton <carlton@math.stanford.edu>
11527 * Makefile.in (SFILES): Add block.c.
11529 (COMMON_OBS): Add block.o.
11531 (x86-64-tdep.o): Add $(block_h).
11532 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11533 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11534 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11535 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11536 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11537 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11538 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11539 * value.h: Add opaque declaration for struct block.
11540 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11541 * ada-lang.h: Ditto.
11542 * x86-64-tdep.c: #include "block.h"
11543 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11544 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11545 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11546 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11547 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11548 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11549 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11550 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11551 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11552 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11553 * symtab.c (block_function): Ditto.
11554 (contained_in): Ditto.
11555 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11556 block.h. Add opaque declaration for struct block.
11557 * symtab.h: Move block_function and contained_in declarations to
11558 block.h. Add opaque declarations for struct block, struct
11560 (struct block): Move to block.h.
11561 (struct blockvector): Ditto.
11562 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11563 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11564 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11565 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11566 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11568 * block.c: New file.
11569 * block.h: New file.
11571 2003-02-19 Theodore A. Roth <troth@openavr.org>
11573 * avr-tdep.c (avr_extract_return_value): Remove function.
11574 (avr_store_return_value): Remove function.
11575 (avr_extract_struct_value_address): Remove function.
11576 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11578 2003-02-19 Andrew Cagney <ac131313@redhat.com>
11580 * rs6000-tdep.c: Include "gdb_assert.h".
11581 (registers_e500): Add "acc" and "spefscr".
11582 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11583 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11584 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11586 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11588 2003-02-18 Keith Seitz <keiths@redhat.com>
11590 * Makefile.in: Add gdbtk-interps.c.
11592 2003-02-18 Kevin Buettner <kevinb@redhat.com>
11594 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11595 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11597 2003-02-18 Andrew Cagney <cagney@redhat.com>
11599 * symtab.h (struct objfile): Add opaque declaration.
11601 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
11603 From Jim Ingham <jingham@apple.com>:
11604 * dbxread.c (process_one_symbol): Use last_function_start rather
11605 than function_start_offset to find the real beginning of the
11606 current function. The latter is just the text section offset on
11607 some systems, the former is always the real function start.
11609 2003-02-17 Andrew Cagney <cagney@redhat.com>
11611 * configure.in: Revert ${target} != ${host}.
11613 2003-02-17 Andrew Cagney <ac131313@redhat.com>
11615 * configure.in (Makefile): Use the test ${target} != ${host},
11616 instead of the absence of the "nm.h" file, to determine of the
11617 configuration non-native.
11618 * configure: Regenerate.
11620 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
11622 From Brian Ford <ford@vss.fsi.com>
11624 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11625 conditionalize tui_active test.
11626 (lookup_cmd_1): Ditto.
11628 2003-02-14 Mark Kettenis <kettenis@gnu.org>
11630 * configure.in: Add check for _etext.
11631 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11633 * config.in, configure: regenerated.
11635 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
11637 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11639 2003-02-14 Andrew Cagney <ac131313@redhat.com>
11641 * main.c (tui_version): Delete variable.
11642 (captured_main): When --tui, set interpreter_p to "tui" instead of
11643 enabling tui_version.
11644 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11646 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11647 * cli/cli-cmds.c (disassemble_command): Ditto.
11648 * defs.h (tui_version): Delete declaration.
11649 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11650 (tui-interp.o): Add rules.
11651 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11653 2003-02-14 Christopher Faylor <cgf@redhat.com>
11655 * win32-nat.c (register_loaded_dll): Correctly set address range for
11658 2003-02-12 Jason Molenda (jmolenda@apple.com)
11660 * symmisc.c (print_objfile_statistics): Include information about
11661 the number of psymtabs and symtabs in each object file.
11663 2003-02-13 Keith R Seitz <keiths@redhat.com>
11665 * main.h (struct captured_main_args): Add interpreter_p.
11666 * main.c (captured_main): Initialize interpreter_p from context.
11667 * gdb.c (main): Set interpreter_p argument.
11668 * Makefile.in (gdb.o): Add dependency for interps.h.
11670 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11672 * event-top.c (cli_command_loop): Delete declaration.
11673 (_initialize_event_loop): Delete function setting event_loop_hook.
11674 * event-top.h (cli_command_loop): Declare. Update copyright.
11675 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11676 * interps.c (current_interp_command_loop): When event_loop_p, call
11679 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11681 * interps.h (interp_command_loop_ftype): Change return type to
11684 2003-02-12 Michal Ludvig <mludvig@suse.cz>
11686 * x86-64-tdep.c (x86_64_extract_return_value)
11687 (x86_64_store_return_value): Use regcache instead of regbuf.
11688 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11689 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11691 2003-02-11 Andrew Cagney <ac131313@redhat.com>
11693 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11694 * aclocal.m4: Regenerate.
11695 * configure: Regenerate.
11697 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11698 TCL_LD_SEARCH_FLAGS.
11700 2003-02-10 Michal Ludvig <mludvig@suse.cz>
11702 * dwarf2cfi.c: Reindented.
11704 2003-02-09 Andrew Cagney <ac131313@redhat.com>
11706 * interps.c (clear_interpreter_hooks): Convert function definition
11709 2003-02-07 David Carlton <carlton@math.stanford.edu>
11711 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11713 2003-02-07 Kevin Buettner <kevinb@redhat.com>
11715 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11716 (struct type): ...to here.
11717 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11719 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11720 (replace_type): Set length on all type variants for a given type.
11722 2003-02-07 Andrew Cagney <ac131313@redhat.com>
11724 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11726 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11728 2003-02-06 Andrew Cagney <ac131313@redhat.com>
11730 * Makefile.in (symm-nat.o): Update dependencies.
11731 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11732 (lynx-nat.o, ia64-linux-nat.): Ditto.
11733 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11734 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11735 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11737 * Makefile.in (inflow_h): Define.
11738 (procfs.o, inflow.o, procfs.o): Update dependencies.
11739 * inftarg.c (child_stop): Delete extern declaration of
11740 inferior_process_group. Include "inflow.h".
11741 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11742 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11743 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11744 (our_process_group, inferior_process_group): Extern declarations.
11746 * procfs.c: Include "gdb_assert.h".
11748 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11749 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11750 * jv-typeprint.c (java_type_print_base): Ditto.
11751 * typeprint.c (typedef_print): Eliminate STREQ.
11752 * cli/cli-script.c (define_command, define_command): Ditto.
11753 * main.c (captured_main): Ditto.
11754 * values.c (lookup_internalvar): Ditto.
11755 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11756 within `if' conditional.
11757 * linespec.c (decode_line_2): Ditto.
11758 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11759 (bfd_openw_with_cleanup): Ditto.
11761 2003-02-07 Mark Kettenis <kettenis@gnu.org>
11763 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11764 legacy_extract_return_value and store_return_value to
11765 legacy_return_value.
11767 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11769 * win32-nat.c (get_relocated_section_addrs): New function. Find
11770 section load addresses for symbol handling in relocated DLLs.
11771 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11773 2003-02-05 Fred Fish <fnf@intrinsity.com>
11775 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11777 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11779 (angel_RDI_info): Ditto.
11780 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11782 (threads_continue_all_with_signals): Ditto.
11784 2003-02-05 Jim Ingham <jingham@apple.com>
11785 Keith Seitz <keiths@redhat.com>
11786 Elena Zannoni <ezannoni@redhat.com>
11787 Andrew Cagney <ac131313@redhat.com>
11789 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11790 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11791 (SUBDIR_MI_OBS): Add "mi-interp.o".
11792 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11793 (SFILES): Add "interps.c".
11794 (COMMON_OBS): Add "interps.o".
11795 (interps_h, mi_main_h): Define.
11796 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11797 (mi-main.o, main.o, event-top.o): Update dependencies.
11798 * cli/cli-interp.c: New file.
11799 * interps.h, interps.c: New files.
11800 * top.c: (gdb_init): Don't install the default interpreter, handed
11802 * main.c: Include "interps.h".
11803 (interpreter_p): Note that it should malloc'ed.
11804 (captured_command_loop): Call current_interp_command_loop.
11805 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11806 xfree and xstrdup when updating interpreter_p. Install the
11807 default interpreter. Add hack to stop mi1's copyright notice
11809 * event-top.h (gdb_setup_readline): Declare.
11810 (gdb_disable_readline): Declare.
11811 * event-top.c: Include "interps.h".
11812 (display_gdb_prompt): Call current_interp_display_prompt_p.
11813 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11814 gdb_stdlog, and gdb_stdtarg.
11815 (_initialize_event_loop): Don't call gdb_setup_readline.
11816 * cli-out.c (cli_out_set_stream): New function.
11817 * cli-out.h (cli_out_set_stream): Declare.
11819 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11821 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11822 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11823 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11824 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11825 config/i386/i386v42mp.mt: Removed.
11827 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11829 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11832 2003-02-05 Michael Chastain <mec@shout.net>
11834 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11835 2.12.1 and earlier versions.
11837 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11839 Remove orphaned hosts, targets and files.
11840 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11841 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11842 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11843 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11844 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11845 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11846 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11847 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11848 * config/sparc/tm-sp64sim.h: Delete.
11849 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11851 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11852 mips*-dec-mach3* targets.
11854 2003-02-04 Michael Chastain <mec@shout.net>
11856 * NEWS: Fix typo: sepcifying -> specifying.
11858 2003-02-04 Michael Chastain <mec@shout.net>
11860 * dwarfread.c: Add documentation on the state of dwarf-1,
11861 looking towards obsoletion.
11863 2003-02-03 Michael Chastain <mec@shout.net>
11865 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11866 gdb/testsuite/gdb.c++/pr-1023.exp.
11868 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11870 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11871 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11873 * utils.c (init_page_info): Delete reference to MPW in comments.
11874 * main.c (captured_main): Delete #ifdef MPW.
11876 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11878 * NEWS: Note that the m32r-*-elf* is obsolete.
11879 * monitor.c (monitor_expect): Obsolete reference to m32r.
11880 * configure.tgt: Mark m32r-*-elf* as obsolete.
11881 * MAINTAINERS: Mark m32k as obsolete.
11882 * m32r-rom.c: Obsolete file.
11883 * config/m32r/m32r.mt: Obsolete file.
11884 * config/m32r/tm-m32r.h: Obsolete file.
11885 * m32r-stub.c: Obsolete file.
11886 * m32r-tdep.c: Obsolete file.
11888 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11890 * NEWS: Mention that the z8k-zilog-none is obsolete.
11891 * MAINTAINERS: Mark z8k as obsolete.
11892 * configure.tgt: Obsolete the z8k-*-coff* target.
11893 * config/z8k/z8k.mt: Obsolete file.
11894 * config/z8k/tm-z8k.h: Obsolete file.
11895 * z8k-tdep.c: Obsolete file.
11897 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11899 * NEWS: Mention that the mn10200-elf is obsolete.
11900 * configure.tgt: Obsolete mn10200-*-* target.
11901 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11902 mention that the mn10200 is obsolete.
11903 * breakpoint.h: Ditto.
11904 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11905 * config/mn10200/mn10200.mt: Obsolete file.
11906 * config/mn10200/tm-mn10200.h: Obsolete file.
11907 * mn10200-tdep.c: Obsolete file.
11909 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11911 * MAINTAINERS: Mark h8500 as obsolete.
11912 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11913 * findvar.c (value_from_register): Ditto.
11914 * h8500-tdep.c: Mark file as obsolete.
11915 * config/h8500/h8500.mt: Ditto.
11916 * config/h8500/tm-h8500.h: Ditto.
11917 * NEWS: Mention that h8500 is obsolete.
11919 2003-02-04 David Carlton <carlton@math.stanford.edu>
11921 * objfiles.c (allocate_objfile): Always set name. Add comment at
11923 * jv-lang.c (get_dynamics_objfile): Add comment.
11925 2003-02-04 David Carlton <carlton@math.stanford.edu>
11927 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11928 * printcmd.c (build_address_symbolic): Replace uses of
11929 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11930 SYMBOL_NAME, and asm_demangle.
11933 2003-02-04 David Carlton <carlton@math.stanford.edu>
11935 * linespec.c (decode_compound): Extract code into
11937 (lookup_prefix_sym): New function.
11939 2003-02-04 David Carlton <carlton@math.stanford.edu>
11941 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11942 FLOAT_COERCION_BADNESS.
11943 * gdbtypes.c (rank_one_type): Replace all uses of
11944 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11946 2003-02-04 Jim Blandy <jimb@redhat.com>
11948 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11949 section, let dwarf_macinfo_section point to it, not
11952 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11954 Pointed out by Anton Blanchard <anton@samba.org>.
11955 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11956 (ppc_linux_at_sigtramp_return_path): Use it.
11958 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11960 * defs.h (streq): Add prototype.
11961 * utils.c (streq): New function.
11963 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11964 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11965 * mdebugread.c (new_symbol): Likewise.
11966 * stabsread.c (define_symbol): Likewise.
11967 * coffread.c (process_coff_symbol): Likewise.
11968 * dwarfread.c (new_symbol): Likewise.
11970 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11971 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11973 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11974 SYMBOL_INIT_DEMANGLED_NAME.
11975 * objfiles.c: Include "hashtab.h".
11976 (allocate_objfile): Call htab_set_functions_ex for the
11977 demangled_names_hash.
11978 (free_objfile): Call htab_delete for the demangled_names_hash.
11979 * objfiles.h (struct htab): Add declaration.
11980 (struct objfile): Add demangled_names_hash.
11981 * symfile.c: Include "hashtab.h".
11982 (reread_symbols): Call htab_delete for the demangled_names_hash.
11983 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11984 SYMBOL_NAME in the bcache.
11985 * symtab.c: Include "hashtab.h". Update comments.
11986 (create_demangled_names_hash, symbol_set_names): New functions.
11987 (symbol_find_demangled_name): New function, broken out from
11988 symbol_init_demangled_names.
11989 (symbol_init_demangled_names): Use it.
11990 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11991 (SYMBOL_SET_NAMES): New macro.
11992 (symbol_set_names): Add prototype.
11994 2003-02-03 Jim Blandy <jimb@redhat.com>
11996 Use a single, consistent representation for an empty minimal
11997 symbol table in an objfile.
11998 * objfiles.c (terminate_minimal_symbol_table): New function.
11999 (allocate_objfile): Call it.
12000 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12001 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
12003 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12004 objfile has minimal symbols, compare minimal_symbol_count to zero,
12005 instead of comparing msymbols with NULL.
12006 * objfiles.c (have_minimal_symbols): Same.
12007 * solib-sunos.c (solib_add_common_symbols): Call
12008 terminate_minimal_symbol_table.
12009 * symfile.c (reread_symbols): Same.
12011 2003-02-03 Kevin Buettner <kevinb@redhat.com>
12013 * s390-tdep.c (s390_address_class_type_flags)
12014 (s390_address_class_type_flags_to_name)
12015 (s390_address_class_name_to_type_flags): New functions.
12016 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12017 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12019 2003-02-03 Michael Snyder <msnyder@redhat.com>
12021 * arm-tdep.c: Fix spell-o in comment.
12023 2003-02-03 Michal Ludvig <mludvig@suse.cz>
12025 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12026 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
12027 error messages to contain BFD filename.
12029 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
12031 Fix PR gdb/742 gdb/743 gdb/877
12032 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12033 (do_mixed_source_and_assembly): Use
12034 make_cleanup_ui_out_tuple_begin_end and
12035 make_cleanup_ui_out_tuple_begin_end.
12036 (do_mixed_source_and_assembly): Ditto.
12037 * thread.c (do_captured_list_thread_ids): Ditto.
12038 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12039 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12040 ui_out_tuple_end): Delete prototypes.
12041 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12042 ui_out_list_end, ui_out_tuple_end): Delete.
12044 From Kevin Buettner <kevinb@redhat.com>:
12045 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
12046 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12047 (do_cleanup_table_end): New functions.
12048 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12049 Use cleanups to invoke_ui_out_tuple_end().
12050 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
12051 * cli/cli-setshow.c (cmd_show_list): Use
12052 make_cleanup_ui_out_tuple_begin_end.
12054 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12056 * frame.c (frame_unwind_register): New function.
12057 (frame_unwind_unsigned_register): Use.
12058 (frame_unwind_signed_register): Use.
12059 (frame_read_register): New function.
12060 * frame.h (frame_unwind_register): Declare.
12061 (frame_read_register): Declare.
12063 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12064 and frame_unwind_register instead of read_memory, write_register
12065 and deprecated_write_register_bytes.
12067 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12069 * frame.h: Note that namelen can be negative.
12070 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12073 * NEWS: Mention that the d10v's `regs' command is deprecated.
12074 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12075 (d10v_print_registers_info): New function.
12076 (show_regs): Call d10v_print_registers_info.
12077 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12079 2003-02-02 Mark Kettenis <kettenis@gnu.org>
12081 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12082 lost in the previous patch.
12084 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12086 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
12087 * stack.c (print_frame_info_base): Output complete FRAME tuple
12088 for synthesized frames.
12090 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12092 * mips-nat.c (zerobuf): Delete.
12093 (fetch_inferior_registers): Alloc local zerobuf.
12094 (fetch_core_registers): Alloc local zerobuf.
12095 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12096 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12097 * thread-db.c (thread_db_store_registers): Ditto.
12098 * sh-tdep.c (sh_do_register): Ditto.
12099 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12100 * remote-sim.c (gdbsim_store_register): Ditto.
12101 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12102 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12103 * monitor.c (monitor_supply_register): Ditto.
12104 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12105 * mips-nat.c (fetch_inferior_registers): Ditto.
12106 * m68klinux-nat.c (fetch_register): Ditto.
12107 * lynx-nat.c (fetch_inferior_registers): Ditto.
12108 (fetch_inferior_registers): Ditto.
12109 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12110 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12111 (hpux_thread_store_registers): Ditto.
12112 * hppah-nat.c (fetch_register): Ditto.
12113 * hppab-nat.c (fetch_register): Ditto.
12114 * hppa-tdep.c (pa_register_look_aside): Ditto.
12115 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12116 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12118 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12120 * gdbarch.sh: Explictly specify all method levels. When a
12121 variable with an empty level, provide a non-multi-arch default.
12122 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12123 * gdbarch.h: Re-generate.
12124 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12125 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12127 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12129 * defs.h (host_pointer_to_address): Delete declaration.
12130 (address_to_host_pointer): Delete declaration.
12131 * utils.c (host_pointer_to_address): Delete function.
12132 (address_to_host_pointer): Delete function.
12133 * procfs.c (procfs_address_to_host_pointer): New function.
12134 * procfs.c (proc_set_watchpoint): Use.
12135 (procfs_can_use_hw_breakpoint): Update comments.
12136 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12137 (som_solib_add): Use.
12138 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12139 * hppa-tdep.c (unwind_command): Use.
12141 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12143 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12146 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12147 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12148 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12149 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12150 (define_symbol): Update.
12151 * symfile.c (generic_load): Remove references to nindy.
12152 * symtab.c: Remove references to nindy.
12154 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12156 * infcmd.c (print_float_info): Delete code conditional on
12158 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12159 * config/m68k/nm-apollo68b.h: Ditto.
12160 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12161 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12162 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12164 2003-02-01 Mark Kettenis <kettenis@gnu.org>
12166 * config/i386/tm-i386os9k.h: Removed.
12168 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12169 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12170 they're identical to i[3456]86-*-sysv* now.
12171 * config/i386/i386v32.mh: Removed.
12172 * config/i386/xm-i386v32.h: Removed.
12173 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12175 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12177 * config/i386/i386dgux.mh: Removed.
12178 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12180 * configure.in: Fix typo.
12181 * configure: Regenerated.
12183 2003-01-31 David Carlton <carlton@math.stanford.edu>
12185 * dwarf2read.c (dwarf2_locate_sections): Set
12186 dwarf_ranges_section.
12188 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12190 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12191 * utils.c: Update comments documenting legitimate uses of PTR.
12193 * utils.c: Re-indent.
12195 * config/djgpp/fnchange.lst: Delete nindy files.
12196 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12197 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12198 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12199 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12200 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12201 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12202 * Makefile.in (init.c): Remove nindy references.
12203 (saber_gdb): Delete rule.
12204 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12205 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12207 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12208 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12209 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12210 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12211 nindy-share/stop.h.
12212 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12213 * saber.suppress: Delete file.
12215 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
12217 * dbxread.c (stabs_data): New static variable.
12218 (fill_symbuf): Support an in-memory buffer for stabs data.
12219 (stabs_seek): New function.
12220 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12221 (read_ofile_symtab): Use stabs_seek.
12222 (elfstab_build_psymtabs): Take an asection* instead of
12223 an offset and size. Relocate the stabs data if necessary.
12224 Save the section* for dbx_psymtab_to_symtab.
12225 * dwarf2read.c: Add section variables for each debug section.
12226 (dwarf2_locate_sections): Fill them in.
12227 (dwarf2_read_section): Take an asection* argument.
12228 Relocate the section contents if necessary.
12229 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12230 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12231 it to dwarf2_read_section.
12232 (dwarf2_build_frame_info): Update callers.
12233 * elfread.c (elf_symfile_read): Update call to
12234 elfstab_build_psymtabs.
12235 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12236 (DBX_STAB_SECTION): New macro.
12237 * stabsread.h (elfstab_build_psymtabs): Update prototype.
12238 * symfile.c (symfile_dummy_outputs): New function.
12239 (symfile_relocate_debug_section): New function.
12240 * symfile.h (symfile_relocate_debug_section): Add prototype.
12242 2003-01-31 Richard Henderson <rth@redhat.com>
12244 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12245 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12246 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12247 * alpha-tdep.c (alpha_register_name): Add "unique".
12248 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12249 (ALPHA_UNIQUE_REGNUM): New.
12250 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12252 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12254 * README: Remove reference to Ericsson 1800 monitor.
12255 * Makefile.in (remote-es.o): Delete rule.
12256 (ALLDEPFILES): Delete remote-es.c.
12257 * remote-es.c: Delete file.
12258 * config/m68k/es1800.mt: Delete file.
12259 * config/djgpp/fnchange.lst: Update.
12260 * configure.tgt: Delete m68*-ericsson-* target.
12262 2003-01-31 Adam Fedor <fedor@gnu.org>
12264 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12265 Remove duplicate/shadowing variable of same name.
12267 2003-01-30 Jim Blandy <jimb@redhat.com>
12269 * symfile.c (find_separate_debug_file): Assert that the objfile's
12270 directory name we compute ends with a slash, and then assume that
12271 that's so everywhere we use it.
12273 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
12275 * valops.c (value_assign): Flush frame cache after stores to memory
12278 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12280 * Makefile.in (mon960-rom.o): Delete rule.
12281 * mon960-rom.c: Delete file.
12283 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12285 * d10v-tdep.c: Include "frame-unwind.h".
12286 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12288 (next_addr, uses_frame): Delete.
12289 (struct d10v_unwind_cache): Define.
12290 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12291 Use info instead of next_addr and uses_frame globals.
12292 (d10v_frame_init_saved_regs): Delete function.
12293 (d10v_init_extra_frame_info): Delete function.
12294 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12295 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12296 init_frame_pc or frame_saved_pc.
12297 (d10v_pop_frame): Delete function.
12298 (do_d10v_pop_frame): Delete function.
12299 (d10v_frame_chain): Delete function.
12300 (d10v_frame_chain_valid): Delete function.
12301 (d10v_frame_pc_unwind): New function.
12302 (d10v_frame_id_unwind): New function.
12303 (saved_regs_unwinder): New function.
12304 (d10v_frame_register_unwind): New function.
12305 (d10v_frame_pop): New function.
12306 (d10v_frame_unwind): New variable.
12307 (d10v_frame_p): New function.
12308 (d10v_frame_saved_pc): Delete function.
12309 * Makefile.in (d10v-tdep.o): Update dependencies.
12311 2003-01-30 J. Brobecker <brobecker@gnat.com>
12313 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12314 causing some regressions due to a change in the default value
12317 2003-01-29 Richard Henderson <rth@redhat.com>
12318 Elena Zannoni <ezannoni@redhat.com>
12319 Daniel Jacobowitz <drow@mvista.com>
12322 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
12324 (RANGES_SECTION): New.
12325 (dwarf_ranges_buffer): New variable.
12326 (struct comp_unit_head): Add member "die".
12327 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12328 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12329 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12330 (dwarf2_locate_sections): Likewise.
12331 (dwarf2_build_psymtabs): Read .debug_ranges.
12332 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12333 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12334 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12335 Look for DW_AT_ranges and return the bounding box.
12337 2003-01-29 Brian Ford <ford@vss.fsi.com>
12339 * win32-nat.c (cygwin_pid): Removed as unused.
12340 (child_attach): Try fall back to Cygwin pid.
12342 2003-01-29 Jim Blandy <jimb@redhat.com>
12344 * objfiles.h (struct objfile): Doc fix.
12346 2003-01-29 Andrew Cagney <ac131313@redhat.com>
12348 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12349 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12350 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12351 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12352 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12353 (FRAME_SAVED_PC): Change to a function with predicate.
12354 * gdbarch.h, gdbarch.c: Re-generate.
12356 2003-01-28 Andrew Cagney <ac131313@redhat.com>
12358 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12360 * complaints.c (complain): Delete function.
12361 * complaints.h (struct deprecated_complaint): Delete definition.
12362 (complain): Delete declaration.
12364 2003-01-28 Kevin Buettner <kevinb@redhat.com>
12366 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12369 2003-01-27 Andrew Cagney <ac131313@redhat.com>
12371 * sentinel-frame.h, sentinel-frame.c: New files.
12372 * Makefile.in (frame.o): Update dependencies.
12373 (SFILES): Add sentinel-frame.c.
12374 (sentinel_frame_h): Define.
12375 (COMMON_OBS): Add sentinel-frame.o.
12376 (sentinel-frame.o): Specify dependencies.
12377 * frame.c: Include "sentinel-frame.h".
12378 (frame_register_unwind): Rewrite assuming that there is always a a
12380 (frame_register, generic_unwind_get_saved_register): Ditto.
12381 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12382 (create_sentinel_frame, unwind_to_current_frame): New functions.
12383 (get_current_frame): Rewrite using create_sentinel_frame and
12384 unwind_to_current_frame. When possible, always create a frame.
12385 (create_new_frame): Set next to the sentinel frame.
12386 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12387 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12388 ID cache when necessary.
12389 (frame_saved_regs_id_unwind): Use frame_relative_level.
12390 (deprecated_generic_get_saved_register): Use frame_relative_level,
12391 get_frame_saved_regs, get_frame_pc, get_frame_base and
12393 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12396 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12398 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12400 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12402 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12403 (maintenance_set_profile_cmd): Use error () instead of warning ().
12405 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12407 * configure.in: Check that -pg works if using --enable-profiling.
12408 Check for monstartup and _mcleanup regardless of --enable-profiling.
12409 * maint.c: Check for monstartup and _mcleanup before using them.
12410 * config.in: Regenerated.
12411 * configure: Regenerated.
12413 2003-01-24 Nick Clifton <nickc@redhat.com>
12415 * Add sh2e support:
12417 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12419 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12420 (sh2e_show_regs): New.
12421 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12422 * config/sh/tm-sh.h: Added sh2e to comments.
12424 2003-01-23 Jim Blandy <jimb@redhat.com>
12426 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12427 symbols found)" message here; we haven't checked for a separate
12428 debug info file yet, so we don't know yet.
12429 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12430 we've looked everywhere. Also, there's no need to print a special
12431 message when we're loading the separate debug info file: the one
12432 symbol_file_add prints is fine.
12434 2003-01-23 Alexander Larsson <alexl@redhat.com>
12435 Jim Blandy <jimb@redhat.com>
12437 Add support for executables whose debug info has been separated
12438 out into a separate file, leaving only a link behind.
12439 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12440 and separate_debug_objfile_backlink.
12441 (put_objfile_before): New declaration.
12442 * symfile.c: #include "filenames.h".
12443 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12444 debug info in a separate file, read that, too. Save the addrs
12445 argument, so we can use it again to read the separated debug info;
12446 syms_from_objfile modifies the table we pass it.
12447 (reread_symbols): After re-reading an objfile, call
12448 reread_separate_symbols to refresh its separate debug info
12449 objfile, if it has one.
12450 (reread_separate_symbols, find_separate_debug_file,
12451 get_debug_link_info, separate_debug_file_exists): New functions.
12452 (debug_file_directory): New global var.
12453 (_initialize_symfile): Initialize debug_file_directory, and
12454 provide the new `set debug-file-directory' command to let the user
12456 * objfiles.c (free_objfile): If this objfile has its debug info in
12457 a separate objfile, free that one too. If this is itself a
12458 separate debug info objfile, clear our parent's backlink.
12459 (put_objfile_before): New function.
12460 * utils.c (gnu_debuglink_crc32): New function.
12461 * defs.h (gnu_debuglink_crc32): New declaration.
12462 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12463 * configure.in: Handle --with-separate-debug-dir config option.
12464 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12465 * acconfig.h (DEBUGDIR): New macro.
12466 * configure, aclocal.m4, config.in: Regenerated.
12468 2003-01-22 Jim Blandy <jimb@redhat.com>
12470 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12471 like the old symbol_file_add, but taking new arguments: you can
12472 now pass in either a `struct section_addr_info' list to say where
12473 each section is loaded, or a `struct section_offsets' table. Pass
12474 these new arguments through to syms_from_objfile as appropriate.
12475 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
12476 with the appropriate quiescent values for the new arguments.
12478 * symfile.c: #include "gdb_assert.h".
12479 (syms_from_objfile): Add the ability to pass in a section offset
12480 table directly, as an alternative to the section_addr_info table.
12481 Document arguments better.
12482 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12483 * symfile.h (syms_from_objfile): Update declaration.
12484 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12486 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12488 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
12490 Original patch by Tom Tromey <tromey@cygnus.com> and
12491 Jason Molenda <jmolenda@apple.com>.
12492 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12493 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12494 * NEWS: Mention profiling.
12495 * configure.in (--enable-gdbtk): Fix typo.
12496 (--enable-profiling): New. Set PROFILE_CFLAGS.
12497 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12499 (profiling_state): New variable.
12500 (mcleanup_wrapper): New function.
12501 (_initialize_maint): Remove NOTYET, fix call to
12502 add_setshow_boolean_cmd for "maint set profile".
12503 * configure: Regenerated.
12505 2003-01-21 Martin M. Hunt <hunt@redhat.com>
12507 * Makefile.in (install-gdbtk): Install PNG images too.
12509 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12511 * exec.c (text_start): Delete global variable.
12512 (exec_file_attach): Make text_start local to the function.
12513 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12514 * valops.c (hand_function_call): Delete code that handles
12515 BEFORE_TEXT_END and AFTER_TEXT_END.
12516 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12517 of CALL_DUMMY_LOCATION.
12518 * gdbarch.c: Regenerate.
12519 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12520 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12521 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12522 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12523 (text_end): Delete extern declaration.
12525 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12527 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12528 * blockframe.c (backtrace_below_main): Move to "frame.c".
12529 (frame_chain_valid): Delete check for backtrace_below_main.
12530 (_initialize_blockframe): Delete initialization, move ``set
12531 backtrace-below-main'' command to "frame.c".
12532 (do_flush_frames_sfunc): Delete function.
12533 * frame.c: Include "command.h" and "gdbcmd.h".
12534 (frame_type_from_pc): New function.
12535 (create_new_frame): Use frame_type_from_pc.
12536 (legacy_get_prev_frame): New function.
12537 (get_prev_frame): Rewrite. When an old style frame, call
12538 legacy_get_prev_frame. Otherwize, unwind the PC first.
12539 (_initialize_frame): Add ``set backtrace-below-main'' command.
12540 * Makefile.in (frame.o): Update dependencies.
12542 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12544 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12545 DEPRECATED_REGISTERS_INFO.
12547 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12549 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12550 Maintainers'. Update `Various Maintainers'.
12552 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12554 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12555 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12556 Suppress actual parameters when `-'.
12557 * gdbarch.h, gdbarch.c: Regenerate.
12559 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12561 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12562 code handling dummy frames.
12564 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12566 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12567 (struct frame_unwind): Add field pop.
12568 * frame.h (frame_pop): Declare.
12569 * frame.c (frame_saved_regs_pop): New function.
12570 (trad_frame_unwinder): Add frame_saved_regs_pop.
12571 (frame_pop): New function.
12572 * dummy-frame.c (dummy_frame_pop): New function.
12573 (discard_innermost_dummy): New function.
12574 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12575 (dummy_frame_unwind): Add dummy_frame_pop.
12576 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12577 * valops.c (hand_function_call): Ditto.
12578 * stack.c (return_command): Ditto.
12580 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12582 * cris-tdep.c: Fix function declaration indentation.
12583 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12584 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12585 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12586 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12587 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12588 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12590 2003-01-18 Michael Chastain <mec@shout.net>
12592 * README (Unpacking and Installation -- quick overview):
12593 Warn against ".../gdb-5.3/gdb/configure".
12595 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12597 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12598 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12599 (struct frame_unwind): Declare opaque.
12600 (dummy_frame_p): Declare function.
12601 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12602 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12603 * dummy-frame.c: Include "frame-unwind.h".
12604 (dummy_frame_p): New function.
12605 (dummy_frame_unwind): New variable.
12606 * frame.c: Include "frame-unwind.h".
12607 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12608 to use the new unwind field.
12609 (set_unwind_by_pc): Delete function.
12610 (create_new_frame, get_prev_frame): Set unwind field using
12611 frame_unwind_find_by_pc.
12612 (trad_frame_unwind, trad_frame_unwinder): New variables.
12613 * frame.h (trad_frame_unwind): Declare variable.
12614 (frame_id_unwind_ftype): Delete declaration.
12615 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12616 (struct frame_unwind): Declare opaque.
12617 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12618 register_unwind with a single unwind pointer.
12619 * frame-unwind.h, frame-unwind.c: New files.
12620 * Makefile.in (SFILES): Add frame-unwind.c.
12621 (frame_unwind_h): Define.
12622 (COMMON_OBS): Add frame-unwind.o.
12623 (frame-unwind.o): Specify dependencies.
12624 (frame.o, dummy-frame.o): Update dependencies.
12626 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12628 * ada-valprint.c: Eliminate PTR.
12629 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12630 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12631 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12632 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12633 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12634 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12635 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
12637 2003-01-17 Andrew Cagney <ac131313@redhat.com>
12639 * main.c (captured_main): Don't use PTR.
12640 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12641 * gdbtypes.c (lookup_primitive_typename): Ditto.
12642 (lookup_struct_elt_type): Ditto.
12643 * f-valprint.c (info_common_command): Ditto.
12644 (list_all_visible_commons): Ditto.
12645 * jv-typeprint.c (java_type_print_base): Ditto.
12647 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12648 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12649 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12650 i386-interix-nat.c and i386-interix-tdep.c. Rename
12651 m68klinux-nat.c and m68klinux-tdep.c. Rename
12652 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12653 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12654 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12655 * main.c (captured_main): Use xfree, not free.
12657 2003-01-16 Andrew Cagney <ac131313@redhat.com>
12659 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12660 ID back using a parameter.
12661 * frame.c (frame_id_unwind): Update call.
12662 (frame_saved_regs_id_unwind): Update.
12663 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12664 * dummy-frame.h (struct frame_id): Add opaque declaration.
12665 (dummy_frame_id_unwind): Update declaration.
12667 2003-01-15 Andrew Cagney <ac131313@redhat.com>
12669 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12671 2003-01-15 Stephen P. Smith <ischis2@cox.net>
12673 * MAINTAINERS (Stephen P. Smith): Updated email address.
12675 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
12678 * breakpoint.c (until_break_command): Add new argument. Use it to
12679 decide whether to stop only at the current frame or not.
12680 * breakpoint.h (until_break_command): Update prototype.
12681 * infcmd.c (until_command): Add new argument to until_break_command
12683 (advance_command): New function.
12684 (_initialize_infcmd): Update help string for 'until' command.
12685 Add new 'advance' command.
12687 2003-01-14 David Carlton <carlton@math.stanford.edu>
12689 * linespec.c (decode_line_1): Normalize comments.
12690 (set_flags): Ditto.
12691 (locate_first_half): Ditto.
12692 (decode_compound): Ditto.
12693 (symtab_from_filename): Ditto.
12694 (decode_all_digits): Ditto.
12695 (decode_dollar): Ditto.
12696 (find_methods): Ditto.
12697 (find_toplevel_char): Ditto.
12699 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12701 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12702 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12703 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12704 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12705 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12706 * language.c, language.h, m32r-tdep.c: Update copyright.
12707 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12708 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12709 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12710 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12711 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12712 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12714 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12716 * stabsread.h (process_later, resolve_cfront_continuation):
12718 Update copyright years.
12719 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12720 Update copyright year.
12721 * dbxread.c(struct cont_elem): Obsolete.
12722 (process_later, process_now): Obsolete functions.
12723 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12724 Update copyright year.
12725 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12726 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12727 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12728 (parse_partial_symbols): Obsolete cfront support.
12730 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12732 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12733 read_cfront_baseclasses, read_cfront_member_functions,
12734 resolve_cfront_continuation,read_cfront_static_fields,
12735 copy_cfront_struct_fields): Obsolete functions.
12736 (define_symbol, read_one_struct_field): Obsolete cfront support.
12737 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12738 Update Copyright year.
12740 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12742 * stack.c (print_frame_info, print_stack_frame_base_stub,
12743 print_stack_frame_base, show_and_print_stack_frame_stub,
12744 show_and_print_stack_frame, print_only_stack_frame_stub,
12745 print_only_stack_frame): Delete functions.
12746 (print_stack_frame_stub): Call print_frame_info instead of
12747 print_frame_info_base.
12748 (print_frame_info_base): Rename to print_frame_info.
12749 (backtrace_command_1): Call print_frame_info, instead of
12750 print_frame_info_base.
12751 (current_frame_command): Call print_stack_frame, instead of
12752 print_only_stack_frame.
12753 (frame_command): Call print_stack_frame, instead of
12754 show_and_print_stack_frame.
12755 (up_command): Ditto.
12756 (down_command): Ditto.
12757 * frame.h (print_only_stack_frame): Delete prototype.
12758 * infrun.c (normal_stop): Call print_stack_frame, instead of
12759 show_and_print_stack_frame.
12760 * thread.c (info_threads_command): Call print_stack_frame, instead
12761 of print_only_stack_frame.
12763 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12765 * README (Graphical interface to GDB): Update URL. Point at
12768 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12771 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12773 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12776 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12778 * thread-db.c (attach_thread): Prototype.
12779 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12780 thread information (ti), and valid flags (th_valid, ti_valid).
12781 (attach_thread): Move target_pid_to_str call to after the thread
12782 is added to GDB's list. Initialize the cache.
12783 (thread_get_info_callback, thread_db_map_id2thr)
12784 (thread_db_get_info): New functions.
12785 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12786 (thread_db_store_registers, thread_db_thread_alive)
12787 (thread_db_get_thread_local_address): Use them.
12788 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12789 of calling error() for threads in unknown state.
12791 (clear_lwpid_callback): New function.
12792 (thread_db_resume): Use it to clear the cache.
12794 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12796 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12797 (resume_callback): Remove dead code.
12799 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12801 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12803 * gdbarch.h, gdbarch.c: Regenerate.
12804 * stack.c (frame_info): Only initialize the saved registers when
12805 FRAME_INIT_SAVED_REGS_P.
12806 * frame.c (frame_saved_regs_register_unwind): Assert
12807 FRAME_INIT_SAVED_REGS_P.
12808 (deprecated_generic_get_saved_register): Ditto.
12810 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12812 * source.c (openp): Squelch warning about "filename".
12814 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12816 * source.c (openp): If the file does not exist don't necessarily
12819 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12822 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12823 (integer_types_same_name_p): New function.
12824 (rank_one_type): Use it.
12825 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12827 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12829 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12831 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12832 * configure.in: Add --with-sysroot.
12833 * configure: Regenerated.
12834 * main.c (gdb_sysroot): New variable.
12835 (captured_main): Initialize gdb_sysroot.
12836 * defs.h (gdb_sysroot): New extern declaration.
12837 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12839 2003-01-12 Michael Chastain <mec@shout.net>
12841 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12843 2003-01-12 Michael Chastain <mec@shout.net>
12845 * top.c (print_gdb_version): Bump copyright year to 2003.
12847 2003-01-12 David Carlton <carlton@bactrian.org>
12849 * linespec.c (symtab_from_filename): Rename variable 's' to
12852 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12854 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12856 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12858 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12860 * d10v-tdep.c: Include "gdb_assert.h".
12861 (d10v_store_return_value): Rewrite to match current interface.
12862 (d10v_extract_struct_value_address): Ditto.
12863 (d10v_extract_return_value): Ditto.
12864 (d10v_gdbarch_init): Set store_restore_value,
12865 extract_struct_value_address and extract_return_value.
12867 2003-01-12 J. Brobecker <brobecker@gnat.com>
12869 * hpread.c (set_namestring): New procedure replacing the
12870 SET_NAMESTRING macro.
12871 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12872 by calls to set_namestring.
12874 2003-01-11 J. Brobecker <brobecker@gnat.com>
12876 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12877 a compilation warning.
12878 (hpread_process_one_debug_symbol): Likewise.
12880 2003-01-10 David Carlton <carlton@math.stanford.edu>
12882 * linespec.c (decode_line_1): Rename variable 's' to
12884 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12885 (decode_dollar): Ditto.
12886 (decode_variable): Ditto.
12887 (symbol_found): Ditto.
12889 2003-01-09 Michael Chastain <mec@shout.net>
12891 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12893 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
12895 * win32-nat.c (set_process_privilege): New function.
12896 (child_attach): Call set_process_privilege() to enable the
12897 SE_DEBUG_NAME user privilege if available in process token.
12899 2003-01-10 J. Brobecker <brobecker@gnat.com>
12901 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12902 compilation error in the previous revision.
12904 2003-01-09 David Carlton <carlton@math.stanford.edu>
12906 * linespec.c: Update copyright.
12908 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
12910 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12911 than inferior_ptid.
12912 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12914 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12916 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12918 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12919 (frame_saved_regs_zalloc): Update.
12920 (frame_saved_regs_register_unwind): Update.
12921 (create_new_frame): Update.
12922 (get_prev_frame): Update.
12923 (frame_extra_info_zalloc): Update.
12924 (deprecated_get_frame_saved_regs): Update.
12925 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12926 * cris-tdep.c: Update comment.
12928 * somsolib.h: Fix function indentation.
12929 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12930 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12931 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12932 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12933 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12935 * infrun.c (follow_fork): Use ISO C definition.
12936 * expprint.c (print_subexp): Use xfree instead of free.
12937 * charset.c: Include "gdb_string.h" instead of <string.h>.
12938 (register_iconv_charsets): Use ISO C definition.
12939 (host_charset, target_charset): Ditto.
12940 * Makefile.in (charset.o): Update dependencies.
12941 (mi-cmd-env.o): Update dependencies.
12943 2003-01-08 Andrew Cagney <cagney@redhat.com>
12945 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12948 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12950 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12951 build directories. Save edited gdb output in Mbuild.log. If a
12952 build fails, remove any final GDB executable.
12954 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12956 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12957 replacing hex constants with function names and stripping leading
12958 file name directory prefixes.
12960 2003-01-08 Andrew Cagney <cagney@redhat.com>
12962 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12965 2003-01-08 David Carlton <carlton@math.stanford.edu>
12967 * linespec.c (decode_line_1): Move code into decode_variable.
12968 (decode_variable): New function.
12970 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12972 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12974 2003-01-08 Andrew Cagney <cagney@redhat.com>
12976 * cris-tdep.c (cris_frame_init_saved_regs): Use
12977 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12979 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12980 (sh64_nofp_frame_init_saved_regs): Ditto.
12981 (sh_fp_frame_init_saved_regs): Ditto.
12982 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12983 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12984 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12985 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12987 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12989 * minsyms.c (lookup_minimal_symbol): Update comment.
12990 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12991 (lookup_minimal_symbol_solib_trampoline): Likewise.
12993 2003-01-08 Andrew Cagney <cagney@redhat.com>
12995 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12996 frame_relative_level.
12998 * alpha-tdep.c: Use get_frame_extra_info.
12999 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13000 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13001 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13002 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13004 * alpha-tdep.c: Use get_next_frame.
13005 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13006 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13007 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13008 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13009 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13010 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13011 * xstormy16-tdep.c: Ditto.
13013 2003-01-07 Andrew Cagney <cagney@redhat.com>
13015 * alpha-tdep.c: Use get_frame_base.
13016 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13017 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13018 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13019 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13020 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13021 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13022 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13023 * config/sparc/tm-sparc.h: Ditto.
13025 2003-01-07 Andrew Cagney <cagney@redhat.com>
13027 * frame.c (deprecated_get_frame_context): New function.
13028 (deprecated_set_frame_context): New function.
13029 * frame.h (deprecated_get_frame_context): Declare.
13030 (deprecated_set_frame_context): Declare.
13031 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13032 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
13034 2003-01-07 Andrew Cagney <cagney@redhat.com>
13036 * frame.c (deprecated_set_frame_next_hack): New function.
13037 (deprecated_set_frame_prev_hack): New function.
13038 * frame.h (deprecated_set_frame_next_hack): Declare.
13039 (deprecated_set_frame_prev_hack): Declare.
13040 * mcore-tdep.c (analyze_dummy_frame): Use
13041 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13042 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13044 2003-01-07 David Carlton <carlton@math.stanford.edu>
13046 * linespec.c (decode_line_1): Move code into decode_dollar.
13047 (decode_dollar): New function.
13049 2003-01-07 Andrew Cagney <cagney@redhat.com>
13051 * arm-tdep.c (arm_init_extra_frame_info): Use
13052 deprecated_update_frame_base_hack.
13053 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13054 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13055 (fix_frame_pointer): Ditto.
13056 (mn10300_analyze_prologue): Ditto.
13058 2003-01-07 Andrew Cagney <cagney@redhat.com>
13060 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13061 extra_info using frame_extra_info_zalloc.
13062 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13063 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13064 (sh64_init_extra_frame_info): Ditto.
13065 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13066 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13067 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13068 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13069 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13070 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13071 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13072 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13073 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13074 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13075 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13076 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13078 * mn10300-tdep.c (analyze_dummy_frame): Use
13079 deprecated_set_frame_extra_info_hack.
13080 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13082 2003-01-07 J. Brobecker <brobecker@gnat.com>
13084 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13085 class is not scText. These do not define "real" procedures.
13086 (parse_partial_symbols): Likewise.
13088 2003-01-06 Michael Snyder <msnyder@redhat.com>
13090 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13092 2003-01-06 Andrew Cagney <ac131313@redhat.com>
13094 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13095 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13096 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13097 deprecated_frame_xmalloc_with_cleanup.
13098 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13099 deprecated_frame_xmalloc.
13100 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13101 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13103 2003-01-06 Andrew Cagney <cagney@redhat.com>
13105 * x86-64-linux-tdep.c: Include "osabi.h".
13106 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13108 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13110 2003-01-06 Andrew Cagney <cagney@redhat.com>
13112 * MAINTAINERS (Target Instruction Set Architectures): Update
13113 arm-elf. Can be built with -Werror, has been multiarched.
13115 * value.h (unpack_long): Make buffer parameter constant.
13116 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13117 * scm-lang.h (scm_parse): Ditto.
13118 * defs.h (extract_typed_address, extract_address): Ditto.
13119 (extract_long_unsigned_integer): Ditto.
13120 * inferior.h (unsigned_pointer_to_address): Ditto.
13121 (signed_pointer_to_address): Ditto.
13122 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13123 * gdbarch.h, gdbarch.c: Regenerate.
13124 * findvar.c (extract_long_unsigned_integer): Update.
13125 (extract_address): Update.
13126 (extract_typed_address): Update.
13127 (unsigned_pointer_to_address): Update.
13128 * values.c (unpack_long): Update.
13129 (unpack_double): Update.
13130 (unpack_pointer): Update.
13131 (unpack_field_as_long): Update.
13132 * d10v-tdep.c (d10v_pointer_to_address): Update.
13133 * avr-tdep.c (avr_pointer_to_address): Update.
13134 * scm-lang.c (scm_unpack): Update.
13135 * findvar.c (signed_pointer_to_address): Update.
13137 2003-01-06 Michal Ludvig <mludvig@suse.cz>
13139 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
13140 since it is in i386-tdep.c.
13142 2003-01-06 J. Brobecker <brobecker@gnat.com>
13144 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13145 failure introduced in the previous change.
13147 2003-01-05 Michael Chastain <mec@shout.net>
13149 * README: Remove references to deleted remote-*.c files:
13150 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13151 remote-nrom.c, remote-os9k.c, remote-udi.c.
13153 2003-01-05 Mark Kettenis <kettenis@gnu.org>
13155 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13156 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13157 i386_get_longjmp_target.
13159 2003-01-05 Andrew Cagney <ac131313@redhat.com>
13161 * arm-tdep.c (prologue_cache): Change to a pointer.
13162 (_initialize_arm_tdep): Allocate prologue_cache.
13163 (check_prologue_cache): Update.
13164 (save_prologue_cache): Update.
13165 (arm_gdbarch_init): Update.
13167 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13169 * stabsread.c (update_method_name_from_physname): Call complaint()
13172 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13174 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13175 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13176 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13178 * blockframe.c: Include "gdbcmd.h" and "command.h".
13179 (backtrace_below_main): New variable.
13180 (file_frame_chain_valid, func_frame_chain_valid)
13181 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13182 (generic_func_frame_chain_valid): Remove functions.
13183 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13184 (_initialize_blockframe): New function.
13185 * Makefile.in (blockframe.o): Update dependencies.
13186 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13187 comment. Call frame_chain_valid ().
13188 * frame.h: Remove old prototypes. Add prototype for
13189 frame_chain_valid and update comments to match.
13190 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13191 Remove old comment.
13192 * gdbarch.h: Regenerated.
13193 * gdbarch.c: Regenerated.
13195 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13196 set_gdbarch_frame_chain_valid.
13197 * avr-tdep.c (avr_gdbarch_init): Likewise.
13198 * cris-tdep.c (cris_gdbarch_init): Likewise.
13199 * frv-tdep.c (frv_gdbarch_init): Likewise.
13200 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13201 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13202 (i386_nw_init_abi): Likewise.
13203 (i386_gdbarch_init): Likewise.
13204 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13205 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13206 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13207 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13208 * mips-tdep.c (mips_gdbarch_init): Likewise.
13209 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13210 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13211 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13212 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13213 * s390-tdep.c (s390_gdbarch_init): Likewise.
13214 * sh-tdep.c (sh_gdbarch_init): Likewise.
13215 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13216 * v850-tdep.c (v850_gdbarch_init): Likewise.
13217 * vax-tdep.c (vax_gdbarch_init): Likewise.
13218 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13220 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13221 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13222 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13223 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13224 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13225 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13226 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13227 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13229 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13231 * Makefile.in (acconfig_h): Remove incorrect macro.
13232 (config_h): Define.
13233 (osabi.o): Update dependencies.
13234 * configure.tgt: Set gdb_osabi based on target triplet.
13235 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13236 * configure: Regenerated.
13237 * config.in: Regenerated.
13238 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13239 (GDB_OSABI_DEFAULT): Define if not already defined.
13240 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13241 (set_osabi_string): New variables.
13242 (gdbarch_register_osabi): Add new OS ABI to
13243 gdb_osabi_available_names.
13244 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13245 (set_osabi, show_osabi): New functions.
13246 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13248 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13250 * arch-utils.c (gdbarch_info_init): Set osabi to
13251 GDB_OSABI_UNINITIALIZED.
13252 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13253 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13254 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13255 * gdbarch.c: Regenerated.
13256 * gdbarch.h: Regenerated.
13257 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13259 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13260 * osabi.h (enum gdb_osabi): Move to defs.h.
13261 (gdbarch_init_osabi): Update prototype.
13262 * defs.h (enum gdb_osabi): Moved here.
13263 * Makefile.in: Update dependencies.
13265 * alpha-tdep.h: Don't include "osabi.h".
13266 (struct gdbarch_tdep): Remove osabi member.
13267 * alpha-tdep.c: Include "osabi.h".
13268 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13269 iterate over arches. Update call to gdbarch_init_osabi.
13270 (alpha_dump_tdep): Don't dump osabi.
13271 * alpha-linux-tdep.c: Include "osabi.h".
13272 * alpha-osf1-tdep.c: Include "osabi.h".
13273 * alphafbsd-tdep.c: Include "osabi.h".
13274 * alphanbsd-tdep.c: Include "osabi.h".
13276 * arm-tdep.h: Don't include "osabi.h".
13277 (struct gdbarch_tdep): Remove osabi member.
13278 * arm-tdep.c: Include "osabi.h".
13279 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13280 iterate over arches. Update call to gdbarch_init_osabi.
13281 (arm_dump_tdep): Don't dump osabi.
13282 * arm-linux-tdep.c: Include "osabi.h".
13283 * armnbsd-tdep.c: Include "osabi.h".
13285 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13286 Update call to gdbarch_init_osabi.
13288 * i386-tdep.h: Don't include "osabi.h".
13289 (struct gdbarch_tdep): Remove osabi member.
13290 * i386-tdep.c: Include "osabi.h".
13291 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13292 iterate over arches. Update call to gdbarch_init_osabi.
13293 (i386_dump_tdep): Don't dump osabi.
13294 * i386-linux-tdep.c: Include "osabi.h".
13295 * i386-sol2-tdep.c: Include "osabi.h".
13296 * i386bsd-tdep.c: Include "osabi.h".
13297 * i386gnu-tdep.c: Include "osabi.h".
13298 * i386ly-tdep.c: Include "osabi.h".
13299 * i386nbsd-tdep.c: Include "osabi.h".
13300 * i386obsd-tdep.c: Include "osabi.h".
13302 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13303 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13304 check osabi when iterating over arches. Update call to
13305 gdbarch_init_osabi.
13306 (mips_dump_tdep): Don't dump osabi.
13308 * ns32k-tdep.h: Don't include "osabi.h".
13309 (struct gdbarch_tdep): Remove.
13310 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13311 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13312 allocate tdep. Update call to gdbarch_init_osabi.
13313 (ns32k_dump_tdep): Remove.
13314 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13315 * ns32knbsd-tdep.c: Include "osabi.h".
13317 * ppc-tdep.h: Don't include "osabi.h".
13318 (struct gdbarch_tdep): Remove osabi member.
13319 * rs6000-tdep.c: Include "osabi.h".
13320 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13321 osabi when iterating over arches. Update call to
13322 gdbarch_init_osabi.
13323 (rs6000_dump_tdep): Don't dump osabi.
13324 * ppc-linux-tdep.c: Include "osabi.h".
13325 * ppcnbsd-tdep.c: Include "osabi.h".
13327 * sh-tdep.h: Don't include "osabi.h".
13328 (struct gdbarch_tdep): Remove osabi member.
13329 * sh-tdep.c: Include "osabi.h".
13330 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13331 iterate over arches. Update call to gdbarch_init_osabi.
13332 (sh_dump_tdep): Don't dump osabi.
13333 * shnbsd-tdep.c: Include "osabi.h".
13335 * sparc-tdep.c: Include "osabi.h".
13336 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13337 iterate over arches. Update call to gdbarch_init_osabi.
13338 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13341 * vax-tdep.h: Don't include "osabi.h".
13342 (struct gdbarch_tdep): Remove.
13343 * vax-tdep.c: Include "osabi.h".
13344 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13345 iterate over arches. Don't allocate tdep. Update call
13346 to gdbarch_init_osabi.
13347 (vax_dump_tdep): Remove.
13348 (_initialize_vax_tdep): Update call to gdbarch_register.
13350 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13352 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13354 (breakpoint_re_set_one): Don't fetch the value for a disabled
13357 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13359 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13360 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13361 (COERCE_FLOAT_TO_DOUBLE): Remove.
13362 * gdbarch.c: Regenerate.
13363 * gdbarch.h: Regenerate.
13364 * Makefile.in: Remove value_h from gdbarch_h.
13365 * valops.c (coerce_float_to_double): New variable.
13366 (default_coerce_float_to_double): Remove.
13367 (standard_coerce_float_to_double): Remove.
13368 (value_arg_coerce): Use coerce_float_to_double.
13369 (_initialize_valops): Add "set coerce-float-to-double".
13370 * value.h (default_coerce_float_to_double): Remove prototype.
13371 (standard_coerce_float_to_double): Remove prototype.
13373 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13375 * mdebugread.c (parse_symbol): Likewise.
13376 * stabsread.c (define_symbol): Mark all functions as prototyped.
13378 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13379 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13380 set_gdbarch_coerce_float_to_double.
13381 * arm-tdep.c (arm_gdbarch_init): Likewise.
13382 * frv-tdep.c (frv_gdbarch_init): Likewise.
13383 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13384 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13385 * mips-tdep.c (mips_gdbarch_init): Likewise.
13386 (mips_coerce_float_to_double): Remove.
13387 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13388 (rs6000_coerce_float_to_double): Remove.
13389 * s390-tdep.c (s390_gdbarch_init): Likewise.
13390 * sh-tdep.c (sh_gdbarch_init): Likewise.
13391 (sh_coerce_float_to_double): Remove.
13392 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13393 (sparc_coerce_float_to_double): Remove.
13394 * v850-tdep.c (v850_gdbarch_init): Likewise.
13395 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13396 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13397 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13398 (hppa_coerce_float_to_double): Remove prototype.
13399 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13401 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13403 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13405 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13407 Suggested by Stewart Brown <sb24@avaya.com>:
13408 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13409 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13410 (c_type_print_varspec_suffix): Likewise.
13412 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13414 * configure.in: Don't set and AC_SUBST SUBDIRS.
13415 * configure: Regenerated.
13417 * configure.in: Remove code dealing with shared libraries.
13418 * Makefile.in: Remove HLDFLAGS and HLDENV.
13419 * configure: Regenerated.
13421 2003-01-04 Andrew Cagney <ac131313@redhat.com>
13423 * frame.c (deprecated_frame_xmalloc): New function.
13424 (deprecated_set_frame_saved_regs_hack): New function.
13425 (deprecated_set_frame_extra_info_hack): New function.
13426 * frame.h (deprecated_frame_xmalloc): Declare.
13427 (deprecated_set_frame_saved_regs_hack): Declare.
13428 (deprecated_set_frame_extra_info_hack): Declare.
13430 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13432 * configure.in: Move code that provides the --enable-gdbtk option
13433 right after the code that handles the --enable-tui option, and
13434 polish it somewhat.
13435 * configure: Regenerated.
13437 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13438 AC_CHECK_FUNCS and remove the old check for pread64.
13439 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13440 * acconfig.h (_GNU_SOURCE): Add.
13441 (HAVE_PREAD64): Remove.
13442 * configure, aclocal.m4, config.in: Regenerated.
13444 2003-01-03 Andrew Cagney <ac131313@redhat.com>
13446 * alpha-tdep.c: Use get_frame_saved_regs.
13447 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13448 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13449 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13450 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13451 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13453 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13455 * configure.in: Remove all use of the SUBDIRS variable; add
13456 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13457 code providing the --enable-multi-ice option, and move it right in
13458 front of the code that checks whether gdbserver is supported.
13460 * configure: Regenerated.
13461 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13464 2003-01-03 Andrew Cagney <cagney@redhat.com>
13466 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13467 * avr-tdep.c, cris-tdep.c: Ditto.
13468 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13469 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13471 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13473 * configure.in: Remove --enable-netrom option.
13474 * configure: Regenerated.
13476 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13478 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13479 declaration for `struct re_pattern_buffer' instead.
13480 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13482 2003-01-03 J. Brobecker <brobecker@gnat.com>
13484 * mdebugread.c (parse_symbol): Count until the stEnd matching
13485 the structure name.
13487 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13489 * configure.in: Remove --with-cpu option.
13490 subscripts. Remove evil changequotes here.
13491 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13492 * config.in, configure: Regenerated.
13494 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13495 * configure.in: Cleanup section that sources GDB and BFD configure
13496 subscripts. Remove evil changequotes here.
13497 * config.in, configure: Regenerated.
13499 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13501 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13502 frame accessor methods.
13503 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13504 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13505 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13506 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13507 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13508 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13509 * z8k-tdep.c: Ditto.
13511 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13513 * configure.in: Remove UI_OUT configuration code.
13514 * ada-lang.c: Update assuming UI_OUT is always true.
13515 * Makefile.in (UIOUT_CFLAGS): Remove.
13516 * configure: Regenerated.
13517 * TODO: Remove blurb about elimination of -DUI_OUT.
13519 * configure.in: Move code that provides the --enable-gdbcli,
13520 --enable-gdbmi options right before the code that handles the
13521 --enable-tui option. Polish a bit.
13522 * configure: Regenerated.
13524 * configure.in: Rewrite check for GNU regex and the
13525 --without-included regex option, and move it into the "Checks for
13526 library functions" section. This makes us use the system regex
13527 again by default on systems with version 2 of the GNU C library.
13528 This was apparently broken.
13529 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13530 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13531 * config.in, configure: Regenerated.
13533 * configure.in: Move code that provides the --enable-tui option
13534 before the "Checks for libraries" section. Polish the code
13535 somewhat and set need_curses to yes if we build the TUI. Rewrite
13536 code that looks for a library providing termcap functionality to
13537 match more closely what's done in the Readline library, and move
13538 it into to the "Checks for libraries" section.
13539 * configure: Regenerated.
13540 * Makefile.in (TERMCAP): Remove variable.
13541 * config/i386/go32.mh (TERMCAP): Remove variable.
13543 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13545 * MAINTAINERS: Mention gdb_mbuild.sh.
13546 * gdb_mbuild.sh: Rewrite.
13548 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13550 * configure.in: Fix typo in last change.
13551 * config.in, configure: Regenerated.
13553 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13555 * valarith.c (value_binop): Delete obsolete code and comments.
13556 * configure.host: Ditto.
13557 * buildsym.h (make_blockvector): Ditto.
13558 * buildsym.c (make_blockvector): Ditto.
13559 * defs.h (enum language): Ditto.
13560 (chill_demangle): Ditto.
13561 * elfread.c (elf_symtab_read): Ditto.
13562 * dwarfread.c (CHILL_PRODUCER): Ditto.
13563 (set_cu_language): Ditto.
13564 (handle_producer): Ditto.
13565 * expprint.c (print_subexp): Ditto.
13566 * gdbtypes.c (chill_varying_type): Ditto.
13567 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13568 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13569 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13570 (chill_varying_type): Ditto.
13571 * language.h (_LANG_chill): Ditto.
13572 * language.c (binop_result_type, integral_type): Ditto.
13573 (character_type, string_type, structured_type): Ditto.
13574 (lang_bool_type, binop_type_check): Ditto.
13575 * stabsread.h (os9k_stabs): Ditto.
13576 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13577 (define_symbol, read_type, read_struct_fields): Ditto.
13578 (read_array_type, read_enum_type, read_huge_number): Ditto.
13579 (read_range_type, start_stabs): Ditto.
13580 * symfile.c (init_filename_language_table): Ditto.
13581 (add_psymbol_with_dem_name_to_list): Ditto.
13582 * symtab.c (symbol_init_language_specific): Ditto.
13583 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13584 * symtab.h (struct general_symbol_info): Ditto.
13585 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13586 * typeprint.c (typedef_print): Ditto.
13587 * utils.c (fprintf_symbol_filtered): Ditto.
13588 * valops.c (value_cast, search_struct_field, value_slice): Delete
13590 (varying_to_slice): Delete function.
13591 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13592 (varying_to_slice): Delete declaration.
13593 * MAINTAINERS: Update.
13595 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13597 * configure.in: Reorganize "Checks for library functions section"
13598 a bit. Remove check for `btowc' and `isascii' functions.
13599 * configure: Regenerated.
13601 * acconfig.h (_MSE_INT_H): Remove.
13602 * configure.in: Create "Checks for header files" section, and move
13603 appropriate tests there. Don't check for objlist.h, wchar.h,
13604 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13605 misdetection fix. Also add "Checks for types", "Checks for
13606 compiler characteristics" and "Checks for library functions"
13608 * config.in, configure: Regenerated.
13610 * configure.in: Create "Checks for programs" section, and move
13611 appropriate tests there.
13613 2003-01-01 Mark Kettenis <kettenis@gnu.org>
13615 * configure.in: Create "Checks for libraries" section, and move
13616 appropriate tests there. Cleanup check for wctype in libw. Use
13617 AC_SEARCH_LIBS to see whether we need libsocket.
13618 * configure: Regenerated.
13620 For older changes see ChangeLog-2002
13626 version-control: never