7bbfd468eb1949a5da5cb3270574b1811e58fb5c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-09-03 Andrew Cagney <cagney@redhat.com>
2
3 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
4 * config/mips/wince.mt (TM_CLIBS): Ditto.
5 * config/sh/wince.mt (TM_CLIBS): Ditto.
6 * config/pa/hppa64.mt (TM_CLIBS): Delete.
7 * config/sparc/sp64.mt (CC): Delete.
8
9 2003-09-03 Andrew Cagney <cagney@redhat.com>
10
11 * defs.h: Do not include "arch-utils.h".
12 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
13 GDB_MULTI_ARCH_PURE.
14 * configure.in (GDB_MULTI_ARCH): Do not define.
15 * configure, config.in: Regenerate.
16 * configure.tgt: Do not set variable "gdb_multi_arch".
17 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
18 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
19 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
20 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
21 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
22 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
23 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
24 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
25 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
26 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
27 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
28 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
29 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
30 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
31 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
32 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
33 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
34 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
35
36 2003-08-30 Michael Chastain <mec@shout.net>
37
38 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
39 * config/m68k/nm-hp300hpux.h: Delete.
40 * config/m68k/tm-hp300hpux.h: Delete.
41 * config/m68k/xm-hp300hpux.h: Delete.
42 * config/m68k/xm-hp300bsd.h: Delete.
43 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
44 tm-hp300hpux.h, xm-hp300hpux.h.
45 * somsolib.c: Remove comment about hp300 shared libraries.
46
47 2003-08-31 Mark Kettenis <kettenis@gnu.org>
48
49 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
50 Only define PTRACE_GET_THREAD_AREA is not already defined.
51 Various style fixes in code and comments and some additional
52 spelling fixes in comments. Move after functions dealing with
53 debug registers.
54 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
55 Fix coding-style.
56
57 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
58 frame_unwind_register_unsigned instead of
59 frame_unwind_unsigned_register.
60
61 2003-08-30 Mark Kettenis <kettenis@gnu.org>
62
63 * configure.in: Search for gethostbyname in libnsl.
64 * configure: Regenerated.
65
66 2003-08-29 Mark Kettenis <kettenis@gnu.org>
67
68 * configure.in: Remove redundant AC_MSG_RESULT in check for
69 uintptr_t in stdint.h.
70 * configure: Regenerated.
71
72 * amd64-nat.h (struct regcache): Add opaque declaration.
73
74 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
75 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
76 Change "register array" to "register cache" in comments.
77 (x86_64_linux_gregset64_reg_offset): New variable.
78 (GETREGS_SUPPLIES): Remove macro.
79 (supply_gregset): Call amd64_supply_native_gregset instead of
80 x86_64_linux_supply_gregset.
81 (fill_gregset): Rename `regno' to `regnum'. Call
82 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
83 (store_regs): Rename `regno' to `regnum'.
84 (store_fpregs): Rename `regno' to `regnum'.
85 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
86 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
87 Reorganize function a bit.
88 (store_inferior_registers): Rename `regno' to `regnum'. Use
89 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
90 Reorganize function a bit.
91 (_initialize_x86_64_linux_nat): New function.
92 * config/i386/x86-64linux.mh.
93
94 2003-08-29 Andrew Cagney <cagney@redhat.com>
95
96 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
97 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
98 (target_remove_watchpoint): Delete macro.
99 (target_insert_watchpoint): Delete macro.
100 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
101 (remote_mips_stopped_by_watchpoint): Delete declaration.
102 (remote_mips_remove_watchpoint): Delete declaration.
103 (remote_mips_set_watchpoint): Delete declaration.
104 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
105 * remote-mips.c (_initialize_remote_mips): Set
106 "to_insert_watchpoint", "to_stopped_by_watchpoint",
107 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
108 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
109 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
110 (mips_stopped_by_watchpoint): Rename
111 remote_mips_stopped_by_watchpoint.
112 (mips_can_hardware_watchpoint): Rename
113 remote_mips_can_use_hardware_watchpoint, update function
114 signature.
115
116 2003-08-29 Mark Kettenis <kettenis@gnu.org>
117
118 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
119 USER_DS. We haven't given them a register number yet.
120
121 * amd64-nat.h: New file.
122 * amd64-nat.c: New file.
123 * amd64fbsd-nat.c: Include "amd64-nat.h".
124 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
125 (amd64fbsd32_r_reg_offset): New variable.
126 (supply_gregset): Simply call amd64_supply_native_gregset.
127 (fill_gregset): Rename `regno' to `regnum'. Simply call
128 amd64_collect_native_gregset.
129 (fill_fpregset): Rename `regno' to `regnum'.
130 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
131 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
132 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
133 `fpregset_t'. Call amd64_supply_native_gregset instead of
134 supply_gregset. Call x86_64_supply_fxsave instead of
135 supply_fpregset.
136 (store_inferior_registers): Rename `regno' to `regnum'. Replace
137 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
138 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
139 `fpregset_t'. Call amd64_collect_native_gregset instead of
140 fill_gregset. Call x86_64_collect_fxsave instead of
141 fill_fpregset.
142 (_initialize_am64fbsd_nat): Initialize
143 amd64_native_gregset32_reg_offset and
144 amd64_native_gregset64_reg_offset.
145 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
146
147 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
148 null pointer. Fix typo in comment.
149
150 * regcache.c (supply_register): Reimplement to call
151 regcache_raw_supply.
152 (regcache_collect): Reimplement by calling regcache_raw_collect.
153
154 2003-08-28 Mark Kettenis <kettenis@gnu.org>
155
156 * regcache.c (register_buffer): Consitify first argument.
157 (regcache_raw_supply, regcache_raw_collect): New
158 functions.
159
160 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
161
162 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
163 by Nathan J. Williams.
164
165 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
166
167 * lin-lwp.c (wait_lwp): New function, copied from
168 stop_wait_callback. Clean up.
169 (stop_wait_callback): Use wait_lwp.
170
171 2003-08-28 Andrew Cagney <cagney@redhat.com>
172
173 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
174 flavour and disassembler options.
175 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
176 (mips_gdbarch_init): Set "print_insn". Delete initialization of
177 deprecated_tm_print_insn_info.
178
179 2003-08-27 Andrew Cagney <cagney@redhat.com>
180
181 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
182 Use target_read_memory.
183 (s390_get_frame_info): Update. Do not reference
184 deprecated_tm_print_insn_info.
185 (s390_check_function_end, s390_is_sigreturn): Ditto.
186
187 2003-08-27 Andrew Cagney <cagney@redhat.com>
188
189 * Makefile.in (cris-tdep.o): Update dependencies.
190 * cris-tdep.c: Include "gdb_assert.h".
191 (cris_gdbarch_init): Set print_insn.
192 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
193 (cris_delayed_get_disassembler): Simplify, directly call the
194 disassembler returned by cris_get_disassembler.
195 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
196 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
197 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
198 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
199 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
200 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
201 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
202 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
203 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
204 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
205 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
206 (gdb_print_insn_sparc): Delete function.
207 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
208 deprecated_tm_print_insn_info.
209 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
210 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
211 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
212 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
213 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
214 * s390-tdep.c (gdb_print_insn_s390): Delete function.
215 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
216 (s390_gdbarch_init): Set print_insn.
217
218 2003-08-27 Andrew Cagney <cagney@redhat.com>
219
220 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
221 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
222 * infcall.c (call_function_by_hand): Convert the entry point
223 address into a code address.
224
225 2003-08-27 Andrew Cagney <cagney@redhat.com>
226
227 * dsrec.c: Include "gdb_string.h".
228 * Makefile.in (dsrec.o): Update dependencies.
229
230 2003-08-27 Michael Chastain <mec@shout.net>
231
232 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
233
234 2003-08-27 Andrew Cagney <cagney@redhat.com>
235
236 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
237 (alpha_osf1_init_abi): Do not set call_dummy_address.
238
239 2003-08-27 David Carlton <carlton@kealia.com>
240
241 From Randolph Chung <tausq@debian.org>:
242 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
243 compiles with -Wformat-nonliteral -Werror.
244
245 2003-08-26 Jim Blandy <jimb@redhat.com>
246
247 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
248 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
249 bfd_lookup_symbol, since we only want symbols in code sections.
250 (look_for_base): Pass zero as the SECT_FLAGS argument to
251 bfd_lookup_symbol, since we're not concerned about which section
252 the symbol is in.
253
254 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
255
256 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
257 we are frameless or the return address register is already known.
258
259 2003-08-26 Andrew Cagney <cagney@redhat.com>
260
261 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
262 in size. Add comments.
263
264 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
265
266 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
267 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
268
269 2003-08-26 Jason Merrill <jason@redhat.com>
270
271 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
272 case out of #ifdef MIPS block.
273
274 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
275
276 PR java/1322
277 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
278 available before calling SECT_OFF_TEXT.
279 * PROBLEMS: Remove description of java/1322.
280
281 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
282
283 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
284 bof, and nat0-nat127 as pseudo-registers.
285 (ia64_frame_cache): New struct used to cache frame info.
286 (ia64_register_reggroup_p): New routine used to override default
287 register grouping so registers without names are still saved and
288 restored.
289 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
290 pseudo values.
291 (ia64_pseudo_register_read): New routine to read pseudo-registers.
292 (ia64_pseudo_register_write): New routine to write pseudo-registers.
293 (ia64_alloc_frame_cache): New routine to create a new
294 ia64_frame_cache.
295 (examine_prologue): Change prototype to add next_frame pointer.
296 Assume frameless until otherwise proven. Verify that the cfm for
297 current frame matches the cfm that should occur for the prologues
298 alloc insn and if equal, mark as not frameless. At end of routine,
299 if not frameless, calculate registers for the previous frame and store
300 in the cache, if a cache is provided.
301 (ia64_skip_prologue): Use new prototype when calling examine_prologue
302 and pass 0 for next_frame.
303 (ia64_store_return_value): Change to use convert_typed_floating()
304 instead of calling ia64_convert_to_raw().
305 (ia64_extract_return_value): Change to use convert_typed_floating()
306 instead of calling ia64_convert_to_virtual().
307 (ia64_frame_cache): New routine to support new frame model.
308 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
309 (ia64_frame_sniffer): Ditto.
310 (ia64_sigtramp_frame_init_saved_regs): Ditto.
311 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
312 (ia64_sigtramp_frame_prev_register): Ditto.
313 (ia64_sigtramp_frame_sniffer): Ditto.
314 (ia64_frame_base_address): Ditto.
315 (ia64_extract_struct_value_address): Change to issue error message.
316 (ia64_frame_align): New routine to align sp.
317 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
318 (ia64_push_arguments): Removed. Logic moved to
319 ia64_push_dummy_call().
320 (ia64_push_return_address): Ditto.
321 (ia64_unwind_dummy_id): New function.
322 (ia64_unwind_pc): Ditto.
323 (ia64_convert_register_p): Ditto.
324 (ia64_register_to_value): Ditto.
325 (ia64_value_to_register): Ditto.
326 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
327 (ia64_register_byte, ia64_register_raw_size): Ditto.
328 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
329 (ia64_saved_pc_after_call): Ditto.
330 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
331 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
332 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
333 (ia64_register_convert_to_raw): Ditto.
334 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
335 (ia64_init_extra_frame_info): Ditto.
336 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
337 (ia64_gdbarch_init): Remove registering of deprecated functions that
338 are no longer used. Add registration of new gdbarch functions.
339 Remove registering deprecated_write_sp. Replace
340 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
341 Delete set_gdbarch_deprecated_register_convertible(),
342 set_gdbarch_deprecated_register_convert_to_virtual(), and
343 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
344 set_gdbarch_deprecated_register_size(),
345 set_gdbarch_deprecated_register_bytes(),
346 set_gdbarch_pcregnum(),
347 set_gdbarch_deprecated_register_byte(),
348 set_gdbarch_deprecated_register_raw_size(),
349 set_gdbarch_deprecated_max_register_raw_size(),
350 set_gdbarch_deprecated_register_virtual_size(),
351 and set_gdbarch_deprecated_max_register_virtual_size() calls.
352 Replace set_gdbarch_deprecated_extract_return_value() with
353 set_gdbarch_extract_return_value(). Remove calls to:
354 set_gdbarch_deprecated_saved_pc_after_call();
355 set_gdbarch_deprecated_frame_chain(),
356 set_gdbarch_deprecated_frame_saved_pc(),
357 set_gdbarch_deprecated_frame_init_saved_regs(),
358 set_gdbarch_deprecated_get_saved_register(),
359 set_gdbarch_deprecated_call_dummy_words(),
360 set_gdbarch_deprecated_sizeof_call_dummy_words(),
361 set_gdbarch_deprecated_init_extra_frame_info(),
362 set_gdbarch_deprecated_frame_args_address(),
363 set_gdbarch_deprecated_frame_locals_address(),
364 and set_gdbarch_deprecated_dummy_write_sp().
365 Add set_gdbarch_convert_register_p(),
366 set_gdbarch_register_to_value(),
367 set_gdbarch_value_to_register(),
368 set_gdbarch_push_dummy_call(),
369 set_gdbarch_frame_align(),
370 set_gdbarch_unwind_dummy_id(),
371 set_gdbarch_unwind_pc(),
372 frame_unwind_append_sniffer(),
373 frame_unwind_append_sniffer(),
374 and frame_base_set_default().
375
376 2003-08-25 Chris Demetriou <cgd@broadcom.com>
377
378 * configure.tgt: Document need for special "mipsisa64" handling.
379 (mipsisa64*-*-linux64): Handle as target linux64.
380 (mipsisa64*-*-*): Handle as target embed64.
381
382 2003-08-18 Michael Chastain <mec@shout.net>
383
384 * PROBLEMS: Document pr gdb/1322, the Java anonymous
385 objfile bug.
386
387 2003-08-24 Mark Kettenis <kettenis@gnu.org>
388
389 * i387-tdep.h: Update copyright date.
390 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
391
392 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
393 CFLAGS games to reflect reality.
394
395 2003-08-24 Andrew Cagney <cagney@redhat.com>
396
397 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
398 GDB_MULTI_ARCH is always non-zero.
399 * osabi.c (_initialize_gdb_osabi): Ditto.
400 (gdbarch_init_osabi): Ditto.
401 * sparc-tdep.c: Ditto for #if code.
402
403 2003-08-23 Mark Kettenis <kettenis@gnu.org>
404
405 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
406 Update comments.
407 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
408 comments.
409 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
410 x86_64_supply_fxsave.
411 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
412 x86_64_supply_fxsave.
413 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
414 x86_64_supply_fxsave.
415
416 2003-08-23 Andreas Jaeger <aj@suse.de>
417
418 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
419 i387_supply_fxsave.
420
421 2003-08-23 Mark Kettenis <kettenis@gnu.org>
422
423 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
424 i387_supply_register.
425 (go32_fetch_registers): Adjust call to i387_supply_fsave.
426 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
427 i387_supply_fsave.
428 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
429 i387_supply_fxsave.
430 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
431 i387_supply_fsave.
432 * i386bsd-nat.c (supply_fpregset): Adjust call to
433 i387_supply_fsave.
434 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
435 call to i387_supply_fxsave. Call i387_supply_fsave instead of
436 supply_fpregset.
437 (store_inferior_registers): Remove extraneous whitespace. Call
438 i387_fill_fsave instead of fill_fpregset.
439 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
440 (supply_fpregset): Likewise.
441 * i386v4-nat.c (supply_fpregset): Adjust call to
442 i387_supply_fsave.
443 * i386-interix-nat.c (supply_fpregset): Adjust call to
444 i387_supply_fsave.
445 * i386-linux-nat.c (supply_fpregset): Adjust call to
446 i387_supply_fsave.
447 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
448 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
449 i387supply_fsave and i387_supply_fxsave.
450 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
451 Incorporate code from `i387_supply_register.
452 (i387_supply_register): Remove.
453 (i387_supply_fxsave): Add `regnum' argument.
454 Update comments.
455 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
456 prototype.
457 (i387_supply_register): remove prototype.
458 Update comments.
459
460 2003-08-22 Michael Chastain <mec@shout.net>
461
462 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
463 Add lines for files in gdb/testsuite/gdb.cp/* that are
464 still not 8.3 unique.
465
466 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
467
468 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
469 TYPE_VPTR_FIELDNO is valid.
470
471 2003-08-19 Mark Kettenis <kettenis@gnu.org>
472
473 * utils.c (set_width_command): Remove prototypes.
474 (set_screen_size): New prototype.
475 (init_page_info): Simplify by fetching the screen size from
476 Readline. Call set_screen_size.
477 (set_screen_size): New function.
478 (set_width): Add missing whitespace in comment.
479 (set_width_command): Call set_screen_size.
480 (set_height_command): New function.
481 (initialize_utils): Fix formatting. Make "set height" command
482 call set_height_command. Remove redundant code that turns off
483 pagination if output isn't a terminal. Remove redundant call to
484 set_width_command.
485
486 2003-08-22 Mark Kettenis <kettenis@gnu.org>
487
488 * sparc64-tdep.h (sparc64_regnum): Fix comment.
489 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
490 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
491 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
492 `case' keyword.
493 (sparc64_register_info): Give the reister with number
494 SPARC64_STATE_REGNUM a name.
495 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
496 %asi and %ccr.
497 (sparc64_push_dummy_call): Take BIAS into account when checking
498 stcak alignment.
499 (sparc_software_single_step): Remove assertions that check whether
500 NPC and NNPC were zero.
501 (sparc_supply_rwindow): Make public. Merge functionality with
502 sparc64_supply_rwindow.
503 (sparc_fill_rwindow): Make public. Merge functionality with
504 sparc64_fill_rwindow.
505 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
506 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
507 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
508 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
509 sparc_supply_rwindow instead of sparc64_supply_rwindow.
510
511 * reggroups.c: Add whitespace after declarations of local
512 variables in functions.
513
514 2003-08-21 Michael Chastain <mec@shout.net>
515
516 * gdbtypes.h: Change array bound type from an int to enum.
517
518 2003-08-21 Andrew Cagney <cagney@redhat.com>
519
520 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
521 * config/sparc/tm-sparc.h: Ditto.
522 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
523 unconditionally.
524 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
525
526 2003-07-13 Mark Kettenis <kettenis@gnu.org>
527
528 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
529 (register_objfile_data, set_objfile_data, objfile_data): New
530 prototypes.
531 * objfiles.c (objfile_alloc_data, objfile_free_data): New
532 prototypes.
533 (allocate_objfile): Call objfile_alloc_data.
534 (free_objfile): Call objfile_free_data.
535 (struct objfile_data): New.
536 (struct objfile_data_registration): New.
537 (struct objfile_data_registry): New.
538 (objfile_data_registry): New variable.
539 (register_objfile_data): New function.
540 (objfile_alloc_data, objfile_free_data): New functions.
541 (set_objfile_data, objfile_data): New functions.
542 * dwarf2-frame.c (dwarf2_frame_data): New variable.
543 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
544 (_initialize_dwarf2_frame): New function and prototype.
545
546 2003-08-21 Andrew Cagney <cagney@redhat.com>
547
548 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
549 a specific architecture.
550 * arch-utils.h (set_architecture_from_arch_mach): Delete
551 declaration.
552 (target_architecture_hook): Delete declaration.
553 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
554 (default_float_format): Assume GDB_MULTI_ARCH.
555 (default_double_format): Assume GDB_MULTI_ARCH.
556 (set_endian_from_file): Delete function.
557 (arch_ok): Delete function.
558 (set_arch): Delete function.
559 (set_architecture_from_arch_mach): Delete function.
560 (set_architecture_from_file): Delete function.
561 (set_architecture): Assume GDB_MULTI_ARCH.
562 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
563
564 2003-08-21 Mark Kettenis <kettenis@gnu.org>
565
566 Rewrite FreeBSD/sparc64 native configuration.
567 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
568 * sparc64fbsd-nat.c: New file.
569 * sparc64fbsd-tdep.c: New file.
570 * sparc64-tdep.c sparc64-tdep.h: New files.
571 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
572 sparc64fbsd-tdep.o): New dependencies.
573 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
574 and sparc64fbsd-tdep.c.
575 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
576 * config/sparc/fbsd.mh: Remove copyright notice.
577 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
578 sparcbsd-nat.o.
579 * config/sparc/fbsd.mt: Remove copyright notice.
580 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
581 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
582 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
583 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
584 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
585 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
586 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
587 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
588 "sparc/tm-sp64.h".
589 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
590 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
591
592 2003-08-21 Michael Chastain <mec@shout.net>
593
594 * symtab.h: Add doco on the space critical structures and
595 some measurements of space usage.
596
597 2003-08-21 Michael Snyder <msnyder@redhat.com>
598
599 * tracepoint.c (trace_dump_command): Trace break address
600 is subject to DECR_PC_AFTER_BREAK.
601 (set_traceframe_context): Make "trace_line" an int.
602 Fixes suggested by Mark Newman <mark.newman@lmco.com>
603
604 2003-08-20 Michael Snyder <msnyder@redhat.com>
605
606 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
607 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
608 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
609 argument passing.
610 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
611 functions, replace sh_push_dummy_call.
612 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
613
614 2003-08-20 Michael Chastain <mec@shout.net>
615
616 * gdbtypes.h (struct main_type): Rearrange to save space.
617
618 2003-08-20 Michael Snyder <msnyder@redhat.com>
619
620 * trad-frame.c: Comment typo fix.
621
622 2003-08-20 Michael Snyder <msnyder@redhat.com>
623 Kevin Buettner <kevinb@redhat.com>
624
625 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
626 (frv_frame_init_saved_regs): Add declaration.
627 (frame_extra_info): Add new field ``saved_regs''.
628 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
629 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
630 Update frame related code.
631 (frv_extract_struct_value_address): Adjust formatting.
632 * Makefile.in (frv-tdep.o): Update dependencies.
633 * config/frv/tm-frv.h (target_insert_watchpoint)
634 (target_remove_watchpoint, target_insert_hw_breakpoint)
635 (target_remove_hw_breakpoint): Delete these macros.
636 (remote_insert_watchpoint, remote_remove_watchpoint)
637 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
638 these declarations.
639
640 2003-08-20 Michael Chastain <mec@shout.net>
641
642 * defs.h (ENUM_BITFIELD): New macro.
643 * symtab.h (ENUM_BITFIELD): Use it.
644 (BYTE_BITFIELD): Remove old macro, which was already disabled.
645
646 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
647
648 * MAINTAINERS (write after approval): Add myself.
649
650 2003-08-18 Andrew Cagney <cagney@redhat.com>
651
652 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
653 * gdbarch.h, gdbarch.c: Re-generate.
654 * infcall.c (call_function_by_hand): Adjust the SP by
655 frame_red_zone_size before allocating any stack space.
656 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
657 * x86-64-tdep.c (x86_64_frame_align): New function.
658 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
659
660 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
661 Remove code adjusting SP so that it skips over the Red Zone.
662
663 2003-08-18 Mark Kettenis <kettenis@gnu.org>
664
665 * NEWS (New native configurations): Mention FreeBSD/amd64.
666
667 2003-08-18 Andrew Cagney <cagney@redhat.com>
668
669 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
670 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
671 "m68k_frame_p".
672 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
673
674 2003-08-18 Mark Kettenis <kettenis@gnu.org>
675
676 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
677
678 2003-08-18 Michal Ludvig <mludvig@suse.cz>
679
680 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
681 Define.
682 * i386-linux-nat.c: Include "linux-nat.h".
683 (child_post_startup_inferior): New function.
684
685 2003-08-18 Mark Kettenis <kettenis@gnu.org>
686
687 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
688 at the start of a frameless function. This probably fixes PR
689 backtrace/1338.
690
691 2003-08-17 Michael Chastain <mec@shout.net>
692
693 * symfile.c (find_sym_fns): Remove special case for apollo target.
694
695 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
696
697 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
698 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
699 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
700 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
701 (linux_supports_tracevforkdone): New function.
702 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
703 TRACEVFORKDONE.
704 (child_follow_fork): Handle vfork.
705 (linux_handle_extended_wait): Likewise. Also handle exec.
706 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
707 * NEWS: Mention fork tracing.
708
709 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
710
711 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
712
713 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
714
715 * Makefile.in (i386-linux-nat.o): Update dependencies.
716 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
717 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
718 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
719 * i386-linux-nat.c: Include "linux-nat.h".
720 (child_post_startup_inferior): New function.
721 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
722 * infptrace.c (kill_inferior): Wrap in #ifdef.
723 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
724 attaching to each LWP.
725 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
726 (init_lin_lwp_ops): Fill in some more operations.
727 * linux-nat.h (linux_enable_event_reporting)
728 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
729 prototypes.
730 * linux-nat.c (linux_enable_event_reporting): New function.
731 (child_post_attach, linux_child_post_startup_inferior)
732 (child_post_startup_inferior, child_follow_fork)
733 (linux_handle_extended_wait, kill_inferior): New functions.
734
735 2003-08-16 Andrew Cagney <cagney@redhat.com>
736
737 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
738 * gdbarch.h, gdbarch.c: Re-generate.
739
740 2003-08-16 Mark Kettenis <kettenis@gnu.org>
741
742 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
743
744 2003-08-16 Andrew Cagney <cagney@redhat.com>
745
746 * NEWS: Mention that "set prompt-escape-char" was deleted.
747 * top.c (get_prompt_1): Delete function.
748 (gdb_prompt_escape):
749 (init_main): Do not clear "gdb_prompt_escape". Delete "set
750 prompt-escape-char" command.
751 (MAX_PROMPT_SIZE): Delete macro.
752 (get_prompt): Simplify, do not call get_prompt_1.
753
754 2003-08-16 Andrew Cagney <cagney@redhat.com>
755
756 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
757 -Werror. -Wformat-nonliteral problems.
758
759 2003-08-15 J. Brobecker <brobecker@gnat.com>
760
761 Further multiarching work mostly for hppa64-*-hpux11:
762 * hppa-tdep.h: New file.
763 * hppa-tdep.c: #include hppa-tdep.c.
764 (hppa32_num_regs): Renamed from hppa_num_regs.
765 (hppa64_num_regs): New constant.
766 (hppa64_call_dummy_breakpoint_offset): New constant.
767 (hppa32_call_dummy_length): New constant.
768 (hppa64_call_dummy_length): New constant.
769 (hppa32_stack_align): Make name 32bit explicit.
770 (hppa32_register_virtual_type): Likewise.
771 (hppa32_extract_return_value): Likewise.
772 (hppa32_use_struct_convention): Likewise.
773 (hppa32_store_return_value): Likewise.
774 (hppa64_register_virtual_type): New function.
775 (hppa64_extract_return_value): New function.
776 (hppa64_use_struct_convention): New function.
777 (hppa64_store_return_value): New function.
778 (hppa_frame_locals_address): Remove declaration, function does
779 not exist anymore.
780 (hppa_register_byte): Add support for PA64 ABI.
781 (hppa_gdbarch_init): Add support for PA64 ABI.
782 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
783 Make name 32bit explicit.
784 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
785 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
786 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
787 (hppa64_hpux_frame_base_before_sigtramp): New function.
788 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
789 * config/pa/tm-hppa64.h: Remove macros that are no longer
790 necessary now that the gdbarch vector is properly setup.
791 Transform some macros into function calls. Some minor cleanup.
792 * config/pa/tm-hppah.h: Update function calls in macros
793 following the function renaming in hppa-hpux-tdep.c.
794 * Makefile.in (hppa_tdep_h): New variable.
795 (hppa-tdep.o): Add dependency over hppa_tdep_h.
796
797 2003-08-14 Michael Snyder <msnyder@redhat.com>
798
799 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
800
801 2003-08-13 J. Brobecker <brobecker@gnat.com>
802
803 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
804 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
805 routine.
806
807 2003-08-13 Michael Snyder <msnyder@redhat.com>
808
809 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
810 (frv_saved_pc_after_call): Use deprecated ftype.
811 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
812 (frv_remote_translate_xfer_address): Remove.
813 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
814
815 2003-08-13 J. Brobecker <brobecker@gnat.com>
816
817 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
818 initialization after the common gdbarch initialization, not before.
819
820 2003-08-13 J. Brobecker <brobecker@gnat.com>
821
822 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
823 (ADDR_BITS_REMOVE): Remove, redundant.
824
825 2003-08-13 J. Brobecker <brobecker@gnat.com>
826
827 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
828 gdbarch method to clear the 2 low bits of text addresses.
829
830 2003-08-12 Andrew Cagney <cagney@redhat.com>
831
832 * Makefile.in (dsrec.o): Update dependencies.
833 * dsrec.c: Include "gdb_assert.h".
834 (make_srec): Use snprintf instead of sprintf, use a literal format
835 string.
836
837 2003-08-12 Andrew Cagney <cagney@redhat.com>
838
839 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
840 FRAME_OBSTACK_ZALLOC.
841
842 2003-08-12 Kevin Buettner <kevinb@redhat.com>
843
844 * i386-tdep.c (i386_gdbarch_init): Enable default support for
845 SSE registers.
846
847 2003-08-10 Mark Kettenis <kettenis@gnu.org>
848
849 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
850 amd64fbsd_sc_reg_offset): Add extern declarations.
851 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
852 declarations.
853
854 2003-08-11 Ben Elliston <bje@wasabisystems.com>
855
856 * MAINTAINERS (write after approval): Update my mail address.
857
858 2003-08-10 Andrew Cagney <cagney@redhat.com>
859
860 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
861
862 2003-08-10 Mark Kettenis <kettenis@gnu.org>
863
864 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
865 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
866 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
867 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
868 i386bsd_sc_reg_offset): Add extern declarations.
869 * i386obsd-nat.c: Include "i386-tdep.h"
870 (_initialize_i386obsd_nat): Remove extern declarations.
871 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
872 declarations.
873 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
874 declarations.
875
876 * i386-tdep.c (i386_register_to_value): Use get_frame_register
877 instead of frame_read_register.
878 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
879 instead of frame_read_register. Use I386_ESP_REGNUM instead of
880 SP_REGNUM.
881 (i386_frame_prev_register): Use frame_unwind_register_unsigned
882 instead of frame_unwind_unsigned_register. Use
883 I386_EFLAGS_REGISTER instead of PS_REGNUM.
884 (i386_get_longjmp_target): Use regcache_read_unsigned_register
885 instead of read_register. Use builtin_type_void_data_ptr instead
886 of builtin_type_void_func_ptr when extracting the address of the
887 jmp_buf.
888 (i386_extract_return_value, i386_store_return_value,
889 i386_pseudo_register_read, i386_pseudo_register_write): Use
890 register_size instead REGISTER_RAW_SIZE.
891
892 2003-08-10 Andrew Cagney <cagney@redhat.com>
893
894 * infcall.c (call_function_by_hand): Use xstrprintf instead of
895 sprintf. Make "name" constant.
896
897 2003-08-10 Mark Kettenis <kettenis@gnu.org>
898
899 * i387-tdep.c (i387_register_to_value): Use get_frame_register
900 instead of frame_read_register.
901 (i387_print_float_info): Use get_frame_register and
902 get_frame_register_unsigned instead of frame_register_read.
903
904 * i386fbsd-nat.c: Include "i386-tdep.h".
905 (child_resume): Make `eflags' an ULONGEST. Use
906 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
907 instead of register_read and register_write.
908
909 * i386bsd-nat.c (fetch_inferior_registers,
910 store_inferior_registers): Don't use && at the end of a line.
911 (_initialize_i386bsd_nat): Fix typo.
912
913 * frame.c (_initialize_frame): Add missing backslash.
914
915 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
916 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
917 and supply_register instead of manipulating the register buffer
918 directly.
919
920 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
921 * config/i386/nm-i386sol2.h
922 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
923
924 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
925 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
926 instructions that GCC likes to mingle into the prologue. Fixes
927 gdb/1253 and gdb/1255.
928
929 2003-08-09 Andrew Cagney <cagney@redhat.com>
930
931 Fix GDB PR cli/926.
932 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
933 * command.h (add_setshow_uinteger_cmd): Declare.
934 * frame.c (set_backtrace_cmd): New function.
935 (show_backtrace_cmd): New function.
936 * frame.c (_initialize_frame): Replace "set/show
937 backtrace-below-main" with "set/show backtrace past-main". Add
938 command "set/show backtrace limit".
939 (backtrace_past_main): Rename "backtrace_below_main".
940 (backtrace_limit): New variable.
941 (get_prev_frame): Update. Check the backtrace_limit.
942
943 2003-08-09 Andrew Cagney <cagney@redhat.com>
944
945 * defs.h (xstrprintf): Declare.
946 * utils.c (xstrprintf): New function.
947 * breakpoint.c (insert_breakpoints): Replace sprintf and
948 non-literal format strings, with xstrprintf and cleanups.
949 (delete_breakpoint,breakpoint_re_set): Ditto.
950 (commands_command, insert_breakpoints): Ditto.
951 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
952 (break_at_finish_command_1): Ditto.
953
954 2003-08-09 Andrew Cagney <cagney@redhat.com>
955
956 * MAINTAINERS (language support): List Adam Fedor as Objective C
957 maintainer.
958
959 2003-08-08 J. Brobecker <brobecker@gnat.com>
960
961 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
962 are now multiarched.
963
964 2003-08-08 J. Brobecker <brobecker@gnat.com>
965
966 * config/pa/tm-hppa64.h: Remove lots of macros that are no
967 longer necessary now that hppa64 is partially multiarch'ed.
968
969 2003-08-08 Andrew Cagney <cagney@redhat.com>
970
971 * interps.c (interp_set): Check for a NULL "old_interp".
972
973 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
974
975 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
976 (install-only): Support DESTDIR.
977 (uninstall): Likewise.
978 (install-gdbtk): Likewise.
979
980 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
981
982 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
983 contains something meaningful at all times.
984
985 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
986
987 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
988
989 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
990
991 * MAINTAINERS (write after approval): Added self.
992
993 2003-08-07 Andrew Cagney <cagney@redhat.com>
994
995 * inferior.h (AT_SYMBOL): Define.
996 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
997 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
998 * mips-tdep.c (mips_call_dummy_address): Delete function.
999 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1000 set call_dummy_address.
1001
1002 2003-08-07 Andrew Cagney <cagney@redhat.com>
1003
1004 * language.c (op_error): Delete function.
1005 (binop_type_check): Delete function.
1006 * language.h (type_op_error, range_op_error): Delete macros.
1007 (op_error): Delete declaration.
1008
1009 2003-08-07 Andrew Cagney <cagney@redhat.com>
1010
1011 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1012
1013 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1014
1015 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1016 (x86_64_push_arguments): Skip the red zone.
1017
1018 2003-08-05 Andrew Cagney <cagney@redhat.com>
1019
1020 * reggroups.c (reggroup_next): Check for the final entry.
1021
1022 2003-08-04 Andrew Cagney <cagney@redhat.com>
1023
1024 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1025 * cli/cli-script.c (define_command): Call query directly, instead
1026 of passing it a buffer.
1027 * ocd.c (ocd_error): Pass error a constant format string.
1028 * remote-mips.c (mips_error): Use fputs_filtered.
1029
1030 * solib-svr4.c (_initialize_svr4_solib): Update
1031 register_gdbarch_data call.
1032 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1033
1034 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1035 (register_gdbarch_data): Delete "free" parameter. Update
1036 comments.
1037 * gdbarch.h, gdbarch.c: Re-generate.
1038 * reggroups.c (_initialize_reggroup): Update.
1039 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1040 * frame-base.c (_initialize_frame_base): Update.
1041 * frame-unwind.c (_initialize_frame_unwind): Update.
1042 * user-regs.c (_initialize_user_regs): Update.
1043 * remote.c (_initialize_remote): Update.
1044 * regcache.c (_initialize_regcache): Update.
1045
1046 * regcache.c (xfree_regcache_descr): Delete function.
1047 (_initialize_regcache): Update call to register_gdbarch_data.
1048 (init_regcache_descr, init_legacy_regcache_descr): Use
1049 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1050
1051 * remote.c (free_remote_state): Delete function.
1052 (_initialize_remote): Update register_gdbarch_data.
1053 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1054 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1055
1056 2003-08-04 Andrew Cagney <cagney@redhat.com>
1057
1058 * reggroups.c (struct reggroup_el): Define.
1059 (struct reggroups): Delete field "nr_group". Replace array
1060 "group" with a "first" to "last" linked list.
1061 (reggroups_init): Update. Allocate using gdbarch's obstack.
1062 (reggroups_free): Delete function.
1063 (add_group): Update. Add "el" parameter.
1064 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1065 (default_groups): Update.
1066 (reggroup_next): Replace reggroups.
1067 (reggroups_dump): Update.
1068 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1069 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1070 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1071
1072 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1073
1074 * Makefile.in (tui-interp.o): Update dependencies.
1075
1076 2003-08-04 David Carlton <carlton@kealia.com>
1077
1078 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1079 to internal_error call.
1080 * source.c (forward_search_command): Add "%s" format argument.
1081 (reverse_search_command): Ditto.
1082 * top.c (quit_confirm): Ditto.
1083 * cli/cli-setshow.c (do_setshow_command): Ditto.
1084 * cp-valprint.c (cp_print_class_method): Replace
1085 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1086 (cp_print_class_member): Ditto.
1087 * event-top.c (command_line_handler): Ditto.
1088 * linux-proc.c (linux_info_proc_cmd): Ditto.
1089 * p-typeprint.c (pascal_type_print_base): Ditto.
1090 * p-valprint.c (pascal_object_print_class_method): Ditto.
1091 (pascal_object_print_class_member): Ditto.
1092 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1093 * remote.c (remote_cisco_section_offsets): Ditto.
1094 * top.c (command_line_input): Ditto.
1095 * utils.c (vwarning,error_stream,quit): Ditto.
1096 * valprint.c (print_floating,print_binary_chars)
1097 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1098
1099 2003-08-04 Andrew Cagney <cagney@redhat.com>
1100
1101 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1102
1103 2003-08-02 Andrew Cagney <cagney@redhat.com>
1104
1105 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1106 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1107 amd64fbsd-nat.c.
1108
1109 2003-08-02 Andrew Cagney <cagney@redhat.com>
1110
1111 * Makefile.in: Update all dependencies and definitions.
1112
1113 2003-08-02 Adam Fedor <fedor@gnu.org>
1114
1115 * linespec.c (is_objc_method_format): New function
1116 (decode_line_1, locate_first_half): Use it.
1117 Fixes PR objc/1298
1118
1119 2003-08-01 Andrew Cagney <cagney@redhat.com>
1120
1121 * NEWS: Mention that m32r is multi-arch.
1122 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1123 * configure.tgt: Recognize m32r-*-*.
1124 * config/m32r/tm-m32r.h: Delete file.
1125 * config/m32r/m32r.mt: New file.
1126 * m32r-rom.c (m32r_upload_command): Use hostent only when
1127 gethostname succeeds, in order to avoid a compilation
1128 warning.
1129 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1130 compiler warning.
1131
1132 2003-08-01 Michael Snyder <msnyder@redhat.com>
1133
1134 * sh-tdep.c (sh_frame_align): New gdbarch method.
1135 (sh_gdbarch_init): Set up frame_align method.
1136
1137 2003-07-31 Michael Snyder <msnyder@redhat.com>
1138
1139 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1140 which is already covered by the new frames infrastructure.
1141
1142 2003-07-31 Andrew Cagney <cagney@redhat.com>
1143
1144 * user-regs.c (struct user_reg): Add "next" link.
1145 (struct user_regs): Replace "user" with "first" and "last" links.
1146 (append_user_reg): Add pre-allocated "reg" parameter.
1147 (builtin_user_regs): Provide initial value for "last".
1148 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1149 (user_regs_init): Allocate memory from the gdbarch obstack.
1150 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1151 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1152 linked list.
1153 (usernum_to_user_reg): New function.
1154 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1155 (value_of_user_reg): Use usernum_to_user_reg.
1156 (user_regs_free): Delete function.
1157 (_initialize_user_regs): Update register_gdbarch_data call.
1158
1159 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1160
1161 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1162
1163 2003-07-30 Michael Snyder <msnyder@redhat.com>
1164
1165 * value.h (value_being_returned): Add a struct_addr argument.
1166 * infcall.c (call_function_by_hand): Pass struct_addr to
1167 value_being_returned.
1168 * infcmd.c (print_return_value): Pass zero as struct_addr.
1169 * values.c (value_being_returned): If struct_addr is passed,
1170 use it instead of trying to recover it from the inferior.
1171
1172 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1173
1174 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1175 the prologue analyzer won't need to attempt to extract the pc
1176 value from the woefully incomplete dummy frame.
1177 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1178 possible. Disable code which modifies the frame.
1179
1180 2003-07-28 Andrew Cagney <cagney@redhat.com>
1181
1182 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1183 to level 2.
1184 (annotate_breakpoints_table, annotate_record): Ditto.
1185 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1186 (annotate_field_name_end, annotate_field_value): Ditto.
1187 (annotate_field_end, annotate_frame_source_begin): Ditto.
1188 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1189 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1190 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1191 (annotate_frame_address_end, annotate_frame_address): Ditto.
1192 (annotate_frame_args, annotate_frame_end): Ditto.
1193 (annotate_frame_where, annotate_arg_begin): Ditto.
1194 (annotate_arg_name_end, annotate_arg_value): Ditto.
1195 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1196 (annotate_function_call, annotate_signal_name): Ditto.
1197 (annotate_signal_string, annotate_signal_name_end): Ditto.
1198 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1199 (annotate_value_begin, annotate_value_history_value): Ditto.
1200 (annotate_value_history_end, annotate_value_end): Ditto.
1201 (annotate_display_begin, annotate_display_number_end): Ditto.
1202 (annotate_display_format, annotate_display_expression): Ditto.
1203 (annotate_display_expression_end, annotate_display_value): Ditto.
1204 (annotate_display_end, annotate_array_section_begin): Ditto.
1205 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1206 (annotate_elt, annotate_array_section_end): Ditto.
1207
1208 2003-07-28 Andrew Cagney <cagney@redhat.com>
1209
1210 * regcache.c (struct regcache_descr): Update comments on
1211 nr_raw_registers.
1212 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1213 sizeof_raw_register_valid_p.
1214 (init_regcache_descr): Set nr_raw_registers and
1215 sizeof_raw_register_valid_p before calling
1216 init_legacy_regcache_descr.
1217
1218 2003-07-28 Andrew Cagney <cagney@redhat.com>
1219
1220 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1221 MOD NUM_REGS.
1222
1223 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1224
1225 * thread.c (info_threads_command): Use get_selected_frame ().
1226 Check that there is at least one non-sentinel frame.
1227
1228 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1229
1230 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1231 (m68hc11_pop_frame): Remove.
1232 (m68hc11_frame_saved_pc): Remove.
1233 (m68hc11_frame_chain): Remove.
1234 (m68hc11_frame_init_saved_regs): Remove.
1235 (m68hc11_init_extra_frame_info): Remove.
1236 (m68hc11_store_struct_return): Remove.
1237 (m68hc11_saved_pc_after_call): Remove.
1238
1239 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1240
1241 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1242 frame unwind information.
1243 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1244 and adapted for frame unwinding.
1245 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1246 (m68hc11_unwind_pc): New function.
1247 (m68hc11_frame_unwind_cache): New function to analyze frames.
1248 (m68hc11_frame_this_id): New function to create new frame struct.
1249 (m68hc11_frame_prev_register): New function to unwind a register from
1250 the frame.
1251 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1252 (m68hc11_frame_p): New function for the above.
1253 (m68hc11_frame_base_address): New function to return fp of frame.
1254 (m68hc11_frame_args_address): Update for frame.
1255 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1256 (m68hc11_unwind_sp): New function.
1257 (m68hc11_unwind_dummy_id): New function.
1258 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1259 calls.
1260
1261 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1262
1263 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1264 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1265 when we are beyond the current pc.
1266
1267 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1268
1269 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1270 from m68hc11_push_arguments.
1271 (m68hc11_push_arguments): Remove.
1272 (m68hc11_push_return_address): Remove.
1273 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1274 handlers; remove deprecated_extra_stack_alignment_needed.
1275
1276 2003-07-27 Andrew Cagney <cagney@redhat.com>
1277
1278 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1279 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1280 REAL_PC and not the pointer.
1281 * hppa-hpux-tdep.c: Include frame.h
1282
1283 2003-07-27 Andrew Cagney <cagney@redhat.com>
1284
1285 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1286 GDB_MULTI_ACH_PARTIAL.
1287
1288 2003-07-27 Andrew Cagney <cagney@redhat.com>
1289
1290 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1291 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1292 operator at start and not end of line.
1293 (decode_prologue): Ditto.
1294 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1295 frame_unwind_register_unsigned instead of
1296 frame_unwind_unsigned_register.
1297 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1298 read_register.
1299 (m32r_push_dummy_call): Use register_size instead of
1300 REGISTER_RAW_SIZE.
1301 (m32r_frame_sniffer): Replace m32r_frame_p.
1302 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1303 * m32r-rom.c (report_transfer_performance): Delete extern
1304 declaration.
1305 (m32r_load, m32r_upload_command): Use print_transfer_performance
1306 instead of report_transfer_performance.
1307 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1308 / add_show_from_set.
1309
1310 2003-07-26 Andrew Cagney <cagney@redhat.com>
1311
1312 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1313 store_return_value and extract_struct_value_address.
1314
1315 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1316
1317 PR c++/1267
1318 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1319 NULL, default to the section containing PC.
1320
1321 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1322
1323 * NEWS: Mention "regs" deprecated for m68hc11 too.
1324
1325 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1326 (m68hc11_print_register): New function to print out one register.
1327 (m68hc11_print_registers_info): New function to print registers.
1328 (show_regs): Deprecate and use the above.
1329 (m68hc11_gdbarch_init): Install the print_registers_info.
1330
1331 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1332
1333 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1334 that we have a SIGTRAP before returning non-zero.
1335
1336 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1337 Elena Zannoni <ezannoni@redhat.com>
1338
1339 * linespec.c (decode_line_2): Avoid crash if
1340 find_function_start_sal() returns empty record.
1341
1342 2003-07-23 Andreas Schwab <schwab@suse.de>
1343
1344 * ia64-tdep.c (ia64_print_insn): New function.
1345 (ia64_gdbarch_init): Set print_insn to it.
1346 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1347 deprecated_tm_print_insn_info.
1348
1349 2003-07-22 Michael Snyder <msnyder@redhat.com>
1350
1351 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1352 handle 8-bit returns (long long).
1353 (h8300h_extract_return_value): Ditto.
1354 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1355
1356 2003-07-22 Andrew Cagney <cagney@redhat.com>
1357
1358 * gdbarch.c Include "gdb_obstack.h".
1359 (struct gdbarch): Add an "obstack".
1360 (alloc_gdbarch_data): Allocate the gdbarch data using
1361 GDBARCH_OBSTACK_CALLOC.
1362 (free_gdbarch_data): Delete function.
1363 (gdbarch_obstack_zalloc): New function.
1364 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1365 Assert that the architecture is not initialized.
1366 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1367 vector from the obstack.
1368 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1369 architecture obstack.
1370 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1371 (set_gdbarch_data): Assert that the data is not initialized.
1372 (struct gdbarch_data): Delete member "free".
1373 (register_gdbarch_data): Do not initialize "free".
1374 * gdbarch.h, gdbarch.c: Re-generate.
1375
1376 2003-07-22 Andrew Cagney <cagney@redhat.com>
1377
1378 * configure.in (build_warnings): Add -Wformat-nonliteral.
1379 * configure: Re-generate.
1380
1381 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1382
1383 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1384
1385 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1386
1387 * findvar.c (read_var_value): Remove case for thread local storage
1388 variables. It is now entirely handled by the dwarf2 location
1389 expression code.
1390 * printcmd.c (address_info): Ditto.
1391 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1392 enumeration value.
1393 (struct symbol): Remove objfile field, which was used by
1394 LOC_THREAD_LOCAL_STATIC only.
1395 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1396 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1397 usage of objfile pointer.
1398 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1399 thread local variables.
1400 Add include of objfiles.h.
1401 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1402 storage variables.
1403 * Makefile.in (dwarf2loc.o): Update dependencies.
1404
1405 2003-07-22 Andrew Cagney <cagney@redhat.com>
1406
1407 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1408 get_frame_base.
1409 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1410 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1411 (struct value): Add opaque declaration.
1412 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1413
1414 2003-07-21 Andrew Cagney <cagney@redhat.com>
1415
1416 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1417 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1418
1419 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1420
1421 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1422 regcache_cooked_read_unsigned instead of read_register.
1423 (m68hc11_saved_pc_after_call): Likewise.
1424 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1425 instead of write_register.
1426 (m68hc11_register_type): New function.
1427 (m68hc11_register_virtual_type): Remove.
1428 (m68hc11_store_return_value): Convert to use the regcache.
1429 (m68hc11_extract_struct_value_address): Likewise.
1430 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1431 m68hc11_register_type; undeprecate store_return_value and
1432 extract_struct_value_address.
1433
1434 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1435
1436 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1437 and translate to use regcache.
1438 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1439
1440 2003-07-18 Andrew Cagney <cagney@redhat.com>
1441
1442 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1443 * gdbarch.h, gdbarch.c: Re-generate.
1444 * i386-tdep.c (i386_gdbarch_init): Do not set
1445 DWARF2_BUILD_FRAME_INFO.
1446 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1447 unconditionally.
1448 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1449 DWARF2_BUILD_FRAME_INFO.
1450
1451 2003-07-18 Andrew Cagney <cagney@redhat.com>
1452
1453 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1454 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1455
1456 2003-07-18 Andrew Cagney <cagney@redhat.com>
1457
1458 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1459 frame_unwind_address_in_block, instead of frame_pc_unwind.
1460 (dwarf2_frame_cache): Ditto.
1461
1462 2003-07-18 Andrew Cagney <cagney@redhat.com>
1463
1464 * user-regs.h (struct gdbarch): Declare opaque.
1465 * ui-out.h (struct ui_file): Declare opaque.
1466 * dwarf2-frame.h (struct frame_info): Declare opaque.
1467
1468 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1469
1470 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1471 #include "...".
1472 (procfs_meminfo): Change strerror to safe_strerror.
1473 (procfs_can_run): Remove K&R badness.
1474
1475 2003-07-17 Michael Snyder <msnyder@redhat.com>
1476
1477 * remote-sim.c: Comment typo fix.
1478
1479 2003-07-17 Andrew Cagney <cagney@redhat.com>
1480
1481 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1482 configure.
1483 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1484 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1485 GDB_MULTI_ARCH_PARTIAL.
1486
1487 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1488
1489 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1490 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1491 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1492
1493 2003-07-16 Theodore A. Roth <troth@openavr.org>
1494
1495 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1496 found.
1497 (avr_frame_unwind_cache): Don't unwind FP for main.
1498 Update a comment.
1499 Save the computed prev_sp.
1500 (avr_saved_regs_unwinder): Remove function.
1501 (avr_frame_prev_register): Use PC unwind logic from
1502 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1503
1504 2003-07-16 Andrew Cagney <cagney@redhat.com>
1505
1506 * frame-base.h (frame_base_p_ftype): Delete definition.
1507 (frame_base_append_predicate): Delete declaration.
1508 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1509 (frame_unwind_append_predicate): Delete declaration.
1510 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1511 (append_predicate): Delete parameter "p".
1512 (frame_unwind_append_predicate): Delete function.
1513 (frame_unwind_append_sniffer): Update call to append_predicate.
1514 (frame_unwind_free): Delete function.
1515 (_initialize_frame_unwind): Pass NULL as "free" to
1516 register_gdbarch_data.
1517 (frame_unwind_init): Append the dummy_frame_sniffer.
1518 (frame_unwind_find_by_frame): Simplify.
1519 * frame-base.c (struct frame_base_table): Delete field "p".
1520 (append_predicate): Delete parameter "p".
1521 (frame_base_append_predicate): Delete function.
1522 (frame_base_append_sniffer): Update call to append_predicate.
1523 (frame_base_free): Delete function.
1524 (frame_base_find_by_frame): Simplify.
1525 (_initialize_frame_base): Pass NULL as "free" to
1526 register_gdbarch_data.
1527 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1528 (x86_64_sigtramp_frame_sniffer): Replace
1529 "x86_64_sigtramp_frame_p".
1530 (x86_64_init_abi): Set the frame unwind sniffers.
1531 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1532 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1533 (m68k_gdbarch_init): Set the frame unwind sniffers.
1534 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1535 "i386_sigtramp_frame_p".
1536 (i386_frame_sniffer): Replace "i386_frame_p".
1537 (i386_gdbarch_init): Set the frame unwind sniffers.
1538 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1539 (avr_gdbarch_init): Set the frame unwind sniffers.
1540 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1541 "alpha_sigtramp_frame_p"
1542 (alpha_heuristic_frame_sniffer): Replace
1543 "alpha_heuristic_frame_p".
1544 (alpha_gdbarch_init): Set the frame unwind sniffers.
1545 (alpha_dwarf2_init_abi): Ditto.
1546 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1547 "alpha_debug_frame_p".
1548 (alpha_mdebug_frame_base_sniffer): Replace
1549 "alpha_mdebug_frame_base_p".
1550 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1551 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1552 (d10v_gdbarch_init): Set the frame unwind sniffer.
1553 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1554 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1555 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1556 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1557 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1558 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1559
1560 2003-07-16 Michael Snyder <msnyder@redhat.com>
1561
1562 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1563 should go thru sh_dsp_register_sim_regno, else the dsp regs
1564 will not get the right values.
1565
1566 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1567
1568 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1569 deprecated_store_floating by call to store_typed_floating.
1570 (sh_sh4_register_convert_to_raw): Substitute call to
1571 deprecated_extract_floating by call to extract_typed_floating.
1572
1573 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1574
1575 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1576
1577 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1578
1579 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1580 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1581 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1582 as possible.
1583 (do_pseudo_register): Remove.
1584 (sh_push_dummy_code): New function.
1585 (sh64_store_struct_return): Rename from sh_store_struct_return.
1586 Only called for sh64 now.
1587 (sh_extract_struct_value_address): Regcache'ify.
1588 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1589 and accomodate new tasks.
1590 (sh64_push_return_address): Rename from sh_push_return_address.
1591 Only called for sh64 now.
1592 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1593 Regcache'ify.
1594 (sh3e_sh4_extract_return_value): Regcache'ify.
1595 (sh_default_store_return_value): Ditto.
1596 (sh3e_sh4_store_return_value): Ditto.
1597 (sh_default_register_byte): Remove.
1598 (sh_sh4_register_byte): Remove.
1599 (sh_default_register_raw_size): Remove.
1600 (sh_sh4_register_raw_size): Remove.
1601 (sh_register_virtual_size): Remove.
1602 (sh_sh3e_register_virtual_type): Remove.
1603 (sh_sh3e_register_type): New function.
1604 (sh_sh4_register_virtual_type): Remove.
1605 (sh_sh4_register_type): New function.
1606 (sh_default_register_virtual_type): Remove.
1607 (sh_default_register_type): New function.
1608 (do_fv_register_info): Add parameters to accomodate call from
1609 sh_print_registers_info.
1610 (do_dr_register_info): Ditto.
1611 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1612 Add parameters to accomodate call from sh_print_registers_info.
1613 (sh_do_fp_register): Ditto.
1614 (sh64_do_pseudo_register): Call do_dr_register_info,
1615 do_fv_register_info and sh_do_fp_register with default parameters.
1616 (sh_do_register): Add parameters to accomodate call from
1617 sh_print_registers_info.
1618 (sh_print_register): Ditto.
1619 (sh_print_registers_info): Rename from sh_do_registers_info.
1620 Add parameters to be used as gdbarch_print_registers_info
1621 implementation. Accomodate removed do_pseudo_register function
1622 pointer.
1623 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1624 function pointer. Call sh_print_register with default parameters.
1625 (sh64_do_registers_info): Call sh_print_registers_info instead of
1626 sh_do_registers_info.
1627 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1628 detection of deprecated vs. non-deprecated functionality.
1629 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1630 function pointer assignments by direct function calls.
1631
1632 2003-07-15 Andrew Cagney <cagney@redhat.com>
1633
1634 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1635 (frame_register_unwind, create_new_frame): Ditto.
1636 (legacy_get_prev_frame, get_frame_type): Ditto.
1637 (get_frame_base_address): Use frame_base_find_by_frame.
1638 (get_frame_locals_address): Use frame_base_find_by_frame.
1639 (get_frame_args_address): Use frame_base_find_by_frame.
1640 * frame-base.h (frame_base_sniffer_ftype): Declare.
1641 (frame_base_append_sniffer): Declare.
1642 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1643 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1644 (frame_base_append_sniffer): New function.
1645 (frame_base_append_predicate): Add a NULL sniffer.
1646 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1647 (struct frame_base_table): Add "sniffer".
1648 (frame_base_free): Free the "sniffer" table.
1649 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1650 (frame_unwind_append_sniffer): Declare.
1651 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1652 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1653 (struct frame_unwind_table): Add "sniffer", delete "middle".
1654 (append_predicate): Add "sniffer" parameter, append the sniffer.
1655 (frame_unwind_init): Update append_predicate call.
1656 (frame_unwind_append_sniffer): New function.
1657 (frame_unwind_append_predicate): Update append_predicate call.
1658 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1659
1660 2003-07-15 Andrew Cagney <cagney@redhat.com>
1661
1662 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1663 before code inhibiting repeated unwind attempts. Add to
1664 commentary on that test's problems.
1665 * blockframe.c (inside_main_func): Look for "main" in the minimal
1666 symbol table.
1667 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1668 identical.
1669
1670 2003-07-15 Andrew Cagney <cagney@redhat.com>
1671
1672 * complaints.c (struct explanation): Define.
1673 (struct complaints): Change type of "explanation" to "struct
1674 explanation".
1675 (symfile_explanations): Convert to a "struct explanation" table.
1676 (vcomplaint): Update.
1677
1678 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1679
1680 * x86-64-linux-nat.c (regmap): Removed.
1681 (supply_gregset, fill_gregset): Call
1682 x86_64_linux_(fill,supply)_gregset functions.
1683 * x86-64-linux-tdep.c (USER_*): New defines.
1684 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1685 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1686 New functions.
1687 (fetch_core_registers): Ditto.
1688 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1689 * x86-64-linux-tdep.h: New file.
1690 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1691 and core-regset.o.
1692 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1693
1694 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1695
1696 * x86-64-tdep.c (x86_64_store_return_value): Use
1697 regcache_cooked_write_part instead of regcache_cooked_write.
1698
1699 * configure.host: Add x86_64-*-freebsd*.
1700 * configure.tgt: Add x86_64-*-freebsd*.
1701 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1702 * amd64fbsd-nat.c: New file.
1703 * amd64fbsd-tdep.c: New file.
1704 * config/i386/nm-fbsd64.h: New file.
1705 * config/i386/fbsd64.mh: New file.
1706 * config/i386/fbsd64.mt: New file.
1707
1708 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1709
1710 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1711 `sc_regs_offset' and `sc_fpregs_offset'.
1712 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1713 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1714 (alpha_sigtramp_register_address): Rewrite to use new members of
1715 `struct gdbarch_tdep'.
1716 (alpha_gdbarch_init): Initialize new members of struct
1717 gdbarch_tdep'.
1718 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1719 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1720 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1721 (alphafbsd_pc_in_sigtramp): Implement.
1722 (alphafbsd_sigtramp_offset): New function.
1723 (alphafbsd_sigcontext_addr): New function.
1724 (alphafbsd_init_abi): Initialize signal trampoline related members
1725 of `struct gdbarch_tdep'.
1726 (_initialize_alphafbsd_tdep): Add prototype.
1727
1728 2003-07-11 Theodore A. Roth <troth@openavr.org>
1729
1730 * Makefile.in (install-only): Quote sed expression when generating
1731 transformed_name.
1732
1733 2003-07-11 Richard Henderson <rth@redhat.com>
1734
1735 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1736 * dwarf2-frame.c: Include complaints.h.
1737 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1738 variable initialization; return NULL on error.
1739 (decode_frame_entry): New.
1740
1741 2003-07-11 Andrew Cagney <cagney@redhat.com>
1742
1743 * frame.h (frame_address_in_block): Delete declaration.
1744 * blockframe.c (frame_address_in_block): Delete function.
1745 (get_frame_block): Use get_frame_address_in_block.
1746 (block_innermost_frame): Ditto.
1747 * stack.c (print_frame, backtrace_command_1): Ditto.
1748
1749 * frame.h (get_frame_address_in_block): Declare.
1750 (frame_unwind_address_in_block): Declare.
1751 * frame.c (frame_unwind_address_in_block): New function.
1752 (get_frame_address_in_block): New function.
1753
1754 2003-07-10 Andrew Cagney <cagney@redhat.com>
1755
1756 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1757 pre-default. Note: re-generate has no effect.
1758
1759 2003-07-10 Andrew Cagney <cagney@redhat.com>
1760
1761 * gdbarch.sh: When a variable, but not a function, compare against
1762 0. Fix problem in previous patch.
1763 * gdbarch.c: Re-generate.
1764
1765 2003-07-10 Andrew Cagney <cagney@redhat.com>
1766
1767 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1768 functions against NULL, not 0.
1769 * gdbarch.c: Re-generate.
1770
1771 2003-07-10 Fred Fish <fnf@ninemoons.com>
1772
1773 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1774 null string instead of a null pointer.
1775 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1776
1777 2003-07-09 Michael Snyder <msnyder@redhat.com>
1778
1779 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1780
1781 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1782
1783 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1784 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1785 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1786 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1787 * x86-64-tdep.c: ... from here.
1788
1789 2003-07-09 Andreas Schwab <schwab@suse.de>
1790
1791 * m68k-tdep.h (enum struct_return): Define.
1792 (struct gdbarch_tdep): Add struct_return.
1793 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1794 bytes are padded to the right, not to the left. Pass struct value
1795 address in register %a1, not on stack.
1796 (m68k_use_struct_convention): New function.
1797 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1798 struct_return in tdep to pcc_struct_return.
1799 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1800 reg_struct_return.
1801
1802 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1803
1804 * somread.c (som_symfile_offsets): Fix compilation error.
1805
1806 2003-07-09 Andrew Cagney <cagney@redhat.com>
1807
1808 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1809 Add comments about the checks.
1810
1811 2003-07-08 Andrew Cagney <cagney@redhat.com>
1812
1813 * Makefile.in: Make dependency section headers consistent.
1814 (config_h): Move to $BUILD headers section.
1815 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1816 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1817 (ada-exp.tab.c): Move to YACC/LEX section.
1818 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1819 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1820
1821 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1822
1823 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1824 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1825 of strerror with safe_strerror, use ISO C function definitions,
1826 and replace instances of sprintf with snprintf.
1827
1828 2003-07-07 Andrew Cagney <cagney@redhat.com>
1829
1830 * frame.c (get_prev_frame): Enable check for identical frames.
1831 Update comments. Update error messages.
1832
1833 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1834
1835 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1836
1837 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1838
1839 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1840 sort_symtab_syms, no longer necessary.
1841
1842 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1843
1844 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1845
1846 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1847
1848 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1849 (mips_register_byte): Likewise.
1850
1851 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1852
1853 * Makefile.in (sparc_tdep_h): New.
1854 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1855 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1856 * sparc-linux-nat.c: Include "sparc-tdep.h".
1857 * sparc-nat.c: Likewise.
1858 * sparc-tdep.c: Likewise.
1859 * sparc64nbsd-nat.c: Likewise.
1860 * sparcnbsd-nat.c: Likewise.
1861 * sparcnbsd-tdep.c: Likewise.
1862 * sparc-tdep.h: New file.
1863 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1864 and sparc_npc_regnum.
1865
1866 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1867
1868 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1869 (mips_linux_cannot_store_register): List supported instead of
1870 unsupported registers.
1871
1872 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1873
1874 * disasm.c (dump_insns): Separate instructions from addresses.
1875
1876 2003-07-07 Andreas Schwab <schwab@suse.de>
1877
1878 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1879 dependencies.
1880 * m68k-tdep.c (NUM_FREGS): Delete.
1881 (SIG_PC_FP_OFFSET): Delete.
1882 (TARGET_M68K): Delete.
1883 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1884 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1885 P_MOVEL_SP, P_MOVEML_SP): Define.
1886 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1887 P_TRAP): Delete.
1888 (m68k_register_raw_size): Delete.
1889 (m68k_register_virtual_size): Delete.
1890 (m68k_register_type): Renamed from m68k_register_virtual_type and
1891 add gdbarch argument.
1892 (m68k_store_struct_return): Delete.
1893 (m68k_deprecated_extract_return_value): Delete.
1894 (m68k_deprecated_extract_struct_value_address): Delete.
1895 (m68k_frame_chain): Delete.
1896 (m68k_frame_saved_pc): Delete.
1897 (m68k_fix_call_dummy): Delete.
1898 (m68k_push_dummy_frame): Delete.
1899 (m68k_pop_frame): Delete.
1900 (m68k_extract_return_value): New function.
1901 (m68k_store_return_value): Rewrite using regcache.
1902 (m68k_extract_struct_value_address): Rewrite using regcache.
1903 (m68k_push_dummy_call): New function.
1904 (struct m68k_frame_cache): Define.
1905 (m68k_alloc_frame_cache): New function.
1906 (m68k_analyze_frame_setup): New function.
1907 (m68k_analyze_register_saves): New function.
1908 (m68k_analyze_prologue): New function.
1909 (m68k_skip_prologue): Rewrite using above functions.
1910 (m68k_unwind_pc): New function.
1911 (m68k_frame_cache): New function.
1912 (m68k_frame_this_id): New function.
1913 (m68k_frame_prev_register): New function.
1914 (m68k_frame_unwind): New variable.
1915 (m68k_frame_p): New function.
1916 (m68k_sigtramp_frame_cache): New function.
1917 (m68k_sigtramp_frame_this_id): New function.
1918 (m68k_sigtramp_frame_prev_register): New function.
1919 (m68k_sigtramp_frame_unwind): New variable.
1920 (m68k_sigtramp_frame_p): New function.
1921 (m68k_frame_base_address): New function.
1922 (m68k_frame_base): New function.
1923 (m68k_unwind_dummy_id): New function.
1924 (fill_gregset): Use regcache_collect.
1925 (fill_fpregset): Likewise.
1926 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1927 defined.
1928 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1929 deprecated_init_frame_pc, deprecated_store_struct_return,
1930 deprecated_extract_return_value, deprecated_store_return_value,
1931 deprecated_frame_chain, deprecated_frame_saved_pc,
1932 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1933 deprecated_register_virtual_size,
1934 deprecated_max_register_raw_size,
1935 deprecated_max_register_virtual_size,
1936 deprecated_register_virtual_type, deprecated_register_size,
1937 deprecated_register_byte, deprecated_register_bytes,
1938 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1939 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1940 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1941 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1942 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1943 deprecated_push_dummy_frame, deprecated_pop_frame,
1944 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1945 only if SYSCALL_TRAP is defined. Set extract_return_value,
1946 store_return_value, extract_struct_value_address, register_type,
1947 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1948 predicates.
1949 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1950 M68K_MAX_REGISTER_SIZE): Define.
1951 (struct m68k_sigtramp_info): Define.
1952 (struct gdbarch_tdep): Add get_sigtramp_info.
1953 * m68klinux-nat.c (fetch_register): Use register_size instead of
1954 REGISTER_RAW_SIZE. Don't put assignment in if.
1955 (store_register): Likewise.
1956 (fetch_inferior_registers): Likewise.
1957 (store_inferior_registers): Likewise.
1958 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1959 (m68k_linux_frame_saved_pc): Delete.
1960 (m68k_linux_sigcontext_reg_offset,
1961 m68k_linux_ucontext_reg_offset): Define.
1962 (m68k_linux_get_sigtramp_info): New function.
1963 (m68k_linux_extract_return_value): Rewrite using regcache.
1964 (m68k_linux_store_return_value): Likewise.
1965 (m68k_linux_extract_struct_value_address): Likewise.
1966 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1967 Don't set deprecated_frame_saved_pc,
1968 deprecated_extract_return_value, deprecated_store_return_value,
1969 deprecated_extract_struct_value_address. Set
1970 extract_return_value, store_return_value,
1971 extract_struct_value_address.
1972
1973 2003-07-07 Andrew Cagney <cagney@redhat.com>
1974
1975 * expprint.c: Include "user-regs.h" instead of "frame.h".
1976 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1977 frame_map_regnum_to_name.
1978 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1979 (frame_map_name_to_regnum): Simplify, call
1980 user_reg_map_name_to_regnum.
1981 (frame_map_regnum_to_name): Simplify, call
1982 user_reg_map_regnum_to_name.
1983 (frame_register_unwind): Update.
1984 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1985 (_initialize_frame_reg): Call user_reg_add_builtin.
1986 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1987 (value_of_register): Use value_of_user_reg.
1988 * eval.c (evaluate_subexp_standard): Update.
1989 * parse.c (write_dollar_variable): Update.
1990 * d10v-tdep.c (d10v_print_registers_info): Update.
1991 * infcmd.c (registers_info): Update.
1992 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1993 (builtin_regs_h): Delete macro.
1994 (user_regs_h): Define.
1995 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1996 (builtin-regs.o): Delete target.
1997 (user-regs.o): Specify dependencies.
1998 (expprint.o): Update dependencies.
1999 (findvar.o): Update dependencies.
2000 (frame.o): Update dependencies.
2001 (std-regs.o): Update dependencies.
2002
2003 2003-07-06 Christopher Faylor <cgf@redhat.com>
2004
2005 * win32-nat.c (solib_symbols_add): Use one variable for all section
2006 address stuff. Pass variable rather than address of variable to
2007 safe_symbol_file_add.
2008
2009 2003-07-06 Andreas Schwab <schwab@suse.de>
2010
2011 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2012
2013 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2014
2015 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2016
2017 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2018
2019 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2020
2021 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2022
2023 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2024 * config/i386/nto.mh: New file.
2025 * config/i386/nm-nto.h: New file.
2026 * configure.host: Add i[3456]86-*-nto*.
2027
2028 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2029
2030 * remote-vx.c (vx_add_symbols): Fix compilation error.
2031
2032 2003-07-03 Andrew Cagney <cagney@redhat.com>
2033
2034 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2035 * gdbarch.h, gdbarch.c: Re-generate.
2036 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2037 (legacy_register_name): Declare.
2038 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2039 (REGISTER_NAME): Define.
2040 * sparc-tdep.c (legacy_register_name): New function.
2041 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2042 (REGISTER_NAME): Define.
2043 (hppa64_register_name): Declare.
2044 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2045 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2046 (hppa64_register_name): New function.
2047 (hppa_register_name): New function.
2048 * arch-utils.c (legacy_register_name): Delete.
2049 * arch-utils.h (legacy_register_name): Delete.
2050
2051 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2052
2053 * cli/cli-interp.c (cli_interpreter_resume): Update the
2054 cli_uiout's stream to gdb_stdout.
2055
2056 2003-07-03 Andrew Cagney <cagney@redhat.com>
2057
2058 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2059 predicate.
2060 * gdbarch.h, gdbarch.c: Re-generate.
2061 * regcache.c (init_regcache_descr): Use legacy code when either
2062 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2063
2064 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2065
2066 * NEWS: Move "set logging" entry into GDB 6.0 section.
2067
2068 2003-07-02 Jim Blandy <jimb@redhat.com>
2069
2070 * s390-tdep.c (struct frame_extra_info): new member:
2071 'stack_bought_valid'.
2072 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2073 initialize fextra_info->stack_bought.
2074 (s390_frameless_function_invocation): Don't trust the value of
2075 fextra_info_ptr->stack_bought unless
2076 fextra_info->stack_bought_valid is set.
2077
2078 New S390 prologue analyzer.
2079 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2080 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2081 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2082 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2083 compute_x_addr, s390_on_stack, s390_store,
2084 s390_get_signal_frame_info): New functions.
2085 (S390_NUM_SPILL_SLOTS): New macro.
2086 (s390_get_frame_info): Rewritten.
2087 (is_arg_reg): Deleted.
2088
2089 Break out the decoding of S/390 instructions into separate
2090 functions, to make it more legible, and easier to check
2091 against the spec.
2092 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2093 is_rx, is_rxe): New functions.
2094 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2095 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2096 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2097 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2098 enums for opcode values. (Is this an improvement?)
2099
2100 2003-07-02 Andrew Cagney <cagney@redhat.com>
2101
2102 * i386-tdep.c: Revert change committed as part of trad-frame code
2103 below.
2104
2105 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2106
2107 * breakpoint.c (insert_catchpoint): Make static.
2108
2109 2003-07-02 Andreas Schwab <schwab@suse.de>
2110
2111 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2112 former ia64_push_arguments and ia64_push_return_address, and use
2113 regcache functions instead of read/write_register.
2114 (ia64_gdbarch_init): Set push_dummy_call instead of
2115 deprecated_push_arguments and deprecated_push_return_address.
2116
2117 2003-07-01 Andreas Jaeger <aj@suse.de>
2118
2119 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2120 before the call.
2121 Set %rax only to number of SSE registers used.
2122
2123 2003-07-01 Andrew Cagney <cagney@redhat.com>
2124
2125 * trad-frame.h: Update comments, a -1 .addr is reserved.
2126 (trad_frame_value_p, trad_frame_addr_p): Declare.
2127 (trad_frame_reg_p): Declare.
2128 (trad_frame_set_value): Rename trad_frame_register_value.
2129 (trad_frame_set_unknown): Declare.
2130 * trad-frame.c (trad_frame_realreg_p): New function.
2131 (trad_frame_addr_p, trad_frame_value_p): New function.
2132 (trad_frame_set_unknown): New function.
2133 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2134 (trad_frame_prev_register): Use trad_frame_realreg_p,
2135 trad_frame_addr_p and trad_frame_value_p.
2136 (trad_frame_set_value): Rename trad_frame_register_value.
2137 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2138 and trad_frame_set_value.
2139
2140 2003-06-30 Jim Blandy <jimb@redhat.com>
2141
2142 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2143 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2144 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2145 for 16 registers, and then 32 more bytes.
2146 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2147 New macros.
2148 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2149 Move up in the file, since it's now used by is_simple_arg.
2150 (is_simple_arg): Don't assume registers are four bytes long.
2151 Exclude all double arguments. Extended floats are not simple
2152 args.
2153 (is_power_of_two): New function.
2154 (pass_by_copy_ref): Call is_power_of_two, and check that the
2155 length fits in a register, rather than listing all the acceptable
2156 sizes. Extended floats are not passed by reference.
2157 (s390_push_arguments): Don't assume registers are four bytes long.
2158 Reserve an argument register to point to the buffer for structures
2159 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2160 S390_STACK_FRAME_OVERHEAD.
2161
2162 2003-06-30 Andreas Schwab <schwab@suse.de>
2163
2164 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2165 format error message.
2166
2167 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2168
2169 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2170
2171 2003-06-30 David Carlton <carlton@kealia.com>
2172
2173 Band-aid for PR c++/1245.
2174 * Makefile.in (cp-support.o): Depend on complaints_h.
2175 * cp-support.c: Include complaints.h. Add declaration for
2176 find_last_component.
2177 (cp_find_first_component): Separate code into
2178 cp_find_first_component_aux.
2179 (cp_find_first_component_aux): Call demangled_name_complaint.
2180 (demangled_name_complaint): New.
2181
2182 2003-06-30 Andrew Cagney <cagney@redhat.com>
2183
2184 * remote.c (remote_write_bytes): Explicitly compute and then use
2185 the payload size. Update comments to reflect. Fixes problem of
2186 GDB not sending small packets as found by Fred Fish.
2187
2188 2003-06-30 Andrew Cagney <cagney@redhat.com>
2189
2190 * remote.c (remote_async_wait): Fix -Wformat problem.
2191
2192 2003-06-29 Andrew Cagney <cagney@redhat.com>
2193
2194 * remote.c (remote_wait): Call error, and not warning, when the
2195 packet is corrupt.
2196 (remote_async_wait): Ditto.
2197
2198 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2199
2200 * sparc-tdep.c (sparc_y_regnum): Make external again.
2201
2202 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2203
2204 * cli/cli-logging.c (pop_output_files): Add void to function
2205 definition.
2206
2207 2003-06-29 Andrew Cagney <cagney@redhat.com>
2208
2209 * frame.c (frame_register_unwind): Use unsigned char when dumping
2210 the buffer contents.
2211
2212 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2213
2214 * cli/cli-logging.c: New file.
2215 * cli-out.c (struct ui_out_data): Add original_stream.
2216 (cli_redirect): New function.
2217 (cli_ui_out_impl): Add cli_redirect.
2218 (cli_out_new): Initialize original_stream.
2219 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2220 (uo_redirect, ui_out_redirect): New.
2221 * ui-out.h (struct ui_out_impl): Add redirect member.
2222 (redirect_ftype): New.
2223 (ui_out_redirect): Add prototype.
2224 * Makefile.in: Add rules for cli-logging.c.
2225 * NEWS: Mention "set logging".
2226
2227 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2228
2229 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2230
2231 2003-06-27 Andrew Cagney <cagney@redhat.com>
2232
2233 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2234 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2235 * avr-tdep.c (avr_call_dummy_address): Delete function.
2236 (avr_gdbarch_init): Do not set call_dummy_address.
2237
2238 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2239
2240 * symfile.c (syms_from_objfile): Move variables to inner block.
2241 Move the checks for the non-mainline case a bit earlier to avoid
2242 doing some useless computations.
2243
2244 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2245
2246 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2247
2248 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2249
2250 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2251 sections.
2252
2253 2003-06-26 Michael Chastain <mec@shout.net>
2254
2255 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2256 gdb/testsuite/gdb.c++/pr-1210.exp.
2257
2258 2003-06-26 Andrew Cagney <cagney@redhat.com>
2259
2260 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2261 altivec_expression.h and altivec_registers.h.
2262
2263 2003-06-26 Andrew Cagney <cagney@redhat.com>
2264
2265 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2266 info->mach when MIPS16. Patch suggested by Fred Fish.
2267
2268 2003-06-26 Andrew Cagney <cagney@redhat.com>
2269
2270 * utils.c (internal_vproblem): Print the problem to a reason
2271 buffer and then pass to query. Make the msg variable more local.
2272
2273 2003-06-26 Andrew Cagney <cagney@redhat.com>
2274
2275 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2276 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2277 * gdbarch.h, gdbarch.c: Re-generate.
2278 * frame-base.c (default_frame_args_address): Update. Use
2279 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2280 not available.
2281 (default_frame_locals_address): Ditto for
2282 DEPRECATED_FRAME_LOCALS_ADDRESS.
2283 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2284 (vax_frame_num_args): Update.
2285 (vax_gdbarch_init): Update.
2286 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2287 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2288 * mcore-tdep.c (mcore_gdbarch_init): Update.
2289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2290 * ia64-tdep.c (ia64_gdbarch_init): Update.
2291 * symtab.h (address_class): Update comments.
2292 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2293 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2294 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2295 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2296 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2297 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2298 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2299 * alpha-mdebug-tdep.c: Update.
2300 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2301
2302 2003-06-26 Andreas Jaeger <aj@suse.de>
2303
2304 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2305 of SSE registers so that varargs functions work. Rework handling
2306 of passing arguments on the stack.
2307 (x86_64_store_return_value): Return double and float values in SSE
2308 register.
2309
2310 2003-06-24 Michael Chastain <mec@shout.net>
2311
2312 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2313 the "constructor breakpoints ignored" bug.
2314
2315 2003-06-25 David Carlton <carlton@kealia.com>
2316
2317 * MAINTAINERS: Update e-mail address.
2318
2319 2003-06-24 Jim Blandy <jimb@redhat.com>
2320
2321 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2322
2323 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2324 function.
2325 (ppc_linux_init_abi): Register it as the
2326 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2327
2328 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2329 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2330 method.
2331
2332 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2333 (ppc64_standard_linkage_target): Use it.
2334
2335 2003-06-23 Andrew Cagney <cagney@redhat.com>
2336
2337 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2338 for 0 "int0" and 4 "int32" sized registers.
2339 * gdbtypes.c (builtin_type_int0): Define.
2340 (build_gdbtypes): Initialize builtin_type_int0.
2341 * gdbtypes.h (builtin_type_int0): Declare.
2342
2343 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2344
2345 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2346 as characters are unsigned.
2347
2348 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2349
2350 PR gdb/1179
2351 * dwarfread.c (struct_type): Skip static fields without crashing.
2352
2353 2003-06-22 Andrew Cagney <cagney@redhat.com>
2354
2355 GDB 6.0 branch created.
2356 * README: Update.
2357 * PROBLEMS: Update. Empty.
2358 * NEWS: Update.
2359
2360 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2361
2362 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2363 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2364
2365 2003-06-22 Andrew Cagney <cagney@redhat.com>
2366
2367 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2368 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2369 Velikov.
2370
2371 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2372
2373 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2374 compilers.
2375
2376 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2377
2378 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2379 argument of val_print.
2380 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2381 to the address argument of baseclass_offset or target_read_memory.
2382 Do add it to the argument of cp_print_value_fields.
2383
2384 2003-06-21 Andrew Cagney <cagney@redhat.com>
2385
2386 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2387 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2388 instead of 0..NUM_REGS.
2389 (mips_register_reggroup_p): New function.
2390 (mips_pseudo_register_write): New function.
2391 (mips_pseudo_register_read): New function.
2392 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2393 based on the register's type.
2394 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2395 cooked.
2396 (mips_get_saved_register): Simplify. Assert that REGNO is a
2397 pseudo / cooked.
2398 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2399 (mips_register_type): Replace mips_register_virtual_type. Map
2400 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2401 when available.
2402 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2403 that the register is cooked / virtual.
2404 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2405 Only get the extra info when needed.
2406 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2407 (mips32_heuristic_proc_desc): Fetch the cooked register.
2408 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2409 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2410 (mips_print_register): Use gdbarch_register_type, instead of
2411 REGISTER_VIRTUAL_TYPE.
2412 (print_gp_register_row): Use gdbarch_register_type, instead of
2413 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2414 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2415 Print the pseudo / cooked registers.
2416 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2417 Print the pseudo / cooked registers.
2418 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2419 REG_NUM is pseudo / cooked.
2420 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2421 (mips_n32n64_xfer_return_value): Ditto.
2422 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2423 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2424 (mips_register_sim_regno): New function.
2425 (mips_gdbarch_init): Set deprecated_register_byte,
2426 register_group_p, pseudo_register_write, pseudo_register_read,
2427 register_sim_regno, and num_pseudo_regs. Set register_type,
2428 instead of register_virtual_type.
2429 * Makefile.in (mips-tdep.o): Update dependencies.
2430 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2431 REGISTER_VIRTUAL_TYPE.
2432 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2433 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2434 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2435 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2436 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2437
2438 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2439
2440 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2441 * cli/cli-cmds.c: Include "gdb_vfork.h".
2442 (shell_escape): Use vfork.
2443
2444 2003-06-21 Andrew Cagney <cagney@redhat.com>
2445
2446 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2447 32 bit floating-point register saves.
2448
2449 * frame.h (deprecated_unwind_get_saved_register): Delete.
2450 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2451 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2452 and deprecated_get_next_frame_hack instead of
2453 deprecated_unwind_get_saved_register.
2454
2455 * mips-tdep.c (mips_dump_tdep): Do not print
2456 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2457
2458 * frame.c (get_frame_register): New function.
2459 (frame_unwind_register_signed): New function.
2460 (get_frame_register_signed): New function.
2461 (frame_unwind_register_unsigned): New function.
2462 (get_frame_register_unsigned): New function.
2463 * frame.h: Add comments on naming schema.
2464 (get_frame_register, frame_unwind_register_signed): Declare.
2465 (get_frame_register_signed, get_frame_register_signed): Declare.
2466 (frame_unwind_register_unsigned): Declare.
2467 (get_frame_register_unsigned): Declare.
2468
2469 2003-06-20 Theodore A. Roth <troth@openavr.org>
2470
2471 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2472
2473 2003-06-20 Theodore A. Roth <troth@openavr.org>
2474
2475 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2476 (avr_read_sp): Ditto.
2477
2478 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2479
2480 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2481 * config/arm/nm-linux.h: Likewise.
2482 * config/arm/tm-linux.h: Likewise.
2483 * config/ia64/nm-linux.h: Likewise.
2484 * config/ia64/tm-ia64.h: Likewise.
2485 * config/s390/tm-linux.h: Likewise.
2486 * config/s390/tm-s390.h: Likewise.
2487 * s390-nat.c: Likewise.
2488 * s390-tdep.c: Likewise.
2489
2490 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2491 * config/ia64/linux.mt: Likewise.
2492 * config/m68k/linux.mh: Likewise.
2493 * config/mips/linux.mt: Likewise.
2494 * config/powerpc/linux.mh: Likewise.
2495 * config/sh/linux.mt: Likewise.
2496
2497 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2498
2499 * solib.c (solib_open): Change tests for whether to search
2500 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2501 comments.
2502
2503 2003-06-19 Theodore A. Roth <troth@openavr.org>
2504
2505 * avr-tdep.c (avr_frame_address): Delete function.
2506 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2507 set_gdbarch_frame_args_address.
2508
2509 2003-06-19 Andrew Cagney <cagney@redhat.com>
2510
2511 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2512 (REGISTER_CONVERT_FROM_TYPE): Delete.
2513 (mips_register_convert_to_type): Delete declaration.
2514 (mips_register_convert_from_type): Delete declaration.
2515 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2516 kernel/.
2517
2518 2003-06-19 Michael Snyder <msnyder@redhat.com>
2519
2520 * linux-nat.h: New file.
2521 * linux-nat.c: Include linux-nat.h.
2522 * lin-lwp.c: Include linux-nat.h.
2523 Move struct lwp_info def to linux-nat.h.
2524 * linux-proc.c: Include linux-nat.h.
2525 (linux_make_note_section): Iterate over lwps instead of threads.
2526 (linux_do_thread_registers): Use lwp instead of merged pid.
2527 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2528 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2529 Add dependency on linux_nat_h.
2530
2531 2003-06-19 Theodore A. Roth <troth@openavr.org>
2532
2533 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2534
2535 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2536
2537 * varobj.c (get_type, get_target_type): Use check_typedef.
2538
2539 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2540
2541 * breakpoint.c (insert_catchpoint): Call internal_error.
2542
2543 2003-06-19 Theodore A. Roth <troth@openavr.org>
2544
2545 * avr-tdep.c (avr_push_dummy_code): Delete function.
2546 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2547
2548 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2549
2550 * arch-utils.c (default_prepare_to_proceed): Remove.
2551 (generic_prepare_to_proceed): Remove.
2552 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2553 (generic_prepare_to_proceed): Remove prototype.
2554 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2555 * gdbarch.c: Regenerate.
2556 * gdbarch.h: Regenerate.
2557 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2558 * hppah-nat.c (hppa_switched_threads): Remove.
2559 * infrun.c (prepare_to_proceed): New static function, copied from
2560 generic_prepare_to_proceed. Remove select_it argument.
2561 (proceed): Call prepare_to_proceed.
2562 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2563 variables.
2564 (ptrace_wait): Don't set the removed variables.
2565 (hppa_switched_threads): Remove.
2566 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2567 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2568 (lin_lwp_prepare_to_proceed): Remove prototype.
2569 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2570 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2571
2572 2003-06-18 Theodore A. Roth <troth@openavr.org>
2573
2574 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2575 trad-frame.h.
2576 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2577 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2578 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2579 (AVR_PROLOGUE_*): Enumerate prologue types.
2580 (struct frame_extra_info): Remove.
2581 (struct avr_unwind_cache): Define.
2582 (avr_write_sp): Delete function.
2583 (avr_read_fp): Ditto.
2584 (avr_init_extra_frame_info): Ditto.
2585 (avr_pop_frame): Ditto.
2586 (avr_frame_saved_pc): Ditto.
2587 (avr_saved_pc_after_call): Ditto.
2588 (avr_push_return_address): Ditto.
2589 (avr_frame_chain): Ditto.
2590 (avr_store_struct_return): Ditto.
2591 (avr_push_arguments): Ditto.
2592 (avr_scan_prologue): Update comments. Changed to set up the info for
2593 cache unwinding. Now returns end of prologue PC.
2594 (avr_skip_prologue): Better handling of functions lacking a prologue
2595 by using avr_scan_prologue.
2596 (avr_scan_arg_moves): New function.
2597 (avr_saved_regs_unwinder): Ditto.
2598 (avr_frame_unwind_cache): Ditto.
2599 (avr_unwind_pc): Ditto.
2600 (avr_frame_this_id): Ditto.
2601 (avr_frame_prev_register): Ditto.
2602 (avr_frame_p): Ditto.
2603 (avr_frame_base_address ): Ditto.
2604 (avr_unwind_dummy_id): Ditto.
2605 (avr_push_dummy_code): Ditto.
2606 (push_stack_item): Ditto.
2607 (pop_stack_item): Ditto.
2608 (avr_push_dummy_call): Ditto.
2609 (struct stack_item): Define.
2610 (avr_frame_unwind): Declare structure.
2611 (avr_frame_base): Ditto.
2612 (avr_gdbarch_init): Remove calls to
2613 set_gdbarch_deprecated_init_frame_pc,
2614 set_gdbarch_deprecated_target_read_fp,
2615 set_gdbarch_deprecated_dummy_write_sp,
2616 set_gdbarch_deprecated_fp_regnum,
2617 set_gdbarch_deprecated_push_arguments,
2618 set_gdbarch_deprecated_push_return_address,
2619 set_gdbarch_deprecated_pop_frame,
2620 set_gdbarch_deprecated_store_struct_return,
2621 set_gdbarch_deprecated_frame_init_saved_regs,
2622 set_gdbarch_deprecated_init_extra_frame_info,
2623 set_gdbarch_deprecated_frame_chain,
2624 set_gdbarch_deprecated_frame_saved_pc,
2625 set_gdbarch_deprecated_saved_pc_after_call.
2626 Add calls to set_gdbarch_push_dummy_call,
2627 set_gdbarch_push_dummy_code,
2628 frame_unwind_append_predicate,
2629 frame_base_set_default,
2630 set_gdbarch_unwind_dummy_id,
2631 set_gdbarch_unwind_pc.
2632 Wrap a long line.
2633
2634 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2635
2636 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2637 registers for H8/300S.
2638 (h8300_print_registers_info): Ditto.
2639 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2640
2641 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2642
2643 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2644 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2645 (lin_lwp_wait): Likewise. Update comments.
2646 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2647 (pull_pid_from_list, linux_record_stopped_pid): New.
2648
2649 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2650
2651 * ada-lang.c (scan_discrim_bound): Name first argument.
2652 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2653 declared by ALL_BLOCK_SYMBOLS.
2654
2655 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2656
2657 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2658 ("regcache.h"): Include it.
2659 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2660
2661 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2662
2663 * NEWS: Mention gdbserver detach change and "disconnect" command.
2664 * infcmd.c (disconnect_command): New function.
2665 (_initialize_infcmd): Add ``disconnect'' command.
2666 * remote.c (remote_async_detach): Delete.
2667 (remote_detach): Merge remote_async_detach.
2668 (remote_disconnect): New.
2669 (init_remote_ops): Set to_disconnect.
2670 (init_remote_cisco_ops): Likewise.
2671 (init_remote_async_ops): Likewise. Use remote_detach.
2672 * target.c (cleanup_target): Default to_disconnect.
2673 (update_current_target): Inherit to_disconnect.
2674 (target_disconnect, debug_to_disconnect): New functions.
2675 (setup_target_debug): Set to_disconnect.
2676 * target.h (struct target_ops): Add to_disconnect.
2677 (target_disconnect): Add prototype.
2678
2679 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2680
2681 * breakpoint.c (insert_catchpoint): New function.
2682 (insert_breakpoints): Use catch_exceptions to call
2683 insert_catchpoint. Disable catchpoints if they fail to insert.
2684
2685 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2686
2687 * symfile.c (reread_symbols): Clear sym_private.
2688
2689 2003-06-17 Andrew Cagney <cagney@redhat.com>
2690
2691 * trad-frame.h (struct frame_info): Add opaque declaration.
2692 * remote-fileio.h (struct cmd_list_element): Add opaque
2693 declaration.
2694 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2695 comments.
2696
2697 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2698
2699 * remote.c (remote_prepare_to_store): Replace call to
2700 deprecated_read_register_bytes with multiple regcache_raw_read
2701 calls.
2702
2703 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2704
2705 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2706 (nto_find_and_open_solib): Likewise.
2707 (nto_init_solib_absolute_prefix): Likewise.
2708 (_initialize_nto_tdep): Fix indentation.
2709
2710 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2711
2712 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2713
2714 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2715
2716 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2717
2718 2003-06-17 Jim Blandy <jimb@redhat.com>
2719
2720 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2721
2722 2003-06-16 Theodore A. Roth <troth@openavr.org>
2723
2724 * avr-tdep.c (avr_extract_return_value): New function.
2725 (avr_gdbarch_init): Set extract_return_value method.
2726
2727 2003-06-16 Andrew Cagney <cagney@redhat.com>
2728
2729 * frame.h (deprecated_get_next_frame_hack): Declare.
2730 * frame.c (legacy_saved_regs_prev_register): Only require
2731 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2732 there are always saved regs.
2733 (deprecated_generic_get_saved_register): Do not require
2734 DEPRECATED_FRAME_INIT_SAVED_REGS.
2735 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2736 use frame ID unwind instead.
2737 (deprecated_get_next_frame_hack): New function.
2738
2739 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2740
2741 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2742 (h8300_push_dummy_call): ...this function. Some minor optimization.
2743 (h8300_push_return_address): Remove.
2744 (h8300_gdbarch_init): Remove calls to
2745 set_gdbarch_deprecated_dummy_write_sp,
2746 set_gdbarch_deprecated_push_arguments and
2747 set_gdbarch_deprecated_push_return_address.
2748 Add call to set_gdbarch_push_dummy_call.
2749
2750 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2751
2752 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2753 (E_PSEUDO_EXR_REGNUM): Ditto.
2754 (h8300_is_argument_spill): Check for instructions moving argument
2755 registers into safe registers.
2756 (h8300_skip_prologue): Check for stm instruction to push registers
2757 used for register variables onto stack.
2758 (gdb_print_insn_h8300): Remove.
2759 (h8300_examine_prologue): Add a comment.
2760 (h8300_register_name): Take pseudo registers into account.
2761 (h8300s_register_name): Ditto.
2762 (h8300sx_register_name): Ditto.
2763 (h8300_print_register): Ditto.
2764 (h8300_print_registers_info): Define "nice" printing order.
2765 (h8300_saved_pc_after_call): Take pseudo registers into account.
2766 (h8300_register_type): Ditto. Return type used for remote connection
2767 when requesting real CCR or EXR register, return actual type when
2768 requesting pseudo CCR or EXR.
2769 (h8300_pseudo_register_read): New function.
2770 (h8300_pseudo_register_write): Ditto.
2771 (h8300_dbg_reg_to_regnum): Ditto.
2772 (h8300s_dbg_reg_to_regnum): Ditto.
2773 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2774 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2775 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2776 set_gdbarch_print_insn architecture dependent.
2777 Call set_gdbarch_pseudo_register_read and
2778 set_gdbarch_pseudo_register_write.
2779 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2780
2781 2003-06-16 Andrew Cagney <cagney@redhat.com>
2782
2783 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2784 * gdbarch.h, gdbarch.c: Re-generate.
2785 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2786 * s390-tdep.c (s390_gdbarch_init): Update.
2787 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2788 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2789 * mips-tdep.c (mips_gdbarch_init): Update.
2790 * mcore-tdep.c (mcore_gdbarch_init): Update.
2791 * cris-tdep.c (cris_gdbarch_init): Update.
2792 * infcall.c (call_function_by_hand): Update.
2793 * ia64-tdep.c (ia64_push_arguments): Update comment.
2794 * frame.c (legacy_get_prev_frame): Do not assume
2795 SAVE_DUMMY_FRAME_TOS_P.
2796 * dummy-frame.c (find_dummy_frame): Update comment.
2797
2798 2003-06-16 Andrew Cagney <cagney@redhat.com>
2799
2800 * regcache.c (do_cooked_read): Do not use register_valid_p.
2801
2802 2003-06-15 Theodore A. Roth <troth@openavr.org>
2803
2804 * avr-tdep.c (avr_register_type): Remove a blank line.
2805 (avr_scan_prologue): Correct some comments.
2806
2807 2003-06-15 Theodore A. Roth <troth@openavr.org>
2808
2809 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2810 prologue types.
2811 Properly scan prologues generated by gcc with the -mcall-prologues
2812 option.
2813 Add code to scan -mcall-prologues for mega devices.
2814
2815 2003-06-15 Theodore A. Roth <troth@openavr.org>
2816
2817 * avr-tdep.c (avr_register_byte): Delete function.
2818 (avr_register_raw_size): Delete function.
2819 (avr_register_virtual_size): Delete function.
2820 (avr_register_virtual_type): Delete function.
2821 (avr_register_type): New function.
2822 (avr_address_to_pointer): Remove unused code.
2823 (avr_read_fp): Need to read FP as two separate bytes due to change to
2824 avr_register_type() usage.
2825 (avr_gdbarch_init): Don't set deprecated_register_size.
2826 Don't set deprecated_register_bytes.
2827 Don't set deprecated_register_byte.
2828 Don't set deprecated_register_raw_size.
2829 Don't set deprecated_max_register_raw_size.
2830 Don't set deprecated_register_virtual_size.
2831 Don't set deprecated_max_register_virtual_size.
2832 Don't set deprecated_register_virtual_type.
2833 Set register_type method.
2834
2835 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2836
2837 * Makefile.in (linux-nat.o): Add rule.
2838 * linux-nat.c: New file.
2839 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2840 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2841 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2842 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2843 * config/arm/linux.mh (NATDEPFILES): Likewise.
2844 * config/i386/linux.mh (NATDEPFILES): Likewise.
2845 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2846 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2847 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2848 * config/mips/linux.mh (NATDEPFILES): Likewise.
2849 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2850 * config/s390/s390.mh (NATDEPFILES): Likewise.
2851 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2852
2853 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2854
2855 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2856 replace out-of-date comment.
2857
2858 2003-06-15 Andrew Cagney <cagney@redhat.com>
2859
2860 * rdi-share/host.h (Fail): Change to a varargs function.
2861 * remote-rdi.c (Fail): Update.
2862
2863 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2864
2865 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2866 (i386_convert_register_p, i386_register_to_value,
2867 i386_register_from_value): Handle types longer than 8 bytes.
2868
2869 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2870
2871 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2872 Move floating-point code to new function in i387-tdep.c.
2873 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2874 New functions containing code moved here from i386-tdep.c.
2875 * i387-tdep.h: Add opaque declaration for `struct type'.
2876 (i387_register_to_value, i387_value_to_register): New prototypes.
2877 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2878 (x86_64_init_abi): Set convert_register_p, register_to_value and
2879 value_to_register here.
2880
2881 2003-06-14 Andrew Cagney <cagney@redhat.com>
2882
2883 * mips-tdep.c (mips_register_to_value): Make static.
2884 (mips_value_to_register): Make static.
2885 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2886 * ia64-tdep.c (ia64_register_raw_size): Make static.
2887 (ia64_register_virtual_size): Make static.
2888 (ia64_register_byte): Make static.
2889 * i387-tdep.c: Include "i387-tdep.h".
2890 (print_387_control_word): Delete function.
2891 (print_387_status_word): Delete function.
2892 (print_387_status_bits): Delete function.
2893 (print_387_control_bits): Delete function.
2894 * Makefile.in (i387-tdep.o): Update dependencies.
2895 * rdi-share/host.h (Fail): Declare.
2896 * remote-rdi.c (Fail): Update to match declaration.
2897
2898 2003-06-14 Andrew Cagney <cagney@redhat.com>
2899
2900 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2901 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2902 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2903 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2904 * README: Delete reference to remote-array.
2905 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2906 (remote-array.o): Delete target.
2907 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2908 * remote-array.c: Delete file.
2909
2910 2003-06-14 Andrew Cagney <cagney@redhat.com>
2911 Mark Kettenis <kettenis@gnu.org>
2912
2913 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2914 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2915 parameter with "frame".
2916 * gdbarch.h, gdbarch.c: Re-generate.
2917 * frame.h (put_frame_register): Declare.
2918 * frame.c (put_frame_register): New function.
2919 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2920 (legacy_register_to_value): Rewrite, use "frame" to get the
2921 register value.
2922 (legacy_value_to_register): Rewrite, use "frame" to find the
2923 register's location before storing.
2924 * arch-utils.h (legacy_convert_register_p): Update.
2925 (legacy_register_to_value, legacy_value_to_register): Update.
2926 * findvar.c (value_from_register): Rewrite, eliminate use of
2927 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2928 "frame" to REGISTER_TO_VALUE.
2929 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2930 lval_reg_frame_relative + lval_register branch of the switch. Do
2931 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2932 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2933 I386_EDI_REGNUM): New defines.
2934 (i386_next_regnum, i386_convert_register_p,
2935 i386_register_to_value, i386_value_to_register): New functions.
2936 (i386_register_convertible, i386_register_convert_to_virtual,
2937 i386_convert_to_raw): Remove functions.
2938 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2939 value_to_register instead of register_convertible,
2940 register_convert_to_virtual and register_convert_to_raw.
2941 * mips-tdep.c (mips_convert_register_p): New function.
2942 (mips_value_to_register): Replace mips_register_convert_from_type.
2943 (mips_register_to_value): Replace mips_register_convert_to_type.
2944 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2945 register_to_value.
2946 * alpha-tdep.c (alpha_convert_register_p): Update.
2947 (alpha_value_to_register): Update, store the register.
2948 (alpha_register_to_value): Update, fetch the register.
2949
2950 2003-06-14 Theodore A. Roth <troth@openavr.org>
2951
2952 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2953 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2954 Don't set deprecated_call_dummy_words.
2955 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2956 Don't set remote_translate_xfer_address.
2957 (avr_io_reg_read_command): Remove commented out debug printf.
2958 Wrap a long line.
2959
2960 2003-06-14 Theodore A. Roth <troth@openavr.org>
2961
2962 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2963 causes gdb to seg fault.
2964
2965 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2966
2967 * sparc-nat.c (fetch_inferior_registers): Correct
2968 a reference to "registers".
2969
2970 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2971
2972 * Makefile.in (exc_request_U_h): Define
2973 (exc_request_S_h): Likewise.
2974 (msg_reply_S_h): Likewise.
2975 (msg_U_h): Likewise.
2976 (notify_S_h): Likewise.
2977 (process_reply_S_h): Likewise.
2978 (gnu-nat.o): Depend on gdb_obstack_h
2979 * gnu-nat.c: Include "gdb_obstack.h".
2980
2981 2003-06-13 Andrew Cagney <cagney@redhat.com>
2982
2983 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2984 * gdbarch.h, gdbarch.c: Re-generate.
2985
2986 2003-06-13 Andrew Cagney <cagney@redhat.com>
2987
2988 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2989 when deprecated REGISTER macros can be deleted.
2990 * gdbarch.h, gdbarch.c: Re-generate.
2991
2992 2003-06-13 Jim Blandy <jimb@redhat.com>
2993
2994 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2995 Linux entry point symbols for _dl_debug_state, too.
2996
2997 2003-06-13 Andrew Cagney <cagney@redhat.com>
2998
2999 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3000 available, do not use the FP register, and always save the TOS.
3001 * dummy-frame.c (dummy_frame_this_id): Do not assert
3002 SAVE_DUMMY_FRAME_TOS.
3003 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3004 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3005 (i386_push_dummy_call): Add 8 to the returned SP.
3006 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3007 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3008 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3009 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3010 (x86_64_push_dummy_call): Return "sp + 16".
3011 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3012 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3013 save_dummy_frame_tos.
3014
3015 2003-06-13 Jim Blandy <jimb@redhat.com>
3016
3017 * frv-tdep.c (frv_use_struct_convention): Delete static
3018 declaration for function deleted in my change of 2003-06-12.
3019
3020 2003-06-13 Theodore A. Roth <troth@openavr.org>
3021
3022 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3023 (avr_pointer_to_address): Shift code addrs left 1 bit.
3024 (avr_convert_from_func_ptr_addr): Delete function since operation is
3025 better handled by avr_address_to_pointer and avr_pointer_to_address.
3026 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3027
3028 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3029
3030 From Kelley Cook <kelleycook@wideopenwest.com>:
3031 * configure.host: Accept i[34567]86 variants.
3032 * configure.tgt: Likewise.
3033 * nlm/configure.in: Likewise.
3034 * nlm/configure: Regenerated.
3035
3036 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3037
3038 * arm-tdep.c (solib-svr4.h): Dont' include it.
3039 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3040 * arm-linux-tdep.c: ... here. Make static.
3041 (arm_linux_init_abi): Register it.
3042 (solib-svr4.h): Include it.
3043 * Makefile.in: Update dependencies.
3044 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3045 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3046
3047 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3048
3049 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3050 indicate registers used for return values.
3051 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3052 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3053 members.
3054 (h8300_init_extra_frame_info): Ditto.
3055 (h8300_frame_locals_address): Removed.
3056 (h8300_frame_args_address): Removed.
3057 (h8300_extract_return_value): Use new regcache structure. Only care
3058 for 16 bit CPUs.
3059 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3060 (h8300_store_return_value): Use new regcache structure. Only care
3061 for 16 bit CPUs.
3062 (h8300h_store_return_value): Same function for 32 bit CPUs.
3063 (h8300_store_struct_return): Removed.
3064 (h8300_extract_struct_value_address): Use new regcache structure.
3065 (h8300h_extract_struct_value_address): Removed.
3066 (h8300_push_dummy_code): New function.
3067 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3068 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3069 set_gdbarch_store_return_value architecture dependent.
3070 Call set_gdbarch_push_dummy_code and
3071 set_gdbarch_extract_struct_value_address.
3072 Remove calls to set_gdbarch_frame_args_address,
3073 set_gdbarch_frame_locals_address,
3074 set_gdbarch_deprecated_store_struct_return,
3075 set_gdbarch_deprecated_extract_return_value,
3076 set_gdbarch_deprecated_extract_struct_value_address,
3077 set_gdbarch_deprecated_call_dummy_words and
3078 set_gdbarch_deprecated_sizeof_call_dummy_words.
3079
3080 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3081
3082 * h8300-tdep.c (h8300_register_byte): Remove.
3083 (h8300h_register_byte): Remove.
3084 (h8300_register_virtual_type): Remove. Substitute by...
3085 (h8300_register_type): New function.
3086 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3087 (h8300h_extract_struct_value_address): Ditto.
3088 (h8300_gdbarch_init): Drop calls to
3089 set_gdbarch_deprecated_register_byte and
3090 set_gdbarch_deprecated_register_virtual_type.
3091 Add call to set_gdbarch_register_type.
3092
3093 2003-06-13 Andrew Cagney <cagney@redhat.com>
3094
3095 * gdbarch.sh: Update comments on registers.
3096 (deprecated_register_byte): Rename register_byte.
3097 (deprecated_register_raw_size): Rename register_raw_size.
3098 (deprecated_register_virtual_size): Rename register_virtual_size.
3099 (deprecated_register_virtual_type): Rename register_virtual_type.
3100 * gdbarch.h, gdbarch.c: Re-generate.
3101 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3102 * vax-tdep.c (vax_gdbarch_init): Update.
3103 * v850-tdep.c (v850_gdbarch_init): Update.
3104 * sparc-tdep.c (sparc_gdbarch_init): Update.
3105 * sh-tdep.c (sh_gdbarch_init): Update.
3106 * s390-tdep.c (s390_gdbarch_init): Update.
3107 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3108 * ns32k-tdep.c: Update.
3109 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3110 * mips-tdep.c (mips_gdbarch_init): Update.
3111 * mcore-tdep.c (mcore_gdbarch_init): Update.
3112 * m68k-tdep.c (m68k_gdbarch_init): Update.
3113 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3114 * ia64-tdep.c (ia64_gdbarch_init): Update.
3115 * hppa-tdep.c (hppa_gdbarch_init): Update.
3116 * h8300-tdep.c (h8300_gdbarch_init): Update.
3117 * frv-tdep.c (frv_gdbarch_init): Update.
3118 * cris-tdep.c (cris_gdbarch_init): Update.
3119 * avr-tdep.c (avr_gdbarch_init): Update.
3120 * alpha-tdep.c (alpha_gdbarch_init): Update.
3121 * arm-tdep.c (arm_gdbarch_init): Update.
3122
3123 2003-06-13 Andrew Cagney <cagney@redhat.com>
3124
3125 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3126 mips_o32_use_struct_convention with always_use_struct_convention.
3127
3128 2003-06-12 David Carlton <carlton@kealia.com>
3129
3130 * cp-namespace.c (cp_set_block_scope): Comment out
3131 processing_has_namespace_info branch.
3132
3133 2003-06-12 Jim Blandy <jimb@redhat.com>
3134
3135 Recognize and skip 64-bit PowerPC Linux linkage functions.
3136 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3137 insn_pattern, insns_match_pattern, d_field, ds_field): New
3138 functions, macros, and types for working with PPC instructions.
3139 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3140 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3141 ppc64_skip_trampoline_code): New functions, variables, and macros
3142 for recognizing and skipping linkage functions.
3143 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3144 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3145
3146 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3147 register offsets for both the 32- and 64-bit interfaces.
3148
3149 Actually finish the job started by my change of 2003-05-29.
3150 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3151 other #definition of this.
3152 (ppc_linux_skip_trampoline_code): Remove declaration.
3153 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3154 static.
3155 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3156 method for GDBARCH.
3157
3158 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3159 'long' on ppc64-*-linux*.
3160
3161 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3162 isn't #defined, assume the register doesn't exist: act as if
3163 tdep->ppc_mq_regnum were -1.
3164
3165 * configure.host, configure.tgt: Add entries for
3166 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3167 powerpc/linux.mt.
3168 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3169 New files.
3170
3171 * arch-utils.c (always_use_struct_convention): New function.
3172 * arch-utils.h (always_use_struct_convention): New prototype.
3173 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3174 (alpha_gdbarch_init): Register always_use_struct_convention,
3175 instead of alpha_use_struct_convention.
3176 * cris-tdep.c (cris_use_struct_convention): Delete.
3177 (cris_gdbarch_init): Register always_use_struct_convention,
3178 instead of cris_use_struct_convention.
3179 * frv-tdep.c (frv_use_struct_convention): Delete.
3180 (frv_gdbarch_init): Register always_use_struct_convention,
3181 instead of frv_use_struct_convention.
3182 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3183 (h8300_gdbarch_init): Register always_use_struct_convention,
3184 instead of h8300_use_struct_convention.
3185 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3186 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3187 instead of mips_o32_use_struct_convention.
3188
3189 2003-06-12 Andrew Cagney <cagney@redhat.com>
3190
3191 * wince.c: Include "mips-tdep.h".
3192 * mips-tdep.h (mips_next_pc): Declare.
3193 * mcore-tdep.c: Make more local functions static.
3194 * Makefile.in (wince.o): Update dependencies.
3195
3196 2003-06-12 David Carlton <carlton@kealia.com>
3197
3198 * symtab.c (lookup_symbol_aux_minsyms): Replace
3199 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3200 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3201 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3202 SYMBOL_NATURAL_NAME.
3203
3204 2003-06-12 Andreas Schwab <schwab@suse.de>
3205
3206 * Makefile.in (tuiDisassem.o): Update dependencies.
3207
3208 2003-06-12 David Carlton <carlton@bactrian.org>
3209
3210 * symtab.h: Delete declaration of make_symbol_overload_list.
3211 Add declaration of lookup_partial_symbol.
3212 * symtab.c (remove_params): Move to cp-support.c.
3213 (overload_list_add_symbol, make_symbol_overload_list)
3214 (sym_return_val_size, sym_return_val_index): Ditto.
3215 (lookup_partial_symbol): Make extern.
3216 * cp-support.h: Add declaration of make_symbol_overload_list.
3217 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3218 symtab.h, and block.h.
3219 (remove_params): Move here from symtab.c.
3220 (overload_list_add_symbol, make_symbol_overload_list)
3221 (sym_return_val_size, sym_return_val_index): Ditto.
3222 * valops.c: Include cp-support.h.
3223 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3224 frame_h, and block_h.
3225 (valops.o): Depend on cp_support_h.
3226
3227 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3228
3229 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3230 substitute by NUM_REGS throughout.
3231 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3232 (h8300s_register_name): New function for H8S registers.
3233 (h8300sx_register_name): Ditto for H8SX registers.
3234 (h8300_print_register): Revise register printing, avoid depending
3235 on 32 bit long.
3236 (h8300_register_byte): Only care for H8/300 registers.
3237 (h8300h_register_byte): New function for any other architecture.
3238 (h8300_register_raw_size): Remove.
3239 (h8300_register_virtual_type): Revise to return actually useful
3240 type.
3241 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3242 (h8300h_extract_struct_value_address): New function for any other
3243 architecture.
3244 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3245 set_gdbarch_register_name, set_gdbarch_register_byte,
3246 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3247 Remove calls to set_gdbarch_deprecated_register_size,
3248 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3249 set_gdbarch_deprecated_max_register_raw_size,
3250 set_gdbarch_register_virtual_size and
3251 set_gdbarch_deprecated_max_register_virtual_size entirely.
3252 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3253 set_gdbarch_long_double_bit.
3254
3255 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3256
3257 * doublest.c (convert_doublest_to_floatformat): When dealing
3258 with the implied integer bit, only alter mant_bits if we are
3259 processing a full 32 bits of mantissa.
3260
3261 2003-06-11 David Carlton <carlton@bactrian.org>
3262
3263 * dictionary.h: New.
3264 * dictionary.c: New.
3265 * block.h: Add opaque declaration for struct dictionary.
3266 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3267 'sym' members.
3268 (BLOCK_DICT): New macro.
3269 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3270 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3271 BLOCK_SHOULD_SORT.
3272 (ALL_BLOCK_SYMBOLS): Update definition.
3273 * Makefile.in (SFILES): Add dictionary.c.
3274 (dictionary_h): New.
3275 (COMMON_OBS): Add dictionary.o.
3276 (dictionary.o): New.
3277 (ada-lang.o): Depend on dictionary_h.
3278 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3279 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3280 (mi-cmd-stack.o): Ditto.
3281 (gdbtk-cmds.o): Update dependencies.
3282 (gdbtk-stack.o): Ditto.
3283 * ada-lang.c: Include dictionary.h.
3284 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3285 (fill_in_ada_prototype, debug_print_block): Ditto.
3286 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3287 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3288 'is_sorted'.
3289 * mdebugread.c: Include dictionary.h.
3290 (struct parse_stack): Delete 'maxsyms' member.
3291 (parse_symbol): Update calls to new_block. Delete calls to
3292 shrink_block. Use dictionary methods.
3293 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3294 Update calls to new_symtab. Don't maintain maxsyms data.
3295 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3296 (add_symbol): Just call dict_add_symbol.
3297 (new_symtab): Delete 'maxsyms' argument.
3298 (new_symtab): Update calls to new_block.
3299 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3300 (shrink_block): Delete function.
3301 (fixup_sigtramp): Update call to new_block. Add symbol via
3302 dict_add_symbol.
3303 * jv-lang.c: Include dictionary.h.
3304 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3305 appropriately. Set class_symtab->free_func. Make sure the
3306 blockvector is big enough to hold two blocks.
3307 (add_class_symtab_symbol): Use dictionary methods.
3308 (free_class_block): New function.
3309 (type_from_class): Replace explicit iteration by
3310 ALL_BLOCK_SYMBOLS.
3311 * symtab.h (struct symtab): Replace 'free_ptr' method by
3312 'free_func'.
3313 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3314 sort_symtab_syms.
3315 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3316 sort_symtab_syms.
3317 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3318 Include dictionary.h.
3319 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3320 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3321 sort_symtab_syms.
3322 * objfiles.c: Include dictionary.h.
3323 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3324 * buildsym.c: Include dictionary.h.
3325 (finish_block): Use dictionary methods.
3326 (end_symtab): Set free_func to NULL, not free_ptr.
3327 * tracepoint.c: Include dictionary.h.
3328 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3329 (scope_info): Ditto.
3330 * stack.c: Include dictionary.h.
3331 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3332 (print_block_frame_labels, print_frame_arg_vars)
3333 (print_frame_args): Ditto.
3334 * symmisc.c (free_symtab_block): Use dictionary methods.
3335 (dump_symtab): Ditto.
3336 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3337 Include dictionary.h.
3338 * symfile.h: Delete declarations of sort_block_syms,
3339 sort_symtab_syms.
3340 * symfile.c (sort_block_syms): Delete.
3341 (sort_symtab_syms): Delete.
3342 * symtab.c: Include dictionary.h.
3343 (lookup_block_symbol): Use dictionary iterators.
3344 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3345 (search_symbols, make_symbol_completion_list): Ditto.
3346 (make_symbol_overload_list): Ditto.
3347 * valops.c (value_of_local): Use dict_empty.
3348 Include dictionary.h.
3349
3350 2003-06-11 J. Brobecker <brobecker@gnat.com>
3351
3352 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3353
3354 2003-06-11 David Carlton <carlton@bactrian.org>
3355
3356 * block.h (BLOCK_SHOULD_SORT): Delete.
3357 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3358 blocks.
3359 * ada-lang.c (ada_add_block_symbols): Ditto.
3360 * symfile.c (sort_block_syms): Delete.
3361 (sort_symtab_syms): Ditto.
3362 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3363 declarations.
3364 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3365 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3366 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3367 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3368 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3369 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3370 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3371
3372 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3373
3374 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3375 bits to 128.
3376
3377 2003-06-11 Andrew Cagney <cagney@redhat.com>
3378
3379 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3380 REGISTER_CONVERTIBLE.
3381 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3382 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3383 * gdbarch.h, gdbarch.c: Re-generate.
3384 * arch-utils.h (deprecated_register_convertible_not): Rename
3385 generic_register_convertible_not.
3386 * arch-utils.c (deprecated_register_convertible_not): Rename
3387 generic_register_convertible.
3388 (legacy_convert_register_p, legacy_register_to_value): Update.
3389 * sh-tdep.c (sh64_push_arguments): Update.
3390 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3391 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3392 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3393 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3394 * arch-utils.c (legacy_value_to_register): Update.
3395 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3396 (rs6000_register_convert_to_raw): Make parameter "from" const.
3397 * mips-tdep.c (mips_gdbarch_init): Update.
3398 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3399 * infcmd.c (default_print_registers_info): Update.
3400 * ia64-tdep.c (ia64_gdbarch_init): Update.
3401 (ia64_register_convert_to_raw): Make parameter "from" const.
3402 * i386-tdep.c (i386_gdbarch_init): Update.
3403 (i386_register_convert_to_raw): Update.
3404
3405 2003-06-11 Andrew Cagney <cagney@redhat.com>
3406
3407 * remote-fileio.c: Include "remote-fileio.h".
3408 * Makefile.in (remote-fileio.o): Update dependencies.
3409 (remote_fileio_h): Fix typo.
3410
3411 2003-06-11 Andrew Cagney <cagney@redhat.com>
3412
3413 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3414 (xstormy16_save_dummy_frame_tos): Make static.
3415 (_initialize_xstormy16_tdep): Add declaration.
3416 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3417 * v850-tdep.c: Make local functions static.
3418 (_initialize_v850_tdep): Add declaration.
3419 * sparc-tdep.c: Make local functions static.
3420 (_initialize_sparc_tdep): Add declaration.
3421 * sh-tdep.c: Make local functions static.
3422 (_initialize_sh_tdep): Add declaration.
3423 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3424 * s390-tdep.c: Make local functions static.
3425 (_initialize_s390_tdep): Add declaration.
3426 * dbxread.c (find_stab_function_addr): Make static.
3427 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3428 * ocd.c (_initialize_remote_ocd): Add declaration.
3429 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3430 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3431 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3432 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3433 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3434 * remote-array.c (_initialize_array): Add declaration.
3435 (_initialize_remote_monitors): Add declaration.
3436 * remote-mips.c: Make local functions static.
3437 (_initialize_remote_mips): Add declaration.
3438 * mcore-tdep.c: Make all local functions static.
3439 (_initialize_mcore_tdep): Add declaration.
3440 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3441 * abug-rom.c (_initialize_abug_rom): Add declaration.
3442 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3443 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3444 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3445 * remote-est.c (_initialize_est): Add declaration.
3446 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3447 (m68hc11_call_dummy_address): Make static.
3448 * ia64-tdep.c: Make local functions static.
3449 (_initialize_ia64_tdep): Add declaration.
3450 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3451 * monitor.c (monitor_wait_filter): Make static.
3452 (_initialize_remote_monitors): Add declaration.
3453 * remote-hms.c (_initialize_remote_hms): Add declaration.
3454 * remote-e7000.c (fetch_regs_from_dump): Make static.
3455 (expect_n): Make static.
3456 (_initialize_remote_e7000): Add declaration.
3457 * ser-e7kpc.c: Always include "defs.h".
3458 (_initialize_ser_e7000pc): Add declaration.
3459 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3460 * cris-tdep.c: Make all but one function static.
3461 (_initialize_cris_tdep): Add declaration.
3462 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3463 * solib.c (update_solib_list): Make static.
3464 (_initialize_solib): Add declaration.
3465 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3466 (_initialize_avr_tdep): Add declaration.
3467 * remote-rdi.c (voiddummy): Make static.
3468 (_initialize_remote_rdi): Add declaration.
3469 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3470 * remote-rdp.c (send_rdp): Make static.
3471 (_initialize_remote_rdp): Add declaration.
3472 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3473
3474 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3475
3476 * remote-fileio.c: Make ari happy.
3477
3478 2003-06-10 J. Brobecker <brobecker@gnat.com>
3479
3480 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3481 fetching the trailing bytes of the buffer we are about to write.
3482
3483 2003-06-10 Andrew Cagney <cagney@redhat.com>
3484
3485 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3486 * Makefile.in (remote-fileio.o): Update dependencies.
3487 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3488 include <setjmp.h>, or <sys/types.h> conditional on USG.
3489 (remote_fio_jmp_buf): Delete global variable.
3490
3491 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3492 Martin M. Hunt <hunt@redhat.com>
3493
3494 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3495 (SFILES): Add remote-fileio.c.
3496 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3497 dependencies for building remote.o.
3498 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3499 * remote-fileio.h: New header file defining remote File-I/O interface.
3500 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3501 static storage class.
3502 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3503 'F' packet.
3504 (_initialize_remote): Call initialize_remote_fileio().
3505 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3506 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3507 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3508 (captured_main): Initialize new ui_files.
3509 * ui-file.c: Add read and fgets input functions.
3510 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3511 (null_file_read): New function.
3512 (ui_file_read): New function.
3513 (set_ui_file_read): New function.
3514 (stdio_file_read): New function.
3515 * ui-file.h: New type ui_file_read_ftype.
3516 (set_ui_file_read): Declare.
3517 (ui_file_read): Declare.
3518
3519 2003-06-09 Andrew Cagney <cagney@redhat.com>
3520
3521 * frame.h (deprecated_unwind_get_saved_register): Rename
3522 generic_unwind_get_saved_register, update comments.
3523 * mips-tdep.c (mips_get_saved_register): Update.
3524 * frame.c (deprecated_unwind_get_saved_register): Update.
3525
3526 2003-06-09 Andrew Cagney <cagney@redhat.com>
3527
3528 * vax-tdep.c (vax_frame_locals_address): Delete function.
3529 (vax_gdbarch_init): Do not set frame_locals_address.
3530 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3531 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3532 * s390-tdep.c (s390_frame_args_address): Delete function.
3533 (s390_gdbarch_init): Do not set frame_args_address or
3534 frame_locals_address.
3535 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3536 (ns32k_gdbarch_init): Do not set frame_locals_address.
3537 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3538 (hppa_frame_locals_address): Delete function.
3539 (hppa_gdbarch_init): Do not set frame_args_address, or
3540 frame_locals_address.
3541 * arm-tdep.c (arm_frame_args_address): Delete.
3542 (arm_frame_locals_address): Delete.
3543 (arm_gdbarch_init): Do not set frame_args_address, or
3544 frame_locals_address.
3545
3546 2003-06-09 Andrew Cagney <cagney@redhat.com>
3547
3548 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3549 * gdbarch.h, gdbarch.c: Re-generate.
3550 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3551 * arch-utils.c (frame_num_args_unknown): Delete function.
3552 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3553 (frame_info): Use FRAME_NUM_ARGS_P.
3554 * arm-tdep.c (arm_frame_num_args): Delete function.
3555 (arm_gdbarch_init): Do not set frame_num_args.
3556 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3557 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3558 (hppa_gdbarch_init): Do not set frame_num_args.
3559 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3560 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3561 frame_num_args to default frame_num_args_unknown.
3562 * v850-tdep.c (v850_gdbarch_init): Ditto.
3563 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3564 * sh-tdep.c (sh_gdbarch_init): Ditto.
3565 * s390-tdep.c (s390_gdbarch_init): Ditto.
3566 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3567 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3568 * mips-tdep.c (mips_gdbarch_init): Ditto.
3569 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3570 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3571 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3572 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3573 * i386-tdep.c (i386_gdbarch_init): Ditto.
3574 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3575 * frv-tdep.c (frv_gdbarch_init): Ditto.
3576 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3577 * cris-tdep.c (cris_gdbarch_init): Ditto.
3578 * avr-tdep.c (avr_gdbarch_init): Ditto.
3579 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3580
3581 2003-06-09 Andrew Cagney <cagney@redhat.com>
3582
3583 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3584 (print_frame_args): Moved to "stack.c".
3585 * stack.c: Include "gdb_assert.h".
3586 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3587 (print_frame_args): Moved from "printcmd.c".
3588 * frame.h (print_frame_args): Delete declaration.
3589 * Makefile.in (stack.o): Update dependencies.
3590
3591 2003-06-08 Andrew Cagney <cagney@redhat.com>
3592
3593 * frame.c (get_prev_frame): Remove reference to
3594 frame_args_address_correct in comments.
3595 * frame-base.c (default_frame_args_address): Delete code
3596 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3597 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3598 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3599 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3600 (vax_frame_args_address_correct): Delete declaration.
3601
3602 2003-06-08 Andrew Cagney <cagney@redhat.com>
3603
3604 * gdbarch.sh (UNWIND_SP): Add.
3605 * gdbarch.h, gdbarch.c: Re-generate.
3606 * frame.c (frame_sp_unwind): New function.
3607 (get_frame_sp): New function.
3608 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3609 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3610 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3611 value.
3612 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3613 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3614
3615 2003-06-08 Andrew Cagney <cagney@redhat.com>
3616
3617 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3618 REMOTE_BREAKPOINT.
3619 * remote.c: Update.
3620 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3621 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3622 * config/m68k/tm-sun3.h: Update.
3623 * config/m68k/tm-m68klynx.h: Update.
3624 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3625
3626 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3627 trad_frame". Update comments.
3628 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3629 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3630 (trad_frame_register_value, trad_frame_prev_register): Update.
3631
3632 2003-06-08 Andrew Cagney <cagney@redhat.com>
3633
3634 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3635 from GCC's acinclude.m4.
3636 * configure.in: Check for getopt's delcaration.
3637 * aclocal.m4, config.in, configure: Re-generate.
3638 * main.c (error_init): Delete declaration.
3639 * defs.h (error_init): Declare.
3640 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3641 (rs6000_convert_from_func_ptr_addr): Make static.
3642 (_initialize_rs6000_tdep): Add declaration.
3643 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3644 (show_commands, set_verbose, show_history): Delete declaration.
3645 * top.h (set_verbose): Add declaration.
3646 (show_history, set_history, show_commands): Add declaration.
3647 (do_restore_instream_cleanup): Add declaration.
3648 * objc-lang.c (specialcmp): Make static.
3649 (print_object_command): Make static.
3650 (find_objc_msgsend): Make static.
3651 (find_objc_msgcall_submethod_helper): Make static.
3652 (find_objc_msgcall_submethod): Make static.
3653 (_initialize_objc_language): Add declaration.
3654 (find_implementation_from_class): Make static.
3655 (find_implementation): Make static.
3656 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3657 * objc-lang.h (lookup_struct_typedef): Add declaration.
3658 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3659 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3660 (do_restore_user_call_depth): Make static.
3661 (do_restore_instream_cleanup): Delete declaration.
3662 (dont_repeat): Delete declaration.
3663 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3664 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3665 * reggroups.c (_initialize_reggroup): Add declaration.
3666 * cp-support.c (_initialize_cp_support): Add declaration.
3667 * cp-abi.c (_initialize_cp_abi): Add declaration.
3668 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3669 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3670 (_initialize_gnu_v3_abi): Add declaration.
3671 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3672 (_initialize_gnu_v2_abi): Add declaration.
3673 * frame-base.c (_initialize_frame_base): Add declaration.
3674 * doublest.c (floatformat_from_length): Make static.
3675 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3676 * frame.c (create_sentinel_frame): Make static.
3677 (_initialize_frame): Add declaration.
3678 * top.c (do_catch_errors): Make static.
3679 (gdb_rl_operate_and_get_next_completion): Make static.
3680 * typeprint.c: Include "typeprint.h".
3681 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3682 (sentinel_frame_this_id): Make static.
3683 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3684 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3685 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3686 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3687 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3688 * maint.c (maintenance_print_architecture): Make static.
3689 * signals/signals.c (_initialize_signals): Add declaration.
3690 * std-regs.c (_initialize_frame_reg): Add declaration.
3691 * jv-exp.y (push_variable): ISO C definition.
3692 (push_qualified_expression_name): Ditto.
3693 * memattr.c (_initialize_mem): Add declaration.
3694 * remote.c (remote_check_watch_resources): Make static.
3695 (remote_stopped_by_watchpoint): Make static.
3696 (remote_stopped_data_address): Make static.
3697 * d10v-tdep.c (nr_dmap_regs): Make static.
3698 (a0_regnum): Make static.
3699 (d10v_frame_unwind_cache): Make static.
3700 (d10v_frame_p): Make static.
3701 * osabi.c (show_osabi): Make static.
3702 (_initialize_gdb_osabi): Add extern declaration.
3703 * gdbtypes.c (make_qualified_type): Make static.
3704 (safe_parse_type): Make static.
3705 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3706 * macrotab.c (macro_bcache_free): Make static.
3707 * interps.c (interp_set_quiet): Make static.
3708 (interpreter_exec_cmd): Make static.
3709 * stack.h (select_frame_command): New file.
3710 * stack.c: Include "stack.h".
3711 (select_frame_command_wrapper): Delete function.
3712 (select_frame_command): Make global.
3713 * infcall.c: Include "infcall.h".
3714 * linespec.c: Include "linespec.h".
3715 * symfile.c (sections_overlap): Make static.
3716 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3717 * charset.c (_initialize_charset): Add missing prototype.
3718 * regcache.c (init_legacy_regcache_descr): Make static.
3719 (do_regcache_xfree): Make static.
3720 (regcache_xfer_part): Make static.
3721 (_initialize_regcache): Add missing prototype.
3722 * breakpoint.c (parse_breakpoint_sals): Make static.
3723 (breakpoint_sals_to_pc): Make static.
3724 * interps.h (clear_interpreter_hooks): ISO C declaration.
3725 * Makefile.in (stack_h): Define.
3726 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3727 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3728
3729 2003-06-08 Andrew Cagney <cagney@redhat.com>
3730
3731 * Makefile.in (d10v-tdep.o): Update dependencies.
3732 (SFILES): Add trad-frame.c.
3733 (trad_frame_h): Define.
3734 (COMMON_OBS): Add trad-frame.o.
3735 (trad-frame.o): Specify dependencies.
3736 * d10v-tdep.c: Include "trad-frame.h".
3737 (saved_regs_unwinder): Delete function.
3738 (d10v_frame_prev_register): Use trad_frame_prev_register.
3739 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3740 trad_frame", delete "regs" and "prev_sp".
3741 (prologue_find_regs): Use trad-frame.
3742 * trad-frame.h, trad-frame.c: New files.
3743
3744 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3745
3746 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3747
3748 2003-06-07 Adam Fedor <fedor@gnu.org>
3749
3750 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3751 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3752 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3753 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3754 resolve_msgsend_super, resolve_msgsend_super_stret):
3755 Use it.
3756
3757 2003-06-07 Andrew Cagney <cagney@redhat.com>
3758
3759 * symfile.h: Re-indent, clean up comments.
3760
3761 2003-06-07 Andrew Cagney <cagney@redhat.com>
3762
3763 * inferior.h (deprecated_write_sp): Replace
3764 generic_target_write_sp.
3765 * regcache.c (deprecated_write_sp): Replace
3766 generic_target_write_sp.
3767 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3768 * vax-tdep.c (vax_gdbarch_init): Update.
3769 * v850-tdep.c (v850_gdbarch_init): Update.
3770 * sparc-tdep.c (sparc_gdbarch_init): Update.
3771 * sh-tdep.c (sh_gdbarch_init): Update.
3772 * s390-tdep.c (s390_gdbarch_init): Update.
3773 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3774 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3775 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3776 * mcore-tdep.c (mcore_gdbarch_init): Update.
3777 * m68k-tdep.c (m68k_gdbarch_init): Update.
3778 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3779 * ia64-tdep.c (ia64_gdbarch_init): Update.
3780 * h8300-tdep.c (h8300_gdbarch_init): Update.
3781 * frv-tdep.c (frv_gdbarch_init): Update.
3782 * cris-tdep.c (cris_gdbarch_init): Update.
3783 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3784
3785 2003-06-07 Andrew Cagney <cagney@redhat.com>
3786
3787 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3788 Assert that PC_REGNUM is valid.
3789 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3790
3791 2003-06-07 Andrew Cagney <cagney@redhat.com>
3792
3793 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3794 * gdbarch.h, gdbarch.c: Regenerate.
3795 * mn10300-tdep.c: Include "gdb_assert.h".
3796 (mn10300_read_fp): New function.
3797 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3798 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3799 * ia64-tdep.c: Include "gdb_assert.h".
3800 (ia64_read_fp): New function.
3801 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3802 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3803 * regcache.c (generic_target_read_sp): Delete function.
3804 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3805 * inferior.h (generic_target_read_sp): Delete declaration.
3806 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3807 generic_target_read_sp.
3808 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3809 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3810 * sh-tdep.c (sh_gdbarch_init): Ditto.
3811 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3812 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3813
3814 2003-06-07 Andrew Cagney <cagney@redhat.com>
3815
3816 * gdbarch.sh: Comment each field of startup_gdbarch.
3817 * gdbarch.h, gdbarch.c: Re-generate.
3818
3819 2003-06-07 Andrew Cagney <cagney@redhat.com>
3820
3821 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3822 * gdbarch.h, gdbarch.c: Re-generate.
3823 * regcache.c: Update comments on read_pc et.al.
3824 (generic_target_read_pc): Delete function.
3825 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3826 * inferior.h (generic_target_read_pc): Delete declaration.
3827 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3828 generic_target_read_pc.
3829 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3830 * sh-tdep.c (sh_gdbarch_init): Ditto.
3831 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3832 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3833
3834 2003-06-07 Andrew Cagney <cagney@redhat.com>
3835
3836 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3837 "index" with "special_local_sect". Use strcmp instead of STREQ.
3838 Append period to coments.
3839
3840 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3841
3842 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3843 (elfstab_offset_sections): Likewise.
3844 * gdb-stabs.h (stab_section_info): Likewise.
3845 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3846 * objfiles.c (objfile_relocate): Likewise.
3847 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3848 * remote.c (get_offsets): Likewise.
3849 (remote_cisco_objfile_relocate): Likewise.
3850 * somread.c (som_symfile_offsets): Likewise.
3851 * symfile.c (alloc_section_addr_info): New function.
3852 (build_section_addr_info_from_section_tab): Use it.
3853 (free_section_addr_info): Adjust.
3854 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3855 (syms_from_objfile): Allocate local_addr dynamically.
3856 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3857 dynamically.
3858 (add_symbol_file_command): Allocate sect_opts dynamically.
3859 (reread_symbols): Avoid use of SECT_OFF_MAX.
3860 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3861 (alloc_section_addr_info): Declare it.
3862 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3863 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3864 dynamically.
3865 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3866
3867 2003-06-06 Andrew Cagney <cagney@redhat.com>
3868
3869 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3870 (d10v_frame_unwind_cache): Do not set "return_pc".
3871
3872 2003-06-06 Michael Snyder <msnyder@redhat.com>
3873
3874 * h8300-tdep.c: Make tidy (long lines).
3875
3876 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3877
3878 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3879 to regcache_collect().
3880
3881 2003-06-05 J. Brobecker <brobecker@gnat.com>
3882
3883 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3884 pc_in_sigtramp multiarch method.
3885 (hppa_hpux_som_init_abi): Use it.
3886 (hppa_hpux_elf_init_abi): Likewise.
3887 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3888 macro has been multiarched.
3889 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3890 macro here, as hppa64 isn't multiarched yet.
3891
3892 2003-06-05 Andrew Cagney <cagney@redhat.com>
3893
3894 * Makefile.in (value_h): Add $(frame_h).
3895 * value.h: Include "frame.h".
3896 (struct value): Replace "frame_addr" with "frame_id".
3897 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3898 * values.c (allocate_value): Use VALUE_FRAME_ID.
3899 (value_copy): Use VALUE_FRAME_ID.
3900 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3901 * valops.c (value_assign): Update. Use frame_find_by_id.
3902
3903 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3904
3905 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3906 in each pass.
3907
3908 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3909
3910 * thread-db.c (check_event): For create/death event breakpoints,
3911 loop through all messages to ensure that we read the message
3912 corresponding to the breakpoint we are at.
3913
3914 2003-06-04 Michael Snyder <msnyder@redhat.com>
3915
3916 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3917
3918 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3919
3920 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3921 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3922 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3923 when handling .eh_frame sections.
3924
3925 2003-06-04 J. Brobecker <brobecker@gnat.com>
3926
3927 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3928 prepare_to_proceed procedure instead of the hppa-specific one.
3929 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3930
3931 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3932
3933 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3934 * config.in: Regenerated.
3935 * configure.in: Add test for syscall function and check for
3936 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3937 * configure: Regenerated.
3938 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3939 <sys/syscall.h>.
3940 (kill_lwp): New function that uses tkill syscall or
3941 uses kill, depending on whether threading model is nptl or not.
3942 All callers of kill() changed to use kill_lwp().
3943 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3944 see if all threads have already exited in the nptl model.
3945 (stop_and_resume_callback): New callback function used by the
3946 lin_lwp_wait thread exit handling code.
3947 (stop_wait_callback): Check for threads already having exited and
3948 delete such threads fromt the lwp list when discovered.
3949 (stop_callback): Don't assert retcode of kill call.
3950
3951 Roland McGrath <roland@redhat.com>
3952 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3953 nptl libthread_db.
3954
3955 2003-06-03 Richard Henderson <rth@redhat.com>
3956
3957 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3958 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3959 (alpha_sigtramp_frame_prev_register): Likewise.
3960 (alpha_heuristic_frame_prev_register): Likewise.
3961 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3962
3963 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3964 alpha-specific register id names.
3965 (alpha_mdebug_frame_unwind_cache): Likewise.
3966 (alpha_mdebug_frame_prev_register): Likewise.
3967
3968 2003-06-03 Richard Henderson <rth@redhat.com>
3969
3970 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3971 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3972 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3973 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3974 unwind routines.
3975 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3976 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3977 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3978
3979 * alpha-linux-tdep.c: Remove unnecessary includes.
3980 * Makefile.in (alpha-linux-tdep.o): Update.
3981
3982 2003-06-03 Richard Henderson <rth@redhat.com>
3983
3984 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3985 (alphabsd_fill_fpreg): Likewise.
3986
3987 2003-06-03 J. Brobecker <brobecker@gnat.com>
3988
3989 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3990 references to struct frame_info fields by calls to the equivalent
3991 accessors. Necessary now that frame_info is opaque.
3992
3993 2003-06-03 J. Brobecker <brobecker@gnat.com>
3994
3995 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3996 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3997 structure, field no longer exists.
3998
3999 2003-06-03 J. Brobecker <brobecker@gnat.com>
4000
4001 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4002 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4003
4004 2003-06-03 J. Brobecker <brobecker@gnat.com>
4005
4006 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4007 references to struct frame_info fields by calls to the equivalent
4008 accessors. Necessary now that frame_info is opaque.
4009
4010 2003-06-03 J. Brobecker <brobecker@gnat.com>
4011
4012 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4013 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4014 structure, field no longer exists.
4015
4016 2003-06-03 Theodore A. Roth <troth@openavr.org>
4017
4018 * remote.c (init_remote_state): Compute sizeof_g_packet by
4019 accumulation of the size of all registers instead of blindly using
4020 DEPRECATED_REGISTER_BYTES.
4021
4022 2003-06-03 Michael Snyder <msnyder@redhat.com>
4023
4024 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4025 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4026 for h8300sx.
4027
4028 2003-06-03 J. Brobecker <brobecker@gnat.com>
4029
4030 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4031 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4032
4033 2003-06-03 Andrew Cagney <cagney@redhat.com>
4034
4035 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4036 (sparc_convert_to_raw): Delete function.
4037 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4038 register_convert_to_virtual.
4039
4040 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4041
4042 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4043 layer if not dealing with a statically-linked threaded program.
4044
4045 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4046
4047 * solib.c (solib_open): Update comment to reflect actual search order.
4048
4049 2003-06-03 Andrew Cagney <cagney@redhat.com>
4050
4051 * frame.c (get_frame_memory_signed): New function.
4052 (get_frame_memory, get_frame_memory_unsigned): New function.
4053 (get_frame_arch): New function.
4054 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4055 (get_frame_memory, get_frame_unsigned_memory): Declare.
4056 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4057 get_frame_memory_unsigned and get_frame_arch.
4058 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4059
4060 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4061
4062 * MAINTAINERS (write after approval): Add myself.
4063
4064 2003-06-03 Jim Blandy <jimb@redhat.com>
4065
4066 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4067 elements of gregset_t are 64 bits each, but access registers
4068 are still 32 bits, so they're packed two per gregset_t
4069 element. Unpack/pack them properly.
4070
4071 2003-06-02 David Carlton <carlton@bactrian.org>
4072
4073 * linespec.c (find_methods): Break out code into
4074 add_matching_methods and add_constructors.
4075 (add_matching_methods): New.
4076 (add_constructors): Ditto.
4077
4078 2003-06-02 Andrew Cagney <cagney@redhat.com>
4079
4080 * sparc-tdep.c (sparc_print_registers): Delete call to
4081 REGISTER_CONVERTIBLE.
4082 (sparc_gdbarch_init): Do not set register_convertible.
4083 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4084 * frv-tdep.c (frv_gdbarch_init): Ditto.
4085 * cris-tdep.c (cris_gdbarch_init): Ditto.
4086
4087 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4088
4089 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4090 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4091 (syms_from_objfile): Ditto.
4092
4093 2003-06-03 Andreas Schwab <schwab@suse.de>
4094
4095 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4096 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4097
4098 2003-06-02 Richard Henderson <rth@redhat.com>
4099
4100 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4101 a member of all_reggroup.
4102
4103 2003-06-02 Richard Henderson <rth@redhat.com>
4104
4105 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4106 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4107 (alpha_lds, alpha_sts): New.
4108 (alpha_convert_register_p): Change from _register_convertible.
4109 (alpha_register_to_value): Change from _convert_to_virtual;
4110 restructure and fail for type sizes other than 4 or 8.
4111 (alpha_value_to_register): Similarly.
4112 (alpha_extract_return_value): Use alpha_sts.
4113 (alpha_store_return_value): Use alpha_lds.
4114 (alpha_gdbarch_init): Update hooks.
4115
4116 2003-06-02 Richard Henderson <rth@redhat.com>
4117
4118 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4119 regnum identifiers.
4120 (alpha_sigtramp_register_address): Likewise.
4121
4122 2003-06-02 Richard Henderson <rth@redhat.com>
4123
4124 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4125 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4126 * alpha-tdep.h: Declare them.
4127
4128 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4129 Remove zerobuf. Don't error on UNIQUE.
4130 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4131 (ALPHA_REGSET_UNIQUE): Provide default.
4132 (supply_gregset): Use alpha_supply_int_regs.
4133 (fill_gregset): Use alpha_fill_int_regs.
4134 (supply_fpregset): Use alpha_supply_fp_regs.
4135 (fill_fpregset): Use alpha_fill_fp_regs.
4136 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4137 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4138 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4139 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4140 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4141 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4142
4143 2003-06-02 Richard Henderson <rth@redhat.com>
4144
4145 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4146
4147 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4148 (alpha_store_return_value): Likewise.
4149
4150 2003-06-02 David Carlton <carlton@math.stanford.edu>
4151
4152 * block.c (contained_in): Add 'const' to arguments.
4153 (block_function): Ditto.
4154 * block.h: Update declarations for block_function and
4155 contained_in.
4156
4157 2003-06-02 David Carlton <carlton@math.stanford.edu>
4158
4159 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4160 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4161 * p-valprint.c (pascal_val_print): Ditto.
4162 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4163
4164 2003-06-02 Richard Henderson <rth@redhat.com>
4165
4166 * alpha-tdep.c (alpha_push_dummy_call): Use
4167 builtin_type_ieee_double_little instead of builtin_type_double.
4168
4169 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4170 sign-extension of 32-bit values.
4171 (alpha_store_return_value): Similarly.
4172
4173 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4174 (alpha_extract_return_value): Likewise.
4175 (alpha_store_return_value): Likewise.
4176
4177 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4178 (alpha_store_return_value): Error on IEEE Quad floats.
4179
4180 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4181 (alpha_extract_struct_value_address): Likewise.
4182 (alpha_store_return_value): Likewise.
4183 (alpha_store_struct_return): Remove.
4184 (alpha_gdbarch_init): Update hook registration to match.
4185
4186 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4187 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4188 macros where appropriate.
4189 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4190 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4191
4192 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4193 for SP, GP; void_func_ptr for PC; non-language-specific types
4194 for all others.
4195 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4196
4197 2003-06-02 Richard Henderson <rth@redhat.com>
4198
4199 * top.h (lim_at_start): Declare.
4200 * main.c (captured_main): Set it.
4201 * top.c (lim_at_start): Define.
4202 (command_loop): Use it instead of &environ.
4203 * event-top.c (command_handler): Likewise.
4204
4205 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4206
4207 * mipsnbsd-tdep.c: Update copyright years.
4208 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4209
4210 2003-06-01 Richard Henderson <rth@redhat.com>
4211
4212 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4213 (alpha-linux-tdep.o): Update dependencies.
4214 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4215 * alpha-mdebug-tdep.c: Remove unneeded includes.
4216
4217 2003-06-01 Richard Henderson <rth@redhat.com>
4218
4219 * alpha-tdep.c (alpha_register_reggroup_p): New.
4220 (alpha_gdbarch_init): Register it.
4221
4222 2003-06-02 Andrew Cagney <cagney@redhat.com>
4223
4224 * dwarfread.c: Eliminate "register"
4225 (decode_die_type): Eliminate assignment within "if".
4226 (struct_type, decode_array_element_type): Ditto.
4227 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4228 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4229 (decode_modified_type, completedieinfo): Ditto.
4230 * block.c: Eliminate "register".
4231 (blockvector_for_pc_sect): Eliminate assignment within "if".
4232 * cp-support.h (struct symbol): Opaque declaration.
4233 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4234
4235 2003-06-01 Richard Henderson <rth@redhat.com>
4236
4237 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4238 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4239
4240 2003-06-01 Adam Fedor <fedor@gnu.org>
4241
4242 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4243 * gdbarch.[ch]: Regenerate.
4244 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4245 (hppa_gdbarch_init): Set it in the gdbarch vector.
4246 * i386-tdep.c (i386_fetch_pointer_argument): New
4247 (i386_gdbarch_init): Set it into gdbarch.
4248 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4249 (rs6000_gdbarch_init): Set it in gdbarch.
4250 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4251 (sparc_gdbarch_init): Set it in gdbarch.
4252
4253 2003-06-01 Andrew Cagney <cagney@redhat.com>
4254
4255 * defs.h (extract_address): Delete declaration.
4256 * findvar.c (extract_address): Delete function.
4257 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4258 extract_address with the inline equivalent,
4259 extract_unsigned_integer.
4260 (xstormy16_extract_struct_value_address): Ditto.
4261 (xstormy16_pointer_to_address): Ditto.
4262 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4263 * v850-tdep.c (v850_push_arguments): Ditto.
4264 (v850_extract_return_value): Ditto.
4265 (v850_extract_struct_value_address): Ditto.
4266 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4267 (sparcnbsd_get_longjmp_target_64): Ditto.
4268 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4269 (get_longjmp_target): Ditto.
4270 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4271 (sh64_extract_struct_value_address): Ditto.
4272 (sh_push_arguments): Ditto.
4273 (sh64_push_arguments): Ditto.
4274 * remote-vxsparc.c (vx_read_register): Ditto.
4275 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4276 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4277 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4278 * mipsv4-nat.c (get_longjmp_target): Ditto.
4279 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4280 * mips-nat.c (get_longjmp_target): Ditto.
4281 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4282 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4283 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4284 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4285 * irix5-nat.c (get_longjmp_target): Ditto.
4286 * irix4-nat.c (get_longjmp_target): Ditto.
4287 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4288 (ia64_push_arguments): Ditto.
4289 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4290 * h8300-tdep.c (h8300_push_arguments): Ditto.
4291 (h8300_store_return_value): Ditto.
4292 (h8300_extract_struct_value_address): Ditto.
4293 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4294 (frv_push_arguments): Ditto.
4295 * avr-tdep.c (avr_pointer_to_address): Ditto.
4296 (avr_push_arguments): Ditto.
4297 * arm-tdep.c (arm_push_dummy_call): Ditto.
4298 (arm_get_longjmp_target): Ditto.
4299 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4300 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4301 (alpha_get_longjmp_target): Ditto.
4302
4303 * solib-irix.c (extract_mips_address): Inline extract_address,
4304 replacing it with extract_signed_integer.
4305 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4306 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4307 (first_link_map_member, open_symbol_file_object): Ditto.
4308 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4309 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4310 (LM_NEXT, LM_NAME): Ditto.
4311
4312 2003-06-01 Richard Henderson <rth@redhat.com>
4313
4314 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4315 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4316 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4317 (alpha_cannot_store_register): Likewise.
4318 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4319 * alpha-nat.c (supply_gregset): Likewise.
4320 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4321
4322 2003-06-01 Andrew Cagney <cagney@redhat.com>
4323
4324 * infcall.c (call_function_by_hand): Update comment on
4325 DEPRECATED_DUMMY_WRITE_SP.
4326
4327 * mips-tdep.c (mips_gdbarch_init): Do not set
4328 deprecated_dummy_write_sp.
4329 (mips_eabi_push_dummy_call): Set the SP register.
4330 (mips_o64_push_dummy_call): Set the SP register.
4331 (mips_o32_push_dummy_call): Set the SP register.
4332 (mips_n32n64_push_dummy_call): Set the SP register.
4333
4334 2003-06-01 Richard Henderson <rth@redhat.com>
4335
4336 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4337 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4338 (supply_gregset): Likewise.
4339 * alpha-tdep.c (alpha_store_return_value): Likewise.
4340 (alpha_get_longjmp_target): Likewise.
4341 (alpha_register_name): Constify array.
4342 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4343 deprecated_register_size, deprecated_register_bytes,
4344 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4345 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4346 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4347
4348 2003-06-01 Richard Henderson <rth@redhat.com>
4349
4350 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4351 from arg_reg_buffer to regcache to avoid double conversion.
4352
4353 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4354
4355 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4356 SP_REGNUM.
4357 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4358 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4359
4360 2003-06-01 Richard Henderson <rth@redhat.com>
4361
4362 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4363 (decode_frame_entry): Set it. Skip FDE augmentation.
4364
4365 2003-06-01 Richard Henderson <rth@redhat.com>
4366
4367 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4368 not overlapping PC_REGNUM.
4369
4370 2003-06-01 Richard Henderson <rth@redhat.com>
4371
4372 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4373 alpha_push_arguments. Don't dump argument register data to
4374 the target stack. Fix float and 128-bit long double semantics.
4375 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4376 (alpha_fix_call_dummy): Remove.
4377 (alpha_call_dummy_words): Remove.
4378 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4379
4380 2003-06-01 Richard Henderson <rth@redhat.com>
4381
4382 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4383
4384 2003-06-01 Andrew Cagney <cagney@redhat.com>
4385
4386 * mips-tdep.c (is_mips16_addr): New function.
4387 (make_mips16_addr, unmake_mips16_addr): New functions.
4388 (pc_is_mips16, mips_fetch_instruction): Use.
4389 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4390 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4391 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4392 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4393 TARGET_MIPS.
4394 * config/mips/tm-mips.h: Update copyright.
4395 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4396 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4397 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4398 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4399 (TM_PRINT_INSN_MACH): Delete.
4400 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4401
4402 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4403 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4404 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4405 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4406 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4407 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4408 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4409 mips*-*-riscos* and mips*-*-sysv* onto mips.
4410 * config/mips/mips64.mt: New file.
4411 * config/mips/mips.mt: New file.
4412 * config/mips/littlemips.mt: Delete file.
4413 * config/mips/decstation.mt: Delete file.
4414 * config/mips/vr4300el.mt: Delete file.
4415 * config/mips/vr5000el.mt: Delete file.
4416 * config/mips/vr5000.mt: Delete file.
4417 * config/mips/vr4100.mt: Delete file.
4418 * config/mips/vr4xxxel.mt: Delete file.
4419 * config/mips/vr4300.mt: Delete file.
4420 * config/mips/vr4xxx.mt: Delete file.
4421 * config/mips/bigmips.mt: Delete file.
4422 * config/mips/bigmips64.mt: Delete file.
4423 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4424 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4425 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4426 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4427 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4428 "tm-bigmips.h".
4429 * config/mips/tm-irix3.h: Ditto.
4430 * config/mips/tm-mipsv4.h: Ditto.
4431 * config/mips/tm-embed.h: Ditto.
4432 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4433 "tm-bigmips64.h".
4434 * config/mips/tm-vr5000el.h: Delete file.
4435 * config/mips/tm-tx39l.h: Delete file.
4436 * config/mips/tm-vr4300el.h: Delete file.
4437 * config/mips/tm-vr4xxxel.h: Delete file.
4438 * config/mips/tm-vr4300.h: Delete file.
4439 * config/mips/tm-vr4100.h: Delete file.
4440 * config/mips/tm-vr4xxx.h: Delete file.
4441 * config/mips/tm-vr5000.h: Delete file.
4442 * config/mips/tm-embedl64.h: Delete file.
4443 * config/mips/tm-embedl.h: Delete file.
4444 * config/mips/tm-embed64.h: Delete file.
4445 * config/mips/tm-bigmips64.h: Delete file.
4446 * config/mips/tm-bigmips.h: Delete file.
4447
4448 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4449
4450 Fix gdb/1216.
4451 * shnbsd-nat.c: Include "sh-tdep.h".
4452
4453 From Richard Henderson <rth@redhat.com>:
4454 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4455
4456 2003-05-31 Andrew Cagney <cagney@redhat.com>
4457
4458 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4459 forward declaration.
4460 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4461 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4462 (mips_find_saved_regs): Use set_reg_offset.
4463 (mips_frame_init_saved_regs): Delete function.
4464 (mips_pop_frame): Call mips_find_saved_regs instead of
4465 DEPRECATED_FRAME_INIT_SAVED_REGS.
4466
4467 2003-05-31 Andrew Cagney <cagney@redhat.com>
4468
4469 * mips-tdep.c (mips_gdbarch_init): Do not set
4470 deprecated_max_register_raw_size, register_virtual_size, and
4471 deprecated_max_register_virtual_size.
4472
4473 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4474
4475 * i386-tdep.c: Include "dwarf2-frame.h".
4476 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4477 * Makefile.in (i386-tdep.o): Update dependencies.
4478
4479 * dwarf2-frame.c, dwarf2-frame.h: New files.
4480 * Makefile.in (SFILES): Add dwarf2-frame.c.
4481 (dwarf2_frame_h): Define.
4482 (COMMON_OBS): Add dwarf2-frame.o.
4483 (dwarf2-frame.o): Add dependencies.
4484
4485 2003-05-31 Andreas Jaeger <aj@suse.de>
4486
4487 * x86-64-linux-nat.c: Fix comment.
4488
4489 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4490
4491 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4492 function signature.
4493
4494 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4495 have a sigcontext_addr handler.
4496 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4497 sigcontext_addr handler.
4498
4499 2003-05-31 Andrew Cagney <cagney@redhat.com>
4500
4501 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4502 (print_fp_register_row): Replace do_fp_register_row.
4503 (mips_print_fp_register): Add "file" and "frame" parameters.
4504 (mips_print_register): Add "file" and "frame" parameters.
4505 (mips_print_registers_info): Replace mips_do_registers_info.
4506 (mips_gdbarch_init): Set print_registers_info instead of
4507 deprecated_do_registers_info.
4508 (mips_read_fp_register_single): Add "frame" parameter.
4509 (mips_read_fp_register_double): Add "frame" parameter.
4510
4511 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4512
4513 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4514 Fixes a bug where GDB would print the wrong register names for
4515 targets without SSE.
4516
4517 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4518 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4519 registers.
4520
4521 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4522 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4523 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4524 TDEP->sc_sp_offset.
4525
4526 From Michal Ludvig <mludvig@suse.cz>:
4527 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4528 and `sc_num_regs'.
4529 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4530 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4531 I386_ST0_REGNUM): Move here from...
4532 * i386-tdep.c: ... here.
4533 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4534 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4535 registers if possible.
4536 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4537 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4538 Remove variables.
4539 (i386bsd_sc_reg_offset): New variable.
4540 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4541 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4542 TDEP->sc_sp_offset.
4543 (i386fbsd_sc_reg_offset): New variable.
4544 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4545 TDEP->sc_num_regs.
4546 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4547 variables.
4548 (i386fbsd4_sc_reg_offset): New variable.
4549 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4550 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4551 TDEP->sc_sp_offset.
4552 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4553 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4554 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4555 Remove variables.
4556 (i386nbsd_sc_reg_offset): New variable.
4557 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4558 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4559 TDEP->sc_sp_offset.
4560 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4561 Remove variables.
4562 (i386obsd_sc_reg_offset): New variable.
4563 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4564 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4565 TDEP->sc_sp_offset.
4566 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4567 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4568 for frame pointer offset in `struct sigcontext'.
4569
4570 2003-05-31 Andrew Cagney <cagney@redhat.com>
4571
4572 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4573 architecture methods call_dummy_words, sizeof_call_dummy_words,
4574 push_return_address, store_struct_return, and fix_call_dummy. Set
4575 push_dummy_call instead of deprecated_push_arguments.
4576 (mips_store_struct_return): Delete function.
4577 (mips_fix_call_dummy): Delete function.
4578 (mips_push_return_address): Delete function.
4579 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4580 RA_REGNUM and T9_REGNUM.
4581 (mips_n32n64_push_dummy_call): Ditto for
4582 mips_n32n64_push_arguments.
4583 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4584 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4585
4586 2003-05-31 Andrew Cagney <cagney@redhat.com>
4587
4588 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4589 "dummy_addr" to "bp_addr".
4590 * infcall.c (call_function_by_hand): Pass "funaddr" to
4591 gdbarch_push_dummy_call.
4592 * gdbarch.h, gdbarch.c: Re-generate.
4593 * i386-tdep.c (i386_push_dummy_call): Update.
4594 * arm-tdep.c (arm_push_dummy_call): Update.
4595 * d10v-tdep.c (d10v_push_dummy_call): Update.
4596
4597 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4598
4599 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4600 variable declarations.
4601 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4602 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4603 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4604 x86_64_init_frame_pc, x86_64_init_frame_pc,
4605 x86_64_function_has_prologue): Remove prototypes.
4606 (X86_64_NUM_GREGS): New define.
4607 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4608 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4609 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4610 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4611 XMM1_REGNUM): Remove defines.
4612 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4613 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4614 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4615 X86_64_XMM1_REGNUM): New defines.
4616 (struct x86_64_register_info): Renamed from `struct
4617 register_info'. Remove `size' member.
4618 (x86_64_register_info_table): Remove variable.
4619 (x86_64_register_info): New variable.
4620 (X86_64_NUM_REGS): New define.
4621 (X86_64_NUM_GREGS): Remove define.
4622 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4623 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4624 Remove variables.
4625 (x86_54_dwarf2_reg_to_regnum): Remove function.
4626 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4627 (x86_64_dwarf_reg_to_regnum): New function.
4628 (x86_64_register_name): Rewrite.
4629 (x86_64_register_raw_size): Remove function.
4630 (x86_64_register_byte_table): Remove variable.
4631 (x86_64_register_byte): Remove function.
4632 (x86_64_register_virtual_type): Remove function.
4633 (x86_64_register_type): New function.
4634 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4635 x86_64_register_convert_to_raw): Remove functions.
4636 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4637 (x86_64_use_struct_convention): Make static. Adjust for renamed
4638 defines.
4639 (x86_64_frame_init_saved_regs): Remove function.
4640 (x86_64_push_arguments): Make static. Change to accept a regcache
4641 as argument.
4642 (x86_64_store_return_value, x86_64_extract_return_value): Make
4643 static. Rewrite based on i386 counterparts.
4644 (x86_64_push_dummy_call): New function.
4645 (X86_64_NUM_SAVED_REGS): New define.
4646 (x86_64_register_number): Remove function.
4647 (x86_64_store_struct_return): Remove function.
4648 (x86_64_frameless_function_invocation,
4649 x86_64_function_has_prologue): Remove functions.
4650 (PROLOG_BUFSIZE): Remove define.
4651 (struct x86_64_frame_cache): New structure.
4652 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4653 x86_64_frame_cache, x86_64_frame_this_id,
4654 x86_64_frame_prev_register, x86_64_frame_p,
4655 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4656 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4657 functions.
4658 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4659 variables.
4660 (x86_64_skip_prologue): Rewrite in terms of
4661 x86_64_analyze_prologue.
4662 (x86_64_frame_base_address): New function.
4663 (x86_64_frame_base): New variable.
4664 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4665 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4666 set deprecated_fp_regnum, deprecated_register_size,
4667 deprecated_register_bytes, register_raw_size, register_byte,
4668 register_virtual_type, register_convertiable,
4669 register_convert_to_virtual, convert_to_raw,
4670 deprecated_get_saved_register, deprecated_target_read_fp,
4671 deprecated_push_arguments, deprecated_push_return_address,
4672 deprecated_pop_frame, deprecated_store_struct_return,
4673 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4674 frameless_function_invocation, deprecated_frame_saved_pc,
4675 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4676 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4677 deprecated_init_frame_pc and virtual_frame_pointer. Call
4678 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4679 and x86_64_frame_p. Call frame_base_set_default to register
4680 x86_64_frame_base.
4681 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4682 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4683 (_initialize_x86_64_tdep): Remove function.
4684 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4685 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4686 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4687 define.
4688 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4689 (x86_64_linux_sigcontext_addr): Rewrite.
4690 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4691 x86_64_linux_frame_saved_pc): Remove functions.
4692 (x86_64_linux_pc_in_sigtramp): Renamed from
4693 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4694 trampoline.
4695 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4696 Remove_functions.
4697 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4698 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4699 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4700 (x86_64_regmap): Rename to regmap.
4701 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4702 x86_64_num_gregs.
4703 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4704 x86_64_regmap.
4705 (x86_64_fxsave_offset): Remove function.
4706 (supply_fpregset): Simply call x86_64_supply_fxsave.
4707 (fill_fpregset): Simply call x86_64_fill_fxsave.
4708 (fetch_inferior_registers, store_inferior_registers): Avoid
4709 asignment in if-statement.
4710 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4711 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4712 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4713 (fetch_core_registers): Remove function.
4714 (linux_elf_core_fns): Remove.
4715 (offsetoff): Don't define.
4716 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4717 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4718 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4719 add core-regset.o.
4720 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4721 protection against multiple includes instead of NM_X86_64_h. Add
4722 various comments. Include "config/nm-linux.h". Don't include
4723 <signal.h>.
4724 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4725 GET_THREAD_SIGNALS): Remove defines.
4726 (x86_64_register_u_addr, kernel_u_size,
4727 lin_thread_get_thread_signals): Remove prototypes.
4728 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4729 [HAVE_LINK_H]: Don't include "solib.h".
4730 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4731 * config/i386/tm-x86-64linux.h: Fix comments.
4732 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4733 x86-64-tdep.o): Update dependencies.
4734
4735 2003-05-30 Andrew Cagney <cagney@redhat.com>
4736
4737 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4738 Change parameter type to a "struct regcache *".
4739
4740 * gdbarch.sh: Regardless of the multi-arch level, always define
4741 the macro when not already defined.
4742 * gdbarch.h, gdbarch.c: Re-generate.
4743
4744 2003-05-30 Richard Henderson <rth@redhat.com>
4745
4746 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4747 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4748 (alpha_mdebug_frame_this_id): Likewise.
4749 (alpha_mdebug_frame_prev_register): Likewise.
4750 (alpha_mdebug_frame_base_address): Likewise.
4751 (alpha_mdebug_frame_locals_address): Likewise.
4752 (alpha_mdebug_frame_args_address): Likewise.
4753 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4754 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4755 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4756 loop increment.
4757 (alpha_heuristic_frame_this_id): Make static.
4758 (alpha_heuristic_frame_prev_register): Likewise.
4759 (alpha_heuristic_frame_base_address): Likewise.
4760 * alpha-tdep.h: Update.
4761
4762 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4763
4764 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4765 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4766 defenitions.
4767 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4768 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4769 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4770 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4771 I386_ST0_REGNUM): New defines.
4772 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4773 codestream_get): Remove define.
4774 (codestream_next_addr, condestream_addr, condestream_buf,
4775 codestream_off, codestream_cnt): Remove variables.
4776 (codestream_fill, codestream_seek, codestream_read): Remove
4777 functions.
4778 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4779 functionality.
4780 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4781 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4782 i386_frame_saved_pc, i386_saved_pc_after_call,
4783 i386_frame_num_args, i386_frame_init_saved_regs,
4784 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4785 i386_push_arguments): Remove functions.
4786 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4787 functionality. Use i386_analyze_prologue instead of
4788 i386_get_frame_setup.
4789 (I386_NUM_SAVED_REGS): New define.
4790 (struct i386_frame_cache): New structure.
4791 (i386_alloc_frame_cache, i386_analyze_struct_return,
4792 i386_skip_probe, i386_analyze_frame_setup,
4793 i386_analyze_register_saves, i386_analyze_prologue,
4794 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4795 i386_frame_prev_register, i386_sigtramp_frame_cache,
4796 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4797 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4798 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4799 New functions.
4800 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4801 New variables.
4802 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4803 I386_EAX_REGNUM and I386_EDX_REGNUM.
4804 (i386_extract_return_value, i386_store_return_value): Use
4805 I386_ST0_REGNUM where appropriate.
4806 (i386_extract_struct_value_address): Rewrite to use extract_address.
4807 (i386_svr4_pc_in_sigtramp): Add comment.
4808 (i386_svr4_sigcontext_addr): Rewrite.
4809 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4810 TDEP->sc_sp_offset.
4811 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4812 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4813 of new defines. Set push_dummy_call, don't set
4814 deprecated_push_arguments, deprecated_push_return_address,
4815 deprecated_pop_frame. Don't set parm_boundary. Don't set
4816 deprecated_frame_chain, deprecated_frame_saved_pc,
4817 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4818 save_dummy_frame_tos, unwind_pc. Call
4819 frame_unwind_append_predicate and frame_base_set_default. Don't
4820 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4821 Don't set frameless_function_invocation. Don't set
4822 deprecated_register_bytes, deprecated_register_size,
4823 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4824 * i386-linux-tdep.c: Fix formatting in some comments.
4825 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4826 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4827 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4828 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4829 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4830 redundant parentheses.
4831 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4832 (i386_linux_sigcontext_addr): Use it. Rewrite.
4833 (find_minsym_and_objfile): Change name of second argument.
4834 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4835 changed. Use frame_pc_unwind instead of
4836 DEPRECATED_SAVED_PC_AFTER_CALL.
4837 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4838 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4839 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4840 unwinder.
4841 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4842 "dummy-frame.h".
4843 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4844 (_initialize_i386_cygwin_tdep): New prototype.
4845 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4846 deprecated_frame_chain_valid.
4847 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4848 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4849 Rely on the SVR4 defaults.
4850 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4851 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4852
4853 2003-05-30 Andrew Cagney <cagney@redhat.com>
4854
4855 * infcall.c (call_function_by_hand): Always call
4856 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4857
4858 2003-05-30 Richard Henderson <rth@redhat.com>
4859
4860 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4861 increment.
4862
4863 2003-05-29 Jim Blandy <jimb@redhat.com>
4864
4865 Use gdbarch methods for solib stuff on PowerPC Linux.
4866 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4867 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4868 show through.
4869 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4870 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4871 giving the same effect as the #definitions above.
4872
4873 2003-05-29 Adam Fedor <fedor@gnu.org>
4874
4875 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4876 (find_implementation_from_class): Replace it with the standard
4877 case i.e. do nothing.
4878
4879 2003-05-29 Richard Henderson <rth@redhat.com>
4880
4881 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4882 (alpha_linux_sigtramp_offset): Use it. Make static.
4883 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4884 update for new frame model.
4885 * alpha-mdebug-tdep.c: New file.
4886 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4887 (alpha_osf1_init_abi): Install it.
4888 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4889 (linked_proc_desc_table): Remove.
4890 (alpha_frame_past_sigtramp_frame): Remove.
4891 (alpha_dynamic_sigtramp_offset): Remove.
4892 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4893 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4894 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4895 (push_sigtramp_desc): Remove.
4896 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4897 (alpha_cannot_store_register): Likewise.
4898 (alpha_sigcontext_addr): Remove.
4899 (alpha_find_saved_regs): Remove.
4900 (alpha_frame_init_saved_regs): Remove.
4901 (alpha_init_frame_pc_first): Remove.
4902 (read_next_frame_reg): Remove.
4903 (alpha_frame_saved_pc): Remove.
4904 (alpha_saved_pc_after_call): Remove.
4905 (temp_proc_desc, temp_saved_regs): Remove.
4906 (alpha_about_to_return): Remove.
4907 (cached_proc_desc): Remove.
4908 (alpha_frame_chain): Remove.
4909 (alpha_print_extra_frame_info): Remove.
4910 (alpha_init_extra_frame_info): Remove.
4911 (alpha_frame_locals_address): Remove.
4912 (alpha_frame_args_address): Remove.
4913 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4914 (alpha_push_dummy_frame): Remove.
4915 (alpha_pop_frame): Remove.
4916 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4917 (alpha_read_insn): New.
4918 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4919 for different insn encodings.
4920 (alpha_in_lenient_prologue): Remove.
4921 (struct alpha_sigtramp_unwind_cache): New.
4922 (alpha_sigtramp_frame_unwind_cache): New.
4923 (alpha_sigtramp_register_address): New.
4924 (alpha_sigtramp_frame_this_id): New.
4925 (alpha_sigtramp_frame_prev_register): New.
4926 (alpha_sigtramp_frame_unwind): New.
4927 (alpha_sigtramp_frame_p): New.
4928 (struct alpha_heuristic_unwind_cache): New.
4929 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4930 don't count nop insns that occur between functions.
4931 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4932 heuristic_proc_desc, but without the mdebug wrapping.
4933 (alpha_heuristic_frame_this_id): New.
4934 (alpha_heuristic_frame_prev_register): New.
4935 (alpha_heuristic_frame_unwind): New.
4936 (alpha_heuristic_frame_p): New.
4937 (alpha_heuristic_frame_base_address): New.
4938 (alpha_heuristic_frame_base): New.
4939 (alpha_unwind_dummy_id): New.
4940 (alpha_unwind_pc): New.
4941 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4942 frame related deprecated initializations; install replacements.
4943 (alpha_dump_tdep): Remove.
4944 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4945 (alpha_read_insn, alpha_after_prologue,
4946 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4947 alpha_heuristic_frame_prev_register,
4948 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4949 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4950 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4951 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4952
4953 2003-05-29 Andrew Cagney <cagney@redhat.com>
4954
4955 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4956 dependant on the availability of ASSERT_FUNCTION.
4957 (ASSERT_FUNCTION): Do not define when there is no function name.
4958
4959 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4960
4961 From Jimi X <jimix@watson.ibm.com>:
4962 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4963
4964 2003-05-28 Jim Blandy <jimb@redhat.com>
4965
4966 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4967 argument to ptrace to int; the system headers should give it the
4968 right type, and pointers don't fit in ints on powerpc64-*-*.
4969
4970 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4971
4972 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4973 DW_TAG_catch_block.
4974
4975 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4976
4977 * stabsread.c (dbx_lookup_type): Make static.
4978 (read_type): Ditto.
4979 (add_undefined_type): Ditto.
4980 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4981 not export.
4982
4983 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4984
4985 * hpread.c (hpread_has_name): Make static.
4986 (hpread_psymtab_to_symtab): Ditto.
4987 (file_exists): Ditto.
4988 (hpread_call_pxdb): Ditto.
4989 (hpread_pxdb_needed): Ditto.
4990 (hpread_quick_traverse): Ditto.
4991 (hpread_get_header): Ditto.
4992 (hpread_get_lntt): Ditto.
4993 (hpread_get_slt): Ditto.
4994 (class_of): Ditto.
4995
4996 2003-05-25 Andreas Schwab <schwab@suse.de>
4997
4998 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4999 stack_align and deprecated_extra_stack_alignment_needed.
5000 (m68k_stack_align): Delete.
5001
5002 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5003 (m68k_register_virtual_size): Likewise.
5004 (altos_skip_prologue): Remove obsolete function.
5005 (isi_frame_num_args): Likewise.
5006 (news_frame_num_args): Likewise.
5007 (m68k_fix_call_dummy): Make static.
5008 (m68k_push_dummy_frame): Likewise.
5009 (m68k_pop_frame): Likewise.
5010 (m68k_skip_prologue): Likewise.
5011 (m68k_frame_init_saved_regs): Likewise.
5012 (m68k_saved_pc_after_call): Likewise.
5013 (m68k_get_longjmp_target): Make multi-arch.
5014 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5015 structure. Register m68k_get_longjmp_target if enabled.
5016 * m68k-tdep.h (struct gdbarch_tdep): Define.
5017 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5018
5019 * Makefile.in (config.status): Also depend on configure.tgt
5020 and configure.host.
5021 (m68klinux-tdep.o): Update dependencies.
5022 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5023 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5024 (M68K_LINUX_JB_PC): Define.
5025 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5026 and take additional parameter.
5027 (m68k_linux_sigtramp_saved_pc): Update.
5028 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5029 m68k_linux_pc_in_sigtramp, in_plt_section,
5030 find_solib_trampoline_target.
5031 * config/m68k/tm-linux.h: Don't include any tm headers.
5032 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5033 (JB_ELEMENT_SIZE): Likewise.
5034 (JB_PC): Likewise.
5035 (GET_LONGJMP_TARGET): Likewise.
5036 (IN_SIGTRAMP): Likewise.
5037 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5038
5039 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5040
5041 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5042 (sparc32_push_arguments): Re-implement by calling
5043 sparc32_do_push_arguments.
5044
5045 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5046
5047 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5048 SPARC_O1_REGNUM): New defines.
5049 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5050 (sparc32_store_return_value): New function.
5051 (sparc_extract_struct_value_address): Rewrite to operate on a
5052 regcache.
5053 (sparc_gdbarch_init): Don't set
5054 deprecated_extract_struct_value_address. Set
5055 extract_struct_value_address instead. Don't set
5056 deprecated_extract_return_value and deprecated_store_return_value
5057 for 32-bit targets. Set extract_return_value and
5058 store_return_value instead.
5059 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5060 DEPRECTAED_EXTRACT_RETURN_VALUE,
5061 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5062 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5063 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5064 (sparc_store_return_value): Remove prototype.
5065 (sparc32_store_return_value): New prototype.
5066 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5067 Adjust prototypes.
5068
5069 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5070
5071 * sparcnbsd-tdep.c: Include "gdb_string.h".
5072
5073 2003-05-23 Andrew Cagney <cagney@redhat.com>
5074
5075 * p-valprint.c (pascal_val_print): Replace extract_address with
5076 the inline equivalent extract_unsigned_integer.
5077 * jv-valprint.c (java_value_print): Ditto.
5078 * ada-valprint.c (ada_val_print_1): Ditto.
5079 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5080
5081 2003-05-23 Theodore A. Roth <troth@openavr.org>
5082
5083 * blockframe.c (frameless_look_for_prologue): Remove unused
5084 after_prologue variable.
5085
5086 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5087
5088 * blockframe.c (get_pc_function_start): Rewrite to avoid
5089 asignments in if-statements.
5090
5091 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5092
5093 Committed by Elena Zannoni <ezannoni@redhat.com>.
5094 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5095 files, don't relocate absolute symbols (and do use mst_abs).
5096
5097 2003-05-23 Andrew Cagney <cagney@redhat.com>
5098
5099 * objc-lang.c: Include "gdb_assert.h".
5100 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5101 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5102 (gdb_check, gdb_check_fatal): Delete functions.
5103 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5104 gdb_assert.
5105 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5106 * Makefile.in (objc-lang.o): Update dependencies.
5107
5108 2003-05-22 Ian Lance Taylor <ian@airs.com>
5109
5110 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5111 with fprintf_filtered, not fprintf_unfiltered.
5112
5113 2003-05-22 Andrew Cagney <cagney@redhat.com>
5114
5115 * stack.c (frame_info): Inline extract_address, replacing it with
5116 extract_unsigned_integer.
5117 * findvar.c (unsigned_pointer_to_address): Ditto.
5118 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5119 * dwarf2expr.c (dwarf2_read_address): Ditto.
5120 * frame.c (frame_pc_unwind): Update comment.
5121 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5122
5123 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5124
5125 * infptrace.c (detach): Call print_sys_errmsg rather than
5126 perror_with_name to issue warning message when errno is non-zero
5127 after calling ptrace detach.
5128
5129 2003-05-21 J. Brobecker <brobecker@gnat.com>
5130
5131 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5132 macro definitions from here...
5133 * hppa-tdep.c: ...to there.
5134
5135 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5136
5137 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5138 register_ptrace_addr(). Fix all callers.
5139
5140 2003-05-21 Andreas Schwab <schwab@suse.de>
5141
5142 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5143 dependencies.
5144 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5145 end.
5146 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5147 (_initialize_m68k_linux_tdep): New function.
5148 (m68k_linux_frame_saved_pc): Make static.
5149 (m68k_linux_extract_return_value): Likewise.
5150 (m68k_linux_store_return_value): Likewise.
5151 (m68k_linux_extract_struct_value_address): Likewise.
5152 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5153 Remove.
5154 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5155 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5156 (DEPRECATED_FRAME_SAVED_PC): Remove.
5157
5158 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5159
5160 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5161 regset numbering rather than our own.
5162
5163 2003-05-19 David Carlton <carlton@bactrian.org>
5164
5165 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5166
5167 2003-05-19 David Carlton <carlton@bactrian.org>
5168
5169 Partial fix for PR c++/827.
5170 * cp-support.h: Include symtab.h.
5171 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5172 * cp-namespace.c: Update contributors.
5173 (cp_lookup_symbol_nonlocal): New.
5174 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5175 (lookup_symbol_file): Ditto.
5176 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5177 * block.h: Declare block_scope, block_using, block_global_block.
5178 * block.c (block_scope): New.
5179 (block_using, block_global_block): Ditto.
5180 * Makefile.in (cp_support_h): Depend on symtab_h.
5181 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5182
5183 2003-05-19 David Carlton <carlton@bactrian.org>
5184
5185 * language.h (struct language_defn): Add 'la_value_of_this'
5186 and 'la_lookup_symbol_nonlocal' members.
5187 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5188 lookup_symbol_static, lookup_symbol_global,
5189 lookup_symbol_aux_block.
5190 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5191 if we should search fields of this and how to do static/global
5192 lookup.
5193 (lookup_symbol_aux_block): Make extern.
5194 (basic_lookup_symbol_nonlocal): New.
5195 (lookup_symbol_static, lookup_symbol_global): Ditto.
5196 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5197 'la_lookup_symbol_nonlocal' members.
5198 * c-lang.c (c_language_defn, cplus_language_defn)
5199 (asm_language_defn, minimal_language_defn): Ditto.
5200 * jv-lang.c (java_language_defn): Ditto.
5201 * language.c (unknown_language_defn, auto_language_defn)
5202 (local_language_defn): Ditto.
5203 * m2-lang.c (m2_language_defn): Ditto.
5204 * objc-lang.c (objc_language_defn): Ditto.
5205 * scm-lang.c (scm_language_defn): Ditto.
5206 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5207 * p-lang.c (pascal_language_defn): Ditto for both.
5208 * Makefile.in (f-lang.o): Depend on value_h.
5209 (p-lang.o): Ditto.
5210
5211 2003-05-19 David Carlton <carlton@bactrian.org>
5212
5213 * block.h: Declare block_static_block.
5214 * block.c (block_static_block): New.
5215 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5216 lookup_symbol_aux_local, calling block_static_block instead.
5217 (lookup_symbol_aux_local): Delete 'static_block' argument.
5218
5219 2003-05-19 David Carlton <carlton@bactrian.org>
5220
5221 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5222
5223 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5224
5225 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5226 register numbers mapping.
5227
5228 2003-05-18 Adam Fedor <fedor@gnu.org>
5229
5230 * symtab.c (completion_list_objc_symbol): New function.
5231 (make_symbol_completion_list): Use it to add ObjC symbols
5232 when looking though the list.
5233 (language_search_unquoted_string): New function.
5234 (make_file_symbol_completion_list): Use it.
5235
5236 2003-05-18 Andreas Schwab <schwab@suse.de>
5237
5238 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5239 dependencies.
5240 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5241 as m68k_linux_extract_return_value.
5242 (DEPRECATED_STORE_RETURN_VALUE): Define as
5243 m68k_linux_store_return_value.
5244 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5245 m68k_linux_extract_struct_value_address.
5246 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5247 get_next_frame, get_frame_base, get_frame_pc.
5248 (m68k_linux_frame_saved_pc): Use get_frame_base.
5249 (m68k_linux_extract_return_value): New function.
5250 (m68k_linux_store_return_value): New function.
5251 (m68k_linux_extract_struct_value_address): New function.
5252 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5253
5254 * c-exp.y (typebase): Remove duplicate occurence of
5255 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5256 of lookup_signed_typename.
5257
5258 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5259
5260 * dwarf2loc.c (find_location_expression): Change type of second
5261 argument to `size_t *'.
5262 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5263 for size variable.
5264
5265 2003-05-18 David Carlton <carlton@bactrian.org>
5266
5267 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5268 'linkage_name'. Add comment.
5269 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5270 'linkage_name'.
5271 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5272 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5273 (lookup_block_symbol): Ditto.
5274
5275 2003-05-16 Andrew Cagney <cagney@redhat.com>
5276
5277 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5278 * gdbarch.h, gdbarch.c: Re-generate.
5279 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5280 * TODO (REGISTER_BYTES): Delete reference.
5281 * alpha-tdep.c (alpha_gdbarch_init): Update.
5282 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5283 * x86-64-tdep.c (x86_64_init_abi): Update.
5284 * vax-tdep.c (vax_gdbarch_init): Update.
5285 * v850-tdep.c (v850_gdbarch_init): Update.
5286 * sparc-tdep.c (sparc_gdbarch_init): Update.
5287 * sh-tdep.c (sh_gdbarch_init): Update.
5288 * s390-tdep.c (s390_gdbarch_init): Update.
5289 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5290 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5291 (ns32k_gdbarch_init_32382): Update.
5292 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5293 * mcore-tdep.c (mcore_gdbarch_init): Update.
5294 * m68k-tdep.c (m68k_gdbarch_init): Update.
5295 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5296 * ia64-tdep.c (ia64_gdbarch_init): Update.
5297 * i386-tdep.c (i386_gdbarch_init): Update.
5298 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5299 * hppa-tdep.c (hppa_gdbarch_init): Update.
5300 * h8300-tdep.c (h8300_gdbarch_init): Update.
5301 * frv-tdep.c (frv_gdbarch_init): Update.
5302 * cris-tdep.c (cris_gdbarch_init): Update.
5303 * avr-tdep.c (avr_gdbarch_init): Update.
5304 * arm-tdep.c (arm_gdbarch_init): Update.
5305 * sparc-tdep.c (sparc_pop_frame): Update.
5306 * rs6000-tdep.c (rs6000_pop_frame): Update.
5307 * remote.c (init_remote_state): Update.
5308 (remote_prepare_to_store): Update.
5309 * remote-vx.c (vx_prepare_to_store): Update.
5310 * remote-sds.c (sds_fetch_registers): Update.
5311 (sds_prepare_to_store): Update.
5312 * remote-array.c: Update.
5313 * regcache.c (init_legacy_regcache_descr): Update.
5314 (init_regcache_descr): Update.
5315 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5316 (mips_o64_extract_return_value): Update.
5317 * irix5-nat.c (fetch_core_registers): Update.
5318 * irix4-nat.c (fetch_core_registers): Update.
5319 * i386-tdep.h: Update.
5320 * hppa-tdep.c (pa_do_registers_info): Update.
5321 (pa_do_strcat_registers_info): Update.
5322 * cris-tdep.c (cris_register_bytes_ok): Update.
5323 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5324 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5325 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5326 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5327 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5328 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5329 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5330 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5331 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5332 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5333 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5334 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5335 (REGISTER_BYTES_OK): Update.
5336 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5337 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5338
5339 2003-05-16 Ian Lance Taylor <ian@airs.com>
5340
5341 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5342 (vax_print_insn, print_insn_arg): Remove static functions.
5343 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5344 print_insn_vax from opcodes library.
5345 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5346
5347 2003-05-15 Andrew Cagney <cagney@redhat.com>
5348
5349 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5350 * target.h (memory_breakpoint_from_pc): Delete declaration.
5351 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5352 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5353 * monitor.c (monitor_insert_breakpoint): Use
5354 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5355 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5356 * gdbarch.h, gdbarch.c: Re-generate.
5357 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5358 (sparc_gdbarch_init): Set breakpoint_from_pc to
5359 sparc_breakpoint_from_pc.
5360 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5361 (BREAKPOINT_FROM_PC): Define.
5362 (sparc_breakpoint_from_pc): Declare.
5363 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5364 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5365 (BREAKPOINT_FROM_PC): Define.
5366 (BREAKPOINT): Delete macro.
5367 * target.h: Update comment.
5368 * s390-tdep.c (s390_gdbarch_init): Update comments.
5369 * remote.c: Update comments.
5370 * remote-mips.c: Update comments.
5371 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5372 * mem-break.c: Update comment.
5373 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5374 (ia64_memory_insert_breakpoint): Update.
5375 * config/sparc/tm-sparc.h: Update comment.
5376 * config/pa/tm-hppa64.h: Update comment.
5377 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5378 (rs6000_breakpoint_from_pc): Update.
5379 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5380 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5381 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5382 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5383 (mips_breakpoint_from_pc): Update.
5384 (mips_dump_tdep): Update.
5385
5386 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5387 * minsyms.c (lookup_minimal_symbol): Inline
5388 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5389
5390 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5391 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5392 * p-lang.c (pascal_printstr): Ditto.
5393 * objc-lang.c (objc_printstr): Ditto.
5394 * m2-lang.c (m2_printstr): Ditto.
5395 * jv-valprint.c (java_print_value_fields): Ditto.
5396 * f-lang.c (f_printstr): Ditto.
5397 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5398 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5399 for repeat_count_threshold.
5400 * Makefile.in (cp-valprint.o): Update dependencies.
5401
5402 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5403
5404 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5405 (examine_prologue): Support looking through leaf functions, knowing
5406 they start with mov r2,r12. Support skipping over indirect stores
5407 of the input registers. Upon hitting a non-nop branch instruction
5408 or predicated instruction, bail out by setting lim_pc to the current
5409 pc value in the loop. At the end, if the lim_pc value is still
5410 beyond our calculated value and we have trust_limit set,
5411 use the lim_pc value.
5412
5413 2003-05-15 Andrew Cagney <cagney@redhat.com>
5414
5415 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5416 generic_find_dummy_frame.
5417 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5418 (deprecated_generic_find_dummy_frame): Update.
5419 (deprecated_read_register_dummy): Update.
5420 * frame.c (deprecated_generic_get_saved_register): Update.
5421
5422 2003-05-15 Theodore A. Roth <troth@openavr.org>
5423
5424 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5425 (avr_gdbarch_init): Set breakpoint_from_pc method.
5426
5427 2003-05-15 Andrew Cagney <cagney@redhat.com>
5428
5429 * regcache.c (build_regcache): Set deprecated_register_valid
5430 directly.
5431 (deprecated_grub_regcache_for_register_valid): Delete function.
5432 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5433 declaration.
5434
5435 2003-05-15 David Carlton <carlton@bactrian.org>
5436
5437 Committed by Elena Zannoni <ezannoni@redhat.com>
5438 * symtab.c (lookup_symbol_aux): Delete calls to
5439 lookup_symbol_aux_minsyms.
5440 (lookup_symbol_aux_minsyms): Comment out function and
5441 prototype. Delete lookup by mangled name.
5442
5443 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5444
5445 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5446 correctly indicate an empty stack and ``stack_allocated'' to the
5447 indicate the number of elements initially allocated.
5448 (dwarf_expr_grow_stack): Simplify method for computing new
5449 stack size. Don't loop infinitely if ``stack_len'' is zero.
5450 (execute_stack_op): Move ``ctx->in_reg'' initialization
5451 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5452 be used in conjuction with DW_OP_piece. Revise error message
5453 accordingly.
5454
5455 2003-05-14 Theodore A. Roth <troth@openavr.org>
5456
5457 * MAINTAINERS: Update my email address.
5458 * avr-tdep.c: Ditto.
5459
5460 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5461
5462 * symtab.h (enum domain_enum): Rename from namespace_enum.
5463 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5464 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5465 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5466 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5467 TYPES_NAMESPACE, METHODS_NAMESPACE.
5468 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5469 (struct symbol, struct partial_symbol): Rename field
5470 'namespace_enum namespace' to 'domain_enum domain'.
5471 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5472 Delete old define kludge for namespace.
5473
5474 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5475 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5476 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5477 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5478 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5479 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5480 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5481 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5482 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5483 occurrences of the above.
5484
5485 2003-05-14 Ian Lance Taylor <ian@airs.com>
5486
5487 * Makefile.in (install-only): Use $(SHELL) when running
5488 mkinstalldirs.
5489
5490 2003-05-13 Ian Lance Taylor <ian@airs.com>
5491
5492 * MAINTAINERS (write after approval): Add myself.
5493
5494 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5495 second and third arguments.
5496 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5497 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5498
5499 2003-05-13 Andrew Cagney <cagney@redhat.com>
5500
5501 * defs.h (store_address): Delete declaration.
5502 findvar.c (store_address): Delete function.
5503 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5504 store_unsigned_integer.
5505 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5506 * v850-tdep.c (v850_push_arguments): Ditto.
5507 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5508 * sh-tdep.c (sh64_get_saved_register): Ditto.
5509 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5510 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5511 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5512 (mips_get_saved_register): Ditto.
5513 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5514 (find_func_descr, ia64_push_arguments): Ditto.
5515 * i386-tdep.c (i386_push_arguments): Ditto.
5516 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5517 * frv-tdep.c (frv_push_arguments): Ditto.
5518 * frame.c (legacy_saved_regs_prev_register): Ditto.
5519 (deprecated_generic_get_saved_register): Ditto.
5520 * findvar.c (unsigned_address_to_pointer): Ditto.
5521 * dwarf2read.c (dwarf2_const_value): Ditto.
5522 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5523 * alpha-tdep.c (alpha_push_arguments): Ditto.
5524
5525 2003-05-12 J. Brobecker <brobecker@gnat.com>
5526
5527 * NEWS: Mention that the hppa-hpux port has been partially
5528 multiarched (32bit ABIT only, so far).
5529
5530 2003-05-11 Andrew Cagney <cagney@redhat.com>
5531
5532 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5533 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5534 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5535 sim/testsuite/sim/arm/misaligned2.ms, and
5536 sim/testsuite/sim/arm/misaligned3.ms.
5537 * disasm.h (struct ui_file): Add opaque struct declaration.
5538 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5539 * frame.h (struct ui_file): Ditto.
5540
5541 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5542
5543 * value.h: Pretty print.
5544
5545 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5546
5547 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5548
5549 2003-05-08 Andrew Cagney <cagney@redhat.com>
5550
5551 * regcache.h (max_register_size): Delete declaration.
5552 * regcache.c (max_register_size): Delete function.
5553 (struct regcache_descr): Delete field "max_register_size".
5554 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5555 registers fit in MAX_REGISTER_SIZE.
5556 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5557 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5558 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5559 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5560 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5561 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5562 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5563 * dve3900-rom.c, hppa-tdep.c: Ditto.
5564
5565 2003-05-08 David Carlton <carlton@math.stanford.edu>
5566
5567 * valops.c (push_word): Fix typo.
5568
5569 2003-05-08 Andrew Cagney <cagney@redhat.com>
5570
5571 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5572 * gdbarch.h: Re-generate.
5573 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5574 (legacy_max_register_raw_size): Delete declaration.
5575 * regcache.c (legacy_max_register_raw_size): Delete function.
5576 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5577 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5578 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5579 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5580 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5581 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5582 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5583 * findvar.c, dwarf2cfi.c: Ditto.
5584
5585 2003-05-08 Andrew Cagney <cagney@redhat.com>
5586
5587 * mips-tdep.c (read_signed_register): New function, moved to here
5588 from "regcache.c".
5589 (read_signed_register_pid): Ditto.
5590 * regcache.c (read_signed_register_pid): Delete function, moved to
5591 "mips-tdep.c".
5592 (read_signed_register): Ditto.
5593 * regcache.h (read_signed_register): Delete declaration.
5594 (read_signed_register_pid): Delete declaration.
5595
5596 2003-05-08 Andrew Cagney <cagney@redhat.com>
5597
5598 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5599 * gdbarch.h: Re-generate.
5600 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5601 (legacy_max_register_virtual_size): Delete declaration.
5602 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5603 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5604 * tracepoint.c (memrange_sortmerge): Ditto.
5605 * sparc-tdep.c (sparc_print_registers): Ditto.
5606 * regcache.c (legacy_max_register_virtual_size): Delete function.
5607
5608 2002-05-08 J. Brobecker <brobecker@gnat.com>
5609
5610 * fork-child.c (escape_bang_in_quoted_argument): New function.
5611 (fork_inferior): Escape '!' characters in quoted arguments
5612 only when needed.
5613
5614 2003-05-08 J. Brobecker <brobecker@gnat.com>
5615
5616 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5617 the language of the CU is not currently supported by GDB.
5618
5619 2003-05-08 J. Brobecker <brobecker@gnat.com>
5620
5621 * defs.h (language): Add language_minimal enum value.
5622 * c-lang.c (minimal_language_defn): New language definition.
5623 (_initialize_c_language): Add the new minimal language to the list
5624 of languages known to GDB.
5625
5626 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5627
5628 * frame.c (get_frame_type): Don't attempt to lazily initialize
5629 frame's unwinder for legacy frames.
5630
5631 2003-05-07 Andrew Cagney <cagney@redhat.com>
5632
5633 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5634 and "regcache" parameters.
5635 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5636
5637 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5638
5639 * dwarf2read.c (dwarf_decode_lines): Only use output of
5640 check_cu_functions() when calling record_line(). Do not update
5641 the current address.
5642
5643 2003-05-07 Andrew Cagney <cagney@redhat.com>
5644
5645 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5646 code.
5647
5648 2003-05-07 Jim Blandy <jimb@redhat.com>
5649
5650 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5651 'maint info symtabs' and 'maint info psymtabs'.
5652 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5653 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5654 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5655 Declarations updated.
5656 * maint.c (maintenance_list_command): Delete.
5657 (_initialize_maint_cmds): Update calls to add_cmd.
5658 * gdbcmd.h (maintenancelistlist): Delete declaration.
5659 * cli/cli-cmds.c (maintenancelistlist): Delete.
5660 (init_cmd_lists): Don't initialize it.
5661 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5662
5663 2003-05-07 Andrew Cagney <cagney@redhat.com>
5664
5665 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5666 "regcache".
5667 (d10v_print_registers_info): Update.
5668 (d10v_dmap_register, d10v_imap_register): Delete functions.
5669 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5670 and "imap_register".
5671 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5672 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5673 * arch-utils.c (generic_remote_translate_xfer_address): Add
5674 "regcache" and "gdbarch" parameters.
5675 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5676 parameter. Change class to multi-arch.
5677 * gdbarch.h, gdbarch.c: Re-generate.
5678 * remote.c (remote_xfer_memory): Use
5679 gdbarch_remote_translate_xfer_address.
5680
5681 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5682
5683 * infrun.c (prev_pc): Move declaration ahead of proceed().
5684 (proceed): Refresh prev_pc value before resuming.
5685 (stop_stepping): Remove code to refresh prev_pc.
5686
5687 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5688
5689 * nto-tdep.c: Removed stray comment.
5690
5691 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5692
5693 * i386-nto-tdep.c: Fix old K&R function definitions.
5694 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5695 Also change add_show_from_set() call to add_setshow_cmd().
5696 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5697
5698 2003-05-05 Andrew Cagney <cagney@redhat.com>
5699
5700 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5701 (fprint_dummy_frames): New function.
5702 (maintenance_print_dummy_frames): New function.
5703 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5704 * frame.c (fprint_frame_id): Make global.
5705 * frame.h (fprint_frame_id): Declare.
5706 * Makefile.in (dummy-frame.o): Update dependencies.
5707
5708 2003-05-05 Andrew Cagney <cagney@redhat.com>
5709
5710 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5711 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5712 SIZEOF_CALL_DUMMY_WORDS.
5713 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5714 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5715 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5716 CALL_DUMMY_BREAKPOINT_OFFSET.
5717 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5718 CALL_DUMMY_START_OFFSET.
5719 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5720 * gdbarch.h, gdbarch.c: Re-generate.
5721 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5722 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5723 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5724 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5725 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5726 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5727 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5728 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5729 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5730 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5731 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5732 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5733 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5734 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5735 * config/sparc/tm-sparc.h: Update.
5736
5737 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5738
5739 * configure.tgt: Add i[3456]86-*-nto*.
5740 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5741 * nto-tdep.c: New file. Neutrino target support routines.
5742 * nto-tdep.h: New file. Neutrino target header.
5743 * config/tm-qnxnto.h: New file.
5744 * config/i386/i386nto.mt: New file.
5745 * config/i386/tm-i386nto.h: New file.
5746
5747 2003-05-04 Andrew Cagney <cagney@redhat.com>
5748
5749 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5750 (load_infrun_state): Ditto.
5751 (struct thread_info): Drop "prev_func_name" field.
5752 * thread.c (load_infrun_state): Update.
5753 (save_infrun_state): Update.
5754 * infrun.c (prev_func_name): Delete variable.
5755 (init_wait_for_inferior): Do not clear prev_func_name.
5756 (stop_stepping, keep_going, context_switch): Do not swap
5757 prev_func_name.
5758 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5759 instead of PC_IN_SIGTRAMP.
5760
5761 2003-05-04 Andrew Cagney <cagney@redhat.com>
5762
5763 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5764 REGISTER_BYTE with register_offset_hack.
5765 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5766 that REGISTER_BYTE is consistent with the regcache.
5767 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5768 * gdbarch.h, gdbarch.c: Regenerate.
5769
5770 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5771
5772 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5773 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5774
5775 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5776
5777 2003-05-03 J. Brobecker <brobecker@gnat.com>
5778
5779 From Thierry Schneider <tpschneider1@yahoo.com>
5780 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5781 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5782 (mi-cmd-symbol.o): Add rule.
5783
5784 2003-05-03 Andrew Cagney <cagney@redhat.com>
5785
5786 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5787 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5788 * gdbarch.h, gdbarch.c: Re-generate.
5789 * d10v-tdep.c (d10v_push_dummy_code): New function.
5790 (d10v_gdbarch_init): Set push_dummy_code.
5791 * infcall.c (legacy_push_dummy_code): New function.
5792 (generic_push_dummy_code): New function.
5793 (push_dummy_code): New function.
5794 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5795 instead of dummy_addr, to push_dummy_call. Move call to
5796 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5797 switch.
5798 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5799
5800 2003-05-03 Andrew Cagney <cagney@redhat.com>
5801
5802 * disasm.h (print_insn): Declare.
5803 * disasm.c (init_gdb_disassemble_info): New function.
5804 (gdb_disassembly): Call init_gdb_disassemble_info.
5805 (gdb_print_insn): New function.
5806 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5807 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5808 * mcore-tdep.c: Include "disasm.h"
5809 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5810 * d10v-tdep.c: Include "disasm.h".
5811 (display_trace): Call gdb_print_insn, instead of print_insn.
5812 (print_insn): Delete function.
5813 * printcmd.c: Include "disasm.h".
5814 (print_insn): Delete function.
5815 (print_formatted): Call gdb_print_insn, instead of print_insn.
5816 * Makefile.in (printcmd.o): Update dependencies.
5817 (mcore-tdep.o, d10v-tdep.o): Ditto.
5818
5819 2003-05-02 Andrew Cagney <cagney@redhat.com>
5820
5821 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5822 PC_REGNUM, re-indent.
5823 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5824 PC_REGNUM isn't set.
5825
5826 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5827 * gdbarch.h, gdbarch.c: Re-generate.
5828 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5829 register_virtual_size, pc_regnum, or register_bytes.
5830 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5831 (d10v_register_type): Use D10V_PC_REGNUM.
5832 (d10v_print_registers_info, d10v_read_pc): Ditto.
5833 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5834 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5835
5836 2003-05-02 David Carlton <carlton@bactrian.org>
5837
5838 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5839 the name with mstrsave.
5840
5841 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5842
5843 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5844 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5845 (host_charset_name, target_charset_name): New vars for use by
5846 set/show commands.
5847 (host_charset_enum, target_charset_enum): New enums for set/show
5848 commands.
5849 (set_charset_sfunc, set_host_charset_sfunc,
5850 set_target_charset_sfunc): New functions.
5851 (set_host_charset, set_target_charset): Make static.
5852 (list_charsets, set_host_charset_command,
5853 set_target_charset_command): Delete functions.
5854 (show_charset_command): Rewrite as....
5855 (show_charset): Hook this up with the set/show command mechanism.
5856 (_initialize_charset): Change names of charsets to match the
5857 set/show enums. Use host_charset_name and target_charset_name.
5858 Use set/show mechanism for charset, host-charset, target-charset
5859 commands. Do not make 'show host-charset' and 'show
5860 target-charset' be aliases of 'show charset'.
5861
5862 * charset.h (set_host_charset, set_target_charset): Don't export,
5863 they are not used outside the file.
5864
5865 2003-05-01 Andrew Cagney <cagney@redhat.com>
5866
5867 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5868 (gdb_disassembly): Make "di" non static, always initialize and
5869 cleanup. Always use dis_asm_read_memory.
5870 (gdb_dis_asm_read_memory): Delete function.
5871
5872 2003-05-01 Andrew Cagney <cagney@redhat.com>
5873
5874 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5875 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5876
5877 2003-04-30 Andrew Cagney <cagney@redhat.com>
5878
5879 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5880 "tm_print_insn_info".
5881 (TARGET_PRINT_INSN_INFO): Delete macro.
5882 (dis_asm_read_memory): Delete function declaration.
5883 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5884 (tm_print_insn_info): Delete variable definition.
5885 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5886 * gdbarch.h, gdbarch.c: Re-generate.
5887 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5888 "deprecated_tm_print_insn_info".
5889 * mcore-tdep.c (mcore_dump_insn): Ditto.
5890 * mips-tdep.c (mips_gdbarch_init): Ditto.
5891 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5892 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5893 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5894 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5895 instead of TARGET_PRINT_INSN_INFO, add comment.
5896 * s390-tdep.c (s390_get_frame_info): Instead of
5897 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5898 (s390_check_function_end, s390_is_sigreturn): Ditto.
5899 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5900 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5901 * disasm.c: Include "gdbcore.h".
5902 (_initialize_disasm): New function, initialize
5903 "deprecated_tm_print_insn_info".
5904 (deprecated_tm_print_insn_info): New variable.
5905 (dis_asm_read_memory): Moved from "corefile.c", made static.
5906 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5907 * Makefile.in (disasm.o): Update dependencies.
5908
5909 2003-04-30 Andrew Cagney <cagney@redhat.com>
5910
5911 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5912
5913 2003-04-29 Adam Fedor <fedor@gnu.org>
5914
5915 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5916 * infcall.c (find_function_addr): Make non-static.
5917 * infcall.h (find_function_addr): Declare.
5918 * Makefile.in (eval.o): Update dependencies.
5919
5920 2003-04-28 Adam Fedor <fedor@gnu.org>
5921
5922 * symtab.c (symbol_find_demangled_name): Check for and demangle
5923 ObjC symbols.
5924 (symbol_init_demangled_name): Init for language_objc as well.
5925
5926 2003-04-28 Andrew Cagney <cagney@redhat.com>
5927
5928 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5929 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5930 * gdbarch.h, gdbarch.c: Re-generate.
5931 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5932 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5933 * inferior.h (deprecated_read_fp): Rename read_fp.
5934 (generic_target_read_fp): Delete declaration.
5935 * regcache.c (generic_target_read_fp): Delete function.
5936 (deprecated_read_fp): Replace read_fp, use
5937 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5938 * d10v-tdep.c (d10v_read_fp): Delete function.
5939 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5940
5941 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5942 deprecated_target_read_fp to generic_target_read_fp.
5943 * sh-tdep.c (sh_gdbarch_init): Ditto.
5944 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5945 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5946 * frv-tdep.c (frv_gdbarch_init): Ditto.
5947
5948 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5949 deprecated_fp_regnum.
5950 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5951 * vax-tdep.c (vax_gdbarch_init): Ditto.
5952 * v850-tdep.c (v850_gdbarch_init): Ditto.
5953 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5954 * sh-tdep.c (sh_gdbarch_init): Ditto.
5955 * s390-tdep.c (s390_gdbarch_init): Ditto.
5956 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5957 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5958 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5959 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5960 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5961 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5962 * i386-tdep.c (i386_gdbarch_init): Ditto.
5963 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5964 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5965 * frv-tdep.c (frv_gdbarch_init): Ditto.
5966 * cris-tdep.c (cris_gdbarch_init): Ditto.
5967 * avr-tdep.c (avr_gdbarch_init): Ditto.
5968 * arm-tdep.c (arm_gdbarch_init): Ditto.
5969 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5970
5971 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5972 * v850-tdep.c (v850_gdbarch_init): Ditto.
5973 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5974 * sh-tdep.c (sh_gdbarch_init): Ditto.
5975 * s390-tdep.c (s390_gdbarch_init): Ditto.
5976 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5977 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5978 * mips-tdep.c (mips_gdbarch_init): Ditto.
5979 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5980 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5981 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5982 * frv-tdep.c (frv_gdbarch_init): Ditto.
5983 * avr-tdep.c (avr_gdbarch_init): Ditto.
5984 * arm-tdep.c (arm_gdbarch_init): Ditto.
5985
5986 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5987 DEPRECATED_FP_REGNUM.
5988 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5989 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5990 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5991 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5992 (sparc32_register_virtual_type): Ditto.
5993 * sh-tdep.c (sh64_frame_chain): Ditto.
5994 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5995 (sh_nofp_frame_init_saved_regs): Ditto.
5996 (sh64_nofp_frame_init_saved_regs): Ditto.
5997 (sh_fp_frame_init_saved_regs): Ditto.
5998 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5999 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6000 * procfs.c (procfs_fetch_registers): Ditto.
6001 (procfs_store_registers): Ditto.
6002 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6003 (store_inferior_registers, fetch_core_registers): Ditto.
6004 (fetch_kcore_registers, clear_regs): Ditto.
6005 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6006 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6007 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6008 * nlm/i386.c (do_status): Ditto.
6009 * mipsv4-nat.c (supply_gregset): Ditto.
6010 * mips-tdep.c: Ditto for comments.
6011 * mips-nat.c (fetch_inferior_registers): Ditto.
6012 (store_inferior_registers, fetch_core_registers): Ditto.
6013 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6014 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6015 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6016 (i386_do_pop_frame, i386_register_type): Ditto.
6017 * hppa-tdep.c (hppa_frame_chain): Ditto.
6018 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6019 (hppa_pop_frame, hppa_read_fp): Ditto.
6020 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6021 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6022 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6023 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6024 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6025 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6026 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6027 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6028 * blockframe.c: Ditto for comments.
6029 * arch-utils.h: Ditto for comments.
6030 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6031 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6032 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6033 * alpha-tdep.h: Ditto for comments.
6034 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6035 (alpha_cannot_store_register): Ditto.
6036 (alpha_push_dummy_frame): Ditto.
6037 * alpha-nat.c (supply_gregset): Ditto.
6038
6039 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6040 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6041 * config/sparc/tm-sparc.h: Update comment.
6042
6043 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6044 deprecated_read_fp instead of TARGET_READ_FP.
6045 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6046 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6047 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6048 deprecated_read_fp instead of read_fp.
6049 * s390-tdep.c (s390_push_arguments): Ditto.
6050 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6051 * frame.h: Ditto in comments.
6052 * frame.c (legacy_get_prev_frame): Ditto.
6053 * dummy-frame.c (dummy_frame_this_id): Ditto.
6054 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6055
6056 2003-04-28 Andrew Cagney <cagney@redhat.com>
6057
6058 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6059 * gdbarch.h, gdbarch.c: Re-generate.
6060 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6061 * vax-tdep.c (_initialize_vax_tdep): Update.
6062 * v850-tdep.c (_initialize_v850_tdep): Update.
6063 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6064 * s390-tdep.c (_initialize_s390_tdep): Update.
6065 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6066 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6067 * mips-tdep.c (_initialize_mips_tdep): Update.
6068 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6069 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6070 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6071 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6072 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6073 * frv-tdep.c (_initialize_frv_tdep): Update.
6074 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6075 (_initialize_cris_tdep): Update.
6076 * arch-utils.c (legacy_print_insn): Update.
6077 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6078
6079 2003-04-26 Adam Fedor <fedor@gnu.org>
6080
6081 * linespec.c (decode_objc): New function to decode ObjC calls
6082 (decode_line_1): Check for ObjC calls (using decode_objc)
6083 * Makefile (linespec.o): Update dependencies.
6084
6085 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6086
6087 * breakpoint.h (struct breakpoint_ops): New.
6088 (struct breakpoint): Add ops member.
6089
6090 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6091 (mention): Use new breakpoint ops member.
6092 (set_raw_breakpoint): Initialize ops field to NULL.
6093 (print_exception_catchpoint, print_one_exception_catchpoint)
6094 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6095 (gnu_v3_exception_catchpoint_ops): New.
6096 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6097
6098 2003-04-25 Adam Fedor <fedor@gnu.org>
6099
6100 * Makefile.in (COMMON_OBS): Add objc-lang.o
6101
6102 2003-04-25 Andrew Cagney <cagney@redhat.com>
6103
6104 * d10v-tdep.c (print_insn): Delete function.
6105 (display_trace): Use TARGET_PRINT_INSN.
6106 (_initialize_d10v_tdep): Do not set tm_print_insn.
6107 (d10v_gdbarch_init): Set print_insn.
6108
6109 2003-04-25 Andrew Cagney <cagney@redhat.com>
6110
6111 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6112 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6113 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6114 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6115 (nr_dmap_regs, a0_regnum): ... new functions.
6116 (d10v_print_registers_info): Use a0_regnum, use register_size.
6117 (d10v_register_byte): Delete function.
6118 (d10v_register_raw_size): Delete function.
6119 (d10v_register_type): Use a0_regnum.
6120 (d10v_print_registers_info): Use a0_regnum.
6121 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6122 (d10v_gdbarch_init): Do not set register_byte or
6123 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6124 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6125 extract_address.
6126 (trace_command): Use XCALLOC.
6127 (print_insn): Delete reference to tm_print_insn.
6128 (saved_regs_unwinder): Use store_unsigned_integer instead of
6129 store_address.
6130 * frame.h (FRAME_OBSTACK_CALLOC): Define
6131
6132 2003-04-25 David Carlton <carlton@bactrian.org>
6133
6134 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6135
6136 2003-04-24 Adam Fedor <fedor@gnu.org>
6137
6138 * objc-lang.c: Include "valprint.h"
6139 * Makefile.in (objc-lang.o): Update dependencies.
6140
6141 2003-04-24 Adam Fedor <fedor@gnu.org>
6142
6143 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6144 architecture dependant compilation and mark as unimplemented
6145 (until they get put in the gdbarch vector).
6146
6147 2003-04-23 David Carlton <carlton@bactrian.org>
6148
6149 * cp-support.c (cp_find_first_component): Accept 'operator' in
6150 more locations.
6151
6152 2003-04-23 Andrew Cagney <cagney@redhat.com>
6153
6154 * infcall.c (call_function_by_hand): Eliminate redundant
6155 indentation. Move "saved_async" and "old_cleanups" to where they
6156 are needed.
6157
6158 2003-04-23 Andrew Cagney <cagney@redhat.com>
6159
6160 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6161 and "buffer". Move the "name" code to where it is needed.
6162
6163 2003-04-23 Andrew Cagney <cagney@redhat.com>
6164
6165 * infcall.c (call_function_by_hand): Move variables "start_sp",
6166 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6167 code to ON_STACK switch branch.
6168
6169 2003-04-23 Andrew Cagney <cagney@redhat.com>
6170
6171 * infcall.c (call_function_by_hand): Make declaration of "i",
6172 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6173 lint.
6174
6175 2003-04-23 Andrew Cagney <cagney@redhat.com>
6176
6177 * infcall.c (call_function_by_hand): Delete variable
6178 "n_method_args". Localize "param_type"'s declaration to the loop
6179 that it is used. Reinstate code assigning to said variable -
6180 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6181 Rationalize code using "param_type".
6182
6183 2003-04-22 Andrew Cagney <cagney@redhat.com>
6184
6185 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6186 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6187 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6188 to DEPRECATED_PUSH_RETURN_ADDRESS.
6189
6190 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6191
6192 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6193 on the DWARF2 register number prior to fetching a register.
6194
6195 2003-04-22 J. Brobecker <brobecker@gnat.com>
6196
6197 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6198 Update all the tests using SOFT_FLOAT considering the fact that
6199 this macro was always set to 0.
6200 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6201 considering the fact that this macro was always set to 0.
6202 * hppa-tdep.h (hppa_store_return_value): Likewise.
6203 (hppa_extract_return_value): Likewise.
6204
6205 2003-04-22 J. Brobecker <brobecker@gnat.com>
6206
6207 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6208 the hppa-pro target only.
6209
6210 2003-04-21 J. Brobecker <brobecker@gnat.com>
6211
6212 Ongoing multi-arch conversion effort for HP/UX:
6213 * config/pa/tm-hppa.h: Move all macro that are no longer
6214 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6215 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6216
6217 2003-04-21 J. Brobecker <brobecker@gnat.com>
6218
6219 * config/pa/tm-hppa.h: Obsolete a section that was only used
6220 for hppa-pro.
6221
6222 2003-04-21 J. Brobecker <brobecker@gnat.com>
6223
6224 Ongoing multi-arch conversion for HP/UX.
6225 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6226 if already defined (allows hppa64 to stay non-multiarched for now).
6227 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6228
6229 2003-04-21 Andrew Cagney <cagney@redhat.com>
6230
6231 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6232
6233 2003-04-21 Andrew Cagney <cagney@redhat.com>
6234
6235 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6236 "i386_num_mmx_regs".
6237
6238 2003-04-21 Andrew Cagney <cagney@redhat.com>
6239
6240 * infcall.c: New file.
6241 * infcall.h: New file.
6242 * valarith.c: Include "infcall.h".
6243 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6244 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6245 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6246 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6247 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6248 (SFILES): Add "infcall.c"
6249 (COMMON_OBS): Add "infcall.o".
6250 (infcall.o): Specify dependencies.
6251 * value.h (call_function_by_hand): Delete declaration.
6252 * inferior.h (run_stack_dummy): Delete declaration.
6253 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6254 (run_stack_dummy): Move to "infcall.c", merged into
6255 call_function_by_hand.
6256 * valops.c (call_function_by_hand): Moved to "infcall.c".
6257 (find_function_addr, value_arg_coerce): Ditto.
6258 (unwindonsignal_p, coerce_float_to_double): Ditto.
6259 (_initialize_valops): Move "set/show coerce-float-to-double", and
6260 "set/show unwindonsignal" commands to "infcall.c".
6261 * v850-tdep.c, target.h: Update comments.
6262 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6263 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6264 (sh64_init_extra_frame_info): Update comments.
6265 * mn10300-tdep.c: Update comments.
6266 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6267 * config/sparc/tm-sparc.h: Update comments.
6268 * breakpoint.h: Update comments.
6269 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6270 * arm-tdep.c: Update comment.
6271
6272 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6273
6274 * i386-tdep.c (i386_num_register_names): New variable.
6275 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6276 (MM0_REGNUM): Remove redundant parentheses in define.
6277 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6278 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6279 i386_mxcsr_regnum_p): Remove redundant parentheses.
6280 (i386_register_name): Use i386_num_register_names.
6281
6282 * i386-tdep.c (i386_extract_return_value,
6283 i386_store_return_value): Correct check for availability of
6284 floating-point registers.
6285
6286 * i386-tdep.c (i386_frame_num_args): Remove function.
6287 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6288
6289 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6290 mmx_regnum_to_fp_regnum. Adjust all callers.
6291
6292 * i386-tdep.c (i386_get_longjmp_target): Use
6293 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6294 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6295 extract_address.
6296
6297 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6298
6299 * core-regset.c: Update comments to reflect reality. Re-order
6300 includes.
6301 (fetch_core_registers): Use switch instead of if. Remove
6302 redundant prototype.
6303
6304 2003-04-18 Jim Blandy <jimb@redhat.com>
6305
6306 * s390-tdep.c (s390_frame_align): New function.
6307 (s390_gdbarch_init): Register it with the gdbarch object.
6308
6309 2003-04-17 Richard Henderson <rth@redhat.com>
6310
6311 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6312
6313 2003-04-17 Michael Snyder <msnyder@redhat.com>
6314 Karen Bennet <bennet@redhat.com>
6315
6316 Committed by Elena Zannoni <ezannoni@redhat.com>
6317 * gdb_gcore.sh: New script to create a core dump of a process.
6318
6319 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6320
6321 * values.c (value_being_returned): Don't fetch the return
6322 value if the return type is void.
6323
6324 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6325
6326 * thread-db.c: Reindented.
6327
6328 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6329
6330 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6331 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6332 as types.
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6359
6360 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6361 the size of ``long double'' to 16, instead of 8.
6362
6363 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6364
6365 * i386-linux-nat.c: Add some whitespace to make things more
6366 readable.
6367 (fetch_register, store_register, fetch_inferior_registers,
6368 store_inferior_registers): Get rid of assignment in if-statement.
6369 (store_register): Fix typo in error message.
6370
6371 2003-04-16 Andrew Cagney <cagney@redhat.com>
6372
6373 * utils.c (xmmalloc): Always allocate something, matches
6374 libiberty/xmalloc's semantics.
6375 (xmrealloc, xmcalloc): Ditto.
6376
6377 2003-04-16 Andrew Cagney <cagney@redhat.com>
6378
6379 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6380 update comments.
6381 (get_frame_type): Initialize unwind and type when needed.
6382 (get_frame_id, frame_register_unwind): Ditto.
6383
6384 2003-04-16 Andrew Cagney <cagney@redhat.com>
6385
6386 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6387 obsolete.
6388 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6389 * sparcl-stub.c: Obsolete file.
6390 * config/sparc/tm-sparclet.h: Obsolete file.
6391 * sparclet-stub.c: Obsolete file.
6392 * sparclet-rom.c: Obsolete file.
6393 * sparcl-tdep.c: Obsolete file.
6394 * config/sparc/tm-sparclite.h: Obsolete file.
6395 * config/sparc/sparclite.mt: Obsolete file.
6396 * config/sparc/sparclet.mt: Obsolete file.
6397 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6398 sparc86x-*-* obsolete.
6399
6400 2003-04-15 David Carlton <carlton@math.stanford.edu>
6401
6402 * Makefile.in (SFILES): Add cp-namespace.c.
6403 (COMMON_OBS): Add cp-namespace.o.
6404 (block.o): Depend on gdb_obstack_h and cp_support_h.
6405 (buildsym.o): Depend on cp_support_h.
6406 (cp-namespace.o): New.
6407 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6408 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6409 (dwarf2read.o): Depend on cp_support_h.
6410 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6411 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6412 processing_current_namespace.
6413 (read_namespace): Update processing_current_namespace; check for
6414 anonymous namespaces.
6415 (dwarf2_name): New function.
6416 (dwarf2_extension): Ditto.
6417 * cp-support.h: Update copyright, contributors.
6418 Add inclusion guards.
6419 Add opaque declaration for structs obstack, block, symbol.
6420 (struct using_direct): New struct.
6421 Add declarations for cp_find_first_component,
6422 cp_entire_prefix_len, processing_has_namespace_info,
6423 processing_current_namespace, cp_is_anonymous,
6424 cp_add_using_directive, cp_initialize_namespace,
6425 cp_finalize_namespace, cp_set_block_scope,
6426 cp_scan_for_anonymous_namespaces.
6427 * cp-namespace.c: New file.
6428 * cp-support.c: Update copyright.
6429 Include ctype.h, gdb_assert.h, gdbcmd.h.
6430 New variable maint_cplus_cmd_list.
6431 (cp_find_first_component): New function.
6432 (cp_entire_prefix_len, maint_cplus_command)
6433 (first_component_command, _initialize_cp_support): Ditto.
6434 * buildsym.c: Include cp-support.h.
6435 New variable using_list.
6436 (add_symbol_to_list): Check for anonymous namespaces.
6437 (finish_block): Set block's scope.
6438 (start_symtab): Initialize C++ namespace support.
6439 (end_symtab): Finalize C++ namespace support.
6440 * block.h: Add opaque declarations for structs
6441 block_namespace_info, using_direct, and obstack.
6442 Add declarations for block_set_scope and block_set_using.
6443 (struct block): Add 'language_specific' member.
6444 (BLOCK_NAMESPACE): New macro.
6445 * block.c: Include gdb_obstack.h and cp-support.h.
6446 (struct block_namespace_info): New struct.
6447 (block_set_scope): New function.
6448 (block_set_using, block_initialize_namespace): Ditto.
6449
6450 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6451
6452 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6453 (locate_base): Return early if there aren't any link map offsets.
6454 (svr4_solib_create_inferior_hook): Warn if shared library support
6455 is unavailable.
6456
6457 2003-04-14 David Carlton <carlton@math.stanford.edu>
6458
6459 * symtab.c (symbol_set_names): Add prefix when storing Java names
6460 in hash table. Fix for PR java/1039.
6461
6462 2003-04-14 David Carlton <carlton@math.stanford.edu>
6463
6464 * symtab.c (symbol_set_names): Rename 'name' arg to
6465 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6466 * symtab.h: Change 'name' argument in declaration of
6467 symbol_set_names to 'linkage_name'.
6468 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6469
6470 2003-04-14 Andrew Cagney <cagney@redhat.com>
6471
6472 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6473 return the fully sign-extended register value.
6474 (get_frame_pointer): Ditto.
6475 (mips_pop_frame): Initialize "proc_desc" after checking for a
6476 dummy frame.
6477
6478 2003-04-14 Andrew Cagney <cagney@redhat.com>
6479
6480 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6481 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6482 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6483 (mips_push_register): Delete function.
6484 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6485 PUSH_FP_REGNUM.
6486
6487 2003-04-14 Jim Blandy <jimb@redhat.com>
6488
6489 * symmisc.c: #include "gdb_regex.h".
6490 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6491 functions.
6492 * maint.c (maintenance_list_command): New function.
6493 (_initialize_maint_cmds): Register the above as commands.
6494 * symtab.h (maintenance_list_symtabs,
6495 maintenance_list_psymtabs): New declarations.
6496 * cli/cli-cmds.c (maintenancelistlist): New variable.
6497 (init_cmd_lists): Initialize it.
6498 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6499 * gdbcmd.h (maintenancelistlist): New declaration.
6500 * Makefile.in (symmisc.o): Update dependencies.
6501
6502 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6503
6504 * s390-nat.c: Include asm/types.h for addr_t.
6505
6506 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6507
6508 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6509 actually incoming type.
6510
6511 2003-04-13 Andrew Cagney <cagney@redhat.com>
6512
6513 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6514 get_next_frame and get_frame_saved_regs.
6515
6516 2003-04-13 Andrew Cagney <cagney@redhat.com>
6517
6518 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6519 of gdbarch_num_regs.
6520
6521 2003-04-13 Andrew Cagney <cagney@redhat.com>
6522
6523 * frame.h: Mention what replaced what in "struct frame_info".
6524 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6525 deprecated_update_frame_base_hack and
6526 deprecated_update_frame_pc_hack.
6527 * hppa-tdep.c: Ditto.
6528
6529 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6530
6531 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6532 to read_reg and update its comment. Remove regnum member.
6533 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6534 Don't call read_reg when setting in_reg. Call read_reg to get
6535 the frame base if it's in a register. Return the register number
6536 on the stack instead of in the context. Remove extra arguments
6537 to read_reg.
6538 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6539 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6540 the register number on the expression stack.
6541 (needs_frame_read_reg): Remove extra arguments.
6542
6543 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6544
6545 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6546 made non-static.
6547 (execute_stack_op): All callers updated.
6548 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6549 * dwarf2loc.c (find_location_expression): New function.
6550 (dwarf_expr_frame_base): Call it.
6551 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6552 (dwarf2_tracepoint_var_ref): New function, broken out from
6553 locexpr_tracepoint_var_ref.
6554 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6555 Make static.
6556 (loclist_read_variable, loclist_read_needs_frame): New functions.
6557 (loclist_describe_location, loclist_tracepoint_var_ref): New
6558 functions.
6559 (dwarf2_loclist_funcs): New struct location_funcs.
6560 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6561 (struct dwarf2_locexpr_baton): Add comments.
6562 (dwarf2_loclist_funcs): New extern.
6563 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6564 base_address and base_known.
6565 (dwarf_loc_buffer): New variable.
6566 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6567 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6568 (dwarf2_has_info): Initialize dwarf_loc_offset.
6569 (dwarf2_build_psymtabs): Read in .debug_loc.
6570 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6571 DWARF_LOC_SIZE.
6572 (psymtab_to_symtab_1): Likewise. Move base address calculation
6573 here, from...
6574 (dwarf2_get_pc_bounds): ... here. Use the base address from
6575 cu_header.
6576 (dwarf2_symbol_mark_computed): Handle location lists.
6577
6578 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6579
6580 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6581 if the linkage name demangled successfully.
6582
6583 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6584
6585 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6586 disassmbly_flavour): Removed.
6587
6588 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6589
6590 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6591
6592 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6593
6594 2003-04-12 Andrew Cagney <cagney@redhat.com>
6595
6596 * frame.h (struct frame_info): Move definition from here ...
6597 * frame.c (struct frame_info): ... to here.
6598
6599 2003-04-12 Andrew Cagney <cagney@redhat.com>
6600
6601 * gdbthread.h (save_infrun_state): Delete parameter
6602 "prev_func_start".
6603 (struct thread_info): Delete field "prev_func_start".
6604 (load_infrun_state): Ditto.
6605 * thread.c (load_infrun_state, save_infrun_state): Update.
6606 * infrun.c (prev_func_start): Delete variable.
6607 (context_switch, init_wait_for_inferior): Update.
6608 (stop_stepping, keep_going): Update.
6609
6610 2003-04-12 Andrew Cagney <cagney@redhat.com>
6611
6612 * gdbarch.sh: Add missing opaque declarations.
6613 * gdbarch.h: Regnerate.
6614 * symtab.h: Add missing opaque declarations.
6615 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6616 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6617 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6618 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6619 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6620 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6621 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6622 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6623 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6624 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6625 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6626 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6627 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6628
6629 2003-04-11 Andrew Cagney <cagney@redhat.com>
6630
6631 * frame.c (get_frame_id): Return this frame's "id".
6632 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6633 function start.
6634 (legacy_saved_regs_this_id): Replace function body with
6635 internal-error.
6636 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6637 FRAME_OBSTACK_ZALLOC.
6638 (create_new_frame): Mark the frame ID as valid.
6639
6640 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6641
6642 * Makefile.in (libbfd_h): Added missing setting.
6643 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6644 according to the selected ABI.
6645
6646 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6647
6648 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6649
6650 2003-04-11 Andrew Cagney <cagney@redhat.com>
6651
6652 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6653 SAVED_PC_AFTER_CALL.
6654 * gdbarch.h, gdbarch.c: Regenerate.
6655 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6656 * x86-64-tdep.c (x86_64_init_abi): Update.
6657 * vax-tdep.c (vax_gdbarch_init): Update.
6658 * v850-tdep.c (v850_gdbarch_init): Update.
6659 * sparc-tdep.c (sparc_gdbarch_init): Update.
6660 * sh-tdep.c (sh_gdbarch_init): Update.
6661 * s390-tdep.c (s390_gdbarch_init): Update.
6662 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6663 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6664 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6665 * mips-tdep.c (mips_gdbarch_init): Update.
6666 * mcore-tdep.c (mcore_gdbarch_init): Update.
6667 * m68k-tdep.c (m68k_gdbarch_init): Update.
6668 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6669 * ia64-tdep.c (ia64_gdbarch_init): Update.
6670 (ia64_saved_pc_after_call): Update declaration.
6671 * i386ly-tdep.c (i386lynx_init_abi): Update.
6672 * i386-tdep.c (i386_gdbarch_init): Update.
6673 * hppa-tdep.c (hppa_gdbarch_init): Update.
6674 * h8300-tdep.c (h8300_gdbarch_init): Update.
6675 * frv-tdep.c (frv_gdbarch_init): Update.
6676 * cris-tdep.c (cris_gdbarch_init): Update.
6677 * avr-tdep.c (avr_gdbarch_init): Update.
6678 * arm-tdep.c (arm_gdbarch_init): Update.
6679 * alpha-tdep.c (alpha_gdbarch_init): Update.
6680 * ns32knbsd-nat.c (frame_num_args): Update.
6681 * ns32k-tdep.c (umax_frame_num_args): Update.
6682 * mips-tdep.c (mips_init_frame_pc_first): Update.
6683 * infrun.c (step_over_function): Update.
6684 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6685 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6686 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6687 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6688 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6689 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6690 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6691 * arch-utils.c (init_frame_pc_default): Update.
6692 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6693 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6694 declaration.
6695
6696 2003-04-11 Andrew Cagney <cagney@redhat.com>
6697
6698 * i387-tdep.c: Update copyright.
6699 (i387_to_double): Delete function.
6700 (double_to_i387): Delete function.
6701
6702 2003-04-10 Andrew Cagney <cagney@redhat.com>
6703
6704 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6705 frame's function's address. Simplify.
6706 (d10v_frame_unwind_cache): Check that the frame's function is
6707 non-zero.
6708
6709 2003-04-10 Jim Blandy <jimb@redhat.com>
6710
6711 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6712 call to set_gdbarch_deprecated_push_arguments.
6713
6714 2003-04-10 Andrew Cagney <cagney@redhat.com>
6715
6716 * frame.c (fprint_frame_id): New function.
6717 (fprint_frame_type, fprint_frame): New function.
6718 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6719 (create_sentinel_frame, get_frame_id): Ditto.
6720 (frame_id_p, frame_id_eq): Ditto.
6721 (frame_id_inner, create_new_frame): Ditto.
6722 (legacy_get_prev_frame, get_prev_frame): Ditto.
6723 (deprecated_update_frame_pc_hack): Ditto.
6724 (frame_register_unwind): Ditto.
6725 (deprecated_update_frame_base_hack): Ditto.
6726
6727 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6728
6729 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6730 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6731 frame_chain function.
6732 * Makefile.in: Add dependencies due to above change.
6733
6734 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6735
6736 * blockframe.c (legacy_frame_chain_valid): Move call to
6737 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6738 inside_entry_file.
6739
6740 2003-04-09 Andrew Cagney <cagney@redhat.com>
6741
6742 * frame.h (struct frame_id): Replace "pc" and "base" with
6743 "stack_addr" and "code_addr". Update comments.
6744 (frame_id_build): Update parameter names and comment.
6745 (struct frame_info): Replace "id_p" and "id" with "this_id".
6746 * dummy-frame.c (dummy_frame_this_id): Update.
6747 * breakpoint.c (print_one_breakpoint): Update.
6748 * frame.c (get_frame_id): Update.
6749 (get_frame_base, frame_id_build): Update.
6750 (create_sentinel_frame, legacy_get_prev_frame): Update.
6751 (deprecated_update_frame_base_hack): Update.
6752 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6753 (frame_id_inner): Ditto.
6754
6755 2003-04-09 Andrew Cagney <cagney@redhat.com>
6756
6757 * defs.h (gdb_print_host_address): Make "addr" parameter a
6758 pointer constant.
6759 * utils.c (gdb_print_host_address): Update.
6760
6761 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6762
6763 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6764 register number for R0 is 0.
6765
6766 2003-04-09 J. Brobecker <brobecker@gnat.com>
6767
6768 * frame.h (struct gdbarch): Add opaque structure definition
6769 to avoid a compilation warning on LynxOS 4.0.
6770
6771 2003-04-09 Andrew Cagney <cagney@redhat.com>
6772
6773 * frame.h (struct frame_info): Delete field "pc". Replace
6774 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6775 structure.
6776 * frame.c (frame_pc_unwind): Update.
6777 (create_sentinel_frame): Do not set "pc".
6778 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6779 (get_frame_pc): Call frame_pc_unwind.
6780 (deprecated_update_frame_pc_hack): Update.
6781 (create_new_frame): Use "pc" not "->pc".
6782
6783 2003-04-09 Andrew Cagney <cagney@redhat.com>
6784
6785 * frame.c (get_frame_id): Eliminate code updating "frame".
6786 (legacy_get_prev_frame): Ditto.
6787 (get_frame_base): Return id.base directly.
6788 (deprecated_update_frame_base_hack): Update "id.base".
6789 * frame.h (struct frame_info): Delete field "frame".
6790
6791 2003-04-09 Andrew Cagney <cagney@redhat.com>
6792
6793 * NEWS: Mention that the "Sequent family" is obsolete.
6794 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6795 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6796 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6797 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6798 * config/i386/tm-ptx4.h: Obsolete file.
6799 * config/i386/tm-ptx.h: Obsolete file.
6800 * symm-tdep.c: Obsolete file.
6801 * config/i386/symmetry.mt: Obsolete file.
6802 * config/i386/tm-symmetry.h: Obsolete file.
6803 * symm-nat.c: Obsolete file.
6804 * config/i386/nm-symmetry.h: Obsolete file.
6805 * config/i386/xm-symmetry.h: Obsolete file.
6806 * config/i386/symmetry.mh: Obsolete file.
6807 * config/i386/nm-ptx4.h: Obsolete file.
6808 * config/i386/ptx4.mh: Obsolete file.
6809 * config/i386/ptx.mt: Obsolete file.
6810 * config/i386/ptx.mh: Obsolete file.
6811 * config/i386/xm-ptx4.h: Obsolete file.
6812 * config/i386/xm-ptx.h: Obsolete file.
6813
6814 2003-04-09 Andrew Cagney <cagney@redhat.com>
6815
6816 Obsolete mips*-*-mach3*.
6817 * NEWS: Mention that mips*-*-mach3* is obsolete.
6818 * m3-nat.c: Obsolete file.
6819 * config/nm-m3.h: Obsolete file.
6820 * config/mips/tm-mipsm3.h: Obsolete file.
6821 * config/mips/mipsm3.mt: Obsolete file.
6822 * config/mips/mipsm3.mh: Obsolete file.
6823 * config/mips/xm-mipsm3.h: Obsolete file.
6824 * mipsm3-nat.c: Obsolete file.
6825 * configure.host: Obsolete mips-dec-mach3*.
6826 * configure.tgt: Obsolete mips*-*-mach3*.
6827
6828 2003-04-09 Andrew Cagney <cagney@redhat.com>
6829
6830 * doublest.h: Update copyright.
6831 (deprecated_store_floating, deprecated_extract_floating): Rename
6832 store_floating and extract_floating. Update comments.
6833 * doublest.c: Update copyright.
6834 (extract_floating_by_length): Replace extract_floating.
6835 (store_floating_by_length): Replace store_floating.
6836 (deprecated_extract_floating): New function.
6837 (deprecated_store_floating): New function.
6838 (extract_typed_floating): Call extract_floating_by_length.
6839 (store_typed_floating): Call store_floating_by_length.
6840 * x86-64-tdep.c (x86_64_store_return_value): Update.
6841 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6842 (sh64_extract_return_value): Update.
6843 (sh_sh4_register_convert_to_virtual): Update.
6844 (sh_sh64_register_convert_to_virtual): Update.
6845 (sh_sh4_register_convert_to_raw): Update.
6846 (sh_sh64_register_convert_to_raw): Update.
6847 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6848 (rs6000_register_convert_to_raw): Update.
6849 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6850 (ia64_register_convert_to_raw): Update.
6851 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6852 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6853 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6854 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6855 (alpha_register_convert_to_raw): Update.
6856
6857 2003-04-08 Andrew Cagney <cagney@redhat.com>
6858
6859 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6860 * gdbarch.h, gdbarch.c: Re-generate.
6861 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6862 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6863 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6864 conditionally, use frame_pc_unwind as an alternative. Add
6865 comments.
6866 * arch-utils.c (init_frame_pc_default): Only call
6867 SAVED_PC_AFTER_CALL when available.
6868
6869 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6870
6871 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6872 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6873 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6874 (start_remote): Ditto.
6875 (handle_inferior_event): Ditto.
6876 (save_inferior_status): Ditto.
6877 (restore_inferior_status): Ditto.
6878 * infcmd.c (attach_command): Ditto.
6879 * fork-child.c (startup_inferior): Ditto.
6880 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6881 * alpha-tdep.c (heuristic_proc_start): Ditto.
6882 * mips-tdep.c (heuristic_proc_start): Ditto.
6883 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6884 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6885 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6886 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6887 * remote-vx.c (vx_create_inferior): Ditto.
6888
6889 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6890
6891 * infrun.c (stop_soon_quietly): Make it an enum, to better
6892 override the default behavior of handle_inferior_event.
6893 (clear_proceed_status): Update uses of stop_soon_quietly to
6894 reflect that it is now an enum.
6895 (start_remote): Ditto.
6896 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6897 is set to handle the new GNU/Linux kernel behavior for
6898 attach/sigstop. Update uses of stop_soon_quietly.
6899 * inferior.h (enum stop_kind): New enum.
6900 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6901 Reset normal handle_inferior_event behavior, afterwards.
6902 * fork-child.c (startup_inferior): Update.
6903 * alpha-tdep.c (heuristic_proc_start): Update.
6904 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6905 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6906 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6907 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6908 * remote-vx.c (vx_create_inferior): Update.
6909 * mips-tdep.c (heuristic_proc_start): Update.
6910
6911 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6912
6913 * disasm.c (dump_insns): Move variables inside loop, or they will
6914 be freed more than once, causing wild memory corruptions.
6915 (gdb_disassembly): Look for the substring "-thread",
6916 instead of "-threads" in the target name, to make sure to find
6917 the 'multi-thread' target. Also, make sure we do the right thing
6918 with the "core" target.
6919
6920 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6921
6922 * mips-tdep.c (mips_print_fp_register): New function, created from
6923 do_fp_register_row(). Registers are now (also) printed as hex.
6924 Only one register is printed per row.
6925 (mips_print_register, do_fp_register_row): Print floating point
6926 registers with mips_print_fp_register().
6927
6928 2003-04-06 Andrew Cagney <cagney@redhat.com>
6929
6930 * valprint.h (inspect_it): Add extern declaration.
6931 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6932 (selectors_info, classes_info): Ditto.
6933 (find_objc_msgcall): Fix indentation.
6934 (objc_printstr): Delete extern declarations.
6935
6936 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6937
6938 2003-04-06 Andrew Cagney <cagney@redhat.com>
6939
6940 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6941 Update comment.
6942 * frame.c (legacy_saved_regs_this_id): Update.
6943 (legacy_get_prev_frame): Update.
6944 * xstormy16-tdep.c: Update comment.
6945 * sparc-tdep.c (sparc_frame_chain): Update comment.
6946 * blockframe.c (legacy_frame_chain_valid): Update.
6947
6948 2003-04-06 Andrew Cagney <cagney@redhat.com>
6949
6950 * valprint.c (val_print_type_code_int): Delete #ifdef
6951 PRINT_TYPELESS_INTEGER code.
6952
6953 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6954 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6955 multi-arch definition.
6956 * gdbarch.h: Re-generate.
6957
6958 2003-04-05 Andrew Cagney <cagney@redhat.com>
6959
6960 Eliminate FRAME_FIND_SAVED_REGS.
6961 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6962 Change FSR parameter to a pointer.
6963 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6964 Assume FSR parameter is a pointer.
6965 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6966 Make fsr a pointer.
6967 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6968 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6969 saved_regs a pointer.
6970 (hppa_frame_saved_pc): Ditto.
6971 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6972 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6973 pointer.
6974 (restore_pc_queue): Make fsr a pointer.
6975 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6976 (hppa_frame_chain): Make saved_regs a pointer, call
6977 hppa_frame_init_saved_regs.
6978 * sparc-tdep.c: Include "gdb_assert.h".
6979 (sparc_frame_find_saved_regs): Replace internal_error with
6980 gdb_assert.
6981 * remote-vxsparc.c (vx_read_register): Delete reference to
6982 FRAME_FIND_SAVED_REGS.
6983 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6984 * gdbarch.h: Regenerate.
6985 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6986 (deprecated_get_frame_saved_regs): Delete declaration.
6987 (struct frame_saved_regs): Delete definition.
6988 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6989 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6990 (hppa_frame_find_saved_regs): Delete declaration.
6991 (FRAME_FIND_SAVED_REGS): Delete macro.
6992 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6993 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6994 FRAME_FIND_SAVED_REGS in comment.
6995
6996 2003-04-05 Andrew Cagney <cagney@redhat.com>
6997
6998 * frame.c (frame_func_unwind, get_frame_func): New functions.
6999 * frame.h (get_frame_func, frame_func_unwind): Declare.
7000 (struct frame_info): Add field "prev_func" for caching the
7001 previous frame's function address.
7002 * arm-tdep.c (arm_frameless_function_invocation): Combine
7003 get_pc_function_start and get_frame_pc into get_frame_func.
7004 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7005 (sh64_nofp_frame_init_saved_regs): Ditto.
7006 * s390-tdep.c (s390_function_start): Ditto.
7007 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7008 (rs6000_frameless_function_invocation): Ditto.
7009 (rs6000_frame_saved_pc): Ditto.
7010 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7011 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7012 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7013 (i386_frame_init_saved_regs): Ditto.
7014 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7015 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7016 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7017 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7018 * blockframe.c (frameless_look_for_prologue): Ditto.
7019
7020 2003-04-05 Andrew Cagney <cagney@redhat.com>
7021
7022 * frame.c (legacy_get_prev_frame): Link prev to next at the
7023 function start. Update comments.
7024
7025 2003-04-05 Andrew Cagney <cagney@redhat.com>
7026
7027 * frame.c (get_frame_id): Update comment.
7028 (legacy_get_prev_frame): Update comment.
7029 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7030 * gdbarch.h: Regenerate.
7031 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7032 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7033
7034 2003-04-05 Andrew Cagney <cagney@redhat.com>
7035
7036 * stack.c (print_frame_info): Use get_frame_pc.
7037
7038 2003-04-04 Andrew Cagney <cagney@redhat.com>
7039
7040 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7041 the frame's type from the unwinder.
7042 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7043 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7044 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7045 (get_frame_base_address): Use get_frame_type.
7046 (get_frame_locals_address, get_frame_args_address): Ditto.
7047 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7048 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7049 (struct frame_info): Add comment explaining why the frame contains
7050 a "type" field.
7051 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7052 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7053 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7054 NORMAL_FRAME.
7055 * frame-unwind.h: Include "frame.h".
7056 (struct frame_unwind): Add "type" field.
7057 * Makefile.in (frame_unwind_h): Add $(frame_h).
7058
7059 2003-04-04 Andrew Cagney <cagney@redhat.com>
7060
7061 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7062 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7063 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7064 get_frame_base.
7065 (d10v_unwind_dummy_id): Use frame_id_build.
7066 * frame.c (find_frame_sal): Use get_frame_pc.
7067 (create_new_frame): Use deprecated_update_frame_pc_hack and
7068 deprecated_update_frame_base_hack.
7069 (create_sentinel_frame): Add comment about ->pc going away.
7070 (get_prev_frame): Add comment about ->pc going away.
7071 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7072 frame_id_build, deprecated_update_frame_pc_hack and
7073 deprecated_update_frame_base_hack.
7074 (select_frame): Use get_frame_pc.
7075 (legacy_saved_regs_this_id): Use frame_id_build.
7076
7077 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7078
7079 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7080 signed integer case.
7081 (classify_argument): Handle enumerations and references.
7082
7083 2003-04-04 Andrew Cagney <cagney@redhat.com>
7084
7085 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7086 ID to NULL.
7087
7088 2003-04-01 Adam Fedor <fedor@gnu.org>
7089
7090 * gdb/objc-lang.c (selectors_info): Replace calls to
7091 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7092 SYMBOL_NATURAL_NAME.
7093 (classes_info, find_methods): Likewise.
7094
7095 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7096
7097 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7098 ``mach'' to the value determined by bfd_default_set_arch_mach().
7099
7100 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7101
7102 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7103 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7104 (mi-cmd-file.o): Update dependencies.
7105
7106 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7107
7108 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7109 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7110
7111 2003-04-01 Adam Fedor <fedor@gnu.org>
7112
7113 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7114 * language.h (struct language_defn): Add la_demangle.
7115 (language_demangle): Declare.
7116 * language.c (language_demangle): New function.
7117 (unk_lang_demangle): Likewise.
7118 (unknown_language_defn, auto_language_defn, local_language_defn):
7119 Add ukn_lang_demangle.
7120 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7121 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7122 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7123 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7124 * jv-lang.c (java_demangle): New function
7125 (java_language_defn): Use it for la_demangle element.
7126 * objc-lang.c (objc_demangle): Add options argument
7127 (objc_language_defn): Use objc_demangle for la_demangle element.
7128 * maint.c (maintenance_demangle): Replace switch with
7129 call to language_demangle.
7130 * utils.c (fprintf_symbol_filtered): Likewise.
7131
7132 2003-04-01 Andrew Cagney <cagney@redhat.com>
7133
7134 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7135 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7136 PRINT_TYPELESS_INTEGER.
7137 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7138 PUSH_RETURN_ADDRESS.
7139
7140 2003-04-01 Andrew Cagney <cagney@redhat.com>
7141
7142 * Makefile.in (d10v-tdep.o): Update dependencies.
7143 * d10v-tdep.c: Include "frame-base.h".
7144 (d10v_frame_unwind): Make constant.
7145 (d10v_frame_base_address): New function.
7146 (d10v_frame_base): New variable.
7147 (d10v_gdbarch_init): Set frame_base default.
7148 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7149 comment for base.
7150 (d10v_frame_unwind_cache): Set and use "prev_sp".
7151 (d10v_frame_this_id): Use the previous frame's inner most stack
7152 address and this frame's func address for the frame ID. Use
7153 frame_id_build. Don't analyze beyond the current instruction.
7154
7155 2003-04-01 Andrew Cagney <cagney@redhat.com>
7156
7157 * frame.h (get_frame_locals_address, get_frame_args_address):
7158 Refer to the base address, instead of the address of the first
7159 local or parameter.
7160
7161 2003-04-01 Andrew Cagney <cagney@redhat.com>
7162
7163 Add frame debug info addresses:
7164 * frame-base.c: New file.
7165 * frame-base.h: New file.
7166 * frame.h (struct frame_base): Add opaque declaration.
7167 (get_frame_base): Update comment.
7168 (get_frame_base_address): Declare.
7169 (get_frame_locals_address): Declare.
7170 (get_frame_args_address): Declare.
7171 (struct frame_info): Add "base" and "base_cache". Update
7172 comments on the unwinder.
7173 * frame.c: Include "frame-base.h".
7174 (get_frame_locals_address): New function.
7175 (get_frame_base_address): New function.
7176 (get_frame_args_address): New function.
7177 * findvar.c (read_var_value): Use get_frame_locals_address and
7178 get_frame_args_address.
7179 * stack.c (frame_info): Use get_frame_locals_address and
7180 get_frame_args_address.
7181 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7182 moved to "frame-base.c".
7183 * printcmd.c (print_frame_nameless_args): Ditto.
7184 * symtab.h (address_class): Update comments.
7185 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7186 get_frame_base_address.
7187 * dwarf2expr.c (execute_stack_op): Ditto.
7188 * Makefile.in (frame_base_h): Define.
7189 (frame.o): Update dependencies.
7190 (frame-base.o): Add dependencies.
7191 (SFILES): Add frame-base.c.
7192 (COMMON_OBS): Add frame-base.o.
7193
7194 2003-04-01 Andrew Cagney <cagney@redhat.com>
7195
7196 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7197 CALL_DUMMY_LENGTH): Ditto.
7198 * gdbarch.c: Re-generate.
7199 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7200 (CALL_DUMMY_LENGTH): Delete macro.
7201 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7202 * arm-tdep.c (arm_gdbarch_init): Ditto.
7203 * avr-tdep.c (avr_gdbarch_init): Ditto.
7204 * cris-tdep.c (cris_gdbarch_init): Ditto.
7205 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7206 * frv-tdep.c (frv_gdbarch_init): Ditto.
7207 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7208 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7209 * i386-tdep.c (i386_gdbarch_init): Ditto.
7210 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7211 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7212 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7213 * mips-tdep.c (mips_gdbarch_init): Ditto.
7214 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7215 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7216 * s390-tdep.c (s390_gdbarch_init): Ditto.
7217 * sh-tdep.c (sh_gdbarch_init): Ditto.
7218 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7219 * v850-tdep.c (v850_gdbarch_init): Ditto.
7220 * vax-tdep.c (vax_gdbarch_init): Ditto.
7221 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7222
7223 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7224
7225 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7226
7227 2003-04-01 Andrew Cagney <cagney@redhat.com>
7228
7229 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7230 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7231 * gdbarch.h, gdbarch.c: Re-generate.
7232 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7233 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7234 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7235 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7236 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7237 * infcmd.c (run_stack_dummy): Simplify assuming
7238 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7239 * infrun.c (handle_inferior_event): Ditto.
7240 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7241 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7242 * arm-tdep.c (arm_gdbarch_init): Ditto.
7243 * avr-tdep.c (avr_gdbarch_init): Ditto.
7244 * cris-tdep.c (cris_gdbarch_init): Ditto.
7245 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7246 * frv-tdep.c (frv_gdbarch_init): Ditto.
7247 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7248 * i386-tdep.c (i386_gdbarch_init): Ditto.
7249 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7250 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7251 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7252 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7253 * mips-tdep.c (mips_gdbarch_init): Ditto.
7254 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7255 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7256 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7257 * s390-tdep.c (s390_gdbarch_init): Ditto.
7258 * sh-tdep.c (sh_gdbarch_init): Ditto.
7259 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7260 * v850-tdep.c (v850_gdbarch_init): Ditto.
7261 * vax-tdep.c (vax_gdbarch_init): Ditto.
7262 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7263
7264 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7265
7266 * symfile.c (symfile_relocate_debug_section): Update call to
7267 bfd_simple_get_relocated_section_contents.
7268
7269 2003-03-31 Andrew Cagney <cagney@redhat.com>
7270
7271 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7272 * gdbarch.h, gdbarch.c: Regenerate.
7273 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7274 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7275 available.
7276 * frame.h (generic_fix_call_dummy): Delete declaration.
7277 * dummy-frame.h: Update comment.
7278 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7279 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7280 fix_call_dummy.
7281 * sh-tdep.c (sh_gdbarch_init): Ditto.
7282 * s390-tdep.c (s390_gdbarch_init): Ditto.
7283 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7284 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7285 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7286 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7287 * i386-tdep.c (i386_gdbarch_init): Ditto.
7288 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7289 * frv-tdep.c (frv_gdbarch_init): Ditto.
7290 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7291 * cris-tdep.c (cris_gdbarch_init): Ditto.
7292 * avr-tdep.c (avr_gdbarch_init): Ditto.
7293 * arm-tdep.c (arm_gdbarch_init): Ditto.
7294
7295 2003-03-31 J. Brobecker <brobecker@gnat.com>
7296
7297 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7298 (INIT_FRAME_AP): Likewise.
7299 (EXTRA_FRAME_INFO): Likewise.
7300
7301 2003-03-31 Andrew Cagney <cagney@redhat.com>
7302
7303 * gdbarch.sh: Include "symfile.h".
7304 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7305 * gdbarch.h, gdbarch.c: Re-generate.
7306 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7307 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7308 call_dummy_address, the default is at entry_point_address.
7309 * v850-tdep.c (v850_gdbarch_init): Ditto.
7310 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7311 * sh-tdep.c (sh_gdbarch_init): Ditto.
7312 * s390-tdep.c (s390_gdbarch_init): Ditto.
7313 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7314 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7315 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7316 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7317 * i386-tdep.c (i386_gdbarch_init): Ditto.
7318 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7319 * frv-tdep.c (frv_gdbarch_init): Ditto.
7320 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7321 * cris-tdep.c (cris_gdbarch_init): Ditto.
7322 * arm-tdep.c (arm_gdbarch_init): Ditto.
7323
7324 2003-03-31 Andrew Cagney <cagney@redhat.com>
7325
7326 * gdbarch.sh (CALL_DUMMY_P): Delete.
7327 * gdbarch.h, gdbarch.c: Re-generate.
7328 * inferior.h (CALL_DUMMY_P): Delete macro.
7329 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7330 * vax-tdep.c (vax_gdbarch_init): Update.
7331 * v850-tdep.c (v850_gdbarch_init): Update.
7332 * sparc-tdep.c (sparc_gdbarch_init): Update.
7333 * sh-tdep.c (sh_gdbarch_init): Update.
7334 * s390-tdep.c (s390_gdbarch_init): Update.
7335 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7336 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7337 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7338 * mips-tdep.c (mips_gdbarch_init): Update.
7339 * mcore-tdep.c (mcore_gdbarch_init): Update.
7340 * m68k-tdep.c (m68k_gdbarch_init): Update.
7341 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7342 * ia64-tdep.c (ia64_gdbarch_init): Update.
7343 * i386-tdep.c (i386_gdbarch_init): Update.
7344 * h8300-tdep.c (h8300_gdbarch_init): Update.
7345 * frv-tdep.c (frv_gdbarch_init): Update.
7346 * d10v-tdep.c (d10v_gdbarch_init): Update.
7347 * cris-tdep.c (cris_gdbarch_init): Update.
7348 * breakpoint.c (deprecated_frame_in_dummy): Update.
7349 * avr-tdep.c (avr_gdbarch_init): Update.
7350 * alpha-tdep.c (alpha_gdbarch_init): Update.
7351 * arm-tdep.c (arm_gdbarch_init): Update.
7352 * dummy-frame.c (dummy_frame_this_id): Update comments.
7353 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7354 * frame.c (legacy_get_prev_frame): Ditto.
7355 * valops.c (call_function_by_hand): Delete function.
7356 (hand_function_call): Rename to call_function_by_hand
7357
7358 2003-03-30 Andrew Cagney <cagney@redhat.com>
7359
7360 2002-11-10 Klee Dienes <kdienes@apple.com>
7361 * value.h (struct value): Update comment.
7362
7363 2003-03-30 Andrew Cagney <cagney@redhat.com>
7364
7365 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7366 D10V_FP_REGNUM.
7367 (d10v_gdbarch_init): Do not set fp_regnum.
7368
7369 * frame.c (get_frame_base): Force ID initialization.
7370 (get_prev_frame): Move computation of the frame ID from here ...
7371 (get_frame_id): ... to here.
7372 (legacy_get_prev_frame): Mark the frame ID as valid.
7373 * frame.h (struct frame_info): Add field "id_p".
7374
7375 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7376
7377 * i386-tdep.c (i386_store_struct_return): Removed.
7378 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7379
7380 2003-03-30 Andrew Cagney <cagney@redhat.com>
7381
7382 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7383 * gdbarch.h, gdbarch.c: Regenerate.
7384 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7385 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7386 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7387 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7388 * i386-tdep.c (i386_gdbarch_init): Ditto.
7389 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7390 * cris-tdep.c (cris_gdbarch_init): Ditto.
7391 * vax-tdep.c (vax_gdbarch_init): Ditto.
7392 * s390-tdep.c (s390_gdbarch_init): Ditto.
7393 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7394 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7395 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7396 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7397 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7398 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7399 * sparc-tdep.c (sparc_gdbarch_init): Update.
7400 * sh-tdep.c (sh_gdbarch_init): Update.
7401 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7402 * mips-tdep.c (mips_gdbarch_init): Update.
7403 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7404 * ia64-tdep.c (ia64_gdbarch_init): Update.
7405 * frv-tdep.c (frv_gdbarch_init): Update.
7406 * avr-tdep.c (avr_gdbarch_init): Update.
7407 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7408 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7409 instead of when push_dummy_call is not available.
7410
7411 2003-03-30 Andrew Cagney <cagney@redhat.com>
7412
7413 * infttrace.c: Include "gdbthread.h".
7414 (parent_attach_all): Fix function signature.
7415 (call_ptrace): Update call.
7416 * Makefile.in (infttrace.o): Update dependencies.
7417
7418 2003-03-30 Andrew Cagney <cagney@redhat.com>
7419
7420 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7421 PUSH_RETURN_ADDRESS.
7422 * gdbarch.h, gdbarch.c: Regenerate.
7423 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7424 * x86-64-tdep.c (x86_64_init_abi): Update.
7425 * v850-tdep.c (v850_gdbarch_init): Update.
7426 * sparc-tdep.c (sparc_gdbarch_init): Update.
7427 * sh-tdep.c (sh_gdbarch_init): Update.
7428 * s390-tdep.c (s390_gdbarch_init): Update.
7429 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7430 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7431 * mips-tdep.c (mips_gdbarch_init): Update.
7432 * mcore-tdep.c (mcore_gdbarch_init): Update.
7433 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7434 * ia64-tdep.c (ia64_gdbarch_init): Update.
7435 * i386-tdep.c (i386_gdbarch_init): Update.
7436 * h8300-tdep.c (h8300_gdbarch_init): Update.
7437 * frv-tdep.c (frv_gdbarch_init): Update.
7438 * cris-tdep.c (cris_gdbarch_init): Update.
7439 * avr-tdep.c (avr_gdbarch_init): Update.
7440 * arm-tdep.c (arm_gdbarch_init): Update.
7441 * valops.c (hand_function_call): Update.
7442
7443 2003-03-29 Andrew Cagney <cagney@redhat.com>
7444
7445 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7446 sizeof_call_dummy_words.
7447 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7448 define.
7449 * gdbarch.h: Regenerate.
7450
7451 2003-03-29 Andrew Cagney <cagney@redhat.com>
7452
7453 * infttrace.h: New file.
7454 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7455 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7456 (hpread_read_doc_function_type): Detect an initialized type1.
7457 (hpread_quick_traverse): Initialize mod_name_string.
7458 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7459 (som_solib_get_solib_by_pc): Declare.
7460 (so_lib_thread_start_addr): Declare.
7461 (no_shared_libraries): Declare.
7462 * somread.c (init_import_symbols): Make static. Add forward
7463 declaration.
7464 * config/pa/nm-hppah.h: Include "infttrace.h" for
7465 parent_attach_all.
7466 (hppa_insert_hw_watchpoint): Declare.
7467 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7468 * hppah-nat.c: Include "gdb_string.h".
7469 (parent_attach_all): Delete extern declaration, moved to
7470 "infttrace.h".
7471 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7472 int.
7473 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7474 * Makefile.in (infttrace_h): Define.
7475 (hpread.o): Update dependencies.
7476 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7477 * hppa-hpux-tdep.c: Include "gdb_string.h".
7478 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7479 * infrun.c (handle_inferior_event): Always initialize
7480 stepped_after_stopped_by_watchpoint. Add default and remove
7481 fallthrough in switch statement.
7482 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7483 parameter to int.
7484 (hppa_remove_hw_watchpoint): Ditto.
7485
7486 2003-03-29 Andrew Cagney <cagney@redhat.com>
7487
7488 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7489 offset.
7490
7491 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7492
7493 * arm-tdep.c (arm_push_arguments): Delete.
7494 (struct stack_item): New type.
7495 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7496 (arm_store_struct_return): Delte.
7497 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7498 arm_push_arguments or arm_store_struct_return.
7499
7500 2003-03-28 Andrew Cagney <cagney@redhat.com>
7501
7502 * Makefile.in (d10v-tdep.o): Update dependencies.
7503 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7504 * d10v-tdep.c: Include "remote.h".
7505 (target_resume_hook): Delete extern declaration.
7506 (target_wait_loop_hook): Ditto.
7507 (tdisassemble_command): Eliminate assignment in "if" conditional.
7508 (d10v_ts2_register_sim_regno): Eliminate call to
7509 legacy_register_sim_regno.
7510 (d10v_ts3_register_sim_regno): Ditto.
7511
7512 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7513
7514 * thread.c: Reindented.
7515 * lin-lwp.c: Ditto.
7516 * linux-proc.c: Ditto.
7517
7518 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7519
7520 * MAINTAINERS (write after approval): Add myself.
7521
7522 2003-03-27 Theodore A. Roth <troth@openavr.org>
7523
7524 * objc-exp.y: Add missing semi-colons.
7525
7526 2003-03-27 Andrew Cagney <cagney@redhat.com>
7527
7528 * regcache.c (write_sp): Delete function and references.
7529 * inferior.h (write_sp): Delete declaration.
7530 * valops.c (hand_function_call): Replace write_sp with
7531 TARGET_WRITE_SP.
7532 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7533 (sparc_pop_frame): Ditto.
7534
7535 2003-03-27 Andrew Cagney <cagney@redhat.com>
7536
7537 * NEWS: Mention removal of support for hppa*-*-bsd* and
7538 hppa*-*-osf* natives, and hppa*-*-pro* target.
7539 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7540 * config/pa/xm-pa.h: Obsolete file.
7541 * config/pa/xm-hppab.h: Obsolete file.
7542 * config/pa/nm-hppab.h: Obsolete file.
7543 * config/pa/tm-hppab.h: Obsolete file.
7544 * config/pa/tm-hppao.h: Obsolete file.
7545 * config/pa/nm-hppao.h: Obsolete file.
7546 * config/pa/tm-pro.h: Obsolete file.
7547 * config/pa/hppaosf.mt: Obsolete file.
7548 * config/pa/hppaosf.mh: Obsolete file.
7549 * config/pa/hppapro.mt: Obsolete file.
7550 * config/pa/hppabsd.mt: Obsolete file.
7551 * config/pa/hppabsd.mh: Obsolete file.
7552 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7553 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7554 hppa*-*-osf*.
7555
7556 2003-03-27 Andrew Cagney <cagney@redhat.com>
7557
7558 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7559 push_arguments. Don't set push_return_address or write_sp.
7560 (d10v_push_dummy_call): Replace d10v_push_arguments.
7561 (d10v_push_return_address, d10v_write_sp): Delete function,
7562 handled by push_dummy_call.
7563
7564 2003-03-26 Andrew Cagney <cagney@redhat.com>
7565
7566 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7567 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7568 regcache and dummy_addr parameters.
7569 * gdbarch.h, gdbarch.c: Re-generate.
7570 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7571 available; assume it will handle stack alignment and return
7572 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7573 legacy_push_arguments.
7574 (legacy_push_arguments): Rename default_push_arguments.
7575 * value.h (legacy_push_arguments): Rename default_push_arguments.
7576 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7577 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7578 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7579 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7580 * config/i386/tm-symmetry.h: Update.
7581 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7582 * x86-64-tdep.c (x86_64_init_abi): Update.
7583 * v850-tdep.c (v850_gdbarch_init): Update.
7584 * sparc-tdep.c (sparc_gdbarch_init): Update.
7585 * sh-tdep.c (sh_gdbarch_init): Update.
7586 * s390-tdep.c (s390_gdbarch_init): Update.
7587 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7588 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7589 * mips-tdep.c (mips_gdbarch_init): Update.
7590 * mcore-tdep.c (mcore_gdbarch_init): Update.
7591 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7592 * ia64-tdep.c (ia64_gdbarch_init): Update.
7593 * i386-tdep.c (i386_gdbarch_init): Update.
7594 * hppa-tdep.c (hppa_gdbarch_init): Update.
7595 * h8300-tdep.c (h8300_gdbarch_init): Update.
7596 * frv-tdep.c (frv_gdbarch_init): Update.
7597 * d10v-tdep.c (d10v_gdbarch_init): Update.
7598 * cris-tdep.c (cris_gdbarch_init): Update.
7599 * avr-tdep.c (avr_gdbarch_init): Update.
7600 * arm-tdep.c (arm_gdbarch_init): Update.
7601 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7602 * alpha-tdep.c (alpha_gdbarch_init): Update.
7603
7604 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7605
7606 * signals/signals.c (do_target_signal_to_host): Correct realtime
7607 signal range test.
7608
7609 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7610
7611 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7612 (struct sal_chain, map_catch_names): Remove.
7613 (catch_exception_command_1): Don't call
7614 handle_gnu_4_16_catch_command.
7615
7616 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7617
7618 From Mark Dettinger <dettinge@de.ibm.com>:
7619 * dwarf2cfi.c (read_2u): Increment pointer by two.
7620
7621 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7622
7623 * signals/signals.c: Fix typos in last change.
7624
7625 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7626
7627 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7628 not already defined. Use __SIGRTMIN if available.
7629 (target_signal_from_host): Remove SIGRTMIN block.
7630 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7631 the signal is within the realtime range.
7632
7633 2003-03-25 Adam Fedor <fedor@gnu.org>
7634
7635 * Makefile.in (infrun.o): Add $(language_h)
7636 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7637 for language specific trampolines.
7638 * language.h (struct language_defn): Add skip_trampoline.
7639 (skip_language_trampoline): Declare.
7640 * language.c (unk_lang_trampoline, skip_language_trampoline):
7641 New functions.
7642 (unknown_language_defn, auto_language_defn, local_language_defn):
7643 Add ukn_lang_trampoline.
7644 * ada-lang.c (ada_language_defn): Add NULL for language
7645 specific skip_trampoline.
7646 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7647 scm-lang.c: Likewise.
7648 * objc-lang.c (objc_skip_trampoline): New function.
7649 (objc_language_defn): Add objc_skip_trampoline.
7650
7651 2003-03-25 Andrew Cagney <cagney@redhat.com>
7652
7653 * frame.c (get_prev_frame): Delay validating a frame's ID -
7654 non-NULL, didn't go backwards - until an attempt to unwind it to
7655 the previous frame.
7656
7657 2003-03-25 Andrew Cagney <cagney@redhat.com>
7658
7659 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7660 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7661 * gdbarch.h, gdbarch.c: Re-generate.
7662 * config/sparc/tm-sparc.h
7663 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7664 * sparc-tdep.c (sparc_gdbarch_init): Set
7665 deprecated_extra_stack_alignment_needed.
7666 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7668 extra_stack_alignment_needed.
7669 * v850-tdep.c (v850_gdbarch_init): Ditto.
7670 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7671 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7672 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7673 * cris-tdep.c (cris_gdbarch_init): Ditto.
7674 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7675 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7676
7677 2003-03-25 Andrew Cagney <cagney@redhat.com>
7678
7679 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7680 STORE_STRUCT_RETURN.
7681 * gdbarch.h, gdbarch.c: Regenerate.
7682 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7683 (d10v_push_arguments): Set the struct return register.
7684 (d10v_gdbarch_init): Update.
7685 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7686 * x86-64-tdep.c (x86_64_init_abi): Update.
7687 * vax-tdep.c (vax_gdbarch_init): Update.
7688 * v850-tdep.c (v850_gdbarch_init): Update.
7689 * sparc-tdep.c (sparc_gdbarch_init): Update.
7690 * sh-tdep.c (sh_gdbarch_init): Update.
7691 * s390-tdep.c (s390_gdbarch_init): Update.
7692 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7693 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7694 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7695 * mips-tdep.c (mips_gdbarch_init): Update.
7696 * mcore-tdep.c (mcore_gdbarch_init): Update.
7697 * m68k-tdep.c (m68k_gdbarch_init): Update.
7698 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7699 * ia64-tdep.c (ia64_gdbarch_init): Update.
7700 * i386-tdep.c (i386_gdbarch_init): Update.
7701 * hppa-tdep.c (hppa_gdbarch_init): Update.
7702 * h8300-tdep.c (h8300_gdbarch_init): Update.
7703 * frv-tdep.c (frv_gdbarch_init): Update.
7704 * cris-tdep.c (cris_gdbarch_init): Update.
7705 * avr-tdep.c (avr_gdbarch_init): Update.
7706 * arm-tdep.c (arm_gdbarch_init): Update.
7707 * alpha-tdep.c (alpha_gdbarch_init): Update.
7708
7709 2003-03-25 Andrew Cagney <cagney@redhat.com>
7710
7711 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7712 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7713 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7714 * gdbarch.h, gdbarch.c: Regenerate.
7715 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7716 call_dummy_stack_adjust_p.
7717 * vax-tdep.c (vax_gdbarch_init): Ditto.
7718 * v850-tdep.c (v850_gdbarch_init): Ditto.
7719 * sh-tdep.c (sh_gdbarch_init): Ditto.
7720 * s390-tdep.c (s390_gdbarch_init): Ditto.
7721 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7722 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7723 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7724 * mips-tdep.c (mips_gdbarch_init): Ditto.
7725 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7726 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7727 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7728 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7729 * i386-tdep.c (i386_gdbarch_init): Ditto.
7730 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7731 * frv-tdep.c (frv_gdbarch_init): Ditto.
7732 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7733 * cris-tdep.c (cris_gdbarch_init): Ditto.
7734 * avr-tdep.c (avr_gdbarch_init): Ditto.
7735 * arm-tdep.c (arm_gdbarch_init): Ditto.
7736 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7737 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7738 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7739 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7740 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7741 call_dummy_stack_adjust_p.
7742 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7743 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7744 * sparc-tdep.c (sparc32_push_arguments): Update.
7745 * valops.c (hand_function_call): Update.
7746
7747 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7748
7749 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7750 set_gdbarch_char_signed.
7751
7752 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7753
7754 PR cli/548
7755 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7756
7757 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7758
7759 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7760 (_initialize_arm_tdep): Don't set tm_print_insn.
7761
7762 2003-03-24 Adam Fedor <fedor@gnu.org>
7763
7764 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7765 * objc-lang.h: Add multiple inclusion protection.
7766 (start_msglist, add_msglist, end_msglist): Additional declarations.
7767
7768 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7769
7770 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7771 value was renamed to ARM_FLOAT_SOFT_FPA.
7772
7773 2003-03-23 Andrew Cagney <cagney@redhat.com>
7774
7775 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7776 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7777 * gdbarch.h, gdbarch.c: Regenerate.
7778 * valops.c (hand_function_call): Update.
7779 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7780 * frame.c (legacy_saved_regs_this_id): Update.
7781 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7782 * dummy-frame.h: Update.
7783 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7784 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7785 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7786 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7787 * config/m68k/tm-sun3.h: Update.
7788 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7789 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7790 * x86-64-tdep.c (x86_64_init_abi): Update.
7791 * vax-tdep.c (vax_gdbarch_init): Update.
7792 * v850-tdep.c (v850_gdbarch_init): Update.
7793 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7794 * sh-tdep.c (sh_gdbarch_init): Update.
7795 * s390-tdep.c (s390_gdbarch_init): Update.
7796 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7797 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7798 (frame_get_saved_regs): Update.
7799 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7800 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7801 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7802 * mips-tdep.c (mips_gdbarch_init): Update.
7803 * mcore-tdep.c (mcore_gdbarch_init): Update.
7804 * m68k-tdep.c (m68k_gdbarch_init): Update.
7805 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7806 * ia64-tdep.c (ia64_gdbarch_init): Update.
7807 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7808 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7809 (i386_interix_back_one_frame): Update.
7810 * hppa-tdep.c (hppa_gdbarch_init): Update.
7811 (hppa_init_extra_frame_info): Update.
7812 * h8300-tdep.c (h8300_gdbarch_init): Update.
7813 * frv-tdep.c (frv_gdbarch_init): Update.
7814 * cris-tdep.c (cris_gdbarch_init): Update.
7815 * avr-tdep.c (avr_gdbarch_init): Update.
7816 * arm-tdep.c (arm_gdbarch_init): Update.
7817 * alpha-tdep.c (alpha_gdbarch_init): Update.
7818
7819 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7820
7821 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7822 (arm_get_fp_model): Declare.
7823 * arm-tdep.c (fp_model_strings): New string array.
7824 (arm_fp_model, current_fp_model): New variables.
7825 (arm_get_fp_model): New function.
7826 (arm_set_fp): New function.
7827 (set_fp_model_sfunc): New function.
7828 (show_fp_model): New function.
7829 (_initialize_arm_tdep): Add new command to set/show the FPU.
7830 (arm_extract_return_value): Use arm_get_fp_model.
7831 (arm_store_return_value): Likewise.
7832 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7833 to initialize the floating-point data types.
7834 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7835 model is FPA.
7836
7837 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7838
7839 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7840 the current setting of each value.
7841 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7842 new_set and new_show. Use add_setshow_cmd_full and
7843 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7844 commands and add new version as subcommands of "set/show arm".
7845
7846 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7847
7848 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7849 (set_arm_command, show_arm_command): New functions.
7850 (_initialize_arm_tdep): Add them.
7851 (num_disassembly_options): Renamed from num_flavor_options.
7852 (valid_disassembly_styles): Renamed from valid_flavors.
7853 (disassembly_style): Renamed from disassembly_flavor.
7854 (set_disassembly_style_sfunc): Renamed from
7855 set_disassembly_flavor_sfunc.
7856 (set_disassembly_style): Renamed from set_disassembly_flavor.
7857 (arm_othernames): Updated.
7858 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7859 command. Add "set/show arm disassembly" commands. Deprecate
7860 "othernames" command.
7861
7862 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7863
7864 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7865 (arm-tdep.o): Depend on elf_arm_h.
7866
7867 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7868
7869 * Makefile.in (coff_internal_h): Define.
7870 (arm-tdep.o): Update dependencies.
7871
7872 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7873
7874 * arm-tdep.c (prologue_cache): Delete.
7875 (check_prologue_cache, save_prologue_cache): Delete.
7876 (arm_scan_prologue): Don't check or update the prologue_cache.
7877 (arm_gdb_arch_init): Don't initialize it.
7878 (_initialize_arm_tdep): Likewise.
7879
7880 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7881
7882 * MAINTAINERS (tui): Maintainer of tui code.
7883
7884 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7885
7886 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7887 (i386-cygwin-tdep.o): Add dependencies.
7888 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7889 * i386-cygwin-tdep.c: New file.
7890 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7891 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7892
7893 2003-03-20 Andrew Cagney <cagney@redhat.com>
7894
7895 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7896 (handle_inferior_event): Remove code calling
7897 DYNAMIC_TRAMPOLINE_NEXTPC.
7898
7899 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7900 already has a full path.
7901
7902 * main.c (gdb_main): Return 1.
7903 (captured_main): Call error to report an invalid interpreter.
7904
7905 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7906 * alpha-osf1-tdep.c: Include "gdb_string.h".
7907
7908 2003-03-19 J. Brobecker <brobecker@gnat.com>
7909
7910 Continuing work to convert the hppa targets to multiarch partial.
7911
7912 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7913 method, now that hppa_push_dummy_frame has a conformant prototype.
7914 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7915 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7916 for the switch to multiarch partial.
7917
7918 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7919
7920 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7921 when iss is issNull.
7922
7923 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7924
7925 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7926 NUM_REGS bounds check.
7927
7928 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7929
7930 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7931 * mips-tdep.c (gdb_assert.h): Include.
7932 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7933 (mips_register_name): Handle integer registers explicitly. Add
7934 bounds checking.
7935 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7936 (mips_lsi33k_reg_names): Don't list integer registers; they're
7937 handled by mips_register_name() now.
7938 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7939 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7940 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7941 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7942 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7943
7944 2003-03-18 Andrew Cagney <cagney@redhat.com>
7945
7946 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7947 a void pointer.
7948 * gdbtypes.h (print_scalar_formatted): Update declaration.
7949 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7950
7951 2003-03-18 J. Brobecker <brobecker@gnat.com>
7952
7953 * infrun.c (observer.h): Add #include.
7954 (normal_stop): Add call to observer_notify_normal_stop.
7955 * Makefile.in (infrun.o): Add dependency on observer.h.
7956
7957 2003-03-18 J. Brobecker <brobecker@gnat.com>
7958
7959 Continuing work to convert the hppa targets to multiarch partial.
7960 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7961 parameter. Reformat comment.
7962 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7963 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7964 to match new profile.
7965
7966 2003-03-18 J. Brobecker <brobecker@gnat.com>
7967
7968 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7969 appear to be working in any case.
7970
7971 2003-03-18 J. Brobecker <brobecker@gnat.com>
7972
7973 * observer.c (observer_test_first_observer): New static variable.
7974 (observer_test_second_observer): Likewise.
7975 (observer_test_third_observer): Likewise.
7976 (observer_test_first_notification_function): New static function.
7977 (observer_test_second_notification_function): Likewise.
7978 (observer_test_third_notification_function): Likewise.
7979
7980 2003-03-17 J. Brobecker <brobecker@gnat.com>
7981
7982 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7983 * somsolib.c (gdb_assert.h): Likewise.
7984 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7985 (somsolib.o): Likewise.
7986
7987 2003-03-17 Andrew Cagney <cagney@redhat.com>
7988
7989 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7990 BFD. Simplify setting of di.endian.
7991
7992 2003-03-17 Andrew Cagney <cagney@redhat.com>
7993
7994 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7995 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7996
7997 From Elena Zannoni <ezannoni@redhat.com>
7998 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7999 vector and floating-point parameters.
8000 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8001 convention.
8002 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8003
8004 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8005
8006 * MAINTAINERS: Remove my name from several maintainership roles.
8007
8008 2003-03-17 Andrew Cagney <cagney@redhat.com>
8009
8010 Fix frame off-by-one bug.
8011 * frame-unwind.h (frame_this_id_ftype): Replace
8012 frame_unwind_id_ftype.
8013 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8014 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8015 with "prev_register".
8016 * frame-unwind.c (frame_unwind_find_by_pc): Return
8017 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8018 comment.
8019 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8020 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8021 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8022 (dummy_frame_unwind): Update.
8023 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8024 sentinel_frame_register_unwind.
8025 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8026 (sentinel_frame_unwinder): Update.
8027 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8028 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8029 * frame.c (create_sentinel_frame): Update. Initialize
8030 "prologue_cache" instead of "unwind_cache".
8031 (frame_register_unwind): Call this frame's prev_register with the
8032 next frame and this frame's prologue cache.
8033 (get_prev_frame): Simplify. Always call prev frame's this_id with
8034 this frame and prev frame's prologue cache. Document that this
8035 call is shifted one to the left when compared to the
8036 frame_register_unwind call.
8037 (legacy_saved_regs_prev_register): Replace
8038 frame_saved_regs_register_unwind.
8039 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8040 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8041 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8042 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8043 (d10v_frame_unwind): Update.
8044 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8045 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8046 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8047 "saved_regs" with "this_saved_regs".
8048
8049 2003-03-16 Andrew Cagney <cagney@redhat.com>
8050
8051 * frame.c (frame_pop): Don't call target_store_registers. Fix
8052 problem reported by Mark Kettenis.
8053
8054 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8055
8056 * i386-tdep.c (i386_register_type): Renamed from
8057 i386_register_virtual_type. Adjust function signature.
8058 (i386_gdbarch_init): Set register_type instead of
8059 deprecated_max_register_raw_size,
8060 deprecated_max_register_virtual_size and register_virtual_type.
8061
8062 2003-03-14 Andrew Cagney <cagney@redhat.com>
8063
8064 * frame.c (get_prev_frame): When a legacy frame, always call
8065 legacy_get_prev_frame. Simplify unwind code using assumption that
8066 the unwinder is new.
8067 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8068 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8069 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8070
8071 2003-03-14 Andrew Cagney <cagney@redhat.com>
8072
8073 * frame.c (get_saved_register): Delete function.
8074 * frame.h (get_saved_register): Delete declaration.
8075 * xstormy16-tdep.c: Update comment.
8076 * regcache.h: Update comments.
8077 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8078 get_saved_register and extract_address, use
8079 frame_read_unsigned_register.
8080 (sparc_frame_saved_pc): Ditto.
8081 (sparc_get_saved_register): Instead of get_saved_register, use
8082 frame_register.
8083 (sparc_pop_frame): Ditto.
8084 * findvar.c: Update comments.
8085 (value_of_register): Call frame_register instead of
8086 get_saved_register.
8087 (value_from_register): Ditto.
8088 * config/sparc/tm-sparc.h: Update comment.
8089 * breakpoint.c: Update comment.
8090
8091 2003-03-14 Andrew Cagney <cagney@redhat.com>
8092
8093 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8094 GET_SAVED_REGISTER.
8095 * gdbarch.h, gdbarch.c: Re-generate.
8096 * frame.h: Update comments.
8097 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8098 * x86-64-tdep.c (x86_64_init_abi): Update.
8099 * sparc-tdep.c (sparc_gdbarch_init): Update.
8100 * sh-tdep.c (sh_gdbarch_init): Update.
8101 * mips-tdep.c (mips_gdbarch_init): Update.
8102 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8103 * cris-tdep.c (cris_gdbarch_init): Update.
8104 * ia64-tdep.c (ia64_gdbarch_init): Update.
8105 * frame.c (frame_register): Update.
8106 (get_saved_register): Update.
8107 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8108
8109 2003-03-13 Andrew Cagney <cagney@redhat.com>
8110
8111 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8112 * gdbarch.h, gdbarch.c: Regenerate.
8113 * valops.c (hand_function_call): Update comment.
8114 * stack.c (return_command): Update comment.
8115 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8116 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8117 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8118 * x86-64-tdep.c (x86_64_init_abi): Update.
8119 * vax-tdep.c (vax_gdbarch_init): Update.
8120 * v850-tdep.c (v850_gdbarch_init): Update.
8121 * sparc-tdep.c (sparc_gdbarch_init): Update.
8122 * sh-tdep.c (sh_gdbarch_init): Update.
8123 * s390-tdep.c (s390_gdbarch_init): Update.
8124 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8125 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8126 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8127 * mips-tdep.c (mips_gdbarch_init): Update.
8128 * mcore-tdep.c (mcore_gdbarch_init): Update.
8129 * m68k-tdep.c (m68k_gdbarch_init): Update.
8130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8131 * ia64-tdep.c (ia64_gdbarch_init): Update.
8132 * i386-tdep.c (i386_gdbarch_init): Update.
8133 * hppa-tdep.c (hppa_gdbarch_init): Update.
8134 * h8300-tdep.c (h8300_gdbarch_init): Update.
8135 * frv-tdep.c (frv_gdbarch_init): Update.
8136 * cris-tdep.c (cris_gdbarch_init): Update.
8137 * avr-tdep.c (avr_gdbarch_init): Update.
8138 * arm-tdep.c (arm_gdbarch_init): Update.
8139 * alpha-tdep.c (alpha_gdbarch_init): Update.
8140
8141 2003-03-13 Andrew Cagney <cagney@redhat.com>
8142
8143 * frame.c (legacy_frame_p): New function.
8144 (get_prev_frame): Use legacy_frame_p.
8145 * frame.h (legacy_frame_p): Declare.
8146
8147 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8148
8149 * MAINTAINERS (write after approval): Alphabetically
8150 listing corrected.
8151
8152 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8153
8154 * MAINTAINERS (write after approval): Add myself.
8155
8156 2003-03-12 Andrew Cagney <cagney@redhat.com>
8157
8158 * frame.c (get_prev_frame): Rename the frame parameter to
8159 "this_frame".
8160 (get_next_frame, legacy_get_prev_frame): Ditto.
8161
8162 2003-03-12 Andrew Cagney <cagney@redhat.com>
8163
8164 * frame.c (get_current_frame): Check target_has_registers before
8165 checking target_has_stack.
8166 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8167 instead of deprecated_selected_frame.
8168 * findvar.c (value_of_register): Pass "frame", not
8169 deprecated_selected_frame, to value_of_builtin_reg.
8170
8171 2003-03-12 Andrew Cagney <cagney@redhat.com>
8172
8173 * regcache.c (regcache_cooked_write_signed): New function.
8174 (regcache_cooked_write_unsigned): New function.
8175 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8176 (regcache_cooked_read_signed): Fix regnum in range assertion.
8177 * regcache.h (regcache_cooked_write_signed): Declare.
8178 (regcache_cooked_write_unsigned): Declare.
8179
8180 2003-03-12 Andrew Cagney <cagney@redhat.com>
8181
8182 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8183 * gdbarch.h, gdbarch.c: Re-generate.
8184 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8185 * x86-64-tdep.h: Update.
8186 * x86-64-tdep.c (x86_64_init_abi): Update.
8187 * v850-tdep.c (v850_gdbarch_init): Update.
8188 * sparc-tdep.c (sparc_gdbarch_init): Update.
8189 * sh-tdep.c (sh_gdbarch_init): Update.
8190 * s390-tdep.c (s390_gdbarch_init): Update.
8191 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8192 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8193 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8194 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8195 * mips-tdep.c (mips_gdbarch_init): Update.
8196 * mcore-tdep.c (mcore_gdbarch_init): Update.
8197 * m68k-tdep.c (m68k_gdbarch_init): Update.
8198 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8199 * ia64-tdep.c (ia64_gdbarch_init): Update.
8200 * i386-tdep.c (i386_gdbarch_init): Update.
8201 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8202 * hppa-tdep.c (hppa_gdbarch_init): Update.
8203 * h8300-tdep.c (h8300_gdbarch_init): Update.
8204 * frv-tdep.c (frv_gdbarch_init): Update.
8205 * cris-tdep.c (cris_gdbarch_init): Update.
8206 * avr-tdep.c (avr_gdbarch_init): Update.
8207 * arm-tdep.c (arm_gdbarch_init): Update.
8208 * alpha-tdep.c (alpha_gdbarch_init): Update.
8209 * sh-tdep.c (sh_init_extra_frame_info): Update.
8210 (sh64_init_extra_frame_info): Update.
8211 * ns32knbsd-nat.c (frame_num_args): Update.
8212 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8213 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8214 (xstormy16_frame_chain_valid): Update.
8215 * vax-tdep.c (vax_saved_pc_after_call): Update.
8216 * v850-tdep.c (v850_frame_chain): Update.
8217 (v850_pop_frame): Update.
8218 (v850_init_extra_frame_info): Update.
8219 * sparc-tdep.c (setup_arbitrary_frame): Update.
8220 * ns32k-tdep.c (umax_frame_num_args): Update.
8221 * s390-tdep.c (s390_pop_frame_regular): Update.
8222 * mn10300-tdep.c (mn10300_frame_chain): Update.
8223 (mn10300_pop_frame_regular): Update.
8224 (mn10300_init_extra_frame_info): Update.
8225 * mips-tdep.c (mips_init_frame_pc_first): Update.
8226 (mips_frame_chain): Update.
8227 (mips_pop_frame): Update.
8228 * mcore-tdep.c (mcore_frame_chain): Update.
8229 (mcore_pop_frame): Update.
8230 (mcore_init_extra_frame_info): Update.
8231 * arch-utils.c (init_frame_pc_default): Update.
8232 * m68k-tdep.c (isi_frame_num_args): Update.
8233 (delta68_frame_num_args): Update.
8234 (news_frame_num_args): Update.
8235 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8236 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8237 (alpha_frame_chain): Update.
8238 (alpha_pop_frame): Update.
8239 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8240 (hppa_init_extra_frame_info): Update.
8241 (hppa_frame_chain): Update.
8242 (hppa_frame_chain_valid): Update.
8243 * cris-tdep.c (cris_init_extra_frame_info): Update.
8244 * avr-tdep.c (avr_init_extra_frame_info): Update.
8245 * arm-tdep.c (arm_frame_chain_valid): Update.
8246 (arm_init_extra_frame_info): Update.
8247 (arm_pop_frame): Update.
8248 * frame.c (frame_pc_unwind): Update.
8249 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8250 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8251 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8252 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8253 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8254 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8255
8256 2003-03-12 Andrew Cagney <cagney@redhat.com>
8257
8258 Eliminate the need for POP_FRAME.
8259 * frame.c (do_frame_unwind_register): New function.
8260 (frame_pop): When no POP_FRAME, pop the frame using register
8261 unwind and a scratch regcache.
8262 (frame_saved_regs_pop): Delete function.
8263 (trad_frame_unwinder): Update.
8264 * d10v-tdep.c (d10v_frame_pop): Delete function.
8265 (d10v_frame_unwind): Update.
8266 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8267 (sentinel_frame_unwinder): Update.
8268 * dummy-frame.c (dummy_frame_pop): Delete function.
8269 (dummy_frame_unwind): Update.
8270 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8271 (struct frame_unwind): Update.
8272
8273 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8274
8275 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8276 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8277 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8278 Do range checks on register number obtained from debugging info.
8279 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8280 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8281 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8282 mapping function.
8283 (do_fp_register_row): Fix typo which caused double type to be
8284 used when attempting to unpack a float.
8285
8286 2003-03-11 J. Brobecker <brobecker@gnat.com>
8287
8288 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8289
8290 2003-03-11 Andrew Cagney <cagney@redhat.com>
8291
8292 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8293 frame. Problem found by Corinna Vinschen.
8294
8295 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8296
8297 * doublest.c (floatformat_from_length): Accept also
8298 the real size of 'long double' type.
8299
8300 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8301
8302 From Klee Dienes <kdienes@apple.com>:
8303 * breakpoint.c (bpstat_copy): Copy the command lines as well
8304 as the old value, to match what is freed in bpstat_clear.
8305
8306 2003-03-10 David Carlton <carlton@math.stanford.edu>
8307
8308 * minsyms.c (add_minsym_to_hash_table): Replace
8309 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8310 (compare_minimal_symbols, compact_minimal_symbols)
8311 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8312 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8313 of DEPRECATED_SYMBOL_MATCHES_NAME.
8314 (lookup_minimal_symbol_solib_trampoline): Ditto.
8315
8316 2003-03-10 Andrew Cagney <cagney@redhat.com>
8317
8318 * regcache.h (regcache_cooked_read_ftype): Define.
8319 (regcache_save, regcache_restore): Add a cooked_read parameter.
8320 * regcache.c (regcache_save, regcache_restore): Update.
8321 (do_cooked_read): New function.
8322 (regcache_cpy): Pass do_cooked_read to regcache_save and
8323 regcache_restore.
8324
8325 2003-03-10 Andrew Cagney <cagney@redhat.com>
8326
8327 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8328 * gdbarch.h, gdbarch.c: Re-generate.
8329 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8330 * x86-64-tdep.h: Update.
8331 * x86-64-tdep.c (x86_64_init_abi): Update.
8332 * v850-tdep.c (v850_gdbarch_init): Update.
8333 * sparc-tdep.c (sparc_gdbarch_init): Update.
8334 * sh-tdep.c (sh_gdbarch_init): Update.
8335 * s390-tdep.c (s390_gdbarch_init): Update.
8336 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8337 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8338 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8339 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8340 * mips-tdep.c (mips_gdbarch_init): Update.
8341 * mcore-tdep.c (mcore_gdbarch_init): Update.
8342 * m68k-tdep.c (m68k_gdbarch_init): Update.
8343 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8344 * ia64-tdep.c (ia64_gdbarch_init): Update.
8345 * i386-tdep.c (i386_gdbarch_init): Update.
8346 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8347 * hppa-tdep.c (hppa_gdbarch_init): Update.
8348 * h8300-tdep.c (h8300_gdbarch_init): Update.
8349 * frv-tdep.c (frv_gdbarch_init): Update.
8350 * cris-tdep.c (cris_gdbarch_init): Update.
8351 * avr-tdep.c (avr_gdbarch_init): Update.
8352 * arm-tdep.c (arm_gdbarch_init): Update.
8353 * alpha-tdep.c (alpha_gdbarch_init): Update.
8354 * sh-tdep.c (sh_init_extra_frame_info): Update.
8355 (sh64_init_extra_frame_info): Update.
8356 * ns32knbsd-nat.c (frame_num_args): Update.
8357 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8358 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8359 (xstormy16_frame_chain_valid): Update.
8360 * vax-tdep.c (vax_saved_pc_after_call): Update.
8361 * v850-tdep.c (v850_frame_chain): Update.
8362 (v850_pop_frame): Update.
8363 (v850_init_extra_frame_info): Update.
8364 * sparc-tdep.c (setup_arbitrary_frame): Update.
8365 * ns32k-tdep.c (umax_frame_num_args): Update.
8366 * s390-tdep.c (s390_pop_frame_regular): Update.
8367 * mn10300-tdep.c (mn10300_frame_chain): Update.
8368 (mn10300_pop_frame_regular): Update.
8369 (mn10300_init_extra_frame_info): Update.
8370 * mips-tdep.c (mips_init_frame_pc_first): Update.
8371 (mips_frame_chain): Update.
8372 (mips_pop_frame): Update.
8373 * mcore-tdep.c (mcore_frame_chain): Update.
8374 (mcore_pop_frame): Update.
8375 (mcore_init_extra_frame_info): Update.
8376 * arch-utils.c (init_frame_pc_default): Update.
8377 * m68k-tdep.c (isi_frame_num_args): Update.
8378 (delta68_frame_num_args): Update.
8379 (news_frame_num_args): Update.
8380 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8381 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8382 (alpha_frame_chain): Update.
8383 (alpha_pop_frame): Update.
8384 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8385 (hppa_init_extra_frame_info): Update.
8386 (hppa_frame_chain): Update.
8387 (hppa_frame_chain_valid): Update.
8388 * cris-tdep.c (cris_init_extra_frame_info): Update.
8389 * avr-tdep.c (avr_init_extra_frame_info): Update.
8390 * arm-tdep.c (arm_frame_chain_valid): Update.
8391 (arm_init_extra_frame_info): Update.
8392 (arm_pop_frame): Update.
8393 * frame.c (frame_pc_unwind): Update.
8394 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8395 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8396 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8397 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8398 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8399 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8400
8401 2003-03-10 Andrew Cagney <cagney@redhat.com>
8402
8403 * gdbarch.sh (gdbarch_unwind_pc): New method.
8404 * gdbarch.h, gdbarch.c: Regenerate.
8405 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8406 but use read_pc and FRAME_SAVED_PC as fall backs.
8407 (frame_saved_regs_pc_unwind): Delete function.
8408 (trad_frame_unwinder): Update.
8409 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8410 (struct frame_unwind): Update.
8411 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8412 (dummy_frame_unwind): Update.
8413 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8414 (sentinel_frame_unwinder): Update.
8415 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8416 (d10v_frame_unwind): Update.
8417 (d10v_unwind_pc): New function.
8418 (d10v_gdbarch_init): Set unwind_pc.
8419
8420 2003-03-10 Andrew Cagney <cagney@redhat.com>
8421
8422 * gdbarch.h: Re-generate.
8423
8424 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8425 PC.
8426 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8427 the PC register.
8428
8429 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8430
8431 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8432
8433 2003-03-08 Andrew Cagney <cagney@redhat.com>
8434
8435 * cli-out.c: Update copyright.
8436 (cli_out_data): Define typedef. Use instead of ui_out_data.
8437
8438 2003-03-08 Andrew Cagney <cagney@redhat.com>
8439
8440 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8441 the result.
8442
8443 2003-03-07 Andrew Cagney <cagney@redhat.com>
8444
8445 * gdbarch.sh: Don't generate two macro definitions when an
8446 undefined macro taking no arguments.
8447 * gdbarch.h: Regenerate.
8448
8449 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8450
8451 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8452 (x86_64_unwind_dummy_id): New functions.
8453 (x86_64_init_abi): Register these two new functions.
8454
8455 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8456
8457 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8458 (x86_64_skip_prologue): Move prologue detection to
8459 separate function.
8460 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8461
8462 2003-03-05 Andrew Cagney <cagney@redhat.com>
8463
8464 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8465 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8466 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8467 to use unwind_dummy_id when a dummy frame.
8468 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8469 predicate.
8470 * gdbarch.h, gdbarch.c: Regneerate.
8471
8472 2003-03-05 Andrew Cagney <cagney@redhat.com>
8473
8474 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8475 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8476 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8477 values.
8478
8479 2003-03-05 Andrew Cagney <cagney@redhat.com>
8480
8481 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8482 (struct d10v_unwind_cache): Delete field "frameless". Replace
8483 "next_addr" with "sp_offset". Add "r11_offset".
8484 (d10v_frame_unwind_cache): Update.
8485 (prologue_find_regs): Update. When "mv r11, sp", save the
8486 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8487 RN was saved in r11_offset.
8488
8489 2003-03-05 Andrew Cagney <cagney@redhat.com>
8490
8491 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8492 cached PC value in the next frame.
8493
8494 2003-03-05 Andrew Cagney <cagney@redhat.com>
8495
8496 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8497 "id_unwind_cache" with "id".
8498 (frame_id_unwind): Delete declaration.
8499 * frame.c (frame_id_unwind): Delete function.
8500 (get_prev_frame): Call the frame id unwind method directly. Store
8501 the returned next frame's ID value in NEXT_FRAME. Note that there
8502 is a problem with the wrong unwind ID being called with the wrong
8503 unwind cache.
8504
8505 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8506
8507 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8508
8509 2003-03-05 James Ingham <jingham@apple.com>
8510 Daniel Jacobowitz <drow@mvista.com>
8511
8512 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8513 (auto_cp_abi): New variable.
8514 (current_cp_abi, num_cp_abis): Make static.
8515 (CP_ABI_MAX): Define.
8516 (cp_abis): Turn into an array.
8517 (value_virtual_fn_field): Fix formatting.
8518 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8519 takes a pointer.
8520 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8521 (list_cp_abis, _initialize_cp_abi): New functions.
8522 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8523 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8524 switch_to_cp_abi. Update prototype for register_cp_abi.
8525 * Makefile.in (cp-abi.o): Update dependencies.
8526 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8527 instead of switch_to_cp_abi.
8528 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8529 register_cp_abi.
8530 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8531 register_cp_abi.
8532 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8533
8534 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8535
8536 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8537 * dwarf2loc.c: Include "regcache.h".
8538 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8539 register_size.
8540 * Makefile.in (dwarf2loc.o): Update dependencies.
8541
8542 2003-03-04 Theodore A. Roth <troth@openavr.org>
8543
8544 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8545 number of io registers reported by remote target is not a multiple of
8546 step.
8547
8548 2003-03-04 David Carlton <carlton@math.stanford.edu>
8549
8550 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8551 (lookup_symbol_aux_psymtabs): Update call to
8552 lookup_partial_symbol.
8553 (lookup_transparent_type, find_main_psymtab)
8554 (make_symbol_overload_list): Ditto.
8555
8556 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8557
8558 * MAINTAINERS (Write after approval): Update my email address.
8559
8560 2003-03-03 Andrew Cagney <cagney@redhat.com>
8561
8562 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8563 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8564 predicate. Replace MAX_REGISTER_RAW_SIZE.
8565 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8566 MAX_REGISTER_VIRTUAL_SIZE.
8567 * regcache.c (legacy_max_register_raw_size): New function.
8568 (legacy_max_register_virtual_size): New function.
8569 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8570 (MAX_REGISTER_RAW_SIZE): Define.
8571 (legacy_max_register_raw_size): Declare.
8572 (legacy_max_register_virtual_size): Declare.
8573 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8574 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8575 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8576 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8577 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8578 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8579 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8580 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8581 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8582 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8583 * vax-tdep.c (vax_gdbarch_init): Update.
8584 * v850-tdep.c (v850_gdbarch_init): Update.
8585 * sparc-tdep.c (sparc_gdbarch_init): Update.
8586 * sh-tdep.c (sh_gdbarch_init): Update.
8587 * s390-tdep.c (s390_gdbarch_init): Update.
8588 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8589 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8590 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8591 * mips-tdep.c (mips_gdbarch_init): Update.
8592 * mcore-tdep.c (mcore_gdbarch_init): Update.
8593 * m68k-tdep.c (m68k_gdbarch_init): Update.
8594 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8595 * ia64-tdep.c (ia64_gdbarch_init): Update.
8596 * i386-tdep.c (i386_gdbarch_init): Update.
8597 * hppa-tdep.c (hppa_gdbarch_init): Update.
8598 * h8300-tdep.c (h8300_gdbarch_init): Update.
8599 * frv-tdep.c (frv_gdbarch_init): Update.
8600 * cris-tdep.c (cris_gdbarch_init): Update.
8601 * avr-tdep.c (avr_gdbarch_init): Update.
8602 * arm-tdep.c (arm_gdbarch_init): Update.
8603 * alpha-tdep.c (alpha_gdbarch_init): Update.
8604 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8605 max_register_raw_size or max_register_virtual_size.
8606
8607 2003-03-03 David Carlton <carlton@math.stanford.edu>
8608
8609 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8610 SYMBOL_MATCHES_NAME, add comment.
8611 (SYMBOL_MATCHES_NATURAL_NAME): New.
8612 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8613 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8614 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8615 * symtab.c (lookup_partial_symbol): Use
8616 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8617 unhelpful comment.
8618 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8619 SYMBOL_MATCHES_NAME.
8620 Fix for PR c++/33.
8621
8622 2003-03-03 David Carlton <carlton@math.stanford.edu>
8623
8624 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8625 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8626 by regexp matching against SYMBOL_NATURAL_NAME.
8627
8628 2003-03-03 David Carlton <carlton@math.stanford.edu>
8629
8630 * linespec.c (find_method): Extract code into collect_methods.
8631 (collect_methods): New.
8632
8633 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8634
8635 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8636 get_frame_base.
8637
8638 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8639 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8640
8641 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8642
8643 * arch-utils.c (generic_register_byte): Fix to use the loop index
8644 and not regnum when summing the size of all registers up to regnum.
8645
8646 2003-03-01 Andrew Cagney <cagney@redhat.com>
8647
8648 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8649 FRAME_INIT_SAVED_REGS.
8650 * gdbarch.h, gdbarch.c: Regenerate.
8651 * stack.c (frame_info): Update.
8652 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8653 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8654 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8655 * ns32k-tdep.c (ns32k_pop_frame): Update.
8656 * mips-tdep.c (mips_pop_frame): Update.
8657 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8658 * ia64-tdep.c (ia64_frame_chain): Update.
8659 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8660 (ia64_frameless_function_invocation): Update.
8661 (ia64_init_extra_frame_info): Update.
8662 (ia64_pop_frame_regular): Update.
8663 * frame.h (struct frame_info): Update comment.
8664 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8665 * frame.c (frame_saved_regs_register_unwind): Update.
8666 (frame_saved_regs_register_unwind): Update.
8667 (deprecated_generic_get_saved_register): Update.
8668 * cris-tdep.c: Update comment.
8669 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8670 Rename macro.
8671 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8672 * x86-64-tdep.c (x86_64_init_abi): Update.
8673 * vax-tdep.c (vax_gdbarch_init): Update.
8674 * v850-tdep.c (v850_gdbarch_init): Update.
8675 * sparc-tdep.c (sparc_gdbarch_init): Update.
8676 * sh-tdep.c (sh_gdbarch_init): Update.
8677 * s390-tdep.c (s390_gdbarch_init): Update.
8678 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8679 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8680 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8681 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8682 * mips-tdep.c (mips_gdbarch_init): Update.
8683 * mcore-tdep.c (mcore_gdbarch_init): Update.
8684 * m68k-tdep.c (m68k_gdbarch_init): Update.
8685 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8686 * ia64-tdep.c (ia64_gdbarch_init): Update.
8687 * i386-tdep.c (i386_gdbarch_init): Update.
8688 * frv-tdep.c (frv_gdbarch_init): Update.
8689 * avr-tdep.c (avr_gdbarch_init): Update.
8690 * arm-tdep.c (arm_gdbarch_init): Update.
8691 * alpha-tdep.c (alpha_gdbarch_init): Update.
8692
8693 2003-03-01 Andrew Cagney <cagney@redhat.com>
8694
8695 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8696 option enum and switch. When no windows, set the interpreter to
8697 INTERP_CONSOLE.
8698
8699 2003-03-01 Andrew Cagney <cagney@redhat.com>
8700
8701 * main.c (captured_main): Replace magic option characters with an
8702 enum.
8703
8704 2003-03-01 Andrew Cagney <cagney@redhat.com>
8705
8706 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8707 INIT_EXTRA_FRAME_INFO.
8708 * gdbarch.h, gdbarch.c: Regenerate.
8709 * arm-tdep.c: Update comments.
8710 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8711 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8712 * frame.h, avr-tdep.c: Ditto.
8713 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8714 (create_new_frame, legacy_get_prev_frame): Ditto.
8715 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8716 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8717 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8718 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8719 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8720 * v850-tdep.c (v850_gdbarch_init): Ditto.
8721 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8722 * sh-tdep.c (sh_gdbarch_init): Ditto.
8723 * s390-tdep.c (s390_gdbarch_init): Ditto.
8724 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8725 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8726 * mips-tdep.c (mips_gdbarch_init): Ditto.
8727 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8728 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8729 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8730 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8731 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8732 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8733 * frv-tdep.c (frv_gdbarch_init): Ditto.
8734 * cris-tdep.c (cris_gdbarch_init): Ditto.
8735 * avr-tdep.c (avr_gdbarch_init): Ditto.
8736 * arm-tdep.c (arm_gdbarch_init): Ditto.
8737 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8738 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8739
8740 2003-03-01 Andrew Cagney <cagney@redhat.com>
8741
8742 * gdbarch.sh (register_type): New function with predicate.
8743 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8744 * gdbarch.h, gdbarch.c: Re-generate.
8745 * arch-utils.c (generic_register_byte): Use generic_register_size.
8746 (generic_register_size): When available, use
8747 gdbarch_register_type.
8748 * regcache.c (init_regcache_descr): When available, initialize the
8749 register type array using gdbarch_register_type. If the
8750 architecture supplies gdbarch_register_type, do not use the legacy
8751 regcache layout.
8752 * d10v-tdep.c (d10v_register_type): Replace
8753 d10v_register_virtual_type.
8754 (d10v_gdbarch_init): Set register_type instead of
8755 register_virtual_type.
8756
8757 2003-03-01 Andrew Cagney <cagney@redhat.com>
8758
8759 * Makefile.in (ax-gdb.o): Update dependencies.
8760 * ax-gdb.c: Include "regcache.h".
8761 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8762 * findvar.c (value_of_register): Ditto.
8763 * infcmd.c (default_print_registers_info): Ditto.
8764
8765 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8766
8767 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8768 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8769
8770 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8771
8772 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8773 of STREQ.
8774
8775 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8776
8777 * Makefile.in (dwarf2loc.o): Update dependencies.
8778 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8779 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8780 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8781 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8782 (locexpr_tracepoint_var_ref): New function.
8783 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8784
8785 2003-02-28 Andrew Cagney <cagney@redhat.com>
8786
8787 * regcache.c (register_size): New function.
8788 * regcache.h (register_size): Declare
8789 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8790 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8791
8792 2003-02-28 David Carlton <carlton@math.stanford.edu>
8793
8794 * linespec.c (decode_compound): Extract code into find_method.
8795 (find_method): New.
8796
8797 2003-02-28 J. Brobecker <brobecker@gnat.com>
8798
8799 * Makefile.in: Add rules to build and link in observer.o.
8800
8801 2003-02-27 J. Brobecker <brobecker@gnat.com>
8802
8803 * observer.c: Minor comments edits.
8804
8805 2003-02-27 J. Brobecker <brobecker@gnat.com>
8806
8807 * observer.h, observer.c: New file.
8808
8809 2003-02-27 Andrew Cagney <cagney@redhat.com>
8810
8811 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8812
8813 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8814
8815 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8816 (M6812_OP_STS_EXT): Likewise.
8817 (m6811_prologue): Use the above to recognize prologue.
8818 (m6812_prologue): Likewise.
8819
8820 2003-02-27 David Carlton <carlton@math.stanford.edu>
8821
8822 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8823 SYMBOL_PRINT_NAME.
8824 (compare_psymbols): Ditto.
8825 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8826
8827 2003-02-27 Michael Snyder <msnyder@redhat.com>
8828
8829 * f-lang.c (build_fortran_types): New function.
8830 (_initialize_f_language): Gdbarch-register built-in fortran types.
8831 * doublest.c (extract_floating): Fix warning text.
8832
8833 2003-02-27 Andrew Cagney <cagney@redhat.com>
8834
8835 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8836 predicate. Replaces PUSH_DUMMY_FRAME.
8837 * gdbarch.h, gdbarch.c: Regnerate.
8838 * valops.c (hand_function_call): Update. Call
8839 generic_push_dummy_frame directly.
8840 * vax-tdep.c (vax_gdbarch_init): Update.
8841 * sparc-tdep.c (sparc_gdbarch_init): Update.
8842 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8843 * m68k-tdep.c (m68k_gdbarch_init): Update.
8844 * hppa-tdep.c (hppa_gdbarch_init): Update.
8845 * alpha-tdep.c (alpha_gdbarch_init): Update.
8846 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8847 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8848 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8849 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8850 push_dummy_frame to generic_push_dummy_frame.
8851 * v850-tdep.c (v850_gdbarch_init): Ditto.
8852 * sh-tdep.c (sh_gdbarch_init): Ditto.
8853 * s390-tdep.c (s390_gdbarch_init): Ditto.
8854 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8855 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8856 * mips-tdep.c (mips_gdbarch_init): Ditto.
8857 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8858 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8859 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8860 * i386-tdep.c (i386_gdbarch_init): Ditto.
8861 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8862 * frv-tdep.c (frv_gdbarch_init): Ditto.
8863 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8864 * cris-tdep.c (cris_gdbarch_init): Ditto.
8865 * avr-tdep.c (avr_gdbarch_init): Ditto.
8866 * arm-tdep.c (arm_gdbarch_init): Ditto.
8867
8868 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8869
8870 * mips-tdep.c (show_mips_abi): New function.
8871 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8872 command ``show mips abi''.
8873
8874 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8875
8876 From Elena Zannoni <ezannoni@redhat.com>
8877 * dbxread.c (process_one_symbol): Only record line 0 if one or
8878 more sline entries have been seen for the function.
8879
8880 2003-02-26 Michael Chastain <mec@shout.net>
8881
8882 * configure: Regenerate with autoconf 000227.
8883
8884 2003-02-26 Michael Chastain <mec@shout.net>
8885
8886 Close PR build/660.
8887 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8888 for old libc5/glibc.
8889 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8890
8891 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8892
8893 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8894 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8895
8896 2003-02-26 Michael Chastain <mec@shout.net>
8897
8898 * configure.in: New variable HAVE_UINTPTR_T.
8899 * configure, config.in: Regenerated.
8900
8901 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8902
8903 Fix PR build/1097.
8904 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8905
8906 2003-02-25 Andrew Cagney <cagney@redhat.com>
8907
8908 * frame.c (get_prev_frame): Add comment on check for
8909 inside_entry_func. Only check for inside_entry_file when not a
8910 dummy and not a sentinel. Check that the new frame is not inner
8911 to the old frame.
8912
8913 2003-02-25 Andrew Cagney <cagney@redhat.com>
8914
8915 * frame.c (frame_debug): New variable.
8916 (_initialize_frame): Add "set/show debug frame" command.
8917 (get_prev_frame): When frame_debug, print reason why unwind
8918 failed.
8919
8920 2003-02-25 Michael Chastain <mec@shout.net>
8921
8922 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8923 to avoid uintptr_t definition problems.
8924
8925 2003-02-25 David Carlton <carlton@math.stanford.edu>
8926
8927 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8928 (SYMBOL_LINKAGE_NAME): Ditto.
8929 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8930 SYMBOL_LINKAGE_NAME.
8931 (struct general_symbol_info): Expand comment.
8932 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8933 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8934 (SYMBOL_MATCHES_REGEXP): Ditto.
8935 * symtab.c (symbol_natural_name): New function.
8936 * objfiles.h: Replace all uses of SYMBOL_NAME by
8937 DEPRECATED_SYMBOL_NAME.
8938 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8939 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8940 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8941 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8942 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8943 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8944 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8945 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8946 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8947 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8948 * ada-exp.y: Ditto.
8949 * ada-exp.y: Update copyright.
8950 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8951 * cp-valprint.c: Ditto.
8952
8953 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8954
8955 * infptrace.c (detach): Do not flag error if ptrace detach fails
8956 and errno is set to ESRCH.
8957
8958 2003-02-24 Andrew Cagney <cagney@redhat.com>
8959
8960 * infptrace.c (udot_info): Change type of udot_off to long. Use
8961 paddr when printing udot_off's value.
8962
8963 2003-02-24 David Carlton <carlton@math.stanford.edu>
8964
8965 * symtab.c (make_symbol_overload_list): Only read in partial
8966 symtabs containing a matching partial symbol.
8967
8968 2003-02-24 David Carlton <carlton@math.stanford.edu>
8969
8970 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8971 do the comparison, not strcmp.
8972 * symfile.c (compare_psymbols): Ditto.
8973 * defs.h: Declare strcmp_iw_ordered.
8974 * utils.c (strcmp_iw_ordered): New function.
8975
8976 2003-02-24 Jim Blandy <jimb@redhat.com>
8977
8978 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8979 support, shared libs): Remove my name from here, to better reflect
8980 reality.
8981
8982 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8983
8984 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8985 (target_ops): Add to_have_continuable_watchpoint.
8986 * target.c (update_current_target): Add INHERIT line for
8987 to_have_continuable_watchpoint.
8988 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8989 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8990 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8991 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8992
8993 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8994
8995 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8996 maintainership.
8997
8998 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8999
9000 * solib.c (solib_open): Call target defined search function after
9001 failing with solib-search-path.
9002 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9003 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9004
9005 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9006
9007 * MAINTAINERS: Add myself to Write After section.
9008
9009 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9010
9011 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9012
9013 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9014
9015 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9016 (m68hc11_add_reggroups): New function.
9017 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9018 (m68hc11_gdbarch_init): Install the reggroups.
9019 (_initialize_m68hc11_tdep): Initialize them.
9020
9021 2003-02-21 James E Wilson <wilson@tuliptree.org>
9022
9023 * MAINTAINERS: Update my email address.
9024
9025 2003-02-21 David Carlton <carlton@math.stanford.edu>
9026
9027 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9028
9029 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9030
9031 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9032 * symtab.h: Add opaque declarations of struct axs_value and
9033 struct agent_expr.
9034 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9035 (struct location_funcs): New type.
9036 (struct symbol): Add "loc" to aux_value.
9037 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9038 * dwarf2read.c: Include "dwarf2expr.h".
9039 (dwarf2_symbol_mark_computed): New function.
9040 (read_func_scope): Use it.
9041 (var_decode_location): New function.
9042 (new_symbol): Use it.
9043 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9044
9045 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9046 (dwarf2expr_h, dwarf2loc_h): New variables.
9047 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9048 (dwarf2expr.o, dwarf2loc.o): New rules.
9049 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9050 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9051 LOC_COMPUTED_ARG.
9052 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9053 * m2-exp.y (yylex): Likewise.
9054 * printcmd.c (address_info, print_frame_args): Likewise.
9055 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9056 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9057 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9058 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9059 * symtab.c (lookup_block_symbol): Likewise.
9060
9061 2003-02-20 Adam Fedor <fedor@gnu.org>
9062
9063 * symtab.h: Remove objc_specific struct
9064 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9065 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9066 Have language_objc use cplus_specific struct.
9067
9068 2003-02-20 Tom Tromey <tromey@redhat.com>
9069
9070 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9071 TYPE_NAME, when printing a String value. PR java/1075.
9072
9073 2003-02-20 Adam Fedor <fedor@gnu.org>
9074
9075 * objc-lang.h (find_methods): Remove declaration.
9076 * objc-lang.c (find_methods): Make static.
9077
9078 2003-02-20 Christopher Faylor <cgf@redhat.com>
9079
9080 * win32-nat.c (get_image_name): Check return value from
9081 ReadProcessMemory.
9082 (child_xfer_memory): Ditto.
9083
9084 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9085
9086 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9087 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9088 '${exec_prefix}' (in addition to the expansion thereof) as
9089 relocatable.
9090 * configure: Rebuilt.
9091
9092 2003-02-20 David Carlton <carlton@math.stanford.edu>
9093
9094 * symtab.c (search_symbols): Revert the search_symbols part of my
9095 2002-12-23 patch. Add comment.
9096
9097 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9098
9099 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9100 * dbxread.c (elfstab_build_psymtabs): Don't call
9101 install_minimal_symbols.
9102 (stabsect_build_psymtabs): Likewise.
9103 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9104 earlier.
9105 * somread.c (som_symfile_read): Call install_minimal_symbols
9106 and do_cleanups earlier.
9107 * nlmread.c (nlm_symfile_read): Likewise.
9108 * mdebugread.c (elfmdebug_build_psymtabs): Call
9109 install_minimal_symbols and make appropriate cleanups.
9110
9111 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9112
9113 * solib.c (reload_shared_libraries): New function.
9114 (_initialize_solib): Add callbacks for ``set solib-search-path''
9115 and ``set solib-absolute-prefix''.
9116
9117 2003-02-20 David Carlton <carlton@math.stanford.edu>
9118
9119 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9120 expand comment.
9121 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9122 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9123 * ada-typeprint.c (ada_typedef_print): Ditto.
9124 * ax-gdb.c (gen_var_ref): Ditto.
9125 * breakpoint.c (print_one_breakpoint): Ditto.
9126 * buildsym.c (finish_block): Ditto.
9127 * c-valprint.c (c_val_print): Ditto.
9128 * expprint.c (print_subexp): Ditto.
9129 * findvar.c (locate_var_value): Ditto.
9130 * infcmd.c (jump_command): Ditto.
9131 * linespec.c (decode_line_2, decode_compound): Ditto.
9132 * maint.c (maintenance_translate_address): Ditto.
9133 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9134 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9135 Ditto.
9136 * p-valprint.c (pascal_val_print): Ditto.
9137 * stabsread.c (define_symbol): Ditto.
9138 * stack.c (print_frame, frame_info, print_block_frame_locals)
9139 (print_frame_arg_vars, return_command): Ditto.
9140 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9141 * symmisc.c (print_symbol): Ditto.
9142 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9143 (compare_search_syms, print_symbol_info, print_msymbol_info)
9144 (rbreak_command): Ditto.
9145 * tracepoint.c (tracepoints_info): Ditto.
9146 * typeprint.c (typedef_print): Ditto.
9147 * valops.c (value_of_variable, hand_function_call): Ditto.
9148 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9149 * ada-typeprint.c: Update Copyright.
9150 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9151 * tracepoint.c, cli/cli-cmds.c: Ditto.
9152
9153 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9154
9155 * frame.c (generic_unwind_get_saved_register): Make non-static.
9156 * frame.h (generic_unwind_get_saved_register): Declare.
9157 * mips-tdep.c (read_next_frame_reg): Fetch register from
9158 current regcache when frame is NULL.
9159 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9160 that must be NULL.
9161 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9162 instead of frame_register_unwind().
9163
9164 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9165
9166 * remote-sim.c (gdbsim_insert_breakpoint)
9167 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9168 code.
9169
9170 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9171
9172 * remote.c (_initialize_remote): Add commands "set/show remote
9173 hardware-watchpoint-limit" and "set/show remote
9174 hardware-breakpoint-limit".
9175 (remote_hw_watchpoint_limit): Initialize to -1.
9176 (remote_hw_breakpoint_limit): Ditto.
9177 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9178
9179 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9180
9181 * coff-pe-read.c: New file - support reading of minimal symbols from a
9182 portable executable using the export table.
9183 * coff-pe-read.h: New file.
9184 * coffread.c: Include coff-pe-read.h.
9185 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9186 debugging symbols found.
9187 * Makefile.in (SFILES): Add coff-pe-read.o.
9188 (coff_pe_read_h): Define.
9189 (COMMON_OBS): Add coff-pe-read.o.
9190 (coffread.o): Add coff_pe_read_h dependency.
9191 (coff-pe-read.o): New target.
9192
9193 2003-02-19 David Carlton <carlton@math.stanford.edu>
9194
9195 * Makefile.in (SFILES): Add block.c.
9196 (block_h): New.
9197 (COMMON_OBS): Add block.o.
9198 (block.o): New.
9199 (x86-64-tdep.o): Add $(block_h).
9200 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9201 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9202 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9203 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9204 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9205 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9206 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9207 * value.h: Add opaque declaration for struct block.
9208 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9209 * ada-lang.h: Ditto.
9210 * x86-64-tdep.c: #include "block.h"
9211 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9212 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9213 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9214 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9215 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9216 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9217 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9218 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9219 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9220 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9221 * symtab.c (block_function): Ditto.
9222 (contained_in): Ditto.
9223 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9224 block.h. Add opaque declaration for struct block.
9225 * symtab.h: Move block_function and contained_in declarations to
9226 block.h. Add opaque declarations for struct block, struct
9227 blockvector.
9228 (struct block): Move to block.h.
9229 (struct blockvector): Ditto.
9230 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9231 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9232 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9233 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9234 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9235 Ditto.
9236 * block.c: New file.
9237 * block.h: New file.
9238
9239 2003-02-19 Theodore A. Roth <troth@openavr.org>
9240
9241 * avr-tdep.c (avr_extract_return_value): Remove function.
9242 (avr_store_return_value): Remove function.
9243 (avr_extract_struct_value_address): Remove function.
9244 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9245
9246 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9247
9248 * rs6000-tdep.c: Include "gdb_assert.h".
9249 (registers_e500): Add "acc" and "spefscr".
9250 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9251 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9252 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9253 really is "r0".
9254 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9255
9256 2003-02-18 Keith Seitz <keiths@redhat.com>
9257
9258 * Makefile.in: Add gdbtk-interps.c.
9259
9260 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9261
9262 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9263 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9264
9265 2003-02-18 Andrew Cagney <cagney@redhat.com>
9266
9267 * symtab.h (struct objfile): Add opaque declaration.
9268
9269 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9270
9271 From Jim Ingham <jingham@apple.com>:
9272 * dbxread.c (process_one_symbol): Use last_function_start rather
9273 than function_start_offset to find the real beginning of the
9274 current function. The latter is just the text section offset on
9275 some systems, the former is always the real function start.
9276
9277 2003-02-17 Andrew Cagney <cagney@redhat.com>
9278
9279 * configure.in: Revert ${target} != ${host}.
9280
9281 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9282
9283 * configure.in (Makefile): Use the test ${target} != ${host},
9284 instead of the absence of the "nm.h" file, to determine of the
9285 configuration non-native.
9286 * configure: Regenerate.
9287
9288 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9289
9290 From Brian Ford <ford@vss.fsi.com>
9291
9292 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9293 conditionalize tui_active test.
9294 (lookup_cmd_1): Ditto.
9295
9296 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9297
9298 * configure.in: Add check for _etext.
9299 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9300 available.
9301 * config.in, configure: regenerated.
9302
9303 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9304
9305 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9306
9307 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9308
9309 * main.c (tui_version): Delete variable.
9310 (captured_main): When --tui, set interpreter_p to "tui" instead of
9311 enabling tui_version.
9312 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9313 tui_version.
9314 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9315 * cli/cli-cmds.c (disassemble_command): Ditto.
9316 * defs.h (tui_version): Delete declaration.
9317 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9318 (tui-interp.o): Add rules.
9319 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9320
9321 2003-02-14 Christopher Faylor <cgf@redhat.com>
9322
9323 * win32-nat.c (register_loaded_dll): Correctly set address range for
9324 just-loaded dll.
9325
9326 2003-02-12 Jason Molenda (jmolenda@apple.com)
9327
9328 * symmisc.c (print_objfile_statistics): Include information about
9329 the number of psymtabs and symtabs in each object file.
9330
9331 2003-02-13 Keith R Seitz <keiths@redhat.com>
9332
9333 * main.h (struct captured_main_args): Add interpreter_p.
9334 * main.c (captured_main): Initialize interpreter_p from context.
9335 * gdb.c (main): Set interpreter_p argument.
9336 * Makefile.in (gdb.o): Add dependency for interps.h.
9337
9338 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9339
9340 * event-top.c (cli_command_loop): Delete declaration.
9341 (_initialize_event_loop): Delete function setting event_loop_hook.
9342 * event-top.h (cli_command_loop): Declare. Update copyright.
9343 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9344 * interps.c (current_interp_command_loop): When event_loop_p, call
9345 cli_command_loop.
9346
9347 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9348
9349 * interps.h (interp_command_loop_ftype): Change return type to
9350 void.
9351
9352 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9353
9354 * x86-64-tdep.c (x86_64_extract_return_value)
9355 (x86_64_store_return_value): Use regcache instead of regbuf.
9356 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9357 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9358
9359 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9360
9361 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9362 * aclocal.m4: Regenerate.
9363 * configure: Regenerate.
9364
9365 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9366 TCL_LD_SEARCH_FLAGS.
9367
9368 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9369
9370 * dwarf2cfi.c: Reindented.
9371
9372 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9373
9374 * interps.c (clear_interpreter_hooks): Convert function definition
9375 to ISO C.
9376
9377 2003-02-07 David Carlton <carlton@math.stanford.edu>
9378
9379 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9380
9381 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9382
9383 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9384 (struct type): ...to here.
9385 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9386 field.
9387 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9388 (replace_type): Set length on all type variants for a given type.
9389
9390 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9391
9392 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9393 <sys/stat.h>.
9394 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9395
9396 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9397
9398 * Makefile.in (symm-nat.o): Update dependencies.
9399 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9400 (lynx-nat.o, ia64-linux-nat.): Ditto.
9401 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9402 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9403 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9404
9405 * Makefile.in (inflow_h): Define.
9406 (procfs.o, inflow.o, procfs.o): Update dependencies.
9407 * inftarg.c (child_stop): Delete extern declaration of
9408 inferior_process_group. Include "inflow.h".
9409 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9410 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9411 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9412 (our_process_group, inferior_process_group): Extern declarations.
9413
9414 * procfs.c: Include "gdb_assert.h".
9415
9416 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9417 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9418 * jv-typeprint.c (java_type_print_base): Ditto.
9419 * typeprint.c (typedef_print): Eliminate STREQ.
9420 * cli/cli-script.c (define_command, define_command): Ditto.
9421 * main.c (captured_main): Ditto.
9422 * values.c (lookup_internalvar): Ditto.
9423 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9424 within `if' conditional.
9425 * linespec.c (decode_line_2): Ditto.
9426 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9427 (bfd_openw_with_cleanup): Ditto.
9428
9429 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9430
9431 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9432 legacy_extract_return_value and store_return_value to
9433 legacy_return_value.
9434
9435 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9436
9437 * win32-nat.c (get_relocated_section_addrs): New function. Find
9438 section load addresses for symbol handling in relocated DLLs.
9439 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9440
9441 2003-02-05 Fred Fish <fnf@intrinsity.com>
9442
9443 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9444 '=' and '!='.
9445 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9446 with '&' and '=='.
9447 (angel_RDI_info): Ditto.
9448 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9449 with '&' and '!='.
9450 (threads_continue_all_with_signals): Ditto.
9451
9452 2003-02-05 Jim Ingham <jingham@apple.com>
9453 Keith Seitz <keiths@redhat.com>
9454 Elena Zannoni <ezannoni@redhat.com>
9455 Andrew Cagney <ac131313@redhat.com>
9456
9457 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9458 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9459 (SUBDIR_MI_OBS): Add "mi-interp.o".
9460 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9461 (SFILES): Add "interps.c".
9462 (COMMON_OBS): Add "interps.o".
9463 (interps_h, mi_main_h): Define.
9464 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9465 (mi-main.o, main.o, event-top.o): Update dependencies.
9466 * cli/cli-interp.c: New file.
9467 * interps.h, interps.c: New files.
9468 * top.c: (gdb_init): Don't install the default interpreter, handed
9469 by captured_main.
9470 * main.c: Include "interps.h".
9471 (interpreter_p): Note that it should malloc'ed.
9472 (captured_command_loop): Call current_interp_command_loop.
9473 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9474 xfree and xstrdup when updating interpreter_p. Install the
9475 default interpreter. Add hack to stop mi1's copyright notice
9476 being encoded.
9477 * event-top.h (gdb_setup_readline): Declare.
9478 (gdb_disable_readline): Declare.
9479 * event-top.c: Include "interps.h".
9480 (display_gdb_prompt): Call current_interp_display_prompt_p.
9481 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9482 gdb_stdlog, and gdb_stdtarg.
9483 (_initialize_event_loop): Don't call gdb_setup_readline.
9484 * cli-out.c (cli_out_set_stream): New function.
9485 * cli-out.h (cli_out_set_stream): Declare.
9486
9487 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9488
9489 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9490 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9491 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9492 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9493 config/i386/i386v42mp.mt: Removed.
9494
9495 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9496
9497 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9498 GDB_OSABI_SOLARIS.
9499
9500 2003-02-05 Michael Chastain <mec@shout.net>
9501
9502 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9503 2.12.1 and earlier versions.
9504
9505 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9506
9507 Remove orphaned hosts, targets and files.
9508 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9509 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9510 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9511 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9512 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9513 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9514 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9515 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9516 * config/sparc/tm-sp64sim.h: Delete.
9517 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9518 hosts.
9519 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9520 mips*-dec-mach3* targets.
9521
9522 2003-02-04 Michael Chastain <mec@shout.net>
9523
9524 * NEWS: Fix typo: sepcifying -> specifying.
9525
9526 2003-02-04 Michael Chastain <mec@shout.net>
9527
9528 * dwarfread.c: Add documentation on the state of dwarf-1,
9529 looking towards obsoletion.
9530
9531 2003-02-03 Michael Chastain <mec@shout.net>
9532
9533 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9534 gdb/testsuite/gdb.c++/pr-1023.exp.
9535
9536 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9537
9538 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9539 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9540
9541 * utils.c (init_page_info): Delete reference to MPW in comments.
9542 * main.c (captured_main): Delete #ifdef MPW.
9543
9544 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9545
9546 * NEWS: Note that the m32r-*-elf* is obsolete.
9547 * monitor.c (monitor_expect): Obsolete reference to m32r.
9548 * configure.tgt: Mark m32r-*-elf* as obsolete.
9549 * MAINTAINERS: Mark m32k as obsolete.
9550 * m32r-rom.c: Obsolete file.
9551 * config/m32r/m32r.mt: Obsolete file.
9552 * config/m32r/tm-m32r.h: Obsolete file.
9553 * m32r-stub.c: Obsolete file.
9554 * m32r-tdep.c: Obsolete file.
9555
9556 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9557
9558 * NEWS: Mention that the z8k-zilog-none is obsolete.
9559 * MAINTAINERS: Mark z8k as obsolete.
9560 * configure.tgt: Obsolete the z8k-*-coff* target.
9561 * config/z8k/z8k.mt: Obsolete file.
9562 * config/z8k/tm-z8k.h: Obsolete file.
9563 * z8k-tdep.c: Obsolete file.
9564
9565 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9566
9567 * NEWS: Mention that the mn10200-elf is obsolete.
9568 * configure.tgt: Obsolete mn10200-*-* target.
9569 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9570 mention that the mn10200 is obsolete.
9571 * breakpoint.h: Ditto.
9572 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9573 * config/mn10200/mn10200.mt: Obsolete file.
9574 * config/mn10200/tm-mn10200.h: Obsolete file.
9575 * mn10200-tdep.c: Obsolete file.
9576
9577 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9578
9579 * MAINTAINERS: Mark h8500 as obsolete.
9580 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9581 * findvar.c (value_from_register): Ditto.
9582 * h8500-tdep.c: Mark file as obsolete.
9583 * config/h8500/h8500.mt: Ditto.
9584 * config/h8500/tm-h8500.h: Ditto.
9585 * NEWS: Mention that h8500 is obsolete.
9586
9587 2003-02-04 David Carlton <carlton@math.stanford.edu>
9588
9589 * objfiles.c (allocate_objfile): Always set name. Add comment at
9590 start of function.
9591 * jv-lang.c (get_dynamics_objfile): Add comment.
9592
9593 2003-02-04 David Carlton <carlton@math.stanford.edu>
9594
9595 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9596 * printcmd.c (build_address_symbolic): Replace uses of
9597 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9598 SYMBOL_NAME, and asm_demangle.
9599 Update copyright.
9600
9601 2003-02-04 David Carlton <carlton@math.stanford.edu>
9602
9603 * linespec.c (decode_compound): Extract code into
9604 lookup_prefix_sym.
9605 (lookup_prefix_sym): New function.
9606
9607 2003-02-04 David Carlton <carlton@math.stanford.edu>
9608
9609 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9610 FLOAT_COERCION_BADNESS.
9611 * gdbtypes.c (rank_one_type): Replace all uses of
9612 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9613
9614 2003-02-04 Jim Blandy <jimb@redhat.com>
9615
9616 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9617 section, let dwarf_macinfo_section point to it, not
9618 dwarf_loc_section.
9619
9620 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9621
9622 Pointed out by Anton Blanchard <anton@samba.org>.
9623 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9624 (ppc_linux_at_sigtramp_return_path): Use it.
9625
9626 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9627
9628 * defs.h (streq): Add prototype.
9629 * utils.c (streq): New function.
9630
9631 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9632 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9633 * mdebugread.c (new_symbol): Likewise.
9634 * stabsread.c (define_symbol): Likewise.
9635 * coffread.c (process_coff_symbol): Likewise.
9636 * dwarfread.c (new_symbol): Likewise.
9637
9638 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9639 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9640 here.
9641 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9642 SYMBOL_INIT_DEMANGLED_NAME.
9643 * objfiles.c: Include "hashtab.h".
9644 (allocate_objfile): Call htab_set_functions_ex for the
9645 demangled_names_hash.
9646 (free_objfile): Call htab_delete for the demangled_names_hash.
9647 * objfiles.h (struct htab): Add declaration.
9648 (struct objfile): Add demangled_names_hash.
9649 * symfile.c: Include "hashtab.h".
9650 (reread_symbols): Call htab_delete for the demangled_names_hash.
9651 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9652 SYMBOL_NAME in the bcache.
9653 * symtab.c: Include "hashtab.h". Update comments.
9654 (create_demangled_names_hash, symbol_set_names): New functions.
9655 (symbol_find_demangled_name): New function, broken out from
9656 symbol_init_demangled_names.
9657 (symbol_init_demangled_names): Use it.
9658 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9659 (SYMBOL_SET_NAMES): New macro.
9660 (symbol_set_names): Add prototype.
9661
9662 2003-02-03 Jim Blandy <jimb@redhat.com>
9663
9664 Use a single, consistent representation for an empty minimal
9665 symbol table in an objfile.
9666 * objfiles.c (terminate_minimal_symbol_table): New function.
9667 (allocate_objfile): Call it.
9668 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9669 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9670 non-NULL.
9671 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9672 objfile has minimal symbols, compare minimal_symbol_count to zero,
9673 instead of comparing msymbols with NULL.
9674 * objfiles.c (have_minimal_symbols): Same.
9675 * solib-sunos.c (solib_add_common_symbols): Call
9676 terminate_minimal_symbol_table.
9677 * symfile.c (reread_symbols): Same.
9678
9679 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9680
9681 * s390-tdep.c (s390_address_class_type_flags)
9682 (s390_address_class_type_flags_to_name)
9683 (s390_address_class_name_to_type_flags): New functions.
9684 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9685 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9686
9687 2003-02-03 Michael Snyder <msnyder@redhat.com>
9688
9689 * arm-tdep.c: Fix spell-o in comment.
9690
9691 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9692
9693 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9694 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9695 error messages to contain BFD filename.
9696
9697 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9698
9699 Fix PR gdb/742 gdb/743 gdb/877
9700 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9701 (do_mixed_source_and_assembly): Use
9702 make_cleanup_ui_out_tuple_begin_end and
9703 make_cleanup_ui_out_tuple_begin_end.
9704 (do_mixed_source_and_assembly): Ditto.
9705 * thread.c (do_captured_list_thread_ids): Ditto.
9706 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9707 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9708 ui_out_tuple_end): Delete prototypes.
9709 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9710 ui_out_list_end, ui_out_tuple_end): Delete.
9711
9712 From Kevin Buettner <kevinb@redhat.com>:
9713 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9714 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9715 (do_cleanup_table_end): New functions.
9716 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9717 Use cleanups to invoke_ui_out_tuple_end().
9718 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9719 * cli/cli-setshow.c (cmd_show_list): Use
9720 make_cleanup_ui_out_tuple_begin_end.
9721
9722 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9723
9724 * frame.c (frame_unwind_register): New function.
9725 (frame_unwind_unsigned_register): Use.
9726 (frame_unwind_signed_register): Use.
9727 (frame_read_register): New function.
9728 * frame.h (frame_unwind_register): Declare.
9729 (frame_read_register): Declare.
9730
9731 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9732 and frame_unwind_register instead of read_memory, write_register
9733 and deprecated_write_register_bytes.
9734
9735 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9736
9737 * frame.h: Note that namelen can be negative.
9738 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9739 NAME's length.
9740
9741 * NEWS: Mention that the d10v's `regs' command is deprecated.
9742 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9743 (d10v_print_registers_info): New function.
9744 (show_regs): Call d10v_print_registers_info.
9745 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9746
9747 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9748
9749 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9750 lost in the previous patch.
9751
9752 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9753
9754 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9755 * stack.c (print_frame_info_base): Output complete FRAME tuple
9756 for synthesized frames.
9757
9758 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9759
9760 * mips-nat.c (zerobuf): Delete.
9761 (fetch_inferior_registers): Alloc local zerobuf.
9762 (fetch_core_registers): Alloc local zerobuf.
9763 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9764 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9765 * thread-db.c (thread_db_store_registers): Ditto.
9766 * sh-tdep.c (sh_do_register): Ditto.
9767 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9768 * remote-sim.c (gdbsim_store_register): Ditto.
9769 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9770 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9771 * monitor.c (monitor_supply_register): Ditto.
9772 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9773 * mips-nat.c (fetch_inferior_registers): Ditto.
9774 * m68klinux-nat.c (fetch_register): Ditto.
9775 * lynx-nat.c (fetch_inferior_registers): Ditto.
9776 (fetch_inferior_registers): Ditto.
9777 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9778 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9779 (hpux_thread_store_registers): Ditto.
9780 * hppah-nat.c (fetch_register): Ditto.
9781 * hppab-nat.c (fetch_register): Ditto.
9782 * hppa-tdep.c (pa_register_look_aside): Ditto.
9783 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9784 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9785
9786 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9787
9788 * gdbarch.sh: Explictly specify all method levels. When a
9789 variable with an empty level, provide a non-multi-arch default.
9790 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9791 * gdbarch.h: Re-generate.
9792 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9793 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9794
9795 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9796
9797 * defs.h (host_pointer_to_address): Delete declaration.
9798 (address_to_host_pointer): Delete declaration.
9799 * utils.c (host_pointer_to_address): Delete function.
9800 (address_to_host_pointer): Delete function.
9801 * procfs.c (procfs_address_to_host_pointer): New function.
9802 * procfs.c (proc_set_watchpoint): Use.
9803 (procfs_can_use_hw_breakpoint): Update comments.
9804 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9805 (som_solib_add): Use.
9806 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9807 * hppa-tdep.c (unwind_command): Use.
9808
9809 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9810
9811 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9812 strlen d_name.
9813
9814 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9815 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9816 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9817 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9818 (define_symbol): Update.
9819 * symfile.c (generic_load): Remove references to nindy.
9820 * symtab.c: Remove references to nindy.
9821
9822 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9823
9824 * infcmd.c (print_float_info): Delete code conditional on
9825 FLOAT_INFO.
9826 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9827 * config/m68k/nm-apollo68b.h: Ditto.
9828 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9829 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9830 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9831
9832 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9833
9834 * config/i386/tm-i386os9k.h: Removed.
9835
9836 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9837 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9838 they're identical to i[3456]86-*-sysv* now.
9839 * config/i386/i386v32.mh: Removed.
9840 * config/i386/xm-i386v32.h: Removed.
9841 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9842
9843 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9844
9845 * config/i386/i386dgux.mh: Removed.
9846 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9847
9848 * configure.in: Fix typo.
9849 * configure: Regenerated.
9850
9851 2003-01-31 David Carlton <carlton@math.stanford.edu>
9852
9853 * dwarf2read.c (dwarf2_locate_sections): Set
9854 dwarf_ranges_section.
9855
9856 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9857
9858 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9859 * utils.c: Update comments documenting legitimate uses of PTR.
9860
9861 * utils.c: Re-indent.
9862
9863 * config/djgpp/fnchange.lst: Delete nindy files.
9864 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9865 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9866 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9867 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9868 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9869 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9870 * Makefile.in (init.c): Remove nindy references.
9871 (saber_gdb): Delete rule.
9872 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9873 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9874 and a68v-nat.c.
9875 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9876 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9877 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9878 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9879 nindy-share/stop.h.
9880 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9881 * saber.suppress: Delete file.
9882
9883 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9884
9885 * dbxread.c (stabs_data): New static variable.
9886 (fill_symbuf): Support an in-memory buffer for stabs data.
9887 (stabs_seek): New function.
9888 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9889 (read_ofile_symtab): Use stabs_seek.
9890 (elfstab_build_psymtabs): Take an asection* instead of
9891 an offset and size. Relocate the stabs data if necessary.
9892 Save the section* for dbx_psymtab_to_symtab.
9893 * dwarf2read.c: Add section variables for each debug section.
9894 (dwarf2_locate_sections): Fill them in.
9895 (dwarf2_read_section): Take an asection* argument.
9896 Relocate the section contents if necessary.
9897 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9898 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9899 it to dwarf2_read_section.
9900 (dwarf2_build_frame_info): Update callers.
9901 * elfread.c (elf_symfile_read): Update call to
9902 elfstab_build_psymtabs.
9903 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9904 (DBX_STAB_SECTION): New macro.
9905 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9906 * symfile.c (symfile_dummy_outputs): New function.
9907 (symfile_relocate_debug_section): New function.
9908 * symfile.h (symfile_relocate_debug_section): Add prototype.
9909
9910 2003-01-31 Richard Henderson <rth@redhat.com>
9911
9912 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9913 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9914 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9915 * alpha-tdep.c (alpha_register_name): Add "unique".
9916 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9917 (ALPHA_UNIQUE_REGNUM): New.
9918 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9919
9920 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9921
9922 * README: Remove reference to Ericsson 1800 monitor.
9923 * Makefile.in (remote-es.o): Delete rule.
9924 (ALLDEPFILES): Delete remote-es.c.
9925 * remote-es.c: Delete file.
9926 * config/m68k/es1800.mt: Delete file.
9927 * config/djgpp/fnchange.lst: Update.
9928 * configure.tgt: Delete m68*-ericsson-* target.
9929
9930 2003-01-31 Adam Fedor <fedor@gnu.org>
9931
9932 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9933 Remove duplicate/shadowing variable of same name.
9934
9935 2003-01-30 Jim Blandy <jimb@redhat.com>
9936
9937 * symfile.c (find_separate_debug_file): Assert that the objfile's
9938 directory name we compute ends with a slash, and then assume that
9939 that's so everywhere we use it.
9940
9941 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9942
9943 * valops.c (value_assign): Flush frame cache after stores to memory
9944 also.
9945
9946 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9947
9948 * Makefile.in (mon960-rom.o): Delete rule.
9949 * mon960-rom.c: Delete file.
9950
9951 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9952
9953 * d10v-tdep.c: Include "frame-unwind.h".
9954 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9955 list.
9956 (next_addr, uses_frame): Delete.
9957 (struct d10v_unwind_cache): Define.
9958 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9959 Use info instead of next_addr and uses_frame globals.
9960 (d10v_frame_init_saved_regs): Delete function.
9961 (d10v_init_extra_frame_info): Delete function.
9962 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9963 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9964 init_frame_pc or frame_saved_pc.
9965 (d10v_pop_frame): Delete function.
9966 (do_d10v_pop_frame): Delete function.
9967 (d10v_frame_chain): Delete function.
9968 (d10v_frame_chain_valid): Delete function.
9969 (d10v_frame_pc_unwind): New function.
9970 (d10v_frame_id_unwind): New function.
9971 (saved_regs_unwinder): New function.
9972 (d10v_frame_register_unwind): New function.
9973 (d10v_frame_pop): New function.
9974 (d10v_frame_unwind): New variable.
9975 (d10v_frame_p): New function.
9976 (d10v_frame_saved_pc): Delete function.
9977 * Makefile.in (d10v-tdep.o): Update dependencies.
9978
9979 2003-01-30 J. Brobecker <brobecker@gnat.com>
9980
9981 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9982 causing some regressions due to a change in the default value
9983 for this macro.
9984
9985 2003-01-29 Richard Henderson <rth@redhat.com>
9986 Elena Zannoni <ezannoni@redhat.com>
9987 Daniel Jacobowitz <drow@mvista.com>
9988
9989 Fix PR gdb/961.
9990 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9991 variables.
9992 (RANGES_SECTION): New.
9993 (dwarf_ranges_buffer): New variable.
9994 (struct comp_unit_head): Add member "die".
9995 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9996 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9997 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9998 (dwarf2_locate_sections): Likewise.
9999 (dwarf2_build_psymtabs): Read .debug_ranges.
10000 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10001 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10002 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10003 Look for DW_AT_ranges and return the bounding box.
10004
10005 2003-01-29 Brian Ford <ford@vss.fsi.com>
10006
10007 * win32-nat.c (cygwin_pid): Removed as unused.
10008 (child_attach): Try fall back to Cygwin pid.
10009
10010 2003-01-29 Jim Blandy <jimb@redhat.com>
10011
10012 * objfiles.h (struct objfile): Doc fix.
10013
10014 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10015
10016 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10017 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10018 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10019 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10020 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10021 (FRAME_SAVED_PC): Change to a function with predicate.
10022 * gdbarch.h, gdbarch.c: Re-generate.
10023
10024 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10025
10026 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10027
10028 * complaints.c (complain): Delete function.
10029 * complaints.h (struct deprecated_complaint): Delete definition.
10030 (complain): Delete declaration.
10031
10032 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10033
10034 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10035 dummy frames.
10036
10037 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10038
10039 * sentinel-frame.h, sentinel-frame.c: New files.
10040 * Makefile.in (frame.o): Update dependencies.
10041 (SFILES): Add sentinel-frame.c.
10042 (sentinel_frame_h): Define.
10043 (COMMON_OBS): Add sentinel-frame.o.
10044 (sentinel-frame.o): Specify dependencies.
10045 * frame.c: Include "sentinel-frame.h".
10046 (frame_register_unwind): Rewrite assuming that there is always a a
10047 ->next frame.
10048 (frame_register, generic_unwind_get_saved_register): Ditto.
10049 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10050 (create_sentinel_frame, unwind_to_current_frame): New functions.
10051 (get_current_frame): Rewrite using create_sentinel_frame and
10052 unwind_to_current_frame. When possible, always create a frame.
10053 (create_new_frame): Set next to the sentinel frame.
10054 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10055 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10056 ID cache when necessary.
10057 (frame_saved_regs_id_unwind): Use frame_relative_level.
10058 (deprecated_generic_get_saved_register): Use frame_relative_level,
10059 get_frame_saved_regs, get_frame_pc, get_frame_base and
10060 get_next_frame.
10061 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10062 frame_register.
10063
10064 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10065
10066 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10067
10068 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10069
10070 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10071 (maintenance_set_profile_cmd): Use error () instead of warning ().
10072
10073 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10074
10075 * configure.in: Check that -pg works if using --enable-profiling.
10076 Check for monstartup and _mcleanup regardless of --enable-profiling.
10077 * maint.c: Check for monstartup and _mcleanup before using them.
10078 * config.in: Regenerated.
10079 * configure: Regenerated.
10080
10081 2003-01-24 Nick Clifton <nickc@redhat.com>
10082
10083 * Add sh2e support:
10084
10085 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10086
10087 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10088 (sh2e_show_regs): New.
10089 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10090 * config/sh/tm-sh.h: Added sh2e to comments.
10091
10092 2003-01-23 Jim Blandy <jimb@redhat.com>
10093
10094 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10095 symbols found)" message here; we haven't checked for a separate
10096 debug info file yet, so we don't know yet.
10097 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10098 we've looked everywhere. Also, there's no need to print a special
10099 message when we're loading the separate debug info file: the one
10100 symbol_file_add prints is fine.
10101
10102 2003-01-23 Alexander Larsson <alexl@redhat.com>
10103 Jim Blandy <jimb@redhat.com>
10104
10105 Add support for executables whose debug info has been separated
10106 out into a separate file, leaving only a link behind.
10107 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10108 and separate_debug_objfile_backlink.
10109 (put_objfile_before): New declaration.
10110 * symfile.c: #include "filenames.h".
10111 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10112 debug info in a separate file, read that, too. Save the addrs
10113 argument, so we can use it again to read the separated debug info;
10114 syms_from_objfile modifies the table we pass it.
10115 (reread_symbols): After re-reading an objfile, call
10116 reread_separate_symbols to refresh its separate debug info
10117 objfile, if it has one.
10118 (reread_separate_symbols, find_separate_debug_file,
10119 get_debug_link_info, separate_debug_file_exists): New functions.
10120 (debug_file_directory): New global var.
10121 (_initialize_symfile): Initialize debug_file_directory, and
10122 provide the new `set debug-file-directory' command to let the user
10123 change it.
10124 * objfiles.c (free_objfile): If this objfile has its debug info in
10125 a separate objfile, free that one too. If this is itself a
10126 separate debug info objfile, clear our parent's backlink.
10127 (put_objfile_before): New function.
10128 * utils.c (gnu_debuglink_crc32): New function.
10129 * defs.h (gnu_debuglink_crc32): New declaration.
10130 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10131 * configure.in: Handle --with-separate-debug-dir config option.
10132 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10133 * acconfig.h (DEBUGDIR): New macro.
10134 * configure, aclocal.m4, config.in: Regenerated.
10135
10136 2003-01-22 Jim Blandy <jimb@redhat.com>
10137
10138 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10139 like the old symbol_file_add, but taking new arguments: you can
10140 now pass in either a `struct section_addr_info' list to say where
10141 each section is loaded, or a `struct section_offsets' table. Pass
10142 these new arguments through to syms_from_objfile as appropriate.
10143 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10144 with the appropriate quiescent values for the new arguments.
10145
10146 * symfile.c: #include "gdb_assert.h".
10147 (syms_from_objfile): Add the ability to pass in a section offset
10148 table directly, as an alternative to the section_addr_info table.
10149 Document arguments better.
10150 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10151 * symfile.h (syms_from_objfile): Update declaration.
10152 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10153 syms_from_objfile.
10154 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10155
10156 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10157
10158 Original patch by Tom Tromey <tromey@cygnus.com> and
10159 Jason Molenda <jmolenda@apple.com>.
10160 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10161 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10162 * NEWS: Mention profiling.
10163 * configure.in (--enable-gdbtk): Fix typo.
10164 (--enable-profiling): New. Set PROFILE_CFLAGS.
10165 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10166 Fill in function.
10167 (profiling_state): New variable.
10168 (mcleanup_wrapper): New function.
10169 (_initialize_maint): Remove NOTYET, fix call to
10170 add_setshow_boolean_cmd for "maint set profile".
10171 * configure: Regenerated.
10172
10173 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10174
10175 * Makefile.in (install-gdbtk): Install PNG images too.
10176
10177 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10178
10179 * exec.c (text_start): Delete global variable.
10180 (exec_file_attach): Make text_start local to the function.
10181 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10182 * valops.c (hand_function_call): Delete code that handles
10183 BEFORE_TEXT_END and AFTER_TEXT_END.
10184 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10185 of CALL_DUMMY_LOCATION.
10186 * gdbarch.c: Regenerate.
10187 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10188 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10189 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10190 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10191 (text_end): Delete extern declaration.
10192
10193 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10194
10195 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10196 * blockframe.c (backtrace_below_main): Move to "frame.c".
10197 (frame_chain_valid): Delete check for backtrace_below_main.
10198 (_initialize_blockframe): Delete initialization, move ``set
10199 backtrace-below-main'' command to "frame.c".
10200 (do_flush_frames_sfunc): Delete function.
10201 * frame.c: Include "command.h" and "gdbcmd.h".
10202 (frame_type_from_pc): New function.
10203 (create_new_frame): Use frame_type_from_pc.
10204 (legacy_get_prev_frame): New function.
10205 (get_prev_frame): Rewrite. When an old style frame, call
10206 legacy_get_prev_frame. Otherwize, unwind the PC first.
10207 (_initialize_frame): Add ``set backtrace-below-main'' command.
10208 * Makefile.in (frame.o): Update dependencies.
10209
10210 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10211
10212 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10213 DEPRECATED_REGISTERS_INFO.
10214
10215 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10216
10217 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10218 Maintainers'. Update `Various Maintainers'.
10219
10220 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10221
10222 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10223 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10224 Suppress actual parameters when `-'.
10225 * gdbarch.h, gdbarch.c: Regenerate.
10226
10227 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10228
10229 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10230 code handling dummy frames.
10231
10232 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10233
10234 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10235 (struct frame_unwind): Add field pop.
10236 * frame.h (frame_pop): Declare.
10237 * frame.c (frame_saved_regs_pop): New function.
10238 (trad_frame_unwinder): Add frame_saved_regs_pop.
10239 (frame_pop): New function.
10240 * dummy-frame.c (dummy_frame_pop): New function.
10241 (discard_innermost_dummy): New function.
10242 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10243 (dummy_frame_unwind): Add dummy_frame_pop.
10244 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10245 * valops.c (hand_function_call): Ditto.
10246 * stack.c (return_command): Ditto.
10247
10248 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10249
10250 * cris-tdep.c: Fix function declaration indentation.
10251 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10252 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10253 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10254 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10255 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10256 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10257
10258 2003-01-18 Michael Chastain <mec@shout.net>
10259
10260 * README (Unpacking and Installation -- quick overview):
10261 Warn against ".../gdb-5.3/gdb/configure".
10262
10263 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10264
10265 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10266 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10267 (struct frame_unwind): Declare opaque.
10268 (dummy_frame_p): Declare function.
10269 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10270 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10271 * dummy-frame.c: Include "frame-unwind.h".
10272 (dummy_frame_p): New function.
10273 (dummy_frame_unwind): New variable.
10274 * frame.c: Include "frame-unwind.h".
10275 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10276 to use the new unwind field.
10277 (set_unwind_by_pc): Delete function.
10278 (create_new_frame, get_prev_frame): Set unwind field using
10279 frame_unwind_find_by_pc.
10280 (trad_frame_unwind, trad_frame_unwinder): New variables.
10281 * frame.h (trad_frame_unwind): Declare variable.
10282 (frame_id_unwind_ftype): Delete declaration.
10283 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10284 (struct frame_unwind): Declare opaque.
10285 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10286 register_unwind with a single unwind pointer.
10287 * frame-unwind.h, frame-unwind.c: New files.
10288 * Makefile.in (SFILES): Add frame-unwind.c.
10289 (frame_unwind_h): Define.
10290 (COMMON_OBS): Add frame-unwind.o.
10291 (frame-unwind.o): Specify dependencies.
10292 (frame.o, dummy-frame.o): Update dependencies.
10293
10294 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10295
10296 * ada-valprint.c: Eliminate PTR.
10297 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10298 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10299 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10300 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10301 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10302 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10303 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10304
10305 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10306
10307 * main.c (captured_main): Don't use PTR.
10308 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10309 * gdbtypes.c (lookup_primitive_typename): Ditto.
10310 (lookup_struct_elt_type): Ditto.
10311 * f-valprint.c (info_common_command): Ditto.
10312 (list_all_visible_commons): Ditto.
10313 * jv-typeprint.c (java_type_print_base): Ditto.
10314
10315 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10316 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10317 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10318 i386-interix-nat.c and i386-interix-tdep.c. Rename
10319 m68klinux-nat.c and m68klinux-tdep.c. Rename
10320 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10321 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10322 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10323 * main.c (captured_main): Use xfree, not free.
10324
10325 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10326
10327 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10328 ID back using a parameter.
10329 * frame.c (frame_id_unwind): Update call.
10330 (frame_saved_regs_id_unwind): Update.
10331 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10332 * dummy-frame.h (struct frame_id): Add opaque declaration.
10333 (dummy_frame_id_unwind): Update declaration.
10334
10335 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10336
10337 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10338
10339 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10340
10341 * MAINTAINERS (Stephen P. Smith): Updated email address.
10342
10343 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10344
10345 Fix PR gdb/898
10346 * breakpoint.c (until_break_command): Add new argument. Use it to
10347 decide whether to stop only at the current frame or not.
10348 * breakpoint.h (until_break_command): Update prototype.
10349 * infcmd.c (until_command): Add new argument to until_break_command
10350 call.
10351 (advance_command): New function.
10352 (_initialize_infcmd): Update help string for 'until' command.
10353 Add new 'advance' command.
10354
10355 2003-01-14 David Carlton <carlton@math.stanford.edu>
10356
10357 * linespec.c (decode_line_1): Normalize comments.
10358 (set_flags): Ditto.
10359 (locate_first_half): Ditto.
10360 (decode_compound): Ditto.
10361 (symtab_from_filename): Ditto.
10362 (decode_all_digits): Ditto.
10363 (decode_dollar): Ditto.
10364 (find_methods): Ditto.
10365 (find_toplevel_char): Ditto.
10366
10367 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10368
10369 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10370 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10371 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10372 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10373 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10374 * language.c, language.h, m32r-tdep.c: Update copyright.
10375 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10376 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10377 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10378 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10379 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10380 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10381
10382 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10383
10384 * stabsread.h (process_later, resolve_cfront_continuation):
10385 Obsolete.
10386 Update copyright years.
10387 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10388 Update copyright year.
10389 * dbxread.c(struct cont_elem): Obsolete.
10390 (process_later, process_now): Obsolete functions.
10391 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10392 Update copyright year.
10393 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10394 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10395 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10396 (parse_partial_symbols): Obsolete cfront support.
10397 * stabsread.c
10398 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10399 macros.
10400 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10401 read_cfront_baseclasses, read_cfront_member_functions,
10402 resolve_cfront_continuation,read_cfront_static_fields,
10403 copy_cfront_struct_fields): Obsolete functions.
10404 (define_symbol, read_one_struct_field): Obsolete cfront support.
10405 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10406 Update Copyright year.
10407
10408 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10409
10410 * stack.c (print_frame_info, print_stack_frame_base_stub,
10411 print_stack_frame_base, show_and_print_stack_frame_stub,
10412 show_and_print_stack_frame, print_only_stack_frame_stub,
10413 print_only_stack_frame): Delete functions.
10414 (print_stack_frame_stub): Call print_frame_info instead of
10415 print_frame_info_base.
10416 (print_frame_info_base): Rename to print_frame_info.
10417 (backtrace_command_1): Call print_frame_info, instead of
10418 print_frame_info_base.
10419 (current_frame_command): Call print_stack_frame, instead of
10420 print_only_stack_frame.
10421 (frame_command): Call print_stack_frame, instead of
10422 show_and_print_stack_frame.
10423 (up_command): Ditto.
10424 (down_command): Ditto.
10425 * frame.h (print_only_stack_frame): Delete prototype.
10426 * infrun.c (normal_stop): Call print_stack_frame, instead of
10427 show_and_print_stack_frame.
10428 * thread.c (info_threads_command): Call print_stack_frame, instead
10429 of print_only_stack_frame.
10430
10431 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10432
10433 * README (Graphical interface to GDB): Update URL. Point at
10434 gdb/links/.
10435
10436 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10437 version match.
10438
10439 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10440
10441 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10442 lines.
10443
10444 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10445
10446 * thread-db.c (attach_thread): Prototype.
10447 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10448 thread information (ti), and valid flags (th_valid, ti_valid).
10449 (attach_thread): Move target_pid_to_str call to after the thread
10450 is added to GDB's list. Initialize the cache.
10451 (thread_get_info_callback, thread_db_map_id2thr)
10452 (thread_db_get_info): New functions.
10453 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10454 (thread_db_store_registers, thread_db_thread_alive)
10455 (thread_db_get_thread_local_address): Use them.
10456 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10457 of calling error() for threads in unknown state.
10458
10459 (clear_lwpid_callback): New function.
10460 (thread_db_resume): Use it to clear the cache.
10461
10462 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10463
10464 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10465 (resume_callback): Remove dead code.
10466
10467 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10468
10469 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10470 predicate.
10471 * gdbarch.h, gdbarch.c: Regenerate.
10472 * stack.c (frame_info): Only initialize the saved registers when
10473 FRAME_INIT_SAVED_REGS_P.
10474 * frame.c (frame_saved_regs_register_unwind): Assert
10475 FRAME_INIT_SAVED_REGS_P.
10476 (deprecated_generic_get_saved_register): Ditto.
10477
10478 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10479
10480 * source.c (openp): Squelch warning about "filename".
10481
10482 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10483
10484 * source.c (openp): If the file does not exist don't necessarily
10485 search the path.
10486
10487 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10488
10489 Fix PR gdb/872.
10490 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10491 (integer_types_same_name_p): New function.
10492 (rank_one_type): Use it.
10493 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10494
10495 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10496
10497 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10498 variables.
10499 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10500 * configure.in: Add --with-sysroot.
10501 * configure: Regenerated.
10502 * main.c (gdb_sysroot): New variable.
10503 (captured_main): Initialize gdb_sysroot.
10504 * defs.h (gdb_sysroot): New extern declaration.
10505 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10506
10507 2003-01-12 Michael Chastain <mec@shout.net>
10508
10509 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10510
10511 2003-01-12 Michael Chastain <mec@shout.net>
10512
10513 * top.c (print_gdb_version): Bump copyright year to 2003.
10514
10515 2003-01-12 David Carlton <carlton@bactrian.org>
10516
10517 * linespec.c (symtab_from_filename): Rename variable 's' to
10518 'file_symtab'.
10519
10520 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10521
10522 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10523 dummy frame.
10524 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10525
10526 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10527
10528 * d10v-tdep.c: Include "gdb_assert.h".
10529 (d10v_store_return_value): Rewrite to match current interface.
10530 (d10v_extract_struct_value_address): Ditto.
10531 (d10v_extract_return_value): Ditto.
10532 (d10v_gdbarch_init): Set store_restore_value,
10533 extract_struct_value_address and extract_return_value.
10534
10535 2003-01-12 J. Brobecker <brobecker@gnat.com>
10536
10537 * hpread.c (set_namestring): New procedure replacing the
10538 SET_NAMESTRING macro.
10539 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10540 by calls to set_namestring.
10541
10542 2003-01-11 J. Brobecker <brobecker@gnat.com>
10543
10544 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10545 a compilation warning.
10546 (hpread_process_one_debug_symbol): Likewise.
10547
10548 2003-01-10 David Carlton <carlton@math.stanford.edu>
10549
10550 * linespec.c (decode_line_1): Rename variable 's' to
10551 'file_symtab'.
10552 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10553 (decode_dollar): Ditto.
10554 (decode_variable): Ditto.
10555 (symbol_found): Ditto.
10556
10557 2003-01-09 Michael Chastain <mec@shout.net>
10558
10559 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10560
10561 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10562
10563 * win32-nat.c (set_process_privilege): New function.
10564 (child_attach): Call set_process_privilege() to enable the
10565 SE_DEBUG_NAME user privilege if available in process token.
10566
10567 2003-01-10 J. Brobecker <brobecker@gnat.com>
10568
10569 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10570 compilation error in the previous revision.
10571
10572 2003-01-09 David Carlton <carlton@math.stanford.edu>
10573
10574 * linespec.c: Update copyright.
10575
10576 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10577
10578 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10579 than inferior_ptid.
10580 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10581
10582 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10583
10584 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10585 Update comments.
10586 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10587 (frame_saved_regs_zalloc): Update.
10588 (frame_saved_regs_register_unwind): Update.
10589 (create_new_frame): Update.
10590 (get_prev_frame): Update.
10591 (frame_extra_info_zalloc): Update.
10592 (deprecated_get_frame_saved_regs): Update.
10593 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10594 * cris-tdep.c: Update comment.
10595
10596 * somsolib.h: Fix function indentation.
10597 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10598 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10599 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10600 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10601 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10602
10603 * infrun.c (follow_fork): Use ISO C definition.
10604 * expprint.c (print_subexp): Use xfree instead of free.
10605 * charset.c: Include "gdb_string.h" instead of <string.h>.
10606 (register_iconv_charsets): Use ISO C definition.
10607 (host_charset, target_charset): Ditto.
10608 * Makefile.in (charset.o): Update dependencies.
10609 (mi-cmd-env.o): Update dependencies.
10610
10611 2003-01-08 Andrew Cagney <cagney@redhat.com>
10612
10613 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10614 get_frame_base.
10615
10616 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10617
10618 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10619 build directories. Save edited gdb output in Mbuild.log. If a
10620 build fails, remove any final GDB executable.
10621
10622 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10623
10624 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10625 replacing hex constants with function names and stripping leading
10626 file name directory prefixes.
10627
10628 2003-01-08 Andrew Cagney <cagney@redhat.com>
10629
10630 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10631 get_frame_base.
10632
10633 2003-01-08 David Carlton <carlton@math.stanford.edu>
10634
10635 * linespec.c (decode_line_1): Move code into decode_variable.
10636 (decode_variable): New function.
10637
10638 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10639
10640 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10641
10642 2003-01-08 Andrew Cagney <cagney@redhat.com>
10643
10644 * cris-tdep.c (cris_frame_init_saved_regs): Use
10645 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10646 saved_regs buffer.
10647 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10648 (sh64_nofp_frame_init_saved_regs): Ditto.
10649 (sh_fp_frame_init_saved_regs): Ditto.
10650 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10651 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10652 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10653 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10654
10655 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10656
10657 * minsyms.c (lookup_minimal_symbol): Update comment.
10658 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10659 (lookup_minimal_symbol_solib_trampoline): Likewise.
10660
10661 2003-01-08 Andrew Cagney <cagney@redhat.com>
10662
10663 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10664 frame_relative_level.
10665
10666 * alpha-tdep.c: Use get_frame_extra_info.
10667 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10668 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10669 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10670 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10671
10672 * alpha-tdep.c: Use get_next_frame.
10673 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10674 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10675 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10676 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10677 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10678 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10679 * xstormy16-tdep.c: Ditto.
10680
10681 2003-01-07 Andrew Cagney <cagney@redhat.com>
10682
10683 * alpha-tdep.c: Use get_frame_base.
10684 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10685 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10686 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10687 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10688 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10689 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10690 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10691 * config/sparc/tm-sparc.h: Ditto.
10692
10693 2003-01-07 Andrew Cagney <cagney@redhat.com>
10694
10695 * frame.c (deprecated_get_frame_context): New function.
10696 (deprecated_set_frame_context): New function.
10697 * frame.h (deprecated_get_frame_context): Declare.
10698 (deprecated_set_frame_context): Declare.
10699 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10700 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10701
10702 2003-01-07 Andrew Cagney <cagney@redhat.com>
10703
10704 * frame.c (deprecated_set_frame_next_hack): New function.
10705 (deprecated_set_frame_prev_hack): New function.
10706 * frame.h (deprecated_set_frame_next_hack): Declare.
10707 (deprecated_set_frame_prev_hack): Declare.
10708 * mcore-tdep.c (analyze_dummy_frame): Use
10709 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10710 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10711
10712 2003-01-07 David Carlton <carlton@math.stanford.edu>
10713
10714 * linespec.c (decode_line_1): Move code into decode_dollar.
10715 (decode_dollar): New function.
10716
10717 2003-01-07 Andrew Cagney <cagney@redhat.com>
10718
10719 * arm-tdep.c (arm_init_extra_frame_info): Use
10720 deprecated_update_frame_base_hack.
10721 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10722 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10723 (fix_frame_pointer): Ditto.
10724 (mn10300_analyze_prologue): Ditto.
10725
10726 2003-01-07 Andrew Cagney <cagney@redhat.com>
10727
10728 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10729 extra_info using frame_extra_info_zalloc.
10730 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10731 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10732 (sh64_init_extra_frame_info): Ditto.
10733 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10734 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10735 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10736 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10737 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10738 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10739 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10740 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10741 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10742 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10743 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10744 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10745
10746 * mn10300-tdep.c (analyze_dummy_frame): Use
10747 deprecated_set_frame_extra_info_hack.
10748 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10749
10750 2003-01-07 J. Brobecker <brobecker@gnat.com>
10751
10752 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10753 class is not scText. These do not define "real" procedures.
10754 (parse_partial_symbols): Likewise.
10755
10756 2003-01-06 Michael Snyder <msnyder@redhat.com>
10757
10758 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10759
10760 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10761
10762 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10763 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10764 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10765 deprecated_frame_xmalloc_with_cleanup.
10766 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10767 deprecated_frame_xmalloc.
10768 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10769 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10770
10771 2003-01-06 Andrew Cagney <cagney@redhat.com>
10772
10773 * x86-64-linux-tdep.c: Include "osabi.h".
10774 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10775
10776 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10777
10778 2003-01-06 Andrew Cagney <cagney@redhat.com>
10779
10780 * MAINTAINERS (Target Instruction Set Architectures): Update
10781 arm-elf. Can be built with -Werror, has been multiarched.
10782
10783 * value.h (unpack_long): Make buffer parameter constant.
10784 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10785 * scm-lang.h (scm_parse): Ditto.
10786 * defs.h (extract_typed_address, extract_address): Ditto.
10787 (extract_long_unsigned_integer): Ditto.
10788 * inferior.h (unsigned_pointer_to_address): Ditto.
10789 (signed_pointer_to_address): Ditto.
10790 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10791 * gdbarch.h, gdbarch.c: Regenerate.
10792 * findvar.c (extract_long_unsigned_integer): Update.
10793 (extract_address): Update.
10794 (extract_typed_address): Update.
10795 (unsigned_pointer_to_address): Update.
10796 * values.c (unpack_long): Update.
10797 (unpack_double): Update.
10798 (unpack_pointer): Update.
10799 (unpack_field_as_long): Update.
10800 * d10v-tdep.c (d10v_pointer_to_address): Update.
10801 * avr-tdep.c (avr_pointer_to_address): Update.
10802 * scm-lang.c (scm_unpack): Update.
10803 * findvar.c (signed_pointer_to_address): Update.
10804
10805 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10806
10807 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10808 since it is in i386-tdep.c.
10809
10810 2003-01-06 J. Brobecker <brobecker@gnat.com>
10811
10812 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10813 failure introduced in the previous change.
10814
10815 2003-01-05 Michael Chastain <mec@shout.net>
10816
10817 * README: Remove references to deleted remote-*.c files:
10818 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10819 remote-nrom.c, remote-os9k.c, remote-udi.c.
10820
10821 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10822
10823 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10824 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10825 i386_get_longjmp_target.
10826
10827 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10828
10829 * arm-tdep.c (prologue_cache): Change to a pointer.
10830 (_initialize_arm_tdep): Allocate prologue_cache.
10831 (check_prologue_cache): Update.
10832 (save_prologue_cache): Update.
10833 (arm_gdbarch_init): Update.
10834
10835 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10836
10837 * stabsread.c (update_method_name_from_physname): Call complaint()
10838 instead of error.
10839
10840 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10841
10842 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10843 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10844 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10845
10846 * blockframe.c: Include "gdbcmd.h" and "command.h".
10847 (backtrace_below_main): New variable.
10848 (file_frame_chain_valid, func_frame_chain_valid)
10849 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10850 (generic_func_frame_chain_valid): Remove functions.
10851 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10852 (_initialize_blockframe): New function.
10853 * Makefile.in (blockframe.o): Update dependencies.
10854 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10855 comment. Call frame_chain_valid ().
10856 * frame.h: Remove old prototypes. Add prototype for
10857 frame_chain_valid and update comments to match.
10858 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10859 Remove old comment.
10860 * gdbarch.h: Regenerated.
10861 * gdbarch.c: Regenerated.
10862
10863 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10864 set_gdbarch_frame_chain_valid.
10865 * avr-tdep.c (avr_gdbarch_init): Likewise.
10866 * cris-tdep.c (cris_gdbarch_init): Likewise.
10867 * frv-tdep.c (frv_gdbarch_init): Likewise.
10868 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10869 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10870 (i386_nw_init_abi): Likewise.
10871 (i386_gdbarch_init): Likewise.
10872 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10873 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10874 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10875 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10876 * mips-tdep.c (mips_gdbarch_init): Likewise.
10877 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10878 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10879 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10880 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10881 * s390-tdep.c (s390_gdbarch_init): Likewise.
10882 * sh-tdep.c (sh_gdbarch_init): Likewise.
10883 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10884 * v850-tdep.c (v850_gdbarch_init): Likewise.
10885 * vax-tdep.c (vax_gdbarch_init): Likewise.
10886 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10887
10888 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10889 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10890 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10891 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10892 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10893 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10894 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10895 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10896
10897 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10898
10899 * Makefile.in (acconfig_h): Remove incorrect macro.
10900 (config_h): Define.
10901 (osabi.o): Update dependencies.
10902 * configure.tgt: Set gdb_osabi based on target triplet.
10903 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10904 * configure: Regenerated.
10905 * config.in: Regenerated.
10906 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10907 (GDB_OSABI_DEFAULT): Define if not already defined.
10908 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10909 (set_osabi_string): New variables.
10910 (gdbarch_register_osabi): Add new OS ABI to
10911 gdb_osabi_available_names.
10912 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10913 (set_osabi, show_osabi): New functions.
10914 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10915
10916 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10917
10918 * arch-utils.c (gdbarch_info_init): Set osabi to
10919 GDB_OSABI_UNINITIALIZED.
10920 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10921 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10922 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10923 * gdbarch.c: Regenerated.
10924 * gdbarch.h: Regenerated.
10925 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10926 there's no BFD.
10927 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10928 * osabi.h (enum gdb_osabi): Move to defs.h.
10929 (gdbarch_init_osabi): Update prototype.
10930 * defs.h (enum gdb_osabi): Moved here.
10931 * Makefile.in: Update dependencies.
10932
10933 * alpha-tdep.h: Don't include "osabi.h".
10934 (struct gdbarch_tdep): Remove osabi member.
10935 * alpha-tdep.c: Include "osabi.h".
10936 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10937 iterate over arches. Update call to gdbarch_init_osabi.
10938 (alpha_dump_tdep): Don't dump osabi.
10939 * alpha-linux-tdep.c: Include "osabi.h".
10940 * alpha-osf1-tdep.c: Include "osabi.h".
10941 * alphafbsd-tdep.c: Include "osabi.h".
10942 * alphanbsd-tdep.c: Include "osabi.h".
10943
10944 * arm-tdep.h: Don't include "osabi.h".
10945 (struct gdbarch_tdep): Remove osabi member.
10946 * arm-tdep.c: Include "osabi.h".
10947 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10948 iterate over arches. Update call to gdbarch_init_osabi.
10949 (arm_dump_tdep): Don't dump osabi.
10950 * arm-linux-tdep.c: Include "osabi.h".
10951 * armnbsd-tdep.c: Include "osabi.h".
10952
10953 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10954 Update call to gdbarch_init_osabi.
10955
10956 * i386-tdep.h: Don't include "osabi.h".
10957 (struct gdbarch_tdep): Remove osabi member.
10958 * i386-tdep.c: Include "osabi.h".
10959 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10960 iterate over arches. Update call to gdbarch_init_osabi.
10961 (i386_dump_tdep): Don't dump osabi.
10962 * i386-linux-tdep.c: Include "osabi.h".
10963 * i386-sol2-tdep.c: Include "osabi.h".
10964 * i386bsd-tdep.c: Include "osabi.h".
10965 * i386gnu-tdep.c: Include "osabi.h".
10966 * i386ly-tdep.c: Include "osabi.h".
10967 * i386nbsd-tdep.c: Include "osabi.h".
10968 * i386obsd-tdep.c: Include "osabi.h".
10969
10970 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10971 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10972 check osabi when iterating over arches. Update call to
10973 gdbarch_init_osabi.
10974 (mips_dump_tdep): Don't dump osabi.
10975
10976 * ns32k-tdep.h: Don't include "osabi.h".
10977 (struct gdbarch_tdep): Remove.
10978 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10979 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10980 allocate tdep. Update call to gdbarch_init_osabi.
10981 (ns32k_dump_tdep): Remove.
10982 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10983 * ns32knbsd-tdep.c: Include "osabi.h".
10984
10985 * ppc-tdep.h: Don't include "osabi.h".
10986 (struct gdbarch_tdep): Remove osabi member.
10987 * rs6000-tdep.c: Include "osabi.h".
10988 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10989 osabi when iterating over arches. Update call to
10990 gdbarch_init_osabi.
10991 (rs6000_dump_tdep): Don't dump osabi.
10992 * ppc-linux-tdep.c: Include "osabi.h".
10993 * ppcnbsd-tdep.c: Include "osabi.h".
10994
10995 * sh-tdep.h: Don't include "osabi.h".
10996 (struct gdbarch_tdep): Remove osabi member.
10997 * sh-tdep.c: Include "osabi.h".
10998 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10999 iterate over arches. Update call to gdbarch_init_osabi.
11000 (sh_dump_tdep): Don't dump osabi.
11001 * shnbsd-tdep.c: Include "osabi.h".
11002
11003 * sparc-tdep.c: Include "osabi.h".
11004 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11005 iterate over arches. Update call to gdbarch_init_osabi.
11006 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11007 tdep structure.
11008
11009 * vax-tdep.h: Don't include "osabi.h".
11010 (struct gdbarch_tdep): Remove.
11011 * vax-tdep.c: Include "osabi.h".
11012 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11013 iterate over arches. Don't allocate tdep. Update call
11014 to gdbarch_init_osabi.
11015 (vax_dump_tdep): Remove.
11016 (_initialize_vax_tdep): Update call to gdbarch_register.
11017
11018 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11019
11020 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11021 entirely.
11022 (breakpoint_re_set_one): Don't fetch the value for a disabled
11023 watchpoint.
11024
11025 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11026
11027 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11028 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11029 (COERCE_FLOAT_TO_DOUBLE): Remove.
11030 * gdbarch.c: Regenerate.
11031 * gdbarch.h: Regenerate.
11032 * Makefile.in: Remove value_h from gdbarch_h.
11033 * valops.c (coerce_float_to_double): New variable.
11034 (default_coerce_float_to_double): Remove.
11035 (standard_coerce_float_to_double): Remove.
11036 (value_arg_coerce): Use coerce_float_to_double.
11037 (_initialize_valops): Add "set coerce-float-to-double".
11038 * value.h (default_coerce_float_to_double): Remove prototype.
11039 (standard_coerce_float_to_double): Remove prototype.
11040
11041 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11042 prototyped.
11043 * mdebugread.c (parse_symbol): Likewise.
11044 * stabsread.c (define_symbol): Mark all functions as prototyped.
11045
11046 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11047 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11048 set_gdbarch_coerce_float_to_double.
11049 * arm-tdep.c (arm_gdbarch_init): Likewise.
11050 * frv-tdep.c (frv_gdbarch_init): Likewise.
11051 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11052 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11053 * mips-tdep.c (mips_gdbarch_init): Likewise.
11054 (mips_coerce_float_to_double): Remove.
11055 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11056 (rs6000_coerce_float_to_double): Remove.
11057 * s390-tdep.c (s390_gdbarch_init): Likewise.
11058 * sh-tdep.c (sh_gdbarch_init): Likewise.
11059 (sh_coerce_float_to_double): Remove.
11060 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11061 (sparc_coerce_float_to_double): Remove.
11062 * v850-tdep.c (v850_gdbarch_init): Likewise.
11063 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11064 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11065 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11066 (hppa_coerce_float_to_double): Remove prototype.
11067 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11068
11069 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11070
11071 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11072
11073 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11074
11075 Suggested by Stewart Brown <sb24@avaya.com>:
11076 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11077 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11078 (c_type_print_varspec_suffix): Likewise.
11079
11080 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11081
11082 * configure.in: Don't set and AC_SUBST SUBDIRS.
11083 * configure: Regenerated.
11084
11085 * configure.in: Remove code dealing with shared libraries.
11086 * Makefile.in: Remove HLDFLAGS and HLDENV.
11087 * configure: Regenerated.
11088
11089 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11090
11091 * frame.c (deprecated_frame_xmalloc): New function.
11092 (deprecated_set_frame_saved_regs_hack): New function.
11093 (deprecated_set_frame_extra_info_hack): New function.
11094 * frame.h (deprecated_frame_xmalloc): Declare.
11095 (deprecated_set_frame_saved_regs_hack): Declare.
11096 (deprecated_set_frame_extra_info_hack): Declare.
11097
11098 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11099
11100 * configure.in: Move code that provides the --enable-gdbtk option
11101 right after the code that handles the --enable-tui option, and
11102 polish it somewhat.
11103 * configure: Regenerated.
11104
11105 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11106 AC_CHECK_FUNCS and remove the old check for pread64.
11107 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11108 * acconfig.h (_GNU_SOURCE): Add.
11109 (HAVE_PREAD64): Remove.
11110 * configure, aclocal.m4, config.in: Regenerated.
11111
11112 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11113
11114 * alpha-tdep.c: Use get_frame_saved_regs.
11115 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11116 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11117 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11118 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11119 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11120
11121 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11122
11123 * configure.in: Remove all use of the SUBDIRS variable; add
11124 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11125 code providing the --enable-multi-ice option, and move it right in
11126 front of the code that checks whether gdbserver is supported.
11127 Polish that too.
11128 * configure: Regenerated.
11129 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11130 @SUBDIRS@.
11131
11132 2003-01-03 Andrew Cagney <cagney@redhat.com>
11133
11134 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11135 * avr-tdep.c, cris-tdep.c: Ditto.
11136 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11137 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11138
11139 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11140
11141 * configure.in: Remove --enable-netrom option.
11142 * configure: Regenerated.
11143
11144 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11145
11146 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11147 declaration for `struct re_pattern_buffer' instead.
11148 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11149
11150 2003-01-03 J. Brobecker <brobecker@gnat.com>
11151
11152 * mdebugread.c (parse_symbol): Count until the stEnd matching
11153 the structure name.
11154
11155 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11156
11157 * configure.in: Remove --with-cpu option.
11158 subscripts. Remove evil changequotes here.
11159 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11160 * config.in, configure: Regenerated.
11161
11162 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11163 * configure.in: Cleanup section that sources GDB and BFD configure
11164 subscripts. Remove evil changequotes here.
11165 * config.in, configure: Regenerated.
11166
11167 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11168
11169 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11170 frame accessor methods.
11171 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11172 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11173 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11174 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11175 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11176 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11177 * z8k-tdep.c: Ditto.
11178
11179 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11180
11181 * configure.in: Remove UI_OUT configuration code.
11182 * ada-lang.c: Update assuming UI_OUT is always true.
11183 * Makefile.in (UIOUT_CFLAGS): Remove.
11184 * configure: Regenerated.
11185 * TODO: Remove blurb about elimination of -DUI_OUT.
11186
11187 * configure.in: Move code that provides the --enable-gdbcli,
11188 --enable-gdbmi options right before the code that handles the
11189 --enable-tui option. Polish a bit.
11190 * configure: Regenerated.
11191
11192 * configure.in: Rewrite check for GNU regex and the
11193 --without-included regex option, and move it into the "Checks for
11194 library functions" section. This makes us use the system regex
11195 again by default on systems with version 2 of the GNU C library.
11196 This was apparently broken.
11197 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11198 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11199 * config.in, configure: Regenerated.
11200
11201 * configure.in: Move code that provides the --enable-tui option
11202 before the "Checks for libraries" section. Polish the code
11203 somewhat and set need_curses to yes if we build the TUI. Rewrite
11204 code that looks for a library providing termcap functionality to
11205 match more closely what's done in the Readline library, and move
11206 it into to the "Checks for libraries" section.
11207 * configure: Regenerated.
11208 * Makefile.in (TERMCAP): Remove variable.
11209 * config/i386/go32.mh (TERMCAP): Remove variable.
11210
11211 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11212
11213 * MAINTAINERS: Mention gdb_mbuild.sh.
11214 * gdb_mbuild.sh: Rewrite.
11215
11216 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11217
11218 * configure.in: Fix typo in last change.
11219 * config.in, configure: Regenerated.
11220
11221 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11222
11223 * valarith.c (value_binop): Delete obsolete code and comments.
11224 * configure.host: Ditto.
11225 * buildsym.h (make_blockvector): Ditto.
11226 * buildsym.c (make_blockvector): Ditto.
11227 * defs.h (enum language): Ditto.
11228 (chill_demangle): Ditto.
11229 * elfread.c (elf_symtab_read): Ditto.
11230 * dwarfread.c (CHILL_PRODUCER): Ditto.
11231 (set_cu_language): Ditto.
11232 (handle_producer): Ditto.
11233 * expprint.c (print_subexp): Ditto.
11234 * gdbtypes.c (chill_varying_type): Ditto.
11235 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11236 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11237 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11238 (chill_varying_type): Ditto.
11239 * language.h (_LANG_chill): Ditto.
11240 * language.c (binop_result_type, integral_type): Ditto.
11241 (character_type, string_type, structured_type): Ditto.
11242 (lang_bool_type, binop_type_check): Ditto.
11243 * stabsread.h (os9k_stabs): Ditto.
11244 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11245 (define_symbol, read_type, read_struct_fields): Ditto.
11246 (read_array_type, read_enum_type, read_huge_number): Ditto.
11247 (read_range_type, start_stabs): Ditto.
11248 * symfile.c (init_filename_language_table): Ditto.
11249 (add_psymbol_with_dem_name_to_list): Ditto.
11250 * symtab.c (symbol_init_language_specific): Ditto.
11251 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11252 * symtab.h (struct general_symbol_info): Ditto.
11253 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11254 * typeprint.c (typedef_print): Ditto.
11255 * utils.c (fprintf_symbol_filtered): Ditto.
11256 * valops.c (value_cast, search_struct_field, value_slice): Delete
11257 obsolete code.
11258 (varying_to_slice): Delete function.
11259 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11260 (varying_to_slice): Delete declaration.
11261 * MAINTAINERS: Update.
11262
11263 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11264
11265 * configure.in: Reorganize "Checks for library functions section"
11266 a bit. Remove check for `btowc' and `isascii' functions.
11267 * configure: Regenerated.
11268
11269 * acconfig.h (_MSE_INT_H): Remove.
11270 * configure.in: Create "Checks for header files" section, and move
11271 appropriate tests there. Don't check for objlist.h, wchar.h,
11272 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11273 misdetection fix. Also add "Checks for types", "Checks for
11274 compiler characteristics" and "Checks for library functions"
11275 sections.
11276 * config.in, configure: Regenerated.
11277
11278 * configure.in: Create "Checks for programs" section, and move
11279 appropriate tests there.
11280
11281 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11282
11283 * configure.in: Create "Checks for libraries" section, and move
11284 appropriate tests there. Cleanup check for wctype in libw. Use
11285 AC_SEARCH_LIBS to see whether we need libsocket.
11286 * configure: Regenerated.
11287
11288 For older changes see ChangeLog-2002
11289 \f
11290 Local Variables:
11291 mode: change-log
11292 left-margin: 8
11293 fill-column: 74
11294 version-control: never
11295 End:
This page took 0.248573 seconds and 3 git commands to generate.