* i386-linux-nat.c (fetch_core_registers): Remove.
[binutils-gdb.git] / gdb / ChangeLog
1 2003-10-31 Mark Kettenis <kettenis@gnu.org>
2
3 * i386-linux-nat.c (fetch_core_registers): Remove.
4 (linux_elf_core_fns): Remove.
5 (_initialize_i386_linux_nat): Remove.
6
7 2003-10-31 Andrew Cagney <cagney@redhat.com>
8
9 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
10 "exec.h".
11 (exec_entry_point): New function.
12 (enable_break): Create a "tmp_bfd_target", use that and
13 entry_point_address when computing the relocation offset.
14 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
15 * Makefile.in (solib-svr4.o): Update dependencies.
16
17 2003-10-31 Andrew Cagney <cagney@redhat.com>
18
19 * defs.h (XZALLOC): Define.
20 * target.h (struct target_ops): Add "to_data";
21 * bfd-target.h, bfd-target.c: New files.
22 * Makefile.in (SFILES): Add "bfd-target.c".
23 (COMMON_OBS): Add "bfd-target.o".
24 (bfd-target.o): Specify dependencies.
25 (bfd_target_h): Define.
26 * defs.h (XZALLOC): Define.
27
28 2003-10-31 Andrew Cagney <cagney@redhat.com>
29
30 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
31 adjust_breakpoint_address.
32 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
33 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
34 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
35 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
36
37 2003-10-31 Andrew Cagney <cagney@redhat.com>
38
39 * target.h (struct target_ops): Replace "to_read_partial" and
40 "to_write_partial" with "to_xfer_partial". Update comments.
41 * target.c (debug_to_write_partial): Delete function.
42 (debug_to_xfer_partial): Replace debug_to_read_partial.
43 (add_target, update_current_target, setup_target_debug): Set
44 "to_xfer_partial" instead of "to_read_partial" and
45 "to_write_partial".
46 (default_xfer_partial): Replace "default_write_partial".
47 (default_read_partial): Delete.
48 (target_read_partial, target_write_partial): Call
49 "to_xfer_partial".
50 * remote.c (init_remote_ops): Set "to_xfer_partial".
51 (init_remote_async_ops): Ditto.
52 (remote_xfer_partial): Replace "remote_read_partial".
53
54 2003-10-31 Mark Kettenis <kettenis@gnu.org>
55
56 * i386-tdep.c (i386_supply_fpregset): Support floating-point
57 registers in `fxsave' format.
58 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
59
60 2003-10-30 Mark Kettenis <kettenis@gnu.org>
61
62 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
63 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
64 TDEP->gregset_num_regs and tdep->sizeof_gregset.
65
66 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
67 specify size of array.
68 (i386_linux_init_abi): Remove initialization of
69 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
70 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
71
72 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
73 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
74 core-regset.o.
75
76 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
77 the ELF header.
78
79 2003-10-29 Mark Kettenis <kettenis@gnu.org>
80
81 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
82 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
83 core-regset.o.
84
85 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
86
87 * corelow.c: Include "arch-utils.h", "regset.h" and
88 "gdb_assert.h".
89 (core_gdbarch): New variable.
90 (sniff_core_bfd): Don't sniff if we have support for register sets
91 in CORE_GDBARCH.
92 (core_close): Reset CORE_GDBARCH.
93 (core_open): Initialize CORE_GDBARCH.
94 (get_core_register_section): Use register sets if they are
95 supported by CORE_GDBARCH.
96 (get_core_registers): Don't print error message if we have support
97 for register sets in CORE_GDBARCH.
98
99 2003-10-29 Andrew Cagney <cagney@redhat.com>
100
101 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
102 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
103
104 2003-10-29 Mark Kettenis <kettenis@gnu.org>
105
106 * objfiles.h (clear_objfile_data): New prototype.
107 * objfiles.c (clear_objfile_data): New function.
108 * symfile.c (reread_symbols): Clear per-objfile data.
109
110 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
111
112 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
113 printf_unfiltered instead of printf_filtered for output messages.
114 (add_symbol_file_command): Ditto.
115 (reread_symbols): Ditto.
116 (overlay_auto_command): Ditto.
117 (overlay_manual_command): Ditto.
118 (overlay_off_command): Ditto.
119
120 2003-10-27 Mark Kettenis <kettenis@gnu.org>
121
122 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
123 (gdbarch_from_bfd): New function.
124 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
125 deprecated_select_gdbarch_hack.
126 * arch-utils.h (gdbarch_from_bfd): New prototype.
127
128 2003-10-27 Andrew Cagney <cagney@redhat.com>
129
130 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
131 arch_info. Use warning instead of fprintf_filtered. Do not use
132 deprecated bfd_printable_arch_mach.
133
134 2003-10-26 Kevin Buettner <kevinb@redhat.com>
135
136 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
137 Delete.
138 (frv_register_type): Rename from frv_register_virtual_type. Add
139 ``struct gdbarch *'' parameter.
140 (frv_gdbarch_init): Delete calls to the following functions:
141 set_gdbarch_deprecated_size(),
142 set_gdbarch_deprecated_register_bytes(),
143 set_gdbarch_deprecated_register_raw_size(),
144 set_gdbarch_deprecated_max_register_raw_size(),
145 set_gdbarch_deprecated_register_virtual_size(),
146 set_gdbarch_deprecated_max_register_virtual_size(),
147 set_gdbarch_deprecated_register_virtual_size(),
148 set_gdbarch_deprecated_register_virtual_type().
149 Add call to function set_gdbarch_register_type().
150
151 2003-10-26 Mark Kettenis <kettenis@gnu.org>
152
153 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
154 FDOFF_REGNUM): Remove defines.
155 * win32-nat.c (do_child_fetch_inferior_registers): Include
156 "i387-tdep.h".
157 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
158 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
159 undefine I387_ST0_REGNUM.
160
161 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
162 * x86-64-tdep.c (x86_64_store_return_value): Use
163 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
164
165 Change register numbers to enumartion values.
166 * i386-tdep.h (enum i386_regnum): New.
167 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
168 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
169 I386_ST0_REGNUM): Remove defines.
170 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
171 I386_EDI_REGNUM): Remove defines.
172
173 2003-10-24 Andrew Cagney <cagney@redhat.com>
174
175 * target.c: Include "gdbcore.h".
176 (get_target_memory, get_target_memory_unsigned): New functions.
177 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
178 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
179 Use get_target_memory_unsigned.
180 * Makefile.in (target.o): Update dependencies.
181
182 2003-10-24 Andrew Cagney <cagney@redhat.com>
183
184 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
185 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
186 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
187 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
188 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
189
190 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
191 (can_run_code_for): Use the OO term "singleton".
192
193 2003-10-23 Andrew Cagney <cagney@redhat.com>
194
195 * Makefile.in (stack.o): Add $(regcache_h).
196 * stack.c: Include "regcache.h"
197 (return_command): Rewrite. Use get_frame_id and
198 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
199 about unhandled return-values.
200 * value.h (set_return_value): Delete declaration.
201 * values.c (set_return_value): Delete function.
202
203 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
204
205 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
206 (pseudo_regs): Add comment regarding register stack registers.
207 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
208 (floatformat_valid): New static routine.
209 (floatformat_ia64_ext): Add name field and set up is_valid routine
210 to floatformat_valid().
211 (examine_prologue): For the previous cfm, use
212 frame_unwind_register()
213 if the cfm is not stored in a register-stack register. Save the
214 previous cfm value in the prev_cfm field. Add debug output.
215 (ia64_frame_this_id): Use frame_id_build_special() to also register
216 the bsp. Add debug output.
217 (ia64_sigtramp_frame_this_id): Ditto.
218 (ia64_frame_prev_register): Look at cache saved_regs for a few more
219 registers and also add some checks for framelessness before accepting
220 current register values for fields such as return address. For cfm,
221 use the cached prev_cfm field if available. Add comment to explain
222 PSR logic. Add debug output.
223 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
224 as part of initialization.
225 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
226 calculated. Cache the bsp and cfm values.
227 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
228 instead of using ia64_frame_prev_register() which doesn't expect most
229 registers to be saved. The saved values for bsp and sp
230 can be taken from the cache. Add debug output.
231 (ia64_push_dummy_call): Use frame_id_build_special() to also register
232 the bsp.
233
234 2003-10-23 Jim Blandy <jimb@redhat.com>
235
236 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
237 architecture the current arch can run code for --- but not if it's
238 a superset.
239 (can_run_code_for): New function.
240
241 2003-10-22 James E Wilson <wilson@specifixinc.com>
242
243 * MAINTAINERS: Move myself from paper trail section back to write
244 after approval section.
245
246 2003-10-22 Andrew Cagney <cagney@redhat.com>
247
248 * exec.h: New file.
249 * win32-nat.c: Include "exec.h".
250 * solib.c: Include "exec.h".
251 * target.h (build_section_table): Delete declaration.
252 * somsolib.c: Include "exec.h".
253 (exec_ops): Delete extern declaration.
254 * rs6000-nat.c: Update copyright. Include "exec.h".
255 (exec_ops): Delete extern declaration.
256 * pa64solib.c: Update copyright. Include "exec.h".
257 (exec_ops): Delete extern declaration.
258 * exec.c: Update copyright. Include "exec.h".
259 * corelow.c: Update dependencies. Include "exec.h".
260 * Makefile.in (exec_h): Define.
261 (exec.o, somsolib.o): Update dependencies.
262 (pa64solib.o, corelow.o): Update dependencies.
263
264 2003-10-22 Andrew Cagney <cagney@redhat.com>
265
266 * target.c: Include "gdb_assert.h" (target_read): Call
267 "target_read_partial", not "target_write_partial".
268 (default_read_partial, default_write_partial): New function.
269 (target_read_partial, target_write_partial): Simplify, assume that
270 there is always a read/write method.
271 (update_current_target, add_target): Always set "to_read_partial"
272 and "to_write_partial".
273 (target_write, target_read): Fail on a zero byte transfer.
274 * Makefile.in (target.o): Update dependencies.
275 * target.h: Update copyright date.
276 (target_object): Fix typo.
277
278 2003-10-22 Andrew Cagney <cagney@redhat.com>
279
280 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
281 multi-arch method, add "targ" parameter.
282 (struct target_ops): Declare.
283 * gdbarch.h, gdbarch.c: Re-generate.
284 * Makefile.in (c-valprint.o): Update dependencies.
285 * arch-utils.h: Update copyright.
286 (convert_from_func_ptr_addr_identity): Declare.
287 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
288 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
289 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
290 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
291 * infcall.c (find_function_addr, call_function_by_hand): Update.
292 * c-valprint.c: Include "target.h".
293 (print_function_pointer_address): Update.
294
295 2003-10-22 Andrew Cagney <cagney@redhat.com>
296
297 * target.c (target_close): New function.
298 (debug_to_close): Use "target_close".
299 (push_target): Use "target_close".
300 (unpush_target): Use "target_close".
301 (pop_target): Use "target_close".
302 * target.h (struct target_ops): Add "to_xclose".
303 (target_open): Delete macro. Move comment to "to_open".
304 (target_close): Replace macro with function that takes a target.
305 * top.c (quit_target): Pass "current_target" to "target_close".
306
307 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
308
309 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
310 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
311 * symtab.h (lookup_minimal_symbol_text): Update.
312 * breakpoint.c (create_overlay_event_breakpoint,
313 create_longjmp_breakpoint): Update callers.
314 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
315 * symtab.c (find_pc_sect_line): Ditto.
316
317 2003-10-21 Andrew Cagney <cagney@redhat.com>
318
319 * target.c (errno): Delete extern declaration.
320
321 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
322
323 * ia64-tdep.c: Change all occurrences of
324 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
325 (ia64_frame_prev_register): Minor whitespace change.
326
327 2003-10-20 Michael Chastain <mec@shout.net>
328
329 * config/djgpp/fnchange.lst: Add lines for:
330 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
331 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
332 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
333 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
334 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
335 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
336 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
337
338 2003-10-20 Andrew Cagney <cagney@redhat.com>
339
340 * values.c (register_value_being_returned): Update comments. Use
341 "gdbarch_return_value" when available.
342 (using_struct_return): Ditto.
343 (set_return_value): Ditto. Use "gdbarch_return_value" when
344 available.. Print a warning, and not an error, when an unhandled
345 return type is encountered.
346 * infcmd.c: Include "gdb_assert.h".
347 (print_return_value): When gdbarch_return_value_p, and using
348 struct return, assume that the value is not available.
349 * defs.h (return_value_convention): Define.
350 * gdbarch.sh (gdbarch_return_value): New predicate method.
351 * gdbarch.h, gdbarch.c: Re-generate
352 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
353
354 2003-10-20 Andrew Cagney <cagney@redhat.com>
355
356 * symtab.c: Replace "struct sec" with "struct bfd_section".
357 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
358
359 2003-10-19 Michael Chastain <mec@shout.net>
360
361 * config/djgpp/fnchange.lst: Add lines for:
362 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
363 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
364 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
365
366 2003-10-19 Mark Kettenis <kettenis@gnu.org>
367
368 * amd64fbsd-nat.c (fetch_inferior_registers,
369 store_inferior_registers): Remove functions.
370 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
371
372 2003-10-18 Mark Kettenis <kettenis@gnu.org>
373
374 Add NetBSD/amd64 native configuration:
375 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
376 * amd64nbsd-tdep.c: New file.
377 * amd64nbsd-nat.c: New file.
378 * amd64bsd-nat.c: New file.
379 * config/i386/nbsd64.mh: New file.
380 * config/i386/nbsd64.mt: New file.
381 * configure.host: Add x86_64-*-netbsd*.
382 * configure.tgt: Add x86_64-*-netbsd*.
383 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
384 New targets.
385 * NEWS (New native configurations): Mention NetBSD/amd64.
386
387 2003-10-17 Michael Chastain <mec@shout.net>
388
389 * config/djgpp/fnchange.lst: Remove dead lines for:
390 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
391 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
392 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
393 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
394 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
395 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
396 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
397 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
398 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
399 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
400 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
401 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
402 gdb/config/sparc/tm-sparclite.h,
403 gdb/gdbtk/generic/ChangeLog-2001,
404 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
405 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
406 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
407 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
408 gdb/testsuite/gdb.mi/mi0-var-block.exp,
409 gdb/testsuite/gdb.mi/mi0-var-child.exp,
410 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
411 gdb/testsuite/gdb.mi/mi0-var-display.exp,
412 itcl/iwidgets3.0.0/demos/extfileselectionbox,
413 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
414 itcl/iwidgets3.0.0/demos/fileselectionbox,
415 itcl/iwidgets3.0.0/demos/fileselectiondialog,
416 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
417 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
418 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
419 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
420 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
421 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
422 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
423 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
424 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
425 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
426 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
427 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
428 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
429 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
430 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
431 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
432 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
433 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
434 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
435 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
436 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
437 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
438 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
439 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
440 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
441 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
442 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
443 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
444 itcl/iwidgets3.0.0/demos/html/shell.n.html,
445 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
446 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
447 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
448 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
449 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
450 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
451 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
452 itcl/iwidgets3.0.0/demos/scrolledcanvas,
453 itcl/iwidgets3.0.0/demos/scrolledframe,
454 itcl/iwidgets3.0.0/demos/scrolledhtml,
455 itcl/iwidgets3.0.0/demos/scrolledlistbox,
456 itcl/iwidgets3.0.0/demos/scrolledtext,
457 itcl/iwidgets3.0.0/demos/selectionbox,
458 itcl/iwidgets3.0.0/demos/selectiondialog,
459 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
460 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
461 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
462 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
463 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
464 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
465 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
466 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
467 itcl/iwidgets3.0.0/doc/scrolledframe.n,
468 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
469 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
470 itcl/iwidgets3.0.0/doc/scrolledtext.n,
471 itcl/iwidgets3.0.0/doc/selectionbox.n,
472 itcl/iwidgets3.0.0/doc/selectiondialog.n,
473 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
474 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
475 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
476 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
477 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
478 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
479 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
480 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
481 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
482 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
483 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
484 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
485 itcl/iwidgets3.0.0/generic/selectionbox.itk,
486 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
487 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
488 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
489 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
490 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
491 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
492 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
493 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
494 itcl/iwidgets3.0.0/tests/scrolledframe.test,
495 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
496 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
497 itcl/iwidgets3.0.0/tests/scrolledtext.test,
498 itcl/iwidgets3.0.0/tests/selectionbox.test,
499 itcl/iwidgets3.0.0/tests/selectiondialog.test,
500 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
501 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
502 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
503 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
504 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
505 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
506 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
507 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
508 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
509 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
510 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
511 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
512 tk/mac/tkMacProjects.sit.hqx.
513
514 2003-10-17 Andrew Cagney <cagney@redhat.com>
515
516 * target.c (target_section_by_addr): New function.
517 (do_xfer_memory): Use "target_section_by_addr".
518 * target.h (target_section_by_addr): Declare.
519
520 * target.h (struct target_ops): Add "to_read_partial" and
521 "to_write_partial", delete "to_query".
522 (target_read_partial, target_write_partial): Declare.
523 (target_read, target_write): Declare.
524 (target_query): Delete macro.
525 * target.c (target_read_partial): New function.
526 (target_write_partial, target_read, target_write): New function.
527 (update_current_target): Delete inheritance of "to_query". Add
528 comments about "to_read_partial" and "to_write_partial".
529 (debug_to_partial_read, debug_to_partial_write): New functions.
530 (debug_to_query): Delete function.
531 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
532 instead of "to_query".
533 * remote.c (remote_read_partial): Replace "remote_query".
534 (init_remote_ops): Set "to_read_partial" instead of "to_query".
535 (init_remote_async_ops): Ditto.
536 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
537 "target_read_partial" instead of "target_query".
538 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
539 Use "target_read_partial" instead of "target_query".
540
541 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
542
543 * frame.h (struct frame_id): Add new field: special_addr.
544 (frame_id_build_special): New prototype.
545 * frame.c (frame_id_build_special): New function.
546 (frame_id_build): Change to call frame_id_build_special().
547 (frame_id_eq): Change to also test special_addr field.
548 (frame_id_inner): Update comment.
549
550 2003-10-17 Andrew Cagney <cagney@redhat.com>
551
552 * target.c (update_current_target): Perform the target cleanup.
553 Put the target stack beneath the squashed "current_target".
554 (add_target): Delete disabled call to "cleanup_target".
555 (cleanup_target): Delete function.
556 (push_target, unpush_target): Do not call "cleanup_target".
557
558 2003-10-17 Andrew Cagney <cagney@redhat.com>
559
560 * target.c (target_stack): Change to a static target_ops.
561 (update_current_target): Walk the "struct target_ops" stack.
562 (pop_target, do_xfer_memory, target_info): Ditto.
563 (find_target_beneath): Ditto.
564 (push_target): Rewrite to use the "struct target_ops" stack.
565 (unpush_target): Ditto.
566 * target.h (struct target_stack_item): Delete definition.
567 (target_stack): Delete declaration.
568 (struct target_ops): Add field "beneath".
569
570 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
571
572 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
573 declaration.
574 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
575 (h8300_examine_prologue): Use h8300_normal_mode flag
576 (h8300_gdbarch_init): Set architecture info for normal mode
577
578 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
579
580 * remote.c (remote_protocol_vcont): New variable.
581 (set_remote_protocol_vcont_packet_cmd): New function.
582 (show_remote_protocol_vcont_packet_cmd): New function.
583 (init_all_packet_configs): Handle remote_protocol_vcont.
584 (remote_vcont_probe): New function.
585 (remote_vcont_resume): New function.
586 (remote_resume): Use it.
587 (remote_async_resume): Call remote_resume.
588 (_initialize_remote): Add verbose-resume packet commands.
589
590 2003-10-16 Andrew Cagney <cagney@redhat.com>
591
592 * infrun.c (handle_inferior_event): Add comment about
593 "frame_id_inner" being too weak.
594
595 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
596
597 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
598 second parameter, which is always null. Remove
599 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
600 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
601 accordingly.
602 * somsolib.c (som_solib_create_inferior_hook,
603 som_solib_desire_dynamic_linker_symbols): Update callers.
604 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
605
606 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
607
608 * remote-m32r-sdi.c : New file, interface to m32r on-chip
609 debug interface, SDI (Scalable Debug Interface).
610 * NEWS: Mention m32r SDI protocol was supported.
611 * Makefile.in (remote-m32r-sdi.o): Add build rule.
612 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
613
614 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
615
616 * ia64-linux-tdep.c: Include gdbcore.h.
617 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
618 (ia64_linux_sigcontext_register_addr): Find the address of the
619 sigcontext area stored in the sigframe instead of using
620 a magic offset constant.
621
622 2003-10-15 Andrew Cagney <cagney@redhat.com>
623
624 * remote.c (remote_search): Delete function.
625 * target.h (target_search): Delete disabled macro.
626 (struct target_ops): Delete disabled field "to_search".
627
628 2003-10-14 Kevin Buettner <kevinb@redhat.com>
629
630 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
631 instead of deprecated_inside_entry_file().
632
633 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
634
635 * sh-tdep.c: Fix copy/paste hangover in comment.
636 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
637 mode.
638 (sh3e_sh4_extract_return_value): Ditto.
639
640 2003-10-13 Richard Henderson <rth@redhat.com>
641
642 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
643 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
644 match c_val_print a bit closer.
645
646 2003-10-13 Kevin Buettner <kevinb@redhat.com>
647
648 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
649 (frv_gdbarch_adjust_breakpoint_address): New function.
650 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
651 method.
652
653 2003-10-13 Kevin Buettner <kevinb@redhat.com>
654
655 * breakpoint.h (struct breakpoint): Add new member
656 ``requested_address''.
657 * breakpoint.c (breakpoint_adjustment_warning)
658 (adjust_breakpoint_address): New static functions.
659 (print_it_typical): Issue warning if breakpoint's address is different
660 from its requested address.
661 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
662 (breakpoint_re_set_one): Set breakpoint's
663 ``requested_address'' field. Set ``address'' field to the
664 result of calling adjust_breakpoint_address() on the requested
665 address.
666
667 2003-10-13 Kevin Buettner <kevinb@redhat.com>
668
669 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
670 * gdbarch.h, gdbarch.c: Regenerate.
671
672 2003-10-11 Mark Kettenis <kettenis@gnu.org>
673
674 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
675 TDEP->sc_num_regs.
676
677 * i386fbsd-tdep.c: New file.
678 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
679 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
680 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
681 i386bsd-tdep.c.
682 (_initialize_i386fbsd_tdep): New function.
683 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
684 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
685 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
686 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
687 TDEP->sc_num_regs.
688 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
689 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
690 to initialize TDEP->sc_num_regs.
691 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
692 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
693 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
694 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
695 FreeBSD ELF OS/ABI's here.
696 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
697 (i386fbsd-tdep.o): New target.
698 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
699 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
700
701 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
702 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
703 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
704 in initialization of TDEP->sc_num_regs.
705
706 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
707 (x86_64_init_abi): Initialize regset_from_core_section if
708 appropriate.
709
710 * i386-tdep.c (i386_regset_from_core_section): New function.
711 (i386_gdbarch_init): Initialize regset_from_core_section if
712 appropriate.
713 * i386-tdep.h (i386_regset_from_core_section): New declaration.
714
715 * i386-tdep.h (struct regset): Declare opaque.
716
717 * gdbarch.sh (regset_from_core_section): New method.
718 (struct regset): Declare opaque.
719 * gdbarch.c, gdbarch.h: Regenerated.
720
721 2003-10-11 Alan Modra <amodra@bigpond.net.au>
722
723 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
724 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
725 Correct test for pc within section.
726
727 2003-10-11 Mark Kettenis <kettenis@gnu.org>
728
729 * gdbarch.sh: Remove trailing whitepsace from comments.
730
731 2003-10-08 Roland McGrath <roland@redhat.com>
732
733 * gcore.c (make_mem_sec): Function removed, folded into ...
734 (gcore_create_callback): ... here. To omit a section, clear its
735 SEC_LOAD bit rather than zeroing its size.
736 Omit read-only sections only if they correspond to a known disk file.
737 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
738
739 2003-10-10 Michael Snyder <msnyder@redhat.com>
740
741 * d10v-tdep.c: Fix typo in comment.
742
743 2003-10-10 Andrew Cagney <cagney@redhat.com>
744
745 * rs6000-tdep.c (e500_store_return_value): Delete function.
746 (e500_extract_return_value): Delete function.
747 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
748 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
749 "ppc_sysv_abi_restore_return_value" where applicable.
750 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
751 (ppc_sysv_abi_extract_return_value): Declare.
752 (ppc_sysv_abi_broken_store_return_value): Declare.
753 (ppc_sysv_abi_broken_extract_return_value): Declare.
754 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
755 * ppc-sysv-tdep.c (return_value_convention): Move definition to
756 start of file.
757 (do_ppc_sysv_return_value): New function.
758 (ppc_sysv_abi_extract_return_value): New function.
759 (ppc_sysv_abi_store_return_value): New function.
760 (ppc_sysv_abi_broken_extract_return_value): New function.
761 (ppc_sysv_abi_broken_store_return_value): New function.
762 (ppc_sysv_abi_use_struct_convention): Call
763 do_ppc_sysv_return_value.
764
765 2003-10-10 J. Brobecker <brobecker@gnat.com>
766
767 * blockframe.c (inside_main_func): No longer use symbol_lookup()
768 to lookup the main function symbol.
769
770 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
771
772 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
773 types correctly.
774 (sh_push_dummy_call_fpu): Fix argument passing rules.
775 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
776 float types.
777 (sh3e_sh4_store_return_value): Ditto.
778
779 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
780
781 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
782 comment.
783
784 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
785
786 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
787 more readable code. Accomodate passing of bitfields.
788
789 2003-10-10 Andrew Cagney <cagney@redhat.com>
790
791 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
792 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
793 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
794 * ppc-sysv-tdep.c: Include "gdb_assert.h".
795 (ppc64_sysv_abi_push_dummy_call): New function.
796 (ppc64_sysv_abi_broken_push_dummy_call): New function.
797 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
798 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
799
800 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
801
802 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
803 * README: Ditto.
804 * d10v-tdep.c: Ditto.
805 * h8300-tdep.c: Ditto.
806 * remote-e7000.c: Ditto.
807 * remote-hms.c: Ditto.
808 * ser-e7kpc.c: Ditto.
809 * sh-stub.c: Ditto.
810 * sh-tdep.c: Ditto.
811 * sh-tdep.h: Ditto.
812 * sh3-rom.c: Ditto.
813 * sh64-tdep.c: Ditto.
814 * top.c: Ditto.
815 * wince.c: Ditto.
816 * config/d10v/d10v.mt: Ditto.
817 * config/sh/embed.mt: Ditto.
818 * config/sh/linux.mt: Ditto.
819 * config/sh/tm-linux.h: Ditto.
820 * config/sh/tm-sh.h: Ditto.
821 * config/sh/wince.mt: Ditto.
822
823 2003-10-09 Andrew Cagney <cagney@redhat.com>
824
825 * ppc-tdep.h (struct type): Declare opaque.
826 * x86-64-tdep.h (struct regcache): Declare opaque.
827 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
828 coding style.
829
830 2003-10-09 Andrew Cagney <cagney@redhat.com>
831
832 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
833 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
834 (SOFTWARE_SINGLE_STEP_P): Ditto.
835 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
836 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
837 (SOFTWARE_SINGLE_STEP_P): Ditto.
838 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
839 software_single_step to rs6000_software_single_step.
840
841 2003-10-09 Andrew Cagney <cagney@redhat.com>
842
843 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
844
845 2003-10-09 Michael Snyder <msnyder@redhat.com>
846
847 * frame.h: Fix typo in comment.
848 * dummy-frame.c: Fix typo in comment.
849 * d10v-tdep.c: Random whitespace/comment tweaks.
850
851 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
852
853 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
854 (sh_push_dummy_code): Delete function, it's only used for dummy calls
855 on stack.
856
857 Based on input by Stephen Clarke (stephen.clarke@superh.com):
858 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
859 in detail.
860
861 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
862
863 * remote-mips.c (mips_initialize): Remove unneeded call to
864 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
865
866 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
867
868 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
869 a memory pointer.
870
871 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
872
873 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
874 for any lwp we resume.
875 (running_callback): Add lwps that have pending status events
876 against them to be considered running.
877
878 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
879
880 * m32r-tdep.c : Include "dis-asm.h".
881 * Makefile.in (m32r-tdep.o): Update dependencies.
882
883 2003-10-06 J. Brobecker <brobecker@gnat.com>
884
885 * completer.h (get_gdb_completer_word_break_characters): Delete.
886 * completer.c: include language.h.
887 (gdb_completer_word_break_characters): Delete.
888 (get_gdb_completer_word_break_characters): Delete.
889 (location_completer): Use the word break characters of the current
890 language.
891 (complete_line): Likewise.
892 (line_completion_function): Likewise.
893 (skip_quoted_chars): Likewise.
894 * Makefile.in (completer.o): Add dependency on language.h.
895 * top.c (init_main): Set the readline word break characters
896 to GDB's default word break characters.
897
898 2003-10-06 J. Brobecker <brobecker@gnat.com>
899
900 * language.h (language_defn): new field, la_word_break_characters.
901 * language.c (unknown_language_defn): Set new field to
902 default_word_break_characters.
903 (auto_language_defn): Likewise.
904 (local_language_defn): Likewise.
905 * ada-lang.c (ada_language_defn): Likewise.
906 * c-lang.c (c_language_defn): Likewise.
907 (cplus_language_defn): Likewise.
908 (asm_language_defn): Likewise.
909 (minimal_language_defn): Likewise.
910 * f-lang.c (f_language_defn): Likewise.
911 * jv-lang.c (java_language_defn): Likewise.
912 * m2-lang.c (m2_language_defn): Likewise.
913 * objc-lang.c (objc_language_defn): Likewise.
914 * p-lang.c (pascal_language_defn): Likewise.
915 * scm-lang.c (scm_language_defn): Likewise.
916
917 2003-10-06 Andrew Cagney <cagney@redhat.com>
918
919 * ppc-sysv-tdep.c: Re-indent.
920
921 2003-10-06 J. Brobecker <brobecker@gnat.com>
922
923 * language.h (default_word_break_characters): Add prototype.
924 * language.c (default_word_break_characters): New function.
925
926 2003-10-06 Andreas Schwab <schwab@suse.de>
927
928 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
929 with %eax.
930
931 2003-10-06 Andrew Cagney <cagney@redhat.com>
932
933 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
934 "h8500-tdep.c".
935 (z8k-tdep.o): Delete custom build rule.
936
937 2003-10-06 Andrew Cagney <cagney@redhat.com>
938
939 * Makefile.in: Update all dependencies.
940
941 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
942 No longer list PA as as obsolete candidate. List m32r as
943 broken instead of obsolete.
944
945 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
946 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
947 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
948 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
949 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
950 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
951 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
952 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
953 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
954 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
955 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
956 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
957 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
958 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
959 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
960 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
961 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
962 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
963 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
964 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
965 * config/z8k/z8k.mt: Ditto.
966
967 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
968 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
969 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
970 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
971 sparclite were removed.
972 * configure.host, configure.tgt: Remove corresponding tuples.
973
974 * breakpoint.c, breakpoint.h: Remove obsolete code.
975 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
976 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
977 * stabsread.h, xcoffread.c: Ditto.
978
979 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
980 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
981 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
982 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
983
984 2003-10-06 David Lecomber <dsl@sources.redhat.com>
985
986 * f-valprint.c: Reformatting
987
988 2003-10-06 Mark Kettenis <kettenis@gnu.org>
989
990 * x86-64-tdep.c: Remove duplicate comment.
991
992 * x86-64-tdep.c (x86_64_store_return_value): Don't use
993 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
994 names for return values. This fixes a bug since we looked at %rbx
995 instead of %rdx.
996
997 2003-10-05 Mark Kettenis <kettenis@gnu.org>
998
999 * x86-64-tdep.c: Include "regset.h".
1000
1001 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1002 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1003 sizeof_fpregset.
1004 * i386-tdep.c: Include "regset.h".
1005 (i386_supply_gregset): New function.
1006 (i386_supply_fpregset): New function.
1007 (i386_gdbarch_init): Initialze register set-related members of
1008 TDEP.
1009 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1010 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1011
1012 2003-10-03 Andrew Cagney <cagney@redhat.com>
1013
1014 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1015 set extract_return_value, store_return_value and
1016 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1017 ppc64_sysv_abi_store_return_value and
1018 ppc64_sysv_abi_use_struct_convention.
1019 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1020 (ppc64_sysv_abi_store_return_value): Declare.
1021 (ppc64_sysv_abi_use_struct_convention): Declare.
1022 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1023 (ppc64_sysv_abi_extract_return_value): New function.
1024 (ppc64_sysv_abi_store_return_value): New function.
1025 (ppc64_sysv_abi_use_struct_convention): New function.
1026 (ppc64_sysv_abi_return_value): New function.
1027
1028 2003-10-03 Andrew Cagney <cagney@redhat.com>
1029
1030 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1031 convert a descriptor to a function when it's in the ".opd"
1032 section.
1033
1034 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1035
1036 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1037 reg_size to keep GCC silent.
1038
1039 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1040
1041 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1042 base for DW_EH_PE_textrel encodings.
1043 (read_encoded_value): Add a DW_EH_PE_textrel case.
1044 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1045 section.
1046
1047 2003-10-03 Mark Kettenis <kettenis@gnu.org>
1048
1049 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1050
1051 2003-10-02 Andrew Cagney <cagney@redhat.com>
1052
1053 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1054 REGISTER_RAW_SIZE.
1055 * gdbarch.h, gdbarch.c: Re-generate.
1056 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1057 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1058 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1059 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1060 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1061 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1062 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1063 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1064 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1065 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1066 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1067 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1068 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1069 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1070 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1071 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
1072
1073 2003-10-02 Jim Blandy <jimb@redhat.com>
1074
1075 * dwarf2read.c (struct die_info): Doc fix.
1076
1077 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1078
1079 * sh-tdep.c: Running thru gdb_indent.sh.
1080
1081 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1082
1083 * sh-tdep.c (sh_justify_value_in_reg): New function.
1084 (sh_stack_allocsize): Ditto.
1085 (flt_argreg_array): New array used for floating point argument
1086 passing.
1087 (sh_init_flt_argreg): New function.
1088 (sh_next_flt_argreg): Ditto.
1089 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1090 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1091 Fix argument passing strategy.
1092 (sh_push_dummy_call_nofpu): Ditto.
1093
1094 2003-10-01 Andrew Cagney <cagney@redhat.com>
1095
1096 * value.h (register_value_being_returned): Declare. Replace
1097 "value_being_returned".
1098 * infcall.c (call_function_by_hand): Use
1099 register_value_being_returned.
1100 * infcmd.c (print_return_value): Call
1101 "register_value_being_returned", handle struct return locally.
1102 * values.c (register_value_being_returned): New function. Replace
1103 "value_being_returned".
1104
1105 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
1106
1107 * linux-proc.c (linux_do_registers): New function.
1108 (linux_make_note_section): Use linux_do_registers in case of
1109 single threaded inferior programs.
1110
1111 2003-10-01 Andrew Cagney <cagney@redhat.com>
1112
1113 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1114 use STRUCT_ADDR. When not using "struct return convention", pass
1115 "0" to "value_being_returned". Add FIXMEs.
1116 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1117 value_being_returned. Add comments.
1118 * values.c (value_being_returned): Add fixme.
1119 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1120 (hppa_value_returned_from_stack): Add FIXME.
1121
1122 2003-09-30 David Carlton <carlton@kealia.com>
1123
1124 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1125 'has_children' and 'next' by 'child' and 'sibling'.
1126 (read_comp_unit): Rework algorithm, breaking body into
1127 read_die_and_children and read_die_and_siblings.
1128 (read_die_and_children, read_die_and_siblings): New.
1129 (read_full_die): Add 'has_children' argument; set it instead of
1130 the die's 'has_children' field. Minor formatting cleanup.
1131 (free_die_list): Use die->child and die->sibling instead of
1132 die->next.
1133 (dump_die_list): Ditto.
1134 (sibling_die): Use die->sibling.
1135 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1136 'has_children' and 'next' fields.
1137 (process_die, read_file_scope, read_func_scope)
1138 (read_lexical_block_scope, read_structure_scope)
1139 (read_enumeration, read_array_type, read_common_block)
1140 (read_namespace, read_subroutine_type, dump_die): Ditto.
1141
1142 2003-09-30 Andrew Cagney <cagney@redhat.com>
1143
1144 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1145 to 224, not 220.
1146
1147 2003-09-30 Andrew Cagney <cagney@redhat.com>
1148
1149 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1150 REGISTER_VIRTUAL_SIZE.
1151 * gdbarch.h, gdbarch.c: Regenerate.
1152 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1153 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1154 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1155
1156 2003-09-29 Andrew Cagney <cagney@redhat.com>
1157
1158 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1159 DEPRECATED_REGISTER_VIRTUAL_TYPE.
1160 * gdbarch.h, gdbarch.c: Regenerate.
1161 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1162 * sh64-tdep.c, sparc-tdep.c: Update.
1163
1164 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1165 * remote-vxmips.c (vx_read_register): Ditto.
1166 * remote-vx68.c (vx_read_register): Ditto.
1167 * gnu-nat.c (inf_validate_procs): Ditto.
1168
1169 2003-09-29 J. Brobecker <brobecker@gnat.com>
1170
1171 * infcall.c (call_function_by_hand): Fix build failure
1172 introduced in the previous change to this file.
1173
1174 2003-09-29 Andrew Cagney <cagney@redhat.com>
1175
1176 * NEWS: Mention Objective-C.
1177
1178 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
1179
1180 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1181 test if the register has been saved on the stack.
1182 (arm_scan_prologue_cache): When analysing the instruction
1183 "str lr, [sp, #-4]", save the address where lr has been stored.
1184
1185 2003-09-28 Andrew Cagney <cagney@redhat.com>
1186
1187 * frame.c (frame_read_unsigned_register): Delete function.
1188 * frame.h (frame_read_unsigned_register): Delete declaration.
1189 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1190 get_frame_register_unsigned.
1191 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1192 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1193 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1194
1195 * frame.h (frame_read_register): Delete declaration.
1196 * frame.c (frame_read_register): Delete function.
1197 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1198 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1199 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1200 * mips-tdep.c (mips_register_to_value): Ditto.
1201 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1202 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1203
1204 * frame.c (frame_read_signed_register): Delete function.
1205 (frame_read_unsigned_register): Update comments.
1206 * frame.h (frame_read_signed_register): Delete declaration.
1207 * h8300-tdep.c (h8300_print_register): Use
1208 get_frame_register_signed.
1209 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1210
1211 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1212 Rename VALUE_RETURNED_FROM_STACK.
1213 * infcmd.c (print_return_value): Update.
1214 * infcall.c (call_function_by_hand): Update.
1215
1216 2003-09-28 Mark Kettenis <kettenis@gnu.org>
1217
1218 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1219 regcache argument and reverse the order of the other two
1220 arguments. Remove local regcache variable. Determine
1221 architecture from REGCACHE. Update comments.
1222 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1223 reverse the order of the other two arguments. Remove local
1224 regcache variable. Determine architecture from REGCACHE. Update
1225 comments.
1226 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1227 prototypes. Update comments.
1228 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1229 comment.
1230 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1231 Update.
1232 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1233 * i386-interix-nat.c (supply_fpregset): Update.
1234 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1235 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1236 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1237 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1238 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1239 Update.
1240 * i386obsd-tdep.c (fetch_core_registers): Update.
1241 * i386v4-nat.c (supply_fpregset): Update.
1242 * x86-64-linux-nat.c (supply_fpregset): Update.
1243 * x86-64-linux-tdep.c (fetch_core_registers): Update.
1244
1245 2003-09-27 Mark Kettenis <kettenis@gnu.org>
1246
1247 * i386-tdep.h: Put opaque declarations in alphabetical
1248 order. Remove spurious whitespace.
1249 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1250 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1251 * i386-tdep.c (MM0_REGNUM): Remove define.
1252 (i386_mmx_regnum_p): Add gdbarch argument.
1253 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1254 Rewrite using new macro definitions for FPU/SSE registers.
1255 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1256 definitions from i387-tdep.h.
1257 (i386_register_name): Update.
1258 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1259 new macro definitions for FPU/SSE registers.
1260 (i386_extract_return_value): Determine whether floating-point
1261 registers are present by examining REGCACHE's architecture.
1262 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1263 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1264 FPU/SSE registers.
1265 (i386_register_type): Update.
1266 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1267 definitions for FPU registers. Use REGCACHE's architecture to
1268 determine the appropriate register numbers.
1269 (i386_pseudo_register_read, i386_pseudo_register_write,
1270 i386_register_reggroup_p): Update.
1271 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1272 TDEP->mm0_regnum.
1273 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1274 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1275 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1276 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1277 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1278 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1279 *' to `void *'.
1280 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1281 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1282 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1283 definitions for FPU/SSE registers.
1284 (FXSAVE_MXCSR_ADDR): New define.
1285 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1286 TDEP->mm0_regnum.
1287 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1288 (I387_ST0_REGNUM): Define.
1289
1290 * regcache.h (get_regcache_arch): New prototype.
1291 * regcache.c (get_regcache_arch): New function.
1292
1293 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1294 whitespace.
1295
1296 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1297 Initialize using ARRAY_SIZE.
1298
1299 2003-09-27 Andrew Cagney <cagney@redhat.com>
1300
1301 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1302 "init_frame_pc_default".
1303 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1304 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1305 * vax-tdep.c (vax_gdbarch_init): Update.
1306 * v850-tdep.c (v850_gdbarch_init): Update.
1307 * sh64-tdep.c (sh64_gdbarch_init): Update.
1308 * s390-tdep.c (s390_gdbarch_init): Update.
1309 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1310 * mcore-tdep.c (mcore_gdbarch_init): Update.
1311 * h8300-tdep.c (h8300_gdbarch_init): Update.
1312 * cris-tdep.c (cris_gdbarch_init): Update.
1313 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1314
1315 2003-09-26 Mark Kettenis <kettenis@gnu.org>
1316
1317 * regset.h: New file.
1318 * Makefile.in (regset_h): Add.
1319
1320 2003-09-25 Andrew Cagney <cagney@redhat.com>
1321
1322 * frame.h (deprecated_frame_saved_regs): Rename
1323 get_frame_saved_regs.
1324 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1325 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1326 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1327 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1328 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1329
1330 2003-09-25 Andrew Cagney <cagney@redhat.com>
1331
1332 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1333 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1334 and Java.
1335 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1336 arm*-*-* do not use the new frame code.
1337
1338 2003-09-25 David Carlton <carlton@kealia.com>
1339
1340 * c-exp.y: Remove 'register' declarations.
1341 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1342
1343 2003-09-25 David Carlton <carlton@kealia.com>
1344
1345 * c-exp.y: Include cp-support.h. Add qualified_type.
1346 (yylex): Delete nested type hack; add comments.
1347 * cp-namespace.c (cp_lookup_nested_type): New function.
1348 * cp-support.h: Declare cp_lookup_nested_type.
1349 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1350 instead of value_struct_elt_for_reference.
1351 * valops.c: Include cp-support.h.
1352 (value_aggregate_elt): New function.
1353 (value_namespace_elt): Ditto.
1354 (value_struct_elt_for_reference): Make static.
1355 * value.h: Delete declaration of value_struct_elt_for_reference;
1356 add declaration for value_aggregate_elt.
1357 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1358 (valops.o): Ditto.
1359
1360 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
1361
1362 * stack.c: Include "reggroups.h".
1363 (frame_info): Only display registers in all_reggroup.
1364 * Makefile.in (stack.o): Update dependencies.
1365
1366 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1367
1368 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1369 "add ip, sp #n" in the prologue.
1370 (arm_scan_prologue): Ditto.
1371
1372 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1373
1374 * MAINTAINERS (write after approval): Add myself.
1375
1376 2003-09-25 Andreas Schwab <schwab@suse.de>
1377
1378 * m68k-tdep.c: Include "dwarf2-frame.h".
1379 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1380 * Makefile.in (m68k-tdep.o): Update dependencies.
1381
1382 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
1383
1384 * sh-tdep.c (struct frame_extra_info): Remove.
1385 (struct sh_frame_cache): New structure.
1386 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1387 (GET_TARGET_REG): Ditto but target register.
1388 (GET_PUSHED_REG): Remove.
1389 (IS_MOV_ARG_TO_REG): New macro.
1390 (IS_MOV_ARG_TO_IND_R14): New macro.
1391 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1392 (IS_MOVW_PCREL_TO_REG): New macro.
1393 (IS_MOVL_PCREL_TO_REG): New macro.
1394 (IS_SUB_REG_FROM_SP): New macro.
1395 (IS_ARG_MOV): Remove.
1396 (IS_MOV_TO_R14): Remove.
1397 (IS_RESTORE_FP): New macro.
1398 (IS_RTS): New macro.
1399 (IS_LDS): New macro.
1400 (IS_MOV_FP_SP): New macro.
1401 (IS_ADD_REG_TO_FP): New macro.
1402 (IS_ADD_IMM_FP): New macro.
1403 (sh_skip_prologue_hard_way): Remove.
1404 (sh_saved_pc_after_call): Remove.
1405 (sh_frame_chain): Remove.
1406 (sh_find_callers_reg): Remove.
1407 (sh_nofp_frame_init_saved_regs): Remove.
1408 (sh_fp_frame_init_saved_regs): Remove.
1409 (sh_init_extra_frame_info): Remove.
1410 (sh_analyze_prologue): New function.
1411 (sh_skip_prologue): Remove deprecated code. Rely on new function
1412 sh_analyze_prologue when after_prologue fails.
1413 (sh_frame_saved_pc): Remove.
1414 (sh_alloc_frame_cache): New function.
1415 (sh_frame_cache): Ditto.
1416 (sh_frame_prev_register): Ditto.
1417 (sh_frame_this_id): Ditto.
1418 (sh_frame_unwind): New structure defining the heuristic frame
1419 sniffer interface.
1420 (sh_frame_sniffer): New function.
1421 (sh_unwind_sp): Ditto.
1422 (sh_unwind_pc): Ditto.
1423 (sh_unwind_dummy_id): Ditto.
1424 (sh_frame_base_address): Ditto.
1425 (sh_frame_base): New structure defining new frame base code.
1426 (sh_in_function_epilogue_p): New function.
1427 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1428 code and to call all new code instead. Initialize dwarf2 and
1429 heuristic frame sniffer.
1430
1431 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1432
1433 * parser-defs.h (struct exp_descriptor): New definition, containing
1434 language-specific info for printing, prefixifying, dumping, and
1435 evaluating expressions.
1436 (exp_descriptor_standard): Declare new variable.
1437 (print_subexp): Make global and declare here (from expprint.c).
1438 (dump_subexp): Ditto.
1439 (dump_subexp_body_standard): Declare.
1440 (operator_length_standard): Declare.
1441 (op_name_standard): Declare.
1442 (print_subexp): Declare.
1443 (print_subexp_standard): Declare.
1444
1445 * language.h (struct language_defn): Add la_exp_desc field to hold
1446 pointer to table for language-specific operators.
1447 Remove evaluate_exp field, which is now in struct exp_descriptor.
1448
1449 * parse.c (operator_length): Move most code to new
1450 operator_length_standard function. Use language-specific information.
1451 (operator_length_standard): New function taking most code from
1452 operator_length.
1453 (exp_descriptor_standard): New constant.
1454
1455 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
1456 and OP_EXTENDED_LAST.
1457
1458 * expprint.c (print_subexp): Use language-specific print_subexp.
1459 Make global; remove static declaration.
1460 Move most code to print_subexp_standard.
1461 (print_subexp_standard): New function, containing code formerly in
1462 print_subexp.
1463 (op_name): Add expression to argument signature.
1464 Use langauge-specific op_name.
1465 Move most code to op_name_standard.
1466 (op_name_standard): New function, containing code formerly in op_name.
1467 (dump_subexp): Use new version of op_name function.
1468 Use language-specific dump_subexp_body, and move most existing code to
1469 dump_subexp_body_standard.
1470 (dump_raw_expression): Use new op_name interface.
1471 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1472 (dump_subexp_body_standard): New function, containing code formerly
1473 in dump_subexp_body.
1474
1475 * language.c (unknown_language): Add default la_exp_desc field and
1476 remove evaluate_exp field.
1477 (auto_language): Ditto.
1478 (local_language): Ditto.
1479 * f-lang.c (f_language_defn): Ditto.
1480 * c-lang.c (c_language_defn): Ditto.
1481 (cplus_language_defn): Ditto.
1482 (asm_language_defn): Ditto.
1483 (minimal_language_defn): Ditto.
1484 * p-lang.c (pascal_language_defn): Ditto.
1485 * m2-lang.c (m2_language_defn): Ditto.
1486 * objc-lang.c (objc_language_defn): Ditto.
1487
1488 * jv-lang.c (exp_descriptor_java): New variable, containing
1489 Java-specific expression evaluator.
1490 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1491 field.
1492 * scm-lang.c (exp_descriptor_scm): New variable, containing
1493 Scheme-specific expression evaluator.
1494 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1495 field.
1496 * objc-lang.c (print_object_command): Take evaluate_exp from the
1497 la_exp_desc field.
1498
1499 * Makefile.in (eval.o): Add dependency on parser-defs.h.
1500
1501 * eval.c: Include parser-defs.h for the full declaration of
1502 la_exp_desc's type.
1503 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
1504
1505 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1506
1507 * parser-defs.h (operator_length): Declare.
1508
1509 * parse.c (length_of_subexp): Use operator_length to get operator
1510 lengths and arities for operators.
1511 Move most code to new operator_length function.
1512 (operator_length): New function absorbing most code from
1513 length_of_subexp.
1514 (prefixify_subexp): Remove large case and use operator_length instead.
1515 (parse_exp_1): Use renamings:
1516 dump_prefix_expression => dump_raw_expression and
1517 dump_postfix_expression => dump_prefix_expression.
1518
1519 * expression.h (dump_prefix_expression): Rename to ...
1520 (dump_raw_expression): New name.
1521 (dump_postfix_expression): Rename to ...
1522 (dump_prefix_expression): New name.
1523
1524 * expprint.c (dump_subexp): Make global. Add comment.
1525 Move most existing code to dump_subexp_body.
1526 (dump_subexp_body): New function.
1527 (dump_prefix_expression): Rename to dump_raw_expression.
1528 Remove attempt to print the expression via print_expression: it can't
1529 work before the expression is prefixified.
1530 (dump_raw_expression): Renamed from dump_prefix_expression.
1531 (dump_postfix_expression): Rename to dump_prefix_expression, since
1532 that's what it does.
1533 Remove 'note' parameter, since this routine must be used on
1534 prefixified expression.
1535 (dump_prefix_expression): Renamed from dump_postfix_expression.
1536
1537 2003-09-22 Jim Blandy <jimb@redhat.com>
1538
1539 * dwarf2read.c (read_array_type): When building the type for an
1540 array of unspecified length, make sure to choose the upper bound
1541 so that the array's total length comes out to be zero --- that's
1542 how we represent such arrays.
1543
1544 2003-09-22 Michael Chastain <mec@shout.net>
1545
1546 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1547
1548 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1549
1550 * top.c (quit_force): Fix indirect call to quit_target so
1551 a struct qt_args pointer is passed.
1552
1553 2003-09-22 Andrew Cagney <cagney@redhat.com>
1554
1555 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1556 * arch-utils.c (init_frame_pc_noop): Delete function.
1557 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1558 "init_frame_pc".
1559 * mips-tdep.c (mips_gdbarch_init): Ditto.
1560 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1561 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1562 declaration.
1563 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1564 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1565 declaration.
1566 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1567
1568 2003-09-22 Anthony Green <green@redhat.com>
1569
1570 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1571 declaration.
1572
1573 2003-09-20 Andrew Cagney <cagney@redhat.com>
1574
1575 * breakpoint.c: Eliminate ARGSUSED.
1576 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1577 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1578 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1579 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1580 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1581 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1582 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1583 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1584 * wince.c, remote-vx.c: Ditto.
1585
1586 * cli/cli-script.c: Remove "register" attributes.
1587 * config/pa/tm-hppa.h: Ditto.
1588 * cli/cli-decode.c: Ditto.
1589 * cli/cli-cmds.c: Ditto.
1590
1591 2003-09-19 Andrew Cagney <cagney@redhat.com>
1592
1593 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1594 DEPRECATED_NPC_REGNUM.
1595 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1596
1597 2003-09-19 Christopher Faylor <cgf@redhat.com>
1598
1599 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1600
1601 2003-09-19 Jim Blandy <jimb@redhat.com>
1602
1603 * macrotab.c (macro_include): Use the correct comparison to find
1604 the appropriate place for this inclusion in the list.
1605
1606 2003-09-19 Andrew Cagney <cagney@redhat.com>
1607
1608 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1609 (DEPRECATED_HPUX_TEXT_END): Define.
1610 (deprecated_hpux_text_end): Declare.
1611 (struct target_ops): Declare opaque.
1612 * hppah-nat.c (text_end): Make static.
1613 (deprecated_hpux_text_end): New function.
1614 * exec.c (text_end): Delete global variable.
1615 (NEED_TEXT_START_END): Do not define.
1616 (exec_file_attach): Replace code computing "text_end" code with
1617 call to DEPRECATED_HPUX_TEXT_END.
1618
1619 2003-09-19 Andrew Cagney <cagney@redhat.com>
1620
1621 * utils.c (align_up, align_down): New functions.
1622 * defs.h (align_up, align_down): Declare.
1623 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1624 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1625 and "align_down".
1626 (round_up, round_down): Delete functions.
1627 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1628 "align_down".
1629 (ROUND_DOWN, ROUND_UP): Delete macros.
1630 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1631 * h8300-tdep.c: Replace "round_up" and "round_down" with
1632 "align_up" and "align_down".
1633 (round_up, round_down): Delete macros.
1634 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1635 "align_down".
1636 (ROUND_UP, ROUND_DOWN): Delete macros.
1637
1638 2003-09-18 J. Brobecker <brobecker@gnat.com>
1639
1640 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1641 hard-coded constant. Use the proper machine name instead.
1642
1643 2003-09-17 Andrew Cagney <cagney@redhat.com>
1644
1645 * sparc-tdep.c (legacy_register_name): Delete function.
1646 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1647 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1648 * infcmd.c (gdb_register_name): Delete variable.
1649 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1650 REGISTER_NAME and "tm.h".
1651 * gdbarch.h, gdbarch.c: Regenerate.
1652 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1653 REGISTER_NAMES in comments.
1654 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1655 * m68klinux-nat.c (regmap): Ditto.
1656
1657 2003-09-17 Jim Blandy <jimb@redhat.com>
1658
1659 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1660
1661 2003-09-17 Andrew Cagney <cagney@redhat.com>
1662
1663 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1664 (ppcnbsd_init_abi): Set "use_struct_convention" to
1665 "ppcnbsd_use_struct_convention".
1666
1667 2003-09-17 Mark Kettenis <kettenis@gnu.org>
1668
1669 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1670 * gdbarch.h, gdbarch.c: Regenerate.
1671 (stabs_argument_has_addr): New architecture method.
1672 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1673 * arch-utils.c: Include "buildsym.h".
1674 (default_stabs_argument_has_addr): New function.
1675 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1676 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1677
1678 2003-09-17 Andrew Cagney <cagney@redhat.com>
1679
1680 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1681 * gdbarch.h, gdbarch.c: Regenerate.
1682 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1683 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1684 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1685 * sparcnbsd-tdep.c: Update.
1686
1687 2003-09-17 Andrew Cagney <cagney@redhat.com>
1688
1689 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1690 * gdbarch.h, gdbarch.c: Regenerate.
1691 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1692 * d10v-tdep.c, frame.c: Update.
1693 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1694 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1695 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1696 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1697 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1698 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1699 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1700 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1701 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1702 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1703 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1704 * config/pa/nm-hppah.h: Update.
1705
1706 2003-09-16 Andrew Cagney <cagney@redhat.com>
1707
1708 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1709 "use_struct_convention" to "ppc_linux_use_struct_convention".
1710 (ppc_linux_use_struct_convention): New function.
1711 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1712 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1713 "rs6000_use_struct_convention".
1714 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1715 declaration.
1716 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1717 Delete function.
1718
1719 2003-09-16 Andrew Cagney <cagney@redhat.com>
1720
1721 * buildsym.c: Remove more occurances of "register".
1722 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1723 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1724 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1725 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1726 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1727 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1728 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1729 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1730
1731 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
1732
1733 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1734 numbers to enumeration values.
1735 * sh-tdep.c: Accomodate above change.
1736 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1737 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1738 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1739 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1740 (IS_FPUSH): Rename from IS_FMOV.
1741 (sh_extract_struct_value_address): Remove useless comment.
1742 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1743 instead of own local values.
1744 (sh_dump_tdep): Remove.
1745 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1746 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1747
1748 2003-09-15 Andrew Cagney <cagney@redhat.com>
1749
1750 * doublest.c (convert_floatformat_to_doublest): No longer need to
1751 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1752
1753 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
1754
1755 * values.c (unpack_double): Call floatformat_is_valid.
1756
1757 2003-09-15 Mark Kettenis <kettenis@gnu.org>
1758
1759 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1760 ps_strings into a long.
1761
1762 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1763 _initialize_am64fbsd_nat.
1764
1765 2003-09-15 Kevin Buettner <kevinb@redhat.com>
1766
1767 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1768 associated with DW_AT_ranges attribute is out of bounds.
1769
1770 2003-09-15 David Lecomber <dsl@sources.redhat.com>
1771
1772 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1773
1774 2003-09-14 Michael Chastain <mec@shout.net>
1775
1776 * config/m68k/nm-apollo68v.h: Delete.
1777 * config/m68k/xm-apollo68v.h: Delete.
1778
1779 2003-09-14 Andrew Cagney <cagney@redhat.com>
1780
1781 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1782 * dcache.c: Update copyrights and descriptions.
1783 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1784
1785 2003-09-14 Andrew Cagney <cagney@redhat.com>
1786
1787 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1788 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1789
1790 2003-09-14 Andrew Cagney <cagney@redhat.com>
1791
1792 * alpha-nat.c: Remove some occurances of "register".
1793 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1794 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1795 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1796 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1797 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1798 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1799 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1800 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1801 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1802 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1803 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1804 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1805 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1806 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1807 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1808 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1809 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1810 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1811 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1812 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1813 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1814 * values.c, vax-tdep.c, xcoffread.c: Ditto.
1815
1816 2003-09-13 Andrew Cagney <cagney@redhat.com>
1817
1818 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1819 * ppc-tdep.h (struct regcache): Declare opaque.
1820 * objfiles.h (struct objfile_data): Declare opaque.
1821 * cp-support.h (struct objfile): Declare opaque.
1822 * linux-nat.h (target_waitstatus): Declare opaque.
1823
1824 2003-09-14 Mark Kettenis <kettenis@gnu.org>
1825
1826 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1827 (stabs_argument_has_addr): New architecture method.
1828 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1829 * arch-utils.c: Include "buildsym.h".
1830 (default_stabs_argument_has_addr): New function.
1831 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1832 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1833
1834 * cris-tdep.c (cris_gdbarch_init): Set
1835 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1836 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1837 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1838 * mips-tdep.c (mips_gdbarch_init): Likewise.
1839 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1840 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1841
1842 2003-09-13 Andrew Cagney <cagney@redhat.com>
1843
1844 * values.c (using_struct_return): Delete "function" and "funcaddr"
1845 parameters.
1846 * value.h (using_struct_return): Update declaration.
1847 * infcmd.c (finish_command_continuation): Update.
1848 (finish_command): Update.
1849 * infcall.c (call_function_by_hand): Update.
1850 * eval.c (evaluate_subexp_standard): Update.
1851
1852 2003-09-13 Christopher Faylor <cgf@redhat.com>
1853
1854 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1855 SSE registers since gdb will not operate correctly without this.
1856 Restore include file ordering munged in previous change.
1857 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1858
1859 2003-09-13 Mark Kettenis <kettenis@gnu.org>
1860
1861 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1862 REG_STRUCT_HAS_ADDR.
1863 * gdbarch.c, gdbarch.h: Updated.
1864 * infcall.c (call_function_by_hand): Update.
1865 * stabsread.c (define_symbol): Updated.
1866
1867 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1868
1869 2003-09-12 Christopher Faylor <cgf@redhat.com>
1870
1871 * win32-nat.c: Reorganize so that defines used by target headers are
1872 actually defined by the system headers.
1873 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1874 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1875
1876 2003-09-12 Jim Blandy <jimb@redhat.com>
1877
1878 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1879 the file has no .data, .bss, or .rodata sections. Instead wait
1880 until we see a variable alleged to live in one of those sections.
1881
1882 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1883 .bss section, presume that any variables we find live in the
1884 .rodata section.
1885
1886 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1887 offsets for global and static variables.
1888
1889 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1890 symbol types are, by definition, in the .data section, so it is
1891 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1892 If there is no .data section, there should be no N_DATA or N_DATA
1893 | N_EXT symbols.
1894
1895 2003-09-12 Mark Kettenis <kettenis@gnu.org>
1896
1897 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1898 (amd64fbsd_sigcontext_addr): Rewrite.
1899 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1900 with correct values.
1901 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1902 (amd64fbsd_init_abi): Fix typo.
1903
1904 2003-09-12 Andrew Cagney <cagney@redhat.com>
1905
1906 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1907 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1908
1909 2003-09-12 Andrew Cagney <cagney@redhat.com>
1910
1911 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1912 "entry_file_highpc". Update comments.
1913 * defs.h (deprecated_inside_entry_file): Rename
1914 "inside_entry_file".
1915 * blockframe.c (deprecated_inside_entry_file): Rename
1916 "inside_entry_file".
1917 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1918 * vax-tdep.c (vax_frame_chain): Update.
1919 * sh64-tdep.c (sh64_frame_chain): Update.
1920 * sh-tdep.c (sh_frame_chain): Update.
1921 * rs6000-tdep.c (rs6000_frame_chain): Update.
1922 * ns32k-tdep.c (ns32k_frame_chain): Update.
1923 * mips-tdep.c (mips_frame_chain): Update.
1924 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1925 * m32r-tdep.c (m32r_frame_this_id): Update.
1926 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1927 * frv-tdep.c (frv_frame_this_id): Update.
1928 * d10v-tdep.c (d10v_frame_this_id): Update.
1929 * cris-tdep.c (cris_frame_chain): Update.
1930 * blockframe.c (legacy_frame_chain_valid): Update.
1931 * avr-tdep.c (avr_frame_this_id): Update.
1932 * arm-tdep.c (arm_prologue_this_id): Update.
1933 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1934 * objfiles.c (objfile_relocate): Update.
1935 * mipsread.c (mipscoff_symfile_read): Update.
1936 (mipscoff_symfile_read): Update.
1937 * mdebugread.c (parse_partial_symbols): Update.
1938 * dwarfread.c (read_file_scope): Update.
1939 * dwarf2read.c (read_file_scope): Update.
1940 * dbxread.c (read_dbx_symtab): Update.
1941 (read_dbx_symtab): Update.
1942 * coffread.c (complete_symtab): Update.
1943
1944 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1945
1946 * top.c (quit_target): New static helper function.
1947 (quit_force): Moved code to quit_target(). Call quit_target()
1948 via catch_errors() to catch errors during quit.
1949
1950 2003-09-11 David Carlton <carlton@kealia.com>
1951
1952 * buildsym.c (finish_block): Use allocate_block to allocate the
1953 block.
1954 * mdebugread.c (new_block): Add FIXME.
1955
1956 2003-09-11 David Carlton <carlton@kealia.com>
1957
1958 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1959 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1960 (recursive_dump_type): Ditto.
1961 * printcmd.c (print_formatted): Ditto.
1962 * typeprint.c (print_type_scalar): Ditto.
1963 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1964 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1965 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1966 maint_cplus_cmd_list.
1967 * cp-support.c: Make maint_cplus_cmd_list extern.
1968 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1969 command.h.
1970 (lookup_symbol_file): Look in possible namespace blocks when
1971 appropriate.
1972 (initialize_namespace_symtab): New.
1973 (get_possible_namespace_block, free_namespace_block)
1974 (check_possible_namespace_symbols)
1975 (check_possible_namespace_symbols_loop)
1976 (check_one_possible_namespace_symbol)
1977 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1978 (_initialize_cp_namespace): Ditto.
1979 * block.h: Declare allocate_block.
1980 * block.c (allocate_block): New.
1981 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1982 allocate_block.
1983 * symfile.h: Update declaration of add_psymbol_to_list.
1984 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1985 question.
1986 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1987 scan_partial_symbols_call.
1988 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1989 helper functions.
1990 (add_partial_symbol): If necessary, scan mangled names for names
1991 of namespaces.
1992 (add_partial_namespace): Add NAMESPACE argument; generate partial
1993 symbols associated to namespaces.
1994 (add_partial_enumeration): Add NAMESPACE argument.
1995 (new_symbol): Allow namespace syms.
1996 (read_namespace): Generate namespace syms.
1997 * objfiles.h: Add opaque declaration of struct symtab.
1998 (struct objfile): Add cp_namespace_symtab member.
1999 * objfiles.c (allocate_objfile): Set
2000 objfile->cp_namespace_symtab.
2001 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2002 dictionary_h, command_h.
2003
2004 2003-09-11 Andrew Cagney <cagney@redhat.com>
2005
2006 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2007 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2008 near the function's end.
2009 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2010 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2011 regcache_raw_write_signed to set SP_REGNUM.
2012
2013 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
2014
2015 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2016 orig_addrs is set up properly.
2017
2018 2003-09-11 Andrew Cagney <cagney@redhat.com>
2019
2020 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2021 * gdbarch.h, gdbarch.c: Re-generate.
2022 * infcall.c (call_function_by_hand): Update.
2023 * hppa-tdep.c (hppa_push_arguments): Update.
2024 * ada-lang.c (place_on_stack): Update.
2025 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2026 * sparc-tdep.c (sparc_gdbarch_init): Update.
2027 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2028 * hppa-tdep.c (hppa_gdbarch_init): Update.
2029 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2030 stack_align.
2031
2032 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
2033
2034 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2035 register do need a frame.
2036
2037 2003-09-11 Andrew Cagney <cagney@redhat.com>
2038
2039 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2040 buildable since GDB 5.0.
2041 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2042 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2043 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2044 * irix4-nat.c: Delete file.
2045 * config/mips/irix4.mh: Delete file.
2046 * config/mips/irix3.mh: Delete file.
2047 * config/mips/irix3.mt: Delete file.
2048 * config/mips/tm-irix3.h: Delete file.
2049 * config/mips/nm-irix3.h: Delete file.
2050 * config/mips/xm-irix3.h: Delete file.
2051 * config/mips/nm-irix4.h: Delete file.
2052 * config/mips/xm-irix4.h: Delete file.
2053 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2054
2055 2003-09-10 J. Brobecker <brobecker@gnat.com>
2056
2057 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2058 * Makefile.in (hppa-tdep.o): Update dependencies.
2059
2060 2003-09-10 James E Wilson <wilson@specifixinc.com>
2061
2062 * MAINTAINERS: Change my e-mail address. Move to paper trail
2063 section.
2064
2065 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2066
2067 * MAINTAINERS (frv): New ISA entry.
2068
2069 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2070
2071 * frv-tdep.c (dis-asm.h): Include.
2072 * Makefile.in (frv-tdep.o): Update dependencies.
2073
2074 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2075
2076 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2077 Fix typo for high range of floating registers.
2078
2079 2003-09-09 David Carlton <carlton@kealia.com>
2080
2081 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2082 highpc initialization here out of scan_partial_symbols.
2083 (scan_partial_symbols): Restructure into a recursive version,
2084 calling add_partial_namespace and add_partial_enumeration when
2085 appropriate.
2086 (add_partial_namespace): New.
2087 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2088
2089 2003-09-09 Andrew Cagney <cagney@redhat.com>
2090
2091 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2092 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2093 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2094 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2095
2096 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2097 (rs6000_push_dummy_call): Set the "TOC" register.
2098
2099 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2100 methods "max_register_raw_size", "max_register_virtual_size" or
2101 "register_virtual_size".
2102
2103 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2104
2105 * MAINTAINERS: Update my e-mail address.
2106
2107 2003-09-09 Andrew Cagney <cagney@redhat.com>
2108
2109 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2110 (rs6000_push_dummy_call): Store the struct return address.
2111 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2112
2113 2003-09-09 Andrew Cagney <cagney@redhat.com>
2114
2115 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2116 "ppc_sysv_abi_push_arguments".
2117 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2118 "ppc_sysv_abi_push_arguments".
2119 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2120 instead of "push_arguments".
2121 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2122
2123 2003-09-09 Andrew Cagney <cagney@redhat.com>
2124
2125 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2126 instead of CALL_DUMMY_ADDRESS.
2127
2128 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2129
2130 * p-lang.c: Eliminate "register".
2131 * c-lang.c: Ditto.
2132 * expprint.c: Ditto.
2133 * f-lang.c: Ditto.
2134 * jv-lang.c: Ditto.
2135 * language.c: Ditto.
2136 * m2-lang.c: Ditto.
2137 * parse.c: Ditto.
2138 * scm-lang.c: Ditto.
2139 * objc-lang.c: Ditto.
2140
2141 2003-09-09 Nick Clifton <nickc@redhat.com>
2142
2143 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2144
2145 2003-09-04 Andrew Cagney <cagney@redhat.com>
2146
2147 * avr-tdep.c: Include "dis-asm.h".
2148 * cris-tdep.c: Include "dis-asm.h".
2149 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2150 instead of corresponding typedef.
2151 * h8300-tdep.c: Include "dis-asm.h".
2152 * ia64-tdep.c: Include "dis-asm.h".
2153 * i386-tdep.c: Include "dis-asm.h".
2154 (i386_print_insn): Use "struct disassemble_info" instead of
2155 corresponding typedef.
2156 * m68k-tdep.c: Include "dis-asm.h".
2157 * mcore-tdep.c: Include "dis-asm.h".
2158 * mips-tdep.c: Include "dis-asm.h".
2159 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2160 instead of corresponding typedef.
2161 * ns32k-tdep.c: Include "dis-asm.h".
2162 * s390-tdep.c: Include "dis-asm.h".
2163 * sparc-tdep.c: Include "dis-asm.h".
2164 * vax-tdep.c: Include "dis-asm.h".
2165 * v850-tdep.c: Include "dis-asm.h".
2166 * mn10300-tdep.c: Include "dis-asm.h".
2167 * rs6000-tdep.c: Include "dis-asm.h".
2168 * xstormy16-tdep.c: Include "dis-asm.h".
2169 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2170 print_insn_xstormy16.
2171 * Makefile.in (v850-tdep.o): Update dependencies.
2172 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2173 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2174 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2175 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2176 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2177 (gdbarch_h): Remove $(dis_asm_h).
2178 * disasm.c: Include "dis-asm.h".
2179 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2180 corresponding typedef.
2181 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2182 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2183 * gdbarch.sh: Do not include "dis-asm.h".
2184 (struct disassemble_info): Declare opaque.
2185 (TARGET_PRINT_INSN): Update declaration.
2186 * gdbarch.h, gdbarch.c: Re-generate.
2187
2188 2003-09-08 Andrew Cagney <cagney@redhat.com>
2189
2190 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2191 CALL_DUMMY_ADDRESS, change to a predicate.
2192 * gdbarch.h, gdbarch.c: Re-generate.
2193 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2194 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2195 * infcall.c (call_function_by_hand): Ditto.
2196 * sparc-tdep.c (sparc_push_return_address): Ditto.
2197 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2198 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2199 CALL_DUMMY_ADDRESS with entry_point_address.
2200 * v850-tdep.c (v850_push_return_address): Ditto.
2201 * s390-tdep.c (s390_push_return_address): Ditto.
2202 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2203 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2204 * mcore-tdep.c (mcore_push_return_address): Ditto.
2205 * cris-tdep.c (cris_push_return_address): Ditto.
2206 * arm-tdep.c (arm_push_return_address): Ditto.
2207
2208 2003-09-08 Andrew Cagney <cagney@redhat.com>
2209
2210 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2211 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2212 and REG_UNMODIFIED to REG_SAME_VALUE.
2213 (execute_cfa_program): Update.
2214 (dwarf2_frame_cache): Update. Initialize table to
2215 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2216 location.
2217 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2218
2219 2003-09-08 Andrew Cagney <cagney@redhat.com>
2220
2221 * gnu-nat.c: Remove "inline" function attribute.
2222 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2223
2224 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2225
2226 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2227 target.
2228
2229 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2230
2231 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2232 (frame_extra_info): Rename this struct to frv_unwind_cache.
2233 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2234 Add fields ``prev_sp'' and ``base''.
2235 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2236 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2237 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2238 Delete.
2239 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2240 Revise all callers. Fill in the unwind cache argument and make
2241 other adjustments to account for new frame mechanisms.
2242 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2243 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2244 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2245 (frv_frame_unwind, frv_frame_base): New structs.
2246 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2247 additional arguments expected by this method and adjust function
2248 body accordingly.
2249 (frv_gdbarch_init): Remove calls to the following functions:
2250 set_gdbarch_deprecated_init_frame_pc(),
2251 set_gdbarch_deprecated_saved_pc_after_call(),
2252 set_gdbarch_deprecated_frame_chain(),
2253 set_gdbarch_deprecated_frame_saved_pc(),
2254 set_gdbarch_deprecated_frame_init_saved_regs(),
2255 set_gdbarch_deprecated_push_arguments(),
2256 set_gdbarch_deprecated_push_return_address(),
2257 set_gdbarch_deprecated_pop_frame(),
2258 set_gdbarch_deprecated_call_dummy_words(),
2259 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2260 set_gdbarch_deprecated_init_extra_frame_info(),
2261 set_gdbarch_deprecated_dummy_write_sp(), and
2262 set_gdbarch_deprecated_pc_in_call_dummy().
2263 Add calls to the following functions:
2264 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2265 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2266 frame_base_set_default().
2267 * Makefile.in (frv-tdep.o): Update dependencies.
2268
2269 2003-09-09 Mark Kettenis <kettenis@gnu.org>
2270
2271 * dwarf2-frame.c (read_encoded_value): Add support for
2272 DW_EH_PE_aligned encoding.
2273
2274 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2275
2276 * infrun.c (normal_stop): Don't print a message if the inferior
2277 has exited.
2278
2279 2003-09-08 Jim Blandy <jimb@redhat.com>
2280
2281 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2282 * dbxread.c: #include "gdb_assert.h".
2283 (read_dbx_symtab): If the objfile has no .data section, use the
2284 section index for the .bss section instead.
2285
2286 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2287
2288 * frame.c (deprecated_safe_get_selected_frame): New function.
2289 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2290 * findvar.c (read_var_value): Call it.
2291
2292 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
2293
2294 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2295 (sh64-tdep.o): Add dependencies.
2296 * configure.tgt: Add FIXME to sh-*-linux*.
2297 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2298 (sh_gdbarch_init): Always set correct sh_show_regs function
2299 pointer. Call sh64_gdbarch_init() if machine type is sh5.
2300 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2301 * sh64-tdep.c: New file, containing all sh64 related code from
2302 sh-tdep.c.
2303 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2304 * config/sh/linux.mt (TDEPFILES): Ditto.
2305 * config/sh/nbsd.mt (TDEPFILES): Ditto.
2306 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2307 * config/sh/wince.mt (TDEPFILES): Ditto.
2308
2309 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2310
2311 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2312 (stop_wait_callback): Handle !lp->signalled also.
2313 (lin_lwp_has_pending, flush_callback): New functions.
2314 (lin_lwp_wait): Call flush_callback.
2315 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2316 (linux_proc_pending_signals): New function.
2317 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2318
2319 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2320
2321 From Nick Kelsey <nickk@ubicom.com>:
2322 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2323 when the stop PC is at the beginning of a function also.
2324
2325 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
2326
2327 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2328 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2329
2330 2003-09-06 Mark Kettenis <kettenis@gnu.org>
2331
2332 * sol-thread.c: Include "gdb_string.h".
2333
2334 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2335
2336 * gcore.c: Reorder include files in alphabetical order. Include
2337 "gdb_assert.h". Various coding style fixes.
2338 (derive_stack_segment, derive_heap_segment): Replace check for
2339 non-null BOTTOM and TOP with gdb_assert.
2340 (derive_heap_segment): Replace check for successful creation of
2341 ZERO with gdb_assert.
2342 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2343
2344 2003-09-04 Andrew Cagney <cagney@redhat.com>
2345
2346 * thread-db.c (verbose_dlsym): New function.
2347 (thread_db_load): Use verbose_dlsym
2348 (thread_db_new_objfile): Print that libthread_db was loaded, and
2349 that thread debugging was enabled.
2350
2351 2003-09-04 Andrew Cagney <cagney@redhat.com>
2352
2353 * configure.tgt: Add "mips64*-*-*" target. Delete
2354 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2355 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2356 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2357 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2358 mips*-sony-*, and mips64*-*-elf* targets.
2359 * config/mips/embedl.mt: Delete file.
2360 * config/mips/embedl64.mt: Delete file.
2361 * config/mips/mips.mt: Delete file.
2362 * config/mips/mips64.mt: Delete file.
2363 * config/mips/tm-embed.h: Delete file.
2364 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2365 * config/mips/embed64.mt: Delete out-of-date comment.
2366
2367 2003-09-04 Andrew Cagney <cagney@redhat.com>
2368
2369 * hppa-tdep.c (hppa_gdbarch_init): Set
2370 "have_nonsteppable_watchpoint".
2371 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2372 * mips-tdep.c (mips_dump_tdep): Do not print
2373 HAVE_NONSTEPPABLE_WATCHPOINT.
2374 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2375 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2376 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2377 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2378
2379 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2380
2381 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2382 unused code. Add comment.
2383
2384 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2385
2386 * breakpoint.c (watchpoint_check): Check for pc being in an
2387 epilogue if watchpoint frame couldn't be found.
2388
2389 2003-09-04 Andrew Cagney <cagney@redhat.com>
2390
2391 * Makefile.in: Re-generate all dependencies.
2392
2393 2003-09-03 Andrew Cagney <cagney@redhat.com>
2394
2395 * arch-utils.h (legacy_print_insn): Delete declaration.
2396 * arch-utils.c (legacy_print_insn): Delete function.
2397 * disasm.c (deprecated_tm_print_insn_info): Delete.
2398 (_initialize_disasm): Delete function, contained code initializing
2399 deprecated_tm_print_insn_info.
2400 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2401 (deprecated_tm_print_insn_info): Delete.
2402 (TARGET_PRINT_INSN): Do not provide a default.
2403 * gdbarch.h, gdbarch.c: Re-generate.
2404
2405 2003-09-03 Andrew Cagney <cagney@redhat.com>
2406
2407 * disasm.c (fprintf_disasm): New function.
2408 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2409 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2410 reverts 2003-08-14 change.
2411 (_initialize_disasm): Call "init_disassemble_info", instead of
2412 INIT_DISASSEMBLE_INFO_NO_ARCH.
2413
2414 2003-09-03 Michael Snyder <msnyder@redhat.com>
2415
2416 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2417
2418 2003-09-03 Andrew Cagney <cagney@redhat.com>
2419
2420 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2421 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2422 * symfile.c (syms_from_objfile): Update.
2423 (reread_symbols): `Update
2424 * exec.c (exec_file_attach): Update.
2425 (exec_file_attach): Update.
2426 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2427 2003-08-29 change.
2428 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2429
2430 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2431
2432 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2433 trad-frame.h.
2434 (arm_get_cache): Delete macro.
2435 (struct arm_prologue_cache): Update comments. Make saved_regs into
2436 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2437 to prev_sp.
2438 (thumb_scan_prologue): Update for cache changes. Don't call
2439 DEPRECATED_PC_IN_CALL_DUMMY.
2440 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2441 argument and use it in desperation search for our prologue. Do not
2442 search past the specified PC.
2443 (arm_make_prologue_cache): Simplify.
2444
2445 (arm_prologue_this_id, arm_prologue_prev_register)
2446 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2447 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2448 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2449 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2450 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2451
2452 (arm_frame_chain_valid, arm_find_callers_reg)
2453 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2454 (arm_pop_frame): Delete obsolete methods.
2455 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2456
2457 (arm_gdbarch_init): Update for new frame methods. Register prologue
2458 and sigtramp unwinders. Set the default frame base method.
2459
2460 * Makefile.in (arm-tdep.o): Update dependencies.
2461 * varobj.c (find_frame_addr_in_frame_chain): Call
2462 get_frame_base_address.
2463 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2464
2465 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2466
2467 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2468 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2469 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2470 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2471 Take NEXT_FRAME and CACHE arguments. Call
2472 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2473 Set unwound_pc in CACHE instead of modifying the frame argument.
2474 Don't bother checking the frame type when looking for sigtramp
2475 frames.
2476 (arm_make_prologue_cache, arm_frame_chain)
2477 (arm_init_extra_frame_info): New functions.
2478
2479 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2480
2481 * arm-tdep.c (arm_get_cache): Define.
2482 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2483 unwound_sp, unwound_pc, and saved_regs.
2484 (thumb_scan_prologue): Take a cache instead of the frame.
2485 (arm_scan_prologue): Likewise.
2486 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2487 instead of a temporary frame.
2488 (arm_init_extra_frame_info): Allocate and use a cache.
2489 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2490
2491 2003-09-03 Andrew Cagney <cagney@redhat.com>
2492
2493 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2494 * config/mips/wince.mt (TM_CLIBS): Ditto.
2495 * config/sh/wince.mt (TM_CLIBS): Ditto.
2496 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2497 * config/sparc/sp64.mt (CC): Delete.
2498
2499 2003-09-03 Andrew Cagney <cagney@redhat.com>
2500
2501 * defs.h: Do not include "arch-utils.h".
2502 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2503 GDB_MULTI_ARCH_PURE.
2504 * configure.in (GDB_MULTI_ARCH): Do not define.
2505 * configure, config.in: Regenerate.
2506 * configure.tgt: Do not set variable "gdb_multi_arch".
2507 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2508 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2509 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2510 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2511 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2512 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2513 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2514 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2515 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2516 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2517 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2518 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2519 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2520 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2521 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2522 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2523 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2524 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
2525
2526 2003-08-30 Michael Chastain <mec@shout.net>
2527
2528 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2529 * config/m68k/nm-hp300hpux.h: Delete.
2530 * config/m68k/tm-hp300hpux.h: Delete.
2531 * config/m68k/xm-hp300hpux.h: Delete.
2532 * config/m68k/xm-hp300bsd.h: Delete.
2533 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2534 tm-hp300hpux.h, xm-hp300hpux.h.
2535 * somsolib.c: Remove comment about hp300 shared libraries.
2536
2537 2003-08-31 Mark Kettenis <kettenis@gnu.org>
2538
2539 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2540 Only define PTRACE_GET_THREAD_AREA is not already defined.
2541 Various style fixes in code and comments and some additional
2542 spelling fixes in comments. Move after functions dealing with
2543 debug registers.
2544 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2545 Fix coding-style.
2546
2547 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2548 frame_unwind_register_unsigned instead of
2549 frame_unwind_unsigned_register.
2550
2551 2003-08-30 Mark Kettenis <kettenis@gnu.org>
2552
2553 * configure.in: Search for gethostbyname in libnsl.
2554 * configure: Regenerated.
2555
2556 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2557
2558 * configure.in: Remove redundant AC_MSG_RESULT in check for
2559 uintptr_t in stdint.h.
2560 * configure: Regenerated.
2561
2562 * amd64-nat.h (struct regcache): Add opaque declaration.
2563
2564 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2565 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2566 Change "register array" to "register cache" in comments.
2567 (x86_64_linux_gregset64_reg_offset): New variable.
2568 (GETREGS_SUPPLIES): Remove macro.
2569 (supply_gregset): Call amd64_supply_native_gregset instead of
2570 x86_64_linux_supply_gregset.
2571 (fill_gregset): Rename `regno' to `regnum'. Call
2572 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2573 (store_regs): Rename `regno' to `regnum'.
2574 (store_fpregs): Rename `regno' to `regnum'.
2575 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2576 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2577 Reorganize function a bit.
2578 (store_inferior_registers): Rename `regno' to `regnum'. Use
2579 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2580 Reorganize function a bit.
2581 (_initialize_x86_64_linux_nat): New function.
2582 * config/i386/x86-64linux.mh.
2583
2584 2003-08-29 Andrew Cagney <cagney@redhat.com>
2585
2586 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2587 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2588 (target_remove_watchpoint): Delete macro.
2589 (target_insert_watchpoint): Delete macro.
2590 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2591 (remote_mips_stopped_by_watchpoint): Delete declaration.
2592 (remote_mips_remove_watchpoint): Delete declaration.
2593 (remote_mips_set_watchpoint): Delete declaration.
2594 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2595 * remote-mips.c (_initialize_remote_mips): Set
2596 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2597 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2598 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2599 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2600 (mips_stopped_by_watchpoint): Rename
2601 remote_mips_stopped_by_watchpoint.
2602 (mips_can_hardware_watchpoint): Rename
2603 remote_mips_can_use_hardware_watchpoint, update function
2604 signature.
2605
2606 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2607
2608 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2609 USER_DS. We haven't given them a register number yet.
2610
2611 * amd64-nat.h: New file.
2612 * amd64-nat.c: New file.
2613 * amd64fbsd-nat.c: Include "amd64-nat.h".
2614 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2615 (amd64fbsd32_r_reg_offset): New variable.
2616 (supply_gregset): Simply call amd64_supply_native_gregset.
2617 (fill_gregset): Rename `regno' to `regnum'. Simply call
2618 amd64_collect_native_gregset.
2619 (fill_fpregset): Rename `regno' to `regnum'.
2620 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2621 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2622 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2623 `fpregset_t'. Call amd64_supply_native_gregset instead of
2624 supply_gregset. Call x86_64_supply_fxsave instead of
2625 supply_fpregset.
2626 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2627 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2628 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2629 `fpregset_t'. Call amd64_collect_native_gregset instead of
2630 fill_gregset. Call x86_64_collect_fxsave instead of
2631 fill_fpregset.
2632 (_initialize_am64fbsd_nat): Initialize
2633 amd64_native_gregset32_reg_offset and
2634 amd64_native_gregset64_reg_offset.
2635 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2636
2637 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2638 null pointer. Fix typo in comment.
2639
2640 * regcache.c (supply_register): Reimplement to call
2641 regcache_raw_supply.
2642 (regcache_collect): Reimplement by calling regcache_raw_collect.
2643
2644 2003-08-28 Mark Kettenis <kettenis@gnu.org>
2645
2646 * regcache.c (register_buffer): Consitify first argument.
2647 (regcache_raw_supply, regcache_raw_collect): New
2648 functions.
2649
2650 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2651
2652 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2653 by Nathan J. Williams.
2654
2655 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2656
2657 * lin-lwp.c (wait_lwp): New function, copied from
2658 stop_wait_callback. Clean up.
2659 (stop_wait_callback): Use wait_lwp.
2660
2661 2003-08-28 Andrew Cagney <cagney@redhat.com>
2662
2663 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2664 flavour and disassembler options.
2665 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2666 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2667 deprecated_tm_print_insn_info.
2668
2669 2003-08-27 Andrew Cagney <cagney@redhat.com>
2670
2671 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2672 Use target_read_memory.
2673 (s390_get_frame_info): Update. Do not reference
2674 deprecated_tm_print_insn_info.
2675 (s390_check_function_end, s390_is_sigreturn): Ditto.
2676
2677 2003-08-27 Andrew Cagney <cagney@redhat.com>
2678
2679 * Makefile.in (cris-tdep.o): Update dependencies.
2680 * cris-tdep.c: Include "gdb_assert.h".
2681 (cris_gdbarch_init): Set print_insn.
2682 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2683 (cris_delayed_get_disassembler): Simplify, directly call the
2684 disassembler returned by cris_get_disassembler.
2685 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2686 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2687 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2688 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2689 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2690 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2691 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2692 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2693 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2694 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2695 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2696 (gdb_print_insn_sparc): Delete function.
2697 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2698 deprecated_tm_print_insn_info.
2699 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2700 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2701 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2702 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2703 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2704 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2705 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2706 (s390_gdbarch_init): Set print_insn.
2707
2708 2003-08-27 Andrew Cagney <cagney@redhat.com>
2709
2710 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2711 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2712 * infcall.c (call_function_by_hand): Convert the entry point
2713 address into a code address.
2714
2715 2003-08-27 Andrew Cagney <cagney@redhat.com>
2716
2717 * dsrec.c: Include "gdb_string.h".
2718 * Makefile.in (dsrec.o): Update dependencies.
2719
2720 2003-08-27 Michael Chastain <mec@shout.net>
2721
2722 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2723
2724 2003-08-27 Andrew Cagney <cagney@redhat.com>
2725
2726 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2727 (alpha_osf1_init_abi): Do not set call_dummy_address.
2728
2729 2003-08-27 David Carlton <carlton@kealia.com>
2730
2731 From Randolph Chung <tausq@debian.org>:
2732 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2733 compiles with -Wformat-nonliteral -Werror.
2734
2735 2003-08-26 Jim Blandy <jimb@redhat.com>
2736
2737 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2738 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2739 bfd_lookup_symbol, since we only want symbols in code sections.
2740 (look_for_base): Pass zero as the SECT_FLAGS argument to
2741 bfd_lookup_symbol, since we're not concerned about which section
2742 the symbol is in.
2743
2744 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2745
2746 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
2747 we are frameless or the return address register is already known.
2748
2749 2003-08-26 Andrew Cagney <cagney@redhat.com>
2750
2751 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2752 in size. Add comments.
2753
2754 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2755
2756 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
2757 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
2758
2759 2003-08-26 Jason Merrill <jason@redhat.com>
2760
2761 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2762 case out of #ifdef MIPS block.
2763
2764 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
2765
2766 PR java/1322
2767 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2768 available before calling SECT_OFF_TEXT.
2769 * PROBLEMS: Remove description of java/1322.
2770
2771 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2772
2773 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
2774 bof, and nat0-nat127 as pseudo-registers.
2775 (ia64_frame_cache): New struct used to cache frame info.
2776 (ia64_register_reggroup_p): New routine used to override default
2777 register grouping so registers without names are still saved and
2778 restored.
2779 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
2780 pseudo values.
2781 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2782 (ia64_pseudo_register_write): New routine to write pseudo-registers.
2783 (ia64_alloc_frame_cache): New routine to create a new
2784 ia64_frame_cache.
2785 (examine_prologue): Change prototype to add next_frame pointer.
2786 Assume frameless until otherwise proven. Verify that the cfm for
2787 current frame matches the cfm that should occur for the prologues
2788 alloc insn and if equal, mark as not frameless. At end of routine,
2789 if not frameless, calculate registers for the previous frame and store
2790 in the cache, if a cache is provided.
2791 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2792 and pass 0 for next_frame.
2793 (ia64_store_return_value): Change to use convert_typed_floating()
2794 instead of calling ia64_convert_to_raw().
2795 (ia64_extract_return_value): Change to use convert_typed_floating()
2796 instead of calling ia64_convert_to_virtual().
2797 (ia64_frame_cache): New routine to support new frame model.
2798 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2799 (ia64_frame_sniffer): Ditto.
2800 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2801 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2802 (ia64_sigtramp_frame_prev_register): Ditto.
2803 (ia64_sigtramp_frame_sniffer): Ditto.
2804 (ia64_frame_base_address): Ditto.
2805 (ia64_extract_struct_value_address): Change to issue error message.
2806 (ia64_frame_align): New routine to align sp.
2807 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2808 (ia64_push_arguments): Removed. Logic moved to
2809 ia64_push_dummy_call().
2810 (ia64_push_return_address): Ditto.
2811 (ia64_unwind_dummy_id): New function.
2812 (ia64_unwind_pc): Ditto.
2813 (ia64_convert_register_p): Ditto.
2814 (ia64_register_to_value): Ditto.
2815 (ia64_value_to_register): Ditto.
2816 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2817 (ia64_register_byte, ia64_register_raw_size): Ditto.
2818 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2819 (ia64_saved_pc_after_call): Ditto.
2820 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2821 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2822 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2823 (ia64_register_convert_to_raw): Ditto.
2824 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2825 (ia64_init_extra_frame_info): Ditto.
2826 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2827 (ia64_gdbarch_init): Remove registering of deprecated functions that
2828 are no longer used. Add registration of new gdbarch functions.
2829 Remove registering deprecated_write_sp. Replace
2830 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2831 Delete set_gdbarch_deprecated_register_convertible(),
2832 set_gdbarch_deprecated_register_convert_to_virtual(), and
2833 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2834 set_gdbarch_deprecated_register_size(),
2835 set_gdbarch_deprecated_register_bytes(),
2836 set_gdbarch_pcregnum(),
2837 set_gdbarch_deprecated_register_byte(),
2838 set_gdbarch_deprecated_register_raw_size(),
2839 set_gdbarch_deprecated_max_register_raw_size(),
2840 set_gdbarch_deprecated_register_virtual_size(),
2841 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2842 Replace set_gdbarch_deprecated_extract_return_value() with
2843 set_gdbarch_extract_return_value(). Remove calls to:
2844 set_gdbarch_deprecated_saved_pc_after_call();
2845 set_gdbarch_deprecated_frame_chain(),
2846 set_gdbarch_deprecated_frame_saved_pc(),
2847 set_gdbarch_deprecated_frame_init_saved_regs(),
2848 set_gdbarch_deprecated_get_saved_register(),
2849 set_gdbarch_deprecated_call_dummy_words(),
2850 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2851 set_gdbarch_deprecated_init_extra_frame_info(),
2852 set_gdbarch_deprecated_frame_args_address(),
2853 set_gdbarch_deprecated_frame_locals_address(),
2854 and set_gdbarch_deprecated_dummy_write_sp().
2855 Add set_gdbarch_convert_register_p(),
2856 set_gdbarch_register_to_value(),
2857 set_gdbarch_value_to_register(),
2858 set_gdbarch_push_dummy_call(),
2859 set_gdbarch_frame_align(),
2860 set_gdbarch_unwind_dummy_id(),
2861 set_gdbarch_unwind_pc(),
2862 frame_unwind_append_sniffer(),
2863 frame_unwind_append_sniffer(),
2864 and frame_base_set_default().
2865
2866 2003-08-25 Chris Demetriou <cgd@broadcom.com>
2867
2868 * configure.tgt: Document need for special "mipsisa64" handling.
2869 (mipsisa64*-*-linux64): Handle as target linux64.
2870 (mipsisa64*-*-*): Handle as target embed64.
2871
2872 2003-08-18 Michael Chastain <mec@shout.net>
2873
2874 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2875 objfile bug.
2876
2877 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2878
2879 * i387-tdep.h: Update copyright date.
2880 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2881
2882 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2883 CFLAGS games to reflect reality.
2884
2885 2003-08-24 Andrew Cagney <cagney@redhat.com>
2886
2887 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2888 GDB_MULTI_ARCH is always non-zero.
2889 * osabi.c (_initialize_gdb_osabi): Ditto.
2890 (gdbarch_init_osabi): Ditto.
2891 * sparc-tdep.c: Ditto for #if code.
2892
2893 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2894
2895 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2896 Update comments.
2897 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2898 comments.
2899 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2900 x86_64_supply_fxsave.
2901 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2902 x86_64_supply_fxsave.
2903 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2904 x86_64_supply_fxsave.
2905
2906 2003-08-23 Andreas Jaeger <aj@suse.de>
2907
2908 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2909 i387_supply_fxsave.
2910
2911 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2912
2913 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2914 i387_supply_register.
2915 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2916 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2917 i387_supply_fsave.
2918 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2919 i387_supply_fxsave.
2920 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2921 i387_supply_fsave.
2922 * i386bsd-nat.c (supply_fpregset): Adjust call to
2923 i387_supply_fsave.
2924 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2925 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2926 supply_fpregset.
2927 (store_inferior_registers): Remove extraneous whitespace. Call
2928 i387_fill_fsave instead of fill_fpregset.
2929 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2930 (supply_fpregset): Likewise.
2931 * i386v4-nat.c (supply_fpregset): Adjust call to
2932 i387_supply_fsave.
2933 * i386-interix-nat.c (supply_fpregset): Adjust call to
2934 i387_supply_fsave.
2935 * i386-linux-nat.c (supply_fpregset): Adjust call to
2936 i387_supply_fsave.
2937 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2938 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2939 i387supply_fsave and i387_supply_fxsave.
2940 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2941 Incorporate code from `i387_supply_register.
2942 (i387_supply_register): Remove.
2943 (i387_supply_fxsave): Add `regnum' argument.
2944 Update comments.
2945 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2946 prototype.
2947 (i387_supply_register): remove prototype.
2948 Update comments.
2949
2950 2003-08-22 Michael Chastain <mec@shout.net>
2951
2952 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2953 Add lines for files in gdb/testsuite/gdb.cp/* that are
2954 still not 8.3 unique.
2955
2956 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
2957
2958 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2959 TYPE_VPTR_FIELDNO is valid.
2960
2961 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2962
2963 * utils.c (set_width_command): Remove prototypes.
2964 (set_screen_size): New prototype.
2965 (init_page_info): Simplify by fetching the screen size from
2966 Readline. Call set_screen_size.
2967 (set_screen_size): New function.
2968 (set_width): Add missing whitespace in comment.
2969 (set_width_command): Call set_screen_size.
2970 (set_height_command): New function.
2971 (initialize_utils): Fix formatting. Make "set height" command
2972 call set_height_command. Remove redundant code that turns off
2973 pagination if output isn't a terminal. Remove redundant call to
2974 set_width_command.
2975
2976 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2977
2978 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2979 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2980 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2981 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2982 `case' keyword.
2983 (sparc64_register_info): Give the reister with number
2984 SPARC64_STATE_REGNUM a name.
2985 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2986 %asi and %ccr.
2987 (sparc64_push_dummy_call): Take BIAS into account when checking
2988 stcak alignment.
2989 (sparc_software_single_step): Remove assertions that check whether
2990 NPC and NNPC were zero.
2991 (sparc_supply_rwindow): Make public. Merge functionality with
2992 sparc64_supply_rwindow.
2993 (sparc_fill_rwindow): Make public. Merge functionality with
2994 sparc64_fill_rwindow.
2995 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2996 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2997 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2998 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2999 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3000
3001 * reggroups.c: Add whitespace after declarations of local
3002 variables in functions.
3003
3004 2003-08-21 Michael Chastain <mec@shout.net>
3005
3006 * gdbtypes.h: Change array bound type from an int to enum.
3007
3008 2003-08-21 Andrew Cagney <cagney@redhat.com>
3009
3010 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3011 * config/sparc/tm-sparc.h: Ditto.
3012 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3013 unconditionally.
3014 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3015
3016 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3017
3018 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3019 (register_objfile_data, set_objfile_data, objfile_data): New
3020 prototypes.
3021 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3022 prototypes.
3023 (allocate_objfile): Call objfile_alloc_data.
3024 (free_objfile): Call objfile_free_data.
3025 (struct objfile_data): New.
3026 (struct objfile_data_registration): New.
3027 (struct objfile_data_registry): New.
3028 (objfile_data_registry): New variable.
3029 (register_objfile_data): New function.
3030 (objfile_alloc_data, objfile_free_data): New functions.
3031 (set_objfile_data, objfile_data): New functions.
3032 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3033 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3034 (_initialize_dwarf2_frame): New function and prototype.
3035
3036 2003-08-21 Andrew Cagney <cagney@redhat.com>
3037
3038 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3039 a specific architecture.
3040 * arch-utils.h (set_architecture_from_arch_mach): Delete
3041 declaration.
3042 (target_architecture_hook): Delete declaration.
3043 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3044 (default_float_format): Assume GDB_MULTI_ARCH.
3045 (default_double_format): Assume GDB_MULTI_ARCH.
3046 (set_endian_from_file): Delete function.
3047 (arch_ok): Delete function.
3048 (set_arch): Delete function.
3049 (set_architecture_from_arch_mach): Delete function.
3050 (set_architecture_from_file): Delete function.
3051 (set_architecture): Assume GDB_MULTI_ARCH.
3052 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3053
3054 2003-08-21 Mark Kettenis <kettenis@gnu.org>
3055
3056 Rewrite FreeBSD/sparc64 native configuration.
3057 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3058 * sparc64fbsd-nat.c: New file.
3059 * sparc64fbsd-tdep.c: New file.
3060 * sparc64-tdep.c sparc64-tdep.h: New files.
3061 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3062 sparc64fbsd-tdep.o): New dependencies.
3063 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3064 and sparc64fbsd-tdep.c.
3065 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3066 * config/sparc/fbsd.mh: Remove copyright notice.
3067 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3068 sparcbsd-nat.o.
3069 * config/sparc/fbsd.mt: Remove copyright notice.
3070 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3071 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3072 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3073 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3074 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3075 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3076 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3077 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3078 "sparc/tm-sp64.h".
3079 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3080 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3081
3082 2003-08-21 Michael Chastain <mec@shout.net>
3083
3084 * symtab.h: Add doco on the space critical structures and
3085 some measurements of space usage.
3086
3087 2003-08-21 Michael Snyder <msnyder@redhat.com>
3088
3089 * tracepoint.c (trace_dump_command): Trace break address
3090 is subject to DECR_PC_AFTER_BREAK.
3091 (set_traceframe_context): Make "trace_line" an int.
3092 Fixes suggested by Mark Newman <mark.newman@lmco.com>
3093
3094 2003-08-20 Michael Snyder <msnyder@redhat.com>
3095
3096 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
3097 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3098 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
3099 argument passing.
3100 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
3101 functions, replace sh_push_dummy_call.
3102 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3103
3104 2003-08-20 Michael Chastain <mec@shout.net>
3105
3106 * gdbtypes.h (struct main_type): Rearrange to save space.
3107
3108 2003-08-20 Michael Snyder <msnyder@redhat.com>
3109
3110 * trad-frame.c: Comment typo fix.
3111
3112 2003-08-20 Michael Snyder <msnyder@redhat.com>
3113 Kevin Buettner <kevinb@redhat.com>
3114
3115 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3116 (frv_frame_init_saved_regs): Add declaration.
3117 (frame_extra_info): Add new field ``saved_regs''.
3118 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3119 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3120 Update frame related code.
3121 (frv_extract_struct_value_address): Adjust formatting.
3122 * Makefile.in (frv-tdep.o): Update dependencies.
3123 * config/frv/tm-frv.h (target_insert_watchpoint)
3124 (target_remove_watchpoint, target_insert_hw_breakpoint)
3125 (target_remove_hw_breakpoint): Delete these macros.
3126 (remote_insert_watchpoint, remote_remove_watchpoint)
3127 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3128 these declarations.
3129
3130 2003-08-20 Michael Chastain <mec@shout.net>
3131
3132 * defs.h (ENUM_BITFIELD): New macro.
3133 * symtab.h (ENUM_BITFIELD): Use it.
3134 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3135
3136 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3137
3138 * MAINTAINERS (write after approval): Add myself.
3139
3140 2003-08-18 Andrew Cagney <cagney@redhat.com>
3141
3142 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3143 * gdbarch.h, gdbarch.c: Re-generate.
3144 * infcall.c (call_function_by_hand): Adjust the SP by
3145 frame_red_zone_size before allocating any stack space.
3146 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3147 * x86-64-tdep.c (x86_64_frame_align): New function.
3148 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3149
3150 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3151 Remove code adjusting SP so that it skips over the Red Zone.
3152
3153 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3154
3155 * NEWS (New native configurations): Mention FreeBSD/amd64.
3156
3157 2003-08-18 Andrew Cagney <cagney@redhat.com>
3158
3159 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3160 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3161 "m68k_frame_p".
3162 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3163
3164 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3165
3166 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3167
3168 2003-08-18 Michal Ludvig <mludvig@suse.cz>
3169
3170 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3171 Define.
3172 * i386-linux-nat.c: Include "linux-nat.h".
3173 (child_post_startup_inferior): New function.
3174
3175 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3176
3177 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3178 at the start of a frameless function. This probably fixes PR
3179 backtrace/1338.
3180
3181 2003-08-17 Michael Chastain <mec@shout.net>
3182
3183 * symfile.c (find_sym_fns): Remove special case for apollo target.
3184
3185 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3186
3187 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3188 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3189 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3190 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3191 (linux_supports_tracevforkdone): New function.
3192 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3193 TRACEVFORKDONE.
3194 (child_follow_fork): Handle vfork.
3195 (linux_handle_extended_wait): Likewise. Also handle exec.
3196 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3197 * NEWS: Mention fork tracing.
3198
3199 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3200
3201 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3202
3203 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3204
3205 * Makefile.in (i386-linux-nat.o): Update dependencies.
3206 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3207 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3208 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3209 * i386-linux-nat.c: Include "linux-nat.h".
3210 (child_post_startup_inferior): New function.
3211 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3212 * infptrace.c (kill_inferior): Wrap in #ifdef.
3213 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3214 attaching to each LWP.
3215 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3216 (init_lin_lwp_ops): Fill in some more operations.
3217 * linux-nat.h (linux_enable_event_reporting)
3218 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3219 prototypes.
3220 * linux-nat.c (linux_enable_event_reporting): New function.
3221 (child_post_attach, linux_child_post_startup_inferior)
3222 (child_post_startup_inferior, child_follow_fork)
3223 (linux_handle_extended_wait, kill_inferior): New functions.
3224
3225 2003-08-16 Andrew Cagney <cagney@redhat.com>
3226
3227 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3228 * gdbarch.h, gdbarch.c: Re-generate.
3229
3230 2003-08-16 Mark Kettenis <kettenis@gnu.org>
3231
3232 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3233
3234 2003-08-16 Andrew Cagney <cagney@redhat.com>
3235
3236 * NEWS: Mention that "set prompt-escape-char" was deleted.
3237 * top.c (get_prompt_1): Delete function.
3238 (gdb_prompt_escape):
3239 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3240 prompt-escape-char" command.
3241 (MAX_PROMPT_SIZE): Delete macro.
3242 (get_prompt): Simplify, do not call get_prompt_1.
3243
3244 2003-08-16 Andrew Cagney <cagney@redhat.com>
3245
3246 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3247 -Werror. -Wformat-nonliteral problems.
3248
3249 2003-08-15 J. Brobecker <brobecker@gnat.com>
3250
3251 Further multiarching work mostly for hppa64-*-hpux11:
3252 * hppa-tdep.h: New file.
3253 * hppa-tdep.c: #include hppa-tdep.c.
3254 (hppa32_num_regs): Renamed from hppa_num_regs.
3255 (hppa64_num_regs): New constant.
3256 (hppa64_call_dummy_breakpoint_offset): New constant.
3257 (hppa32_call_dummy_length): New constant.
3258 (hppa64_call_dummy_length): New constant.
3259 (hppa32_stack_align): Make name 32bit explicit.
3260 (hppa32_register_virtual_type): Likewise.
3261 (hppa32_extract_return_value): Likewise.
3262 (hppa32_use_struct_convention): Likewise.
3263 (hppa32_store_return_value): Likewise.
3264 (hppa64_register_virtual_type): New function.
3265 (hppa64_extract_return_value): New function.
3266 (hppa64_use_struct_convention): New function.
3267 (hppa64_store_return_value): New function.
3268 (hppa_frame_locals_address): Remove declaration, function does
3269 not exist anymore.
3270 (hppa_register_byte): Add support for PA64 ABI.
3271 (hppa_gdbarch_init): Add support for PA64 ABI.
3272 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3273 Make name 32bit explicit.
3274 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3275 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3276 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3277 (hppa64_hpux_frame_base_before_sigtramp): New function.
3278 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3279 * config/pa/tm-hppa64.h: Remove macros that are no longer
3280 necessary now that the gdbarch vector is properly setup.
3281 Transform some macros into function calls. Some minor cleanup.
3282 * config/pa/tm-hppah.h: Update function calls in macros
3283 following the function renaming in hppa-hpux-tdep.c.
3284 * Makefile.in (hppa_tdep_h): New variable.
3285 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3286
3287 2003-08-14 Michael Snyder <msnyder@redhat.com>
3288
3289 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3290
3291 2003-08-13 J. Brobecker <brobecker@gnat.com>
3292
3293 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3294 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3295 routine.
3296
3297 2003-08-13 Michael Snyder <msnyder@redhat.com>
3298
3299 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3300 (frv_saved_pc_after_call): Use deprecated ftype.
3301 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3302 (frv_remote_translate_xfer_address): Remove.
3303 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3304
3305 2003-08-13 J. Brobecker <brobecker@gnat.com>
3306
3307 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3308 initialization after the common gdbarch initialization, not before.
3309
3310 2003-08-13 J. Brobecker <brobecker@gnat.com>
3311
3312 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3313 (ADDR_BITS_REMOVE): Remove, redundant.
3314
3315 2003-08-13 J. Brobecker <brobecker@gnat.com>
3316
3317 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3318 gdbarch method to clear the 2 low bits of text addresses.
3319
3320 2003-08-12 Andrew Cagney <cagney@redhat.com>
3321
3322 * Makefile.in (dsrec.o): Update dependencies.
3323 * dsrec.c: Include "gdb_assert.h".
3324 (make_srec): Use snprintf instead of sprintf, use a literal format
3325 string.
3326
3327 2003-08-12 Andrew Cagney <cagney@redhat.com>
3328
3329 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3330 FRAME_OBSTACK_ZALLOC.
3331
3332 2003-08-12 Kevin Buettner <kevinb@redhat.com>
3333
3334 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3335 SSE registers.
3336
3337 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3338
3339 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3340 amd64fbsd_sc_reg_offset): Add extern declarations.
3341 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3342 declarations.
3343
3344 2003-08-11 Ben Elliston <bje@wasabisystems.com>
3345
3346 * MAINTAINERS (write after approval): Update my mail address.
3347
3348 2003-08-10 Andrew Cagney <cagney@redhat.com>
3349
3350 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3351
3352 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3353
3354 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3355 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3356 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3357 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3358 i386bsd_sc_reg_offset): Add extern declarations.
3359 * i386obsd-nat.c: Include "i386-tdep.h"
3360 (_initialize_i386obsd_nat): Remove extern declarations.
3361 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3362 declarations.
3363 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3364 declarations.
3365
3366 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3367 instead of frame_read_register.
3368 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3369 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3370 SP_REGNUM.
3371 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3372 instead of frame_unwind_unsigned_register. Use
3373 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3374 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3375 instead of read_register. Use builtin_type_void_data_ptr instead
3376 of builtin_type_void_func_ptr when extracting the address of the
3377 jmp_buf.
3378 (i386_extract_return_value, i386_store_return_value,
3379 i386_pseudo_register_read, i386_pseudo_register_write): Use
3380 register_size instead REGISTER_RAW_SIZE.
3381
3382 2003-08-10 Andrew Cagney <cagney@redhat.com>
3383
3384 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3385 sprintf. Make "name" constant.
3386
3387 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3388
3389 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3390 instead of frame_read_register.
3391 (i387_print_float_info): Use get_frame_register and
3392 get_frame_register_unsigned instead of frame_register_read.
3393
3394 * i386fbsd-nat.c: Include "i386-tdep.h".
3395 (child_resume): Make `eflags' an ULONGEST. Use
3396 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3397 instead of register_read and register_write.
3398
3399 * i386bsd-nat.c (fetch_inferior_registers,
3400 store_inferior_registers): Don't use && at the end of a line.
3401 (_initialize_i386bsd_nat): Fix typo.
3402
3403 * frame.c (_initialize_frame): Add missing backslash.
3404
3405 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3406 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3407 and supply_register instead of manipulating the register buffer
3408 directly.
3409
3410 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3411 * config/i386/nm-i386sol2.h
3412 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3413
3414 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3415 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3416 instructions that GCC likes to mingle into the prologue. Fixes
3417 gdb/1253 and gdb/1255.
3418
3419 2003-08-09 Andrew Cagney <cagney@redhat.com>
3420
3421 Fix GDB PR cli/926.
3422 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3423 * command.h (add_setshow_uinteger_cmd): Declare.
3424 * frame.c (set_backtrace_cmd): New function.
3425 (show_backtrace_cmd): New function.
3426 * frame.c (_initialize_frame): Replace "set/show
3427 backtrace-below-main" with "set/show backtrace past-main". Add
3428 command "set/show backtrace limit".
3429 (backtrace_past_main): Rename "backtrace_below_main".
3430 (backtrace_limit): New variable.
3431 (get_prev_frame): Update. Check the backtrace_limit.
3432
3433 2003-08-09 Andrew Cagney <cagney@redhat.com>
3434
3435 * defs.h (xstrprintf): Declare.
3436 * utils.c (xstrprintf): New function.
3437 * breakpoint.c (insert_breakpoints): Replace sprintf and
3438 non-literal format strings, with xstrprintf and cleanups.
3439 (delete_breakpoint,breakpoint_re_set): Ditto.
3440 (commands_command, insert_breakpoints): Ditto.
3441 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3442 (break_at_finish_command_1): Ditto.
3443
3444 2003-08-09 Andrew Cagney <cagney@redhat.com>
3445
3446 * MAINTAINERS (language support): List Adam Fedor as Objective C
3447 maintainer.
3448
3449 2003-08-08 J. Brobecker <brobecker@gnat.com>
3450
3451 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3452 are now multiarched.
3453
3454 2003-08-08 J. Brobecker <brobecker@gnat.com>
3455
3456 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3457 longer necessary now that hppa64 is partially multiarch'ed.
3458
3459 2003-08-08 Andrew Cagney <cagney@redhat.com>
3460
3461 * interps.c (interp_set): Check for a NULL "old_interp".
3462
3463 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3464
3465 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3466 (install-only): Support DESTDIR.
3467 (uninstall): Likewise.
3468 (install-gdbtk): Likewise.
3469
3470 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
3471
3472 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3473 contains something meaningful at all times.
3474
3475 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
3476
3477 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
3478
3479 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3480
3481 * MAINTAINERS (write after approval): Added self.
3482
3483 2003-08-07 Andrew Cagney <cagney@redhat.com>
3484
3485 * inferior.h (AT_SYMBOL): Define.
3486 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3487 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3488 * mips-tdep.c (mips_call_dummy_address): Delete function.
3489 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3490 set call_dummy_address.
3491
3492 2003-08-07 Andrew Cagney <cagney@redhat.com>
3493
3494 * language.c (op_error): Delete function.
3495 (binop_type_check): Delete function.
3496 * language.h (type_op_error, range_op_error): Delete macros.
3497 (op_error): Delete declaration.
3498
3499 2003-08-07 Andrew Cagney <cagney@redhat.com>
3500
3501 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3502
3503 2003-08-07 Michal Ludvig <mludvig@suse.cz>
3504
3505 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
3506 (x86_64_push_arguments): Skip the red zone.
3507
3508 2003-08-05 Andrew Cagney <cagney@redhat.com>
3509
3510 * reggroups.c (reggroup_next): Check for the final entry.
3511
3512 2003-08-04 Andrew Cagney <cagney@redhat.com>
3513
3514 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3515 * cli/cli-script.c (define_command): Call query directly, instead
3516 of passing it a buffer.
3517 * ocd.c (ocd_error): Pass error a constant format string.
3518 * remote-mips.c (mips_error): Use fputs_filtered.
3519
3520 * solib-svr4.c (_initialize_svr4_solib): Update
3521 register_gdbarch_data call.
3522 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3523
3524 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3525 (register_gdbarch_data): Delete "free" parameter. Update
3526 comments.
3527 * gdbarch.h, gdbarch.c: Re-generate.
3528 * reggroups.c (_initialize_reggroup): Update.
3529 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3530 * frame-base.c (_initialize_frame_base): Update.
3531 * frame-unwind.c (_initialize_frame_unwind): Update.
3532 * user-regs.c (_initialize_user_regs): Update.
3533 * remote.c (_initialize_remote): Update.
3534 * regcache.c (_initialize_regcache): Update.
3535
3536 * regcache.c (xfree_regcache_descr): Delete function.
3537 (_initialize_regcache): Update call to register_gdbarch_data.
3538 (init_regcache_descr, init_legacy_regcache_descr): Use
3539 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3540
3541 * remote.c (free_remote_state): Delete function.
3542 (_initialize_remote): Update register_gdbarch_data.
3543 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3544 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3545
3546 2003-08-04 Andrew Cagney <cagney@redhat.com>
3547
3548 * reggroups.c (struct reggroup_el): Define.
3549 (struct reggroups): Delete field "nr_group". Replace array
3550 "group" with a "first" to "last" linked list.
3551 (reggroups_init): Update. Allocate using gdbarch's obstack.
3552 (reggroups_free): Delete function.
3553 (add_group): Update. Add "el" parameter.
3554 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3555 (default_groups): Update.
3556 (reggroup_next): Replace reggroups.
3557 (reggroups_dump): Update.
3558 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3559 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3560 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3561
3562 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
3563
3564 * Makefile.in (tui-interp.o): Update dependencies.
3565
3566 2003-08-04 David Carlton <carlton@kealia.com>
3567
3568 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3569 to internal_error call.
3570 * source.c (forward_search_command): Add "%s" format argument.
3571 (reverse_search_command): Ditto.
3572 * top.c (quit_confirm): Ditto.
3573 * cli/cli-setshow.c (do_setshow_command): Ditto.
3574 * cp-valprint.c (cp_print_class_method): Replace
3575 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3576 (cp_print_class_member): Ditto.
3577 * event-top.c (command_line_handler): Ditto.
3578 * linux-proc.c (linux_info_proc_cmd): Ditto.
3579 * p-typeprint.c (pascal_type_print_base): Ditto.
3580 * p-valprint.c (pascal_object_print_class_method): Ditto.
3581 (pascal_object_print_class_member): Ditto.
3582 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3583 * remote.c (remote_cisco_section_offsets): Ditto.
3584 * top.c (command_line_input): Ditto.
3585 * utils.c (vwarning,error_stream,quit): Ditto.
3586 * valprint.c (print_floating,print_binary_chars)
3587 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3588
3589 2003-08-04 Andrew Cagney <cagney@redhat.com>
3590
3591 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3592
3593 2003-08-02 Andrew Cagney <cagney@redhat.com>
3594
3595 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3596 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3597 amd64fbsd-nat.c.
3598
3599 2003-08-02 Andrew Cagney <cagney@redhat.com>
3600
3601 * Makefile.in: Update all dependencies and definitions.
3602
3603 2003-08-02 Adam Fedor <fedor@gnu.org>
3604
3605 * linespec.c (is_objc_method_format): New function
3606 (decode_line_1, locate_first_half): Use it.
3607 Fixes PR objc/1298
3608
3609 2003-08-01 Andrew Cagney <cagney@redhat.com>
3610
3611 * NEWS: Mention that m32r is multi-arch.
3612 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3613 * configure.tgt: Recognize m32r-*-*.
3614 * config/m32r/tm-m32r.h: Delete file.
3615 * config/m32r/m32r.mt: New file.
3616 * m32r-rom.c (m32r_upload_command): Use hostent only when
3617 gethostname succeeds, in order to avoid a compilation
3618 warning.
3619 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3620 compiler warning.
3621
3622 2003-08-01 Michael Snyder <msnyder@redhat.com>
3623
3624 * sh-tdep.c (sh_frame_align): New gdbarch method.
3625 (sh_gdbarch_init): Set up frame_align method.
3626
3627 2003-07-31 Michael Snyder <msnyder@redhat.com>
3628
3629 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3630 which is already covered by the new frames infrastructure.
3631
3632 2003-07-31 Andrew Cagney <cagney@redhat.com>
3633
3634 * user-regs.c (struct user_reg): Add "next" link.
3635 (struct user_regs): Replace "user" with "first" and "last" links.
3636 (append_user_reg): Add pre-allocated "reg" parameter.
3637 (builtin_user_regs): Provide initial value for "last".
3638 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3639 (user_regs_init): Allocate memory from the gdbarch obstack.
3640 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3641 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3642 linked list.
3643 (usernum_to_user_reg): New function.
3644 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3645 (value_of_user_reg): Use usernum_to_user_reg.
3646 (user_regs_free): Delete function.
3647 (_initialize_user_regs): Update register_gdbarch_data call.
3648
3649 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
3650
3651 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3652
3653 2003-07-30 Michael Snyder <msnyder@redhat.com>
3654
3655 * value.h (value_being_returned): Add a struct_addr argument.
3656 * infcall.c (call_function_by_hand): Pass struct_addr to
3657 value_being_returned.
3658 * infcmd.c (print_return_value): Pass zero as struct_addr.
3659 * values.c (value_being_returned): If struct_addr is passed,
3660 use it instead of trying to recover it from the inferior.
3661
3662 2003-07-30 Kevin Buettner <kevinb@redhat.com>
3663
3664 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3665 the prologue analyzer won't need to attempt to extract the pc
3666 value from the woefully incomplete dummy frame.
3667 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3668 possible. Disable code which modifies the frame.
3669
3670 2003-07-28 Andrew Cagney <cagney@redhat.com>
3671
3672 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3673 to level 2.
3674 (annotate_breakpoints_table, annotate_record): Ditto.
3675 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3676 (annotate_field_name_end, annotate_field_value): Ditto.
3677 (annotate_field_end, annotate_frame_source_begin): Ditto.
3678 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3679 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3680 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3681 (annotate_frame_address_end, annotate_frame_address): Ditto.
3682 (annotate_frame_args, annotate_frame_end): Ditto.
3683 (annotate_frame_where, annotate_arg_begin): Ditto.
3684 (annotate_arg_name_end, annotate_arg_value): Ditto.
3685 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3686 (annotate_function_call, annotate_signal_name): Ditto.
3687 (annotate_signal_string, annotate_signal_name_end): Ditto.
3688 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3689 (annotate_value_begin, annotate_value_history_value): Ditto.
3690 (annotate_value_history_end, annotate_value_end): Ditto.
3691 (annotate_display_begin, annotate_display_number_end): Ditto.
3692 (annotate_display_format, annotate_display_expression): Ditto.
3693 (annotate_display_expression_end, annotate_display_value): Ditto.
3694 (annotate_display_end, annotate_array_section_begin): Ditto.
3695 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3696 (annotate_elt, annotate_array_section_end): Ditto.
3697
3698 2003-07-28 Andrew Cagney <cagney@redhat.com>
3699
3700 * regcache.c (struct regcache_descr): Update comments on
3701 nr_raw_registers.
3702 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3703 sizeof_raw_register_valid_p.
3704 (init_regcache_descr): Set nr_raw_registers and
3705 sizeof_raw_register_valid_p before calling
3706 init_legacy_regcache_descr.
3707
3708 2003-07-28 Andrew Cagney <cagney@redhat.com>
3709
3710 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3711 MOD NUM_REGS.
3712
3713 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
3714
3715 * thread.c (info_threads_command): Use get_selected_frame ().
3716 Check that there is at least one non-sentinel frame.
3717
3718 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3719
3720 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3721 (m68hc11_pop_frame): Remove.
3722 (m68hc11_frame_saved_pc): Remove.
3723 (m68hc11_frame_chain): Remove.
3724 (m68hc11_frame_init_saved_regs): Remove.
3725 (m68hc11_init_extra_frame_info): Remove.
3726 (m68hc11_store_struct_return): Remove.
3727 (m68hc11_saved_pc_after_call): Remove.
3728
3729 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3730
3731 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3732 frame unwind information.
3733 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3734 and adapted for frame unwinding.
3735 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3736 (m68hc11_unwind_pc): New function.
3737 (m68hc11_frame_unwind_cache): New function to analyze frames.
3738 (m68hc11_frame_this_id): New function to create new frame struct.
3739 (m68hc11_frame_prev_register): New function to unwind a register from
3740 the frame.
3741 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3742 (m68hc11_frame_p): New function for the above.
3743 (m68hc11_frame_base_address): New function to return fp of frame.
3744 (m68hc11_frame_args_address): Update for frame.
3745 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3746 (m68hc11_unwind_sp): New function.
3747 (m68hc11_unwind_dummy_id): New function.
3748 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3749 calls.
3750
3751 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3752
3753 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3754 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3755 when we are beyond the current pc.
3756
3757 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3758
3759 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3760 from m68hc11_push_arguments.
3761 (m68hc11_push_arguments): Remove.
3762 (m68hc11_push_return_address): Remove.
3763 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3764 handlers; remove deprecated_extra_stack_alignment_needed.
3765
3766 2003-07-27 Andrew Cagney <cagney@redhat.com>
3767
3768 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3769 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3770 REAL_PC and not the pointer.
3771 * hppa-hpux-tdep.c: Include frame.h
3772
3773 2003-07-27 Andrew Cagney <cagney@redhat.com>
3774
3775 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3776 GDB_MULTI_ACH_PARTIAL.
3777
3778 2003-07-27 Andrew Cagney <cagney@redhat.com>
3779
3780 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3781 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3782 operator at start and not end of line.
3783 (decode_prologue): Ditto.
3784 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3785 frame_unwind_register_unsigned instead of
3786 frame_unwind_unsigned_register.
3787 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3788 read_register.
3789 (m32r_push_dummy_call): Use register_size instead of
3790 REGISTER_RAW_SIZE.
3791 (m32r_frame_sniffer): Replace m32r_frame_p.
3792 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3793 * m32r-rom.c (report_transfer_performance): Delete extern
3794 declaration.
3795 (m32r_load, m32r_upload_command): Use print_transfer_performance
3796 instead of report_transfer_performance.
3797 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3798 / add_show_from_set.
3799
3800 2003-07-26 Andrew Cagney <cagney@redhat.com>
3801
3802 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3803 store_return_value and extract_struct_value_address.
3804
3805 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
3806
3807 PR c++/1267
3808 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3809 NULL, default to the section containing PC.
3810
3811 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3812
3813 * NEWS: Mention "regs" deprecated for m68hc11 too.
3814
3815 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3816 (m68hc11_print_register): New function to print out one register.
3817 (m68hc11_print_registers_info): New function to print registers.
3818 (show_regs): Deprecate and use the above.
3819 (m68hc11_gdbarch_init): Install the print_registers_info.
3820
3821 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3822
3823 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3824 that we have a SIGTRAP before returning non-zero.
3825
3826 2003-07-23 Michal Ludvig <mludvig@suse.cz>
3827 Elena Zannoni <ezannoni@redhat.com>
3828
3829 * linespec.c (decode_line_2): Avoid crash if
3830 find_function_start_sal() returns empty record.
3831
3832 2003-07-23 Andreas Schwab <schwab@suse.de>
3833
3834 * ia64-tdep.c (ia64_print_insn): New function.
3835 (ia64_gdbarch_init): Set print_insn to it.
3836 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3837 deprecated_tm_print_insn_info.
3838
3839 2003-07-22 Michael Snyder <msnyder@redhat.com>
3840
3841 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3842 handle 8-bit returns (long long).
3843 (h8300h_extract_return_value): Ditto.
3844 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3845
3846 2003-07-22 Andrew Cagney <cagney@redhat.com>
3847
3848 * gdbarch.c Include "gdb_obstack.h".
3849 (struct gdbarch): Add an "obstack".
3850 (alloc_gdbarch_data): Allocate the gdbarch data using
3851 GDBARCH_OBSTACK_CALLOC.
3852 (free_gdbarch_data): Delete function.
3853 (gdbarch_obstack_zalloc): New function.
3854 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3855 Assert that the architecture is not initialized.
3856 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3857 vector from the obstack.
3858 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3859 architecture obstack.
3860 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3861 (set_gdbarch_data): Assert that the data is not initialized.
3862 (struct gdbarch_data): Delete member "free".
3863 (register_gdbarch_data): Do not initialize "free".
3864 * gdbarch.h, gdbarch.c: Re-generate.
3865
3866 2003-07-22 Andrew Cagney <cagney@redhat.com>
3867
3868 * configure.in (build_warnings): Add -Wformat-nonliteral.
3869 * configure: Re-generate.
3870
3871 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3872
3873 * dwarf2loc.c (locexpr_describe_location): Fix typos.
3874
3875 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3876
3877 * findvar.c (read_var_value): Remove case for thread local storage
3878 variables. It is now entirely handled by the dwarf2 location
3879 expression code.
3880 * printcmd.c (address_info): Ditto.
3881 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3882 enumeration value.
3883 (struct symbol): Remove objfile field, which was used by
3884 LOC_THREAD_LOCAL_STATIC only.
3885 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3886 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3887 usage of objfile pointer.
3888 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3889 thread local variables.
3890 Add include of objfiles.h.
3891 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3892 storage variables.
3893 * Makefile.in (dwarf2loc.o): Update dependencies.
3894
3895 2003-07-22 Andrew Cagney <cagney@redhat.com>
3896
3897 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3898 get_frame_base.
3899 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3900 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3901 (struct value): Add opaque declaration.
3902 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3903
3904 2003-07-21 Andrew Cagney <cagney@redhat.com>
3905
3906 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3907 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3908
3909 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3910
3911 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3912 regcache_cooked_read_unsigned instead of read_register.
3913 (m68hc11_saved_pc_after_call): Likewise.
3914 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3915 instead of write_register.
3916 (m68hc11_register_type): New function.
3917 (m68hc11_register_virtual_type): Remove.
3918 (m68hc11_store_return_value): Convert to use the regcache.
3919 (m68hc11_extract_struct_value_address): Likewise.
3920 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3921 m68hc11_register_type; undeprecate store_return_value and
3922 extract_struct_value_address.
3923
3924 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3925
3926 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3927 and translate to use regcache.
3928 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3929
3930 2003-07-18 Andrew Cagney <cagney@redhat.com>
3931
3932 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3933 * gdbarch.h, gdbarch.c: Re-generate.
3934 * i386-tdep.c (i386_gdbarch_init): Do not set
3935 DWARF2_BUILD_FRAME_INFO.
3936 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3937 unconditionally.
3938 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3939 DWARF2_BUILD_FRAME_INFO.
3940
3941 2003-07-18 Andrew Cagney <cagney@redhat.com>
3942
3943 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3944 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3945
3946 2003-07-18 Andrew Cagney <cagney@redhat.com>
3947
3948 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3949 frame_unwind_address_in_block, instead of frame_pc_unwind.
3950 (dwarf2_frame_cache): Ditto.
3951
3952 2003-07-18 Andrew Cagney <cagney@redhat.com>
3953
3954 * user-regs.h (struct gdbarch): Declare opaque.
3955 * ui-out.h (struct ui_file): Declare opaque.
3956 * dwarf2-frame.h (struct frame_info): Declare opaque.
3957
3958 2003-07-18 Kris Warkentin <kewarken@qnx.com>
3959
3960 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3961 #include "...".
3962 (procfs_meminfo): Change strerror to safe_strerror.
3963 (procfs_can_run): Remove K&R badness.
3964
3965 2003-07-17 Michael Snyder <msnyder@redhat.com>
3966
3967 * remote-sim.c: Comment typo fix.
3968
3969 2003-07-17 Andrew Cagney <cagney@redhat.com>
3970
3971 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3972 configure.
3973 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3974 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3975 GDB_MULTI_ARCH_PARTIAL.
3976
3977 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3978
3979 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3980 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3981 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3982
3983 2003-07-16 Theodore A. Roth <troth@openavr.org>
3984
3985 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3986 found.
3987 (avr_frame_unwind_cache): Don't unwind FP for main.
3988 Update a comment.
3989 Save the computed prev_sp.
3990 (avr_saved_regs_unwinder): Remove function.
3991 (avr_frame_prev_register): Use PC unwind logic from
3992 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3993
3994 2003-07-16 Andrew Cagney <cagney@redhat.com>
3995
3996 * frame-base.h (frame_base_p_ftype): Delete definition.
3997 (frame_base_append_predicate): Delete declaration.
3998 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3999 (frame_unwind_append_predicate): Delete declaration.
4000 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4001 (append_predicate): Delete parameter "p".
4002 (frame_unwind_append_predicate): Delete function.
4003 (frame_unwind_append_sniffer): Update call to append_predicate.
4004 (frame_unwind_free): Delete function.
4005 (_initialize_frame_unwind): Pass NULL as "free" to
4006 register_gdbarch_data.
4007 (frame_unwind_init): Append the dummy_frame_sniffer.
4008 (frame_unwind_find_by_frame): Simplify.
4009 * frame-base.c (struct frame_base_table): Delete field "p".
4010 (append_predicate): Delete parameter "p".
4011 (frame_base_append_predicate): Delete function.
4012 (frame_base_append_sniffer): Update call to append_predicate.
4013 (frame_base_free): Delete function.
4014 (frame_base_find_by_frame): Simplify.
4015 (_initialize_frame_base): Pass NULL as "free" to
4016 register_gdbarch_data.
4017 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4018 (x86_64_sigtramp_frame_sniffer): Replace
4019 "x86_64_sigtramp_frame_p".
4020 (x86_64_init_abi): Set the frame unwind sniffers.
4021 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4022 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4023 (m68k_gdbarch_init): Set the frame unwind sniffers.
4024 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4025 "i386_sigtramp_frame_p".
4026 (i386_frame_sniffer): Replace "i386_frame_p".
4027 (i386_gdbarch_init): Set the frame unwind sniffers.
4028 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4029 (avr_gdbarch_init): Set the frame unwind sniffers.
4030 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4031 "alpha_sigtramp_frame_p"
4032 (alpha_heuristic_frame_sniffer): Replace
4033 "alpha_heuristic_frame_p".
4034 (alpha_gdbarch_init): Set the frame unwind sniffers.
4035 (alpha_dwarf2_init_abi): Ditto.
4036 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4037 "alpha_debug_frame_p".
4038 (alpha_mdebug_frame_base_sniffer): Replace
4039 "alpha_mdebug_frame_base_p".
4040 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4041 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4042 (d10v_gdbarch_init): Set the frame unwind sniffer.
4043 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4044 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4045 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4046 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4047 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4048 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4049
4050 2003-07-16 Michael Snyder <msnyder@redhat.com>
4051
4052 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4053 should go thru sh_dsp_register_sim_regno, else the dsp regs
4054 will not get the right values.
4055
4056 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4057
4058 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4059 deprecated_store_floating by call to store_typed_floating.
4060 (sh_sh4_register_convert_to_raw): Substitute call to
4061 deprecated_extract_floating by call to extract_typed_floating.
4062
4063 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4064
4065 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4066
4067 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4068
4069 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4070 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4071 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4072 as possible.
4073 (do_pseudo_register): Remove.
4074 (sh_push_dummy_code): New function.
4075 (sh64_store_struct_return): Rename from sh_store_struct_return.
4076 Only called for sh64 now.
4077 (sh_extract_struct_value_address): Regcache'ify.
4078 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4079 and accomodate new tasks.
4080 (sh64_push_return_address): Rename from sh_push_return_address.
4081 Only called for sh64 now.
4082 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4083 Regcache'ify.
4084 (sh3e_sh4_extract_return_value): Regcache'ify.
4085 (sh_default_store_return_value): Ditto.
4086 (sh3e_sh4_store_return_value): Ditto.
4087 (sh_default_register_byte): Remove.
4088 (sh_sh4_register_byte): Remove.
4089 (sh_default_register_raw_size): Remove.
4090 (sh_sh4_register_raw_size): Remove.
4091 (sh_register_virtual_size): Remove.
4092 (sh_sh3e_register_virtual_type): Remove.
4093 (sh_sh3e_register_type): New function.
4094 (sh_sh4_register_virtual_type): Remove.
4095 (sh_sh4_register_type): New function.
4096 (sh_default_register_virtual_type): Remove.
4097 (sh_default_register_type): New function.
4098 (do_fv_register_info): Add parameters to accomodate call from
4099 sh_print_registers_info.
4100 (do_dr_register_info): Ditto.
4101 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4102 Add parameters to accomodate call from sh_print_registers_info.
4103 (sh_do_fp_register): Ditto.
4104 (sh64_do_pseudo_register): Call do_dr_register_info,
4105 do_fv_register_info and sh_do_fp_register with default parameters.
4106 (sh_do_register): Add parameters to accomodate call from
4107 sh_print_registers_info.
4108 (sh_print_register): Ditto.
4109 (sh_print_registers_info): Rename from sh_do_registers_info.
4110 Add parameters to be used as gdbarch_print_registers_info
4111 implementation. Accomodate removed do_pseudo_register function
4112 pointer.
4113 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4114 function pointer. Call sh_print_register with default parameters.
4115 (sh64_do_registers_info): Call sh_print_registers_info instead of
4116 sh_do_registers_info.
4117 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4118 detection of deprecated vs. non-deprecated functionality.
4119 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4120 function pointer assignments by direct function calls.
4121
4122 2003-07-15 Andrew Cagney <cagney@redhat.com>
4123
4124 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4125 (frame_register_unwind, create_new_frame): Ditto.
4126 (legacy_get_prev_frame, get_frame_type): Ditto.
4127 (get_frame_base_address): Use frame_base_find_by_frame.
4128 (get_frame_locals_address): Use frame_base_find_by_frame.
4129 (get_frame_args_address): Use frame_base_find_by_frame.
4130 * frame-base.h (frame_base_sniffer_ftype): Declare.
4131 (frame_base_append_sniffer): Declare.
4132 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4133 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4134 (frame_base_append_sniffer): New function.
4135 (frame_base_append_predicate): Add a NULL sniffer.
4136 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4137 (struct frame_base_table): Add "sniffer".
4138 (frame_base_free): Free the "sniffer" table.
4139 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4140 (frame_unwind_append_sniffer): Declare.
4141 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4142 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4143 (struct frame_unwind_table): Add "sniffer", delete "middle".
4144 (append_predicate): Add "sniffer" parameter, append the sniffer.
4145 (frame_unwind_init): Update append_predicate call.
4146 (frame_unwind_append_sniffer): New function.
4147 (frame_unwind_append_predicate): Update append_predicate call.
4148 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4149
4150 2003-07-15 Andrew Cagney <cagney@redhat.com>
4151
4152 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4153 before code inhibiting repeated unwind attempts. Add to
4154 commentary on that test's problems.
4155 * blockframe.c (inside_main_func): Look for "main" in the minimal
4156 symbol table.
4157 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4158 identical.
4159
4160 2003-07-15 Andrew Cagney <cagney@redhat.com>
4161
4162 * complaints.c (struct explanation): Define.
4163 (struct complaints): Change type of "explanation" to "struct
4164 explanation".
4165 (symfile_explanations): Convert to a "struct explanation" table.
4166 (vcomplaint): Update.
4167
4168 2003-07-15 Michal Ludvig <mludvig@suse.cz>
4169
4170 * x86-64-linux-nat.c (regmap): Removed.
4171 (supply_gregset, fill_gregset): Call
4172 x86_64_linux_(fill,supply)_gregset functions.
4173 * x86-64-linux-tdep.c (USER_*): New defines.
4174 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4175 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4176 New functions.
4177 (fetch_core_registers): Ditto.
4178 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4179 * x86-64-linux-tdep.h: New file.
4180 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4181 and core-regset.o.
4182 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4183
4184 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4185
4186 * x86-64-tdep.c (x86_64_store_return_value): Use
4187 regcache_cooked_write_part instead of regcache_cooked_write.
4188
4189 * configure.host: Add x86_64-*-freebsd*.
4190 * configure.tgt: Add x86_64-*-freebsd*.
4191 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4192 * amd64fbsd-nat.c: New file.
4193 * amd64fbsd-tdep.c: New file.
4194 * config/i386/nm-fbsd64.h: New file.
4195 * config/i386/fbsd64.mh: New file.
4196 * config/i386/fbsd64.mt: New file.
4197
4198 2003-07-11 Mark Kettenis <kettenis@gnu.org>
4199
4200 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4201 `sc_regs_offset' and `sc_fpregs_offset'.
4202 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4203 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4204 (alpha_sigtramp_register_address): Rewrite to use new members of
4205 `struct gdbarch_tdep'.
4206 (alpha_gdbarch_init): Initialize new members of struct
4207 gdbarch_tdep'.
4208 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4209 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4210 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4211 (alphafbsd_pc_in_sigtramp): Implement.
4212 (alphafbsd_sigtramp_offset): New function.
4213 (alphafbsd_sigcontext_addr): New function.
4214 (alphafbsd_init_abi): Initialize signal trampoline related members
4215 of `struct gdbarch_tdep'.
4216 (_initialize_alphafbsd_tdep): Add prototype.
4217
4218 2003-07-11 Theodore A. Roth <troth@openavr.org>
4219
4220 * Makefile.in (install-only): Quote sed expression when generating
4221 transformed_name.
4222
4223 2003-07-11 Richard Henderson <rth@redhat.com>
4224
4225 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4226 * dwarf2-frame.c: Include complaints.h.
4227 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4228 variable initialization; return NULL on error.
4229 (decode_frame_entry): New.
4230
4231 2003-07-11 Andrew Cagney <cagney@redhat.com>
4232
4233 * frame.h (frame_address_in_block): Delete declaration.
4234 * blockframe.c (frame_address_in_block): Delete function.
4235 (get_frame_block): Use get_frame_address_in_block.
4236 (block_innermost_frame): Ditto.
4237 * stack.c (print_frame, backtrace_command_1): Ditto.
4238
4239 * frame.h (get_frame_address_in_block): Declare.
4240 (frame_unwind_address_in_block): Declare.
4241 * frame.c (frame_unwind_address_in_block): New function.
4242 (get_frame_address_in_block): New function.
4243
4244 2003-07-10 Andrew Cagney <cagney@redhat.com>
4245
4246 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4247 pre-default. Note: re-generate has no effect.
4248
4249 2003-07-10 Andrew Cagney <cagney@redhat.com>
4250
4251 * gdbarch.sh: When a variable, but not a function, compare against
4252 0. Fix problem in previous patch.
4253 * gdbarch.c: Re-generate.
4254
4255 2003-07-10 Andrew Cagney <cagney@redhat.com>
4256
4257 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4258 functions against NULL, not 0.
4259 * gdbarch.c: Re-generate.
4260
4261 2003-07-10 Fred Fish <fnf@ninemoons.com>
4262
4263 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4264 null string instead of a null pointer.
4265 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4266
4267 2003-07-09 Michael Snyder <msnyder@redhat.com>
4268
4269 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4270
4271 2003-07-09 Mark Kettenis <kettenis@gnu.org>
4272
4273 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4274 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4275 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4276 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4277 * x86-64-tdep.c: ... from here.
4278
4279 2003-07-09 Andreas Schwab <schwab@suse.de>
4280
4281 * m68k-tdep.h (enum struct_return): Define.
4282 (struct gdbarch_tdep): Add struct_return.
4283 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4284 bytes are padded to the right, not to the left. Pass struct value
4285 address in register %a1, not on stack.
4286 (m68k_use_struct_convention): New function.
4287 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4288 struct_return in tdep to pcc_struct_return.
4289 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4290 reg_struct_return.
4291
4292 2003-07-09 Joel Brobecker <brobecker@gnat.com>
4293
4294 * somread.c (som_symfile_offsets): Fix compilation error.
4295
4296 2003-07-09 Andrew Cagney <cagney@redhat.com>
4297
4298 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4299 Add comments about the checks.
4300
4301 2003-07-08 Andrew Cagney <cagney@redhat.com>
4302
4303 * Makefile.in: Make dependency section headers consistent.
4304 (config_h): Move to $BUILD headers section.
4305 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4306 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4307 (ada-exp.tab.c): Move to YACC/LEX section.
4308 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4309 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4310
4311 2003-07-08 Kris Warkentin <kewarken@qnx.com>
4312
4313 * nto-procfs.c: Cleaned up a bunch of ARI hits.
4314 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4315 of strerror with safe_strerror, use ISO C function definitions,
4316 and replace instances of sprintf with snprintf.
4317
4318 2003-07-07 Andrew Cagney <cagney@redhat.com>
4319
4320 * frame.c (get_prev_frame): Enable check for identical frames.
4321 Update comments. Update error messages.
4322
4323 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4324
4325 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4326
4327 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4328
4329 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4330 sort_symtab_syms, no longer necessary.
4331
4332 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4333
4334 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4335
4336 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4337
4338 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4339 (mips_register_byte): Likewise.
4340
4341 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4342
4343 * Makefile.in (sparc_tdep_h): New.
4344 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4345 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4346 * sparc-linux-nat.c: Include "sparc-tdep.h".
4347 * sparc-nat.c: Likewise.
4348 * sparc-tdep.c: Likewise.
4349 * sparc64nbsd-nat.c: Likewise.
4350 * sparcnbsd-nat.c: Likewise.
4351 * sparcnbsd-tdep.c: Likewise.
4352 * sparc-tdep.h: New file.
4353 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4354 and sparc_npc_regnum.
4355
4356 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4357
4358 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4359 (mips_linux_cannot_store_register): List supported instead of
4360 unsupported registers.
4361
4362 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4363
4364 * disasm.c (dump_insns): Separate instructions from addresses.
4365
4366 2003-07-07 Andreas Schwab <schwab@suse.de>
4367
4368 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4369 dependencies.
4370 * m68k-tdep.c (NUM_FREGS): Delete.
4371 (SIG_PC_FP_OFFSET): Delete.
4372 (TARGET_M68K): Delete.
4373 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4374 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4375 P_MOVEL_SP, P_MOVEML_SP): Define.
4376 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4377 P_TRAP): Delete.
4378 (m68k_register_raw_size): Delete.
4379 (m68k_register_virtual_size): Delete.
4380 (m68k_register_type): Renamed from m68k_register_virtual_type and
4381 add gdbarch argument.
4382 (m68k_store_struct_return): Delete.
4383 (m68k_deprecated_extract_return_value): Delete.
4384 (m68k_deprecated_extract_struct_value_address): Delete.
4385 (m68k_frame_chain): Delete.
4386 (m68k_frame_saved_pc): Delete.
4387 (m68k_fix_call_dummy): Delete.
4388 (m68k_push_dummy_frame): Delete.
4389 (m68k_pop_frame): Delete.
4390 (m68k_extract_return_value): New function.
4391 (m68k_store_return_value): Rewrite using regcache.
4392 (m68k_extract_struct_value_address): Rewrite using regcache.
4393 (m68k_push_dummy_call): New function.
4394 (struct m68k_frame_cache): Define.
4395 (m68k_alloc_frame_cache): New function.
4396 (m68k_analyze_frame_setup): New function.
4397 (m68k_analyze_register_saves): New function.
4398 (m68k_analyze_prologue): New function.
4399 (m68k_skip_prologue): Rewrite using above functions.
4400 (m68k_unwind_pc): New function.
4401 (m68k_frame_cache): New function.
4402 (m68k_frame_this_id): New function.
4403 (m68k_frame_prev_register): New function.
4404 (m68k_frame_unwind): New variable.
4405 (m68k_frame_p): New function.
4406 (m68k_sigtramp_frame_cache): New function.
4407 (m68k_sigtramp_frame_this_id): New function.
4408 (m68k_sigtramp_frame_prev_register): New function.
4409 (m68k_sigtramp_frame_unwind): New variable.
4410 (m68k_sigtramp_frame_p): New function.
4411 (m68k_frame_base_address): New function.
4412 (m68k_frame_base): New function.
4413 (m68k_unwind_dummy_id): New function.
4414 (fill_gregset): Use regcache_collect.
4415 (fill_fpregset): Likewise.
4416 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4417 defined.
4418 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4419 deprecated_init_frame_pc, deprecated_store_struct_return,
4420 deprecated_extract_return_value, deprecated_store_return_value,
4421 deprecated_frame_chain, deprecated_frame_saved_pc,
4422 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4423 deprecated_register_virtual_size,
4424 deprecated_max_register_raw_size,
4425 deprecated_max_register_virtual_size,
4426 deprecated_register_virtual_type, deprecated_register_size,
4427 deprecated_register_byte, deprecated_register_bytes,
4428 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4429 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4430 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4431 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4432 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4433 deprecated_push_dummy_frame, deprecated_pop_frame,
4434 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4435 only if SYSCALL_TRAP is defined. Set extract_return_value,
4436 store_return_value, extract_struct_value_address, register_type,
4437 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4438 predicates.
4439 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4440 M68K_MAX_REGISTER_SIZE): Define.
4441 (struct m68k_sigtramp_info): Define.
4442 (struct gdbarch_tdep): Add get_sigtramp_info.
4443 * m68klinux-nat.c (fetch_register): Use register_size instead of
4444 REGISTER_RAW_SIZE. Don't put assignment in if.
4445 (store_register): Likewise.
4446 (fetch_inferior_registers): Likewise.
4447 (store_inferior_registers): Likewise.
4448 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4449 (m68k_linux_frame_saved_pc): Delete.
4450 (m68k_linux_sigcontext_reg_offset,
4451 m68k_linux_ucontext_reg_offset): Define.
4452 (m68k_linux_get_sigtramp_info): New function.
4453 (m68k_linux_extract_return_value): Rewrite using regcache.
4454 (m68k_linux_store_return_value): Likewise.
4455 (m68k_linux_extract_struct_value_address): Likewise.
4456 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4457 Don't set deprecated_frame_saved_pc,
4458 deprecated_extract_return_value, deprecated_store_return_value,
4459 deprecated_extract_struct_value_address. Set
4460 extract_return_value, store_return_value,
4461 extract_struct_value_address.
4462
4463 2003-07-07 Andrew Cagney <cagney@redhat.com>
4464
4465 * expprint.c: Include "user-regs.h" instead of "frame.h".
4466 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4467 frame_map_regnum_to_name.
4468 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4469 (frame_map_name_to_regnum): Simplify, call
4470 user_reg_map_name_to_regnum.
4471 (frame_map_regnum_to_name): Simplify, call
4472 user_reg_map_regnum_to_name.
4473 (frame_register_unwind): Update.
4474 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4475 (_initialize_frame_reg): Call user_reg_add_builtin.
4476 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4477 (value_of_register): Use value_of_user_reg.
4478 * eval.c (evaluate_subexp_standard): Update.
4479 * parse.c (write_dollar_variable): Update.
4480 * d10v-tdep.c (d10v_print_registers_info): Update.
4481 * infcmd.c (registers_info): Update.
4482 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4483 (builtin_regs_h): Delete macro.
4484 (user_regs_h): Define.
4485 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4486 (builtin-regs.o): Delete target.
4487 (user-regs.o): Specify dependencies.
4488 (expprint.o): Update dependencies.
4489 (findvar.o): Update dependencies.
4490 (frame.o): Update dependencies.
4491 (std-regs.o): Update dependencies.
4492
4493 2003-07-06 Christopher Faylor <cgf@redhat.com>
4494
4495 * win32-nat.c (solib_symbols_add): Use one variable for all section
4496 address stuff. Pass variable rather than address of variable to
4497 safe_symbol_file_add.
4498
4499 2003-07-06 Andreas Schwab <schwab@suse.de>
4500
4501 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4502
4503 2003-07-04 Joel Brobecker <brobecker@gnat.com>
4504
4505 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4506
4507 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4508
4509 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4510
4511 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4512
4513 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4514 * config/i386/nto.mh: New file.
4515 * config/i386/nm-nto.h: New file.
4516 * configure.host: Add i[3456]86-*-nto*.
4517
4518 2003-07-03 Joel Brobecker <brobecker@gnat.com>
4519
4520 * remote-vx.c (vx_add_symbols): Fix compilation error.
4521
4522 2003-07-03 Andrew Cagney <cagney@redhat.com>
4523
4524 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4525 * gdbarch.h, gdbarch.c: Re-generate.
4526 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4527 (legacy_register_name): Declare.
4528 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4529 (REGISTER_NAME): Define.
4530 * sparc-tdep.c (legacy_register_name): New function.
4531 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4532 (REGISTER_NAME): Define.
4533 (hppa64_register_name): Declare.
4534 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4535 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4536 (hppa64_register_name): New function.
4537 (hppa_register_name): New function.
4538 * arch-utils.c (legacy_register_name): Delete.
4539 * arch-utils.h (legacy_register_name): Delete.
4540
4541 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
4542
4543 * cli/cli-interp.c (cli_interpreter_resume): Update the
4544 cli_uiout's stream to gdb_stdout.
4545
4546 2003-07-03 Andrew Cagney <cagney@redhat.com>
4547
4548 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4549 predicate.
4550 * gdbarch.h, gdbarch.c: Re-generate.
4551 * regcache.c (init_regcache_descr): Use legacy code when either
4552 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4553
4554 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4555
4556 * NEWS: Move "set logging" entry into GDB 6.0 section.
4557
4558 2003-07-02 Jim Blandy <jimb@redhat.com>
4559
4560 * s390-tdep.c (struct frame_extra_info): new member:
4561 'stack_bought_valid'.
4562 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4563 initialize fextra_info->stack_bought.
4564 (s390_frameless_function_invocation): Don't trust the value of
4565 fextra_info_ptr->stack_bought unless
4566 fextra_info->stack_bought_valid is set.
4567
4568 New S390 prologue analyzer.
4569 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4570 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4571 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4572 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4573 compute_x_addr, s390_on_stack, s390_store,
4574 s390_get_signal_frame_info): New functions.
4575 (S390_NUM_SPILL_SLOTS): New macro.
4576 (s390_get_frame_info): Rewritten.
4577 (is_arg_reg): Deleted.
4578
4579 Break out the decoding of S/390 instructions into separate
4580 functions, to make it more legible, and easier to check
4581 against the spec.
4582 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4583 is_rx, is_rxe): New functions.
4584 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4585 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4586 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4587 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4588 enums for opcode values. (Is this an improvement?)
4589
4590 2003-07-02 Andrew Cagney <cagney@redhat.com>
4591
4592 * i386-tdep.c: Revert change committed as part of trad-frame code
4593 below.
4594
4595 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4596
4597 * breakpoint.c (insert_catchpoint): Make static.
4598
4599 2003-07-02 Andreas Schwab <schwab@suse.de>
4600
4601 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4602 former ia64_push_arguments and ia64_push_return_address, and use
4603 regcache functions instead of read/write_register.
4604 (ia64_gdbarch_init): Set push_dummy_call instead of
4605 deprecated_push_arguments and deprecated_push_return_address.
4606
4607 2003-07-01 Andreas Jaeger <aj@suse.de>
4608
4609 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4610 before the call.
4611 Set %rax only to number of SSE registers used.
4612
4613 2003-07-01 Andrew Cagney <cagney@redhat.com>
4614
4615 * trad-frame.h: Update comments, a -1 .addr is reserved.
4616 (trad_frame_value_p, trad_frame_addr_p): Declare.
4617 (trad_frame_reg_p): Declare.
4618 (trad_frame_set_value): Rename trad_frame_register_value.
4619 (trad_frame_set_unknown): Declare.
4620 * trad-frame.c (trad_frame_realreg_p): New function.
4621 (trad_frame_addr_p, trad_frame_value_p): New function.
4622 (trad_frame_set_unknown): New function.
4623 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4624 (trad_frame_prev_register): Use trad_frame_realreg_p,
4625 trad_frame_addr_p and trad_frame_value_p.
4626 (trad_frame_set_value): Rename trad_frame_register_value.
4627 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4628 and trad_frame_set_value.
4629
4630 2003-06-30 Jim Blandy <jimb@redhat.com>
4631
4632 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4633 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4634 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4635 for 16 registers, and then 32 more bytes.
4636 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4637 New macros.
4638 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4639 Move up in the file, since it's now used by is_simple_arg.
4640 (is_simple_arg): Don't assume registers are four bytes long.
4641 Exclude all double arguments. Extended floats are not simple
4642 args.
4643 (is_power_of_two): New function.
4644 (pass_by_copy_ref): Call is_power_of_two, and check that the
4645 length fits in a register, rather than listing all the acceptable
4646 sizes. Extended floats are not passed by reference.
4647 (s390_push_arguments): Don't assume registers are four bytes long.
4648 Reserve an argument register to point to the buffer for structures
4649 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4650 S390_STACK_FRAME_OVERHEAD.
4651
4652 2003-06-30 Andreas Schwab <schwab@suse.de>
4653
4654 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4655 format error message.
4656
4657 2003-06-30 Joel Brobecker <brobecker@gnat.com>
4658
4659 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4660
4661 2003-06-30 David Carlton <carlton@kealia.com>
4662
4663 Band-aid for PR c++/1245.
4664 * Makefile.in (cp-support.o): Depend on complaints_h.
4665 * cp-support.c: Include complaints.h. Add declaration for
4666 find_last_component.
4667 (cp_find_first_component): Separate code into
4668 cp_find_first_component_aux.
4669 (cp_find_first_component_aux): Call demangled_name_complaint.
4670 (demangled_name_complaint): New.
4671
4672 2003-06-30 Andrew Cagney <cagney@redhat.com>
4673
4674 * remote.c (remote_write_bytes): Explicitly compute and then use
4675 the payload size. Update comments to reflect. Fixes problem of
4676 GDB not sending small packets as found by Fred Fish.
4677
4678 2003-06-30 Andrew Cagney <cagney@redhat.com>
4679
4680 * remote.c (remote_async_wait): Fix -Wformat problem.
4681
4682 2003-06-29 Andrew Cagney <cagney@redhat.com>
4683
4684 * remote.c (remote_wait): Call error, and not warning, when the
4685 packet is corrupt.
4686 (remote_async_wait): Ditto.
4687
4688 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4689
4690 * sparc-tdep.c (sparc_y_regnum): Make external again.
4691
4692 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4693
4694 * cli/cli-logging.c (pop_output_files): Add void to function
4695 definition.
4696
4697 2003-06-29 Andrew Cagney <cagney@redhat.com>
4698
4699 * frame.c (frame_register_unwind): Use unsigned char when dumping
4700 the buffer contents.
4701
4702 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
4703
4704 * cli/cli-logging.c: New file.
4705 * cli-out.c (struct ui_out_data): Add original_stream.
4706 (cli_redirect): New function.
4707 (cli_ui_out_impl): Add cli_redirect.
4708 (cli_out_new): Initialize original_stream.
4709 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4710 (uo_redirect, ui_out_redirect): New.
4711 * ui-out.h (struct ui_out_impl): Add redirect member.
4712 (redirect_ftype): New.
4713 (ui_out_redirect): Add prototype.
4714 * Makefile.in: Add rules for cli-logging.c.
4715 * NEWS: Mention "set logging".
4716
4717 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4718
4719 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4720
4721 2003-06-27 Andrew Cagney <cagney@redhat.com>
4722
4723 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4724 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4725 * avr-tdep.c (avr_call_dummy_address): Delete function.
4726 (avr_gdbarch_init): Do not set call_dummy_address.
4727
4728 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4729
4730 * symfile.c (syms_from_objfile): Move variables to inner block.
4731 Move the checks for the non-mainline case a bit earlier to avoid
4732 doing some useless computations.
4733
4734 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4735
4736 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4737
4738 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
4739
4740 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4741 sections.
4742
4743 2003-06-26 Michael Chastain <mec@shout.net>
4744
4745 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4746 gdb/testsuite/gdb.c++/pr-1210.exp.
4747
4748 2003-06-26 Andrew Cagney <cagney@redhat.com>
4749
4750 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4751 altivec_expression.h and altivec_registers.h.
4752
4753 2003-06-26 Andrew Cagney <cagney@redhat.com>
4754
4755 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4756 info->mach when MIPS16. Patch suggested by Fred Fish.
4757
4758 2003-06-26 Andrew Cagney <cagney@redhat.com>
4759
4760 * utils.c (internal_vproblem): Print the problem to a reason
4761 buffer and then pass to query. Make the msg variable more local.
4762
4763 2003-06-26 Andrew Cagney <cagney@redhat.com>
4764
4765 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4766 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4767 * gdbarch.h, gdbarch.c: Re-generate.
4768 * frame-base.c (default_frame_args_address): Update. Use
4769 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4770 not available.
4771 (default_frame_locals_address): Ditto for
4772 DEPRECATED_FRAME_LOCALS_ADDRESS.
4773 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4774 (vax_frame_num_args): Update.
4775 (vax_gdbarch_init): Update.
4776 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4777 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4778 * mcore-tdep.c (mcore_gdbarch_init): Update.
4779 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4780 * ia64-tdep.c (ia64_gdbarch_init): Update.
4781 * symtab.h (address_class): Update comments.
4782 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4783 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4784 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4785 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4786 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4787 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4788 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4789 * alpha-mdebug-tdep.c: Update.
4790 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4791
4792 2003-06-26 Andreas Jaeger <aj@suse.de>
4793
4794 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4795 of SSE registers so that varargs functions work. Rework handling
4796 of passing arguments on the stack.
4797 (x86_64_store_return_value): Return double and float values in SSE
4798 register.
4799
4800 2003-06-24 Michael Chastain <mec@shout.net>
4801
4802 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4803 the "constructor breakpoints ignored" bug.
4804
4805 2003-06-25 David Carlton <carlton@kealia.com>
4806
4807 * MAINTAINERS: Update e-mail address.
4808
4809 2003-06-24 Jim Blandy <jimb@redhat.com>
4810
4811 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4812
4813 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4814 function.
4815 (ppc_linux_init_abi): Register it as the
4816 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4817
4818 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4819 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4820 method.
4821
4822 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4823 (ppc64_standard_linkage_target): Use it.
4824
4825 2003-06-23 Andrew Cagney <cagney@redhat.com>
4826
4827 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4828 for 0 "int0" and 4 "int32" sized registers.
4829 * gdbtypes.c (builtin_type_int0): Define.
4830 (build_gdbtypes): Initialize builtin_type_int0.
4831 * gdbtypes.h (builtin_type_int0): Declare.
4832
4833 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4834
4835 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4836 as characters are unsigned.
4837
4838 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4839
4840 PR gdb/1179
4841 * dwarfread.c (struct_type): Skip static fields without crashing.
4842
4843 2003-06-22 Andrew Cagney <cagney@redhat.com>
4844
4845 GDB 6.0 branch created.
4846 * README: Update.
4847 * PROBLEMS: Update. Empty.
4848 * NEWS: Update.
4849
4850 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4851
4852 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4853 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4854
4855 2003-06-22 Andrew Cagney <cagney@redhat.com>
4856
4857 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4858 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4859 Velikov.
4860
4861 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4862
4863 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4864 compilers.
4865
4866 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4867
4868 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4869 argument of val_print.
4870 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4871 to the address argument of baseclass_offset or target_read_memory.
4872 Do add it to the argument of cp_print_value_fields.
4873
4874 2003-06-21 Andrew Cagney <cagney@redhat.com>
4875
4876 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4877 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4878 instead of 0..NUM_REGS.
4879 (mips_register_reggroup_p): New function.
4880 (mips_pseudo_register_write): New function.
4881 (mips_pseudo_register_read): New function.
4882 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4883 based on the register's type.
4884 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4885 cooked.
4886 (mips_get_saved_register): Simplify. Assert that REGNO is a
4887 pseudo / cooked.
4888 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4889 (mips_register_type): Replace mips_register_virtual_type. Map
4890 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4891 when available.
4892 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4893 that the register is cooked / virtual.
4894 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4895 Only get the extra info when needed.
4896 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4897 (mips32_heuristic_proc_desc): Fetch the cooked register.
4898 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4899 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4900 (mips_print_register): Use gdbarch_register_type, instead of
4901 REGISTER_VIRTUAL_TYPE.
4902 (print_gp_register_row): Use gdbarch_register_type, instead of
4903 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4904 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4905 Print the pseudo / cooked registers.
4906 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4907 Print the pseudo / cooked registers.
4908 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4909 REG_NUM is pseudo / cooked.
4910 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4911 (mips_n32n64_xfer_return_value): Ditto.
4912 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4913 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4914 (mips_register_sim_regno): New function.
4915 (mips_gdbarch_init): Set deprecated_register_byte,
4916 register_group_p, pseudo_register_write, pseudo_register_read,
4917 register_sim_regno, and num_pseudo_regs. Set register_type,
4918 instead of register_virtual_type.
4919 * Makefile.in (mips-tdep.o): Update dependencies.
4920 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4921 REGISTER_VIRTUAL_TYPE.
4922 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4923 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4924 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4925 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4926 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4927
4928 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4929
4930 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4931 * cli/cli-cmds.c: Include "gdb_vfork.h".
4932 (shell_escape): Use vfork.
4933
4934 2003-06-21 Andrew Cagney <cagney@redhat.com>
4935
4936 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4937 32 bit floating-point register saves.
4938
4939 * frame.h (deprecated_unwind_get_saved_register): Delete.
4940 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4941 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4942 and deprecated_get_next_frame_hack instead of
4943 deprecated_unwind_get_saved_register.
4944
4945 * mips-tdep.c (mips_dump_tdep): Do not print
4946 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4947
4948 * frame.c (get_frame_register): New function.
4949 (frame_unwind_register_signed): New function.
4950 (get_frame_register_signed): New function.
4951 (frame_unwind_register_unsigned): New function.
4952 (get_frame_register_unsigned): New function.
4953 * frame.h: Add comments on naming schema.
4954 (get_frame_register, frame_unwind_register_signed): Declare.
4955 (get_frame_register_signed, get_frame_register_signed): Declare.
4956 (frame_unwind_register_unsigned): Declare.
4957 (get_frame_register_unsigned): Declare.
4958
4959 2003-06-20 Theodore A. Roth <troth@openavr.org>
4960
4961 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4962
4963 2003-06-20 Theodore A. Roth <troth@openavr.org>
4964
4965 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4966 (avr_read_sp): Ditto.
4967
4968 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
4969
4970 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4971 * config/arm/nm-linux.h: Likewise.
4972 * config/arm/tm-linux.h: Likewise.
4973 * config/ia64/nm-linux.h: Likewise.
4974 * config/ia64/tm-ia64.h: Likewise.
4975 * config/s390/tm-linux.h: Likewise.
4976 * config/s390/tm-s390.h: Likewise.
4977 * s390-nat.c: Likewise.
4978 * s390-tdep.c: Likewise.
4979
4980 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4981 * config/ia64/linux.mt: Likewise.
4982 * config/m68k/linux.mh: Likewise.
4983 * config/mips/linux.mt: Likewise.
4984 * config/powerpc/linux.mh: Likewise.
4985 * config/sh/linux.mt: Likewise.
4986
4987 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4988
4989 * solib.c (solib_open): Change tests for whether to search
4990 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4991 comments.
4992
4993 2003-06-19 Theodore A. Roth <troth@openavr.org>
4994
4995 * avr-tdep.c (avr_frame_address): Delete function.
4996 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4997 set_gdbarch_frame_args_address.
4998
4999 2003-06-19 Andrew Cagney <cagney@redhat.com>
5000
5001 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5002 (REGISTER_CONVERT_FROM_TYPE): Delete.
5003 (mips_register_convert_to_type): Delete declaration.
5004 (mips_register_convert_from_type): Delete declaration.
5005 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5006 kernel/.
5007
5008 2003-06-19 Michael Snyder <msnyder@redhat.com>
5009
5010 * linux-nat.h: New file.
5011 * linux-nat.c: Include linux-nat.h.
5012 * lin-lwp.c: Include linux-nat.h.
5013 Move struct lwp_info def to linux-nat.h.
5014 * linux-proc.c: Include linux-nat.h.
5015 (linux_make_note_section): Iterate over lwps instead of threads.
5016 (linux_do_thread_registers): Use lwp instead of merged pid.
5017 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
5018 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
5019 Add dependency on linux_nat_h.
5020
5021 2003-06-19 Theodore A. Roth <troth@openavr.org>
5022
5023 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5024
5025 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5026
5027 * varobj.c (get_type, get_target_type): Use check_typedef.
5028
5029 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5030
5031 * breakpoint.c (insert_catchpoint): Call internal_error.
5032
5033 2003-06-19 Theodore A. Roth <troth@openavr.org>
5034
5035 * avr-tdep.c (avr_push_dummy_code): Delete function.
5036 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5037
5038 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5039
5040 * arch-utils.c (default_prepare_to_proceed): Remove.
5041 (generic_prepare_to_proceed): Remove.
5042 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5043 (generic_prepare_to_proceed): Remove prototype.
5044 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5045 * gdbarch.c: Regenerate.
5046 * gdbarch.h: Regenerate.
5047 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5048 * hppah-nat.c (hppa_switched_threads): Remove.
5049 * infrun.c (prepare_to_proceed): New static function, copied from
5050 generic_prepare_to_proceed. Remove select_it argument.
5051 (proceed): Call prepare_to_proceed.
5052 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5053 variables.
5054 (ptrace_wait): Don't set the removed variables.
5055 (hppa_switched_threads): Remove.
5056 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5057 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5058 (lin_lwp_prepare_to_proceed): Remove prototype.
5059 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5060 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5061
5062 2003-06-18 Theodore A. Roth <troth@openavr.org>
5063
5064 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5065 trad-frame.h.
5066 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5067 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5068 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5069 (AVR_PROLOGUE_*): Enumerate prologue types.
5070 (struct frame_extra_info): Remove.
5071 (struct avr_unwind_cache): Define.
5072 (avr_write_sp): Delete function.
5073 (avr_read_fp): Ditto.
5074 (avr_init_extra_frame_info): Ditto.
5075 (avr_pop_frame): Ditto.
5076 (avr_frame_saved_pc): Ditto.
5077 (avr_saved_pc_after_call): Ditto.
5078 (avr_push_return_address): Ditto.
5079 (avr_frame_chain): Ditto.
5080 (avr_store_struct_return): Ditto.
5081 (avr_push_arguments): Ditto.
5082 (avr_scan_prologue): Update comments. Changed to set up the info for
5083 cache unwinding. Now returns end of prologue PC.
5084 (avr_skip_prologue): Better handling of functions lacking a prologue
5085 by using avr_scan_prologue.
5086 (avr_scan_arg_moves): New function.
5087 (avr_saved_regs_unwinder): Ditto.
5088 (avr_frame_unwind_cache): Ditto.
5089 (avr_unwind_pc): Ditto.
5090 (avr_frame_this_id): Ditto.
5091 (avr_frame_prev_register): Ditto.
5092 (avr_frame_p): Ditto.
5093 (avr_frame_base_address ): Ditto.
5094 (avr_unwind_dummy_id): Ditto.
5095 (avr_push_dummy_code): Ditto.
5096 (push_stack_item): Ditto.
5097 (pop_stack_item): Ditto.
5098 (avr_push_dummy_call): Ditto.
5099 (struct stack_item): Define.
5100 (avr_frame_unwind): Declare structure.
5101 (avr_frame_base): Ditto.
5102 (avr_gdbarch_init): Remove calls to
5103 set_gdbarch_deprecated_init_frame_pc,
5104 set_gdbarch_deprecated_target_read_fp,
5105 set_gdbarch_deprecated_dummy_write_sp,
5106 set_gdbarch_deprecated_fp_regnum,
5107 set_gdbarch_deprecated_push_arguments,
5108 set_gdbarch_deprecated_push_return_address,
5109 set_gdbarch_deprecated_pop_frame,
5110 set_gdbarch_deprecated_store_struct_return,
5111 set_gdbarch_deprecated_frame_init_saved_regs,
5112 set_gdbarch_deprecated_init_extra_frame_info,
5113 set_gdbarch_deprecated_frame_chain,
5114 set_gdbarch_deprecated_frame_saved_pc,
5115 set_gdbarch_deprecated_saved_pc_after_call.
5116 Add calls to set_gdbarch_push_dummy_call,
5117 set_gdbarch_push_dummy_code,
5118 frame_unwind_append_predicate,
5119 frame_base_set_default,
5120 set_gdbarch_unwind_dummy_id,
5121 set_gdbarch_unwind_pc.
5122 Wrap a long line.
5123
5124 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
5125
5126 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5127 registers for H8/300S.
5128 (h8300_print_registers_info): Ditto.
5129 (h8300_gdbarch_init): Accommodate register count for H8/300S.
5130
5131 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
5132
5133 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5134 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5135 (lin_lwp_wait): Likewise. Update comments.
5136 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5137 (pull_pid_from_list, linux_record_stopped_pid): New.
5138
5139 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5140
5141 * ada-lang.c (scan_discrim_bound): Name first argument.
5142 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5143 declared by ALL_BLOCK_SYMBOLS.
5144
5145 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5146
5147 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5148 ("regcache.h"): Include it.
5149 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5150
5151 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5152
5153 * NEWS: Mention gdbserver detach change and "disconnect" command.
5154 * infcmd.c (disconnect_command): New function.
5155 (_initialize_infcmd): Add ``disconnect'' command.
5156 * remote.c (remote_async_detach): Delete.
5157 (remote_detach): Merge remote_async_detach.
5158 (remote_disconnect): New.
5159 (init_remote_ops): Set to_disconnect.
5160 (init_remote_cisco_ops): Likewise.
5161 (init_remote_async_ops): Likewise. Use remote_detach.
5162 * target.c (cleanup_target): Default to_disconnect.
5163 (update_current_target): Inherit to_disconnect.
5164 (target_disconnect, debug_to_disconnect): New functions.
5165 (setup_target_debug): Set to_disconnect.
5166 * target.h (struct target_ops): Add to_disconnect.
5167 (target_disconnect): Add prototype.
5168
5169 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5170
5171 * breakpoint.c (insert_catchpoint): New function.
5172 (insert_breakpoints): Use catch_exceptions to call
5173 insert_catchpoint. Disable catchpoints if they fail to insert.
5174
5175 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5176
5177 * symfile.c (reread_symbols): Clear sym_private.
5178
5179 2003-06-17 Andrew Cagney <cagney@redhat.com>
5180
5181 * trad-frame.h (struct frame_info): Add opaque declaration.
5182 * remote-fileio.h (struct cmd_list_element): Add opaque
5183 declaration.
5184 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5185 comments.
5186
5187 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5188
5189 * remote.c (remote_prepare_to_store): Replace call to
5190 deprecated_read_register_bytes with multiple regcache_raw_read
5191 calls.
5192
5193 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5194
5195 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5196 (nto_find_and_open_solib): Likewise.
5197 (nto_init_solib_absolute_prefix): Likewise.
5198 (_initialize_nto_tdep): Fix indentation.
5199
5200 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5201
5202 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5203
5204 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5205
5206 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5207
5208 2003-06-17 Jim Blandy <jimb@redhat.com>
5209
5210 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5211
5212 2003-06-16 Theodore A. Roth <troth@openavr.org>
5213
5214 * avr-tdep.c (avr_extract_return_value): New function.
5215 (avr_gdbarch_init): Set extract_return_value method.
5216
5217 2003-06-16 Andrew Cagney <cagney@redhat.com>
5218
5219 * frame.h (deprecated_get_next_frame_hack): Declare.
5220 * frame.c (legacy_saved_regs_prev_register): Only require
5221 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5222 there are always saved regs.
5223 (deprecated_generic_get_saved_register): Do not require
5224 DEPRECATED_FRAME_INIT_SAVED_REGS.
5225 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5226 use frame ID unwind instead.
5227 (deprecated_get_next_frame_hack): New function.
5228
5229 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5230
5231 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5232 (h8300_push_dummy_call): ...this function. Some minor optimization.
5233 (h8300_push_return_address): Remove.
5234 (h8300_gdbarch_init): Remove calls to
5235 set_gdbarch_deprecated_dummy_write_sp,
5236 set_gdbarch_deprecated_push_arguments and
5237 set_gdbarch_deprecated_push_return_address.
5238 Add call to set_gdbarch_push_dummy_call.
5239
5240 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5241
5242 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5243 (E_PSEUDO_EXR_REGNUM): Ditto.
5244 (h8300_is_argument_spill): Check for instructions moving argument
5245 registers into safe registers.
5246 (h8300_skip_prologue): Check for stm instruction to push registers
5247 used for register variables onto stack.
5248 (gdb_print_insn_h8300): Remove.
5249 (h8300_examine_prologue): Add a comment.
5250 (h8300_register_name): Take pseudo registers into account.
5251 (h8300s_register_name): Ditto.
5252 (h8300sx_register_name): Ditto.
5253 (h8300_print_register): Ditto.
5254 (h8300_print_registers_info): Define "nice" printing order.
5255 (h8300_saved_pc_after_call): Take pseudo registers into account.
5256 (h8300_register_type): Ditto. Return type used for remote connection
5257 when requesting real CCR or EXR register, return actual type when
5258 requesting pseudo CCR or EXR.
5259 (h8300_pseudo_register_read): New function.
5260 (h8300_pseudo_register_write): Ditto.
5261 (h8300_dbg_reg_to_regnum): Ditto.
5262 (h8300s_dbg_reg_to_regnum): Ditto.
5263 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5264 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5265 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5266 set_gdbarch_print_insn architecture dependent.
5267 Call set_gdbarch_pseudo_register_read and
5268 set_gdbarch_pseudo_register_write.
5269 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5270
5271 2003-06-16 Andrew Cagney <cagney@redhat.com>
5272
5273 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5274 * gdbarch.h, gdbarch.c: Re-generate.
5275 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5276 * s390-tdep.c (s390_gdbarch_init): Update.
5277 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5278 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5279 * mips-tdep.c (mips_gdbarch_init): Update.
5280 * mcore-tdep.c (mcore_gdbarch_init): Update.
5281 * cris-tdep.c (cris_gdbarch_init): Update.
5282 * infcall.c (call_function_by_hand): Update.
5283 * ia64-tdep.c (ia64_push_arguments): Update comment.
5284 * frame.c (legacy_get_prev_frame): Do not assume
5285 SAVE_DUMMY_FRAME_TOS_P.
5286 * dummy-frame.c (find_dummy_frame): Update comment.
5287
5288 2003-06-16 Andrew Cagney <cagney@redhat.com>
5289
5290 * regcache.c (do_cooked_read): Do not use register_valid_p.
5291
5292 2003-06-15 Theodore A. Roth <troth@openavr.org>
5293
5294 * avr-tdep.c (avr_register_type): Remove a blank line.
5295 (avr_scan_prologue): Correct some comments.
5296
5297 2003-06-15 Theodore A. Roth <troth@openavr.org>
5298
5299 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5300 prologue types.
5301 Properly scan prologues generated by gcc with the -mcall-prologues
5302 option.
5303 Add code to scan -mcall-prologues for mega devices.
5304
5305 2003-06-15 Theodore A. Roth <troth@openavr.org>
5306
5307 * avr-tdep.c (avr_register_byte): Delete function.
5308 (avr_register_raw_size): Delete function.
5309 (avr_register_virtual_size): Delete function.
5310 (avr_register_virtual_type): Delete function.
5311 (avr_register_type): New function.
5312 (avr_address_to_pointer): Remove unused code.
5313 (avr_read_fp): Need to read FP as two separate bytes due to change to
5314 avr_register_type() usage.
5315 (avr_gdbarch_init): Don't set deprecated_register_size.
5316 Don't set deprecated_register_bytes.
5317 Don't set deprecated_register_byte.
5318 Don't set deprecated_register_raw_size.
5319 Don't set deprecated_max_register_raw_size.
5320 Don't set deprecated_register_virtual_size.
5321 Don't set deprecated_max_register_virtual_size.
5322 Don't set deprecated_register_virtual_type.
5323 Set register_type method.
5324
5325 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
5326
5327 * Makefile.in (linux-nat.o): Add rule.
5328 * linux-nat.c: New file.
5329 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5330 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5331 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5332 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5333 * config/arm/linux.mh (NATDEPFILES): Likewise.
5334 * config/i386/linux.mh (NATDEPFILES): Likewise.
5335 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5336 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5337 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5338 * config/mips/linux.mh (NATDEPFILES): Likewise.
5339 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5340 * config/s390/s390.mh (NATDEPFILES): Likewise.
5341 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5342
5343 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5344
5345 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5346 replace out-of-date comment.
5347
5348 2003-06-15 Andrew Cagney <cagney@redhat.com>
5349
5350 * rdi-share/host.h (Fail): Change to a varargs function.
5351 * remote-rdi.c (Fail): Update.
5352
5353 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5354
5355 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5356 (i386_convert_register_p, i386_register_to_value,
5357 i386_register_from_value): Handle types longer than 8 bytes.
5358
5359 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5360
5361 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5362 Move floating-point code to new function in i387-tdep.c.
5363 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5364 New functions containing code moved here from i386-tdep.c.
5365 * i387-tdep.h: Add opaque declaration for `struct type'.
5366 (i387_register_to_value, i387_value_to_register): New prototypes.
5367 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5368 (x86_64_init_abi): Set convert_register_p, register_to_value and
5369 value_to_register here.
5370
5371 2003-06-14 Andrew Cagney <cagney@redhat.com>
5372
5373 * mips-tdep.c (mips_register_to_value): Make static.
5374 (mips_value_to_register): Make static.
5375 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5376 * ia64-tdep.c (ia64_register_raw_size): Make static.
5377 (ia64_register_virtual_size): Make static.
5378 (ia64_register_byte): Make static.
5379 * i387-tdep.c: Include "i387-tdep.h".
5380 (print_387_control_word): Delete function.
5381 (print_387_status_word): Delete function.
5382 (print_387_status_bits): Delete function.
5383 (print_387_control_bits): Delete function.
5384 * Makefile.in (i387-tdep.o): Update dependencies.
5385 * rdi-share/host.h (Fail): Declare.
5386 * remote-rdi.c (Fail): Update to match declaration.
5387
5388 2003-06-14 Andrew Cagney <cagney@redhat.com>
5389
5390 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5391 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5392 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5393 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5394 * README: Delete reference to remote-array.
5395 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5396 (remote-array.o): Delete target.
5397 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5398 * remote-array.c: Delete file.
5399
5400 2003-06-14 Andrew Cagney <cagney@redhat.com>
5401 Mark Kettenis <kettenis@gnu.org>
5402
5403 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5404 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5405 parameter with "frame".
5406 * gdbarch.h, gdbarch.c: Re-generate.
5407 * frame.h (put_frame_register): Declare.
5408 * frame.c (put_frame_register): New function.
5409 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5410 (legacy_register_to_value): Rewrite, use "frame" to get the
5411 register value.
5412 (legacy_value_to_register): Rewrite, use "frame" to find the
5413 register's location before storing.
5414 * arch-utils.h (legacy_convert_register_p): Update.
5415 (legacy_register_to_value, legacy_value_to_register): Update.
5416 * findvar.c (value_from_register): Rewrite, eliminate use of
5417 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5418 "frame" to REGISTER_TO_VALUE.
5419 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5420 lval_reg_frame_relative + lval_register branch of the switch. Do
5421 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5422 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5423 I386_EDI_REGNUM): New defines.
5424 (i386_next_regnum, i386_convert_register_p,
5425 i386_register_to_value, i386_value_to_register): New functions.
5426 (i386_register_convertible, i386_register_convert_to_virtual,
5427 i386_convert_to_raw): Remove functions.
5428 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5429 value_to_register instead of register_convertible,
5430 register_convert_to_virtual and register_convert_to_raw.
5431 * mips-tdep.c (mips_convert_register_p): New function.
5432 (mips_value_to_register): Replace mips_register_convert_from_type.
5433 (mips_register_to_value): Replace mips_register_convert_to_type.
5434 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5435 register_to_value.
5436 * alpha-tdep.c (alpha_convert_register_p): Update.
5437 (alpha_value_to_register): Update, store the register.
5438 (alpha_register_to_value): Update, fetch the register.
5439
5440 2003-06-14 Theodore A. Roth <troth@openavr.org>
5441
5442 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5443 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5444 Don't set deprecated_call_dummy_words.
5445 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5446 Don't set remote_translate_xfer_address.
5447 (avr_io_reg_read_command): Remove commented out debug printf.
5448 Wrap a long line.
5449
5450 2003-06-14 Theodore A. Roth <troth@openavr.org>
5451
5452 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5453 causes gdb to seg fault.
5454
5455 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
5456
5457 * sparc-nat.c (fetch_inferior_registers): Correct
5458 a reference to "registers".
5459
5460 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5461
5462 * Makefile.in (exc_request_U_h): Define
5463 (exc_request_S_h): Likewise.
5464 (msg_reply_S_h): Likewise.
5465 (msg_U_h): Likewise.
5466 (notify_S_h): Likewise.
5467 (process_reply_S_h): Likewise.
5468 (gnu-nat.o): Depend on gdb_obstack_h
5469 * gnu-nat.c: Include "gdb_obstack.h".
5470
5471 2003-06-13 Andrew Cagney <cagney@redhat.com>
5472
5473 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5474 * gdbarch.h, gdbarch.c: Re-generate.
5475
5476 2003-06-13 Andrew Cagney <cagney@redhat.com>
5477
5478 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5479 when deprecated REGISTER macros can be deleted.
5480 * gdbarch.h, gdbarch.c: Re-generate.
5481
5482 2003-06-13 Jim Blandy <jimb@redhat.com>
5483
5484 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5485 Linux entry point symbols for _dl_debug_state, too.
5486
5487 2003-06-13 Andrew Cagney <cagney@redhat.com>
5488
5489 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5490 available, do not use the FP register, and always save the TOS.
5491 * dummy-frame.c (dummy_frame_this_id): Do not assert
5492 SAVE_DUMMY_FRAME_TOS.
5493 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5494 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5495 (i386_push_dummy_call): Add 8 to the returned SP.
5496 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5497 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5498 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5499 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5500 (x86_64_push_dummy_call): Return "sp + 16".
5501 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5502 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5503 save_dummy_frame_tos.
5504
5505 2003-06-13 Jim Blandy <jimb@redhat.com>
5506
5507 * frv-tdep.c (frv_use_struct_convention): Delete static
5508 declaration for function deleted in my change of 2003-06-12.
5509
5510 2003-06-13 Theodore A. Roth <troth@openavr.org>
5511
5512 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5513 (avr_pointer_to_address): Shift code addrs left 1 bit.
5514 (avr_convert_from_func_ptr_addr): Delete function since operation is
5515 better handled by avr_address_to_pointer and avr_pointer_to_address.
5516 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5517
5518 2003-06-13 Mark Kettenis <kettenis@gnu.org>
5519
5520 From Kelley Cook <kelleycook@wideopenwest.com>:
5521 * configure.host: Accept i[34567]86 variants.
5522 * configure.tgt: Likewise.
5523 * nlm/configure.in: Likewise.
5524 * nlm/configure: Regenerated.
5525
5526 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
5527
5528 * arm-tdep.c (solib-svr4.h): Dont' include it.
5529 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5530 * arm-linux-tdep.c: ... here. Make static.
5531 (arm_linux_init_abi): Register it.
5532 (solib-svr4.h): Include it.
5533 * Makefile.in: Update dependencies.
5534 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5535 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5536
5537 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5538
5539 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5540 indicate registers used for return values.
5541 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5542 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5543 members.
5544 (h8300_init_extra_frame_info): Ditto.
5545 (h8300_frame_locals_address): Removed.
5546 (h8300_frame_args_address): Removed.
5547 (h8300_extract_return_value): Use new regcache structure. Only care
5548 for 16 bit CPUs.
5549 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5550 (h8300_store_return_value): Use new regcache structure. Only care
5551 for 16 bit CPUs.
5552 (h8300h_store_return_value): Same function for 32 bit CPUs.
5553 (h8300_store_struct_return): Removed.
5554 (h8300_extract_struct_value_address): Use new regcache structure.
5555 (h8300h_extract_struct_value_address): Removed.
5556 (h8300_push_dummy_code): New function.
5557 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5558 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5559 set_gdbarch_store_return_value architecture dependent.
5560 Call set_gdbarch_push_dummy_code and
5561 set_gdbarch_extract_struct_value_address.
5562 Remove calls to set_gdbarch_frame_args_address,
5563 set_gdbarch_frame_locals_address,
5564 set_gdbarch_deprecated_store_struct_return,
5565 set_gdbarch_deprecated_extract_return_value,
5566 set_gdbarch_deprecated_extract_struct_value_address,
5567 set_gdbarch_deprecated_call_dummy_words and
5568 set_gdbarch_deprecated_sizeof_call_dummy_words.
5569
5570 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5571
5572 * h8300-tdep.c (h8300_register_byte): Remove.
5573 (h8300h_register_byte): Remove.
5574 (h8300_register_virtual_type): Remove. Substitute by...
5575 (h8300_register_type): New function.
5576 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5577 (h8300h_extract_struct_value_address): Ditto.
5578 (h8300_gdbarch_init): Drop calls to
5579 set_gdbarch_deprecated_register_byte and
5580 set_gdbarch_deprecated_register_virtual_type.
5581 Add call to set_gdbarch_register_type.
5582
5583 2003-06-13 Andrew Cagney <cagney@redhat.com>
5584
5585 * gdbarch.sh: Update comments on registers.
5586 (deprecated_register_byte): Rename register_byte.
5587 (deprecated_register_raw_size): Rename register_raw_size.
5588 (deprecated_register_virtual_size): Rename register_virtual_size.
5589 (deprecated_register_virtual_type): Rename register_virtual_type.
5590 * gdbarch.h, gdbarch.c: Re-generate.
5591 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5592 * vax-tdep.c (vax_gdbarch_init): Update.
5593 * v850-tdep.c (v850_gdbarch_init): Update.
5594 * sparc-tdep.c (sparc_gdbarch_init): Update.
5595 * sh-tdep.c (sh_gdbarch_init): Update.
5596 * s390-tdep.c (s390_gdbarch_init): Update.
5597 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5598 * ns32k-tdep.c: Update.
5599 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5600 * mips-tdep.c (mips_gdbarch_init): Update.
5601 * mcore-tdep.c (mcore_gdbarch_init): Update.
5602 * m68k-tdep.c (m68k_gdbarch_init): Update.
5603 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5604 * ia64-tdep.c (ia64_gdbarch_init): Update.
5605 * hppa-tdep.c (hppa_gdbarch_init): Update.
5606 * h8300-tdep.c (h8300_gdbarch_init): Update.
5607 * frv-tdep.c (frv_gdbarch_init): Update.
5608 * cris-tdep.c (cris_gdbarch_init): Update.
5609 * avr-tdep.c (avr_gdbarch_init): Update.
5610 * alpha-tdep.c (alpha_gdbarch_init): Update.
5611 * arm-tdep.c (arm_gdbarch_init): Update.
5612
5613 2003-06-13 Andrew Cagney <cagney@redhat.com>
5614
5615 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5616 mips_o32_use_struct_convention with always_use_struct_convention.
5617
5618 2003-06-12 David Carlton <carlton@kealia.com>
5619
5620 * cp-namespace.c (cp_set_block_scope): Comment out
5621 processing_has_namespace_info branch.
5622
5623 2003-06-12 Jim Blandy <jimb@redhat.com>
5624
5625 Recognize and skip 64-bit PowerPC Linux linkage functions.
5626 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5627 insn_pattern, insns_match_pattern, d_field, ds_field): New
5628 functions, macros, and types for working with PPC instructions.
5629 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5630 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5631 ppc64_skip_trampoline_code): New functions, variables, and macros
5632 for recognizing and skipping linkage functions.
5633 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5634 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5635
5636 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5637 register offsets for both the 32- and 64-bit interfaces.
5638
5639 Actually finish the job started by my change of 2003-05-29.
5640 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5641 other #definition of this.
5642 (ppc_linux_skip_trampoline_code): Remove declaration.
5643 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5644 static.
5645 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5646 method for GDBARCH.
5647
5648 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5649 'long' on ppc64-*-linux*.
5650
5651 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5652 isn't #defined, assume the register doesn't exist: act as if
5653 tdep->ppc_mq_regnum were -1.
5654
5655 * configure.host, configure.tgt: Add entries for
5656 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5657 powerpc/linux.mt.
5658 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5659 New files.
5660
5661 * arch-utils.c (always_use_struct_convention): New function.
5662 * arch-utils.h (always_use_struct_convention): New prototype.
5663 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5664 (alpha_gdbarch_init): Register always_use_struct_convention,
5665 instead of alpha_use_struct_convention.
5666 * cris-tdep.c (cris_use_struct_convention): Delete.
5667 (cris_gdbarch_init): Register always_use_struct_convention,
5668 instead of cris_use_struct_convention.
5669 * frv-tdep.c (frv_use_struct_convention): Delete.
5670 (frv_gdbarch_init): Register always_use_struct_convention,
5671 instead of frv_use_struct_convention.
5672 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5673 (h8300_gdbarch_init): Register always_use_struct_convention,
5674 instead of h8300_use_struct_convention.
5675 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
5676 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5677 instead of mips_o32_use_struct_convention.
5678
5679 2003-06-12 Andrew Cagney <cagney@redhat.com>
5680
5681 * wince.c: Include "mips-tdep.h".
5682 * mips-tdep.h (mips_next_pc): Declare.
5683 * mcore-tdep.c: Make more local functions static.
5684 * Makefile.in (wince.o): Update dependencies.
5685
5686 2003-06-12 David Carlton <carlton@kealia.com>
5687
5688 * symtab.c (lookup_symbol_aux_minsyms): Replace
5689 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5690 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5691 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5692 SYMBOL_NATURAL_NAME.
5693
5694 2003-06-12 Andreas Schwab <schwab@suse.de>
5695
5696 * Makefile.in (tuiDisassem.o): Update dependencies.
5697
5698 2003-06-12 David Carlton <carlton@bactrian.org>
5699
5700 * symtab.h: Delete declaration of make_symbol_overload_list.
5701 Add declaration of lookup_partial_symbol.
5702 * symtab.c (remove_params): Move to cp-support.c.
5703 (overload_list_add_symbol, make_symbol_overload_list)
5704 (sym_return_val_size, sym_return_val_index): Ditto.
5705 (lookup_partial_symbol): Make extern.
5706 * cp-support.h: Add declaration of make_symbol_overload_list.
5707 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5708 symtab.h, and block.h.
5709 (remove_params): Move here from symtab.c.
5710 (overload_list_add_symbol, make_symbol_overload_list)
5711 (sym_return_val_size, sym_return_val_index): Ditto.
5712 * valops.c: Include cp-support.h.
5713 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5714 frame_h, and block_h.
5715 (valops.o): Depend on cp_support_h.
5716
5717 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
5718
5719 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5720 substitute by NUM_REGS throughout.
5721 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5722 (h8300s_register_name): New function for H8S registers.
5723 (h8300sx_register_name): Ditto for H8SX registers.
5724 (h8300_print_register): Revise register printing, avoid depending
5725 on 32 bit long.
5726 (h8300_register_byte): Only care for H8/300 registers.
5727 (h8300h_register_byte): New function for any other architecture.
5728 (h8300_register_raw_size): Remove.
5729 (h8300_register_virtual_type): Revise to return actually useful
5730 type.
5731 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5732 (h8300h_extract_struct_value_address): New function for any other
5733 architecture.
5734 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5735 set_gdbarch_register_name, set_gdbarch_register_byte,
5736 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5737 Remove calls to set_gdbarch_deprecated_register_size,
5738 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5739 set_gdbarch_deprecated_max_register_raw_size,
5740 set_gdbarch_register_virtual_size and
5741 set_gdbarch_deprecated_max_register_virtual_size entirely.
5742 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5743 set_gdbarch_long_double_bit.
5744
5745 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5746
5747 * doublest.c (convert_doublest_to_floatformat): When dealing
5748 with the implied integer bit, only alter mant_bits if we are
5749 processing a full 32 bits of mantissa.
5750
5751 2003-06-11 David Carlton <carlton@bactrian.org>
5752
5753 * dictionary.h: New.
5754 * dictionary.c: New.
5755 * block.h: Add opaque declaration for struct dictionary.
5756 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5757 'sym' members.
5758 (BLOCK_DICT): New macro.
5759 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5760 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5761 BLOCK_SHOULD_SORT.
5762 (ALL_BLOCK_SYMBOLS): Update definition.
5763 * Makefile.in (SFILES): Add dictionary.c.
5764 (dictionary_h): New.
5765 (COMMON_OBS): Add dictionary.o.
5766 (dictionary.o): New.
5767 (ada-lang.o): Depend on dictionary_h.
5768 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5769 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5770 (mi-cmd-stack.o): Ditto.
5771 (gdbtk-cmds.o): Update dependencies.
5772 (gdbtk-stack.o): Ditto.
5773 * ada-lang.c: Include dictionary.h.
5774 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5775 (fill_in_ada_prototype, debug_print_block): Ditto.
5776 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5777 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5778 'is_sorted'.
5779 * mdebugread.c: Include dictionary.h.
5780 (struct parse_stack): Delete 'maxsyms' member.
5781 (parse_symbol): Update calls to new_block. Delete calls to
5782 shrink_block. Use dictionary methods.
5783 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5784 Update calls to new_symtab. Don't maintain maxsyms data.
5785 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5786 (add_symbol): Just call dict_add_symbol.
5787 (new_symtab): Delete 'maxsyms' argument.
5788 (new_symtab): Update calls to new_block.
5789 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5790 (shrink_block): Delete function.
5791 (fixup_sigtramp): Update call to new_block. Add symbol via
5792 dict_add_symbol.
5793 * jv-lang.c: Include dictionary.h.
5794 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5795 appropriately. Set class_symtab->free_func. Make sure the
5796 blockvector is big enough to hold two blocks.
5797 (add_class_symtab_symbol): Use dictionary methods.
5798 (free_class_block): New function.
5799 (type_from_class): Replace explicit iteration by
5800 ALL_BLOCK_SYMBOLS.
5801 * symtab.h (struct symtab): Replace 'free_ptr' method by
5802 'free_func'.
5803 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5804 sort_symtab_syms.
5805 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5806 sort_symtab_syms.
5807 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5808 Include dictionary.h.
5809 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5810 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5811 sort_symtab_syms.
5812 * objfiles.c: Include dictionary.h.
5813 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5814 * buildsym.c: Include dictionary.h.
5815 (finish_block): Use dictionary methods.
5816 (end_symtab): Set free_func to NULL, not free_ptr.
5817 * tracepoint.c: Include dictionary.h.
5818 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5819 (scope_info): Ditto.
5820 * stack.c: Include dictionary.h.
5821 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5822 (print_block_frame_labels, print_frame_arg_vars)
5823 (print_frame_args): Ditto.
5824 * symmisc.c (free_symtab_block): Use dictionary methods.
5825 (dump_symtab): Ditto.
5826 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5827 Include dictionary.h.
5828 * symfile.h: Delete declarations of sort_block_syms,
5829 sort_symtab_syms.
5830 * symfile.c (sort_block_syms): Delete.
5831 (sort_symtab_syms): Delete.
5832 * symtab.c: Include dictionary.h.
5833 (lookup_block_symbol): Use dictionary iterators.
5834 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5835 (search_symbols, make_symbol_completion_list): Ditto.
5836 (make_symbol_overload_list): Ditto.
5837 * valops.c (value_of_local): Use dict_empty.
5838 Include dictionary.h.
5839
5840 2003-06-11 J. Brobecker <brobecker@gnat.com>
5841
5842 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5843
5844 2003-06-11 David Carlton <carlton@bactrian.org>
5845
5846 * block.h (BLOCK_SHOULD_SORT): Delete.
5847 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5848 blocks.
5849 * ada-lang.c (ada_add_block_symbols): Ditto.
5850 * symfile.c (sort_block_syms): Delete.
5851 (sort_symtab_syms): Ditto.
5852 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5853 declarations.
5854 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5855 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5856 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5857 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5858 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5859 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5860 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5861
5862 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5863
5864 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
5865 bits to 128.
5866
5867 2003-06-11 Andrew Cagney <cagney@redhat.com>
5868
5869 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5870 REGISTER_CONVERTIBLE.
5871 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5872 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5873 * gdbarch.h, gdbarch.c: Re-generate.
5874 * arch-utils.h (deprecated_register_convertible_not): Rename
5875 generic_register_convertible_not.
5876 * arch-utils.c (deprecated_register_convertible_not): Rename
5877 generic_register_convertible.
5878 (legacy_convert_register_p, legacy_register_to_value): Update.
5879 * sh-tdep.c (sh64_push_arguments): Update.
5880 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5881 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5882 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5883 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5884 * arch-utils.c (legacy_value_to_register): Update.
5885 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5886 (rs6000_register_convert_to_raw): Make parameter "from" const.
5887 * mips-tdep.c (mips_gdbarch_init): Update.
5888 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5889 * infcmd.c (default_print_registers_info): Update.
5890 * ia64-tdep.c (ia64_gdbarch_init): Update.
5891 (ia64_register_convert_to_raw): Make parameter "from" const.
5892 * i386-tdep.c (i386_gdbarch_init): Update.
5893 (i386_register_convert_to_raw): Update.
5894
5895 2003-06-11 Andrew Cagney <cagney@redhat.com>
5896
5897 * remote-fileio.c: Include "remote-fileio.h".
5898 * Makefile.in (remote-fileio.o): Update dependencies.
5899 (remote_fileio_h): Fix typo.
5900
5901 2003-06-11 Andrew Cagney <cagney@redhat.com>
5902
5903 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5904 (xstormy16_save_dummy_frame_tos): Make static.
5905 (_initialize_xstormy16_tdep): Add declaration.
5906 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5907 * v850-tdep.c: Make local functions static.
5908 (_initialize_v850_tdep): Add declaration.
5909 * sparc-tdep.c: Make local functions static.
5910 (_initialize_sparc_tdep): Add declaration.
5911 * sh-tdep.c: Make local functions static.
5912 (_initialize_sh_tdep): Add declaration.
5913 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5914 * s390-tdep.c: Make local functions static.
5915 (_initialize_s390_tdep): Add declaration.
5916 * dbxread.c (find_stab_function_addr): Make static.
5917 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5918 * ocd.c (_initialize_remote_ocd): Add declaration.
5919 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5920 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5921 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5922 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5923 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5924 * remote-array.c (_initialize_array): Add declaration.
5925 (_initialize_remote_monitors): Add declaration.
5926 * remote-mips.c: Make local functions static.
5927 (_initialize_remote_mips): Add declaration.
5928 * mcore-tdep.c: Make all local functions static.
5929 (_initialize_mcore_tdep): Add declaration.
5930 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5931 * abug-rom.c (_initialize_abug_rom): Add declaration.
5932 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5933 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5934 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5935 * remote-est.c (_initialize_est): Add declaration.
5936 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5937 (m68hc11_call_dummy_address): Make static.
5938 * ia64-tdep.c: Make local functions static.
5939 (_initialize_ia64_tdep): Add declaration.
5940 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5941 * monitor.c (monitor_wait_filter): Make static.
5942 (_initialize_remote_monitors): Add declaration.
5943 * remote-hms.c (_initialize_remote_hms): Add declaration.
5944 * remote-e7000.c (fetch_regs_from_dump): Make static.
5945 (expect_n): Make static.
5946 (_initialize_remote_e7000): Add declaration.
5947 * ser-e7kpc.c: Always include "defs.h".
5948 (_initialize_ser_e7000pc): Add declaration.
5949 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5950 * cris-tdep.c: Make all but one function static.
5951 (_initialize_cris_tdep): Add declaration.
5952 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5953 * solib.c (update_solib_list): Make static.
5954 (_initialize_solib): Add declaration.
5955 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5956 (_initialize_avr_tdep): Add declaration.
5957 * remote-rdi.c (voiddummy): Make static.
5958 (_initialize_remote_rdi): Add declaration.
5959 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5960 * remote-rdp.c (send_rdp): Make static.
5961 (_initialize_remote_rdp): Add declaration.
5962 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5963
5964 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
5965
5966 * remote-fileio.c: Make ari happy.
5967
5968 2003-06-10 J. Brobecker <brobecker@gnat.com>
5969
5970 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5971 fetching the trailing bytes of the buffer we are about to write.
5972
5973 2003-06-10 Andrew Cagney <cagney@redhat.com>
5974
5975 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5976 * Makefile.in (remote-fileio.o): Update dependencies.
5977 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5978 include <setjmp.h>, or <sys/types.h> conditional on USG.
5979 (remote_fio_jmp_buf): Delete global variable.
5980
5981 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5982 Martin M. Hunt <hunt@redhat.com>
5983
5984 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5985 (SFILES): Add remote-fileio.c.
5986 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5987 dependencies for building remote.o.
5988 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5989 * remote-fileio.h: New header file defining remote File-I/O interface.
5990 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5991 static storage class.
5992 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5993 'F' packet.
5994 (_initialize_remote): Call initialize_remote_fileio().
5995 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5996 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5997 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5998 (captured_main): Initialize new ui_files.
5999 * ui-file.c: Add read and fgets input functions.
6000 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6001 (null_file_read): New function.
6002 (ui_file_read): New function.
6003 (set_ui_file_read): New function.
6004 (stdio_file_read): New function.
6005 * ui-file.h: New type ui_file_read_ftype.
6006 (set_ui_file_read): Declare.
6007 (ui_file_read): Declare.
6008
6009 2003-06-09 Andrew Cagney <cagney@redhat.com>
6010
6011 * frame.h (deprecated_unwind_get_saved_register): Rename
6012 generic_unwind_get_saved_register, update comments.
6013 * mips-tdep.c (mips_get_saved_register): Update.
6014 * frame.c (deprecated_unwind_get_saved_register): Update.
6015
6016 2003-06-09 Andrew Cagney <cagney@redhat.com>
6017
6018 * vax-tdep.c (vax_frame_locals_address): Delete function.
6019 (vax_gdbarch_init): Do not set frame_locals_address.
6020 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6021 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6022 * s390-tdep.c (s390_frame_args_address): Delete function.
6023 (s390_gdbarch_init): Do not set frame_args_address or
6024 frame_locals_address.
6025 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6026 (ns32k_gdbarch_init): Do not set frame_locals_address.
6027 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6028 (hppa_frame_locals_address): Delete function.
6029 (hppa_gdbarch_init): Do not set frame_args_address, or
6030 frame_locals_address.
6031 * arm-tdep.c (arm_frame_args_address): Delete.
6032 (arm_frame_locals_address): Delete.
6033 (arm_gdbarch_init): Do not set frame_args_address, or
6034 frame_locals_address.
6035
6036 2003-06-09 Andrew Cagney <cagney@redhat.com>
6037
6038 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6039 * gdbarch.h, gdbarch.c: Re-generate.
6040 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6041 * arch-utils.c (frame_num_args_unknown): Delete function.
6042 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6043 (frame_info): Use FRAME_NUM_ARGS_P.
6044 * arm-tdep.c (arm_frame_num_args): Delete function.
6045 (arm_gdbarch_init): Do not set frame_num_args.
6046 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6047 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6048 (hppa_gdbarch_init): Do not set frame_num_args.
6049 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6050 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6051 frame_num_args to default frame_num_args_unknown.
6052 * v850-tdep.c (v850_gdbarch_init): Ditto.
6053 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6054 * sh-tdep.c (sh_gdbarch_init): Ditto.
6055 * s390-tdep.c (s390_gdbarch_init): Ditto.
6056 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6057 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6058 * mips-tdep.c (mips_gdbarch_init): Ditto.
6059 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6060 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6061 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6062 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6063 * i386-tdep.c (i386_gdbarch_init): Ditto.
6064 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6065 * frv-tdep.c (frv_gdbarch_init): Ditto.
6066 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6067 * cris-tdep.c (cris_gdbarch_init): Ditto.
6068 * avr-tdep.c (avr_gdbarch_init): Ditto.
6069 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6070
6071 2003-06-09 Andrew Cagney <cagney@redhat.com>
6072
6073 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6074 (print_frame_args): Moved to "stack.c".
6075 * stack.c: Include "gdb_assert.h".
6076 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6077 (print_frame_args): Moved from "printcmd.c".
6078 * frame.h (print_frame_args): Delete declaration.
6079 * Makefile.in (stack.o): Update dependencies.
6080
6081 2003-06-08 Andrew Cagney <cagney@redhat.com>
6082
6083 * frame.c (get_prev_frame): Remove reference to
6084 frame_args_address_correct in comments.
6085 * frame-base.c (default_frame_args_address): Delete code
6086 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6087 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6088 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6089 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6090 (vax_frame_args_address_correct): Delete declaration.
6091
6092 2003-06-08 Andrew Cagney <cagney@redhat.com>
6093
6094 * gdbarch.sh (UNWIND_SP): Add.
6095 * gdbarch.h, gdbarch.c: Re-generate.
6096 * frame.c (frame_sp_unwind): New function.
6097 (get_frame_sp): New function.
6098 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6099 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6100 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6101 value.
6102 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6103 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6104
6105 2003-06-08 Andrew Cagney <cagney@redhat.com>
6106
6107 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6108 REMOTE_BREAKPOINT.
6109 * remote.c: Update.
6110 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6111 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6112 * config/m68k/tm-sun3.h: Update.
6113 * config/m68k/tm-m68klynx.h: Update.
6114 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6115
6116 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6117 trad_frame". Update comments.
6118 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6119 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6120 (trad_frame_register_value, trad_frame_prev_register): Update.
6121
6122 2003-06-08 Andrew Cagney <cagney@redhat.com>
6123
6124 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6125 from GCC's acinclude.m4.
6126 * configure.in: Check for getopt's delcaration.
6127 * aclocal.m4, config.in, configure: Re-generate.
6128 * main.c (error_init): Delete declaration.
6129 * defs.h (error_init): Declare.
6130 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6131 (rs6000_convert_from_func_ptr_addr): Make static.
6132 (_initialize_rs6000_tdep): Add declaration.
6133 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6134 (show_commands, set_verbose, show_history): Delete declaration.
6135 * top.h (set_verbose): Add declaration.
6136 (show_history, set_history, show_commands): Add declaration.
6137 (do_restore_instream_cleanup): Add declaration.
6138 * objc-lang.c (specialcmp): Make static.
6139 (print_object_command): Make static.
6140 (find_objc_msgsend): Make static.
6141 (find_objc_msgcall_submethod_helper): Make static.
6142 (find_objc_msgcall_submethod): Make static.
6143 (_initialize_objc_language): Add declaration.
6144 (find_implementation_from_class): Make static.
6145 (find_implementation): Make static.
6146 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6147 * objc-lang.h (lookup_struct_typedef): Add declaration.
6148 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6149 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6150 (do_restore_user_call_depth): Make static.
6151 (do_restore_instream_cleanup): Delete declaration.
6152 (dont_repeat): Delete declaration.
6153 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6154 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6155 * reggroups.c (_initialize_reggroup): Add declaration.
6156 * cp-support.c (_initialize_cp_support): Add declaration.
6157 * cp-abi.c (_initialize_cp_abi): Add declaration.
6158 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6159 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6160 (_initialize_gnu_v3_abi): Add declaration.
6161 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6162 (_initialize_gnu_v2_abi): Add declaration.
6163 * frame-base.c (_initialize_frame_base): Add declaration.
6164 * doublest.c (floatformat_from_length): Make static.
6165 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6166 * frame.c (create_sentinel_frame): Make static.
6167 (_initialize_frame): Add declaration.
6168 * top.c (do_catch_errors): Make static.
6169 (gdb_rl_operate_and_get_next_completion): Make static.
6170 * typeprint.c: Include "typeprint.h".
6171 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6172 (sentinel_frame_this_id): Make static.
6173 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6174 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6175 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6176 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6177 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6178 * maint.c (maintenance_print_architecture): Make static.
6179 * signals/signals.c (_initialize_signals): Add declaration.
6180 * std-regs.c (_initialize_frame_reg): Add declaration.
6181 * jv-exp.y (push_variable): ISO C definition.
6182 (push_qualified_expression_name): Ditto.
6183 * memattr.c (_initialize_mem): Add declaration.
6184 * remote.c (remote_check_watch_resources): Make static.
6185 (remote_stopped_by_watchpoint): Make static.
6186 (remote_stopped_data_address): Make static.
6187 * d10v-tdep.c (nr_dmap_regs): Make static.
6188 (a0_regnum): Make static.
6189 (d10v_frame_unwind_cache): Make static.
6190 (d10v_frame_p): Make static.
6191 * osabi.c (show_osabi): Make static.
6192 (_initialize_gdb_osabi): Add extern declaration.
6193 * gdbtypes.c (make_qualified_type): Make static.
6194 (safe_parse_type): Make static.
6195 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6196 * macrotab.c (macro_bcache_free): Make static.
6197 * interps.c (interp_set_quiet): Make static.
6198 (interpreter_exec_cmd): Make static.
6199 * stack.h (select_frame_command): New file.
6200 * stack.c: Include "stack.h".
6201 (select_frame_command_wrapper): Delete function.
6202 (select_frame_command): Make global.
6203 * infcall.c: Include "infcall.h".
6204 * linespec.c: Include "linespec.h".
6205 * symfile.c (sections_overlap): Make static.
6206 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6207 * charset.c (_initialize_charset): Add missing prototype.
6208 * regcache.c (init_legacy_regcache_descr): Make static.
6209 (do_regcache_xfree): Make static.
6210 (regcache_xfer_part): Make static.
6211 (_initialize_regcache): Add missing prototype.
6212 * breakpoint.c (parse_breakpoint_sals): Make static.
6213 (breakpoint_sals_to_pc): Make static.
6214 * interps.h (clear_interpreter_hooks): ISO C declaration.
6215 * Makefile.in (stack_h): Define.
6216 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6217 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6218
6219 2003-06-08 Andrew Cagney <cagney@redhat.com>
6220
6221 * Makefile.in (d10v-tdep.o): Update dependencies.
6222 (SFILES): Add trad-frame.c.
6223 (trad_frame_h): Define.
6224 (COMMON_OBS): Add trad-frame.o.
6225 (trad-frame.o): Specify dependencies.
6226 * d10v-tdep.c: Include "trad-frame.h".
6227 (saved_regs_unwinder): Delete function.
6228 (d10v_frame_prev_register): Use trad_frame_prev_register.
6229 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6230 trad_frame", delete "regs" and "prev_sp".
6231 (prologue_find_regs): Use trad-frame.
6232 * trad-frame.h, trad-frame.c: New files.
6233
6234 2003-06-08 Mark Kettenis <kettenis@gnu.org>
6235
6236 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6237
6238 2003-06-07 Adam Fedor <fedor@gnu.org>
6239
6240 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6241 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6242 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6243 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
6244 resolve_msgsend_super, resolve_msgsend_super_stret):
6245 Use it.
6246
6247 2003-06-07 Andrew Cagney <cagney@redhat.com>
6248
6249 * symfile.h: Re-indent, clean up comments.
6250
6251 2003-06-07 Andrew Cagney <cagney@redhat.com>
6252
6253 * inferior.h (deprecated_write_sp): Replace
6254 generic_target_write_sp.
6255 * regcache.c (deprecated_write_sp): Replace
6256 generic_target_write_sp.
6257 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6258 * vax-tdep.c (vax_gdbarch_init): Update.
6259 * v850-tdep.c (v850_gdbarch_init): Update.
6260 * sparc-tdep.c (sparc_gdbarch_init): Update.
6261 * sh-tdep.c (sh_gdbarch_init): Update.
6262 * s390-tdep.c (s390_gdbarch_init): Update.
6263 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6264 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6265 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6266 * mcore-tdep.c (mcore_gdbarch_init): Update.
6267 * m68k-tdep.c (m68k_gdbarch_init): Update.
6268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6269 * ia64-tdep.c (ia64_gdbarch_init): Update.
6270 * h8300-tdep.c (h8300_gdbarch_init): Update.
6271 * frv-tdep.c (frv_gdbarch_init): Update.
6272 * cris-tdep.c (cris_gdbarch_init): Update.
6273 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6274
6275 2003-06-07 Andrew Cagney <cagney@redhat.com>
6276
6277 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6278 Assert that PC_REGNUM is valid.
6279 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6280
6281 2003-06-07 Andrew Cagney <cagney@redhat.com>
6282
6283 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6284 * gdbarch.h, gdbarch.c: Regenerate.
6285 * mn10300-tdep.c: Include "gdb_assert.h".
6286 (mn10300_read_fp): New function.
6287 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6288 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6289 * ia64-tdep.c: Include "gdb_assert.h".
6290 (ia64_read_fp): New function.
6291 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6292 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6293 * regcache.c (generic_target_read_sp): Delete function.
6294 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6295 * inferior.h (generic_target_read_sp): Delete declaration.
6296 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6297 generic_target_read_sp.
6298 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6299 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6300 * sh-tdep.c (sh_gdbarch_init): Ditto.
6301 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6302 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6303
6304 2003-06-07 Andrew Cagney <cagney@redhat.com>
6305
6306 * gdbarch.sh: Comment each field of startup_gdbarch.
6307 * gdbarch.h, gdbarch.c: Re-generate.
6308
6309 2003-06-07 Andrew Cagney <cagney@redhat.com>
6310
6311 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6312 * gdbarch.h, gdbarch.c: Re-generate.
6313 * regcache.c: Update comments on read_pc et.al.
6314 (generic_target_read_pc): Delete function.
6315 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6316 * inferior.h (generic_target_read_pc): Delete declaration.
6317 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6318 generic_target_read_pc.
6319 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6320 * sh-tdep.c (sh_gdbarch_init): Ditto.
6321 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6322 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6323
6324 2003-06-07 Andrew Cagney <cagney@redhat.com>
6325
6326 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6327 "index" with "special_local_sect". Use strcmp instead of STREQ.
6328 Append period to coments.
6329
6330 2003-06-06 Mark Mitchell <mark@codesourcery.com>
6331
6332 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6333 (elfstab_offset_sections): Likewise.
6334 * gdb-stabs.h (stab_section_info): Likewise.
6335 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6336 * objfiles.c (objfile_relocate): Likewise.
6337 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6338 * remote.c (get_offsets): Likewise.
6339 (remote_cisco_objfile_relocate): Likewise.
6340 * somread.c (som_symfile_offsets): Likewise.
6341 * symfile.c (alloc_section_addr_info): New function.
6342 (build_section_addr_info_from_section_tab): Use it.
6343 (free_section_addr_info): Adjust.
6344 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6345 (syms_from_objfile): Allocate local_addr dynamically.
6346 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6347 dynamically.
6348 (add_symbol_file_command): Allocate sect_opts dynamically.
6349 (reread_symbols): Avoid use of SECT_OFF_MAX.
6350 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6351 (alloc_section_addr_info): Declare it.
6352 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6353 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6354 dynamically.
6355 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
6356
6357 2003-06-06 Andrew Cagney <cagney@redhat.com>
6358
6359 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6360 (d10v_frame_unwind_cache): Do not set "return_pc".
6361
6362 2003-06-06 Michael Snyder <msnyder@redhat.com>
6363
6364 * h8300-tdep.c: Make tidy (long lines).
6365
6366 2003-06-06 Michal Ludvig <mludvig@suse.cz>
6367
6368 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
6369 to regcache_collect().
6370
6371 2003-06-05 J. Brobecker <brobecker@gnat.com>
6372
6373 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6374 pc_in_sigtramp multiarch method.
6375 (hppa_hpux_som_init_abi): Use it.
6376 (hppa_hpux_elf_init_abi): Likewise.
6377 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6378 macro has been multiarched.
6379 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6380 macro here, as hppa64 isn't multiarched yet.
6381
6382 2003-06-05 Andrew Cagney <cagney@redhat.com>
6383
6384 * Makefile.in (value_h): Add $(frame_h).
6385 * value.h: Include "frame.h".
6386 (struct value): Replace "frame_addr" with "frame_id".
6387 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6388 * values.c (allocate_value): Use VALUE_FRAME_ID.
6389 (value_copy): Use VALUE_FRAME_ID.
6390 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6391 * valops.c (value_assign): Update. Use frame_find_by_id.
6392
6393 2003-06-05 Michal Ludvig <mludvig@suse.cz>
6394
6395 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6396 in each pass.
6397
6398 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6399
6400 * thread-db.c (check_event): For create/death event breakpoints,
6401 loop through all messages to ensure that we read the message
6402 corresponding to the breakpoint we are at.
6403
6404 2003-06-04 Michael Snyder <msnyder@redhat.com>
6405
6406 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6407
6408 2003-06-04 Mark Kettenis <kettenis@gnu.org>
6409
6410 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6411 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6412 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6413 when handling .eh_frame sections.
6414
6415 2003-06-04 J. Brobecker <brobecker@gnat.com>
6416
6417 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6418 prepare_to_proceed procedure instead of the hppa-specific one.
6419 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6420
6421 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
6422
6423 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6424 * config.in: Regenerated.
6425 * configure.in: Add test for syscall function and check for
6426 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6427 * configure: Regenerated.
6428 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6429 <sys/syscall.h>.
6430 (kill_lwp): New function that uses tkill syscall or
6431 uses kill, depending on whether threading model is nptl or not.
6432 All callers of kill() changed to use kill_lwp().
6433 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6434 see if all threads have already exited in the nptl model.
6435 (stop_and_resume_callback): New callback function used by the
6436 lin_lwp_wait thread exit handling code.
6437 (stop_wait_callback): Check for threads already having exited and
6438 delete such threads fromt the lwp list when discovered.
6439 (stop_callback): Don't assert retcode of kill call.
6440
6441 Roland McGrath <roland@redhat.com>
6442 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6443 nptl libthread_db.
6444
6445 2003-06-03 Richard Henderson <rth@redhat.com>
6446
6447 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6448 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6449 (alpha_sigtramp_frame_prev_register): Likewise.
6450 (alpha_heuristic_frame_prev_register): Likewise.
6451 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6452
6453 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
6454 alpha-specific register id names.
6455 (alpha_mdebug_frame_unwind_cache): Likewise.
6456 (alpha_mdebug_frame_prev_register): Likewise.
6457
6458 2003-06-03 Richard Henderson <rth@redhat.com>
6459
6460 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6461 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6462 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6463 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6464 unwind routines.
6465 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6466 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6467 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6468
6469 * alpha-linux-tdep.c: Remove unnecessary includes.
6470 * Makefile.in (alpha-linux-tdep.o): Update.
6471
6472 2003-06-03 Richard Henderson <rth@redhat.com>
6473
6474 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6475 (alphabsd_fill_fpreg): Likewise.
6476
6477 2003-06-03 J. Brobecker <brobecker@gnat.com>
6478
6479 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6480 references to struct frame_info fields by calls to the equivalent
6481 accessors. Necessary now that frame_info is opaque.
6482
6483 2003-06-03 J. Brobecker <brobecker@gnat.com>
6484
6485 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6486 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6487 structure, field no longer exists.
6488
6489 2003-06-03 J. Brobecker <brobecker@gnat.com>
6490
6491 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6492 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6493
6494 2003-06-03 J. Brobecker <brobecker@gnat.com>
6495
6496 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6497 references to struct frame_info fields by calls to the equivalent
6498 accessors. Necessary now that frame_info is opaque.
6499
6500 2003-06-03 J. Brobecker <brobecker@gnat.com>
6501
6502 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6503 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6504 structure, field no longer exists.
6505
6506 2003-06-03 Theodore A. Roth <troth@openavr.org>
6507
6508 * remote.c (init_remote_state): Compute sizeof_g_packet by
6509 accumulation of the size of all registers instead of blindly using
6510 DEPRECATED_REGISTER_BYTES.
6511
6512 2003-06-03 Michael Snyder <msnyder@redhat.com>
6513
6514 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6515 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6516 for h8300sx.
6517
6518 2003-06-03 J. Brobecker <brobecker@gnat.com>
6519
6520 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6521 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6522
6523 2003-06-03 Andrew Cagney <cagney@redhat.com>
6524
6525 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6526 (sparc_convert_to_raw): Delete function.
6527 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6528 register_convert_to_virtual.
6529
6530 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6531
6532 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6533 layer if not dealing with a statically-linked threaded program.
6534
6535 2003-06-03 Kris Warkentin <kewarken@qnx.com>
6536
6537 * solib.c (solib_open): Update comment to reflect actual search order.
6538
6539 2003-06-03 Andrew Cagney <cagney@redhat.com>
6540
6541 * frame.c (get_frame_memory_signed): New function.
6542 (get_frame_memory, get_frame_memory_unsigned): New function.
6543 (get_frame_arch): New function.
6544 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6545 (get_frame_memory, get_frame_unsigned_memory): Declare.
6546 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6547 get_frame_memory_unsigned and get_frame_arch.
6548 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6549
6550 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6551
6552 * MAINTAINERS (write after approval): Add myself.
6553
6554 2003-06-03 Jim Blandy <jimb@redhat.com>
6555
6556 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6557 elements of gregset_t are 64 bits each, but access registers
6558 are still 32 bits, so they're packed two per gregset_t
6559 element. Unpack/pack them properly.
6560
6561 2003-06-02 David Carlton <carlton@bactrian.org>
6562
6563 * linespec.c (find_methods): Break out code into
6564 add_matching_methods and add_constructors.
6565 (add_matching_methods): New.
6566 (add_constructors): Ditto.
6567
6568 2003-06-02 Andrew Cagney <cagney@redhat.com>
6569
6570 * sparc-tdep.c (sparc_print_registers): Delete call to
6571 REGISTER_CONVERTIBLE.
6572 (sparc_gdbarch_init): Do not set register_convertible.
6573 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6574 * frv-tdep.c (frv_gdbarch_init): Ditto.
6575 * cris-tdep.c (cris_gdbarch_init): Ditto.
6576
6577 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
6578
6579 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
6580 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6581 (syms_from_objfile): Ditto.
6582
6583 2003-06-03 Andreas Schwab <schwab@suse.de>
6584
6585 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6586 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6587
6588 2003-06-02 Richard Henderson <rth@redhat.com>
6589
6590 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6591 a member of all_reggroup.
6592
6593 2003-06-02 Richard Henderson <rth@redhat.com>
6594
6595 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6596 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6597 (alpha_lds, alpha_sts): New.
6598 (alpha_convert_register_p): Change from _register_convertible.
6599 (alpha_register_to_value): Change from _convert_to_virtual;
6600 restructure and fail for type sizes other than 4 or 8.
6601 (alpha_value_to_register): Similarly.
6602 (alpha_extract_return_value): Use alpha_sts.
6603 (alpha_store_return_value): Use alpha_lds.
6604 (alpha_gdbarch_init): Update hooks.
6605
6606 2003-06-02 Richard Henderson <rth@redhat.com>
6607
6608 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6609 regnum identifiers.
6610 (alpha_sigtramp_register_address): Likewise.
6611
6612 2003-06-02 Richard Henderson <rth@redhat.com>
6613
6614 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6615 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6616 * alpha-tdep.h: Declare them.
6617
6618 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6619 Remove zerobuf. Don't error on UNIQUE.
6620 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6621 (ALPHA_REGSET_UNIQUE): Provide default.
6622 (supply_gregset): Use alpha_supply_int_regs.
6623 (fill_gregset): Use alpha_fill_int_regs.
6624 (supply_fpregset): Use alpha_supply_fp_regs.
6625 (fill_fpregset): Use alpha_fill_fp_regs.
6626 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6627 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6628 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6629 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6630 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6631 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6632
6633 2003-06-02 Richard Henderson <rth@redhat.com>
6634
6635 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6636
6637 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6638 (alpha_store_return_value): Likewise.
6639
6640 2003-06-02 David Carlton <carlton@math.stanford.edu>
6641
6642 * block.c (contained_in): Add 'const' to arguments.
6643 (block_function): Ditto.
6644 * block.h: Update declarations for block_function and
6645 contained_in.
6646
6647 2003-06-02 David Carlton <carlton@math.stanford.edu>
6648
6649 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6650 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6651 * p-valprint.c (pascal_val_print): Ditto.
6652 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6653
6654 2003-06-02 Richard Henderson <rth@redhat.com>
6655
6656 * alpha-tdep.c (alpha_push_dummy_call): Use
6657 builtin_type_ieee_double_little instead of builtin_type_double.
6658
6659 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
6660 sign-extension of 32-bit values.
6661 (alpha_store_return_value): Similarly.
6662
6663 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6664 (alpha_extract_return_value): Likewise.
6665 (alpha_store_return_value): Likewise.
6666
6667 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6668 (alpha_store_return_value): Error on IEEE Quad floats.
6669
6670 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6671 (alpha_extract_struct_value_address): Likewise.
6672 (alpha_store_return_value): Likewise.
6673 (alpha_store_struct_return): Remove.
6674 (alpha_gdbarch_init): Update hook registration to match.
6675
6676 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6677 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6678 macros where appropriate.
6679 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6680 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
6681
6682 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6683 for SP, GP; void_func_ptr for PC; non-language-specific types
6684 for all others.
6685 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
6686
6687 2003-06-02 Richard Henderson <rth@redhat.com>
6688
6689 * top.h (lim_at_start): Declare.
6690 * main.c (captured_main): Set it.
6691 * top.c (lim_at_start): Define.
6692 (command_loop): Use it instead of &environ.
6693 * event-top.c (command_handler): Likewise.
6694
6695 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6696
6697 * mipsnbsd-tdep.c: Update copyright years.
6698 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6699
6700 2003-06-01 Richard Henderson <rth@redhat.com>
6701
6702 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6703 (alpha-linux-tdep.o): Update dependencies.
6704 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6705 * alpha-mdebug-tdep.c: Remove unneeded includes.
6706
6707 2003-06-01 Richard Henderson <rth@redhat.com>
6708
6709 * alpha-tdep.c (alpha_register_reggroup_p): New.
6710 (alpha_gdbarch_init): Register it.
6711
6712 2003-06-02 Andrew Cagney <cagney@redhat.com>
6713
6714 * dwarfread.c: Eliminate "register"
6715 (decode_die_type): Eliminate assignment within "if".
6716 (struct_type, decode_array_element_type): Ditto.
6717 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6718 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6719 (decode_modified_type, completedieinfo): Ditto.
6720 * block.c: Eliminate "register".
6721 (blockvector_for_pc_sect): Eliminate assignment within "if".
6722 * cp-support.h (struct symbol): Opaque declaration.
6723 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6724
6725 2003-06-01 Richard Henderson <rth@redhat.com>
6726
6727 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6728 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
6729
6730 2003-06-01 Adam Fedor <fedor@gnu.org>
6731
6732 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6733 * gdbarch.[ch]: Regenerate.
6734 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6735 (hppa_gdbarch_init): Set it in the gdbarch vector.
6736 * i386-tdep.c (i386_fetch_pointer_argument): New
6737 (i386_gdbarch_init): Set it into gdbarch.
6738 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6739 (rs6000_gdbarch_init): Set it in gdbarch.
6740 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6741 (sparc_gdbarch_init): Set it in gdbarch.
6742
6743 2003-06-01 Andrew Cagney <cagney@redhat.com>
6744
6745 * defs.h (extract_address): Delete declaration.
6746 * findvar.c (extract_address): Delete function.
6747 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6748 extract_address with the inline equivalent,
6749 extract_unsigned_integer.
6750 (xstormy16_extract_struct_value_address): Ditto.
6751 (xstormy16_pointer_to_address): Ditto.
6752 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6753 * v850-tdep.c (v850_push_arguments): Ditto.
6754 (v850_extract_return_value): Ditto.
6755 (v850_extract_struct_value_address): Ditto.
6756 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6757 (sparcnbsd_get_longjmp_target_64): Ditto.
6758 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6759 (get_longjmp_target): Ditto.
6760 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6761 (sh64_extract_struct_value_address): Ditto.
6762 (sh_push_arguments): Ditto.
6763 (sh64_push_arguments): Ditto.
6764 * remote-vxsparc.c (vx_read_register): Ditto.
6765 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6766 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6767 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6768 * mipsv4-nat.c (get_longjmp_target): Ditto.
6769 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6770 * mips-nat.c (get_longjmp_target): Ditto.
6771 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6772 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6773 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6774 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6775 * irix5-nat.c (get_longjmp_target): Ditto.
6776 * irix4-nat.c (get_longjmp_target): Ditto.
6777 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6778 (ia64_push_arguments): Ditto.
6779 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6780 * h8300-tdep.c (h8300_push_arguments): Ditto.
6781 (h8300_store_return_value): Ditto.
6782 (h8300_extract_struct_value_address): Ditto.
6783 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6784 (frv_push_arguments): Ditto.
6785 * avr-tdep.c (avr_pointer_to_address): Ditto.
6786 (avr_push_arguments): Ditto.
6787 * arm-tdep.c (arm_push_dummy_call): Ditto.
6788 (arm_get_longjmp_target): Ditto.
6789 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6790 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6791 (alpha_get_longjmp_target): Ditto.
6792
6793 * solib-irix.c (extract_mips_address): Inline extract_address,
6794 replacing it with extract_signed_integer.
6795 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6796 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6797 (first_link_map_member, open_symbol_file_object): Ditto.
6798 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6799 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6800 (LM_NEXT, LM_NAME): Ditto.
6801
6802 2003-06-01 Richard Henderson <rth@redhat.com>
6803
6804 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6805 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6806 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6807 (alpha_cannot_store_register): Likewise.
6808 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6809 * alpha-nat.c (supply_gregset): Likewise.
6810 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
6811
6812 2003-06-01 Andrew Cagney <cagney@redhat.com>
6813
6814 * infcall.c (call_function_by_hand): Update comment on
6815 DEPRECATED_DUMMY_WRITE_SP.
6816
6817 * mips-tdep.c (mips_gdbarch_init): Do not set
6818 deprecated_dummy_write_sp.
6819 (mips_eabi_push_dummy_call): Set the SP register.
6820 (mips_o64_push_dummy_call): Set the SP register.
6821 (mips_o32_push_dummy_call): Set the SP register.
6822 (mips_n32n64_push_dummy_call): Set the SP register.
6823
6824 2003-06-01 Richard Henderson <rth@redhat.com>
6825
6826 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6827 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6828 (supply_gregset): Likewise.
6829 * alpha-tdep.c (alpha_store_return_value): Likewise.
6830 (alpha_get_longjmp_target): Likewise.
6831 (alpha_register_name): Constify array.
6832 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6833 deprecated_register_size, deprecated_register_bytes,
6834 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6835 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6836 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
6837
6838 2003-06-01 Richard Henderson <rth@redhat.com>
6839
6840 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6841 from arg_reg_buffer to regcache to avoid double conversion.
6842
6843 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6844
6845 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6846 SP_REGNUM.
6847 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6848 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6849
6850 2003-06-01 Richard Henderson <rth@redhat.com>
6851
6852 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6853 (decode_frame_entry): Set it. Skip FDE augmentation.
6854
6855 2003-06-01 Richard Henderson <rth@redhat.com>
6856
6857 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6858 not overlapping PC_REGNUM.
6859
6860 2003-06-01 Richard Henderson <rth@redhat.com>
6861
6862 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6863 alpha_push_arguments. Don't dump argument register data to
6864 the target stack. Fix float and 128-bit long double semantics.
6865 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6866 (alpha_fix_call_dummy): Remove.
6867 (alpha_call_dummy_words): Remove.
6868 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
6869
6870 2003-06-01 Richard Henderson <rth@redhat.com>
6871
6872 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6873
6874 2003-06-01 Andrew Cagney <cagney@redhat.com>
6875
6876 * mips-tdep.c (is_mips16_addr): New function.
6877 (make_mips16_addr, unmake_mips16_addr): New functions.
6878 (pc_is_mips16, mips_fetch_instruction): Use.
6879 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6880 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6881 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6882 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6883 TARGET_MIPS.
6884 * config/mips/tm-mips.h: Update copyright.
6885 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6886 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6887 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6888 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6889 (TM_PRINT_INSN_MACH): Delete.
6890 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6891
6892 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6893 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6894 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6895 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6896 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6897 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6898 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6899 mips*-*-riscos* and mips*-*-sysv* onto mips.
6900 * config/mips/mips64.mt: New file.
6901 * config/mips/mips.mt: New file.
6902 * config/mips/littlemips.mt: Delete file.
6903 * config/mips/decstation.mt: Delete file.
6904 * config/mips/vr4300el.mt: Delete file.
6905 * config/mips/vr5000el.mt: Delete file.
6906 * config/mips/vr5000.mt: Delete file.
6907 * config/mips/vr4100.mt: Delete file.
6908 * config/mips/vr4xxxel.mt: Delete file.
6909 * config/mips/vr4300.mt: Delete file.
6910 * config/mips/vr4xxx.mt: Delete file.
6911 * config/mips/bigmips.mt: Delete file.
6912 * config/mips/bigmips64.mt: Delete file.
6913 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6914 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6915 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6916 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6917 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6918 "tm-bigmips.h".
6919 * config/mips/tm-irix3.h: Ditto.
6920 * config/mips/tm-mipsv4.h: Ditto.
6921 * config/mips/tm-embed.h: Ditto.
6922 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6923 "tm-bigmips64.h".
6924 * config/mips/tm-vr5000el.h: Delete file.
6925 * config/mips/tm-tx39l.h: Delete file.
6926 * config/mips/tm-vr4300el.h: Delete file.
6927 * config/mips/tm-vr4xxxel.h: Delete file.
6928 * config/mips/tm-vr4300.h: Delete file.
6929 * config/mips/tm-vr4100.h: Delete file.
6930 * config/mips/tm-vr4xxx.h: Delete file.
6931 * config/mips/tm-vr5000.h: Delete file.
6932 * config/mips/tm-embedl64.h: Delete file.
6933 * config/mips/tm-embedl.h: Delete file.
6934 * config/mips/tm-embed64.h: Delete file.
6935 * config/mips/tm-bigmips64.h: Delete file.
6936 * config/mips/tm-bigmips.h: Delete file.
6937
6938 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6939
6940 Fix gdb/1216.
6941 * shnbsd-nat.c: Include "sh-tdep.h".
6942
6943 From Richard Henderson <rth@redhat.com>:
6944 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6945
6946 2003-05-31 Andrew Cagney <cagney@redhat.com>
6947
6948 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6949 forward declaration.
6950 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6951 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6952 (mips_find_saved_regs): Use set_reg_offset.
6953 (mips_frame_init_saved_regs): Delete function.
6954 (mips_pop_frame): Call mips_find_saved_regs instead of
6955 DEPRECATED_FRAME_INIT_SAVED_REGS.
6956
6957 2003-05-31 Andrew Cagney <cagney@redhat.com>
6958
6959 * mips-tdep.c (mips_gdbarch_init): Do not set
6960 deprecated_max_register_raw_size, register_virtual_size, and
6961 deprecated_max_register_virtual_size.
6962
6963 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6964
6965 * i386-tdep.c: Include "dwarf2-frame.h".
6966 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6967 * Makefile.in (i386-tdep.o): Update dependencies.
6968
6969 * dwarf2-frame.c, dwarf2-frame.h: New files.
6970 * Makefile.in (SFILES): Add dwarf2-frame.c.
6971 (dwarf2_frame_h): Define.
6972 (COMMON_OBS): Add dwarf2-frame.o.
6973 (dwarf2-frame.o): Add dependencies.
6974
6975 2003-05-31 Andreas Jaeger <aj@suse.de>
6976
6977 * x86-64-linux-nat.c: Fix comment.
6978
6979 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6980
6981 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6982 function signature.
6983
6984 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6985 have a sigcontext_addr handler.
6986 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6987 sigcontext_addr handler.
6988
6989 2003-05-31 Andrew Cagney <cagney@redhat.com>
6990
6991 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6992 (print_fp_register_row): Replace do_fp_register_row.
6993 (mips_print_fp_register): Add "file" and "frame" parameters.
6994 (mips_print_register): Add "file" and "frame" parameters.
6995 (mips_print_registers_info): Replace mips_do_registers_info.
6996 (mips_gdbarch_init): Set print_registers_info instead of
6997 deprecated_do_registers_info.
6998 (mips_read_fp_register_single): Add "frame" parameter.
6999 (mips_read_fp_register_double): Add "frame" parameter.
7000
7001 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7002
7003 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7004 Fixes a bug where GDB would print the wrong register names for
7005 targets without SSE.
7006
7007 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7008 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7009 registers.
7010
7011 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7012 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7013 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7014 TDEP->sc_sp_offset.
7015
7016 From Michal Ludvig <mludvig@suse.cz>:
7017 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7018 and `sc_num_regs'.
7019 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7020 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7021 I386_ST0_REGNUM): Move here from...
7022 * i386-tdep.c: ... here.
7023 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7024 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7025 registers if possible.
7026 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7027 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7028 Remove variables.
7029 (i386bsd_sc_reg_offset): New variable.
7030 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7031 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7032 TDEP->sc_sp_offset.
7033 (i386fbsd_sc_reg_offset): New variable.
7034 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7035 TDEP->sc_num_regs.
7036 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7037 variables.
7038 (i386fbsd4_sc_reg_offset): New variable.
7039 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7040 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7041 TDEP->sc_sp_offset.
7042 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7043 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7044 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7045 Remove variables.
7046 (i386nbsd_sc_reg_offset): New variable.
7047 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7048 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7049 TDEP->sc_sp_offset.
7050 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7051 Remove variables.
7052 (i386obsd_sc_reg_offset): New variable.
7053 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7054 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7055 TDEP->sc_sp_offset.
7056 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7057 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7058 for frame pointer offset in `struct sigcontext'.
7059
7060 2003-05-31 Andrew Cagney <cagney@redhat.com>
7061
7062 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7063 architecture methods call_dummy_words, sizeof_call_dummy_words,
7064 push_return_address, store_struct_return, and fix_call_dummy. Set
7065 push_dummy_call instead of deprecated_push_arguments.
7066 (mips_store_struct_return): Delete function.
7067 (mips_fix_call_dummy): Delete function.
7068 (mips_push_return_address): Delete function.
7069 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7070 RA_REGNUM and T9_REGNUM.
7071 (mips_n32n64_push_dummy_call): Ditto for
7072 mips_n32n64_push_arguments.
7073 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7074 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7075
7076 2003-05-31 Andrew Cagney <cagney@redhat.com>
7077
7078 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7079 "dummy_addr" to "bp_addr".
7080 * infcall.c (call_function_by_hand): Pass "funaddr" to
7081 gdbarch_push_dummy_call.
7082 * gdbarch.h, gdbarch.c: Re-generate.
7083 * i386-tdep.c (i386_push_dummy_call): Update.
7084 * arm-tdep.c (arm_push_dummy_call): Update.
7085 * d10v-tdep.c (d10v_push_dummy_call): Update.
7086
7087 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7088
7089 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7090 variable declarations.
7091 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7092 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7093 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7094 x86_64_init_frame_pc, x86_64_init_frame_pc,
7095 x86_64_function_has_prologue): Remove prototypes.
7096 (X86_64_NUM_GREGS): New define.
7097 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7098 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7099 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7100 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7101 XMM1_REGNUM): Remove defines.
7102 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7103 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7104 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7105 X86_64_XMM1_REGNUM): New defines.
7106 (struct x86_64_register_info): Renamed from `struct
7107 register_info'. Remove `size' member.
7108 (x86_64_register_info_table): Remove variable.
7109 (x86_64_register_info): New variable.
7110 (X86_64_NUM_REGS): New define.
7111 (X86_64_NUM_GREGS): Remove define.
7112 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7113 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7114 Remove variables.
7115 (x86_54_dwarf2_reg_to_regnum): Remove function.
7116 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7117 (x86_64_dwarf_reg_to_regnum): New function.
7118 (x86_64_register_name): Rewrite.
7119 (x86_64_register_raw_size): Remove function.
7120 (x86_64_register_byte_table): Remove variable.
7121 (x86_64_register_byte): Remove function.
7122 (x86_64_register_virtual_type): Remove function.
7123 (x86_64_register_type): New function.
7124 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7125 x86_64_register_convert_to_raw): Remove functions.
7126 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7127 (x86_64_use_struct_convention): Make static. Adjust for renamed
7128 defines.
7129 (x86_64_frame_init_saved_regs): Remove function.
7130 (x86_64_push_arguments): Make static. Change to accept a regcache
7131 as argument.
7132 (x86_64_store_return_value, x86_64_extract_return_value): Make
7133 static. Rewrite based on i386 counterparts.
7134 (x86_64_push_dummy_call): New function.
7135 (X86_64_NUM_SAVED_REGS): New define.
7136 (x86_64_register_number): Remove function.
7137 (x86_64_store_struct_return): Remove function.
7138 (x86_64_frameless_function_invocation,
7139 x86_64_function_has_prologue): Remove functions.
7140 (PROLOG_BUFSIZE): Remove define.
7141 (struct x86_64_frame_cache): New structure.
7142 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7143 x86_64_frame_cache, x86_64_frame_this_id,
7144 x86_64_frame_prev_register, x86_64_frame_p,
7145 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7146 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7147 functions.
7148 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7149 variables.
7150 (x86_64_skip_prologue): Rewrite in terms of
7151 x86_64_analyze_prologue.
7152 (x86_64_frame_base_address): New function.
7153 (x86_64_frame_base): New variable.
7154 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7155 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7156 set deprecated_fp_regnum, deprecated_register_size,
7157 deprecated_register_bytes, register_raw_size, register_byte,
7158 register_virtual_type, register_convertiable,
7159 register_convert_to_virtual, convert_to_raw,
7160 deprecated_get_saved_register, deprecated_target_read_fp,
7161 deprecated_push_arguments, deprecated_push_return_address,
7162 deprecated_pop_frame, deprecated_store_struct_return,
7163 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7164 frameless_function_invocation, deprecated_frame_saved_pc,
7165 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7166 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7167 deprecated_init_frame_pc and virtual_frame_pointer. Call
7168 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7169 and x86_64_frame_p. Call frame_base_set_default to register
7170 x86_64_frame_base.
7171 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7172 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7173 (_initialize_x86_64_tdep): Remove function.
7174 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7175 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7176 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7177 define.
7178 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7179 (x86_64_linux_sigcontext_addr): Rewrite.
7180 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7181 x86_64_linux_frame_saved_pc): Remove functions.
7182 (x86_64_linux_pc_in_sigtramp): Renamed from
7183 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7184 trampoline.
7185 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7186 Remove_functions.
7187 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7188 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7189 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7190 (x86_64_regmap): Rename to regmap.
7191 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7192 x86_64_num_gregs.
7193 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7194 x86_64_regmap.
7195 (x86_64_fxsave_offset): Remove function.
7196 (supply_fpregset): Simply call x86_64_supply_fxsave.
7197 (fill_fpregset): Simply call x86_64_fill_fxsave.
7198 (fetch_inferior_registers, store_inferior_registers): Avoid
7199 asignment in if-statement.
7200 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7201 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7202 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7203 (fetch_core_registers): Remove function.
7204 (linux_elf_core_fns): Remove.
7205 (offsetoff): Don't define.
7206 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7207 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7208 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7209 add core-regset.o.
7210 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7211 protection against multiple includes instead of NM_X86_64_h. Add
7212 various comments. Include "config/nm-linux.h". Don't include
7213 <signal.h>.
7214 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7215 GET_THREAD_SIGNALS): Remove defines.
7216 (x86_64_register_u_addr, kernel_u_size,
7217 lin_thread_get_thread_signals): Remove prototypes.
7218 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7219 [HAVE_LINK_H]: Don't include "solib.h".
7220 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7221 * config/i386/tm-x86-64linux.h: Fix comments.
7222 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7223 x86-64-tdep.o): Update dependencies.
7224
7225 2003-05-30 Andrew Cagney <cagney@redhat.com>
7226
7227 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7228 Change parameter type to a "struct regcache *".
7229
7230 * gdbarch.sh: Regardless of the multi-arch level, always define
7231 the macro when not already defined.
7232 * gdbarch.h, gdbarch.c: Re-generate.
7233
7234 2003-05-30 Richard Henderson <rth@redhat.com>
7235
7236 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7237 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7238 (alpha_mdebug_frame_this_id): Likewise.
7239 (alpha_mdebug_frame_prev_register): Likewise.
7240 (alpha_mdebug_frame_base_address): Likewise.
7241 (alpha_mdebug_frame_locals_address): Likewise.
7242 (alpha_mdebug_frame_args_address): Likewise.
7243 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7244 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7245 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7246 loop increment.
7247 (alpha_heuristic_frame_this_id): Make static.
7248 (alpha_heuristic_frame_prev_register): Likewise.
7249 (alpha_heuristic_frame_base_address): Likewise.
7250 * alpha-tdep.h: Update.
7251
7252 2003-05-30 Mark Kettenis <kettenis@gnu.org>
7253
7254 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7255 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7256 defenitions.
7257 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7258 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7259 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7260 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7261 I386_ST0_REGNUM): New defines.
7262 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7263 codestream_get): Remove define.
7264 (codestream_next_addr, condestream_addr, condestream_buf,
7265 codestream_off, codestream_cnt): Remove variables.
7266 (codestream_fill, codestream_seek, codestream_read): Remove
7267 functions.
7268 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7269 functionality.
7270 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7271 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7272 i386_frame_saved_pc, i386_saved_pc_after_call,
7273 i386_frame_num_args, i386_frame_init_saved_regs,
7274 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7275 i386_push_arguments): Remove functions.
7276 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7277 functionality. Use i386_analyze_prologue instead of
7278 i386_get_frame_setup.
7279 (I386_NUM_SAVED_REGS): New define.
7280 (struct i386_frame_cache): New structure.
7281 (i386_alloc_frame_cache, i386_analyze_struct_return,
7282 i386_skip_probe, i386_analyze_frame_setup,
7283 i386_analyze_register_saves, i386_analyze_prologue,
7284 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7285 i386_frame_prev_register, i386_sigtramp_frame_cache,
7286 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7287 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7288 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7289 New functions.
7290 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7291 New variables.
7292 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7293 I386_EAX_REGNUM and I386_EDX_REGNUM.
7294 (i386_extract_return_value, i386_store_return_value): Use
7295 I386_ST0_REGNUM where appropriate.
7296 (i386_extract_struct_value_address): Rewrite to use extract_address.
7297 (i386_svr4_pc_in_sigtramp): Add comment.
7298 (i386_svr4_sigcontext_addr): Rewrite.
7299 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7300 TDEP->sc_sp_offset.
7301 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7302 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7303 of new defines. Set push_dummy_call, don't set
7304 deprecated_push_arguments, deprecated_push_return_address,
7305 deprecated_pop_frame. Don't set parm_boundary. Don't set
7306 deprecated_frame_chain, deprecated_frame_saved_pc,
7307 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7308 save_dummy_frame_tos, unwind_pc. Call
7309 frame_unwind_append_predicate and frame_base_set_default. Don't
7310 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7311 Don't set frameless_function_invocation. Don't set
7312 deprecated_register_bytes, deprecated_register_size,
7313 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7314 * i386-linux-tdep.c: Fix formatting in some comments.
7315 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7316 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7317 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7318 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7319 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7320 redundant parentheses.
7321 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7322 (i386_linux_sigcontext_addr): Use it. Rewrite.
7323 (find_minsym_and_objfile): Change name of second argument.
7324 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7325 changed. Use frame_pc_unwind instead of
7326 DEPRECATED_SAVED_PC_AFTER_CALL.
7327 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7328 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7329 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7330 unwinder.
7331 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7332 "dummy-frame.h".
7333 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7334 (_initialize_i386_cygwin_tdep): New prototype.
7335 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7336 deprecated_frame_chain_valid.
7337 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7338 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7339 Rely on the SVR4 defaults.
7340 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7341 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7342
7343 2003-05-30 Andrew Cagney <cagney@redhat.com>
7344
7345 * infcall.c (call_function_by_hand): Always call
7346 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7347
7348 2003-05-30 Richard Henderson <rth@redhat.com>
7349
7350 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7351 increment.
7352
7353 2003-05-29 Jim Blandy <jimb@redhat.com>
7354
7355 Use gdbarch methods for solib stuff on PowerPC Linux.
7356 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7357 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7358 show through.
7359 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7360 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7361 giving the same effect as the #definitions above.
7362
7363 2003-05-29 Adam Fedor <fedor@gnu.org>
7364
7365 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7366 (find_implementation_from_class): Replace it with the standard
7367 case i.e. do nothing.
7368
7369 2003-05-29 Richard Henderson <rth@redhat.com>
7370
7371 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7372 (alpha_linux_sigtramp_offset): Use it. Make static.
7373 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7374 update for new frame model.
7375 * alpha-mdebug-tdep.c: New file.
7376 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7377 (alpha_osf1_init_abi): Install it.
7378 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7379 (linked_proc_desc_table): Remove.
7380 (alpha_frame_past_sigtramp_frame): Remove.
7381 (alpha_dynamic_sigtramp_offset): Remove.
7382 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7383 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7384 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7385 (push_sigtramp_desc): Remove.
7386 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7387 (alpha_cannot_store_register): Likewise.
7388 (alpha_sigcontext_addr): Remove.
7389 (alpha_find_saved_regs): Remove.
7390 (alpha_frame_init_saved_regs): Remove.
7391 (alpha_init_frame_pc_first): Remove.
7392 (read_next_frame_reg): Remove.
7393 (alpha_frame_saved_pc): Remove.
7394 (alpha_saved_pc_after_call): Remove.
7395 (temp_proc_desc, temp_saved_regs): Remove.
7396 (alpha_about_to_return): Remove.
7397 (cached_proc_desc): Remove.
7398 (alpha_frame_chain): Remove.
7399 (alpha_print_extra_frame_info): Remove.
7400 (alpha_init_extra_frame_info): Remove.
7401 (alpha_frame_locals_address): Remove.
7402 (alpha_frame_args_address): Remove.
7403 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7404 (alpha_push_dummy_frame): Remove.
7405 (alpha_pop_frame): Remove.
7406 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7407 (alpha_read_insn): New.
7408 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7409 for different insn encodings.
7410 (alpha_in_lenient_prologue): Remove.
7411 (struct alpha_sigtramp_unwind_cache): New.
7412 (alpha_sigtramp_frame_unwind_cache): New.
7413 (alpha_sigtramp_register_address): New.
7414 (alpha_sigtramp_frame_this_id): New.
7415 (alpha_sigtramp_frame_prev_register): New.
7416 (alpha_sigtramp_frame_unwind): New.
7417 (alpha_sigtramp_frame_p): New.
7418 (struct alpha_heuristic_unwind_cache): New.
7419 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7420 don't count nop insns that occur between functions.
7421 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7422 heuristic_proc_desc, but without the mdebug wrapping.
7423 (alpha_heuristic_frame_this_id): New.
7424 (alpha_heuristic_frame_prev_register): New.
7425 (alpha_heuristic_frame_unwind): New.
7426 (alpha_heuristic_frame_p): New.
7427 (alpha_heuristic_frame_base_address): New.
7428 (alpha_heuristic_frame_base): New.
7429 (alpha_unwind_dummy_id): New.
7430 (alpha_unwind_pc): New.
7431 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7432 frame related deprecated initializations; install replacements.
7433 (alpha_dump_tdep): Remove.
7434 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7435 (alpha_read_insn, alpha_after_prologue,
7436 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7437 alpha_heuristic_frame_prev_register,
7438 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7439 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7440 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7441 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7442
7443 2003-05-29 Andrew Cagney <cagney@redhat.com>
7444
7445 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7446 dependant on the availability of ASSERT_FUNCTION.
7447 (ASSERT_FUNCTION): Do not define when there is no function name.
7448
7449 2003-05-29 Kevin Buettner <kevinb@redhat.com>
7450
7451 From Jimi X <jimix@watson.ibm.com>:
7452 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7453
7454 2003-05-28 Jim Blandy <jimb@redhat.com>
7455
7456 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7457 argument to ptrace to int; the system headers should give it the
7458 right type, and pointers don't fit in ints on powerpc64-*-*.
7459
7460 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7461
7462 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7463 DW_TAG_catch_block.
7464
7465 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7466
7467 * stabsread.c (dbx_lookup_type): Make static.
7468 (read_type): Ditto.
7469 (add_undefined_type): Ditto.
7470 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7471 not export.
7472
7473 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7474
7475 * hpread.c (hpread_has_name): Make static.
7476 (hpread_psymtab_to_symtab): Ditto.
7477 (file_exists): Ditto.
7478 (hpread_call_pxdb): Ditto.
7479 (hpread_pxdb_needed): Ditto.
7480 (hpread_quick_traverse): Ditto.
7481 (hpread_get_header): Ditto.
7482 (hpread_get_lntt): Ditto.
7483 (hpread_get_slt): Ditto.
7484 (class_of): Ditto.
7485
7486 2003-05-25 Andreas Schwab <schwab@suse.de>
7487
7488 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7489 stack_align and deprecated_extra_stack_alignment_needed.
7490 (m68k_stack_align): Delete.
7491
7492 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7493 (m68k_register_virtual_size): Likewise.
7494 (altos_skip_prologue): Remove obsolete function.
7495 (isi_frame_num_args): Likewise.
7496 (news_frame_num_args): Likewise.
7497 (m68k_fix_call_dummy): Make static.
7498 (m68k_push_dummy_frame): Likewise.
7499 (m68k_pop_frame): Likewise.
7500 (m68k_skip_prologue): Likewise.
7501 (m68k_frame_init_saved_regs): Likewise.
7502 (m68k_saved_pc_after_call): Likewise.
7503 (m68k_get_longjmp_target): Make multi-arch.
7504 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7505 structure. Register m68k_get_longjmp_target if enabled.
7506 * m68k-tdep.h (struct gdbarch_tdep): Define.
7507 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7508
7509 * Makefile.in (config.status): Also depend on configure.tgt
7510 and configure.host.
7511 (m68klinux-tdep.o): Update dependencies.
7512 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7513 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7514 (M68K_LINUX_JB_PC): Define.
7515 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7516 and take additional parameter.
7517 (m68k_linux_sigtramp_saved_pc): Update.
7518 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7519 m68k_linux_pc_in_sigtramp, in_plt_section,
7520 find_solib_trampoline_target.
7521 * config/m68k/tm-linux.h: Don't include any tm headers.
7522 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7523 (JB_ELEMENT_SIZE): Likewise.
7524 (JB_PC): Likewise.
7525 (GET_LONGJMP_TARGET): Likewise.
7526 (IN_SIGTRAMP): Likewise.
7527 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7528
7529 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7530
7531 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7532 (sparc32_push_arguments): Re-implement by calling
7533 sparc32_do_push_arguments.
7534
7535 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7536
7537 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7538 SPARC_O1_REGNUM): New defines.
7539 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7540 (sparc32_store_return_value): New function.
7541 (sparc_extract_struct_value_address): Rewrite to operate on a
7542 regcache.
7543 (sparc_gdbarch_init): Don't set
7544 deprecated_extract_struct_value_address. Set
7545 extract_struct_value_address instead. Don't set
7546 deprecated_extract_return_value and deprecated_store_return_value
7547 for 32-bit targets. Set extract_return_value and
7548 store_return_value instead.
7549 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7550 DEPRECTAED_EXTRACT_RETURN_VALUE,
7551 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7552 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7553 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7554 (sparc_store_return_value): Remove prototype.
7555 (sparc32_store_return_value): New prototype.
7556 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7557 Adjust prototypes.
7558
7559 2003-05-24 Mark Kettenis <kettenis@gnu.org>
7560
7561 * sparcnbsd-tdep.c: Include "gdb_string.h".
7562
7563 2003-05-23 Andrew Cagney <cagney@redhat.com>
7564
7565 * p-valprint.c (pascal_val_print): Replace extract_address with
7566 the inline equivalent extract_unsigned_integer.
7567 * jv-valprint.c (java_value_print): Ditto.
7568 * ada-valprint.c (ada_val_print_1): Ditto.
7569 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7570
7571 2003-05-23 Theodore A. Roth <troth@openavr.org>
7572
7573 * blockframe.c (frameless_look_for_prologue): Remove unused
7574 after_prologue variable.
7575
7576 2003-05-23 Mark Kettenis <kettenis@gnu.org>
7577
7578 * blockframe.c (get_pc_function_start): Rewrite to avoid
7579 asignments in if-statements.
7580
7581 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7582
7583 Committed by Elena Zannoni <ezannoni@redhat.com>.
7584 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
7585 files, don't relocate absolute symbols (and do use mst_abs).
7586
7587 2003-05-23 Andrew Cagney <cagney@redhat.com>
7588
7589 * objc-lang.c: Include "gdb_assert.h".
7590 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7591 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7592 (gdb_check, gdb_check_fatal): Delete functions.
7593 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7594 gdb_assert.
7595 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7596 * Makefile.in (objc-lang.o): Update dependencies.
7597
7598 2003-05-22 Ian Lance Taylor <ian@airs.com>
7599
7600 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7601 with fprintf_filtered, not fprintf_unfiltered.
7602
7603 2003-05-22 Andrew Cagney <cagney@redhat.com>
7604
7605 * stack.c (frame_info): Inline extract_address, replacing it with
7606 extract_unsigned_integer.
7607 * findvar.c (unsigned_pointer_to_address): Ditto.
7608 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7609 * dwarf2expr.c (dwarf2_read_address): Ditto.
7610 * frame.c (frame_pc_unwind): Update comment.
7611 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7612
7613 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7614
7615 * infptrace.c (detach): Call print_sys_errmsg rather than
7616 perror_with_name to issue warning message when errno is non-zero
7617 after calling ptrace detach.
7618
7619 2003-05-21 J. Brobecker <brobecker@gnat.com>
7620
7621 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7622 macro definitions from here...
7623 * hppa-tdep.c: ...to there.
7624
7625 2003-05-20 Kevin Buettner <kevinb@redhat.com>
7626
7627 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7628 register_ptrace_addr(). Fix all callers.
7629
7630 2003-05-21 Andreas Schwab <schwab@suse.de>
7631
7632 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7633 dependencies.
7634 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7635 end.
7636 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7637 (_initialize_m68k_linux_tdep): New function.
7638 (m68k_linux_frame_saved_pc): Make static.
7639 (m68k_linux_extract_return_value): Likewise.
7640 (m68k_linux_store_return_value): Likewise.
7641 (m68k_linux_extract_struct_value_address): Likewise.
7642 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7643 Remove.
7644 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7645 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7646 (DEPRECATED_FRAME_SAVED_PC): Remove.
7647
7648 2003-05-20 Kris Warkentin <kewarken@qnx.com>
7649
7650 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7651 regset numbering rather than our own.
7652
7653 2003-05-19 David Carlton <carlton@bactrian.org>
7654
7655 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7656
7657 2003-05-19 David Carlton <carlton@bactrian.org>
7658
7659 Partial fix for PR c++/827.
7660 * cp-support.h: Include symtab.h.
7661 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7662 * cp-namespace.c: Update contributors.
7663 (cp_lookup_symbol_nonlocal): New.
7664 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7665 (lookup_symbol_file): Ditto.
7666 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7667 * block.h: Declare block_scope, block_using, block_global_block.
7668 * block.c (block_scope): New.
7669 (block_using, block_global_block): Ditto.
7670 * Makefile.in (cp_support_h): Depend on symtab_h.
7671 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7672
7673 2003-05-19 David Carlton <carlton@bactrian.org>
7674
7675 * language.h (struct language_defn): Add 'la_value_of_this'
7676 and 'la_lookup_symbol_nonlocal' members.
7677 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7678 lookup_symbol_static, lookup_symbol_global,
7679 lookup_symbol_aux_block.
7680 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7681 if we should search fields of this and how to do static/global
7682 lookup.
7683 (lookup_symbol_aux_block): Make extern.
7684 (basic_lookup_symbol_nonlocal): New.
7685 (lookup_symbol_static, lookup_symbol_global): Ditto.
7686 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7687 'la_lookup_symbol_nonlocal' members.
7688 * c-lang.c (c_language_defn, cplus_language_defn)
7689 (asm_language_defn, minimal_language_defn): Ditto.
7690 * jv-lang.c (java_language_defn): Ditto.
7691 * language.c (unknown_language_defn, auto_language_defn)
7692 (local_language_defn): Ditto.
7693 * m2-lang.c (m2_language_defn): Ditto.
7694 * objc-lang.c (objc_language_defn): Ditto.
7695 * scm-lang.c (scm_language_defn): Ditto.
7696 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7697 * p-lang.c (pascal_language_defn): Ditto for both.
7698 * Makefile.in (f-lang.o): Depend on value_h.
7699 (p-lang.o): Ditto.
7700
7701 2003-05-19 David Carlton <carlton@bactrian.org>
7702
7703 * block.h: Declare block_static_block.
7704 * block.c (block_static_block): New.
7705 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7706 lookup_symbol_aux_local, calling block_static_block instead.
7707 (lookup_symbol_aux_local): Delete 'static_block' argument.
7708
7709 2003-05-19 David Carlton <carlton@bactrian.org>
7710
7711 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7712
7713 2003-05-19 Michal Ludvig <mludvig@suse.cz>
7714
7715 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7716 register numbers mapping.
7717
7718 2003-05-18 Adam Fedor <fedor@gnu.org>
7719
7720 * symtab.c (completion_list_objc_symbol): New function.
7721 (make_symbol_completion_list): Use it to add ObjC symbols
7722 when looking though the list.
7723 (language_search_unquoted_string): New function.
7724 (make_file_symbol_completion_list): Use it.
7725
7726 2003-05-18 Andreas Schwab <schwab@suse.de>
7727
7728 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7729 dependencies.
7730 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7731 as m68k_linux_extract_return_value.
7732 (DEPRECATED_STORE_RETURN_VALUE): Define as
7733 m68k_linux_store_return_value.
7734 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7735 m68k_linux_extract_struct_value_address.
7736 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7737 get_next_frame, get_frame_base, get_frame_pc.
7738 (m68k_linux_frame_saved_pc): Use get_frame_base.
7739 (m68k_linux_extract_return_value): New function.
7740 (m68k_linux_store_return_value): New function.
7741 (m68k_linux_extract_struct_value_address): New function.
7742 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7743
7744 * c-exp.y (typebase): Remove duplicate occurence of
7745 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
7746 of lookup_signed_typename.
7747
7748 2003-05-18 Mark Kettenis <kettenis@gnu.org>
7749
7750 * dwarf2loc.c (find_location_expression): Change type of second
7751 argument to `size_t *'.
7752 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7753 for size variable.
7754
7755 2003-05-18 David Carlton <carlton@bactrian.org>
7756
7757 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7758 'linkage_name'. Add comment.
7759 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7760 'linkage_name'.
7761 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7762 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7763 (lookup_block_symbol): Ditto.
7764
7765 2003-05-16 Andrew Cagney <cagney@redhat.com>
7766
7767 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7768 * gdbarch.h, gdbarch.c: Re-generate.
7769 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7770 * TODO (REGISTER_BYTES): Delete reference.
7771 * alpha-tdep.c (alpha_gdbarch_init): Update.
7772 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7773 * x86-64-tdep.c (x86_64_init_abi): Update.
7774 * vax-tdep.c (vax_gdbarch_init): Update.
7775 * v850-tdep.c (v850_gdbarch_init): Update.
7776 * sparc-tdep.c (sparc_gdbarch_init): Update.
7777 * sh-tdep.c (sh_gdbarch_init): Update.
7778 * s390-tdep.c (s390_gdbarch_init): Update.
7779 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7780 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7781 (ns32k_gdbarch_init_32382): Update.
7782 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7783 * mcore-tdep.c (mcore_gdbarch_init): Update.
7784 * m68k-tdep.c (m68k_gdbarch_init): Update.
7785 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7786 * ia64-tdep.c (ia64_gdbarch_init): Update.
7787 * i386-tdep.c (i386_gdbarch_init): Update.
7788 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7789 * hppa-tdep.c (hppa_gdbarch_init): Update.
7790 * h8300-tdep.c (h8300_gdbarch_init): Update.
7791 * frv-tdep.c (frv_gdbarch_init): Update.
7792 * cris-tdep.c (cris_gdbarch_init): Update.
7793 * avr-tdep.c (avr_gdbarch_init): Update.
7794 * arm-tdep.c (arm_gdbarch_init): Update.
7795 * sparc-tdep.c (sparc_pop_frame): Update.
7796 * rs6000-tdep.c (rs6000_pop_frame): Update.
7797 * remote.c (init_remote_state): Update.
7798 (remote_prepare_to_store): Update.
7799 * remote-vx.c (vx_prepare_to_store): Update.
7800 * remote-sds.c (sds_fetch_registers): Update.
7801 (sds_prepare_to_store): Update.
7802 * remote-array.c: Update.
7803 * regcache.c (init_legacy_regcache_descr): Update.
7804 (init_regcache_descr): Update.
7805 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7806 (mips_o64_extract_return_value): Update.
7807 * irix5-nat.c (fetch_core_registers): Update.
7808 * irix4-nat.c (fetch_core_registers): Update.
7809 * i386-tdep.h: Update.
7810 * hppa-tdep.c (pa_do_registers_info): Update.
7811 (pa_do_strcat_registers_info): Update.
7812 * cris-tdep.c (cris_register_bytes_ok): Update.
7813 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7814 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7815 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7816 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7817 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7818 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7819 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7820 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7821 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7822 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7823 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7824 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7825 (REGISTER_BYTES_OK): Update.
7826 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7827 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7828
7829 2003-05-16 Ian Lance Taylor <ian@airs.com>
7830
7831 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7832 (vax_print_insn, print_insn_arg): Remove static functions.
7833 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7834 print_insn_vax from opcodes library.
7835 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7836
7837 2003-05-15 Andrew Cagney <cagney@redhat.com>
7838
7839 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7840 * target.h (memory_breakpoint_from_pc): Delete declaration.
7841 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7842 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7843 * monitor.c (monitor_insert_breakpoint): Use
7844 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7845 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7846 * gdbarch.h, gdbarch.c: Re-generate.
7847 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7848 (sparc_gdbarch_init): Set breakpoint_from_pc to
7849 sparc_breakpoint_from_pc.
7850 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7851 (BREAKPOINT_FROM_PC): Define.
7852 (sparc_breakpoint_from_pc): Declare.
7853 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7854 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7855 (BREAKPOINT_FROM_PC): Define.
7856 (BREAKPOINT): Delete macro.
7857 * target.h: Update comment.
7858 * s390-tdep.c (s390_gdbarch_init): Update comments.
7859 * remote.c: Update comments.
7860 * remote-mips.c: Update comments.
7861 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7862 * mem-break.c: Update comment.
7863 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7864 (ia64_memory_insert_breakpoint): Update.
7865 * config/sparc/tm-sparc.h: Update comment.
7866 * config/pa/tm-hppa64.h: Update comment.
7867 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7868 (rs6000_breakpoint_from_pc): Update.
7869 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7870 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7871 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7872 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7873 (mips_breakpoint_from_pc): Update.
7874 (mips_dump_tdep): Update.
7875
7876 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7877 * minsyms.c (lookup_minimal_symbol): Inline
7878 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7879
7880 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7881 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7882 * p-lang.c (pascal_printstr): Ditto.
7883 * objc-lang.c (objc_printstr): Ditto.
7884 * m2-lang.c (m2_printstr): Ditto.
7885 * jv-valprint.c (java_print_value_fields): Ditto.
7886 * f-lang.c (f_printstr): Ditto.
7887 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7888 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7889 for repeat_count_threshold.
7890 * Makefile.in (cp-valprint.o): Update dependencies.
7891
7892 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
7893
7894 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7895 (examine_prologue): Support looking through leaf functions, knowing
7896 they start with mov r2,r12. Support skipping over indirect stores
7897 of the input registers. Upon hitting a non-nop branch instruction
7898 or predicated instruction, bail out by setting lim_pc to the current
7899 pc value in the loop. At the end, if the lim_pc value is still
7900 beyond our calculated value and we have trust_limit set,
7901 use the lim_pc value.
7902
7903 2003-05-15 Andrew Cagney <cagney@redhat.com>
7904
7905 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7906 generic_find_dummy_frame.
7907 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7908 (deprecated_generic_find_dummy_frame): Update.
7909 (deprecated_read_register_dummy): Update.
7910 * frame.c (deprecated_generic_get_saved_register): Update.
7911
7912 2003-05-15 Theodore A. Roth <troth@openavr.org>
7913
7914 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7915 (avr_gdbarch_init): Set breakpoint_from_pc method.
7916
7917 2003-05-15 Andrew Cagney <cagney@redhat.com>
7918
7919 * regcache.c (build_regcache): Set deprecated_register_valid
7920 directly.
7921 (deprecated_grub_regcache_for_register_valid): Delete function.
7922 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7923 declaration.
7924
7925 2003-05-15 David Carlton <carlton@bactrian.org>
7926
7927 Committed by Elena Zannoni <ezannoni@redhat.com>
7928 * symtab.c (lookup_symbol_aux): Delete calls to
7929 lookup_symbol_aux_minsyms.
7930 (lookup_symbol_aux_minsyms): Comment out function and
7931 prototype. Delete lookup by mangled name.
7932
7933 2003-05-14 Kevin Buettner <kevinb@redhat.com>
7934
7935 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7936 correctly indicate an empty stack and ``stack_allocated'' to the
7937 indicate the number of elements initially allocated.
7938 (dwarf_expr_grow_stack): Simplify method for computing new
7939 stack size. Don't loop infinitely if ``stack_len'' is zero.
7940 (execute_stack_op): Move ``ctx->in_reg'' initialization
7941 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7942 be used in conjuction with DW_OP_piece. Revise error message
7943 accordingly.
7944
7945 2003-05-14 Theodore A. Roth <troth@openavr.org>
7946
7947 * MAINTAINERS: Update my email address.
7948 * avr-tdep.c: Ditto.
7949
7950 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
7951
7952 * symtab.h (enum domain_enum): Rename from namespace_enum.
7953 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7954 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7955 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7956 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7957 TYPES_NAMESPACE, METHODS_NAMESPACE.
7958 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7959 (struct symbol, struct partial_symbol): Rename field
7960 'namespace_enum namespace' to 'domain_enum domain'.
7961 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7962 Delete old define kludge for namespace.
7963
7964 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7965 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7966 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7967 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7968 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7969 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7970 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7971 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7972 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7973 occurrences of the above.
7974
7975 2003-05-14 Ian Lance Taylor <ian@airs.com>
7976
7977 * Makefile.in (install-only): Use $(SHELL) when running
7978 mkinstalldirs.
7979
7980 2003-05-13 Ian Lance Taylor <ian@airs.com>
7981
7982 * MAINTAINERS (write after approval): Add myself.
7983
7984 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7985 second and third arguments.
7986 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7987 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7988
7989 2003-05-13 Andrew Cagney <cagney@redhat.com>
7990
7991 * defs.h (store_address): Delete declaration.
7992 findvar.c (store_address): Delete function.
7993 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7994 store_unsigned_integer.
7995 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7996 * v850-tdep.c (v850_push_arguments): Ditto.
7997 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7998 * sh-tdep.c (sh64_get_saved_register): Ditto.
7999 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8000 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8001 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8002 (mips_get_saved_register): Ditto.
8003 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8004 (find_func_descr, ia64_push_arguments): Ditto.
8005 * i386-tdep.c (i386_push_arguments): Ditto.
8006 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8007 * frv-tdep.c (frv_push_arguments): Ditto.
8008 * frame.c (legacy_saved_regs_prev_register): Ditto.
8009 (deprecated_generic_get_saved_register): Ditto.
8010 * findvar.c (unsigned_address_to_pointer): Ditto.
8011 * dwarf2read.c (dwarf2_const_value): Ditto.
8012 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8013 * alpha-tdep.c (alpha_push_arguments): Ditto.
8014
8015 2003-05-12 J. Brobecker <brobecker@gnat.com>
8016
8017 * NEWS: Mention that the hppa-hpux port has been partially
8018 multiarched (32bit ABIT only, so far).
8019
8020 2003-05-11 Andrew Cagney <cagney@redhat.com>
8021
8022 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8023 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8024 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8025 sim/testsuite/sim/arm/misaligned2.ms, and
8026 sim/testsuite/sim/arm/misaligned3.ms.
8027 * disasm.h (struct ui_file): Add opaque struct declaration.
8028 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8029 * frame.h (struct ui_file): Ditto.
8030
8031 2003-05-11 Mark Kettenis <kettenis@gnu.org>
8032
8033 * value.h: Pretty print.
8034
8035 2003-05-10 Mark Kettenis <kettenis@gnu.org>
8036
8037 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8038
8039 2003-05-08 Andrew Cagney <cagney@redhat.com>
8040
8041 * regcache.h (max_register_size): Delete declaration.
8042 * regcache.c (max_register_size): Delete function.
8043 (struct regcache_descr): Delete field "max_register_size".
8044 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8045 registers fit in MAX_REGISTER_SIZE.
8046 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8047 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8048 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8049 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8050 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8051 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8052 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8053 * dve3900-rom.c, hppa-tdep.c: Ditto.
8054
8055 2003-05-08 David Carlton <carlton@math.stanford.edu>
8056
8057 * valops.c (push_word): Fix typo.
8058
8059 2003-05-08 Andrew Cagney <cagney@redhat.com>
8060
8061 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8062 * gdbarch.h: Re-generate.
8063 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8064 (legacy_max_register_raw_size): Delete declaration.
8065 * regcache.c (legacy_max_register_raw_size): Delete function.
8066 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8067 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8068 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8069 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8070 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8071 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8072 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8073 * findvar.c, dwarf2cfi.c: Ditto.
8074
8075 2003-05-08 Andrew Cagney <cagney@redhat.com>
8076
8077 * mips-tdep.c (read_signed_register): New function, moved to here
8078 from "regcache.c".
8079 (read_signed_register_pid): Ditto.
8080 * regcache.c (read_signed_register_pid): Delete function, moved to
8081 "mips-tdep.c".
8082 (read_signed_register): Ditto.
8083 * regcache.h (read_signed_register): Delete declaration.
8084 (read_signed_register_pid): Delete declaration.
8085
8086 2003-05-08 Andrew Cagney <cagney@redhat.com>
8087
8088 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8089 * gdbarch.h: Re-generate.
8090 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8091 (legacy_max_register_virtual_size): Delete declaration.
8092 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8093 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8094 * tracepoint.c (memrange_sortmerge): Ditto.
8095 * sparc-tdep.c (sparc_print_registers): Ditto.
8096 * regcache.c (legacy_max_register_virtual_size): Delete function.
8097
8098 2002-05-08 J. Brobecker <brobecker@gnat.com>
8099
8100 * fork-child.c (escape_bang_in_quoted_argument): New function.
8101 (fork_inferior): Escape '!' characters in quoted arguments
8102 only when needed.
8103
8104 2003-05-08 J. Brobecker <brobecker@gnat.com>
8105
8106 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8107 the language of the CU is not currently supported by GDB.
8108
8109 2003-05-08 J. Brobecker <brobecker@gnat.com>
8110
8111 * defs.h (language): Add language_minimal enum value.
8112 * c-lang.c (minimal_language_defn): New language definition.
8113 (_initialize_c_language): Add the new minimal language to the list
8114 of languages known to GDB.
8115
8116 2003-05-08 Kevin Buettner <kevinb@redhat.com>
8117
8118 * frame.c (get_frame_type): Don't attempt to lazily initialize
8119 frame's unwinder for legacy frames.
8120
8121 2003-05-07 Andrew Cagney <cagney@redhat.com>
8122
8123 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8124 and "regcache" parameters.
8125 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8126
8127 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8128
8129 * dwarf2read.c (dwarf_decode_lines): Only use output of
8130 check_cu_functions() when calling record_line(). Do not update
8131 the current address.
8132
8133 2003-05-07 Andrew Cagney <cagney@redhat.com>
8134
8135 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8136 code.
8137
8138 2003-05-07 Jim Blandy <jimb@redhat.com>
8139
8140 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8141 'maint info symtabs' and 'maint info psymtabs'.
8142 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8143 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8144 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8145 Declarations updated.
8146 * maint.c (maintenance_list_command): Delete.
8147 (_initialize_maint_cmds): Update calls to add_cmd.
8148 * gdbcmd.h (maintenancelistlist): Delete declaration.
8149 * cli/cli-cmds.c (maintenancelistlist): Delete.
8150 (init_cmd_lists): Don't initialize it.
8151 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8152
8153 2003-05-07 Andrew Cagney <cagney@redhat.com>
8154
8155 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8156 "regcache".
8157 (d10v_print_registers_info): Update.
8158 (d10v_dmap_register, d10v_imap_register): Delete functions.
8159 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8160 and "imap_register".
8161 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8162 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8163 * arch-utils.c (generic_remote_translate_xfer_address): Add
8164 "regcache" and "gdbarch" parameters.
8165 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8166 parameter. Change class to multi-arch.
8167 * gdbarch.h, gdbarch.c: Re-generate.
8168 * remote.c (remote_xfer_memory): Use
8169 gdbarch_remote_translate_xfer_address.
8170
8171 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8172
8173 * infrun.c (prev_pc): Move declaration ahead of proceed().
8174 (proceed): Refresh prev_pc value before resuming.
8175 (stop_stepping): Remove code to refresh prev_pc.
8176
8177 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8178
8179 * nto-tdep.c: Removed stray comment.
8180
8181 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8182
8183 * i386-nto-tdep.c: Fix old K&R function definitions.
8184 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8185 Also change add_show_from_set() call to add_setshow_cmd().
8186 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8187
8188 2003-05-05 Andrew Cagney <cagney@redhat.com>
8189
8190 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8191 (fprint_dummy_frames): New function.
8192 (maintenance_print_dummy_frames): New function.
8193 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8194 * frame.c (fprint_frame_id): Make global.
8195 * frame.h (fprint_frame_id): Declare.
8196 * Makefile.in (dummy-frame.o): Update dependencies.
8197
8198 2003-05-05 Andrew Cagney <cagney@redhat.com>
8199
8200 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8201 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8202 SIZEOF_CALL_DUMMY_WORDS.
8203 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8204 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8205 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8206 CALL_DUMMY_BREAKPOINT_OFFSET.
8207 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8208 CALL_DUMMY_START_OFFSET.
8209 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8210 * gdbarch.h, gdbarch.c: Re-generate.
8211 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8212 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8213 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8214 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8215 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8216 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8217 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8218 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8219 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8220 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8221 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8222 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8223 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8224 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8225 * config/sparc/tm-sparc.h: Update.
8226
8227 2003-05-05 Kris Warkentin <kewarken@qnx.com>
8228
8229 * configure.tgt: Add i[3456]86-*-nto*.
8230 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8231 * nto-tdep.c: New file. Neutrino target support routines.
8232 * nto-tdep.h: New file. Neutrino target header.
8233 * config/tm-qnxnto.h: New file.
8234 * config/i386/i386nto.mt: New file.
8235 * config/i386/tm-i386nto.h: New file.
8236
8237 2003-05-04 Andrew Cagney <cagney@redhat.com>
8238
8239 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8240 (load_infrun_state): Ditto.
8241 (struct thread_info): Drop "prev_func_name" field.
8242 * thread.c (load_infrun_state): Update.
8243 (save_infrun_state): Update.
8244 * infrun.c (prev_func_name): Delete variable.
8245 (init_wait_for_inferior): Do not clear prev_func_name.
8246 (stop_stepping, keep_going, context_switch): Do not swap
8247 prev_func_name.
8248 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8249 instead of PC_IN_SIGTRAMP.
8250
8251 2003-05-04 Andrew Cagney <cagney@redhat.com>
8252
8253 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8254 REGISTER_BYTE with register_offset_hack.
8255 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8256 that REGISTER_BYTE is consistent with the regcache.
8257 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8258 * gdbarch.h, gdbarch.c: Regenerate.
8259
8260 2003-05-04 Mark Kettenis <kettenis@gnu.org>
8261
8262 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8263 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8264
8265 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8266
8267 2003-05-03 J. Brobecker <brobecker@gnat.com>
8268
8269 From Thierry Schneider <tpschneider1@yahoo.com>
8270 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8271 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8272 (mi-cmd-symbol.o): Add rule.
8273
8274 2003-05-03 Andrew Cagney <cagney@redhat.com>
8275
8276 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8277 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8278 * gdbarch.h, gdbarch.c: Re-generate.
8279 * d10v-tdep.c (d10v_push_dummy_code): New function.
8280 (d10v_gdbarch_init): Set push_dummy_code.
8281 * infcall.c (legacy_push_dummy_code): New function.
8282 (generic_push_dummy_code): New function.
8283 (push_dummy_code): New function.
8284 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8285 instead of dummy_addr, to push_dummy_call. Move call to
8286 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8287 switch.
8288 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8289
8290 2003-05-03 Andrew Cagney <cagney@redhat.com>
8291
8292 * disasm.h (print_insn): Declare.
8293 * disasm.c (init_gdb_disassemble_info): New function.
8294 (gdb_disassembly): Call init_gdb_disassemble_info.
8295 (gdb_print_insn): New function.
8296 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8297 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8298 * mcore-tdep.c: Include "disasm.h"
8299 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8300 * d10v-tdep.c: Include "disasm.h".
8301 (display_trace): Call gdb_print_insn, instead of print_insn.
8302 (print_insn): Delete function.
8303 * printcmd.c: Include "disasm.h".
8304 (print_insn): Delete function.
8305 (print_formatted): Call gdb_print_insn, instead of print_insn.
8306 * Makefile.in (printcmd.o): Update dependencies.
8307 (mcore-tdep.o, d10v-tdep.o): Ditto.
8308
8309 2003-05-02 Andrew Cagney <cagney@redhat.com>
8310
8311 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8312 PC_REGNUM, re-indent.
8313 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8314 PC_REGNUM isn't set.
8315
8316 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8317 * gdbarch.h, gdbarch.c: Re-generate.
8318 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8319 register_virtual_size, pc_regnum, or register_bytes.
8320 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8321 (d10v_register_type): Use D10V_PC_REGNUM.
8322 (d10v_print_registers_info, d10v_read_pc): Ditto.
8323 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8324 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8325
8326 2003-05-02 David Carlton <carlton@bactrian.org>
8327
8328 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8329 the name with mstrsave.
8330
8331 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
8332
8333 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8334 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8335 (host_charset_name, target_charset_name): New vars for use by
8336 set/show commands.
8337 (host_charset_enum, target_charset_enum): New enums for set/show
8338 commands.
8339 (set_charset_sfunc, set_host_charset_sfunc,
8340 set_target_charset_sfunc): New functions.
8341 (set_host_charset, set_target_charset): Make static.
8342 (list_charsets, set_host_charset_command,
8343 set_target_charset_command): Delete functions.
8344 (show_charset_command): Rewrite as....
8345 (show_charset): Hook this up with the set/show command mechanism.
8346 (_initialize_charset): Change names of charsets to match the
8347 set/show enums. Use host_charset_name and target_charset_name.
8348 Use set/show mechanism for charset, host-charset, target-charset
8349 commands. Do not make 'show host-charset' and 'show
8350 target-charset' be aliases of 'show charset'.
8351
8352 * charset.h (set_host_charset, set_target_charset): Don't export,
8353 they are not used outside the file.
8354
8355 2003-05-01 Andrew Cagney <cagney@redhat.com>
8356
8357 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8358 (gdb_disassembly): Make "di" non static, always initialize and
8359 cleanup. Always use dis_asm_read_memory.
8360 (gdb_dis_asm_read_memory): Delete function.
8361
8362 2003-05-01 Andrew Cagney <cagney@redhat.com>
8363
8364 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8365 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8366
8367 2003-04-30 Andrew Cagney <cagney@redhat.com>
8368
8369 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8370 "tm_print_insn_info".
8371 (TARGET_PRINT_INSN_INFO): Delete macro.
8372 (dis_asm_read_memory): Delete function declaration.
8373 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8374 (tm_print_insn_info): Delete variable definition.
8375 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8376 * gdbarch.h, gdbarch.c: Re-generate.
8377 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8378 "deprecated_tm_print_insn_info".
8379 * mcore-tdep.c (mcore_dump_insn): Ditto.
8380 * mips-tdep.c (mips_gdbarch_init): Ditto.
8381 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8382 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8383 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8384 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8385 instead of TARGET_PRINT_INSN_INFO, add comment.
8386 * s390-tdep.c (s390_get_frame_info): Instead of
8387 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8388 (s390_check_function_end, s390_is_sigreturn): Ditto.
8389 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8390 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8391 * disasm.c: Include "gdbcore.h".
8392 (_initialize_disasm): New function, initialize
8393 "deprecated_tm_print_insn_info".
8394 (deprecated_tm_print_insn_info): New variable.
8395 (dis_asm_read_memory): Moved from "corefile.c", made static.
8396 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8397 * Makefile.in (disasm.o): Update dependencies.
8398
8399 2003-04-30 Andrew Cagney <cagney@redhat.com>
8400
8401 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8402
8403 2003-04-29 Adam Fedor <fedor@gnu.org>
8404
8405 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8406 * infcall.c (find_function_addr): Make non-static.
8407 * infcall.h (find_function_addr): Declare.
8408 * Makefile.in (eval.o): Update dependencies.
8409
8410 2003-04-28 Adam Fedor <fedor@gnu.org>
8411
8412 * symtab.c (symbol_find_demangled_name): Check for and demangle
8413 ObjC symbols.
8414 (symbol_init_demangled_name): Init for language_objc as well.
8415
8416 2003-04-28 Andrew Cagney <cagney@redhat.com>
8417
8418 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8419 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8420 * gdbarch.h, gdbarch.c: Re-generate.
8421 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8422 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8423 * inferior.h (deprecated_read_fp): Rename read_fp.
8424 (generic_target_read_fp): Delete declaration.
8425 * regcache.c (generic_target_read_fp): Delete function.
8426 (deprecated_read_fp): Replace read_fp, use
8427 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8428 * d10v-tdep.c (d10v_read_fp): Delete function.
8429 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8430
8431 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8432 deprecated_target_read_fp to generic_target_read_fp.
8433 * sh-tdep.c (sh_gdbarch_init): Ditto.
8434 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8435 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8436 * frv-tdep.c (frv_gdbarch_init): Ditto.
8437
8438 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8439 deprecated_fp_regnum.
8440 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8441 * vax-tdep.c (vax_gdbarch_init): Ditto.
8442 * v850-tdep.c (v850_gdbarch_init): Ditto.
8443 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8444 * sh-tdep.c (sh_gdbarch_init): Ditto.
8445 * s390-tdep.c (s390_gdbarch_init): Ditto.
8446 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8447 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8448 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8449 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8450 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8451 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8452 * i386-tdep.c (i386_gdbarch_init): Ditto.
8453 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8454 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8455 * frv-tdep.c (frv_gdbarch_init): Ditto.
8456 * cris-tdep.c (cris_gdbarch_init): Ditto.
8457 * avr-tdep.c (avr_gdbarch_init): Ditto.
8458 * arm-tdep.c (arm_gdbarch_init): Ditto.
8459 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8460
8461 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8462 * v850-tdep.c (v850_gdbarch_init): Ditto.
8463 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8464 * sh-tdep.c (sh_gdbarch_init): Ditto.
8465 * s390-tdep.c (s390_gdbarch_init): Ditto.
8466 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8467 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8468 * mips-tdep.c (mips_gdbarch_init): Ditto.
8469 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8470 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8471 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8472 * frv-tdep.c (frv_gdbarch_init): Ditto.
8473 * avr-tdep.c (avr_gdbarch_init): Ditto.
8474 * arm-tdep.c (arm_gdbarch_init): Ditto.
8475
8476 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8477 DEPRECATED_FP_REGNUM.
8478 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8479 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8480 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8481 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8482 (sparc32_register_virtual_type): Ditto.
8483 * sh-tdep.c (sh64_frame_chain): Ditto.
8484 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8485 (sh_nofp_frame_init_saved_regs): Ditto.
8486 (sh64_nofp_frame_init_saved_regs): Ditto.
8487 (sh_fp_frame_init_saved_regs): Ditto.
8488 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8489 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8490 * procfs.c (procfs_fetch_registers): Ditto.
8491 (procfs_store_registers): Ditto.
8492 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8493 (store_inferior_registers, fetch_core_registers): Ditto.
8494 (fetch_kcore_registers, clear_regs): Ditto.
8495 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8496 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8497 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8498 * nlm/i386.c (do_status): Ditto.
8499 * mipsv4-nat.c (supply_gregset): Ditto.
8500 * mips-tdep.c: Ditto for comments.
8501 * mips-nat.c (fetch_inferior_registers): Ditto.
8502 (store_inferior_registers, fetch_core_registers): Ditto.
8503 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8504 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8505 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8506 (i386_do_pop_frame, i386_register_type): Ditto.
8507 * hppa-tdep.c (hppa_frame_chain): Ditto.
8508 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8509 (hppa_pop_frame, hppa_read_fp): Ditto.
8510 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8511 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8512 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8513 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8514 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8515 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8516 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8517 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8518 * blockframe.c: Ditto for comments.
8519 * arch-utils.h: Ditto for comments.
8520 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8521 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8522 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8523 * alpha-tdep.h: Ditto for comments.
8524 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8525 (alpha_cannot_store_register): Ditto.
8526 (alpha_push_dummy_frame): Ditto.
8527 * alpha-nat.c (supply_gregset): Ditto.
8528
8529 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8530 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8531 * config/sparc/tm-sparc.h: Update comment.
8532
8533 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8534 deprecated_read_fp instead of TARGET_READ_FP.
8535 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8536 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8537 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8538 deprecated_read_fp instead of read_fp.
8539 * s390-tdep.c (s390_push_arguments): Ditto.
8540 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8541 * frame.h: Ditto in comments.
8542 * frame.c (legacy_get_prev_frame): Ditto.
8543 * dummy-frame.c (dummy_frame_this_id): Ditto.
8544 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8545
8546 2003-04-28 Andrew Cagney <cagney@redhat.com>
8547
8548 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8549 * gdbarch.h, gdbarch.c: Re-generate.
8550 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8551 * vax-tdep.c (_initialize_vax_tdep): Update.
8552 * v850-tdep.c (_initialize_v850_tdep): Update.
8553 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8554 * s390-tdep.c (_initialize_s390_tdep): Update.
8555 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8556 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8557 * mips-tdep.c (_initialize_mips_tdep): Update.
8558 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8559 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8560 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8561 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8562 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8563 * frv-tdep.c (_initialize_frv_tdep): Update.
8564 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8565 (_initialize_cris_tdep): Update.
8566 * arch-utils.c (legacy_print_insn): Update.
8567 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8568
8569 2003-04-26 Adam Fedor <fedor@gnu.org>
8570
8571 * linespec.c (decode_objc): New function to decode ObjC calls
8572 (decode_line_1): Check for ObjC calls (using decode_objc)
8573 * Makefile (linespec.o): Update dependencies.
8574
8575 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
8576
8577 * breakpoint.h (struct breakpoint_ops): New.
8578 (struct breakpoint): Add ops member.
8579
8580 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8581 (mention): Use new breakpoint ops member.
8582 (set_raw_breakpoint): Initialize ops field to NULL.
8583 (print_exception_catchpoint, print_one_exception_catchpoint)
8584 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8585 (gnu_v3_exception_catchpoint_ops): New.
8586 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8587
8588 2003-04-25 Adam Fedor <fedor@gnu.org>
8589
8590 * Makefile.in (COMMON_OBS): Add objc-lang.o
8591
8592 2003-04-25 Andrew Cagney <cagney@redhat.com>
8593
8594 * d10v-tdep.c (print_insn): Delete function.
8595 (display_trace): Use TARGET_PRINT_INSN.
8596 (_initialize_d10v_tdep): Do not set tm_print_insn.
8597 (d10v_gdbarch_init): Set print_insn.
8598
8599 2003-04-25 Andrew Cagney <cagney@redhat.com>
8600
8601 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8602 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8603 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8604 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8605 (nr_dmap_regs, a0_regnum): ... new functions.
8606 (d10v_print_registers_info): Use a0_regnum, use register_size.
8607 (d10v_register_byte): Delete function.
8608 (d10v_register_raw_size): Delete function.
8609 (d10v_register_type): Use a0_regnum.
8610 (d10v_print_registers_info): Use a0_regnum.
8611 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8612 (d10v_gdbarch_init): Do not set register_byte or
8613 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8614 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8615 extract_address.
8616 (trace_command): Use XCALLOC.
8617 (print_insn): Delete reference to tm_print_insn.
8618 (saved_regs_unwinder): Use store_unsigned_integer instead of
8619 store_address.
8620 * frame.h (FRAME_OBSTACK_CALLOC): Define
8621
8622 2003-04-25 David Carlton <carlton@bactrian.org>
8623
8624 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8625
8626 2003-04-24 Adam Fedor <fedor@gnu.org>
8627
8628 * objc-lang.c: Include "valprint.h"
8629 * Makefile.in (objc-lang.o): Update dependencies.
8630
8631 2003-04-24 Adam Fedor <fedor@gnu.org>
8632
8633 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
8634 architecture dependant compilation and mark as unimplemented
8635 (until they get put in the gdbarch vector).
8636
8637 2003-04-23 David Carlton <carlton@bactrian.org>
8638
8639 * cp-support.c (cp_find_first_component): Accept 'operator' in
8640 more locations.
8641
8642 2003-04-23 Andrew Cagney <cagney@redhat.com>
8643
8644 * infcall.c (call_function_by_hand): Eliminate redundant
8645 indentation. Move "saved_async" and "old_cleanups" to where they
8646 are needed.
8647
8648 2003-04-23 Andrew Cagney <cagney@redhat.com>
8649
8650 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8651 and "buffer". Move the "name" code to where it is needed.
8652
8653 2003-04-23 Andrew Cagney <cagney@redhat.com>
8654
8655 * infcall.c (call_function_by_hand): Move variables "start_sp",
8656 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8657 code to ON_STACK switch branch.
8658
8659 2003-04-23 Andrew Cagney <cagney@redhat.com>
8660
8661 * infcall.c (call_function_by_hand): Make declaration of "i",
8662 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8663 lint.
8664
8665 2003-04-23 Andrew Cagney <cagney@redhat.com>
8666
8667 * infcall.c (call_function_by_hand): Delete variable
8668 "n_method_args". Localize "param_type"'s declaration to the loop
8669 that it is used. Reinstate code assigning to said variable -
8670 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8671 Rationalize code using "param_type".
8672
8673 2003-04-22 Andrew Cagney <cagney@redhat.com>
8674
8675 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8676 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8677 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8678 to DEPRECATED_PUSH_RETURN_ADDRESS.
8679
8680 2003-04-22 Kevin Buettner <kevinb@redhat.com>
8681
8682 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8683 on the DWARF2 register number prior to fetching a register.
8684
8685 2003-04-22 J. Brobecker <brobecker@gnat.com>
8686
8687 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8688 Update all the tests using SOFT_FLOAT considering the fact that
8689 this macro was always set to 0.
8690 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8691 considering the fact that this macro was always set to 0.
8692 * hppa-tdep.h (hppa_store_return_value): Likewise.
8693 (hppa_extract_return_value): Likewise.
8694
8695 2003-04-22 J. Brobecker <brobecker@gnat.com>
8696
8697 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8698 the hppa-pro target only.
8699
8700 2003-04-21 J. Brobecker <brobecker@gnat.com>
8701
8702 Ongoing multi-arch conversion effort for HP/UX:
8703 * config/pa/tm-hppa.h: Move all macro that are no longer
8704 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8705 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8706
8707 2003-04-21 J. Brobecker <brobecker@gnat.com>
8708
8709 * config/pa/tm-hppa.h: Obsolete a section that was only used
8710 for hppa-pro.
8711
8712 2003-04-21 J. Brobecker <brobecker@gnat.com>
8713
8714 Ongoing multi-arch conversion for HP/UX.
8715 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8716 if already defined (allows hppa64 to stay non-multiarched for now).
8717 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8718
8719 2003-04-21 Andrew Cagney <cagney@redhat.com>
8720
8721 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8722
8723 2003-04-21 Andrew Cagney <cagney@redhat.com>
8724
8725 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8726 "i386_num_mmx_regs".
8727
8728 2003-04-21 Andrew Cagney <cagney@redhat.com>
8729
8730 * infcall.c: New file.
8731 * infcall.h: New file.
8732 * valarith.c: Include "infcall.h".
8733 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8734 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8735 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8736 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8737 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8738 (SFILES): Add "infcall.c"
8739 (COMMON_OBS): Add "infcall.o".
8740 (infcall.o): Specify dependencies.
8741 * value.h (call_function_by_hand): Delete declaration.
8742 * inferior.h (run_stack_dummy): Delete declaration.
8743 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8744 (run_stack_dummy): Move to "infcall.c", merged into
8745 call_function_by_hand.
8746 * valops.c (call_function_by_hand): Moved to "infcall.c".
8747 (find_function_addr, value_arg_coerce): Ditto.
8748 (unwindonsignal_p, coerce_float_to_double): Ditto.
8749 (_initialize_valops): Move "set/show coerce-float-to-double", and
8750 "set/show unwindonsignal" commands to "infcall.c".
8751 * v850-tdep.c, target.h: Update comments.
8752 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8753 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8754 (sh64_init_extra_frame_info): Update comments.
8755 * mn10300-tdep.c: Update comments.
8756 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8757 * config/sparc/tm-sparc.h: Update comments.
8758 * breakpoint.h: Update comments.
8759 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8760 * arm-tdep.c: Update comment.
8761
8762 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8763
8764 * i386-tdep.c (i386_num_register_names): New variable.
8765 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8766 (MM0_REGNUM): Remove redundant parentheses in define.
8767 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8768 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8769 i386_mxcsr_regnum_p): Remove redundant parentheses.
8770 (i386_register_name): Use i386_num_register_names.
8771
8772 * i386-tdep.c (i386_extract_return_value,
8773 i386_store_return_value): Correct check for availability of
8774 floating-point registers.
8775
8776 * i386-tdep.c (i386_frame_num_args): Remove function.
8777 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8778
8779 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8780 mmx_regnum_to_fp_regnum. Adjust all callers.
8781
8782 * i386-tdep.c (i386_get_longjmp_target): Use
8783 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8784 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8785 extract_address.
8786
8787 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8788
8789 * core-regset.c: Update comments to reflect reality. Re-order
8790 includes.
8791 (fetch_core_registers): Use switch instead of if. Remove
8792 redundant prototype.
8793
8794 2003-04-18 Jim Blandy <jimb@redhat.com>
8795
8796 * s390-tdep.c (s390_frame_align): New function.
8797 (s390_gdbarch_init): Register it with the gdbarch object.
8798
8799 2003-04-17 Richard Henderson <rth@redhat.com>
8800
8801 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8802
8803 2003-04-17 Michael Snyder <msnyder@redhat.com>
8804 Karen Bennet <bennet@redhat.com>
8805
8806 Committed by Elena Zannoni <ezannoni@redhat.com>
8807 * gdb_gcore.sh: New script to create a core dump of a process.
8808
8809 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
8810
8811 * values.c (value_being_returned): Don't fetch the return
8812 value if the return type is void.
8813
8814 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8815
8816 * thread-db.c: Reindented.
8817
8818 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8819
8820 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8821 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
8822 as types.
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848 2003-04-16 Kevin Buettner <kevinb@redhat.com>
8849
8850 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
8851 the size of ``long double'' to 16, instead of 8.
8852
8853 2003-04-16 Mark Kettenis <kettenis@gnu.org>
8854
8855 * i386-linux-nat.c: Add some whitespace to make things more
8856 readable.
8857 (fetch_register, store_register, fetch_inferior_registers,
8858 store_inferior_registers): Get rid of assignment in if-statement.
8859 (store_register): Fix typo in error message.
8860
8861 2003-04-16 Andrew Cagney <cagney@redhat.com>
8862
8863 * utils.c (xmmalloc): Always allocate something, matches
8864 libiberty/xmalloc's semantics.
8865 (xmrealloc, xmcalloc): Ditto.
8866
8867 2003-04-16 Andrew Cagney <cagney@redhat.com>
8868
8869 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8870 update comments.
8871 (get_frame_type): Initialize unwind and type when needed.
8872 (get_frame_id, frame_register_unwind): Ditto.
8873
8874 2003-04-16 Andrew Cagney <cagney@redhat.com>
8875
8876 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8877 obsolete.
8878 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8879 * sparcl-stub.c: Obsolete file.
8880 * config/sparc/tm-sparclet.h: Obsolete file.
8881 * sparclet-stub.c: Obsolete file.
8882 * sparclet-rom.c: Obsolete file.
8883 * sparcl-tdep.c: Obsolete file.
8884 * config/sparc/tm-sparclite.h: Obsolete file.
8885 * config/sparc/sparclite.mt: Obsolete file.
8886 * config/sparc/sparclet.mt: Obsolete file.
8887 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8888 sparc86x-*-* obsolete.
8889
8890 2003-04-15 David Carlton <carlton@math.stanford.edu>
8891
8892 * Makefile.in (SFILES): Add cp-namespace.c.
8893 (COMMON_OBS): Add cp-namespace.o.
8894 (block.o): Depend on gdb_obstack_h and cp_support_h.
8895 (buildsym.o): Depend on cp_support_h.
8896 (cp-namespace.o): New.
8897 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8898 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8899 (dwarf2read.o): Depend on cp_support_h.
8900 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8901 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8902 processing_current_namespace.
8903 (read_namespace): Update processing_current_namespace; check for
8904 anonymous namespaces.
8905 (dwarf2_name): New function.
8906 (dwarf2_extension): Ditto.
8907 * cp-support.h: Update copyright, contributors.
8908 Add inclusion guards.
8909 Add opaque declaration for structs obstack, block, symbol.
8910 (struct using_direct): New struct.
8911 Add declarations for cp_find_first_component,
8912 cp_entire_prefix_len, processing_has_namespace_info,
8913 processing_current_namespace, cp_is_anonymous,
8914 cp_add_using_directive, cp_initialize_namespace,
8915 cp_finalize_namespace, cp_set_block_scope,
8916 cp_scan_for_anonymous_namespaces.
8917 * cp-namespace.c: New file.
8918 * cp-support.c: Update copyright.
8919 Include ctype.h, gdb_assert.h, gdbcmd.h.
8920 New variable maint_cplus_cmd_list.
8921 (cp_find_first_component): New function.
8922 (cp_entire_prefix_len, maint_cplus_command)
8923 (first_component_command, _initialize_cp_support): Ditto.
8924 * buildsym.c: Include cp-support.h.
8925 New variable using_list.
8926 (add_symbol_to_list): Check for anonymous namespaces.
8927 (finish_block): Set block's scope.
8928 (start_symtab): Initialize C++ namespace support.
8929 (end_symtab): Finalize C++ namespace support.
8930 * block.h: Add opaque declarations for structs
8931 block_namespace_info, using_direct, and obstack.
8932 Add declarations for block_set_scope and block_set_using.
8933 (struct block): Add 'language_specific' member.
8934 (BLOCK_NAMESPACE): New macro.
8935 * block.c: Include gdb_obstack.h and cp-support.h.
8936 (struct block_namespace_info): New struct.
8937 (block_set_scope): New function.
8938 (block_set_using, block_initialize_namespace): Ditto.
8939
8940 2003-04-14 Kevin Buettner <kevinb@redhat.com>
8941
8942 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8943 (locate_base): Return early if there aren't any link map offsets.
8944 (svr4_solib_create_inferior_hook): Warn if shared library support
8945 is unavailable.
8946
8947 2003-04-14 David Carlton <carlton@math.stanford.edu>
8948
8949 * symtab.c (symbol_set_names): Add prefix when storing Java names
8950 in hash table. Fix for PR java/1039.
8951
8952 2003-04-14 David Carlton <carlton@math.stanford.edu>
8953
8954 * symtab.c (symbol_set_names): Rename 'name' arg to
8955 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8956 * symtab.h: Change 'name' argument in declaration of
8957 symbol_set_names to 'linkage_name'.
8958 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8959
8960 2003-04-14 Andrew Cagney <cagney@redhat.com>
8961
8962 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8963 return the fully sign-extended register value.
8964 (get_frame_pointer): Ditto.
8965 (mips_pop_frame): Initialize "proc_desc" after checking for a
8966 dummy frame.
8967
8968 2003-04-14 Andrew Cagney <cagney@redhat.com>
8969
8970 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8971 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8972 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8973 (mips_push_register): Delete function.
8974 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8975 PUSH_FP_REGNUM.
8976
8977 2003-04-14 Jim Blandy <jimb@redhat.com>
8978
8979 * symmisc.c: #include "gdb_regex.h".
8980 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8981 functions.
8982 * maint.c (maintenance_list_command): New function.
8983 (_initialize_maint_cmds): Register the above as commands.
8984 * symtab.h (maintenance_list_symtabs,
8985 maintenance_list_psymtabs): New declarations.
8986 * cli/cli-cmds.c (maintenancelistlist): New variable.
8987 (init_cmd_lists): Initialize it.
8988 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8989 * gdbcmd.h (maintenancelistlist): New declaration.
8990 * Makefile.in (symmisc.o): Update dependencies.
8991
8992 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8993
8994 * s390-nat.c: Include asm/types.h for addr_t.
8995
8996 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8997
8998 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8999 actually incoming type.
9000
9001 2003-04-13 Andrew Cagney <cagney@redhat.com>
9002
9003 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9004 get_next_frame and get_frame_saved_regs.
9005
9006 2003-04-13 Andrew Cagney <cagney@redhat.com>
9007
9008 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9009 of gdbarch_num_regs.
9010
9011 2003-04-13 Andrew Cagney <cagney@redhat.com>
9012
9013 * frame.h: Mention what replaced what in "struct frame_info".
9014 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9015 deprecated_update_frame_base_hack and
9016 deprecated_update_frame_pc_hack.
9017 * hppa-tdep.c: Ditto.
9018
9019 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9020
9021 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9022 to read_reg and update its comment. Remove regnum member.
9023 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9024 Don't call read_reg when setting in_reg. Call read_reg to get
9025 the frame base if it's in a register. Return the register number
9026 on the stack instead of in the context. Remove extra arguments
9027 to read_reg.
9028 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9029 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9030 the register number on the expression stack.
9031 (needs_frame_read_reg): Remove extra arguments.
9032
9033 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9034
9035 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9036 made non-static.
9037 (execute_stack_op): All callers updated.
9038 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9039 * dwarf2loc.c (find_location_expression): New function.
9040 (dwarf_expr_frame_base): Call it.
9041 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9042 (dwarf2_tracepoint_var_ref): New function, broken out from
9043 locexpr_tracepoint_var_ref.
9044 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9045 Make static.
9046 (loclist_read_variable, loclist_read_needs_frame): New functions.
9047 (loclist_describe_location, loclist_tracepoint_var_ref): New
9048 functions.
9049 (dwarf2_loclist_funcs): New struct location_funcs.
9050 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9051 (struct dwarf2_locexpr_baton): Add comments.
9052 (dwarf2_loclist_funcs): New extern.
9053 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9054 base_address and base_known.
9055 (dwarf_loc_buffer): New variable.
9056 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9057 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9058 (dwarf2_has_info): Initialize dwarf_loc_offset.
9059 (dwarf2_build_psymtabs): Read in .debug_loc.
9060 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9061 DWARF_LOC_SIZE.
9062 (psymtab_to_symtab_1): Likewise. Move base address calculation
9063 here, from...
9064 (dwarf2_get_pc_bounds): ... here. Use the base address from
9065 cu_header.
9066 (dwarf2_symbol_mark_computed): Handle location lists.
9067
9068 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9069
9070 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9071 if the linkage name demangled successfully.
9072
9073 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9074
9075 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9076 disassmbly_flavour): Removed.
9077
9078 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9079
9080 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9081
9082 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9083
9084 2003-04-12 Andrew Cagney <cagney@redhat.com>
9085
9086 * frame.h (struct frame_info): Move definition from here ...
9087 * frame.c (struct frame_info): ... to here.
9088
9089 2003-04-12 Andrew Cagney <cagney@redhat.com>
9090
9091 * gdbthread.h (save_infrun_state): Delete parameter
9092 "prev_func_start".
9093 (struct thread_info): Delete field "prev_func_start".
9094 (load_infrun_state): Ditto.
9095 * thread.c (load_infrun_state, save_infrun_state): Update.
9096 * infrun.c (prev_func_start): Delete variable.
9097 (context_switch, init_wait_for_inferior): Update.
9098 (stop_stepping, keep_going): Update.
9099
9100 2003-04-12 Andrew Cagney <cagney@redhat.com>
9101
9102 * gdbarch.sh: Add missing opaque declarations.
9103 * gdbarch.h: Regnerate.
9104 * symtab.h: Add missing opaque declarations.
9105 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9106 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9107 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9108 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9109 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9110 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9111 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9112 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9113 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9114 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9115 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9116 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9117 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9118
9119 2003-04-11 Andrew Cagney <cagney@redhat.com>
9120
9121 * frame.c (get_frame_id): Return this frame's "id".
9122 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9123 function start.
9124 (legacy_saved_regs_this_id): Replace function body with
9125 internal-error.
9126 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9127 FRAME_OBSTACK_ZALLOC.
9128 (create_new_frame): Mark the frame ID as valid.
9129
9130 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
9131
9132 * Makefile.in (libbfd_h): Added missing setting.
9133 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9134 according to the selected ABI.
9135
9136 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9137
9138 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9139
9140 2003-04-11 Andrew Cagney <cagney@redhat.com>
9141
9142 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9143 SAVED_PC_AFTER_CALL.
9144 * gdbarch.h, gdbarch.c: Regenerate.
9145 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9146 * x86-64-tdep.c (x86_64_init_abi): Update.
9147 * vax-tdep.c (vax_gdbarch_init): Update.
9148 * v850-tdep.c (v850_gdbarch_init): Update.
9149 * sparc-tdep.c (sparc_gdbarch_init): Update.
9150 * sh-tdep.c (sh_gdbarch_init): Update.
9151 * s390-tdep.c (s390_gdbarch_init): Update.
9152 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9153 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9154 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9155 * mips-tdep.c (mips_gdbarch_init): Update.
9156 * mcore-tdep.c (mcore_gdbarch_init): Update.
9157 * m68k-tdep.c (m68k_gdbarch_init): Update.
9158 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9159 * ia64-tdep.c (ia64_gdbarch_init): Update.
9160 (ia64_saved_pc_after_call): Update declaration.
9161 * i386ly-tdep.c (i386lynx_init_abi): Update.
9162 * i386-tdep.c (i386_gdbarch_init): Update.
9163 * hppa-tdep.c (hppa_gdbarch_init): Update.
9164 * h8300-tdep.c (h8300_gdbarch_init): Update.
9165 * frv-tdep.c (frv_gdbarch_init): Update.
9166 * cris-tdep.c (cris_gdbarch_init): Update.
9167 * avr-tdep.c (avr_gdbarch_init): Update.
9168 * arm-tdep.c (arm_gdbarch_init): Update.
9169 * alpha-tdep.c (alpha_gdbarch_init): Update.
9170 * ns32knbsd-nat.c (frame_num_args): Update.
9171 * ns32k-tdep.c (umax_frame_num_args): Update.
9172 * mips-tdep.c (mips_init_frame_pc_first): Update.
9173 * infrun.c (step_over_function): Update.
9174 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9175 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9176 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9177 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9178 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9179 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9180 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9181 * arch-utils.c (init_frame_pc_default): Update.
9182 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9183 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9184 declaration.
9185
9186 2003-04-11 Andrew Cagney <cagney@redhat.com>
9187
9188 * i387-tdep.c: Update copyright.
9189 (i387_to_double): Delete function.
9190 (double_to_i387): Delete function.
9191
9192 2003-04-10 Andrew Cagney <cagney@redhat.com>
9193
9194 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9195 frame's function's address. Simplify.
9196 (d10v_frame_unwind_cache): Check that the frame's function is
9197 non-zero.
9198
9199 2003-04-10 Jim Blandy <jimb@redhat.com>
9200
9201 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9202 call to set_gdbarch_deprecated_push_arguments.
9203
9204 2003-04-10 Andrew Cagney <cagney@redhat.com>
9205
9206 * frame.c (fprint_frame_id): New function.
9207 (fprint_frame_type, fprint_frame): New function.
9208 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9209 (create_sentinel_frame, get_frame_id): Ditto.
9210 (frame_id_p, frame_id_eq): Ditto.
9211 (frame_id_inner, create_new_frame): Ditto.
9212 (legacy_get_prev_frame, get_prev_frame): Ditto.
9213 (deprecated_update_frame_pc_hack): Ditto.
9214 (frame_register_unwind): Ditto.
9215 (deprecated_update_frame_base_hack): Ditto.
9216
9217 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9218
9219 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9220 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9221 frame_chain function.
9222 * Makefile.in: Add dependencies due to above change.
9223
9224 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9225
9226 * blockframe.c (legacy_frame_chain_valid): Move call to
9227 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9228 inside_entry_file.
9229
9230 2003-04-09 Andrew Cagney <cagney@redhat.com>
9231
9232 * frame.h (struct frame_id): Replace "pc" and "base" with
9233 "stack_addr" and "code_addr". Update comments.
9234 (frame_id_build): Update parameter names and comment.
9235 (struct frame_info): Replace "id_p" and "id" with "this_id".
9236 * dummy-frame.c (dummy_frame_this_id): Update.
9237 * breakpoint.c (print_one_breakpoint): Update.
9238 * frame.c (get_frame_id): Update.
9239 (get_frame_base, frame_id_build): Update.
9240 (create_sentinel_frame, legacy_get_prev_frame): Update.
9241 (deprecated_update_frame_base_hack): Update.
9242 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9243 (frame_id_inner): Ditto.
9244
9245 2003-04-09 Andrew Cagney <cagney@redhat.com>
9246
9247 * defs.h (gdb_print_host_address): Make "addr" parameter a
9248 pointer constant.
9249 * utils.c (gdb_print_host_address): Update.
9250
9251 2003-04-09 Kevin Buettner <kevinb@redhat.com>
9252
9253 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9254 register number for R0 is 0.
9255
9256 2003-04-09 J. Brobecker <brobecker@gnat.com>
9257
9258 * frame.h (struct gdbarch): Add opaque structure definition
9259 to avoid a compilation warning on LynxOS 4.0.
9260
9261 2003-04-09 Andrew Cagney <cagney@redhat.com>
9262
9263 * frame.h (struct frame_info): Delete field "pc". Replace
9264 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9265 structure.
9266 * frame.c (frame_pc_unwind): Update.
9267 (create_sentinel_frame): Do not set "pc".
9268 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9269 (get_frame_pc): Call frame_pc_unwind.
9270 (deprecated_update_frame_pc_hack): Update.
9271 (create_new_frame): Use "pc" not "->pc".
9272
9273 2003-04-09 Andrew Cagney <cagney@redhat.com>
9274
9275 * frame.c (get_frame_id): Eliminate code updating "frame".
9276 (legacy_get_prev_frame): Ditto.
9277 (get_frame_base): Return id.base directly.
9278 (deprecated_update_frame_base_hack): Update "id.base".
9279 * frame.h (struct frame_info): Delete field "frame".
9280
9281 2003-04-09 Andrew Cagney <cagney@redhat.com>
9282
9283 * NEWS: Mention that the "Sequent family" is obsolete.
9284 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9285 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9286 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9287 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9288 * config/i386/tm-ptx4.h: Obsolete file.
9289 * config/i386/tm-ptx.h: Obsolete file.
9290 * symm-tdep.c: Obsolete file.
9291 * config/i386/symmetry.mt: Obsolete file.
9292 * config/i386/tm-symmetry.h: Obsolete file.
9293 * symm-nat.c: Obsolete file.
9294 * config/i386/nm-symmetry.h: Obsolete file.
9295 * config/i386/xm-symmetry.h: Obsolete file.
9296 * config/i386/symmetry.mh: Obsolete file.
9297 * config/i386/nm-ptx4.h: Obsolete file.
9298 * config/i386/ptx4.mh: Obsolete file.
9299 * config/i386/ptx.mt: Obsolete file.
9300 * config/i386/ptx.mh: Obsolete file.
9301 * config/i386/xm-ptx4.h: Obsolete file.
9302 * config/i386/xm-ptx.h: Obsolete file.
9303
9304 2003-04-09 Andrew Cagney <cagney@redhat.com>
9305
9306 Obsolete mips*-*-mach3*.
9307 * NEWS: Mention that mips*-*-mach3* is obsolete.
9308 * m3-nat.c: Obsolete file.
9309 * config/nm-m3.h: Obsolete file.
9310 * config/mips/tm-mipsm3.h: Obsolete file.
9311 * config/mips/mipsm3.mt: Obsolete file.
9312 * config/mips/mipsm3.mh: Obsolete file.
9313 * config/mips/xm-mipsm3.h: Obsolete file.
9314 * mipsm3-nat.c: Obsolete file.
9315 * configure.host: Obsolete mips-dec-mach3*.
9316 * configure.tgt: Obsolete mips*-*-mach3*.
9317
9318 2003-04-09 Andrew Cagney <cagney@redhat.com>
9319
9320 * doublest.h: Update copyright.
9321 (deprecated_store_floating, deprecated_extract_floating): Rename
9322 store_floating and extract_floating. Update comments.
9323 * doublest.c: Update copyright.
9324 (extract_floating_by_length): Replace extract_floating.
9325 (store_floating_by_length): Replace store_floating.
9326 (deprecated_extract_floating): New function.
9327 (deprecated_store_floating): New function.
9328 (extract_typed_floating): Call extract_floating_by_length.
9329 (store_typed_floating): Call store_floating_by_length.
9330 * x86-64-tdep.c (x86_64_store_return_value): Update.
9331 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9332 (sh64_extract_return_value): Update.
9333 (sh_sh4_register_convert_to_virtual): Update.
9334 (sh_sh64_register_convert_to_virtual): Update.
9335 (sh_sh4_register_convert_to_raw): Update.
9336 (sh_sh64_register_convert_to_raw): Update.
9337 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9338 (rs6000_register_convert_to_raw): Update.
9339 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9340 (ia64_register_convert_to_raw): Update.
9341 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9342 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9343 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9344 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9345 (alpha_register_convert_to_raw): Update.
9346
9347 2003-04-08 Andrew Cagney <cagney@redhat.com>
9348
9349 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9350 * gdbarch.h, gdbarch.c: Re-generate.
9351 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9352 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9353 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9354 conditionally, use frame_pc_unwind as an alternative. Add
9355 comments.
9356 * arch-utils.c (init_frame_pc_default): Only call
9357 SAVED_PC_AFTER_CALL when available.
9358
9359 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9360
9361 * infrun.c (stop_soon): Rename from stop_soon_quietly.
9362 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9363 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9364 (start_remote): Ditto.
9365 (handle_inferior_event): Ditto.
9366 (save_inferior_status): Ditto.
9367 (restore_inferior_status): Ditto.
9368 * infcmd.c (attach_command): Ditto.
9369 * fork-child.c (startup_inferior): Ditto.
9370 * inferior.h (stop_soon): Rename from stop_soon_quietly.
9371 * alpha-tdep.c (heuristic_proc_start): Ditto.
9372 * mips-tdep.c (heuristic_proc_start): Ditto.
9373 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9374 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9375 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9376 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9377 * remote-vx.c (vx_create_inferior): Ditto.
9378
9379 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9380
9381 * infrun.c (stop_soon_quietly): Make it an enum, to better
9382 override the default behavior of handle_inferior_event.
9383 (clear_proceed_status): Update uses of stop_soon_quietly to
9384 reflect that it is now an enum.
9385 (start_remote): Ditto.
9386 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9387 is set to handle the new GNU/Linux kernel behavior for
9388 attach/sigstop. Update uses of stop_soon_quietly.
9389 * inferior.h (enum stop_kind): New enum.
9390 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9391 Reset normal handle_inferior_event behavior, afterwards.
9392 * fork-child.c (startup_inferior): Update.
9393 * alpha-tdep.c (heuristic_proc_start): Update.
9394 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9395 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9396 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9397 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9398 * remote-vx.c (vx_create_inferior): Update.
9399 * mips-tdep.c (heuristic_proc_start): Update.
9400
9401 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
9402
9403 * disasm.c (dump_insns): Move variables inside loop, or they will
9404 be freed more than once, causing wild memory corruptions.
9405 (gdb_disassembly): Look for the substring "-thread",
9406 instead of "-threads" in the target name, to make sure to find
9407 the 'multi-thread' target. Also, make sure we do the right thing
9408 with the "core" target.
9409
9410 2003-04-07 Kevin Buettner <kevinb@redhat.com>
9411
9412 * mips-tdep.c (mips_print_fp_register): New function, created from
9413 do_fp_register_row(). Registers are now (also) printed as hex.
9414 Only one register is printed per row.
9415 (mips_print_register, do_fp_register_row): Print floating point
9416 registers with mips_print_fp_register().
9417
9418 2003-04-06 Andrew Cagney <cagney@redhat.com>
9419
9420 * valprint.h (inspect_it): Add extern declaration.
9421 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9422 (selectors_info, classes_info): Ditto.
9423 (find_objc_msgcall): Fix indentation.
9424 (objc_printstr): Delete extern declarations.
9425
9426 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9427
9428 2003-04-06 Andrew Cagney <cagney@redhat.com>
9429
9430 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9431 Update comment.
9432 * frame.c (legacy_saved_regs_this_id): Update.
9433 (legacy_get_prev_frame): Update.
9434 * xstormy16-tdep.c: Update comment.
9435 * sparc-tdep.c (sparc_frame_chain): Update comment.
9436 * blockframe.c (legacy_frame_chain_valid): Update.
9437
9438 2003-04-06 Andrew Cagney <cagney@redhat.com>
9439
9440 * valprint.c (val_print_type_code_int): Delete #ifdef
9441 PRINT_TYPELESS_INTEGER code.
9442
9443 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9444 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9445 multi-arch definition.
9446 * gdbarch.h: Re-generate.
9447
9448 2003-04-05 Andrew Cagney <cagney@redhat.com>
9449
9450 Eliminate FRAME_FIND_SAVED_REGS.
9451 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9452 Change FSR parameter to a pointer.
9453 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9454 Assume FSR parameter is a pointer.
9455 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9456 Make fsr a pointer.
9457 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9458 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9459 saved_regs a pointer.
9460 (hppa_frame_saved_pc): Ditto.
9461 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9462 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9463 pointer.
9464 (restore_pc_queue): Make fsr a pointer.
9465 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9466 (hppa_frame_chain): Make saved_regs a pointer, call
9467 hppa_frame_init_saved_regs.
9468 * sparc-tdep.c: Include "gdb_assert.h".
9469 (sparc_frame_find_saved_regs): Replace internal_error with
9470 gdb_assert.
9471 * remote-vxsparc.c (vx_read_register): Delete reference to
9472 FRAME_FIND_SAVED_REGS.
9473 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9474 * gdbarch.h: Regenerate.
9475 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9476 (deprecated_get_frame_saved_regs): Delete declaration.
9477 (struct frame_saved_regs): Delete definition.
9478 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9479 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9480 (hppa_frame_find_saved_regs): Delete declaration.
9481 (FRAME_FIND_SAVED_REGS): Delete macro.
9482 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9483 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9484 FRAME_FIND_SAVED_REGS in comment.
9485
9486 2003-04-05 Andrew Cagney <cagney@redhat.com>
9487
9488 * frame.c (frame_func_unwind, get_frame_func): New functions.
9489 * frame.h (get_frame_func, frame_func_unwind): Declare.
9490 (struct frame_info): Add field "prev_func" for caching the
9491 previous frame's function address.
9492 * arm-tdep.c (arm_frameless_function_invocation): Combine
9493 get_pc_function_start and get_frame_pc into get_frame_func.
9494 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9495 (sh64_nofp_frame_init_saved_regs): Ditto.
9496 * s390-tdep.c (s390_function_start): Ditto.
9497 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9498 (rs6000_frameless_function_invocation): Ditto.
9499 (rs6000_frame_saved_pc): Ditto.
9500 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9501 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9502 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9503 (i386_frame_init_saved_regs): Ditto.
9504 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9505 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9506 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9507 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9508 * blockframe.c (frameless_look_for_prologue): Ditto.
9509
9510 2003-04-05 Andrew Cagney <cagney@redhat.com>
9511
9512 * frame.c (legacy_get_prev_frame): Link prev to next at the
9513 function start. Update comments.
9514
9515 2003-04-05 Andrew Cagney <cagney@redhat.com>
9516
9517 * frame.c (get_frame_id): Update comment.
9518 (legacy_get_prev_frame): Update comment.
9519 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9520 * gdbarch.h: Regenerate.
9521 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9522 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9523
9524 2003-04-05 Andrew Cagney <cagney@redhat.com>
9525
9526 * stack.c (print_frame_info): Use get_frame_pc.
9527
9528 2003-04-04 Andrew Cagney <cagney@redhat.com>
9529
9530 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9531 the frame's type from the unwinder.
9532 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9533 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9534 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9535 (get_frame_base_address): Use get_frame_type.
9536 (get_frame_locals_address, get_frame_args_address): Ditto.
9537 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9538 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9539 (struct frame_info): Add comment explaining why the frame contains
9540 a "type" field.
9541 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9542 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9543 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9544 NORMAL_FRAME.
9545 * frame-unwind.h: Include "frame.h".
9546 (struct frame_unwind): Add "type" field.
9547 * Makefile.in (frame_unwind_h): Add $(frame_h).
9548
9549 2003-04-04 Andrew Cagney <cagney@redhat.com>
9550
9551 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9552 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9553 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9554 get_frame_base.
9555 (d10v_unwind_dummy_id): Use frame_id_build.
9556 * frame.c (find_frame_sal): Use get_frame_pc.
9557 (create_new_frame): Use deprecated_update_frame_pc_hack and
9558 deprecated_update_frame_base_hack.
9559 (create_sentinel_frame): Add comment about ->pc going away.
9560 (get_prev_frame): Add comment about ->pc going away.
9561 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9562 frame_id_build, deprecated_update_frame_pc_hack and
9563 deprecated_update_frame_base_hack.
9564 (select_frame): Use get_frame_pc.
9565 (legacy_saved_regs_this_id): Use frame_id_build.
9566
9567 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
9568
9569 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9570 signed integer case.
9571 (classify_argument): Handle enumerations and references.
9572
9573 2003-04-04 Andrew Cagney <cagney@redhat.com>
9574
9575 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9576 ID to NULL.
9577
9578 2003-04-01 Adam Fedor <fedor@gnu.org>
9579
9580 * gdb/objc-lang.c (selectors_info): Replace calls to
9581 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9582 SYMBOL_NATURAL_NAME.
9583 (classes_info, find_methods): Likewise.
9584
9585 2003-04-03 Kevin Buettner <kevinb@redhat.com>
9586
9587 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9588 ``mach'' to the value determined by bfd_default_set_arch_mach().
9589
9590 2003-04-02 Bob Rossi <bob_rossi@cox.net>
9591
9592 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9593 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9594 (mi-cmd-file.o): Update dependencies.
9595
9596 2003-04-01 Kevin Buettner <kevinb@redhat.com>
9597
9598 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9599 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9600
9601 2003-04-01 Adam Fedor <fedor@gnu.org>
9602
9603 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9604 * language.h (struct language_defn): Add la_demangle.
9605 (language_demangle): Declare.
9606 * language.c (language_demangle): New function.
9607 (unk_lang_demangle): Likewise.
9608 (unknown_language_defn, auto_language_defn, local_language_defn):
9609 Add ukn_lang_demangle.
9610 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
9611 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9612 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9613 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9614 * jv-lang.c (java_demangle): New function
9615 (java_language_defn): Use it for la_demangle element.
9616 * objc-lang.c (objc_demangle): Add options argument
9617 (objc_language_defn): Use objc_demangle for la_demangle element.
9618 * maint.c (maintenance_demangle): Replace switch with
9619 call to language_demangle.
9620 * utils.c (fprintf_symbol_filtered): Likewise.
9621
9622 2003-04-01 Andrew Cagney <cagney@redhat.com>
9623
9624 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9625 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9626 PRINT_TYPELESS_INTEGER.
9627 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9628 PUSH_RETURN_ADDRESS.
9629
9630 2003-04-01 Andrew Cagney <cagney@redhat.com>
9631
9632 * Makefile.in (d10v-tdep.o): Update dependencies.
9633 * d10v-tdep.c: Include "frame-base.h".
9634 (d10v_frame_unwind): Make constant.
9635 (d10v_frame_base_address): New function.
9636 (d10v_frame_base): New variable.
9637 (d10v_gdbarch_init): Set frame_base default.
9638 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9639 comment for base.
9640 (d10v_frame_unwind_cache): Set and use "prev_sp".
9641 (d10v_frame_this_id): Use the previous frame's inner most stack
9642 address and this frame's func address for the frame ID. Use
9643 frame_id_build. Don't analyze beyond the current instruction.
9644
9645 2003-04-01 Andrew Cagney <cagney@redhat.com>
9646
9647 * frame.h (get_frame_locals_address, get_frame_args_address):
9648 Refer to the base address, instead of the address of the first
9649 local or parameter.
9650
9651 2003-04-01 Andrew Cagney <cagney@redhat.com>
9652
9653 Add frame debug info addresses:
9654 * frame-base.c: New file.
9655 * frame-base.h: New file.
9656 * frame.h (struct frame_base): Add opaque declaration.
9657 (get_frame_base): Update comment.
9658 (get_frame_base_address): Declare.
9659 (get_frame_locals_address): Declare.
9660 (get_frame_args_address): Declare.
9661 (struct frame_info): Add "base" and "base_cache". Update
9662 comments on the unwinder.
9663 * frame.c: Include "frame-base.h".
9664 (get_frame_locals_address): New function.
9665 (get_frame_base_address): New function.
9666 (get_frame_args_address): New function.
9667 * findvar.c (read_var_value): Use get_frame_locals_address and
9668 get_frame_args_address.
9669 * stack.c (frame_info): Use get_frame_locals_address and
9670 get_frame_args_address.
9671 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9672 moved to "frame-base.c".
9673 * printcmd.c (print_frame_nameless_args): Ditto.
9674 * symtab.h (address_class): Update comments.
9675 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9676 get_frame_base_address.
9677 * dwarf2expr.c (execute_stack_op): Ditto.
9678 * Makefile.in (frame_base_h): Define.
9679 (frame.o): Update dependencies.
9680 (frame-base.o): Add dependencies.
9681 (SFILES): Add frame-base.c.
9682 (COMMON_OBS): Add frame-base.o.
9683
9684 2003-04-01 Andrew Cagney <cagney@redhat.com>
9685
9686 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9687 CALL_DUMMY_LENGTH): Ditto.
9688 * gdbarch.c: Re-generate.
9689 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9690 (CALL_DUMMY_LENGTH): Delete macro.
9691 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9692 * arm-tdep.c (arm_gdbarch_init): Ditto.
9693 * avr-tdep.c (avr_gdbarch_init): Ditto.
9694 * cris-tdep.c (cris_gdbarch_init): Ditto.
9695 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9696 * frv-tdep.c (frv_gdbarch_init): Ditto.
9697 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9698 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9699 * i386-tdep.c (i386_gdbarch_init): Ditto.
9700 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9701 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9702 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9703 * mips-tdep.c (mips_gdbarch_init): Ditto.
9704 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9705 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9706 * s390-tdep.c (s390_gdbarch_init): Ditto.
9707 * sh-tdep.c (sh_gdbarch_init): Ditto.
9708 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9709 * v850-tdep.c (v850_gdbarch_init): Ditto.
9710 * vax-tdep.c (vax_gdbarch_init): Ditto.
9711 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9712
9713 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
9714
9715 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9716
9717 2003-04-01 Andrew Cagney <cagney@redhat.com>
9718
9719 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9720 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9721 * gdbarch.h, gdbarch.c: Re-generate.
9722 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9723 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9724 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9725 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9726 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9727 * infcmd.c (run_stack_dummy): Simplify assuming
9728 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9729 * infrun.c (handle_inferior_event): Ditto.
9730 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9731 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9732 * arm-tdep.c (arm_gdbarch_init): Ditto.
9733 * avr-tdep.c (avr_gdbarch_init): Ditto.
9734 * cris-tdep.c (cris_gdbarch_init): Ditto.
9735 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9736 * frv-tdep.c (frv_gdbarch_init): Ditto.
9737 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9738 * i386-tdep.c (i386_gdbarch_init): Ditto.
9739 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9740 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9741 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9742 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9743 * mips-tdep.c (mips_gdbarch_init): Ditto.
9744 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9745 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9746 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9747 * s390-tdep.c (s390_gdbarch_init): Ditto.
9748 * sh-tdep.c (sh_gdbarch_init): Ditto.
9749 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9750 * v850-tdep.c (v850_gdbarch_init): Ditto.
9751 * vax-tdep.c (vax_gdbarch_init): Ditto.
9752 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9753
9754 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
9755
9756 * symfile.c (symfile_relocate_debug_section): Update call to
9757 bfd_simple_get_relocated_section_contents.
9758
9759 2003-03-31 Andrew Cagney <cagney@redhat.com>
9760
9761 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9762 * gdbarch.h, gdbarch.c: Regenerate.
9763 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9764 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9765 available.
9766 * frame.h (generic_fix_call_dummy): Delete declaration.
9767 * dummy-frame.h: Update comment.
9768 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9769 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9770 fix_call_dummy.
9771 * sh-tdep.c (sh_gdbarch_init): Ditto.
9772 * s390-tdep.c (s390_gdbarch_init): Ditto.
9773 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9774 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9775 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9776 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9777 * i386-tdep.c (i386_gdbarch_init): Ditto.
9778 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9779 * frv-tdep.c (frv_gdbarch_init): Ditto.
9780 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9781 * cris-tdep.c (cris_gdbarch_init): Ditto.
9782 * avr-tdep.c (avr_gdbarch_init): Ditto.
9783 * arm-tdep.c (arm_gdbarch_init): Ditto.
9784
9785 2003-03-31 J. Brobecker <brobecker@gnat.com>
9786
9787 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9788 (INIT_FRAME_AP): Likewise.
9789 (EXTRA_FRAME_INFO): Likewise.
9790
9791 2003-03-31 Andrew Cagney <cagney@redhat.com>
9792
9793 * gdbarch.sh: Include "symfile.h".
9794 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9795 * gdbarch.h, gdbarch.c: Re-generate.
9796 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9797 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9798 call_dummy_address, the default is at entry_point_address.
9799 * v850-tdep.c (v850_gdbarch_init): Ditto.
9800 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9801 * sh-tdep.c (sh_gdbarch_init): Ditto.
9802 * s390-tdep.c (s390_gdbarch_init): Ditto.
9803 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9804 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9805 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9806 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9807 * i386-tdep.c (i386_gdbarch_init): Ditto.
9808 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9809 * frv-tdep.c (frv_gdbarch_init): Ditto.
9810 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9811 * cris-tdep.c (cris_gdbarch_init): Ditto.
9812 * arm-tdep.c (arm_gdbarch_init): Ditto.
9813
9814 2003-03-31 Andrew Cagney <cagney@redhat.com>
9815
9816 * gdbarch.sh (CALL_DUMMY_P): Delete.
9817 * gdbarch.h, gdbarch.c: Re-generate.
9818 * inferior.h (CALL_DUMMY_P): Delete macro.
9819 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9820 * vax-tdep.c (vax_gdbarch_init): Update.
9821 * v850-tdep.c (v850_gdbarch_init): Update.
9822 * sparc-tdep.c (sparc_gdbarch_init): Update.
9823 * sh-tdep.c (sh_gdbarch_init): Update.
9824 * s390-tdep.c (s390_gdbarch_init): Update.
9825 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9826 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9827 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9828 * mips-tdep.c (mips_gdbarch_init): Update.
9829 * mcore-tdep.c (mcore_gdbarch_init): Update.
9830 * m68k-tdep.c (m68k_gdbarch_init): Update.
9831 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9832 * ia64-tdep.c (ia64_gdbarch_init): Update.
9833 * i386-tdep.c (i386_gdbarch_init): Update.
9834 * h8300-tdep.c (h8300_gdbarch_init): Update.
9835 * frv-tdep.c (frv_gdbarch_init): Update.
9836 * d10v-tdep.c (d10v_gdbarch_init): Update.
9837 * cris-tdep.c (cris_gdbarch_init): Update.
9838 * breakpoint.c (deprecated_frame_in_dummy): Update.
9839 * avr-tdep.c (avr_gdbarch_init): Update.
9840 * alpha-tdep.c (alpha_gdbarch_init): Update.
9841 * arm-tdep.c (arm_gdbarch_init): Update.
9842 * dummy-frame.c (dummy_frame_this_id): Update comments.
9843 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9844 * frame.c (legacy_get_prev_frame): Ditto.
9845 * valops.c (call_function_by_hand): Delete function.
9846 (hand_function_call): Rename to call_function_by_hand
9847
9848 2003-03-30 Andrew Cagney <cagney@redhat.com>
9849
9850 2002-11-10 Klee Dienes <kdienes@apple.com>
9851 * value.h (struct value): Update comment.
9852
9853 2003-03-30 Andrew Cagney <cagney@redhat.com>
9854
9855 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9856 D10V_FP_REGNUM.
9857 (d10v_gdbarch_init): Do not set fp_regnum.
9858
9859 * frame.c (get_frame_base): Force ID initialization.
9860 (get_prev_frame): Move computation of the frame ID from here ...
9861 (get_frame_id): ... to here.
9862 (legacy_get_prev_frame): Mark the frame ID as valid.
9863 * frame.h (struct frame_info): Add field "id_p".
9864
9865 2003-03-30 Mark Kettenis <kettenis@gnu.org>
9866
9867 * i386-tdep.c (i386_store_struct_return): Removed.
9868 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9869
9870 2003-03-30 Andrew Cagney <cagney@redhat.com>
9871
9872 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9873 * gdbarch.h, gdbarch.c: Regenerate.
9874 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9875 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9876 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9877 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9878 * i386-tdep.c (i386_gdbarch_init): Ditto.
9879 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9880 * cris-tdep.c (cris_gdbarch_init): Ditto.
9881 * vax-tdep.c (vax_gdbarch_init): Ditto.
9882 * s390-tdep.c (s390_gdbarch_init): Ditto.
9883 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9884 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9885 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9886 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9887 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9888 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9889 * sparc-tdep.c (sparc_gdbarch_init): Update.
9890 * sh-tdep.c (sh_gdbarch_init): Update.
9891 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9892 * mips-tdep.c (mips_gdbarch_init): Update.
9893 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9894 * ia64-tdep.c (ia64_gdbarch_init): Update.
9895 * frv-tdep.c (frv_gdbarch_init): Update.
9896 * avr-tdep.c (avr_gdbarch_init): Update.
9897 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9898 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9899 instead of when push_dummy_call is not available.
9900
9901 2003-03-30 Andrew Cagney <cagney@redhat.com>
9902
9903 * infttrace.c: Include "gdbthread.h".
9904 (parent_attach_all): Fix function signature.
9905 (call_ptrace): Update call.
9906 * Makefile.in (infttrace.o): Update dependencies.
9907
9908 2003-03-30 Andrew Cagney <cagney@redhat.com>
9909
9910 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9911 PUSH_RETURN_ADDRESS.
9912 * gdbarch.h, gdbarch.c: Regenerate.
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 * h8300-tdep.c (h8300_gdbarch_init): Update.
9927 * frv-tdep.c (frv_gdbarch_init): Update.
9928 * cris-tdep.c (cris_gdbarch_init): Update.
9929 * avr-tdep.c (avr_gdbarch_init): Update.
9930 * arm-tdep.c (arm_gdbarch_init): Update.
9931 * valops.c (hand_function_call): Update.
9932
9933 2003-03-29 Andrew Cagney <cagney@redhat.com>
9934
9935 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9936 sizeof_call_dummy_words.
9937 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9938 define.
9939 * gdbarch.h: Regenerate.
9940
9941 2003-03-29 Andrew Cagney <cagney@redhat.com>
9942
9943 * infttrace.h: New file.
9944 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9945 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9946 (hpread_read_doc_function_type): Detect an initialized type1.
9947 (hpread_quick_traverse): Initialize mod_name_string.
9948 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9949 (som_solib_get_solib_by_pc): Declare.
9950 (so_lib_thread_start_addr): Declare.
9951 (no_shared_libraries): Declare.
9952 * somread.c (init_import_symbols): Make static. Add forward
9953 declaration.
9954 * config/pa/nm-hppah.h: Include "infttrace.h" for
9955 parent_attach_all.
9956 (hppa_insert_hw_watchpoint): Declare.
9957 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9958 * hppah-nat.c: Include "gdb_string.h".
9959 (parent_attach_all): Delete extern declaration, moved to
9960 "infttrace.h".
9961 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9962 int.
9963 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9964 * Makefile.in (infttrace_h): Define.
9965 (hpread.o): Update dependencies.
9966 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9967 * hppa-hpux-tdep.c: Include "gdb_string.h".
9968 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9969 * infrun.c (handle_inferior_event): Always initialize
9970 stepped_after_stopped_by_watchpoint. Add default and remove
9971 fallthrough in switch statement.
9972 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9973 parameter to int.
9974 (hppa_remove_hw_watchpoint): Ditto.
9975
9976 2003-03-29 Andrew Cagney <cagney@redhat.com>
9977
9978 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9979 offset.
9980
9981 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9982
9983 * arm-tdep.c (arm_push_arguments): Delete.
9984 (struct stack_item): New type.
9985 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9986 (arm_store_struct_return): Delte.
9987 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9988 arm_push_arguments or arm_store_struct_return.
9989
9990 2003-03-28 Andrew Cagney <cagney@redhat.com>
9991
9992 * Makefile.in (d10v-tdep.o): Update dependencies.
9993 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9994 * d10v-tdep.c: Include "remote.h".
9995 (target_resume_hook): Delete extern declaration.
9996 (target_wait_loop_hook): Ditto.
9997 (tdisassemble_command): Eliminate assignment in "if" conditional.
9998 (d10v_ts2_register_sim_regno): Eliminate call to
9999 legacy_register_sim_regno.
10000 (d10v_ts3_register_sim_regno): Ditto.
10001
10002 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10003
10004 * thread.c: Reindented.
10005 * lin-lwp.c: Ditto.
10006 * linux-proc.c: Ditto.
10007
10008 2003-03-28 Bob Rossi <bob_rossi@cox.net>
10009
10010 * MAINTAINERS (write after approval): Add myself.
10011
10012 2003-03-27 Theodore A. Roth <troth@openavr.org>
10013
10014 * objc-exp.y: Add missing semi-colons.
10015
10016 2003-03-27 Andrew Cagney <cagney@redhat.com>
10017
10018 * regcache.c (write_sp): Delete function and references.
10019 * inferior.h (write_sp): Delete declaration.
10020 * valops.c (hand_function_call): Replace write_sp with
10021 TARGET_WRITE_SP.
10022 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10023 (sparc_pop_frame): Ditto.
10024
10025 2003-03-27 Andrew Cagney <cagney@redhat.com>
10026
10027 * NEWS: Mention removal of support for hppa*-*-bsd* and
10028 hppa*-*-osf* natives, and hppa*-*-pro* target.
10029 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10030 * config/pa/xm-pa.h: Obsolete file.
10031 * config/pa/xm-hppab.h: Obsolete file.
10032 * config/pa/nm-hppab.h: Obsolete file.
10033 * config/pa/tm-hppab.h: Obsolete file.
10034 * config/pa/tm-hppao.h: Obsolete file.
10035 * config/pa/nm-hppao.h: Obsolete file.
10036 * config/pa/tm-pro.h: Obsolete file.
10037 * config/pa/hppaosf.mt: Obsolete file.
10038 * config/pa/hppaosf.mh: Obsolete file.
10039 * config/pa/hppapro.mt: Obsolete file.
10040 * config/pa/hppabsd.mt: Obsolete file.
10041 * config/pa/hppabsd.mh: Obsolete file.
10042 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10043 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10044 hppa*-*-osf*.
10045
10046 2003-03-27 Andrew Cagney <cagney@redhat.com>
10047
10048 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10049 push_arguments. Don't set push_return_address or write_sp.
10050 (d10v_push_dummy_call): Replace d10v_push_arguments.
10051 (d10v_push_return_address, d10v_write_sp): Delete function,
10052 handled by push_dummy_call.
10053
10054 2003-03-26 Andrew Cagney <cagney@redhat.com>
10055
10056 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10057 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10058 regcache and dummy_addr parameters.
10059 * gdbarch.h, gdbarch.c: Re-generate.
10060 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10061 available; assume it will handle stack alignment and return
10062 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10063 legacy_push_arguments.
10064 (legacy_push_arguments): Rename default_push_arguments.
10065 * value.h (legacy_push_arguments): Rename default_push_arguments.
10066 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10067 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10068 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10069 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10070 * config/i386/tm-symmetry.h: Update.
10071 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10072 * x86-64-tdep.c (x86_64_init_abi): Update.
10073 * v850-tdep.c (v850_gdbarch_init): Update.
10074 * sparc-tdep.c (sparc_gdbarch_init): Update.
10075 * sh-tdep.c (sh_gdbarch_init): Update.
10076 * s390-tdep.c (s390_gdbarch_init): Update.
10077 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10078 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10079 * mips-tdep.c (mips_gdbarch_init): Update.
10080 * mcore-tdep.c (mcore_gdbarch_init): Update.
10081 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10082 * ia64-tdep.c (ia64_gdbarch_init): Update.
10083 * i386-tdep.c (i386_gdbarch_init): Update.
10084 * hppa-tdep.c (hppa_gdbarch_init): Update.
10085 * h8300-tdep.c (h8300_gdbarch_init): Update.
10086 * frv-tdep.c (frv_gdbarch_init): Update.
10087 * d10v-tdep.c (d10v_gdbarch_init): Update.
10088 * cris-tdep.c (cris_gdbarch_init): Update.
10089 * avr-tdep.c (avr_gdbarch_init): Update.
10090 * arm-tdep.c (arm_gdbarch_init): Update.
10091 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10092 * alpha-tdep.c (alpha_gdbarch_init): Update.
10093
10094 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10095
10096 * signals/signals.c (do_target_signal_to_host): Correct realtime
10097 signal range test.
10098
10099 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10100
10101 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10102 (struct sal_chain, map_catch_names): Remove.
10103 (catch_exception_command_1): Don't call
10104 handle_gnu_4_16_catch_command.
10105
10106 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10107
10108 From Mark Dettinger <dettinge@de.ibm.com>:
10109 * dwarf2cfi.c (read_2u): Increment pointer by two.
10110
10111 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10112
10113 * signals/signals.c: Fix typos in last change.
10114
10115 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10116
10117 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10118 not already defined. Use __SIGRTMIN if available.
10119 (target_signal_from_host): Remove SIGRTMIN block.
10120 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10121 the signal is within the realtime range.
10122
10123 2003-03-25 Adam Fedor <fedor@gnu.org>
10124
10125 * Makefile.in (infrun.o): Add $(language_h)
10126 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10127 for language specific trampolines.
10128 * language.h (struct language_defn): Add skip_trampoline.
10129 (skip_language_trampoline): Declare.
10130 * language.c (unk_lang_trampoline, skip_language_trampoline):
10131 New functions.
10132 (unknown_language_defn, auto_language_defn, local_language_defn):
10133 Add ukn_lang_trampoline.
10134 * ada-lang.c (ada_language_defn): Add NULL for language
10135 specific skip_trampoline.
10136 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10137 scm-lang.c: Likewise.
10138 * objc-lang.c (objc_skip_trampoline): New function.
10139 (objc_language_defn): Add objc_skip_trampoline.
10140
10141 2003-03-25 Andrew Cagney <cagney@redhat.com>
10142
10143 * frame.c (get_prev_frame): Delay validating a frame's ID -
10144 non-NULL, didn't go backwards - until an attempt to unwind it to
10145 the previous frame.
10146
10147 2003-03-25 Andrew Cagney <cagney@redhat.com>
10148
10149 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10150 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10151 * gdbarch.h, gdbarch.c: Re-generate.
10152 * config/sparc/tm-sparc.h
10153 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10154 * sparc-tdep.c (sparc_gdbarch_init): Set
10155 deprecated_extra_stack_alignment_needed.
10156 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10157 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10158 extra_stack_alignment_needed.
10159 * v850-tdep.c (v850_gdbarch_init): Ditto.
10160 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10161 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10162 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10163 * cris-tdep.c (cris_gdbarch_init): Ditto.
10164 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10165 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10166
10167 2003-03-25 Andrew Cagney <cagney@redhat.com>
10168
10169 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10170 STORE_STRUCT_RETURN.
10171 * gdbarch.h, gdbarch.c: Regenerate.
10172 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10173 (d10v_push_arguments): Set the struct return register.
10174 (d10v_gdbarch_init): Update.
10175 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10176 * x86-64-tdep.c (x86_64_init_abi): Update.
10177 * vax-tdep.c (vax_gdbarch_init): Update.
10178 * v850-tdep.c (v850_gdbarch_init): Update.
10179 * sparc-tdep.c (sparc_gdbarch_init): Update.
10180 * sh-tdep.c (sh_gdbarch_init): Update.
10181 * s390-tdep.c (s390_gdbarch_init): Update.
10182 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10183 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10184 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10185 * mips-tdep.c (mips_gdbarch_init): Update.
10186 * mcore-tdep.c (mcore_gdbarch_init): Update.
10187 * m68k-tdep.c (m68k_gdbarch_init): Update.
10188 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10189 * ia64-tdep.c (ia64_gdbarch_init): Update.
10190 * i386-tdep.c (i386_gdbarch_init): Update.
10191 * hppa-tdep.c (hppa_gdbarch_init): Update.
10192 * h8300-tdep.c (h8300_gdbarch_init): Update.
10193 * frv-tdep.c (frv_gdbarch_init): Update.
10194 * cris-tdep.c (cris_gdbarch_init): Update.
10195 * avr-tdep.c (avr_gdbarch_init): Update.
10196 * arm-tdep.c (arm_gdbarch_init): Update.
10197 * alpha-tdep.c (alpha_gdbarch_init): Update.
10198
10199 2003-03-25 Andrew Cagney <cagney@redhat.com>
10200
10201 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10202 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10203 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10204 * gdbarch.h, gdbarch.c: Regenerate.
10205 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10206 call_dummy_stack_adjust_p.
10207 * vax-tdep.c (vax_gdbarch_init): Ditto.
10208 * v850-tdep.c (v850_gdbarch_init): Ditto.
10209 * sh-tdep.c (sh_gdbarch_init): Ditto.
10210 * s390-tdep.c (s390_gdbarch_init): Ditto.
10211 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10212 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10213 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10214 * mips-tdep.c (mips_gdbarch_init): Ditto.
10215 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10216 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10217 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10218 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10219 * i386-tdep.c (i386_gdbarch_init): Ditto.
10220 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10221 * frv-tdep.c (frv_gdbarch_init): Ditto.
10222 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10223 * cris-tdep.c (cris_gdbarch_init): Ditto.
10224 * avr-tdep.c (avr_gdbarch_init): Ditto.
10225 * arm-tdep.c (arm_gdbarch_init): Ditto.
10226 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10227 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10228 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10229 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10230 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10231 call_dummy_stack_adjust_p.
10232 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10233 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10234 * sparc-tdep.c (sparc32_push_arguments): Update.
10235 * valops.c (hand_function_call): Update.
10236
10237 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
10238
10239 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10240 set_gdbarch_char_signed.
10241
10242 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10243
10244 PR cli/548
10245 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10246
10247 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10248
10249 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10250 (_initialize_arm_tdep): Don't set tm_print_insn.
10251
10252 2003-03-24 Adam Fedor <fedor@gnu.org>
10253
10254 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10255 * objc-lang.h: Add multiple inclusion protection.
10256 (start_msglist, add_msglist, end_msglist): Additional declarations.
10257
10258 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
10259
10260 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10261 value was renamed to ARM_FLOAT_SOFT_FPA.
10262
10263 2003-03-23 Andrew Cagney <cagney@redhat.com>
10264
10265 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10266 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10267 * gdbarch.h, gdbarch.c: Regenerate.
10268 * valops.c (hand_function_call): Update.
10269 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10270 * frame.c (legacy_saved_regs_this_id): Update.
10271 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10272 * dummy-frame.h: Update.
10273 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10274 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10275 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10276 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10277 * config/m68k/tm-sun3.h: Update.
10278 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10279 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10280 * x86-64-tdep.c (x86_64_init_abi): Update.
10281 * vax-tdep.c (vax_gdbarch_init): Update.
10282 * v850-tdep.c (v850_gdbarch_init): Update.
10283 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10284 * sh-tdep.c (sh_gdbarch_init): Update.
10285 * s390-tdep.c (s390_gdbarch_init): Update.
10286 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10287 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10288 (frame_get_saved_regs): Update.
10289 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10290 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10291 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10292 * mips-tdep.c (mips_gdbarch_init): Update.
10293 * mcore-tdep.c (mcore_gdbarch_init): Update.
10294 * m68k-tdep.c (m68k_gdbarch_init): Update.
10295 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10296 * ia64-tdep.c (ia64_gdbarch_init): Update.
10297 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10298 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10299 (i386_interix_back_one_frame): Update.
10300 * hppa-tdep.c (hppa_gdbarch_init): Update.
10301 (hppa_init_extra_frame_info): Update.
10302 * h8300-tdep.c (h8300_gdbarch_init): Update.
10303 * frv-tdep.c (frv_gdbarch_init): Update.
10304 * cris-tdep.c (cris_gdbarch_init): Update.
10305 * avr-tdep.c (avr_gdbarch_init): Update.
10306 * arm-tdep.c (arm_gdbarch_init): Update.
10307 * alpha-tdep.c (alpha_gdbarch_init): Update.
10308
10309 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10310
10311 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10312 (arm_get_fp_model): Declare.
10313 * arm-tdep.c (fp_model_strings): New string array.
10314 (arm_fp_model, current_fp_model): New variables.
10315 (arm_get_fp_model): New function.
10316 (arm_set_fp): New function.
10317 (set_fp_model_sfunc): New function.
10318 (show_fp_model): New function.
10319 (_initialize_arm_tdep): Add new command to set/show the FPU.
10320 (arm_extract_return_value): Use arm_get_fp_model.
10321 (arm_store_return_value): Likewise.
10322 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10323 to initialize the floating-point data types.
10324 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10325 model is FPA.
10326
10327 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10328
10329 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10330 the current setting of each value.
10331 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
10332 new_set and new_show. Use add_setshow_cmd_full and
10333 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10334 commands and add new version as subcommands of "set/show arm".
10335
10336 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10337
10338 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10339 (set_arm_command, show_arm_command): New functions.
10340 (_initialize_arm_tdep): Add them.
10341 (num_disassembly_options): Renamed from num_flavor_options.
10342 (valid_disassembly_styles): Renamed from valid_flavors.
10343 (disassembly_style): Renamed from disassembly_flavor.
10344 (set_disassembly_style_sfunc): Renamed from
10345 set_disassembly_flavor_sfunc.
10346 (set_disassembly_style): Renamed from set_disassembly_flavor.
10347 (arm_othernames): Updated.
10348 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10349 command. Add "set/show arm disassembly" commands. Deprecate
10350 "othernames" command.
10351
10352 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10353
10354 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10355 (arm-tdep.o): Depend on elf_arm_h.
10356
10357 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10358
10359 * Makefile.in (coff_internal_h): Define.
10360 (arm-tdep.o): Update dependencies.
10361
10362 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10363
10364 * arm-tdep.c (prologue_cache): Delete.
10365 (check_prologue_cache, save_prologue_cache): Delete.
10366 (arm_scan_prologue): Don't check or update the prologue_cache.
10367 (arm_gdb_arch_init): Don't initialize it.
10368 (_initialize_arm_tdep): Likewise.
10369
10370 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10371
10372 * MAINTAINERS (tui): Maintainer of tui code.
10373
10374 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
10375
10376 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10377 (i386-cygwin-tdep.o): Add dependencies.
10378 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10379 * i386-cygwin-tdep.c: New file.
10380 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10381 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10382
10383 2003-03-20 Andrew Cagney <cagney@redhat.com>
10384
10385 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10386 (handle_inferior_event): Remove code calling
10387 DYNAMIC_TRAMPOLINE_NEXTPC.
10388
10389 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10390 already has a full path.
10391
10392 * main.c (gdb_main): Return 1.
10393 (captured_main): Call error to report an invalid interpreter.
10394
10395 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10396 * alpha-osf1-tdep.c: Include "gdb_string.h".
10397
10398 2003-03-19 J. Brobecker <brobecker@gnat.com>
10399
10400 Continuing work to convert the hppa targets to multiarch partial.
10401
10402 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10403 method, now that hppa_push_dummy_frame has a conformant prototype.
10404 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10405 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10406 for the switch to multiarch partial.
10407
10408 2003-03-19 Kevin Buettner <kevinb@redhat.com>
10409
10410 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10411 when iss is issNull.
10412
10413 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10414
10415 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10416 NUM_REGS bounds check.
10417
10418 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10419
10420 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10421 * mips-tdep.c (gdb_assert.h): Include.
10422 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10423 (mips_register_name): Handle integer registers explicitly. Add
10424 bounds checking.
10425 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10426 (mips_lsi33k_reg_names): Don't list integer registers; they're
10427 handled by mips_register_name() now.
10428 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10429 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10430 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10431 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10432 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10433
10434 2003-03-18 Andrew Cagney <cagney@redhat.com>
10435
10436 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10437 a void pointer.
10438 * gdbtypes.h (print_scalar_formatted): Update declaration.
10439 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10440
10441 2003-03-18 J. Brobecker <brobecker@gnat.com>
10442
10443 * infrun.c (observer.h): Add #include.
10444 (normal_stop): Add call to observer_notify_normal_stop.
10445 * Makefile.in (infrun.o): Add dependency on observer.h.
10446
10447 2003-03-18 J. Brobecker <brobecker@gnat.com>
10448
10449 Continuing work to convert the hppa targets to multiarch partial.
10450 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10451 parameter. Reformat comment.
10452 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10453 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10454 to match new profile.
10455
10456 2003-03-18 J. Brobecker <brobecker@gnat.com>
10457
10458 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10459 appear to be working in any case.
10460
10461 2003-03-18 J. Brobecker <brobecker@gnat.com>
10462
10463 * observer.c (observer_test_first_observer): New static variable.
10464 (observer_test_second_observer): Likewise.
10465 (observer_test_third_observer): Likewise.
10466 (observer_test_first_notification_function): New static function.
10467 (observer_test_second_notification_function): Likewise.
10468 (observer_test_third_notification_function): Likewise.
10469
10470 2003-03-17 J. Brobecker <brobecker@gnat.com>
10471
10472 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10473 * somsolib.c (gdb_assert.h): Likewise.
10474 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10475 (somsolib.o): Likewise.
10476
10477 2003-03-17 Andrew Cagney <cagney@redhat.com>
10478
10479 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10480 BFD. Simplify setting of di.endian.
10481
10482 2003-03-17 Andrew Cagney <cagney@redhat.com>
10483
10484 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10485 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10486
10487 From Elena Zannoni <ezannoni@redhat.com>
10488 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10489 vector and floating-point parameters.
10490 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10491 convention.
10492 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10493
10494 2003-03-17 Fernando Nasser <fnasser@redhat.com>
10495
10496 * MAINTAINERS: Remove my name from several maintainership roles.
10497
10498 2003-03-17 Andrew Cagney <cagney@redhat.com>
10499
10500 Fix frame off-by-one bug.
10501 * frame-unwind.h (frame_this_id_ftype): Replace
10502 frame_unwind_id_ftype.
10503 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10504 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10505 with "prev_register".
10506 * frame-unwind.c (frame_unwind_find_by_pc): Return
10507 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10508 comment.
10509 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10510 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10511 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10512 (dummy_frame_unwind): Update.
10513 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10514 sentinel_frame_register_unwind.
10515 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10516 (sentinel_frame_unwinder): Update.
10517 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10518 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10519 * frame.c (create_sentinel_frame): Update. Initialize
10520 "prologue_cache" instead of "unwind_cache".
10521 (frame_register_unwind): Call this frame's prev_register with the
10522 next frame and this frame's prologue cache.
10523 (get_prev_frame): Simplify. Always call prev frame's this_id with
10524 this frame and prev frame's prologue cache. Document that this
10525 call is shifted one to the left when compared to the
10526 frame_register_unwind call.
10527 (legacy_saved_regs_prev_register): Replace
10528 frame_saved_regs_register_unwind.
10529 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10530 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10531 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10532 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10533 (d10v_frame_unwind): Update.
10534 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10535 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10536 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10537 "saved_regs" with "this_saved_regs".
10538
10539 2003-03-16 Andrew Cagney <cagney@redhat.com>
10540
10541 * frame.c (frame_pop): Don't call target_store_registers. Fix
10542 problem reported by Mark Kettenis.
10543
10544 2003-03-16 Mark Kettenis <kettenis@gnu.org>
10545
10546 * i386-tdep.c (i386_register_type): Renamed from
10547 i386_register_virtual_type. Adjust function signature.
10548 (i386_gdbarch_init): Set register_type instead of
10549 deprecated_max_register_raw_size,
10550 deprecated_max_register_virtual_size and register_virtual_type.
10551
10552 2003-03-14 Andrew Cagney <cagney@redhat.com>
10553
10554 * frame.c (get_prev_frame): When a legacy frame, always call
10555 legacy_get_prev_frame. Simplify unwind code using assumption that
10556 the unwinder is new.
10557 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10558 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10559 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10560
10561 2003-03-14 Andrew Cagney <cagney@redhat.com>
10562
10563 * frame.c (get_saved_register): Delete function.
10564 * frame.h (get_saved_register): Delete declaration.
10565 * xstormy16-tdep.c: Update comment.
10566 * regcache.h: Update comments.
10567 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10568 get_saved_register and extract_address, use
10569 frame_read_unsigned_register.
10570 (sparc_frame_saved_pc): Ditto.
10571 (sparc_get_saved_register): Instead of get_saved_register, use
10572 frame_register.
10573 (sparc_pop_frame): Ditto.
10574 * findvar.c: Update comments.
10575 (value_of_register): Call frame_register instead of
10576 get_saved_register.
10577 (value_from_register): Ditto.
10578 * config/sparc/tm-sparc.h: Update comment.
10579 * breakpoint.c: Update comment.
10580
10581 2003-03-14 Andrew Cagney <cagney@redhat.com>
10582
10583 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10584 GET_SAVED_REGISTER.
10585 * gdbarch.h, gdbarch.c: Re-generate.
10586 * frame.h: Update comments.
10587 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10588 * x86-64-tdep.c (x86_64_init_abi): Update.
10589 * sparc-tdep.c (sparc_gdbarch_init): Update.
10590 * sh-tdep.c (sh_gdbarch_init): Update.
10591 * mips-tdep.c (mips_gdbarch_init): Update.
10592 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10593 * cris-tdep.c (cris_gdbarch_init): Update.
10594 * ia64-tdep.c (ia64_gdbarch_init): Update.
10595 * frame.c (frame_register): Update.
10596 (get_saved_register): Update.
10597 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
10598
10599 2003-03-13 Andrew Cagney <cagney@redhat.com>
10600
10601 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10602 * gdbarch.h, gdbarch.c: Regenerate.
10603 * valops.c (hand_function_call): Update comment.
10604 * stack.c (return_command): Update comment.
10605 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10606 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10607 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10608 * x86-64-tdep.c (x86_64_init_abi): Update.
10609 * vax-tdep.c (vax_gdbarch_init): Update.
10610 * v850-tdep.c (v850_gdbarch_init): Update.
10611 * sparc-tdep.c (sparc_gdbarch_init): Update.
10612 * sh-tdep.c (sh_gdbarch_init): Update.
10613 * s390-tdep.c (s390_gdbarch_init): Update.
10614 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10615 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10616 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10617 * mips-tdep.c (mips_gdbarch_init): Update.
10618 * mcore-tdep.c (mcore_gdbarch_init): Update.
10619 * m68k-tdep.c (m68k_gdbarch_init): Update.
10620 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10621 * ia64-tdep.c (ia64_gdbarch_init): Update.
10622 * i386-tdep.c (i386_gdbarch_init): Update.
10623 * hppa-tdep.c (hppa_gdbarch_init): Update.
10624 * h8300-tdep.c (h8300_gdbarch_init): Update.
10625 * frv-tdep.c (frv_gdbarch_init): Update.
10626 * cris-tdep.c (cris_gdbarch_init): Update.
10627 * avr-tdep.c (avr_gdbarch_init): Update.
10628 * arm-tdep.c (arm_gdbarch_init): Update.
10629 * alpha-tdep.c (alpha_gdbarch_init): Update.
10630
10631 2003-03-13 Andrew Cagney <cagney@redhat.com>
10632
10633 * frame.c (legacy_frame_p): New function.
10634 (get_prev_frame): Use legacy_frame_p.
10635 * frame.h (legacy_frame_p): Declare.
10636
10637 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10638
10639 * MAINTAINERS (write after approval): Alphabetically
10640 listing corrected.
10641
10642 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10643
10644 * MAINTAINERS (write after approval): Add myself.
10645
10646 2003-03-12 Andrew Cagney <cagney@redhat.com>
10647
10648 * frame.c (get_prev_frame): Rename the frame parameter to
10649 "this_frame".
10650 (get_next_frame, legacy_get_prev_frame): Ditto.
10651
10652 2003-03-12 Andrew Cagney <cagney@redhat.com>
10653
10654 * frame.c (get_current_frame): Check target_has_registers before
10655 checking target_has_stack.
10656 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10657 instead of deprecated_selected_frame.
10658 * findvar.c (value_of_register): Pass "frame", not
10659 deprecated_selected_frame, to value_of_builtin_reg.
10660
10661 2003-03-12 Andrew Cagney <cagney@redhat.com>
10662
10663 * regcache.c (regcache_cooked_write_signed): New function.
10664 (regcache_cooked_write_unsigned): New function.
10665 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10666 (regcache_cooked_read_signed): Fix regnum in range assertion.
10667 * regcache.h (regcache_cooked_write_signed): Declare.
10668 (regcache_cooked_write_unsigned): Declare.
10669
10670 2003-03-12 Andrew Cagney <cagney@redhat.com>
10671
10672 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10673 * gdbarch.h, gdbarch.c: Re-generate.
10674 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10675 * x86-64-tdep.h: Update.
10676 * x86-64-tdep.c (x86_64_init_abi): Update.
10677 * v850-tdep.c (v850_gdbarch_init): Update.
10678 * sparc-tdep.c (sparc_gdbarch_init): Update.
10679 * sh-tdep.c (sh_gdbarch_init): Update.
10680 * s390-tdep.c (s390_gdbarch_init): Update.
10681 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10682 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10683 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10684 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10685 * mips-tdep.c (mips_gdbarch_init): Update.
10686 * mcore-tdep.c (mcore_gdbarch_init): Update.
10687 * m68k-tdep.c (m68k_gdbarch_init): Update.
10688 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10689 * ia64-tdep.c (ia64_gdbarch_init): Update.
10690 * i386-tdep.c (i386_gdbarch_init): Update.
10691 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10692 * hppa-tdep.c (hppa_gdbarch_init): Update.
10693 * h8300-tdep.c (h8300_gdbarch_init): Update.
10694 * frv-tdep.c (frv_gdbarch_init): Update.
10695 * cris-tdep.c (cris_gdbarch_init): Update.
10696 * avr-tdep.c (avr_gdbarch_init): Update.
10697 * arm-tdep.c (arm_gdbarch_init): Update.
10698 * alpha-tdep.c (alpha_gdbarch_init): Update.
10699 * sh-tdep.c (sh_init_extra_frame_info): Update.
10700 (sh64_init_extra_frame_info): Update.
10701 * ns32knbsd-nat.c (frame_num_args): Update.
10702 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10703 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10704 (xstormy16_frame_chain_valid): Update.
10705 * vax-tdep.c (vax_saved_pc_after_call): Update.
10706 * v850-tdep.c (v850_frame_chain): Update.
10707 (v850_pop_frame): Update.
10708 (v850_init_extra_frame_info): Update.
10709 * sparc-tdep.c (setup_arbitrary_frame): Update.
10710 * ns32k-tdep.c (umax_frame_num_args): Update.
10711 * s390-tdep.c (s390_pop_frame_regular): Update.
10712 * mn10300-tdep.c (mn10300_frame_chain): Update.
10713 (mn10300_pop_frame_regular): Update.
10714 (mn10300_init_extra_frame_info): Update.
10715 * mips-tdep.c (mips_init_frame_pc_first): Update.
10716 (mips_frame_chain): Update.
10717 (mips_pop_frame): Update.
10718 * mcore-tdep.c (mcore_frame_chain): Update.
10719 (mcore_pop_frame): Update.
10720 (mcore_init_extra_frame_info): Update.
10721 * arch-utils.c (init_frame_pc_default): Update.
10722 * m68k-tdep.c (isi_frame_num_args): Update.
10723 (delta68_frame_num_args): Update.
10724 (news_frame_num_args): Update.
10725 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10726 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10727 (alpha_frame_chain): Update.
10728 (alpha_pop_frame): Update.
10729 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10730 (hppa_init_extra_frame_info): Update.
10731 (hppa_frame_chain): Update.
10732 (hppa_frame_chain_valid): Update.
10733 * cris-tdep.c (cris_init_extra_frame_info): Update.
10734 * avr-tdep.c (avr_init_extra_frame_info): Update.
10735 * arm-tdep.c (arm_frame_chain_valid): Update.
10736 (arm_init_extra_frame_info): Update.
10737 (arm_pop_frame): Update.
10738 * frame.c (frame_pc_unwind): Update.
10739 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10740 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10741 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10742 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10743 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10744 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10745
10746 2003-03-12 Andrew Cagney <cagney@redhat.com>
10747
10748 Eliminate the need for POP_FRAME.
10749 * frame.c (do_frame_unwind_register): New function.
10750 (frame_pop): When no POP_FRAME, pop the frame using register
10751 unwind and a scratch regcache.
10752 (frame_saved_regs_pop): Delete function.
10753 (trad_frame_unwinder): Update.
10754 * d10v-tdep.c (d10v_frame_pop): Delete function.
10755 (d10v_frame_unwind): Update.
10756 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10757 (sentinel_frame_unwinder): Update.
10758 * dummy-frame.c (dummy_frame_pop): Delete function.
10759 (dummy_frame_unwind): Update.
10760 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10761 (struct frame_unwind): Update.
10762
10763 2003-03-11 Kevin Buettner <kevinb@redhat.com>
10764
10765 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10766 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10767 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10768 Do range checks on register number obtained from debugging info.
10769 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10770 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10771 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10772 mapping function.
10773 (do_fp_register_row): Fix typo which caused double type to be
10774 used when attempting to unpack a float.
10775
10776 2003-03-11 J. Brobecker <brobecker@gnat.com>
10777
10778 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10779
10780 2003-03-11 Andrew Cagney <cagney@redhat.com>
10781
10782 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10783 frame. Problem found by Corinna Vinschen.
10784
10785 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10786
10787 * doublest.c (floatformat_from_length): Accept also
10788 the real size of 'long double' type.
10789
10790 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
10791
10792 From Klee Dienes <kdienes@apple.com>:
10793 * breakpoint.c (bpstat_copy): Copy the command lines as well
10794 as the old value, to match what is freed in bpstat_clear.
10795
10796 2003-03-10 David Carlton <carlton@math.stanford.edu>
10797
10798 * minsyms.c (add_minsym_to_hash_table): Replace
10799 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10800 (compare_minimal_symbols, compact_minimal_symbols)
10801 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10802 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10803 of DEPRECATED_SYMBOL_MATCHES_NAME.
10804 (lookup_minimal_symbol_solib_trampoline): Ditto.
10805
10806 2003-03-10 Andrew Cagney <cagney@redhat.com>
10807
10808 * regcache.h (regcache_cooked_read_ftype): Define.
10809 (regcache_save, regcache_restore): Add a cooked_read parameter.
10810 * regcache.c (regcache_save, regcache_restore): Update.
10811 (do_cooked_read): New function.
10812 (regcache_cpy): Pass do_cooked_read to regcache_save and
10813 regcache_restore.
10814
10815 2003-03-10 Andrew Cagney <cagney@redhat.com>
10816
10817 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10818 * gdbarch.h, gdbarch.c: Re-generate.
10819 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10820 * x86-64-tdep.h: Update.
10821 * x86-64-tdep.c (x86_64_init_abi): Update.
10822 * v850-tdep.c (v850_gdbarch_init): Update.
10823 * sparc-tdep.c (sparc_gdbarch_init): Update.
10824 * sh-tdep.c (sh_gdbarch_init): Update.
10825 * s390-tdep.c (s390_gdbarch_init): Update.
10826 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10827 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10828 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10829 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10830 * mips-tdep.c (mips_gdbarch_init): Update.
10831 * mcore-tdep.c (mcore_gdbarch_init): Update.
10832 * m68k-tdep.c (m68k_gdbarch_init): Update.
10833 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10834 * ia64-tdep.c (ia64_gdbarch_init): Update.
10835 * i386-tdep.c (i386_gdbarch_init): Update.
10836 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10837 * hppa-tdep.c (hppa_gdbarch_init): Update.
10838 * h8300-tdep.c (h8300_gdbarch_init): Update.
10839 * frv-tdep.c (frv_gdbarch_init): Update.
10840 * cris-tdep.c (cris_gdbarch_init): Update.
10841 * avr-tdep.c (avr_gdbarch_init): Update.
10842 * arm-tdep.c (arm_gdbarch_init): Update.
10843 * alpha-tdep.c (alpha_gdbarch_init): Update.
10844 * sh-tdep.c (sh_init_extra_frame_info): Update.
10845 (sh64_init_extra_frame_info): Update.
10846 * ns32knbsd-nat.c (frame_num_args): Update.
10847 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10848 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10849 (xstormy16_frame_chain_valid): Update.
10850 * vax-tdep.c (vax_saved_pc_after_call): Update.
10851 * v850-tdep.c (v850_frame_chain): Update.
10852 (v850_pop_frame): Update.
10853 (v850_init_extra_frame_info): Update.
10854 * sparc-tdep.c (setup_arbitrary_frame): Update.
10855 * ns32k-tdep.c (umax_frame_num_args): Update.
10856 * s390-tdep.c (s390_pop_frame_regular): Update.
10857 * mn10300-tdep.c (mn10300_frame_chain): Update.
10858 (mn10300_pop_frame_regular): Update.
10859 (mn10300_init_extra_frame_info): Update.
10860 * mips-tdep.c (mips_init_frame_pc_first): Update.
10861 (mips_frame_chain): Update.
10862 (mips_pop_frame): Update.
10863 * mcore-tdep.c (mcore_frame_chain): Update.
10864 (mcore_pop_frame): Update.
10865 (mcore_init_extra_frame_info): Update.
10866 * arch-utils.c (init_frame_pc_default): Update.
10867 * m68k-tdep.c (isi_frame_num_args): Update.
10868 (delta68_frame_num_args): Update.
10869 (news_frame_num_args): Update.
10870 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10871 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10872 (alpha_frame_chain): Update.
10873 (alpha_pop_frame): Update.
10874 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10875 (hppa_init_extra_frame_info): Update.
10876 (hppa_frame_chain): Update.
10877 (hppa_frame_chain_valid): Update.
10878 * cris-tdep.c (cris_init_extra_frame_info): Update.
10879 * avr-tdep.c (avr_init_extra_frame_info): Update.
10880 * arm-tdep.c (arm_frame_chain_valid): Update.
10881 (arm_init_extra_frame_info): Update.
10882 (arm_pop_frame): Update.
10883 * frame.c (frame_pc_unwind): Update.
10884 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10885 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10886 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10887 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10888 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10889 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10890
10891 2003-03-10 Andrew Cagney <cagney@redhat.com>
10892
10893 * gdbarch.sh (gdbarch_unwind_pc): New method.
10894 * gdbarch.h, gdbarch.c: Regenerate.
10895 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10896 but use read_pc and FRAME_SAVED_PC as fall backs.
10897 (frame_saved_regs_pc_unwind): Delete function.
10898 (trad_frame_unwinder): Update.
10899 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10900 (struct frame_unwind): Update.
10901 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10902 (dummy_frame_unwind): Update.
10903 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10904 (sentinel_frame_unwinder): Update.
10905 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10906 (d10v_frame_unwind): Update.
10907 (d10v_unwind_pc): New function.
10908 (d10v_gdbarch_init): Set unwind_pc.
10909
10910 2003-03-10 Andrew Cagney <cagney@redhat.com>
10911
10912 * gdbarch.h: Re-generate.
10913
10914 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10915 PC.
10916 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10917 the PC register.
10918
10919 2003-03-08 Mark Kettenis <kettenis@gnu.org>
10920
10921 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10922
10923 2003-03-08 Andrew Cagney <cagney@redhat.com>
10924
10925 * cli-out.c: Update copyright.
10926 (cli_out_data): Define typedef. Use instead of ui_out_data.
10927
10928 2003-03-08 Andrew Cagney <cagney@redhat.com>
10929
10930 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10931 the result.
10932
10933 2003-03-07 Andrew Cagney <cagney@redhat.com>
10934
10935 * gdbarch.sh: Don't generate two macro definitions when an
10936 undefined macro taking no arguments.
10937 * gdbarch.h: Regenerate.
10938
10939 2002-03-07 Michal Ludvig <mludvig@suse.cz>
10940
10941 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10942 (x86_64_unwind_dummy_id): New functions.
10943 (x86_64_init_abi): Register these two new functions.
10944
10945 2003-03-07 Michal Ludvig <mludvig@suse.cz>
10946
10947 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10948 (x86_64_skip_prologue): Move prologue detection to
10949 separate function.
10950 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10951
10952 2003-03-05 Andrew Cagney <cagney@redhat.com>
10953
10954 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10955 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10956 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10957 to use unwind_dummy_id when a dummy frame.
10958 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10959 predicate.
10960 * gdbarch.h, gdbarch.c: Regneerate.
10961
10962 2003-03-05 Andrew Cagney <cagney@redhat.com>
10963
10964 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10965 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10966 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10967 values.
10968
10969 2003-03-05 Andrew Cagney <cagney@redhat.com>
10970
10971 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10972 (struct d10v_unwind_cache): Delete field "frameless". Replace
10973 "next_addr" with "sp_offset". Add "r11_offset".
10974 (d10v_frame_unwind_cache): Update.
10975 (prologue_find_regs): Update. When "mv r11, sp", save the
10976 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10977 RN was saved in r11_offset.
10978
10979 2003-03-05 Andrew Cagney <cagney@redhat.com>
10980
10981 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10982 cached PC value in the next frame.
10983
10984 2003-03-05 Andrew Cagney <cagney@redhat.com>
10985
10986 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10987 "id_unwind_cache" with "id".
10988 (frame_id_unwind): Delete declaration.
10989 * frame.c (frame_id_unwind): Delete function.
10990 (get_prev_frame): Call the frame id unwind method directly. Store
10991 the returned next frame's ID value in NEXT_FRAME. Note that there
10992 is a problem with the wrong unwind ID being called with the wrong
10993 unwind cache.
10994
10995 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10996
10997 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10998
10999 2003-03-05 James Ingham <jingham@apple.com>
11000 Daniel Jacobowitz <drow@mvista.com>
11001
11002 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11003 (auto_cp_abi): New variable.
11004 (current_cp_abi, num_cp_abis): Make static.
11005 (CP_ABI_MAX): Define.
11006 (cp_abis): Turn into an array.
11007 (value_virtual_fn_field): Fix formatting.
11008 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11009 takes a pointer.
11010 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11011 (list_cp_abis, _initialize_cp_abi): New functions.
11012 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11013 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11014 switch_to_cp_abi. Update prototype for register_cp_abi.
11015 * Makefile.in (cp-abi.o): Update dependencies.
11016 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11017 instead of switch_to_cp_abi.
11018 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11019 register_cp_abi.
11020 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11021 register_cp_abi.
11022 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11023
11024 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11025
11026 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11027 * dwarf2loc.c: Include "regcache.h".
11028 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11029 register_size.
11030 * Makefile.in (dwarf2loc.o): Update dependencies.
11031
11032 2003-03-04 Theodore A. Roth <troth@openavr.org>
11033
11034 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11035 number of io registers reported by remote target is not a multiple of
11036 step.
11037
11038 2003-03-04 David Carlton <carlton@math.stanford.edu>
11039
11040 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11041 (lookup_symbol_aux_psymtabs): Update call to
11042 lookup_partial_symbol.
11043 (lookup_transparent_type, find_main_psymtab)
11044 (make_symbol_overload_list): Ditto.
11045
11046 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11047
11048 * MAINTAINERS (Write after approval): Update my email address.
11049
11050 2003-03-03 Andrew Cagney <cagney@redhat.com>
11051
11052 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11053 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11054 predicate. Replace MAX_REGISTER_RAW_SIZE.
11055 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11056 MAX_REGISTER_VIRTUAL_SIZE.
11057 * regcache.c (legacy_max_register_raw_size): New function.
11058 (legacy_max_register_virtual_size): New function.
11059 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11060 (MAX_REGISTER_RAW_SIZE): Define.
11061 (legacy_max_register_raw_size): Declare.
11062 (legacy_max_register_virtual_size): Declare.
11063 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11064 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11065 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11066 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11067 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11068 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11069 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11070 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11071 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11072 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11073 * vax-tdep.c (vax_gdbarch_init): Update.
11074 * v850-tdep.c (v850_gdbarch_init): Update.
11075 * sparc-tdep.c (sparc_gdbarch_init): Update.
11076 * sh-tdep.c (sh_gdbarch_init): Update.
11077 * s390-tdep.c (s390_gdbarch_init): Update.
11078 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11079 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11080 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11081 * mips-tdep.c (mips_gdbarch_init): Update.
11082 * mcore-tdep.c (mcore_gdbarch_init): Update.
11083 * m68k-tdep.c (m68k_gdbarch_init): Update.
11084 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11085 * ia64-tdep.c (ia64_gdbarch_init): Update.
11086 * i386-tdep.c (i386_gdbarch_init): Update.
11087 * hppa-tdep.c (hppa_gdbarch_init): Update.
11088 * h8300-tdep.c (h8300_gdbarch_init): Update.
11089 * frv-tdep.c (frv_gdbarch_init): Update.
11090 * cris-tdep.c (cris_gdbarch_init): Update.
11091 * avr-tdep.c (avr_gdbarch_init): Update.
11092 * arm-tdep.c (arm_gdbarch_init): Update.
11093 * alpha-tdep.c (alpha_gdbarch_init): Update.
11094 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11095 max_register_raw_size or max_register_virtual_size.
11096
11097 2003-03-03 David Carlton <carlton@math.stanford.edu>
11098
11099 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11100 SYMBOL_MATCHES_NAME, add comment.
11101 (SYMBOL_MATCHES_NATURAL_NAME): New.
11102 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11103 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11104 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11105 * symtab.c (lookup_partial_symbol): Use
11106 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11107 unhelpful comment.
11108 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11109 SYMBOL_MATCHES_NAME.
11110 Fix for PR c++/33.
11111
11112 2003-03-03 David Carlton <carlton@math.stanford.edu>
11113
11114 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11115 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11116 by regexp matching against SYMBOL_NATURAL_NAME.
11117
11118 2003-03-03 David Carlton <carlton@math.stanford.edu>
11119
11120 * linespec.c (find_method): Extract code into collect_methods.
11121 (collect_methods): New.
11122
11123 2003-03-02 Mark Kettenis <kettenis@gnu.org>
11124
11125 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11126 get_frame_base.
11127
11128 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11129 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11130
11131 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11132
11133 * arch-utils.c (generic_register_byte): Fix to use the loop index
11134 and not regnum when summing the size of all registers up to regnum.
11135
11136 2003-03-01 Andrew Cagney <cagney@redhat.com>
11137
11138 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11139 FRAME_INIT_SAVED_REGS.
11140 * gdbarch.h, gdbarch.c: Regenerate.
11141 * stack.c (frame_info): Update.
11142 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11143 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11144 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11145 * ns32k-tdep.c (ns32k_pop_frame): Update.
11146 * mips-tdep.c (mips_pop_frame): Update.
11147 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11148 * ia64-tdep.c (ia64_frame_chain): Update.
11149 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11150 (ia64_frameless_function_invocation): Update.
11151 (ia64_init_extra_frame_info): Update.
11152 (ia64_pop_frame_regular): Update.
11153 * frame.h (struct frame_info): Update comment.
11154 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11155 * frame.c (frame_saved_regs_register_unwind): Update.
11156 (frame_saved_regs_register_unwind): Update.
11157 (deprecated_generic_get_saved_register): Update.
11158 * cris-tdep.c: Update comment.
11159 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11160 Rename macro.
11161 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11162 * x86-64-tdep.c (x86_64_init_abi): Update.
11163 * vax-tdep.c (vax_gdbarch_init): Update.
11164 * v850-tdep.c (v850_gdbarch_init): Update.
11165 * sparc-tdep.c (sparc_gdbarch_init): Update.
11166 * sh-tdep.c (sh_gdbarch_init): Update.
11167 * s390-tdep.c (s390_gdbarch_init): Update.
11168 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11169 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11170 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11171 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11172 * mips-tdep.c (mips_gdbarch_init): Update.
11173 * mcore-tdep.c (mcore_gdbarch_init): Update.
11174 * m68k-tdep.c (m68k_gdbarch_init): Update.
11175 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11176 * ia64-tdep.c (ia64_gdbarch_init): Update.
11177 * i386-tdep.c (i386_gdbarch_init): Update.
11178 * frv-tdep.c (frv_gdbarch_init): Update.
11179 * avr-tdep.c (avr_gdbarch_init): Update.
11180 * arm-tdep.c (arm_gdbarch_init): Update.
11181 * alpha-tdep.c (alpha_gdbarch_init): Update.
11182
11183 2003-03-01 Andrew Cagney <cagney@redhat.com>
11184
11185 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11186 option enum and switch. When no windows, set the interpreter to
11187 INTERP_CONSOLE.
11188
11189 2003-03-01 Andrew Cagney <cagney@redhat.com>
11190
11191 * main.c (captured_main): Replace magic option characters with an
11192 enum.
11193
11194 2003-03-01 Andrew Cagney <cagney@redhat.com>
11195
11196 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11197 INIT_EXTRA_FRAME_INFO.
11198 * gdbarch.h, gdbarch.c: Regenerate.
11199 * arm-tdep.c: Update comments.
11200 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11201 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11202 * frame.h, avr-tdep.c: Ditto.
11203 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11204 (create_new_frame, legacy_get_prev_frame): Ditto.
11205 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11206 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11207 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11208 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11209 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11210 * v850-tdep.c (v850_gdbarch_init): Ditto.
11211 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11212 * sh-tdep.c (sh_gdbarch_init): Ditto.
11213 * s390-tdep.c (s390_gdbarch_init): Ditto.
11214 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11215 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11216 * mips-tdep.c (mips_gdbarch_init): Ditto.
11217 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11218 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11219 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11220 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11221 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11222 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11223 * frv-tdep.c (frv_gdbarch_init): Ditto.
11224 * cris-tdep.c (cris_gdbarch_init): Ditto.
11225 * avr-tdep.c (avr_gdbarch_init): Ditto.
11226 * arm-tdep.c (arm_gdbarch_init): Ditto.
11227 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11228 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11229
11230 2003-03-01 Andrew Cagney <cagney@redhat.com>
11231
11232 * gdbarch.sh (register_type): New function with predicate.
11233 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11234 * gdbarch.h, gdbarch.c: Re-generate.
11235 * arch-utils.c (generic_register_byte): Use generic_register_size.
11236 (generic_register_size): When available, use
11237 gdbarch_register_type.
11238 * regcache.c (init_regcache_descr): When available, initialize the
11239 register type array using gdbarch_register_type. If the
11240 architecture supplies gdbarch_register_type, do not use the legacy
11241 regcache layout.
11242 * d10v-tdep.c (d10v_register_type): Replace
11243 d10v_register_virtual_type.
11244 (d10v_gdbarch_init): Set register_type instead of
11245 register_virtual_type.
11246
11247 2003-03-01 Andrew Cagney <cagney@redhat.com>
11248
11249 * Makefile.in (ax-gdb.o): Update dependencies.
11250 * ax-gdb.c: Include "regcache.h".
11251 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11252 * findvar.c (value_of_register): Ditto.
11253 * infcmd.c (default_print_registers_info): Ditto.
11254
11255 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11256
11257 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11258 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11259
11260 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11261
11262 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11263 of STREQ.
11264
11265 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
11266
11267 * Makefile.in (dwarf2loc.o): Update dependencies.
11268 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11269 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11270 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11271 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11272 (locexpr_tracepoint_var_ref): New function.
11273 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11274
11275 2003-02-28 Andrew Cagney <cagney@redhat.com>
11276
11277 * regcache.c (register_size): New function.
11278 * regcache.h (register_size): Declare
11279 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11280 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11281
11282 2003-02-28 David Carlton <carlton@math.stanford.edu>
11283
11284 * linespec.c (decode_compound): Extract code into find_method.
11285 (find_method): New.
11286
11287 2003-02-28 J. Brobecker <brobecker@gnat.com>
11288
11289 * Makefile.in: Add rules to build and link in observer.o.
11290
11291 2003-02-27 J. Brobecker <brobecker@gnat.com>
11292
11293 * observer.c: Minor comments edits.
11294
11295 2003-02-27 J. Brobecker <brobecker@gnat.com>
11296
11297 * observer.h, observer.c: New file.
11298
11299 2003-02-27 Andrew Cagney <cagney@redhat.com>
11300
11301 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11302
11303 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11304
11305 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11306 (M6812_OP_STS_EXT): Likewise.
11307 (m6811_prologue): Use the above to recognize prologue.
11308 (m6812_prologue): Likewise.
11309
11310 2003-02-27 David Carlton <carlton@math.stanford.edu>
11311
11312 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11313 SYMBOL_PRINT_NAME.
11314 (compare_psymbols): Ditto.
11315 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11316
11317 2003-02-27 Michael Snyder <msnyder@redhat.com>
11318
11319 * f-lang.c (build_fortran_types): New function.
11320 (_initialize_f_language): Gdbarch-register built-in fortran types.
11321 * doublest.c (extract_floating): Fix warning text.
11322
11323 2003-02-27 Andrew Cagney <cagney@redhat.com>
11324
11325 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11326 predicate. Replaces PUSH_DUMMY_FRAME.
11327 * gdbarch.h, gdbarch.c: Regnerate.
11328 * valops.c (hand_function_call): Update. Call
11329 generic_push_dummy_frame directly.
11330 * vax-tdep.c (vax_gdbarch_init): Update.
11331 * sparc-tdep.c (sparc_gdbarch_init): Update.
11332 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11333 * m68k-tdep.c (m68k_gdbarch_init): Update.
11334 * hppa-tdep.c (hppa_gdbarch_init): Update.
11335 * alpha-tdep.c (alpha_gdbarch_init): Update.
11336 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11337 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11338 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11339 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11340 push_dummy_frame to generic_push_dummy_frame.
11341 * v850-tdep.c (v850_gdbarch_init): Ditto.
11342 * sh-tdep.c (sh_gdbarch_init): Ditto.
11343 * s390-tdep.c (s390_gdbarch_init): Ditto.
11344 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11345 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11346 * mips-tdep.c (mips_gdbarch_init): Ditto.
11347 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11348 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11349 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11350 * i386-tdep.c (i386_gdbarch_init): Ditto.
11351 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11352 * frv-tdep.c (frv_gdbarch_init): Ditto.
11353 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11354 * cris-tdep.c (cris_gdbarch_init): Ditto.
11355 * avr-tdep.c (avr_gdbarch_init): Ditto.
11356 * arm-tdep.c (arm_gdbarch_init): Ditto.
11357
11358 2003-02-26 Kevin Buettner <kevinb@redhat.com>
11359
11360 * mips-tdep.c (show_mips_abi): New function.
11361 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11362 command ``show mips abi''.
11363
11364 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
11365
11366 From Elena Zannoni <ezannoni@redhat.com>
11367 * dbxread.c (process_one_symbol): Only record line 0 if one or
11368 more sline entries have been seen for the function.
11369
11370 2003-02-26 Michael Chastain <mec@shout.net>
11371
11372 * configure: Regenerate with autoconf 000227.
11373
11374 2003-02-26 Michael Chastain <mec@shout.net>
11375
11376 Close PR build/660.
11377 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11378 for old libc5/glibc.
11379 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11380
11381 2003-02-26 Kris Warkentin <kewarken@qnx.com>
11382
11383 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11384 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11385
11386 2003-02-26 Michael Chastain <mec@shout.net>
11387
11388 * configure.in: New variable HAVE_UINTPTR_T.
11389 * configure, config.in: Regenerated.
11390
11391 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
11392
11393 Fix PR build/1097.
11394 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11395
11396 2003-02-25 Andrew Cagney <cagney@redhat.com>
11397
11398 * frame.c (get_prev_frame): Add comment on check for
11399 inside_entry_func. Only check for inside_entry_file when not a
11400 dummy and not a sentinel. Check that the new frame is not inner
11401 to the old frame.
11402
11403 2003-02-25 Andrew Cagney <cagney@redhat.com>
11404
11405 * frame.c (frame_debug): New variable.
11406 (_initialize_frame): Add "set/show debug frame" command.
11407 (get_prev_frame): When frame_debug, print reason why unwind
11408 failed.
11409
11410 2003-02-25 Michael Chastain <mec@shout.net>
11411
11412 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11413 to avoid uintptr_t definition problems.
11414
11415 2003-02-25 David Carlton <carlton@math.stanford.edu>
11416
11417 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11418 (SYMBOL_LINKAGE_NAME): Ditto.
11419 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11420 SYMBOL_LINKAGE_NAME.
11421 (struct general_symbol_info): Expand comment.
11422 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11423 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11424 (SYMBOL_MATCHES_REGEXP): Ditto.
11425 * symtab.c (symbol_natural_name): New function.
11426 * objfiles.h: Replace all uses of SYMBOL_NAME by
11427 DEPRECATED_SYMBOL_NAME.
11428 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11429 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11430 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11431 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11432 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11433 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11434 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11435 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11436 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11437 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11438 * ada-exp.y: Ditto.
11439 * ada-exp.y: Update copyright.
11440 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11441 * cp-valprint.c: Ditto.
11442
11443 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11444
11445 * infptrace.c (detach): Do not flag error if ptrace detach fails
11446 and errno is set to ESRCH.
11447
11448 2003-02-24 Andrew Cagney <cagney@redhat.com>
11449
11450 * infptrace.c (udot_info): Change type of udot_off to long. Use
11451 paddr when printing udot_off's value.
11452
11453 2003-02-24 David Carlton <carlton@math.stanford.edu>
11454
11455 * symtab.c (make_symbol_overload_list): Only read in partial
11456 symtabs containing a matching partial symbol.
11457
11458 2003-02-24 David Carlton <carlton@math.stanford.edu>
11459
11460 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11461 do the comparison, not strcmp.
11462 * symfile.c (compare_psymbols): Ditto.
11463 * defs.h: Declare strcmp_iw_ordered.
11464 * utils.c (strcmp_iw_ordered): New function.
11465
11466 2003-02-24 Jim Blandy <jimb@redhat.com>
11467
11468 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11469 support, shared libs): Remove my name from here, to better reflect
11470 reality.
11471
11472 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11473
11474 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11475 (target_ops): Add to_have_continuable_watchpoint.
11476 * target.c (update_current_target): Add INHERIT line for
11477 to_have_continuable_watchpoint.
11478 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11479 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11480 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11481 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11482
11483 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
11484
11485 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11486 maintainership.
11487
11488 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11489
11490 * solib.c (solib_open): Call target defined search function after
11491 failing with solib-search-path.
11492 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11493 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
11494
11495 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11496
11497 * MAINTAINERS: Add myself to Write After section.
11498
11499 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11500
11501 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11502
11503 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11504
11505 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11506 (m68hc11_add_reggroups): New function.
11507 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11508 (m68hc11_gdbarch_init): Install the reggroups.
11509 (_initialize_m68hc11_tdep): Initialize them.
11510
11511 2003-02-21 James E Wilson <wilson@tuliptree.org>
11512
11513 * MAINTAINERS: Update my email address.
11514
11515 2003-02-21 David Carlton <carlton@math.stanford.edu>
11516
11517 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11518
11519 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
11520
11521 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11522 * symtab.h: Add opaque declarations of struct axs_value and
11523 struct agent_expr.
11524 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11525 (struct location_funcs): New type.
11526 (struct symbol): Add "loc" to aux_value.
11527 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11528 * dwarf2read.c: Include "dwarf2expr.h".
11529 (dwarf2_symbol_mark_computed): New function.
11530 (read_func_scope): Use it.
11531 (var_decode_location): New function.
11532 (new_symbol): Use it.
11533 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11534
11535 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11536 (dwarf2expr_h, dwarf2loc_h): New variables.
11537 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11538 (dwarf2expr.o, dwarf2loc.o): New rules.
11539 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11540 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11541 LOC_COMPUTED_ARG.
11542 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11543 * m2-exp.y (yylex): Likewise.
11544 * printcmd.c (address_info, print_frame_args): Likewise.
11545 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11546 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11547 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11548 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11549 * symtab.c (lookup_block_symbol): Likewise.
11550
11551 2003-02-20 Adam Fedor <fedor@gnu.org>
11552
11553 * symtab.h: Remove objc_specific struct
11554 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11555 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11556 Have language_objc use cplus_specific struct.
11557
11558 2003-02-20 Tom Tromey <tromey@redhat.com>
11559
11560 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11561 TYPE_NAME, when printing a String value. PR java/1075.
11562
11563 2003-02-20 Adam Fedor <fedor@gnu.org>
11564
11565 * objc-lang.h (find_methods): Remove declaration.
11566 * objc-lang.c (find_methods): Make static.
11567
11568 2003-02-20 Christopher Faylor <cgf@redhat.com>
11569
11570 * win32-nat.c (get_image_name): Check return value from
11571 ReadProcessMemory.
11572 (child_xfer_memory): Ditto.
11573
11574 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
11575
11576 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11577 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11578 '${exec_prefix}' (in addition to the expansion thereof) as
11579 relocatable.
11580 * configure: Rebuilt.
11581
11582 2003-02-20 David Carlton <carlton@math.stanford.edu>
11583
11584 * symtab.c (search_symbols): Revert the search_symbols part of my
11585 2002-12-23 patch. Add comment.
11586
11587 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11588
11589 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11590 * dbxread.c (elfstab_build_psymtabs): Don't call
11591 install_minimal_symbols.
11592 (stabsect_build_psymtabs): Likewise.
11593 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11594 earlier.
11595 * somread.c (som_symfile_read): Call install_minimal_symbols
11596 and do_cleanups earlier.
11597 * nlmread.c (nlm_symfile_read): Likewise.
11598 * mdebugread.c (elfmdebug_build_psymtabs): Call
11599 install_minimal_symbols and make appropriate cleanups.
11600
11601 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11602
11603 * solib.c (reload_shared_libraries): New function.
11604 (_initialize_solib): Add callbacks for ``set solib-search-path''
11605 and ``set solib-absolute-prefix''.
11606
11607 2003-02-20 David Carlton <carlton@math.stanford.edu>
11608
11609 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11610 expand comment.
11611 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11612 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11613 * ada-typeprint.c (ada_typedef_print): Ditto.
11614 * ax-gdb.c (gen_var_ref): Ditto.
11615 * breakpoint.c (print_one_breakpoint): Ditto.
11616 * buildsym.c (finish_block): Ditto.
11617 * c-valprint.c (c_val_print): Ditto.
11618 * expprint.c (print_subexp): Ditto.
11619 * findvar.c (locate_var_value): Ditto.
11620 * infcmd.c (jump_command): Ditto.
11621 * linespec.c (decode_line_2, decode_compound): Ditto.
11622 * maint.c (maintenance_translate_address): Ditto.
11623 * objc-lang.c (compare_selectors, compare_classes): Ditto.
11624 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11625 Ditto.
11626 * p-valprint.c (pascal_val_print): Ditto.
11627 * stabsread.c (define_symbol): Ditto.
11628 * stack.c (print_frame, frame_info, print_block_frame_locals)
11629 (print_frame_arg_vars, return_command): Ditto.
11630 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11631 * symmisc.c (print_symbol): Ditto.
11632 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11633 (compare_search_syms, print_symbol_info, print_msymbol_info)
11634 (rbreak_command): Ditto.
11635 * tracepoint.c (tracepoints_info): Ditto.
11636 * typeprint.c (typedef_print): Ditto.
11637 * valops.c (value_of_variable, hand_function_call): Ditto.
11638 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11639 * ada-typeprint.c: Update Copyright.
11640 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11641 * tracepoint.c, cli/cli-cmds.c: Ditto.
11642
11643 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11644
11645 * frame.c (generic_unwind_get_saved_register): Make non-static.
11646 * frame.h (generic_unwind_get_saved_register): Declare.
11647 * mips-tdep.c (read_next_frame_reg): Fetch register from
11648 current regcache when frame is NULL.
11649 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11650 that must be NULL.
11651 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11652 instead of frame_register_unwind().
11653
11654 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11655
11656 * remote-sim.c (gdbsim_insert_breakpoint)
11657 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11658 code.
11659
11660 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11661
11662 * remote.c (_initialize_remote): Add commands "set/show remote
11663 hardware-watchpoint-limit" and "set/show remote
11664 hardware-breakpoint-limit".
11665 (remote_hw_watchpoint_limit): Initialize to -1.
11666 (remote_hw_breakpoint_limit): Ditto.
11667 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11668
11669 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11670
11671 * coff-pe-read.c: New file - support reading of minimal symbols from a
11672 portable executable using the export table.
11673 * coff-pe-read.h: New file.
11674 * coffread.c: Include coff-pe-read.h.
11675 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11676 debugging symbols found.
11677 * Makefile.in (SFILES): Add coff-pe-read.o.
11678 (coff_pe_read_h): Define.
11679 (COMMON_OBS): Add coff-pe-read.o.
11680 (coffread.o): Add coff_pe_read_h dependency.
11681 (coff-pe-read.o): New target.
11682
11683 2003-02-19 David Carlton <carlton@math.stanford.edu>
11684
11685 * Makefile.in (SFILES): Add block.c.
11686 (block_h): New.
11687 (COMMON_OBS): Add block.o.
11688 (block.o): New.
11689 (x86-64-tdep.o): Add $(block_h).
11690 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11691 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11692 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11693 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11694 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11695 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11696 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11697 * value.h: Add opaque declaration for struct block.
11698 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11699 * ada-lang.h: Ditto.
11700 * x86-64-tdep.c: #include "block.h"
11701 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11702 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11703 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11704 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11705 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11706 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11707 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11708 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11709 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11710 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11711 * symtab.c (block_function): Ditto.
11712 (contained_in): Ditto.
11713 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11714 block.h. Add opaque declaration for struct block.
11715 * symtab.h: Move block_function and contained_in declarations to
11716 block.h. Add opaque declarations for struct block, struct
11717 blockvector.
11718 (struct block): Move to block.h.
11719 (struct blockvector): Ditto.
11720 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11721 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11722 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11723 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11724 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11725 Ditto.
11726 * block.c: New file.
11727 * block.h: New file.
11728
11729 2003-02-19 Theodore A. Roth <troth@openavr.org>
11730
11731 * avr-tdep.c (avr_extract_return_value): Remove function.
11732 (avr_store_return_value): Remove function.
11733 (avr_extract_struct_value_address): Remove function.
11734 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11735
11736 2003-02-19 Andrew Cagney <ac131313@redhat.com>
11737
11738 * rs6000-tdep.c: Include "gdb_assert.h".
11739 (registers_e500): Add "acc" and "spefscr".
11740 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11741 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11742 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11743 really is "r0".
11744 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11745
11746 2003-02-18 Keith Seitz <keiths@redhat.com>
11747
11748 * Makefile.in: Add gdbtk-interps.c.
11749
11750 2003-02-18 Kevin Buettner <kevinb@redhat.com>
11751
11752 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11753 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11754
11755 2003-02-18 Andrew Cagney <cagney@redhat.com>
11756
11757 * symtab.h (struct objfile): Add opaque declaration.
11758
11759 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
11760
11761 From Jim Ingham <jingham@apple.com>:
11762 * dbxread.c (process_one_symbol): Use last_function_start rather
11763 than function_start_offset to find the real beginning of the
11764 current function. The latter is just the text section offset on
11765 some systems, the former is always the real function start.
11766
11767 2003-02-17 Andrew Cagney <cagney@redhat.com>
11768
11769 * configure.in: Revert ${target} != ${host}.
11770
11771 2003-02-17 Andrew Cagney <ac131313@redhat.com>
11772
11773 * configure.in (Makefile): Use the test ${target} != ${host},
11774 instead of the absence of the "nm.h" file, to determine of the
11775 configuration non-native.
11776 * configure: Regenerate.
11777
11778 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
11779
11780 From Brian Ford <ford@vss.fsi.com>
11781
11782 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11783 conditionalize tui_active test.
11784 (lookup_cmd_1): Ditto.
11785
11786 2003-02-14 Mark Kettenis <kettenis@gnu.org>
11787
11788 * configure.in: Add check for _etext.
11789 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11790 available.
11791 * config.in, configure: regenerated.
11792
11793 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
11794
11795 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11796
11797 2003-02-14 Andrew Cagney <ac131313@redhat.com>
11798
11799 * main.c (tui_version): Delete variable.
11800 (captured_main): When --tui, set interpreter_p to "tui" instead of
11801 enabling tui_version.
11802 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11803 tui_version.
11804 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11805 * cli/cli-cmds.c (disassemble_command): Ditto.
11806 * defs.h (tui_version): Delete declaration.
11807 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11808 (tui-interp.o): Add rules.
11809 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11810
11811 2003-02-14 Christopher Faylor <cgf@redhat.com>
11812
11813 * win32-nat.c (register_loaded_dll): Correctly set address range for
11814 just-loaded dll.
11815
11816 2003-02-12 Jason Molenda (jmolenda@apple.com)
11817
11818 * symmisc.c (print_objfile_statistics): Include information about
11819 the number of psymtabs and symtabs in each object file.
11820
11821 2003-02-13 Keith R Seitz <keiths@redhat.com>
11822
11823 * main.h (struct captured_main_args): Add interpreter_p.
11824 * main.c (captured_main): Initialize interpreter_p from context.
11825 * gdb.c (main): Set interpreter_p argument.
11826 * Makefile.in (gdb.o): Add dependency for interps.h.
11827
11828 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11829
11830 * event-top.c (cli_command_loop): Delete declaration.
11831 (_initialize_event_loop): Delete function setting event_loop_hook.
11832 * event-top.h (cli_command_loop): Declare. Update copyright.
11833 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11834 * interps.c (current_interp_command_loop): When event_loop_p, call
11835 cli_command_loop.
11836
11837 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11838
11839 * interps.h (interp_command_loop_ftype): Change return type to
11840 void.
11841
11842 2003-02-12 Michal Ludvig <mludvig@suse.cz>
11843
11844 * x86-64-tdep.c (x86_64_extract_return_value)
11845 (x86_64_store_return_value): Use regcache instead of regbuf.
11846 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11847 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11848
11849 2003-02-11 Andrew Cagney <ac131313@redhat.com>
11850
11851 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11852 * aclocal.m4: Regenerate.
11853 * configure: Regenerate.
11854
11855 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11856 TCL_LD_SEARCH_FLAGS.
11857
11858 2003-02-10 Michal Ludvig <mludvig@suse.cz>
11859
11860 * dwarf2cfi.c: Reindented.
11861
11862 2003-02-09 Andrew Cagney <ac131313@redhat.com>
11863
11864 * interps.c (clear_interpreter_hooks): Convert function definition
11865 to ISO C.
11866
11867 2003-02-07 David Carlton <carlton@math.stanford.edu>
11868
11869 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11870
11871 2003-02-07 Kevin Buettner <kevinb@redhat.com>
11872
11873 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11874 (struct type): ...to here.
11875 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11876 field.
11877 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11878 (replace_type): Set length on all type variants for a given type.
11879
11880 2003-02-07 Andrew Cagney <ac131313@redhat.com>
11881
11882 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11883 <sys/stat.h>.
11884 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11885
11886 2003-02-06 Andrew Cagney <ac131313@redhat.com>
11887
11888 * Makefile.in (symm-nat.o): Update dependencies.
11889 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11890 (lynx-nat.o, ia64-linux-nat.): Ditto.
11891 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11892 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11893 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11894
11895 * Makefile.in (inflow_h): Define.
11896 (procfs.o, inflow.o, procfs.o): Update dependencies.
11897 * inftarg.c (child_stop): Delete extern declaration of
11898 inferior_process_group. Include "inflow.h".
11899 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11900 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11901 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11902 (our_process_group, inferior_process_group): Extern declarations.
11903
11904 * procfs.c: Include "gdb_assert.h".
11905
11906 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11907 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11908 * jv-typeprint.c (java_type_print_base): Ditto.
11909 * typeprint.c (typedef_print): Eliminate STREQ.
11910 * cli/cli-script.c (define_command, define_command): Ditto.
11911 * main.c (captured_main): Ditto.
11912 * values.c (lookup_internalvar): Ditto.
11913 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11914 within `if' conditional.
11915 * linespec.c (decode_line_2): Ditto.
11916 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11917 (bfd_openw_with_cleanup): Ditto.
11918
11919 2003-02-07 Mark Kettenis <kettenis@gnu.org>
11920
11921 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11922 legacy_extract_return_value and store_return_value to
11923 legacy_return_value.
11924
11925 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11926
11927 * win32-nat.c (get_relocated_section_addrs): New function. Find
11928 section load addresses for symbol handling in relocated DLLs.
11929 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11930
11931 2003-02-05 Fred Fish <fnf@intrinsity.com>
11932
11933 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11934 '=' and '!='.
11935 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11936 with '&' and '=='.
11937 (angel_RDI_info): Ditto.
11938 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11939 with '&' and '!='.
11940 (threads_continue_all_with_signals): Ditto.
11941
11942 2003-02-05 Jim Ingham <jingham@apple.com>
11943 Keith Seitz <keiths@redhat.com>
11944 Elena Zannoni <ezannoni@redhat.com>
11945 Andrew Cagney <ac131313@redhat.com>
11946
11947 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11948 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11949 (SUBDIR_MI_OBS): Add "mi-interp.o".
11950 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11951 (SFILES): Add "interps.c".
11952 (COMMON_OBS): Add "interps.o".
11953 (interps_h, mi_main_h): Define.
11954 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11955 (mi-main.o, main.o, event-top.o): Update dependencies.
11956 * cli/cli-interp.c: New file.
11957 * interps.h, interps.c: New files.
11958 * top.c: (gdb_init): Don't install the default interpreter, handed
11959 by captured_main.
11960 * main.c: Include "interps.h".
11961 (interpreter_p): Note that it should malloc'ed.
11962 (captured_command_loop): Call current_interp_command_loop.
11963 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11964 xfree and xstrdup when updating interpreter_p. Install the
11965 default interpreter. Add hack to stop mi1's copyright notice
11966 being encoded.
11967 * event-top.h (gdb_setup_readline): Declare.
11968 (gdb_disable_readline): Declare.
11969 * event-top.c: Include "interps.h".
11970 (display_gdb_prompt): Call current_interp_display_prompt_p.
11971 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11972 gdb_stdlog, and gdb_stdtarg.
11973 (_initialize_event_loop): Don't call gdb_setup_readline.
11974 * cli-out.c (cli_out_set_stream): New function.
11975 * cli-out.h (cli_out_set_stream): Declare.
11976
11977 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11978
11979 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11980 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11981 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11982 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11983 config/i386/i386v42mp.mt: Removed.
11984
11985 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11986
11987 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11988 GDB_OSABI_SOLARIS.
11989
11990 2003-02-05 Michael Chastain <mec@shout.net>
11991
11992 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11993 2.12.1 and earlier versions.
11994
11995 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11996
11997 Remove orphaned hosts, targets and files.
11998 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11999 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12000 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12001 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12002 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12003 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12004 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12005 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12006 * config/sparc/tm-sp64sim.h: Delete.
12007 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12008 hosts.
12009 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12010 mips*-dec-mach3* targets.
12011
12012 2003-02-04 Michael Chastain <mec@shout.net>
12013
12014 * NEWS: Fix typo: sepcifying -> specifying.
12015
12016 2003-02-04 Michael Chastain <mec@shout.net>
12017
12018 * dwarfread.c: Add documentation on the state of dwarf-1,
12019 looking towards obsoletion.
12020
12021 2003-02-03 Michael Chastain <mec@shout.net>
12022
12023 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12024 gdb/testsuite/gdb.c++/pr-1023.exp.
12025
12026 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12027
12028 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12029 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12030
12031 * utils.c (init_page_info): Delete reference to MPW in comments.
12032 * main.c (captured_main): Delete #ifdef MPW.
12033
12034 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12035
12036 * NEWS: Note that the m32r-*-elf* is obsolete.
12037 * monitor.c (monitor_expect): Obsolete reference to m32r.
12038 * configure.tgt: Mark m32r-*-elf* as obsolete.
12039 * MAINTAINERS: Mark m32k as obsolete.
12040 * m32r-rom.c: Obsolete file.
12041 * config/m32r/m32r.mt: Obsolete file.
12042 * config/m32r/tm-m32r.h: Obsolete file.
12043 * m32r-stub.c: Obsolete file.
12044 * m32r-tdep.c: Obsolete file.
12045
12046 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12047
12048 * NEWS: Mention that the z8k-zilog-none is obsolete.
12049 * MAINTAINERS: Mark z8k as obsolete.
12050 * configure.tgt: Obsolete the z8k-*-coff* target.
12051 * config/z8k/z8k.mt: Obsolete file.
12052 * config/z8k/tm-z8k.h: Obsolete file.
12053 * z8k-tdep.c: Obsolete file.
12054
12055 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12056
12057 * NEWS: Mention that the mn10200-elf is obsolete.
12058 * configure.tgt: Obsolete mn10200-*-* target.
12059 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12060 mention that the mn10200 is obsolete.
12061 * breakpoint.h: Ditto.
12062 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12063 * config/mn10200/mn10200.mt: Obsolete file.
12064 * config/mn10200/tm-mn10200.h: Obsolete file.
12065 * mn10200-tdep.c: Obsolete file.
12066
12067 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12068
12069 * MAINTAINERS: Mark h8500 as obsolete.
12070 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12071 * findvar.c (value_from_register): Ditto.
12072 * h8500-tdep.c: Mark file as obsolete.
12073 * config/h8500/h8500.mt: Ditto.
12074 * config/h8500/tm-h8500.h: Ditto.
12075 * NEWS: Mention that h8500 is obsolete.
12076
12077 2003-02-04 David Carlton <carlton@math.stanford.edu>
12078
12079 * objfiles.c (allocate_objfile): Always set name. Add comment at
12080 start of function.
12081 * jv-lang.c (get_dynamics_objfile): Add comment.
12082
12083 2003-02-04 David Carlton <carlton@math.stanford.edu>
12084
12085 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12086 * printcmd.c (build_address_symbolic): Replace uses of
12087 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12088 SYMBOL_NAME, and asm_demangle.
12089 Update copyright.
12090
12091 2003-02-04 David Carlton <carlton@math.stanford.edu>
12092
12093 * linespec.c (decode_compound): Extract code into
12094 lookup_prefix_sym.
12095 (lookup_prefix_sym): New function.
12096
12097 2003-02-04 David Carlton <carlton@math.stanford.edu>
12098
12099 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12100 FLOAT_COERCION_BADNESS.
12101 * gdbtypes.c (rank_one_type): Replace all uses of
12102 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12103
12104 2003-02-04 Jim Blandy <jimb@redhat.com>
12105
12106 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12107 section, let dwarf_macinfo_section point to it, not
12108 dwarf_loc_section.
12109
12110 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12111
12112 Pointed out by Anton Blanchard <anton@samba.org>.
12113 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12114 (ppc_linux_at_sigtramp_return_path): Use it.
12115
12116 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12117
12118 * defs.h (streq): Add prototype.
12119 * utils.c (streq): New function.
12120
12121 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12122 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12123 * mdebugread.c (new_symbol): Likewise.
12124 * stabsread.c (define_symbol): Likewise.
12125 * coffread.c (process_coff_symbol): Likewise.
12126 * dwarfread.c (new_symbol): Likewise.
12127
12128 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12129 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12130 here.
12131 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12132 SYMBOL_INIT_DEMANGLED_NAME.
12133 * objfiles.c: Include "hashtab.h".
12134 (allocate_objfile): Call htab_set_functions_ex for the
12135 demangled_names_hash.
12136 (free_objfile): Call htab_delete for the demangled_names_hash.
12137 * objfiles.h (struct htab): Add declaration.
12138 (struct objfile): Add demangled_names_hash.
12139 * symfile.c: Include "hashtab.h".
12140 (reread_symbols): Call htab_delete for the demangled_names_hash.
12141 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12142 SYMBOL_NAME in the bcache.
12143 * symtab.c: Include "hashtab.h". Update comments.
12144 (create_demangled_names_hash, symbol_set_names): New functions.
12145 (symbol_find_demangled_name): New function, broken out from
12146 symbol_init_demangled_names.
12147 (symbol_init_demangled_names): Use it.
12148 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12149 (SYMBOL_SET_NAMES): New macro.
12150 (symbol_set_names): Add prototype.
12151
12152 2003-02-03 Jim Blandy <jimb@redhat.com>
12153
12154 Use a single, consistent representation for an empty minimal
12155 symbol table in an objfile.
12156 * objfiles.c (terminate_minimal_symbol_table): New function.
12157 (allocate_objfile): Call it.
12158 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12159 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
12160 non-NULL.
12161 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12162 objfile has minimal symbols, compare minimal_symbol_count to zero,
12163 instead of comparing msymbols with NULL.
12164 * objfiles.c (have_minimal_symbols): Same.
12165 * solib-sunos.c (solib_add_common_symbols): Call
12166 terminate_minimal_symbol_table.
12167 * symfile.c (reread_symbols): Same.
12168
12169 2003-02-03 Kevin Buettner <kevinb@redhat.com>
12170
12171 * s390-tdep.c (s390_address_class_type_flags)
12172 (s390_address_class_type_flags_to_name)
12173 (s390_address_class_name_to_type_flags): New functions.
12174 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12175 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12176
12177 2003-02-03 Michael Snyder <msnyder@redhat.com>
12178
12179 * arm-tdep.c: Fix spell-o in comment.
12180
12181 2003-02-03 Michal Ludvig <mludvig@suse.cz>
12182
12183 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12184 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
12185 error messages to contain BFD filename.
12186
12187 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
12188
12189 Fix PR gdb/742 gdb/743 gdb/877
12190 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12191 (do_mixed_source_and_assembly): Use
12192 make_cleanup_ui_out_tuple_begin_end and
12193 make_cleanup_ui_out_tuple_begin_end.
12194 (do_mixed_source_and_assembly): Ditto.
12195 * thread.c (do_captured_list_thread_ids): Ditto.
12196 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12197 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12198 ui_out_tuple_end): Delete prototypes.
12199 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12200 ui_out_list_end, ui_out_tuple_end): Delete.
12201
12202 From Kevin Buettner <kevinb@redhat.com>:
12203 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
12204 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12205 (do_cleanup_table_end): New functions.
12206 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12207 Use cleanups to invoke_ui_out_tuple_end().
12208 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
12209 * cli/cli-setshow.c (cmd_show_list): Use
12210 make_cleanup_ui_out_tuple_begin_end.
12211
12212 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12213
12214 * frame.c (frame_unwind_register): New function.
12215 (frame_unwind_unsigned_register): Use.
12216 (frame_unwind_signed_register): Use.
12217 (frame_read_register): New function.
12218 * frame.h (frame_unwind_register): Declare.
12219 (frame_read_register): Declare.
12220
12221 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12222 and frame_unwind_register instead of read_memory, write_register
12223 and deprecated_write_register_bytes.
12224
12225 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12226
12227 * frame.h: Note that namelen can be negative.
12228 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12229 NAME's length.
12230
12231 * NEWS: Mention that the d10v's `regs' command is deprecated.
12232 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12233 (d10v_print_registers_info): New function.
12234 (show_regs): Call d10v_print_registers_info.
12235 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12236
12237 2003-02-02 Mark Kettenis <kettenis@gnu.org>
12238
12239 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12240 lost in the previous patch.
12241
12242 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12243
12244 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
12245 * stack.c (print_frame_info_base): Output complete FRAME tuple
12246 for synthesized frames.
12247
12248 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12249
12250 * mips-nat.c (zerobuf): Delete.
12251 (fetch_inferior_registers): Alloc local zerobuf.
12252 (fetch_core_registers): Alloc local zerobuf.
12253 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12254 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12255 * thread-db.c (thread_db_store_registers): Ditto.
12256 * sh-tdep.c (sh_do_register): Ditto.
12257 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12258 * remote-sim.c (gdbsim_store_register): Ditto.
12259 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12260 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12261 * monitor.c (monitor_supply_register): Ditto.
12262 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12263 * mips-nat.c (fetch_inferior_registers): Ditto.
12264 * m68klinux-nat.c (fetch_register): Ditto.
12265 * lynx-nat.c (fetch_inferior_registers): Ditto.
12266 (fetch_inferior_registers): Ditto.
12267 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12268 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12269 (hpux_thread_store_registers): Ditto.
12270 * hppah-nat.c (fetch_register): Ditto.
12271 * hppab-nat.c (fetch_register): Ditto.
12272 * hppa-tdep.c (pa_register_look_aside): Ditto.
12273 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12274 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12275
12276 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12277
12278 * gdbarch.sh: Explictly specify all method levels. When a
12279 variable with an empty level, provide a non-multi-arch default.
12280 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12281 * gdbarch.h: Re-generate.
12282 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12283 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12284
12285 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12286
12287 * defs.h (host_pointer_to_address): Delete declaration.
12288 (address_to_host_pointer): Delete declaration.
12289 * utils.c (host_pointer_to_address): Delete function.
12290 (address_to_host_pointer): Delete function.
12291 * procfs.c (procfs_address_to_host_pointer): New function.
12292 * procfs.c (proc_set_watchpoint): Use.
12293 (procfs_can_use_hw_breakpoint): Update comments.
12294 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12295 (som_solib_add): Use.
12296 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12297 * hppa-tdep.c (unwind_command): Use.
12298
12299 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12300
12301 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12302 strlen d_name.
12303
12304 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12305 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12306 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12307 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12308 (define_symbol): Update.
12309 * symfile.c (generic_load): Remove references to nindy.
12310 * symtab.c: Remove references to nindy.
12311
12312 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12313
12314 * infcmd.c (print_float_info): Delete code conditional on
12315 FLOAT_INFO.
12316 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12317 * config/m68k/nm-apollo68b.h: Ditto.
12318 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12319 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12320 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12321
12322 2003-02-01 Mark Kettenis <kettenis@gnu.org>
12323
12324 * config/i386/tm-i386os9k.h: Removed.
12325
12326 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12327 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12328 they're identical to i[3456]86-*-sysv* now.
12329 * config/i386/i386v32.mh: Removed.
12330 * config/i386/xm-i386v32.h: Removed.
12331 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12332
12333 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12334
12335 * config/i386/i386dgux.mh: Removed.
12336 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12337
12338 * configure.in: Fix typo.
12339 * configure: Regenerated.
12340
12341 2003-01-31 David Carlton <carlton@math.stanford.edu>
12342
12343 * dwarf2read.c (dwarf2_locate_sections): Set
12344 dwarf_ranges_section.
12345
12346 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12347
12348 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12349 * utils.c: Update comments documenting legitimate uses of PTR.
12350
12351 * utils.c: Re-indent.
12352
12353 * config/djgpp/fnchange.lst: Delete nindy files.
12354 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12355 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12356 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12357 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12358 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12359 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12360 * Makefile.in (init.c): Remove nindy references.
12361 (saber_gdb): Delete rule.
12362 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12363 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12364 and a68v-nat.c.
12365 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12366 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12367 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12368 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12369 nindy-share/stop.h.
12370 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12371 * saber.suppress: Delete file.
12372
12373 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
12374
12375 * dbxread.c (stabs_data): New static variable.
12376 (fill_symbuf): Support an in-memory buffer for stabs data.
12377 (stabs_seek): New function.
12378 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12379 (read_ofile_symtab): Use stabs_seek.
12380 (elfstab_build_psymtabs): Take an asection* instead of
12381 an offset and size. Relocate the stabs data if necessary.
12382 Save the section* for dbx_psymtab_to_symtab.
12383 * dwarf2read.c: Add section variables for each debug section.
12384 (dwarf2_locate_sections): Fill them in.
12385 (dwarf2_read_section): Take an asection* argument.
12386 Relocate the section contents if necessary.
12387 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12388 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12389 it to dwarf2_read_section.
12390 (dwarf2_build_frame_info): Update callers.
12391 * elfread.c (elf_symfile_read): Update call to
12392 elfstab_build_psymtabs.
12393 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12394 (DBX_STAB_SECTION): New macro.
12395 * stabsread.h (elfstab_build_psymtabs): Update prototype.
12396 * symfile.c (symfile_dummy_outputs): New function.
12397 (symfile_relocate_debug_section): New function.
12398 * symfile.h (symfile_relocate_debug_section): Add prototype.
12399
12400 2003-01-31 Richard Henderson <rth@redhat.com>
12401
12402 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12403 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12404 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12405 * alpha-tdep.c (alpha_register_name): Add "unique".
12406 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12407 (ALPHA_UNIQUE_REGNUM): New.
12408 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12409
12410 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12411
12412 * README: Remove reference to Ericsson 1800 monitor.
12413 * Makefile.in (remote-es.o): Delete rule.
12414 (ALLDEPFILES): Delete remote-es.c.
12415 * remote-es.c: Delete file.
12416 * config/m68k/es1800.mt: Delete file.
12417 * config/djgpp/fnchange.lst: Update.
12418 * configure.tgt: Delete m68*-ericsson-* target.
12419
12420 2003-01-31 Adam Fedor <fedor@gnu.org>
12421
12422 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12423 Remove duplicate/shadowing variable of same name.
12424
12425 2003-01-30 Jim Blandy <jimb@redhat.com>
12426
12427 * symfile.c (find_separate_debug_file): Assert that the objfile's
12428 directory name we compute ends with a slash, and then assume that
12429 that's so everywhere we use it.
12430
12431 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
12432
12433 * valops.c (value_assign): Flush frame cache after stores to memory
12434 also.
12435
12436 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12437
12438 * Makefile.in (mon960-rom.o): Delete rule.
12439 * mon960-rom.c: Delete file.
12440
12441 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12442
12443 * d10v-tdep.c: Include "frame-unwind.h".
12444 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12445 list.
12446 (next_addr, uses_frame): Delete.
12447 (struct d10v_unwind_cache): Define.
12448 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12449 Use info instead of next_addr and uses_frame globals.
12450 (d10v_frame_init_saved_regs): Delete function.
12451 (d10v_init_extra_frame_info): Delete function.
12452 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12453 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12454 init_frame_pc or frame_saved_pc.
12455 (d10v_pop_frame): Delete function.
12456 (do_d10v_pop_frame): Delete function.
12457 (d10v_frame_chain): Delete function.
12458 (d10v_frame_chain_valid): Delete function.
12459 (d10v_frame_pc_unwind): New function.
12460 (d10v_frame_id_unwind): New function.
12461 (saved_regs_unwinder): New function.
12462 (d10v_frame_register_unwind): New function.
12463 (d10v_frame_pop): New function.
12464 (d10v_frame_unwind): New variable.
12465 (d10v_frame_p): New function.
12466 (d10v_frame_saved_pc): Delete function.
12467 * Makefile.in (d10v-tdep.o): Update dependencies.
12468
12469 2003-01-30 J. Brobecker <brobecker@gnat.com>
12470
12471 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12472 causing some regressions due to a change in the default value
12473 for this macro.
12474
12475 2003-01-29 Richard Henderson <rth@redhat.com>
12476 Elena Zannoni <ezannoni@redhat.com>
12477 Daniel Jacobowitz <drow@mvista.com>
12478
12479 Fix PR gdb/961.
12480 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
12481 variables.
12482 (RANGES_SECTION): New.
12483 (dwarf_ranges_buffer): New variable.
12484 (struct comp_unit_head): Add member "die".
12485 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12486 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12487 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12488 (dwarf2_locate_sections): Likewise.
12489 (dwarf2_build_psymtabs): Read .debug_ranges.
12490 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12491 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12492 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12493 Look for DW_AT_ranges and return the bounding box.
12494
12495 2003-01-29 Brian Ford <ford@vss.fsi.com>
12496
12497 * win32-nat.c (cygwin_pid): Removed as unused.
12498 (child_attach): Try fall back to Cygwin pid.
12499
12500 2003-01-29 Jim Blandy <jimb@redhat.com>
12501
12502 * objfiles.h (struct objfile): Doc fix.
12503
12504 2003-01-29 Andrew Cagney <ac131313@redhat.com>
12505
12506 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12507 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12508 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12509 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12510 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12511 (FRAME_SAVED_PC): Change to a function with predicate.
12512 * gdbarch.h, gdbarch.c: Re-generate.
12513
12514 2003-01-28 Andrew Cagney <ac131313@redhat.com>
12515
12516 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12517
12518 * complaints.c (complain): Delete function.
12519 * complaints.h (struct deprecated_complaint): Delete definition.
12520 (complain): Delete declaration.
12521
12522 2003-01-28 Kevin Buettner <kevinb@redhat.com>
12523
12524 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12525 dummy frames.
12526
12527 2003-01-27 Andrew Cagney <ac131313@redhat.com>
12528
12529 * sentinel-frame.h, sentinel-frame.c: New files.
12530 * Makefile.in (frame.o): Update dependencies.
12531 (SFILES): Add sentinel-frame.c.
12532 (sentinel_frame_h): Define.
12533 (COMMON_OBS): Add sentinel-frame.o.
12534 (sentinel-frame.o): Specify dependencies.
12535 * frame.c: Include "sentinel-frame.h".
12536 (frame_register_unwind): Rewrite assuming that there is always a a
12537 ->next frame.
12538 (frame_register, generic_unwind_get_saved_register): Ditto.
12539 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12540 (create_sentinel_frame, unwind_to_current_frame): New functions.
12541 (get_current_frame): Rewrite using create_sentinel_frame and
12542 unwind_to_current_frame. When possible, always create a frame.
12543 (create_new_frame): Set next to the sentinel frame.
12544 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12545 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12546 ID cache when necessary.
12547 (frame_saved_regs_id_unwind): Use frame_relative_level.
12548 (deprecated_generic_get_saved_register): Use frame_relative_level,
12549 get_frame_saved_regs, get_frame_pc, get_frame_base and
12550 get_next_frame.
12551 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12552 frame_register.
12553
12554 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12555
12556 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12557
12558 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12559
12560 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12561 (maintenance_set_profile_cmd): Use error () instead of warning ().
12562
12563 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12564
12565 * configure.in: Check that -pg works if using --enable-profiling.
12566 Check for monstartup and _mcleanup regardless of --enable-profiling.
12567 * maint.c: Check for monstartup and _mcleanup before using them.
12568 * config.in: Regenerated.
12569 * configure: Regenerated.
12570
12571 2003-01-24 Nick Clifton <nickc@redhat.com>
12572
12573 * Add sh2e support:
12574
12575 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12576
12577 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12578 (sh2e_show_regs): New.
12579 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12580 * config/sh/tm-sh.h: Added sh2e to comments.
12581
12582 2003-01-23 Jim Blandy <jimb@redhat.com>
12583
12584 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12585 symbols found)" message here; we haven't checked for a separate
12586 debug info file yet, so we don't know yet.
12587 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12588 we've looked everywhere. Also, there's no need to print a special
12589 message when we're loading the separate debug info file: the one
12590 symbol_file_add prints is fine.
12591
12592 2003-01-23 Alexander Larsson <alexl@redhat.com>
12593 Jim Blandy <jimb@redhat.com>
12594
12595 Add support for executables whose debug info has been separated
12596 out into a separate file, leaving only a link behind.
12597 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12598 and separate_debug_objfile_backlink.
12599 (put_objfile_before): New declaration.
12600 * symfile.c: #include "filenames.h".
12601 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12602 debug info in a separate file, read that, too. Save the addrs
12603 argument, so we can use it again to read the separated debug info;
12604 syms_from_objfile modifies the table we pass it.
12605 (reread_symbols): After re-reading an objfile, call
12606 reread_separate_symbols to refresh its separate debug info
12607 objfile, if it has one.
12608 (reread_separate_symbols, find_separate_debug_file,
12609 get_debug_link_info, separate_debug_file_exists): New functions.
12610 (debug_file_directory): New global var.
12611 (_initialize_symfile): Initialize debug_file_directory, and
12612 provide the new `set debug-file-directory' command to let the user
12613 change it.
12614 * objfiles.c (free_objfile): If this objfile has its debug info in
12615 a separate objfile, free that one too. If this is itself a
12616 separate debug info objfile, clear our parent's backlink.
12617 (put_objfile_before): New function.
12618 * utils.c (gnu_debuglink_crc32): New function.
12619 * defs.h (gnu_debuglink_crc32): New declaration.
12620 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12621 * configure.in: Handle --with-separate-debug-dir config option.
12622 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12623 * acconfig.h (DEBUGDIR): New macro.
12624 * configure, aclocal.m4, config.in: Regenerated.
12625
12626 2003-01-22 Jim Blandy <jimb@redhat.com>
12627
12628 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12629 like the old symbol_file_add, but taking new arguments: you can
12630 now pass in either a `struct section_addr_info' list to say where
12631 each section is loaded, or a `struct section_offsets' table. Pass
12632 these new arguments through to syms_from_objfile as appropriate.
12633 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
12634 with the appropriate quiescent values for the new arguments.
12635
12636 * symfile.c: #include "gdb_assert.h".
12637 (syms_from_objfile): Add the ability to pass in a section offset
12638 table directly, as an alternative to the section_addr_info table.
12639 Document arguments better.
12640 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12641 * symfile.h (syms_from_objfile): Update declaration.
12642 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12643 syms_from_objfile.
12644 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12645
12646 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
12647
12648 Original patch by Tom Tromey <tromey@cygnus.com> and
12649 Jason Molenda <jmolenda@apple.com>.
12650 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12651 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12652 * NEWS: Mention profiling.
12653 * configure.in (--enable-gdbtk): Fix typo.
12654 (--enable-profiling): New. Set PROFILE_CFLAGS.
12655 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12656 Fill in function.
12657 (profiling_state): New variable.
12658 (mcleanup_wrapper): New function.
12659 (_initialize_maint): Remove NOTYET, fix call to
12660 add_setshow_boolean_cmd for "maint set profile".
12661 * configure: Regenerated.
12662
12663 2003-01-21 Martin M. Hunt <hunt@redhat.com>
12664
12665 * Makefile.in (install-gdbtk): Install PNG images too.
12666
12667 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12668
12669 * exec.c (text_start): Delete global variable.
12670 (exec_file_attach): Make text_start local to the function.
12671 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12672 * valops.c (hand_function_call): Delete code that handles
12673 BEFORE_TEXT_END and AFTER_TEXT_END.
12674 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12675 of CALL_DUMMY_LOCATION.
12676 * gdbarch.c: Regenerate.
12677 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12678 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12679 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12680 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12681 (text_end): Delete extern declaration.
12682
12683 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12684
12685 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12686 * blockframe.c (backtrace_below_main): Move to "frame.c".
12687 (frame_chain_valid): Delete check for backtrace_below_main.
12688 (_initialize_blockframe): Delete initialization, move ``set
12689 backtrace-below-main'' command to "frame.c".
12690 (do_flush_frames_sfunc): Delete function.
12691 * frame.c: Include "command.h" and "gdbcmd.h".
12692 (frame_type_from_pc): New function.
12693 (create_new_frame): Use frame_type_from_pc.
12694 (legacy_get_prev_frame): New function.
12695 (get_prev_frame): Rewrite. When an old style frame, call
12696 legacy_get_prev_frame. Otherwize, unwind the PC first.
12697 (_initialize_frame): Add ``set backtrace-below-main'' command.
12698 * Makefile.in (frame.o): Update dependencies.
12699
12700 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12701
12702 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12703 DEPRECATED_REGISTERS_INFO.
12704
12705 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12706
12707 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12708 Maintainers'. Update `Various Maintainers'.
12709
12710 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12711
12712 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12713 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12714 Suppress actual parameters when `-'.
12715 * gdbarch.h, gdbarch.c: Regenerate.
12716
12717 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12718
12719 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12720 code handling dummy frames.
12721
12722 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12723
12724 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12725 (struct frame_unwind): Add field pop.
12726 * frame.h (frame_pop): Declare.
12727 * frame.c (frame_saved_regs_pop): New function.
12728 (trad_frame_unwinder): Add frame_saved_regs_pop.
12729 (frame_pop): New function.
12730 * dummy-frame.c (dummy_frame_pop): New function.
12731 (discard_innermost_dummy): New function.
12732 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12733 (dummy_frame_unwind): Add dummy_frame_pop.
12734 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12735 * valops.c (hand_function_call): Ditto.
12736 * stack.c (return_command): Ditto.
12737
12738 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12739
12740 * cris-tdep.c: Fix function declaration indentation.
12741 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12742 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12743 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12744 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12745 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12746 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12747
12748 2003-01-18 Michael Chastain <mec@shout.net>
12749
12750 * README (Unpacking and Installation -- quick overview):
12751 Warn against ".../gdb-5.3/gdb/configure".
12752
12753 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12754
12755 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12756 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12757 (struct frame_unwind): Declare opaque.
12758 (dummy_frame_p): Declare function.
12759 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12760 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12761 * dummy-frame.c: Include "frame-unwind.h".
12762 (dummy_frame_p): New function.
12763 (dummy_frame_unwind): New variable.
12764 * frame.c: Include "frame-unwind.h".
12765 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12766 to use the new unwind field.
12767 (set_unwind_by_pc): Delete function.
12768 (create_new_frame, get_prev_frame): Set unwind field using
12769 frame_unwind_find_by_pc.
12770 (trad_frame_unwind, trad_frame_unwinder): New variables.
12771 * frame.h (trad_frame_unwind): Declare variable.
12772 (frame_id_unwind_ftype): Delete declaration.
12773 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12774 (struct frame_unwind): Declare opaque.
12775 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12776 register_unwind with a single unwind pointer.
12777 * frame-unwind.h, frame-unwind.c: New files.
12778 * Makefile.in (SFILES): Add frame-unwind.c.
12779 (frame_unwind_h): Define.
12780 (COMMON_OBS): Add frame-unwind.o.
12781 (frame-unwind.o): Specify dependencies.
12782 (frame.o, dummy-frame.o): Update dependencies.
12783
12784 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12785
12786 * ada-valprint.c: Eliminate PTR.
12787 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12788 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12789 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12790 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12791 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12792 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12793 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
12794
12795 2003-01-17 Andrew Cagney <ac131313@redhat.com>
12796
12797 * main.c (captured_main): Don't use PTR.
12798 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12799 * gdbtypes.c (lookup_primitive_typename): Ditto.
12800 (lookup_struct_elt_type): Ditto.
12801 * f-valprint.c (info_common_command): Ditto.
12802 (list_all_visible_commons): Ditto.
12803 * jv-typeprint.c (java_type_print_base): Ditto.
12804
12805 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12806 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12807 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12808 i386-interix-nat.c and i386-interix-tdep.c. Rename
12809 m68klinux-nat.c and m68klinux-tdep.c. Rename
12810 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12811 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12812 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12813 * main.c (captured_main): Use xfree, not free.
12814
12815 2003-01-16 Andrew Cagney <ac131313@redhat.com>
12816
12817 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12818 ID back using a parameter.
12819 * frame.c (frame_id_unwind): Update call.
12820 (frame_saved_regs_id_unwind): Update.
12821 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12822 * dummy-frame.h (struct frame_id): Add opaque declaration.
12823 (dummy_frame_id_unwind): Update declaration.
12824
12825 2003-01-15 Andrew Cagney <ac131313@redhat.com>
12826
12827 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12828
12829 2003-01-15 Stephen P. Smith <ischis2@cox.net>
12830
12831 * MAINTAINERS (Stephen P. Smith): Updated email address.
12832
12833 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
12834
12835 Fix PR gdb/898
12836 * breakpoint.c (until_break_command): Add new argument. Use it to
12837 decide whether to stop only at the current frame or not.
12838 * breakpoint.h (until_break_command): Update prototype.
12839 * infcmd.c (until_command): Add new argument to until_break_command
12840 call.
12841 (advance_command): New function.
12842 (_initialize_infcmd): Update help string for 'until' command.
12843 Add new 'advance' command.
12844
12845 2003-01-14 David Carlton <carlton@math.stanford.edu>
12846
12847 * linespec.c (decode_line_1): Normalize comments.
12848 (set_flags): Ditto.
12849 (locate_first_half): Ditto.
12850 (decode_compound): Ditto.
12851 (symtab_from_filename): Ditto.
12852 (decode_all_digits): Ditto.
12853 (decode_dollar): Ditto.
12854 (find_methods): Ditto.
12855 (find_toplevel_char): Ditto.
12856
12857 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12858
12859 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12860 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12861 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12862 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12863 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12864 * language.c, language.h, m32r-tdep.c: Update copyright.
12865 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12866 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12867 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12868 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12869 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12870 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12871
12872 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12873
12874 * stabsread.h (process_later, resolve_cfront_continuation):
12875 Obsolete.
12876 Update copyright years.
12877 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12878 Update copyright year.
12879 * dbxread.c(struct cont_elem): Obsolete.
12880 (process_later, process_now): Obsolete functions.
12881 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12882 Update copyright year.
12883 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12884 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12885 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12886 (parse_partial_symbols): Obsolete cfront support.
12887 * stabsread.c
12888 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12889 macros.
12890 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12891 read_cfront_baseclasses, read_cfront_member_functions,
12892 resolve_cfront_continuation,read_cfront_static_fields,
12893 copy_cfront_struct_fields): Obsolete functions.
12894 (define_symbol, read_one_struct_field): Obsolete cfront support.
12895 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12896 Update Copyright year.
12897
12898 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12899
12900 * stack.c (print_frame_info, print_stack_frame_base_stub,
12901 print_stack_frame_base, show_and_print_stack_frame_stub,
12902 show_and_print_stack_frame, print_only_stack_frame_stub,
12903 print_only_stack_frame): Delete functions.
12904 (print_stack_frame_stub): Call print_frame_info instead of
12905 print_frame_info_base.
12906 (print_frame_info_base): Rename to print_frame_info.
12907 (backtrace_command_1): Call print_frame_info, instead of
12908 print_frame_info_base.
12909 (current_frame_command): Call print_stack_frame, instead of
12910 print_only_stack_frame.
12911 (frame_command): Call print_stack_frame, instead of
12912 show_and_print_stack_frame.
12913 (up_command): Ditto.
12914 (down_command): Ditto.
12915 * frame.h (print_only_stack_frame): Delete prototype.
12916 * infrun.c (normal_stop): Call print_stack_frame, instead of
12917 show_and_print_stack_frame.
12918 * thread.c (info_threads_command): Call print_stack_frame, instead
12919 of print_only_stack_frame.
12920
12921 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12922
12923 * README (Graphical interface to GDB): Update URL. Point at
12924 gdb/links/.
12925
12926 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12927 version match.
12928
12929 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12930
12931 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12932 lines.
12933
12934 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12935
12936 * thread-db.c (attach_thread): Prototype.
12937 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12938 thread information (ti), and valid flags (th_valid, ti_valid).
12939 (attach_thread): Move target_pid_to_str call to after the thread
12940 is added to GDB's list. Initialize the cache.
12941 (thread_get_info_callback, thread_db_map_id2thr)
12942 (thread_db_get_info): New functions.
12943 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12944 (thread_db_store_registers, thread_db_thread_alive)
12945 (thread_db_get_thread_local_address): Use them.
12946 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12947 of calling error() for threads in unknown state.
12948
12949 (clear_lwpid_callback): New function.
12950 (thread_db_resume): Use it to clear the cache.
12951
12952 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12953
12954 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12955 (resume_callback): Remove dead code.
12956
12957 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12958
12959 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12960 predicate.
12961 * gdbarch.h, gdbarch.c: Regenerate.
12962 * stack.c (frame_info): Only initialize the saved registers when
12963 FRAME_INIT_SAVED_REGS_P.
12964 * frame.c (frame_saved_regs_register_unwind): Assert
12965 FRAME_INIT_SAVED_REGS_P.
12966 (deprecated_generic_get_saved_register): Ditto.
12967
12968 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12969
12970 * source.c (openp): Squelch warning about "filename".
12971
12972 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12973
12974 * source.c (openp): If the file does not exist don't necessarily
12975 search the path.
12976
12977 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12978
12979 Fix PR gdb/872.
12980 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12981 (integer_types_same_name_p): New function.
12982 (rank_one_type): Use it.
12983 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12984
12985 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12986
12987 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12988 variables.
12989 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12990 * configure.in: Add --with-sysroot.
12991 * configure: Regenerated.
12992 * main.c (gdb_sysroot): New variable.
12993 (captured_main): Initialize gdb_sysroot.
12994 * defs.h (gdb_sysroot): New extern declaration.
12995 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12996
12997 2003-01-12 Michael Chastain <mec@shout.net>
12998
12999 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13000
13001 2003-01-12 Michael Chastain <mec@shout.net>
13002
13003 * top.c (print_gdb_version): Bump copyright year to 2003.
13004
13005 2003-01-12 David Carlton <carlton@bactrian.org>
13006
13007 * linespec.c (symtab_from_filename): Rename variable 's' to
13008 'file_symtab'.
13009
13010 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13011
13012 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13013 dummy frame.
13014 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13015
13016 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13017
13018 * d10v-tdep.c: Include "gdb_assert.h".
13019 (d10v_store_return_value): Rewrite to match current interface.
13020 (d10v_extract_struct_value_address): Ditto.
13021 (d10v_extract_return_value): Ditto.
13022 (d10v_gdbarch_init): Set store_restore_value,
13023 extract_struct_value_address and extract_return_value.
13024
13025 2003-01-12 J. Brobecker <brobecker@gnat.com>
13026
13027 * hpread.c (set_namestring): New procedure replacing the
13028 SET_NAMESTRING macro.
13029 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13030 by calls to set_namestring.
13031
13032 2003-01-11 J. Brobecker <brobecker@gnat.com>
13033
13034 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13035 a compilation warning.
13036 (hpread_process_one_debug_symbol): Likewise.
13037
13038 2003-01-10 David Carlton <carlton@math.stanford.edu>
13039
13040 * linespec.c (decode_line_1): Rename variable 's' to
13041 'file_symtab'.
13042 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13043 (decode_dollar): Ditto.
13044 (decode_variable): Ditto.
13045 (symbol_found): Ditto.
13046
13047 2003-01-09 Michael Chastain <mec@shout.net>
13048
13049 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13050
13051 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
13052
13053 * win32-nat.c (set_process_privilege): New function.
13054 (child_attach): Call set_process_privilege() to enable the
13055 SE_DEBUG_NAME user privilege if available in process token.
13056
13057 2003-01-10 J. Brobecker <brobecker@gnat.com>
13058
13059 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13060 compilation error in the previous revision.
13061
13062 2003-01-09 David Carlton <carlton@math.stanford.edu>
13063
13064 * linespec.c: Update copyright.
13065
13066 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
13067
13068 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13069 than inferior_ptid.
13070 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13071
13072 2003-01-09 Andrew Cagney <ac131313@redhat.com>
13073
13074 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13075 Update comments.
13076 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13077 (frame_saved_regs_zalloc): Update.
13078 (frame_saved_regs_register_unwind): Update.
13079 (create_new_frame): Update.
13080 (get_prev_frame): Update.
13081 (frame_extra_info_zalloc): Update.
13082 (deprecated_get_frame_saved_regs): Update.
13083 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13084 * cris-tdep.c: Update comment.
13085
13086 * somsolib.h: Fix function indentation.
13087 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13088 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13089 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13090 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13091 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13092
13093 * infrun.c (follow_fork): Use ISO C definition.
13094 * expprint.c (print_subexp): Use xfree instead of free.
13095 * charset.c: Include "gdb_string.h" instead of <string.h>.
13096 (register_iconv_charsets): Use ISO C definition.
13097 (host_charset, target_charset): Ditto.
13098 * Makefile.in (charset.o): Update dependencies.
13099 (mi-cmd-env.o): Update dependencies.
13100
13101 2003-01-08 Andrew Cagney <cagney@redhat.com>
13102
13103 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13104 get_frame_base.
13105
13106 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13107
13108 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13109 build directories. Save edited gdb output in Mbuild.log. If a
13110 build fails, remove any final GDB executable.
13111
13112 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13113
13114 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13115 replacing hex constants with function names and stripping leading
13116 file name directory prefixes.
13117
13118 2003-01-08 Andrew Cagney <cagney@redhat.com>
13119
13120 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13121 get_frame_base.
13122
13123 2003-01-08 David Carlton <carlton@math.stanford.edu>
13124
13125 * linespec.c (decode_line_1): Move code into decode_variable.
13126 (decode_variable): New function.
13127
13128 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13129
13130 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13131
13132 2003-01-08 Andrew Cagney <cagney@redhat.com>
13133
13134 * cris-tdep.c (cris_frame_init_saved_regs): Use
13135 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13136 saved_regs buffer.
13137 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13138 (sh64_nofp_frame_init_saved_regs): Ditto.
13139 (sh_fp_frame_init_saved_regs): Ditto.
13140 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13141 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13142 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13143 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13144
13145 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
13146
13147 * minsyms.c (lookup_minimal_symbol): Update comment.
13148 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13149 (lookup_minimal_symbol_solib_trampoline): Likewise.
13150
13151 2003-01-08 Andrew Cagney <cagney@redhat.com>
13152
13153 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13154 frame_relative_level.
13155
13156 * alpha-tdep.c: Use get_frame_extra_info.
13157 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13158 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13159 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13160 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13161
13162 * alpha-tdep.c: Use get_next_frame.
13163 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13164 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13165 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13166 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13167 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13168 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13169 * xstormy16-tdep.c: Ditto.
13170
13171 2003-01-07 Andrew Cagney <cagney@redhat.com>
13172
13173 * alpha-tdep.c: Use get_frame_base.
13174 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13175 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13176 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13177 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13178 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13179 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13180 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13181 * config/sparc/tm-sparc.h: Ditto.
13182
13183 2003-01-07 Andrew Cagney <cagney@redhat.com>
13184
13185 * frame.c (deprecated_get_frame_context): New function.
13186 (deprecated_set_frame_context): New function.
13187 * frame.h (deprecated_get_frame_context): Declare.
13188 (deprecated_set_frame_context): Declare.
13189 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13190 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
13191
13192 2003-01-07 Andrew Cagney <cagney@redhat.com>
13193
13194 * frame.c (deprecated_set_frame_next_hack): New function.
13195 (deprecated_set_frame_prev_hack): New function.
13196 * frame.h (deprecated_set_frame_next_hack): Declare.
13197 (deprecated_set_frame_prev_hack): Declare.
13198 * mcore-tdep.c (analyze_dummy_frame): Use
13199 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13200 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13201
13202 2003-01-07 David Carlton <carlton@math.stanford.edu>
13203
13204 * linespec.c (decode_line_1): Move code into decode_dollar.
13205 (decode_dollar): New function.
13206
13207 2003-01-07 Andrew Cagney <cagney@redhat.com>
13208
13209 * arm-tdep.c (arm_init_extra_frame_info): Use
13210 deprecated_update_frame_base_hack.
13211 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13212 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13213 (fix_frame_pointer): Ditto.
13214 (mn10300_analyze_prologue): Ditto.
13215
13216 2003-01-07 Andrew Cagney <cagney@redhat.com>
13217
13218 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13219 extra_info using frame_extra_info_zalloc.
13220 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13221 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13222 (sh64_init_extra_frame_info): Ditto.
13223 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13224 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13225 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13226 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13227 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13228 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13229 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13230 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13231 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13232 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13233 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13234 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13235
13236 * mn10300-tdep.c (analyze_dummy_frame): Use
13237 deprecated_set_frame_extra_info_hack.
13238 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13239
13240 2003-01-07 J. Brobecker <brobecker@gnat.com>
13241
13242 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13243 class is not scText. These do not define "real" procedures.
13244 (parse_partial_symbols): Likewise.
13245
13246 2003-01-06 Michael Snyder <msnyder@redhat.com>
13247
13248 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13249
13250 2003-01-06 Andrew Cagney <ac131313@redhat.com>
13251
13252 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13253 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13254 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13255 deprecated_frame_xmalloc_with_cleanup.
13256 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13257 deprecated_frame_xmalloc.
13258 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13259 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13260
13261 2003-01-06 Andrew Cagney <cagney@redhat.com>
13262
13263 * x86-64-linux-tdep.c: Include "osabi.h".
13264 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13265
13266 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13267
13268 2003-01-06 Andrew Cagney <cagney@redhat.com>
13269
13270 * MAINTAINERS (Target Instruction Set Architectures): Update
13271 arm-elf. Can be built with -Werror, has been multiarched.
13272
13273 * value.h (unpack_long): Make buffer parameter constant.
13274 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13275 * scm-lang.h (scm_parse): Ditto.
13276 * defs.h (extract_typed_address, extract_address): Ditto.
13277 (extract_long_unsigned_integer): Ditto.
13278 * inferior.h (unsigned_pointer_to_address): Ditto.
13279 (signed_pointer_to_address): Ditto.
13280 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13281 * gdbarch.h, gdbarch.c: Regenerate.
13282 * findvar.c (extract_long_unsigned_integer): Update.
13283 (extract_address): Update.
13284 (extract_typed_address): Update.
13285 (unsigned_pointer_to_address): Update.
13286 * values.c (unpack_long): Update.
13287 (unpack_double): Update.
13288 (unpack_pointer): Update.
13289 (unpack_field_as_long): Update.
13290 * d10v-tdep.c (d10v_pointer_to_address): Update.
13291 * avr-tdep.c (avr_pointer_to_address): Update.
13292 * scm-lang.c (scm_unpack): Update.
13293 * findvar.c (signed_pointer_to_address): Update.
13294
13295 2003-01-06 Michal Ludvig <mludvig@suse.cz>
13296
13297 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
13298 since it is in i386-tdep.c.
13299
13300 2003-01-06 J. Brobecker <brobecker@gnat.com>
13301
13302 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13303 failure introduced in the previous change.
13304
13305 2003-01-05 Michael Chastain <mec@shout.net>
13306
13307 * README: Remove references to deleted remote-*.c files:
13308 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13309 remote-nrom.c, remote-os9k.c, remote-udi.c.
13310
13311 2003-01-05 Mark Kettenis <kettenis@gnu.org>
13312
13313 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13314 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13315 i386_get_longjmp_target.
13316
13317 2003-01-05 Andrew Cagney <ac131313@redhat.com>
13318
13319 * arm-tdep.c (prologue_cache): Change to a pointer.
13320 (_initialize_arm_tdep): Allocate prologue_cache.
13321 (check_prologue_cache): Update.
13322 (save_prologue_cache): Update.
13323 (arm_gdbarch_init): Update.
13324
13325 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13326
13327 * stabsread.c (update_method_name_from_physname): Call complaint()
13328 instead of error.
13329
13330 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13331
13332 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13333 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13334 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13335
13336 * blockframe.c: Include "gdbcmd.h" and "command.h".
13337 (backtrace_below_main): New variable.
13338 (file_frame_chain_valid, func_frame_chain_valid)
13339 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13340 (generic_func_frame_chain_valid): Remove functions.
13341 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13342 (_initialize_blockframe): New function.
13343 * Makefile.in (blockframe.o): Update dependencies.
13344 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13345 comment. Call frame_chain_valid ().
13346 * frame.h: Remove old prototypes. Add prototype for
13347 frame_chain_valid and update comments to match.
13348 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13349 Remove old comment.
13350 * gdbarch.h: Regenerated.
13351 * gdbarch.c: Regenerated.
13352
13353 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13354 set_gdbarch_frame_chain_valid.
13355 * avr-tdep.c (avr_gdbarch_init): Likewise.
13356 * cris-tdep.c (cris_gdbarch_init): Likewise.
13357 * frv-tdep.c (frv_gdbarch_init): Likewise.
13358 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13359 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13360 (i386_nw_init_abi): Likewise.
13361 (i386_gdbarch_init): Likewise.
13362 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13363 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13364 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13365 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13366 * mips-tdep.c (mips_gdbarch_init): Likewise.
13367 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13368 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13369 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13370 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13371 * s390-tdep.c (s390_gdbarch_init): Likewise.
13372 * sh-tdep.c (sh_gdbarch_init): Likewise.
13373 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13374 * v850-tdep.c (v850_gdbarch_init): Likewise.
13375 * vax-tdep.c (vax_gdbarch_init): Likewise.
13376 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13377
13378 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13379 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13380 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13381 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13382 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13383 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13384 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13385 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13386
13387 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13388
13389 * Makefile.in (acconfig_h): Remove incorrect macro.
13390 (config_h): Define.
13391 (osabi.o): Update dependencies.
13392 * configure.tgt: Set gdb_osabi based on target triplet.
13393 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13394 * configure: Regenerated.
13395 * config.in: Regenerated.
13396 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13397 (GDB_OSABI_DEFAULT): Define if not already defined.
13398 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13399 (set_osabi_string): New variables.
13400 (gdbarch_register_osabi): Add new OS ABI to
13401 gdb_osabi_available_names.
13402 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13403 (set_osabi, show_osabi): New functions.
13404 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13405
13406 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13407
13408 * arch-utils.c (gdbarch_info_init): Set osabi to
13409 GDB_OSABI_UNINITIALIZED.
13410 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13411 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13412 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13413 * gdbarch.c: Regenerated.
13414 * gdbarch.h: Regenerated.
13415 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13416 there's no BFD.
13417 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13418 * osabi.h (enum gdb_osabi): Move to defs.h.
13419 (gdbarch_init_osabi): Update prototype.
13420 * defs.h (enum gdb_osabi): Moved here.
13421 * Makefile.in: Update dependencies.
13422
13423 * alpha-tdep.h: Don't include "osabi.h".
13424 (struct gdbarch_tdep): Remove osabi member.
13425 * alpha-tdep.c: Include "osabi.h".
13426 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13427 iterate over arches. Update call to gdbarch_init_osabi.
13428 (alpha_dump_tdep): Don't dump osabi.
13429 * alpha-linux-tdep.c: Include "osabi.h".
13430 * alpha-osf1-tdep.c: Include "osabi.h".
13431 * alphafbsd-tdep.c: Include "osabi.h".
13432 * alphanbsd-tdep.c: Include "osabi.h".
13433
13434 * arm-tdep.h: Don't include "osabi.h".
13435 (struct gdbarch_tdep): Remove osabi member.
13436 * arm-tdep.c: Include "osabi.h".
13437 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13438 iterate over arches. Update call to gdbarch_init_osabi.
13439 (arm_dump_tdep): Don't dump osabi.
13440 * arm-linux-tdep.c: Include "osabi.h".
13441 * armnbsd-tdep.c: Include "osabi.h".
13442
13443 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13444 Update call to gdbarch_init_osabi.
13445
13446 * i386-tdep.h: Don't include "osabi.h".
13447 (struct gdbarch_tdep): Remove osabi member.
13448 * i386-tdep.c: Include "osabi.h".
13449 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13450 iterate over arches. Update call to gdbarch_init_osabi.
13451 (i386_dump_tdep): Don't dump osabi.
13452 * i386-linux-tdep.c: Include "osabi.h".
13453 * i386-sol2-tdep.c: Include "osabi.h".
13454 * i386bsd-tdep.c: Include "osabi.h".
13455 * i386gnu-tdep.c: Include "osabi.h".
13456 * i386ly-tdep.c: Include "osabi.h".
13457 * i386nbsd-tdep.c: Include "osabi.h".
13458 * i386obsd-tdep.c: Include "osabi.h".
13459
13460 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13461 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13462 check osabi when iterating over arches. Update call to
13463 gdbarch_init_osabi.
13464 (mips_dump_tdep): Don't dump osabi.
13465
13466 * ns32k-tdep.h: Don't include "osabi.h".
13467 (struct gdbarch_tdep): Remove.
13468 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13469 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13470 allocate tdep. Update call to gdbarch_init_osabi.
13471 (ns32k_dump_tdep): Remove.
13472 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13473 * ns32knbsd-tdep.c: Include "osabi.h".
13474
13475 * ppc-tdep.h: Don't include "osabi.h".
13476 (struct gdbarch_tdep): Remove osabi member.
13477 * rs6000-tdep.c: Include "osabi.h".
13478 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13479 osabi when iterating over arches. Update call to
13480 gdbarch_init_osabi.
13481 (rs6000_dump_tdep): Don't dump osabi.
13482 * ppc-linux-tdep.c: Include "osabi.h".
13483 * ppcnbsd-tdep.c: Include "osabi.h".
13484
13485 * sh-tdep.h: Don't include "osabi.h".
13486 (struct gdbarch_tdep): Remove osabi member.
13487 * sh-tdep.c: Include "osabi.h".
13488 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13489 iterate over arches. Update call to gdbarch_init_osabi.
13490 (sh_dump_tdep): Don't dump osabi.
13491 * shnbsd-tdep.c: Include "osabi.h".
13492
13493 * sparc-tdep.c: Include "osabi.h".
13494 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13495 iterate over arches. Update call to gdbarch_init_osabi.
13496 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13497 tdep structure.
13498
13499 * vax-tdep.h: Don't include "osabi.h".
13500 (struct gdbarch_tdep): Remove.
13501 * vax-tdep.c: Include "osabi.h".
13502 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13503 iterate over arches. Don't allocate tdep. Update call
13504 to gdbarch_init_osabi.
13505 (vax_dump_tdep): Remove.
13506 (_initialize_vax_tdep): Update call to gdbarch_register.
13507
13508 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13509
13510 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13511 entirely.
13512 (breakpoint_re_set_one): Don't fetch the value for a disabled
13513 watchpoint.
13514
13515 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13516
13517 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13518 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13519 (COERCE_FLOAT_TO_DOUBLE): Remove.
13520 * gdbarch.c: Regenerate.
13521 * gdbarch.h: Regenerate.
13522 * Makefile.in: Remove value_h from gdbarch_h.
13523 * valops.c (coerce_float_to_double): New variable.
13524 (default_coerce_float_to_double): Remove.
13525 (standard_coerce_float_to_double): Remove.
13526 (value_arg_coerce): Use coerce_float_to_double.
13527 (_initialize_valops): Add "set coerce-float-to-double".
13528 * value.h (default_coerce_float_to_double): Remove prototype.
13529 (standard_coerce_float_to_double): Remove prototype.
13530
13531 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13532 prototyped.
13533 * mdebugread.c (parse_symbol): Likewise.
13534 * stabsread.c (define_symbol): Mark all functions as prototyped.
13535
13536 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13537 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13538 set_gdbarch_coerce_float_to_double.
13539 * arm-tdep.c (arm_gdbarch_init): Likewise.
13540 * frv-tdep.c (frv_gdbarch_init): Likewise.
13541 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13542 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13543 * mips-tdep.c (mips_gdbarch_init): Likewise.
13544 (mips_coerce_float_to_double): Remove.
13545 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13546 (rs6000_coerce_float_to_double): Remove.
13547 * s390-tdep.c (s390_gdbarch_init): Likewise.
13548 * sh-tdep.c (sh_gdbarch_init): Likewise.
13549 (sh_coerce_float_to_double): Remove.
13550 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13551 (sparc_coerce_float_to_double): Remove.
13552 * v850-tdep.c (v850_gdbarch_init): Likewise.
13553 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13554 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13555 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13556 (hppa_coerce_float_to_double): Remove prototype.
13557 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13558
13559 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13560
13561 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13562
13563 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13564
13565 Suggested by Stewart Brown <sb24@avaya.com>:
13566 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13567 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13568 (c_type_print_varspec_suffix): Likewise.
13569
13570 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13571
13572 * configure.in: Don't set and AC_SUBST SUBDIRS.
13573 * configure: Regenerated.
13574
13575 * configure.in: Remove code dealing with shared libraries.
13576 * Makefile.in: Remove HLDFLAGS and HLDENV.
13577 * configure: Regenerated.
13578
13579 2003-01-04 Andrew Cagney <ac131313@redhat.com>
13580
13581 * frame.c (deprecated_frame_xmalloc): New function.
13582 (deprecated_set_frame_saved_regs_hack): New function.
13583 (deprecated_set_frame_extra_info_hack): New function.
13584 * frame.h (deprecated_frame_xmalloc): Declare.
13585 (deprecated_set_frame_saved_regs_hack): Declare.
13586 (deprecated_set_frame_extra_info_hack): Declare.
13587
13588 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13589
13590 * configure.in: Move code that provides the --enable-gdbtk option
13591 right after the code that handles the --enable-tui option, and
13592 polish it somewhat.
13593 * configure: Regenerated.
13594
13595 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13596 AC_CHECK_FUNCS and remove the old check for pread64.
13597 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13598 * acconfig.h (_GNU_SOURCE): Add.
13599 (HAVE_PREAD64): Remove.
13600 * configure, aclocal.m4, config.in: Regenerated.
13601
13602 2003-01-03 Andrew Cagney <ac131313@redhat.com>
13603
13604 * alpha-tdep.c: Use get_frame_saved_regs.
13605 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13606 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13607 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13608 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13609 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13610
13611 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13612
13613 * configure.in: Remove all use of the SUBDIRS variable; add
13614 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13615 code providing the --enable-multi-ice option, and move it right in
13616 front of the code that checks whether gdbserver is supported.
13617 Polish that too.
13618 * configure: Regenerated.
13619 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13620 @SUBDIRS@.
13621
13622 2003-01-03 Andrew Cagney <cagney@redhat.com>
13623
13624 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13625 * avr-tdep.c, cris-tdep.c: Ditto.
13626 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13627 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13628
13629 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13630
13631 * configure.in: Remove --enable-netrom option.
13632 * configure: Regenerated.
13633
13634 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13635
13636 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13637 declaration for `struct re_pattern_buffer' instead.
13638 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13639
13640 2003-01-03 J. Brobecker <brobecker@gnat.com>
13641
13642 * mdebugread.c (parse_symbol): Count until the stEnd matching
13643 the structure name.
13644
13645 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13646
13647 * configure.in: Remove --with-cpu option.
13648 subscripts. Remove evil changequotes here.
13649 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13650 * config.in, configure: Regenerated.
13651
13652 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13653 * configure.in: Cleanup section that sources GDB and BFD configure
13654 subscripts. Remove evil changequotes here.
13655 * config.in, configure: Regenerated.
13656
13657 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13658
13659 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13660 frame accessor methods.
13661 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13662 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13663 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13664 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13665 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13666 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13667 * z8k-tdep.c: Ditto.
13668
13669 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13670
13671 * configure.in: Remove UI_OUT configuration code.
13672 * ada-lang.c: Update assuming UI_OUT is always true.
13673 * Makefile.in (UIOUT_CFLAGS): Remove.
13674 * configure: Regenerated.
13675 * TODO: Remove blurb about elimination of -DUI_OUT.
13676
13677 * configure.in: Move code that provides the --enable-gdbcli,
13678 --enable-gdbmi options right before the code that handles the
13679 --enable-tui option. Polish a bit.
13680 * configure: Regenerated.
13681
13682 * configure.in: Rewrite check for GNU regex and the
13683 --without-included regex option, and move it into the "Checks for
13684 library functions" section. This makes us use the system regex
13685 again by default on systems with version 2 of the GNU C library.
13686 This was apparently broken.
13687 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13688 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13689 * config.in, configure: Regenerated.
13690
13691 * configure.in: Move code that provides the --enable-tui option
13692 before the "Checks for libraries" section. Polish the code
13693 somewhat and set need_curses to yes if we build the TUI. Rewrite
13694 code that looks for a library providing termcap functionality to
13695 match more closely what's done in the Readline library, and move
13696 it into to the "Checks for libraries" section.
13697 * configure: Regenerated.
13698 * Makefile.in (TERMCAP): Remove variable.
13699 * config/i386/go32.mh (TERMCAP): Remove variable.
13700
13701 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13702
13703 * MAINTAINERS: Mention gdb_mbuild.sh.
13704 * gdb_mbuild.sh: Rewrite.
13705
13706 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13707
13708 * configure.in: Fix typo in last change.
13709 * config.in, configure: Regenerated.
13710
13711 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13712
13713 * valarith.c (value_binop): Delete obsolete code and comments.
13714 * configure.host: Ditto.
13715 * buildsym.h (make_blockvector): Ditto.
13716 * buildsym.c (make_blockvector): Ditto.
13717 * defs.h (enum language): Ditto.
13718 (chill_demangle): Ditto.
13719 * elfread.c (elf_symtab_read): Ditto.
13720 * dwarfread.c (CHILL_PRODUCER): Ditto.
13721 (set_cu_language): Ditto.
13722 (handle_producer): Ditto.
13723 * expprint.c (print_subexp): Ditto.
13724 * gdbtypes.c (chill_varying_type): Ditto.
13725 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13726 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13727 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13728 (chill_varying_type): Ditto.
13729 * language.h (_LANG_chill): Ditto.
13730 * language.c (binop_result_type, integral_type): Ditto.
13731 (character_type, string_type, structured_type): Ditto.
13732 (lang_bool_type, binop_type_check): Ditto.
13733 * stabsread.h (os9k_stabs): Ditto.
13734 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13735 (define_symbol, read_type, read_struct_fields): Ditto.
13736 (read_array_type, read_enum_type, read_huge_number): Ditto.
13737 (read_range_type, start_stabs): Ditto.
13738 * symfile.c (init_filename_language_table): Ditto.
13739 (add_psymbol_with_dem_name_to_list): Ditto.
13740 * symtab.c (symbol_init_language_specific): Ditto.
13741 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13742 * symtab.h (struct general_symbol_info): Ditto.
13743 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13744 * typeprint.c (typedef_print): Ditto.
13745 * utils.c (fprintf_symbol_filtered): Ditto.
13746 * valops.c (value_cast, search_struct_field, value_slice): Delete
13747 obsolete code.
13748 (varying_to_slice): Delete function.
13749 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13750 (varying_to_slice): Delete declaration.
13751 * MAINTAINERS: Update.
13752
13753 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13754
13755 * configure.in: Reorganize "Checks for library functions section"
13756 a bit. Remove check for `btowc' and `isascii' functions.
13757 * configure: Regenerated.
13758
13759 * acconfig.h (_MSE_INT_H): Remove.
13760 * configure.in: Create "Checks for header files" section, and move
13761 appropriate tests there. Don't check for objlist.h, wchar.h,
13762 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13763 misdetection fix. Also add "Checks for types", "Checks for
13764 compiler characteristics" and "Checks for library functions"
13765 sections.
13766 * config.in, configure: Regenerated.
13767
13768 * configure.in: Create "Checks for programs" section, and move
13769 appropriate tests there.
13770
13771 2003-01-01 Mark Kettenis <kettenis@gnu.org>
13772
13773 * configure.in: Create "Checks for libraries" section, and move
13774 appropriate tests there. Cleanup check for wctype in libw. Use
13775 AC_SEARCH_LIBS to see whether we need libsocket.
13776 * configure: Regenerated.
13777
13778 For older changes see ChangeLog-2002
13779 \f
13780 Local Variables:
13781 mode: change-log
13782 left-margin: 8
13783 fill-column: 74
13784 version-control: never
13785 End: