2003-09-03 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-09-03 Andrew Cagney <cagney@redhat.com>
2
3 * defs.h: Do not include "arch-utils.h".
4 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
5 GDB_MULTI_ARCH_PURE.
6 * configure.in (GDB_MULTI_ARCH): Do not define.
7 * configure, config.in: Regenerate.
8 * configure.tgt: Do not set variable "gdb_multi_arch".
9 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
10 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
11 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
12 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
13 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
14 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
15 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
16 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
17 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
18 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
19 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
20 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
21 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
22 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
23 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
24 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
25 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
26 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
27
28 2003-08-30 Michael Chastain <mec@shout.net>
29
30 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
31 * config/m68k/nm-hp300hpux.h: Delete.
32 * config/m68k/tm-hp300hpux.h: Delete.
33 * config/m68k/xm-hp300hpux.h: Delete.
34 * config/m68k/xm-hp300bsd.h: Delete.
35 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
36 tm-hp300hpux.h, xm-hp300hpux.h.
37 * somsolib.c: Remove comment about hp300 shared libraries.
38
39 2003-08-31 Mark Kettenis <kettenis@gnu.org>
40
41 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
42 Only define PTRACE_GET_THREAD_AREA is not already defined.
43 Various style fixes in code and comments and some additional
44 spelling fixes in comments. Move after functions dealing with
45 debug registers.
46 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
47 Fix coding-style.
48
49 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
50 frame_unwind_register_unsigned instead of
51 frame_unwind_unsigned_register.
52
53 2003-08-30 Mark Kettenis <kettenis@gnu.org>
54
55 * configure.in: Search for gethostbyname in libnsl.
56 * configure: Regenerated.
57
58 2003-08-29 Mark Kettenis <kettenis@gnu.org>
59
60 * configure.in: Remove redundant AC_MSG_RESULT in check for
61 uintptr_t in stdint.h.
62 * configure: Regenerated.
63
64 * amd64-nat.h (struct regcache): Add opaque declaration.
65
66 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
67 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
68 Change "register array" to "register cache" in comments.
69 (x86_64_linux_gregset64_reg_offset): New variable.
70 (GETREGS_SUPPLIES): Remove macro.
71 (supply_gregset): Call amd64_supply_native_gregset instead of
72 x86_64_linux_supply_gregset.
73 (fill_gregset): Rename `regno' to `regnum'. Call
74 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
75 (store_regs): Rename `regno' to `regnum'.
76 (store_fpregs): Rename `regno' to `regnum'.
77 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
78 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
79 Reorganize function a bit.
80 (store_inferior_registers): Rename `regno' to `regnum'. Use
81 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
82 Reorganize function a bit.
83 (_initialize_x86_64_linux_nat): New function.
84 * config/i386/x86-64linux.mh.
85
86 2003-08-29 Andrew Cagney <cagney@redhat.com>
87
88 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
89 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
90 (target_remove_watchpoint): Delete macro.
91 (target_insert_watchpoint): Delete macro.
92 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
93 (remote_mips_stopped_by_watchpoint): Delete declaration.
94 (remote_mips_remove_watchpoint): Delete declaration.
95 (remote_mips_set_watchpoint): Delete declaration.
96 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
97 * remote-mips.c (_initialize_remote_mips): Set
98 "to_insert_watchpoint", "to_stopped_by_watchpoint",
99 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
100 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
101 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
102 (mips_stopped_by_watchpoint): Rename
103 remote_mips_stopped_by_watchpoint.
104 (mips_can_hardware_watchpoint): Rename
105 remote_mips_can_use_hardware_watchpoint, update function
106 signature.
107
108 2003-08-29 Mark Kettenis <kettenis@gnu.org>
109
110 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
111 USER_DS. We haven't given them a register number yet.
112
113 * amd64-nat.h: New file.
114 * amd64-nat.c: New file.
115 * amd64fbsd-nat.c: Include "amd64-nat.h".
116 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
117 (amd64fbsd32_r_reg_offset): New variable.
118 (supply_gregset): Simply call amd64_supply_native_gregset.
119 (fill_gregset): Rename `regno' to `regnum'. Simply call
120 amd64_collect_native_gregset.
121 (fill_fpregset): Rename `regno' to `regnum'.
122 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
123 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
124 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
125 `fpregset_t'. Call amd64_supply_native_gregset instead of
126 supply_gregset. Call x86_64_supply_fxsave instead of
127 supply_fpregset.
128 (store_inferior_registers): Rename `regno' to `regnum'. Replace
129 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
130 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
131 `fpregset_t'. Call amd64_collect_native_gregset instead of
132 fill_gregset. Call x86_64_collect_fxsave instead of
133 fill_fpregset.
134 (_initialize_am64fbsd_nat): Initialize
135 amd64_native_gregset32_reg_offset and
136 amd64_native_gregset64_reg_offset.
137 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
138
139 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
140 null pointer. Fix typo in comment.
141
142 * regcache.c (supply_register): Reimplement to call
143 regcache_raw_supply.
144 (regcache_collect): Reimplement by calling regcache_raw_collect.
145
146 2003-08-28 Mark Kettenis <kettenis@gnu.org>
147
148 * regcache.c (register_buffer): Consitify first argument.
149 (regcache_raw_supply, regcache_raw_collect): New
150 functions.
151
152 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
153
154 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
155 by Nathan J. Williams.
156
157 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
158
159 * lin-lwp.c (wait_lwp): New function, copied from
160 stop_wait_callback. Clean up.
161 (stop_wait_callback): Use wait_lwp.
162
163 2003-08-28 Andrew Cagney <cagney@redhat.com>
164
165 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
166 flavour and disassembler options.
167 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
168 (mips_gdbarch_init): Set "print_insn". Delete initialization of
169 deprecated_tm_print_insn_info.
170
171 2003-08-27 Andrew Cagney <cagney@redhat.com>
172
173 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
174 Use target_read_memory.
175 (s390_get_frame_info): Update. Do not reference
176 deprecated_tm_print_insn_info.
177 (s390_check_function_end, s390_is_sigreturn): Ditto.
178
179 2003-08-27 Andrew Cagney <cagney@redhat.com>
180
181 * Makefile.in (cris-tdep.o): Update dependencies.
182 * cris-tdep.c: Include "gdb_assert.h".
183 (cris_gdbarch_init): Set print_insn.
184 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
185 (cris_delayed_get_disassembler): Simplify, directly call the
186 disassembler returned by cris_get_disassembler.
187 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
188 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
189 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
190 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
191 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
192 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
193 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
194 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
195 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
196 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
197 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
198 (gdb_print_insn_sparc): Delete function.
199 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
200 deprecated_tm_print_insn_info.
201 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
202 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
203 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
204 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
205 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
206 * s390-tdep.c (gdb_print_insn_s390): Delete function.
207 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
208 (s390_gdbarch_init): Set print_insn.
209
210 2003-08-27 Andrew Cagney <cagney@redhat.com>
211
212 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
213 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
214 * infcall.c (call_function_by_hand): Convert the entry point
215 address into a code address.
216
217 2003-08-27 Andrew Cagney <cagney@redhat.com>
218
219 * dsrec.c: Include "gdb_string.h".
220 * Makefile.in (dsrec.o): Update dependencies.
221
222 2003-08-27 Michael Chastain <mec@shout.net>
223
224 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
225
226 2003-08-27 Andrew Cagney <cagney@redhat.com>
227
228 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
229 (alpha_osf1_init_abi): Do not set call_dummy_address.
230
231 2003-08-27 David Carlton <carlton@kealia.com>
232
233 From Randolph Chung <tausq@debian.org>:
234 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
235 compiles with -Wformat-nonliteral -Werror.
236
237 2003-08-26 Jim Blandy <jimb@redhat.com>
238
239 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
240 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
241 bfd_lookup_symbol, since we only want symbols in code sections.
242 (look_for_base): Pass zero as the SECT_FLAGS argument to
243 bfd_lookup_symbol, since we're not concerned about which section
244 the symbol is in.
245
246 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
247
248 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
249 we are frameless or the return address register is already known.
250
251 2003-08-26 Andrew Cagney <cagney@redhat.com>
252
253 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
254 in size. Add comments.
255
256 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
257
258 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
259 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
260
261 2003-08-26 Jason Merrill <jason@redhat.com>
262
263 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
264 case out of #ifdef MIPS block.
265
266 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
267
268 PR java/1322
269 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
270 available before calling SECT_OFF_TEXT.
271 * PROBLEMS: Remove description of java/1322.
272
273 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
274
275 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
276 bof, and nat0-nat127 as pseudo-registers.
277 (ia64_frame_cache): New struct used to cache frame info.
278 (ia64_register_reggroup_p): New routine used to override default
279 register grouping so registers without names are still saved and
280 restored.
281 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
282 pseudo values.
283 (ia64_pseudo_register_read): New routine to read pseudo-registers.
284 (ia64_pseudo_register_write): New routine to write pseudo-registers.
285 (ia64_alloc_frame_cache): New routine to create a new
286 ia64_frame_cache.
287 (examine_prologue): Change prototype to add next_frame pointer.
288 Assume frameless until otherwise proven. Verify that the cfm for
289 current frame matches the cfm that should occur for the prologues
290 alloc insn and if equal, mark as not frameless. At end of routine,
291 if not frameless, calculate registers for the previous frame and store
292 in the cache, if a cache is provided.
293 (ia64_skip_prologue): Use new prototype when calling examine_prologue
294 and pass 0 for next_frame.
295 (ia64_store_return_value): Change to use convert_typed_floating()
296 instead of calling ia64_convert_to_raw().
297 (ia64_extract_return_value): Change to use convert_typed_floating()
298 instead of calling ia64_convert_to_virtual().
299 (ia64_frame_cache): New routine to support new frame model.
300 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
301 (ia64_frame_sniffer): Ditto.
302 (ia64_sigtramp_frame_init_saved_regs): Ditto.
303 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
304 (ia64_sigtramp_frame_prev_register): Ditto.
305 (ia64_sigtramp_frame_sniffer): Ditto.
306 (ia64_frame_base_address): Ditto.
307 (ia64_extract_struct_value_address): Change to issue error message.
308 (ia64_frame_align): New routine to align sp.
309 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
310 (ia64_push_arguments): Removed. Logic moved to
311 ia64_push_dummy_call().
312 (ia64_push_return_address): Ditto.
313 (ia64_unwind_dummy_id): New function.
314 (ia64_unwind_pc): Ditto.
315 (ia64_convert_register_p): Ditto.
316 (ia64_register_to_value): Ditto.
317 (ia64_value_to_register): Ditto.
318 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
319 (ia64_register_byte, ia64_register_raw_size): Ditto.
320 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
321 (ia64_saved_pc_after_call): Ditto.
322 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
323 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
324 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
325 (ia64_register_convert_to_raw): Ditto.
326 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
327 (ia64_init_extra_frame_info): Ditto.
328 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
329 (ia64_gdbarch_init): Remove registering of deprecated functions that
330 are no longer used. Add registration of new gdbarch functions.
331 Remove registering deprecated_write_sp. Replace
332 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
333 Delete set_gdbarch_deprecated_register_convertible(),
334 set_gdbarch_deprecated_register_convert_to_virtual(), and
335 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
336 set_gdbarch_deprecated_register_size(),
337 set_gdbarch_deprecated_register_bytes(),
338 set_gdbarch_pcregnum(),
339 set_gdbarch_deprecated_register_byte(),
340 set_gdbarch_deprecated_register_raw_size(),
341 set_gdbarch_deprecated_max_register_raw_size(),
342 set_gdbarch_deprecated_register_virtual_size(),
343 and set_gdbarch_deprecated_max_register_virtual_size() calls.
344 Replace set_gdbarch_deprecated_extract_return_value() with
345 set_gdbarch_extract_return_value(). Remove calls to:
346 set_gdbarch_deprecated_saved_pc_after_call();
347 set_gdbarch_deprecated_frame_chain(),
348 set_gdbarch_deprecated_frame_saved_pc(),
349 set_gdbarch_deprecated_frame_init_saved_regs(),
350 set_gdbarch_deprecated_get_saved_register(),
351 set_gdbarch_deprecated_call_dummy_words(),
352 set_gdbarch_deprecated_sizeof_call_dummy_words(),
353 set_gdbarch_deprecated_init_extra_frame_info(),
354 set_gdbarch_deprecated_frame_args_address(),
355 set_gdbarch_deprecated_frame_locals_address(),
356 and set_gdbarch_deprecated_dummy_write_sp().
357 Add set_gdbarch_convert_register_p(),
358 set_gdbarch_register_to_value(),
359 set_gdbarch_value_to_register(),
360 set_gdbarch_push_dummy_call(),
361 set_gdbarch_frame_align(),
362 set_gdbarch_unwind_dummy_id(),
363 set_gdbarch_unwind_pc(),
364 frame_unwind_append_sniffer(),
365 frame_unwind_append_sniffer(),
366 and frame_base_set_default().
367
368 2003-08-25 Chris Demetriou <cgd@broadcom.com>
369
370 * configure.tgt: Document need for special "mipsisa64" handling.
371 (mipsisa64*-*-linux64): Handle as target linux64.
372 (mipsisa64*-*-*): Handle as target embed64.
373
374 2003-08-18 Michael Chastain <mec@shout.net>
375
376 * PROBLEMS: Document pr gdb/1322, the Java anonymous
377 objfile bug.
378
379 2003-08-24 Mark Kettenis <kettenis@gnu.org>
380
381 * i387-tdep.h: Update copyright date.
382 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
383
384 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
385 CFLAGS games to reflect reality.
386
387 2003-08-24 Andrew Cagney <cagney@redhat.com>
388
389 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
390 GDB_MULTI_ARCH is always non-zero.
391 * osabi.c (_initialize_gdb_osabi): Ditto.
392 (gdbarch_init_osabi): Ditto.
393 * sparc-tdep.c: Ditto for #if code.
394
395 2003-08-23 Mark Kettenis <kettenis@gnu.org>
396
397 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
398 Update comments.
399 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
400 comments.
401 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
402 x86_64_supply_fxsave.
403 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
404 x86_64_supply_fxsave.
405 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
406 x86_64_supply_fxsave.
407
408 2003-08-23 Andreas Jaeger <aj@suse.de>
409
410 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
411 i387_supply_fxsave.
412
413 2003-08-23 Mark Kettenis <kettenis@gnu.org>
414
415 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
416 i387_supply_register.
417 (go32_fetch_registers): Adjust call to i387_supply_fsave.
418 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
419 i387_supply_fsave.
420 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
421 i387_supply_fxsave.
422 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
423 i387_supply_fsave.
424 * i386bsd-nat.c (supply_fpregset): Adjust call to
425 i387_supply_fsave.
426 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
427 call to i387_supply_fxsave. Call i387_supply_fsave instead of
428 supply_fpregset.
429 (store_inferior_registers): Remove extraneous whitespace. Call
430 i387_fill_fsave instead of fill_fpregset.
431 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
432 (supply_fpregset): Likewise.
433 * i386v4-nat.c (supply_fpregset): Adjust call to
434 i387_supply_fsave.
435 * i386-interix-nat.c (supply_fpregset): Adjust call to
436 i387_supply_fsave.
437 * i386-linux-nat.c (supply_fpregset): Adjust call to
438 i387_supply_fsave.
439 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
440 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
441 i387supply_fsave and i387_supply_fxsave.
442 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
443 Incorporate code from `i387_supply_register.
444 (i387_supply_register): Remove.
445 (i387_supply_fxsave): Add `regnum' argument.
446 Update comments.
447 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
448 prototype.
449 (i387_supply_register): remove prototype.
450 Update comments.
451
452 2003-08-22 Michael Chastain <mec@shout.net>
453
454 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
455 Add lines for files in gdb/testsuite/gdb.cp/* that are
456 still not 8.3 unique.
457
458 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
459
460 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
461 TYPE_VPTR_FIELDNO is valid.
462
463 2003-08-19 Mark Kettenis <kettenis@gnu.org>
464
465 * utils.c (set_width_command): Remove prototypes.
466 (set_screen_size): New prototype.
467 (init_page_info): Simplify by fetching the screen size from
468 Readline. Call set_screen_size.
469 (set_screen_size): New function.
470 (set_width): Add missing whitespace in comment.
471 (set_width_command): Call set_screen_size.
472 (set_height_command): New function.
473 (initialize_utils): Fix formatting. Make "set height" command
474 call set_height_command. Remove redundant code that turns off
475 pagination if output isn't a terminal. Remove redundant call to
476 set_width_command.
477
478 2003-08-22 Mark Kettenis <kettenis@gnu.org>
479
480 * sparc64-tdep.h (sparc64_regnum): Fix comment.
481 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
482 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
483 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
484 `case' keyword.
485 (sparc64_register_info): Give the reister with number
486 SPARC64_STATE_REGNUM a name.
487 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
488 %asi and %ccr.
489 (sparc64_push_dummy_call): Take BIAS into account when checking
490 stcak alignment.
491 (sparc_software_single_step): Remove assertions that check whether
492 NPC and NNPC were zero.
493 (sparc_supply_rwindow): Make public. Merge functionality with
494 sparc64_supply_rwindow.
495 (sparc_fill_rwindow): Make public. Merge functionality with
496 sparc64_fill_rwindow.
497 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
498 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
499 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
500 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
501 sparc_supply_rwindow instead of sparc64_supply_rwindow.
502
503 * reggroups.c: Add whitespace after declarations of local
504 variables in functions.
505
506 2003-08-21 Michael Chastain <mec@shout.net>
507
508 * gdbtypes.h: Change array bound type from an int to enum.
509
510 2003-08-21 Andrew Cagney <cagney@redhat.com>
511
512 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
513 * config/sparc/tm-sparc.h: Ditto.
514 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
515 unconditionally.
516 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
517
518 2003-07-13 Mark Kettenis <kettenis@gnu.org>
519
520 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
521 (register_objfile_data, set_objfile_data, objfile_data): New
522 prototypes.
523 * objfiles.c (objfile_alloc_data, objfile_free_data): New
524 prototypes.
525 (allocate_objfile): Call objfile_alloc_data.
526 (free_objfile): Call objfile_free_data.
527 (struct objfile_data): New.
528 (struct objfile_data_registration): New.
529 (struct objfile_data_registry): New.
530 (objfile_data_registry): New variable.
531 (register_objfile_data): New function.
532 (objfile_alloc_data, objfile_free_data): New functions.
533 (set_objfile_data, objfile_data): New functions.
534 * dwarf2-frame.c (dwarf2_frame_data): New variable.
535 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
536 (_initialize_dwarf2_frame): New function and prototype.
537
538 2003-08-21 Andrew Cagney <cagney@redhat.com>
539
540 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
541 a specific architecture.
542 * arch-utils.h (set_architecture_from_arch_mach): Delete
543 declaration.
544 (target_architecture_hook): Delete declaration.
545 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
546 (default_float_format): Assume GDB_MULTI_ARCH.
547 (default_double_format): Assume GDB_MULTI_ARCH.
548 (set_endian_from_file): Delete function.
549 (arch_ok): Delete function.
550 (set_arch): Delete function.
551 (set_architecture_from_arch_mach): Delete function.
552 (set_architecture_from_file): Delete function.
553 (set_architecture): Assume GDB_MULTI_ARCH.
554 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
555
556 2003-08-21 Mark Kettenis <kettenis@gnu.org>
557
558 Rewrite FreeBSD/sparc64 native configuration.
559 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
560 * sparc64fbsd-nat.c: New file.
561 * sparc64fbsd-tdep.c: New file.
562 * sparc64-tdep.c sparc64-tdep.h: New files.
563 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
564 sparc64fbsd-tdep.o): New dependencies.
565 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
566 and sparc64fbsd-tdep.c.
567 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
568 * config/sparc/fbsd.mh: Remove copyright notice.
569 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
570 sparcbsd-nat.o.
571 * config/sparc/fbsd.mt: Remove copyright notice.
572 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
573 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
574 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
575 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
576 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
577 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
578 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
579 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
580 "sparc/tm-sp64.h".
581 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
582 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
583
584 2003-08-21 Michael Chastain <mec@shout.net>
585
586 * symtab.h: Add doco on the space critical structures and
587 some measurements of space usage.
588
589 2003-08-21 Michael Snyder <msnyder@redhat.com>
590
591 * tracepoint.c (trace_dump_command): Trace break address
592 is subject to DECR_PC_AFTER_BREAK.
593 (set_traceframe_context): Make "trace_line" an int.
594 Fixes suggested by Mark Newman <mark.newman@lmco.com>
595
596 2003-08-20 Michael Snyder <msnyder@redhat.com>
597
598 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
599 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
600 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
601 argument passing.
602 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
603 functions, replace sh_push_dummy_call.
604 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
605
606 2003-08-20 Michael Chastain <mec@shout.net>
607
608 * gdbtypes.h (struct main_type): Rearrange to save space.
609
610 2003-08-20 Michael Snyder <msnyder@redhat.com>
611
612 * trad-frame.c: Comment typo fix.
613
614 2003-08-20 Michael Snyder <msnyder@redhat.com>
615 Kevin Buettner <kevinb@redhat.com>
616
617 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
618 (frv_frame_init_saved_regs): Add declaration.
619 (frame_extra_info): Add new field ``saved_regs''.
620 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
621 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
622 Update frame related code.
623 (frv_extract_struct_value_address): Adjust formatting.
624 * Makefile.in (frv-tdep.o): Update dependencies.
625 * config/frv/tm-frv.h (target_insert_watchpoint)
626 (target_remove_watchpoint, target_insert_hw_breakpoint)
627 (target_remove_hw_breakpoint): Delete these macros.
628 (remote_insert_watchpoint, remote_remove_watchpoint)
629 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
630 these declarations.
631
632 2003-08-20 Michael Chastain <mec@shout.net>
633
634 * defs.h (ENUM_BITFIELD): New macro.
635 * symtab.h (ENUM_BITFIELD): Use it.
636 (BYTE_BITFIELD): Remove old macro, which was already disabled.
637
638 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
639
640 * MAINTAINERS (write after approval): Add myself.
641
642 2003-08-18 Andrew Cagney <cagney@redhat.com>
643
644 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
645 * gdbarch.h, gdbarch.c: Re-generate.
646 * infcall.c (call_function_by_hand): Adjust the SP by
647 frame_red_zone_size before allocating any stack space.
648 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
649 * x86-64-tdep.c (x86_64_frame_align): New function.
650 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
651
652 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
653 Remove code adjusting SP so that it skips over the Red Zone.
654
655 2003-08-18 Mark Kettenis <kettenis@gnu.org>
656
657 * NEWS (New native configurations): Mention FreeBSD/amd64.
658
659 2003-08-18 Andrew Cagney <cagney@redhat.com>
660
661 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
662 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
663 "m68k_frame_p".
664 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
665
666 2003-08-18 Mark Kettenis <kettenis@gnu.org>
667
668 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
669
670 2003-08-18 Michal Ludvig <mludvig@suse.cz>
671
672 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
673 Define.
674 * i386-linux-nat.c: Include "linux-nat.h".
675 (child_post_startup_inferior): New function.
676
677 2003-08-18 Mark Kettenis <kettenis@gnu.org>
678
679 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
680 at the start of a frameless function. This probably fixes PR
681 backtrace/1338.
682
683 2003-08-17 Michael Chastain <mec@shout.net>
684
685 * symfile.c (find_sym_fns): Remove special case for apollo target.
686
687 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
688
689 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
690 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
691 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
692 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
693 (linux_supports_tracevforkdone): New function.
694 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
695 TRACEVFORKDONE.
696 (child_follow_fork): Handle vfork.
697 (linux_handle_extended_wait): Likewise. Also handle exec.
698 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
699 * NEWS: Mention fork tracing.
700
701 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
702
703 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
704
705 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
706
707 * Makefile.in (i386-linux-nat.o): Update dependencies.
708 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
709 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
710 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
711 * i386-linux-nat.c: Include "linux-nat.h".
712 (child_post_startup_inferior): New function.
713 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
714 * infptrace.c (kill_inferior): Wrap in #ifdef.
715 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
716 attaching to each LWP.
717 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
718 (init_lin_lwp_ops): Fill in some more operations.
719 * linux-nat.h (linux_enable_event_reporting)
720 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
721 prototypes.
722 * linux-nat.c (linux_enable_event_reporting): New function.
723 (child_post_attach, linux_child_post_startup_inferior)
724 (child_post_startup_inferior, child_follow_fork)
725 (linux_handle_extended_wait, kill_inferior): New functions.
726
727 2003-08-16 Andrew Cagney <cagney@redhat.com>
728
729 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
730 * gdbarch.h, gdbarch.c: Re-generate.
731
732 2003-08-16 Mark Kettenis <kettenis@gnu.org>
733
734 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
735
736 2003-08-16 Andrew Cagney <cagney@redhat.com>
737
738 * NEWS: Mention that "set prompt-escape-char" was deleted.
739 * top.c (get_prompt_1): Delete function.
740 (gdb_prompt_escape):
741 (init_main): Do not clear "gdb_prompt_escape". Delete "set
742 prompt-escape-char" command.
743 (MAX_PROMPT_SIZE): Delete macro.
744 (get_prompt): Simplify, do not call get_prompt_1.
745
746 2003-08-16 Andrew Cagney <cagney@redhat.com>
747
748 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
749 -Werror. -Wformat-nonliteral problems.
750
751 2003-08-15 J. Brobecker <brobecker@gnat.com>
752
753 Further multiarching work mostly for hppa64-*-hpux11:
754 * hppa-tdep.h: New file.
755 * hppa-tdep.c: #include hppa-tdep.c.
756 (hppa32_num_regs): Renamed from hppa_num_regs.
757 (hppa64_num_regs): New constant.
758 (hppa64_call_dummy_breakpoint_offset): New constant.
759 (hppa32_call_dummy_length): New constant.
760 (hppa64_call_dummy_length): New constant.
761 (hppa32_stack_align): Make name 32bit explicit.
762 (hppa32_register_virtual_type): Likewise.
763 (hppa32_extract_return_value): Likewise.
764 (hppa32_use_struct_convention): Likewise.
765 (hppa32_store_return_value): Likewise.
766 (hppa64_register_virtual_type): New function.
767 (hppa64_extract_return_value): New function.
768 (hppa64_use_struct_convention): New function.
769 (hppa64_store_return_value): New function.
770 (hppa_frame_locals_address): Remove declaration, function does
771 not exist anymore.
772 (hppa_register_byte): Add support for PA64 ABI.
773 (hppa_gdbarch_init): Add support for PA64 ABI.
774 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
775 Make name 32bit explicit.
776 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
777 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
778 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
779 (hppa64_hpux_frame_base_before_sigtramp): New function.
780 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
781 * config/pa/tm-hppa64.h: Remove macros that are no longer
782 necessary now that the gdbarch vector is properly setup.
783 Transform some macros into function calls. Some minor cleanup.
784 * config/pa/tm-hppah.h: Update function calls in macros
785 following the function renaming in hppa-hpux-tdep.c.
786 * Makefile.in (hppa_tdep_h): New variable.
787 (hppa-tdep.o): Add dependency over hppa_tdep_h.
788
789 2003-08-14 Michael Snyder <msnyder@redhat.com>
790
791 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
792
793 2003-08-13 J. Brobecker <brobecker@gnat.com>
794
795 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
796 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
797 routine.
798
799 2003-08-13 Michael Snyder <msnyder@redhat.com>
800
801 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
802 (frv_saved_pc_after_call): Use deprecated ftype.
803 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
804 (frv_remote_translate_xfer_address): Remove.
805 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
806
807 2003-08-13 J. Brobecker <brobecker@gnat.com>
808
809 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
810 initialization after the common gdbarch initialization, not before.
811
812 2003-08-13 J. Brobecker <brobecker@gnat.com>
813
814 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
815 (ADDR_BITS_REMOVE): Remove, redundant.
816
817 2003-08-13 J. Brobecker <brobecker@gnat.com>
818
819 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
820 gdbarch method to clear the 2 low bits of text addresses.
821
822 2003-08-12 Andrew Cagney <cagney@redhat.com>
823
824 * Makefile.in (dsrec.o): Update dependencies.
825 * dsrec.c: Include "gdb_assert.h".
826 (make_srec): Use snprintf instead of sprintf, use a literal format
827 string.
828
829 2003-08-12 Andrew Cagney <cagney@redhat.com>
830
831 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
832 FRAME_OBSTACK_ZALLOC.
833
834 2003-08-12 Kevin Buettner <kevinb@redhat.com>
835
836 * i386-tdep.c (i386_gdbarch_init): Enable default support for
837 SSE registers.
838
839 2003-08-10 Mark Kettenis <kettenis@gnu.org>
840
841 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
842 amd64fbsd_sc_reg_offset): Add extern declarations.
843 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
844 declarations.
845
846 2003-08-11 Ben Elliston <bje@wasabisystems.com>
847
848 * MAINTAINERS (write after approval): Update my mail address.
849
850 2003-08-10 Andrew Cagney <cagney@redhat.com>
851
852 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
853
854 2003-08-10 Mark Kettenis <kettenis@gnu.org>
855
856 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
857 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
858 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
859 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
860 i386bsd_sc_reg_offset): Add extern declarations.
861 * i386obsd-nat.c: Include "i386-tdep.h"
862 (_initialize_i386obsd_nat): Remove extern declarations.
863 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
864 declarations.
865 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
866 declarations.
867
868 * i386-tdep.c (i386_register_to_value): Use get_frame_register
869 instead of frame_read_register.
870 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
871 instead of frame_read_register. Use I386_ESP_REGNUM instead of
872 SP_REGNUM.
873 (i386_frame_prev_register): Use frame_unwind_register_unsigned
874 instead of frame_unwind_unsigned_register. Use
875 I386_EFLAGS_REGISTER instead of PS_REGNUM.
876 (i386_get_longjmp_target): Use regcache_read_unsigned_register
877 instead of read_register. Use builtin_type_void_data_ptr instead
878 of builtin_type_void_func_ptr when extracting the address of the
879 jmp_buf.
880 (i386_extract_return_value, i386_store_return_value,
881 i386_pseudo_register_read, i386_pseudo_register_write): Use
882 register_size instead REGISTER_RAW_SIZE.
883
884 2003-08-10 Andrew Cagney <cagney@redhat.com>
885
886 * infcall.c (call_function_by_hand): Use xstrprintf instead of
887 sprintf. Make "name" constant.
888
889 2003-08-10 Mark Kettenis <kettenis@gnu.org>
890
891 * i387-tdep.c (i387_register_to_value): Use get_frame_register
892 instead of frame_read_register.
893 (i387_print_float_info): Use get_frame_register and
894 get_frame_register_unsigned instead of frame_register_read.
895
896 * i386fbsd-nat.c: Include "i386-tdep.h".
897 (child_resume): Make `eflags' an ULONGEST. Use
898 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
899 instead of register_read and register_write.
900
901 * i386bsd-nat.c (fetch_inferior_registers,
902 store_inferior_registers): Don't use && at the end of a line.
903 (_initialize_i386bsd_nat): Fix typo.
904
905 * frame.c (_initialize_frame): Add missing backslash.
906
907 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
908 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
909 and supply_register instead of manipulating the register buffer
910 directly.
911
912 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
913 * config/i386/nm-i386sol2.h
914 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
915
916 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
917 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
918 instructions that GCC likes to mingle into the prologue. Fixes
919 gdb/1253 and gdb/1255.
920
921 2003-08-09 Andrew Cagney <cagney@redhat.com>
922
923 Fix GDB PR cli/926.
924 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
925 * command.h (add_setshow_uinteger_cmd): Declare.
926 * frame.c (set_backtrace_cmd): New function.
927 (show_backtrace_cmd): New function.
928 * frame.c (_initialize_frame): Replace "set/show
929 backtrace-below-main" with "set/show backtrace past-main". Add
930 command "set/show backtrace limit".
931 (backtrace_past_main): Rename "backtrace_below_main".
932 (backtrace_limit): New variable.
933 (get_prev_frame): Update. Check the backtrace_limit.
934
935 2003-08-09 Andrew Cagney <cagney@redhat.com>
936
937 * defs.h (xstrprintf): Declare.
938 * utils.c (xstrprintf): New function.
939 * breakpoint.c (insert_breakpoints): Replace sprintf and
940 non-literal format strings, with xstrprintf and cleanups.
941 (delete_breakpoint,breakpoint_re_set): Ditto.
942 (commands_command, insert_breakpoints): Ditto.
943 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
944 (break_at_finish_command_1): Ditto.
945
946 2003-08-09 Andrew Cagney <cagney@redhat.com>
947
948 * MAINTAINERS (language support): List Adam Fedor as Objective C
949 maintainer.
950
951 2003-08-08 J. Brobecker <brobecker@gnat.com>
952
953 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
954 are now multiarched.
955
956 2003-08-08 J. Brobecker <brobecker@gnat.com>
957
958 * config/pa/tm-hppa64.h: Remove lots of macros that are no
959 longer necessary now that hppa64 is partially multiarch'ed.
960
961 2003-08-08 Andrew Cagney <cagney@redhat.com>
962
963 * interps.c (interp_set): Check for a NULL "old_interp".
964
965 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
966
967 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
968 (install-only): Support DESTDIR.
969 (uninstall): Likewise.
970 (install-gdbtk): Likewise.
971
972 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
973
974 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
975 contains something meaningful at all times.
976
977 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
978
979 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
980
981 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
982
983 * MAINTAINERS (write after approval): Added self.
984
985 2003-08-07 Andrew Cagney <cagney@redhat.com>
986
987 * inferior.h (AT_SYMBOL): Define.
988 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
989 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
990 * mips-tdep.c (mips_call_dummy_address): Delete function.
991 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
992 set call_dummy_address.
993
994 2003-08-07 Andrew Cagney <cagney@redhat.com>
995
996 * language.c (op_error): Delete function.
997 (binop_type_check): Delete function.
998 * language.h (type_op_error, range_op_error): Delete macros.
999 (op_error): Delete declaration.
1000
1001 2003-08-07 Andrew Cagney <cagney@redhat.com>
1002
1003 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1004
1005 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1006
1007 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1008 (x86_64_push_arguments): Skip the red zone.
1009
1010 2003-08-05 Andrew Cagney <cagney@redhat.com>
1011
1012 * reggroups.c (reggroup_next): Check for the final entry.
1013
1014 2003-08-04 Andrew Cagney <cagney@redhat.com>
1015
1016 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1017 * cli/cli-script.c (define_command): Call query directly, instead
1018 of passing it a buffer.
1019 * ocd.c (ocd_error): Pass error a constant format string.
1020 * remote-mips.c (mips_error): Use fputs_filtered.
1021
1022 * solib-svr4.c (_initialize_svr4_solib): Update
1023 register_gdbarch_data call.
1024 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1025
1026 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1027 (register_gdbarch_data): Delete "free" parameter. Update
1028 comments.
1029 * gdbarch.h, gdbarch.c: Re-generate.
1030 * reggroups.c (_initialize_reggroup): Update.
1031 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1032 * frame-base.c (_initialize_frame_base): Update.
1033 * frame-unwind.c (_initialize_frame_unwind): Update.
1034 * user-regs.c (_initialize_user_regs): Update.
1035 * remote.c (_initialize_remote): Update.
1036 * regcache.c (_initialize_regcache): Update.
1037
1038 * regcache.c (xfree_regcache_descr): Delete function.
1039 (_initialize_regcache): Update call to register_gdbarch_data.
1040 (init_regcache_descr, init_legacy_regcache_descr): Use
1041 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1042
1043 * remote.c (free_remote_state): Delete function.
1044 (_initialize_remote): Update register_gdbarch_data.
1045 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1046 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1047
1048 2003-08-04 Andrew Cagney <cagney@redhat.com>
1049
1050 * reggroups.c (struct reggroup_el): Define.
1051 (struct reggroups): Delete field "nr_group". Replace array
1052 "group" with a "first" to "last" linked list.
1053 (reggroups_init): Update. Allocate using gdbarch's obstack.
1054 (reggroups_free): Delete function.
1055 (add_group): Update. Add "el" parameter.
1056 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1057 (default_groups): Update.
1058 (reggroup_next): Replace reggroups.
1059 (reggroups_dump): Update.
1060 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1061 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1062 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1063
1064 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1065
1066 * Makefile.in (tui-interp.o): Update dependencies.
1067
1068 2003-08-04 David Carlton <carlton@kealia.com>
1069
1070 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1071 to internal_error call.
1072 * source.c (forward_search_command): Add "%s" format argument.
1073 (reverse_search_command): Ditto.
1074 * top.c (quit_confirm): Ditto.
1075 * cli/cli-setshow.c (do_setshow_command): Ditto.
1076 * cp-valprint.c (cp_print_class_method): Replace
1077 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1078 (cp_print_class_member): Ditto.
1079 * event-top.c (command_line_handler): Ditto.
1080 * linux-proc.c (linux_info_proc_cmd): Ditto.
1081 * p-typeprint.c (pascal_type_print_base): Ditto.
1082 * p-valprint.c (pascal_object_print_class_method): Ditto.
1083 (pascal_object_print_class_member): Ditto.
1084 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1085 * remote.c (remote_cisco_section_offsets): Ditto.
1086 * top.c (command_line_input): Ditto.
1087 * utils.c (vwarning,error_stream,quit): Ditto.
1088 * valprint.c (print_floating,print_binary_chars)
1089 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1090
1091 2003-08-04 Andrew Cagney <cagney@redhat.com>
1092
1093 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1094
1095 2003-08-02 Andrew Cagney <cagney@redhat.com>
1096
1097 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1098 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1099 amd64fbsd-nat.c.
1100
1101 2003-08-02 Andrew Cagney <cagney@redhat.com>
1102
1103 * Makefile.in: Update all dependencies and definitions.
1104
1105 2003-08-02 Adam Fedor <fedor@gnu.org>
1106
1107 * linespec.c (is_objc_method_format): New function
1108 (decode_line_1, locate_first_half): Use it.
1109 Fixes PR objc/1298
1110
1111 2003-08-01 Andrew Cagney <cagney@redhat.com>
1112
1113 * NEWS: Mention that m32r is multi-arch.
1114 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1115 * configure.tgt: Recognize m32r-*-*.
1116 * config/m32r/tm-m32r.h: Delete file.
1117 * config/m32r/m32r.mt: New file.
1118 * m32r-rom.c (m32r_upload_command): Use hostent only when
1119 gethostname succeeds, in order to avoid a compilation
1120 warning.
1121 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1122 compiler warning.
1123
1124 2003-08-01 Michael Snyder <msnyder@redhat.com>
1125
1126 * sh-tdep.c (sh_frame_align): New gdbarch method.
1127 (sh_gdbarch_init): Set up frame_align method.
1128
1129 2003-07-31 Michael Snyder <msnyder@redhat.com>
1130
1131 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1132 which is already covered by the new frames infrastructure.
1133
1134 2003-07-31 Andrew Cagney <cagney@redhat.com>
1135
1136 * user-regs.c (struct user_reg): Add "next" link.
1137 (struct user_regs): Replace "user" with "first" and "last" links.
1138 (append_user_reg): Add pre-allocated "reg" parameter.
1139 (builtin_user_regs): Provide initial value for "last".
1140 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1141 (user_regs_init): Allocate memory from the gdbarch obstack.
1142 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1143 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1144 linked list.
1145 (usernum_to_user_reg): New function.
1146 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1147 (value_of_user_reg): Use usernum_to_user_reg.
1148 (user_regs_free): Delete function.
1149 (_initialize_user_regs): Update register_gdbarch_data call.
1150
1151 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1152
1153 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1154
1155 2003-07-30 Michael Snyder <msnyder@redhat.com>
1156
1157 * value.h (value_being_returned): Add a struct_addr argument.
1158 * infcall.c (call_function_by_hand): Pass struct_addr to
1159 value_being_returned.
1160 * infcmd.c (print_return_value): Pass zero as struct_addr.
1161 * values.c (value_being_returned): If struct_addr is passed,
1162 use it instead of trying to recover it from the inferior.
1163
1164 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1165
1166 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1167 the prologue analyzer won't need to attempt to extract the pc
1168 value from the woefully incomplete dummy frame.
1169 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1170 possible. Disable code which modifies the frame.
1171
1172 2003-07-28 Andrew Cagney <cagney@redhat.com>
1173
1174 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1175 to level 2.
1176 (annotate_breakpoints_table, annotate_record): Ditto.
1177 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1178 (annotate_field_name_end, annotate_field_value): Ditto.
1179 (annotate_field_end, annotate_frame_source_begin): Ditto.
1180 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1181 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1182 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1183 (annotate_frame_address_end, annotate_frame_address): Ditto.
1184 (annotate_frame_args, annotate_frame_end): Ditto.
1185 (annotate_frame_where, annotate_arg_begin): Ditto.
1186 (annotate_arg_name_end, annotate_arg_value): Ditto.
1187 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1188 (annotate_function_call, annotate_signal_name): Ditto.
1189 (annotate_signal_string, annotate_signal_name_end): Ditto.
1190 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1191 (annotate_value_begin, annotate_value_history_value): Ditto.
1192 (annotate_value_history_end, annotate_value_end): Ditto.
1193 (annotate_display_begin, annotate_display_number_end): Ditto.
1194 (annotate_display_format, annotate_display_expression): Ditto.
1195 (annotate_display_expression_end, annotate_display_value): Ditto.
1196 (annotate_display_end, annotate_array_section_begin): Ditto.
1197 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1198 (annotate_elt, annotate_array_section_end): Ditto.
1199
1200 2003-07-28 Andrew Cagney <cagney@redhat.com>
1201
1202 * regcache.c (struct regcache_descr): Update comments on
1203 nr_raw_registers.
1204 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1205 sizeof_raw_register_valid_p.
1206 (init_regcache_descr): Set nr_raw_registers and
1207 sizeof_raw_register_valid_p before calling
1208 init_legacy_regcache_descr.
1209
1210 2003-07-28 Andrew Cagney <cagney@redhat.com>
1211
1212 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1213 MOD NUM_REGS.
1214
1215 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1216
1217 * thread.c (info_threads_command): Use get_selected_frame ().
1218 Check that there is at least one non-sentinel frame.
1219
1220 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1221
1222 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1223 (m68hc11_pop_frame): Remove.
1224 (m68hc11_frame_saved_pc): Remove.
1225 (m68hc11_frame_chain): Remove.
1226 (m68hc11_frame_init_saved_regs): Remove.
1227 (m68hc11_init_extra_frame_info): Remove.
1228 (m68hc11_store_struct_return): Remove.
1229 (m68hc11_saved_pc_after_call): Remove.
1230
1231 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1232
1233 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1234 frame unwind information.
1235 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1236 and adapted for frame unwinding.
1237 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1238 (m68hc11_unwind_pc): New function.
1239 (m68hc11_frame_unwind_cache): New function to analyze frames.
1240 (m68hc11_frame_this_id): New function to create new frame struct.
1241 (m68hc11_frame_prev_register): New function to unwind a register from
1242 the frame.
1243 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1244 (m68hc11_frame_p): New function for the above.
1245 (m68hc11_frame_base_address): New function to return fp of frame.
1246 (m68hc11_frame_args_address): Update for frame.
1247 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1248 (m68hc11_unwind_sp): New function.
1249 (m68hc11_unwind_dummy_id): New function.
1250 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1251 calls.
1252
1253 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1254
1255 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1256 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1257 when we are beyond the current pc.
1258
1259 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1260
1261 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1262 from m68hc11_push_arguments.
1263 (m68hc11_push_arguments): Remove.
1264 (m68hc11_push_return_address): Remove.
1265 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1266 handlers; remove deprecated_extra_stack_alignment_needed.
1267
1268 2003-07-27 Andrew Cagney <cagney@redhat.com>
1269
1270 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1271 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1272 REAL_PC and not the pointer.
1273 * hppa-hpux-tdep.c: Include frame.h
1274
1275 2003-07-27 Andrew Cagney <cagney@redhat.com>
1276
1277 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1278 GDB_MULTI_ACH_PARTIAL.
1279
1280 2003-07-27 Andrew Cagney <cagney@redhat.com>
1281
1282 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1283 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1284 operator at start and not end of line.
1285 (decode_prologue): Ditto.
1286 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1287 frame_unwind_register_unsigned instead of
1288 frame_unwind_unsigned_register.
1289 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1290 read_register.
1291 (m32r_push_dummy_call): Use register_size instead of
1292 REGISTER_RAW_SIZE.
1293 (m32r_frame_sniffer): Replace m32r_frame_p.
1294 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1295 * m32r-rom.c (report_transfer_performance): Delete extern
1296 declaration.
1297 (m32r_load, m32r_upload_command): Use print_transfer_performance
1298 instead of report_transfer_performance.
1299 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1300 / add_show_from_set.
1301
1302 2003-07-26 Andrew Cagney <cagney@redhat.com>
1303
1304 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1305 store_return_value and extract_struct_value_address.
1306
1307 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1308
1309 PR c++/1267
1310 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1311 NULL, default to the section containing PC.
1312
1313 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1314
1315 * NEWS: Mention "regs" deprecated for m68hc11 too.
1316
1317 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1318 (m68hc11_print_register): New function to print out one register.
1319 (m68hc11_print_registers_info): New function to print registers.
1320 (show_regs): Deprecate and use the above.
1321 (m68hc11_gdbarch_init): Install the print_registers_info.
1322
1323 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1324
1325 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1326 that we have a SIGTRAP before returning non-zero.
1327
1328 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1329 Elena Zannoni <ezannoni@redhat.com>
1330
1331 * linespec.c (decode_line_2): Avoid crash if
1332 find_function_start_sal() returns empty record.
1333
1334 2003-07-23 Andreas Schwab <schwab@suse.de>
1335
1336 * ia64-tdep.c (ia64_print_insn): New function.
1337 (ia64_gdbarch_init): Set print_insn to it.
1338 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1339 deprecated_tm_print_insn_info.
1340
1341 2003-07-22 Michael Snyder <msnyder@redhat.com>
1342
1343 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1344 handle 8-bit returns (long long).
1345 (h8300h_extract_return_value): Ditto.
1346 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1347
1348 2003-07-22 Andrew Cagney <cagney@redhat.com>
1349
1350 * gdbarch.c Include "gdb_obstack.h".
1351 (struct gdbarch): Add an "obstack".
1352 (alloc_gdbarch_data): Allocate the gdbarch data using
1353 GDBARCH_OBSTACK_CALLOC.
1354 (free_gdbarch_data): Delete function.
1355 (gdbarch_obstack_zalloc): New function.
1356 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1357 Assert that the architecture is not initialized.
1358 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1359 vector from the obstack.
1360 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1361 architecture obstack.
1362 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1363 (set_gdbarch_data): Assert that the data is not initialized.
1364 (struct gdbarch_data): Delete member "free".
1365 (register_gdbarch_data): Do not initialize "free".
1366 * gdbarch.h, gdbarch.c: Re-generate.
1367
1368 2003-07-22 Andrew Cagney <cagney@redhat.com>
1369
1370 * configure.in (build_warnings): Add -Wformat-nonliteral.
1371 * configure: Re-generate.
1372
1373 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1374
1375 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1376
1377 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1378
1379 * findvar.c (read_var_value): Remove case for thread local storage
1380 variables. It is now entirely handled by the dwarf2 location
1381 expression code.
1382 * printcmd.c (address_info): Ditto.
1383 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1384 enumeration value.
1385 (struct symbol): Remove objfile field, which was used by
1386 LOC_THREAD_LOCAL_STATIC only.
1387 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1388 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1389 usage of objfile pointer.
1390 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1391 thread local variables.
1392 Add include of objfiles.h.
1393 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1394 storage variables.
1395 * Makefile.in (dwarf2loc.o): Update dependencies.
1396
1397 2003-07-22 Andrew Cagney <cagney@redhat.com>
1398
1399 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1400 get_frame_base.
1401 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1402 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1403 (struct value): Add opaque declaration.
1404 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1405
1406 2003-07-21 Andrew Cagney <cagney@redhat.com>
1407
1408 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1409 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1410
1411 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1412
1413 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1414 regcache_cooked_read_unsigned instead of read_register.
1415 (m68hc11_saved_pc_after_call): Likewise.
1416 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1417 instead of write_register.
1418 (m68hc11_register_type): New function.
1419 (m68hc11_register_virtual_type): Remove.
1420 (m68hc11_store_return_value): Convert to use the regcache.
1421 (m68hc11_extract_struct_value_address): Likewise.
1422 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1423 m68hc11_register_type; undeprecate store_return_value and
1424 extract_struct_value_address.
1425
1426 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1427
1428 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1429 and translate to use regcache.
1430 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1431
1432 2003-07-18 Andrew Cagney <cagney@redhat.com>
1433
1434 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1435 * gdbarch.h, gdbarch.c: Re-generate.
1436 * i386-tdep.c (i386_gdbarch_init): Do not set
1437 DWARF2_BUILD_FRAME_INFO.
1438 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1439 unconditionally.
1440 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1441 DWARF2_BUILD_FRAME_INFO.
1442
1443 2003-07-18 Andrew Cagney <cagney@redhat.com>
1444
1445 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1446 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1447
1448 2003-07-18 Andrew Cagney <cagney@redhat.com>
1449
1450 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1451 frame_unwind_address_in_block, instead of frame_pc_unwind.
1452 (dwarf2_frame_cache): Ditto.
1453
1454 2003-07-18 Andrew Cagney <cagney@redhat.com>
1455
1456 * user-regs.h (struct gdbarch): Declare opaque.
1457 * ui-out.h (struct ui_file): Declare opaque.
1458 * dwarf2-frame.h (struct frame_info): Declare opaque.
1459
1460 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1461
1462 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1463 #include "...".
1464 (procfs_meminfo): Change strerror to safe_strerror.
1465 (procfs_can_run): Remove K&R badness.
1466
1467 2003-07-17 Michael Snyder <msnyder@redhat.com>
1468
1469 * remote-sim.c: Comment typo fix.
1470
1471 2003-07-17 Andrew Cagney <cagney@redhat.com>
1472
1473 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1474 configure.
1475 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1476 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1477 GDB_MULTI_ARCH_PARTIAL.
1478
1479 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1480
1481 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1482 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1483 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1484
1485 2003-07-16 Theodore A. Roth <troth@openavr.org>
1486
1487 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1488 found.
1489 (avr_frame_unwind_cache): Don't unwind FP for main.
1490 Update a comment.
1491 Save the computed prev_sp.
1492 (avr_saved_regs_unwinder): Remove function.
1493 (avr_frame_prev_register): Use PC unwind logic from
1494 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1495
1496 2003-07-16 Andrew Cagney <cagney@redhat.com>
1497
1498 * frame-base.h (frame_base_p_ftype): Delete definition.
1499 (frame_base_append_predicate): Delete declaration.
1500 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1501 (frame_unwind_append_predicate): Delete declaration.
1502 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1503 (append_predicate): Delete parameter "p".
1504 (frame_unwind_append_predicate): Delete function.
1505 (frame_unwind_append_sniffer): Update call to append_predicate.
1506 (frame_unwind_free): Delete function.
1507 (_initialize_frame_unwind): Pass NULL as "free" to
1508 register_gdbarch_data.
1509 (frame_unwind_init): Append the dummy_frame_sniffer.
1510 (frame_unwind_find_by_frame): Simplify.
1511 * frame-base.c (struct frame_base_table): Delete field "p".
1512 (append_predicate): Delete parameter "p".
1513 (frame_base_append_predicate): Delete function.
1514 (frame_base_append_sniffer): Update call to append_predicate.
1515 (frame_base_free): Delete function.
1516 (frame_base_find_by_frame): Simplify.
1517 (_initialize_frame_base): Pass NULL as "free" to
1518 register_gdbarch_data.
1519 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1520 (x86_64_sigtramp_frame_sniffer): Replace
1521 "x86_64_sigtramp_frame_p".
1522 (x86_64_init_abi): Set the frame unwind sniffers.
1523 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1524 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1525 (m68k_gdbarch_init): Set the frame unwind sniffers.
1526 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1527 "i386_sigtramp_frame_p".
1528 (i386_frame_sniffer): Replace "i386_frame_p".
1529 (i386_gdbarch_init): Set the frame unwind sniffers.
1530 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1531 (avr_gdbarch_init): Set the frame unwind sniffers.
1532 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1533 "alpha_sigtramp_frame_p"
1534 (alpha_heuristic_frame_sniffer): Replace
1535 "alpha_heuristic_frame_p".
1536 (alpha_gdbarch_init): Set the frame unwind sniffers.
1537 (alpha_dwarf2_init_abi): Ditto.
1538 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1539 "alpha_debug_frame_p".
1540 (alpha_mdebug_frame_base_sniffer): Replace
1541 "alpha_mdebug_frame_base_p".
1542 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1543 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1544 (d10v_gdbarch_init): Set the frame unwind sniffer.
1545 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1546 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1547 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1548 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1549 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1550 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1551
1552 2003-07-16 Michael Snyder <msnyder@redhat.com>
1553
1554 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1555 should go thru sh_dsp_register_sim_regno, else the dsp regs
1556 will not get the right values.
1557
1558 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1559
1560 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1561 deprecated_store_floating by call to store_typed_floating.
1562 (sh_sh4_register_convert_to_raw): Substitute call to
1563 deprecated_extract_floating by call to extract_typed_floating.
1564
1565 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1566
1567 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1568
1569 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1570
1571 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1572 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1573 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1574 as possible.
1575 (do_pseudo_register): Remove.
1576 (sh_push_dummy_code): New function.
1577 (sh64_store_struct_return): Rename from sh_store_struct_return.
1578 Only called for sh64 now.
1579 (sh_extract_struct_value_address): Regcache'ify.
1580 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1581 and accomodate new tasks.
1582 (sh64_push_return_address): Rename from sh_push_return_address.
1583 Only called for sh64 now.
1584 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1585 Regcache'ify.
1586 (sh3e_sh4_extract_return_value): Regcache'ify.
1587 (sh_default_store_return_value): Ditto.
1588 (sh3e_sh4_store_return_value): Ditto.
1589 (sh_default_register_byte): Remove.
1590 (sh_sh4_register_byte): Remove.
1591 (sh_default_register_raw_size): Remove.
1592 (sh_sh4_register_raw_size): Remove.
1593 (sh_register_virtual_size): Remove.
1594 (sh_sh3e_register_virtual_type): Remove.
1595 (sh_sh3e_register_type): New function.
1596 (sh_sh4_register_virtual_type): Remove.
1597 (sh_sh4_register_type): New function.
1598 (sh_default_register_virtual_type): Remove.
1599 (sh_default_register_type): New function.
1600 (do_fv_register_info): Add parameters to accomodate call from
1601 sh_print_registers_info.
1602 (do_dr_register_info): Ditto.
1603 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1604 Add parameters to accomodate call from sh_print_registers_info.
1605 (sh_do_fp_register): Ditto.
1606 (sh64_do_pseudo_register): Call do_dr_register_info,
1607 do_fv_register_info and sh_do_fp_register with default parameters.
1608 (sh_do_register): Add parameters to accomodate call from
1609 sh_print_registers_info.
1610 (sh_print_register): Ditto.
1611 (sh_print_registers_info): Rename from sh_do_registers_info.
1612 Add parameters to be used as gdbarch_print_registers_info
1613 implementation. Accomodate removed do_pseudo_register function
1614 pointer.
1615 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1616 function pointer. Call sh_print_register with default parameters.
1617 (sh64_do_registers_info): Call sh_print_registers_info instead of
1618 sh_do_registers_info.
1619 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1620 detection of deprecated vs. non-deprecated functionality.
1621 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1622 function pointer assignments by direct function calls.
1623
1624 2003-07-15 Andrew Cagney <cagney@redhat.com>
1625
1626 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1627 (frame_register_unwind, create_new_frame): Ditto.
1628 (legacy_get_prev_frame, get_frame_type): Ditto.
1629 (get_frame_base_address): Use frame_base_find_by_frame.
1630 (get_frame_locals_address): Use frame_base_find_by_frame.
1631 (get_frame_args_address): Use frame_base_find_by_frame.
1632 * frame-base.h (frame_base_sniffer_ftype): Declare.
1633 (frame_base_append_sniffer): Declare.
1634 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1635 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1636 (frame_base_append_sniffer): New function.
1637 (frame_base_append_predicate): Add a NULL sniffer.
1638 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1639 (struct frame_base_table): Add "sniffer".
1640 (frame_base_free): Free the "sniffer" table.
1641 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1642 (frame_unwind_append_sniffer): Declare.
1643 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1644 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1645 (struct frame_unwind_table): Add "sniffer", delete "middle".
1646 (append_predicate): Add "sniffer" parameter, append the sniffer.
1647 (frame_unwind_init): Update append_predicate call.
1648 (frame_unwind_append_sniffer): New function.
1649 (frame_unwind_append_predicate): Update append_predicate call.
1650 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1651
1652 2003-07-15 Andrew Cagney <cagney@redhat.com>
1653
1654 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1655 before code inhibiting repeated unwind attempts. Add to
1656 commentary on that test's problems.
1657 * blockframe.c (inside_main_func): Look for "main" in the minimal
1658 symbol table.
1659 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1660 identical.
1661
1662 2003-07-15 Andrew Cagney <cagney@redhat.com>
1663
1664 * complaints.c (struct explanation): Define.
1665 (struct complaints): Change type of "explanation" to "struct
1666 explanation".
1667 (symfile_explanations): Convert to a "struct explanation" table.
1668 (vcomplaint): Update.
1669
1670 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1671
1672 * x86-64-linux-nat.c (regmap): Removed.
1673 (supply_gregset, fill_gregset): Call
1674 x86_64_linux_(fill,supply)_gregset functions.
1675 * x86-64-linux-tdep.c (USER_*): New defines.
1676 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1677 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1678 New functions.
1679 (fetch_core_registers): Ditto.
1680 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1681 * x86-64-linux-tdep.h: New file.
1682 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1683 and core-regset.o.
1684 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1685
1686 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1687
1688 * x86-64-tdep.c (x86_64_store_return_value): Use
1689 regcache_cooked_write_part instead of regcache_cooked_write.
1690
1691 * configure.host: Add x86_64-*-freebsd*.
1692 * configure.tgt: Add x86_64-*-freebsd*.
1693 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1694 * amd64fbsd-nat.c: New file.
1695 * amd64fbsd-tdep.c: New file.
1696 * config/i386/nm-fbsd64.h: New file.
1697 * config/i386/fbsd64.mh: New file.
1698 * config/i386/fbsd64.mt: New file.
1699
1700 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1701
1702 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1703 `sc_regs_offset' and `sc_fpregs_offset'.
1704 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1705 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1706 (alpha_sigtramp_register_address): Rewrite to use new members of
1707 `struct gdbarch_tdep'.
1708 (alpha_gdbarch_init): Initialize new members of struct
1709 gdbarch_tdep'.
1710 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1711 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1712 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1713 (alphafbsd_pc_in_sigtramp): Implement.
1714 (alphafbsd_sigtramp_offset): New function.
1715 (alphafbsd_sigcontext_addr): New function.
1716 (alphafbsd_init_abi): Initialize signal trampoline related members
1717 of `struct gdbarch_tdep'.
1718 (_initialize_alphafbsd_tdep): Add prototype.
1719
1720 2003-07-11 Theodore A. Roth <troth@openavr.org>
1721
1722 * Makefile.in (install-only): Quote sed expression when generating
1723 transformed_name.
1724
1725 2003-07-11 Richard Henderson <rth@redhat.com>
1726
1727 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1728 * dwarf2-frame.c: Include complaints.h.
1729 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1730 variable initialization; return NULL on error.
1731 (decode_frame_entry): New.
1732
1733 2003-07-11 Andrew Cagney <cagney@redhat.com>
1734
1735 * frame.h (frame_address_in_block): Delete declaration.
1736 * blockframe.c (frame_address_in_block): Delete function.
1737 (get_frame_block): Use get_frame_address_in_block.
1738 (block_innermost_frame): Ditto.
1739 * stack.c (print_frame, backtrace_command_1): Ditto.
1740
1741 * frame.h (get_frame_address_in_block): Declare.
1742 (frame_unwind_address_in_block): Declare.
1743 * frame.c (frame_unwind_address_in_block): New function.
1744 (get_frame_address_in_block): New function.
1745
1746 2003-07-10 Andrew Cagney <cagney@redhat.com>
1747
1748 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1749 pre-default. Note: re-generate has no effect.
1750
1751 2003-07-10 Andrew Cagney <cagney@redhat.com>
1752
1753 * gdbarch.sh: When a variable, but not a function, compare against
1754 0. Fix problem in previous patch.
1755 * gdbarch.c: Re-generate.
1756
1757 2003-07-10 Andrew Cagney <cagney@redhat.com>
1758
1759 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1760 functions against NULL, not 0.
1761 * gdbarch.c: Re-generate.
1762
1763 2003-07-10 Fred Fish <fnf@ninemoons.com>
1764
1765 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1766 null string instead of a null pointer.
1767 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1768
1769 2003-07-09 Michael Snyder <msnyder@redhat.com>
1770
1771 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1772
1773 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1774
1775 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1776 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1777 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1778 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1779 * x86-64-tdep.c: ... from here.
1780
1781 2003-07-09 Andreas Schwab <schwab@suse.de>
1782
1783 * m68k-tdep.h (enum struct_return): Define.
1784 (struct gdbarch_tdep): Add struct_return.
1785 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1786 bytes are padded to the right, not to the left. Pass struct value
1787 address in register %a1, not on stack.
1788 (m68k_use_struct_convention): New function.
1789 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1790 struct_return in tdep to pcc_struct_return.
1791 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1792 reg_struct_return.
1793
1794 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1795
1796 * somread.c (som_symfile_offsets): Fix compilation error.
1797
1798 2003-07-09 Andrew Cagney <cagney@redhat.com>
1799
1800 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1801 Add comments about the checks.
1802
1803 2003-07-08 Andrew Cagney <cagney@redhat.com>
1804
1805 * Makefile.in: Make dependency section headers consistent.
1806 (config_h): Move to $BUILD headers section.
1807 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1808 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1809 (ada-exp.tab.c): Move to YACC/LEX section.
1810 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1811 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1812
1813 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1814
1815 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1816 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1817 of strerror with safe_strerror, use ISO C function definitions,
1818 and replace instances of sprintf with snprintf.
1819
1820 2003-07-07 Andrew Cagney <cagney@redhat.com>
1821
1822 * frame.c (get_prev_frame): Enable check for identical frames.
1823 Update comments. Update error messages.
1824
1825 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1826
1827 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1828
1829 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1830
1831 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1832 sort_symtab_syms, no longer necessary.
1833
1834 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1835
1836 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1837
1838 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1839
1840 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1841 (mips_register_byte): Likewise.
1842
1843 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1844
1845 * Makefile.in (sparc_tdep_h): New.
1846 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1847 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1848 * sparc-linux-nat.c: Include "sparc-tdep.h".
1849 * sparc-nat.c: Likewise.
1850 * sparc-tdep.c: Likewise.
1851 * sparc64nbsd-nat.c: Likewise.
1852 * sparcnbsd-nat.c: Likewise.
1853 * sparcnbsd-tdep.c: Likewise.
1854 * sparc-tdep.h: New file.
1855 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1856 and sparc_npc_regnum.
1857
1858 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1859
1860 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1861 (mips_linux_cannot_store_register): List supported instead of
1862 unsupported registers.
1863
1864 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1865
1866 * disasm.c (dump_insns): Separate instructions from addresses.
1867
1868 2003-07-07 Andreas Schwab <schwab@suse.de>
1869
1870 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1871 dependencies.
1872 * m68k-tdep.c (NUM_FREGS): Delete.
1873 (SIG_PC_FP_OFFSET): Delete.
1874 (TARGET_M68K): Delete.
1875 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1876 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1877 P_MOVEL_SP, P_MOVEML_SP): Define.
1878 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1879 P_TRAP): Delete.
1880 (m68k_register_raw_size): Delete.
1881 (m68k_register_virtual_size): Delete.
1882 (m68k_register_type): Renamed from m68k_register_virtual_type and
1883 add gdbarch argument.
1884 (m68k_store_struct_return): Delete.
1885 (m68k_deprecated_extract_return_value): Delete.
1886 (m68k_deprecated_extract_struct_value_address): Delete.
1887 (m68k_frame_chain): Delete.
1888 (m68k_frame_saved_pc): Delete.
1889 (m68k_fix_call_dummy): Delete.
1890 (m68k_push_dummy_frame): Delete.
1891 (m68k_pop_frame): Delete.
1892 (m68k_extract_return_value): New function.
1893 (m68k_store_return_value): Rewrite using regcache.
1894 (m68k_extract_struct_value_address): Rewrite using regcache.
1895 (m68k_push_dummy_call): New function.
1896 (struct m68k_frame_cache): Define.
1897 (m68k_alloc_frame_cache): New function.
1898 (m68k_analyze_frame_setup): New function.
1899 (m68k_analyze_register_saves): New function.
1900 (m68k_analyze_prologue): New function.
1901 (m68k_skip_prologue): Rewrite using above functions.
1902 (m68k_unwind_pc): New function.
1903 (m68k_frame_cache): New function.
1904 (m68k_frame_this_id): New function.
1905 (m68k_frame_prev_register): New function.
1906 (m68k_frame_unwind): New variable.
1907 (m68k_frame_p): New function.
1908 (m68k_sigtramp_frame_cache): New function.
1909 (m68k_sigtramp_frame_this_id): New function.
1910 (m68k_sigtramp_frame_prev_register): New function.
1911 (m68k_sigtramp_frame_unwind): New variable.
1912 (m68k_sigtramp_frame_p): New function.
1913 (m68k_frame_base_address): New function.
1914 (m68k_frame_base): New function.
1915 (m68k_unwind_dummy_id): New function.
1916 (fill_gregset): Use regcache_collect.
1917 (fill_fpregset): Likewise.
1918 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1919 defined.
1920 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1921 deprecated_init_frame_pc, deprecated_store_struct_return,
1922 deprecated_extract_return_value, deprecated_store_return_value,
1923 deprecated_frame_chain, deprecated_frame_saved_pc,
1924 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1925 deprecated_register_virtual_size,
1926 deprecated_max_register_raw_size,
1927 deprecated_max_register_virtual_size,
1928 deprecated_register_virtual_type, deprecated_register_size,
1929 deprecated_register_byte, deprecated_register_bytes,
1930 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1931 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1932 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1933 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1934 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1935 deprecated_push_dummy_frame, deprecated_pop_frame,
1936 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1937 only if SYSCALL_TRAP is defined. Set extract_return_value,
1938 store_return_value, extract_struct_value_address, register_type,
1939 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1940 predicates.
1941 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1942 M68K_MAX_REGISTER_SIZE): Define.
1943 (struct m68k_sigtramp_info): Define.
1944 (struct gdbarch_tdep): Add get_sigtramp_info.
1945 * m68klinux-nat.c (fetch_register): Use register_size instead of
1946 REGISTER_RAW_SIZE. Don't put assignment in if.
1947 (store_register): Likewise.
1948 (fetch_inferior_registers): Likewise.
1949 (store_inferior_registers): Likewise.
1950 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1951 (m68k_linux_frame_saved_pc): Delete.
1952 (m68k_linux_sigcontext_reg_offset,
1953 m68k_linux_ucontext_reg_offset): Define.
1954 (m68k_linux_get_sigtramp_info): New function.
1955 (m68k_linux_extract_return_value): Rewrite using regcache.
1956 (m68k_linux_store_return_value): Likewise.
1957 (m68k_linux_extract_struct_value_address): Likewise.
1958 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1959 Don't set deprecated_frame_saved_pc,
1960 deprecated_extract_return_value, deprecated_store_return_value,
1961 deprecated_extract_struct_value_address. Set
1962 extract_return_value, store_return_value,
1963 extract_struct_value_address.
1964
1965 2003-07-07 Andrew Cagney <cagney@redhat.com>
1966
1967 * expprint.c: Include "user-regs.h" instead of "frame.h".
1968 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1969 frame_map_regnum_to_name.
1970 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1971 (frame_map_name_to_regnum): Simplify, call
1972 user_reg_map_name_to_regnum.
1973 (frame_map_regnum_to_name): Simplify, call
1974 user_reg_map_regnum_to_name.
1975 (frame_register_unwind): Update.
1976 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1977 (_initialize_frame_reg): Call user_reg_add_builtin.
1978 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1979 (value_of_register): Use value_of_user_reg.
1980 * eval.c (evaluate_subexp_standard): Update.
1981 * parse.c (write_dollar_variable): Update.
1982 * d10v-tdep.c (d10v_print_registers_info): Update.
1983 * infcmd.c (registers_info): Update.
1984 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1985 (builtin_regs_h): Delete macro.
1986 (user_regs_h): Define.
1987 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1988 (builtin-regs.o): Delete target.
1989 (user-regs.o): Specify dependencies.
1990 (expprint.o): Update dependencies.
1991 (findvar.o): Update dependencies.
1992 (frame.o): Update dependencies.
1993 (std-regs.o): Update dependencies.
1994
1995 2003-07-06 Christopher Faylor <cgf@redhat.com>
1996
1997 * win32-nat.c (solib_symbols_add): Use one variable for all section
1998 address stuff. Pass variable rather than address of variable to
1999 safe_symbol_file_add.
2000
2001 2003-07-06 Andreas Schwab <schwab@suse.de>
2002
2003 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2004
2005 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2006
2007 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2008
2009 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2010
2011 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2012
2013 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2014
2015 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2016 * config/i386/nto.mh: New file.
2017 * config/i386/nm-nto.h: New file.
2018 * configure.host: Add i[3456]86-*-nto*.
2019
2020 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2021
2022 * remote-vx.c (vx_add_symbols): Fix compilation error.
2023
2024 2003-07-03 Andrew Cagney <cagney@redhat.com>
2025
2026 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2027 * gdbarch.h, gdbarch.c: Re-generate.
2028 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2029 (legacy_register_name): Declare.
2030 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2031 (REGISTER_NAME): Define.
2032 * sparc-tdep.c (legacy_register_name): New function.
2033 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2034 (REGISTER_NAME): Define.
2035 (hppa64_register_name): Declare.
2036 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2037 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2038 (hppa64_register_name): New function.
2039 (hppa_register_name): New function.
2040 * arch-utils.c (legacy_register_name): Delete.
2041 * arch-utils.h (legacy_register_name): Delete.
2042
2043 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2044
2045 * cli/cli-interp.c (cli_interpreter_resume): Update the
2046 cli_uiout's stream to gdb_stdout.
2047
2048 2003-07-03 Andrew Cagney <cagney@redhat.com>
2049
2050 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2051 predicate.
2052 * gdbarch.h, gdbarch.c: Re-generate.
2053 * regcache.c (init_regcache_descr): Use legacy code when either
2054 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2055
2056 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2057
2058 * NEWS: Move "set logging" entry into GDB 6.0 section.
2059
2060 2003-07-02 Jim Blandy <jimb@redhat.com>
2061
2062 * s390-tdep.c (struct frame_extra_info): new member:
2063 'stack_bought_valid'.
2064 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2065 initialize fextra_info->stack_bought.
2066 (s390_frameless_function_invocation): Don't trust the value of
2067 fextra_info_ptr->stack_bought unless
2068 fextra_info->stack_bought_valid is set.
2069
2070 New S390 prologue analyzer.
2071 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2072 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2073 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2074 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2075 compute_x_addr, s390_on_stack, s390_store,
2076 s390_get_signal_frame_info): New functions.
2077 (S390_NUM_SPILL_SLOTS): New macro.
2078 (s390_get_frame_info): Rewritten.
2079 (is_arg_reg): Deleted.
2080
2081 Break out the decoding of S/390 instructions into separate
2082 functions, to make it more legible, and easier to check
2083 against the spec.
2084 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2085 is_rx, is_rxe): New functions.
2086 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2087 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2088 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2089 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2090 enums for opcode values. (Is this an improvement?)
2091
2092 2003-07-02 Andrew Cagney <cagney@redhat.com>
2093
2094 * i386-tdep.c: Revert change committed as part of trad-frame code
2095 below.
2096
2097 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2098
2099 * breakpoint.c (insert_catchpoint): Make static.
2100
2101 2003-07-02 Andreas Schwab <schwab@suse.de>
2102
2103 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2104 former ia64_push_arguments and ia64_push_return_address, and use
2105 regcache functions instead of read/write_register.
2106 (ia64_gdbarch_init): Set push_dummy_call instead of
2107 deprecated_push_arguments and deprecated_push_return_address.
2108
2109 2003-07-01 Andreas Jaeger <aj@suse.de>
2110
2111 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2112 before the call.
2113 Set %rax only to number of SSE registers used.
2114
2115 2003-07-01 Andrew Cagney <cagney@redhat.com>
2116
2117 * trad-frame.h: Update comments, a -1 .addr is reserved.
2118 (trad_frame_value_p, trad_frame_addr_p): Declare.
2119 (trad_frame_reg_p): Declare.
2120 (trad_frame_set_value): Rename trad_frame_register_value.
2121 (trad_frame_set_unknown): Declare.
2122 * trad-frame.c (trad_frame_realreg_p): New function.
2123 (trad_frame_addr_p, trad_frame_value_p): New function.
2124 (trad_frame_set_unknown): New function.
2125 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2126 (trad_frame_prev_register): Use trad_frame_realreg_p,
2127 trad_frame_addr_p and trad_frame_value_p.
2128 (trad_frame_set_value): Rename trad_frame_register_value.
2129 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2130 and trad_frame_set_value.
2131
2132 2003-06-30 Jim Blandy <jimb@redhat.com>
2133
2134 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2135 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2136 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2137 for 16 registers, and then 32 more bytes.
2138 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2139 New macros.
2140 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2141 Move up in the file, since it's now used by is_simple_arg.
2142 (is_simple_arg): Don't assume registers are four bytes long.
2143 Exclude all double arguments. Extended floats are not simple
2144 args.
2145 (is_power_of_two): New function.
2146 (pass_by_copy_ref): Call is_power_of_two, and check that the
2147 length fits in a register, rather than listing all the acceptable
2148 sizes. Extended floats are not passed by reference.
2149 (s390_push_arguments): Don't assume registers are four bytes long.
2150 Reserve an argument register to point to the buffer for structures
2151 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2152 S390_STACK_FRAME_OVERHEAD.
2153
2154 2003-06-30 Andreas Schwab <schwab@suse.de>
2155
2156 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2157 format error message.
2158
2159 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2160
2161 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2162
2163 2003-06-30 David Carlton <carlton@kealia.com>
2164
2165 Band-aid for PR c++/1245.
2166 * Makefile.in (cp-support.o): Depend on complaints_h.
2167 * cp-support.c: Include complaints.h. Add declaration for
2168 find_last_component.
2169 (cp_find_first_component): Separate code into
2170 cp_find_first_component_aux.
2171 (cp_find_first_component_aux): Call demangled_name_complaint.
2172 (demangled_name_complaint): New.
2173
2174 2003-06-30 Andrew Cagney <cagney@redhat.com>
2175
2176 * remote.c (remote_write_bytes): Explicitly compute and then use
2177 the payload size. Update comments to reflect. Fixes problem of
2178 GDB not sending small packets as found by Fred Fish.
2179
2180 2003-06-30 Andrew Cagney <cagney@redhat.com>
2181
2182 * remote.c (remote_async_wait): Fix -Wformat problem.
2183
2184 2003-06-29 Andrew Cagney <cagney@redhat.com>
2185
2186 * remote.c (remote_wait): Call error, and not warning, when the
2187 packet is corrupt.
2188 (remote_async_wait): Ditto.
2189
2190 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2191
2192 * sparc-tdep.c (sparc_y_regnum): Make external again.
2193
2194 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2195
2196 * cli/cli-logging.c (pop_output_files): Add void to function
2197 definition.
2198
2199 2003-06-29 Andrew Cagney <cagney@redhat.com>
2200
2201 * frame.c (frame_register_unwind): Use unsigned char when dumping
2202 the buffer contents.
2203
2204 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2205
2206 * cli/cli-logging.c: New file.
2207 * cli-out.c (struct ui_out_data): Add original_stream.
2208 (cli_redirect): New function.
2209 (cli_ui_out_impl): Add cli_redirect.
2210 (cli_out_new): Initialize original_stream.
2211 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2212 (uo_redirect, ui_out_redirect): New.
2213 * ui-out.h (struct ui_out_impl): Add redirect member.
2214 (redirect_ftype): New.
2215 (ui_out_redirect): Add prototype.
2216 * Makefile.in: Add rules for cli-logging.c.
2217 * NEWS: Mention "set logging".
2218
2219 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2220
2221 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2222
2223 2003-06-27 Andrew Cagney <cagney@redhat.com>
2224
2225 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2226 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2227 * avr-tdep.c (avr_call_dummy_address): Delete function.
2228 (avr_gdbarch_init): Do not set call_dummy_address.
2229
2230 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2231
2232 * symfile.c (syms_from_objfile): Move variables to inner block.
2233 Move the checks for the non-mainline case a bit earlier to avoid
2234 doing some useless computations.
2235
2236 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2237
2238 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2239
2240 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2241
2242 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2243 sections.
2244
2245 2003-06-26 Michael Chastain <mec@shout.net>
2246
2247 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2248 gdb/testsuite/gdb.c++/pr-1210.exp.
2249
2250 2003-06-26 Andrew Cagney <cagney@redhat.com>
2251
2252 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2253 altivec_expression.h and altivec_registers.h.
2254
2255 2003-06-26 Andrew Cagney <cagney@redhat.com>
2256
2257 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2258 info->mach when MIPS16. Patch suggested by Fred Fish.
2259
2260 2003-06-26 Andrew Cagney <cagney@redhat.com>
2261
2262 * utils.c (internal_vproblem): Print the problem to a reason
2263 buffer and then pass to query. Make the msg variable more local.
2264
2265 2003-06-26 Andrew Cagney <cagney@redhat.com>
2266
2267 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2268 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2269 * gdbarch.h, gdbarch.c: Re-generate.
2270 * frame-base.c (default_frame_args_address): Update. Use
2271 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2272 not available.
2273 (default_frame_locals_address): Ditto for
2274 DEPRECATED_FRAME_LOCALS_ADDRESS.
2275 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2276 (vax_frame_num_args): Update.
2277 (vax_gdbarch_init): Update.
2278 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2279 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2280 * mcore-tdep.c (mcore_gdbarch_init): Update.
2281 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2282 * ia64-tdep.c (ia64_gdbarch_init): Update.
2283 * symtab.h (address_class): Update comments.
2284 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2285 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2286 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2287 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2288 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2289 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2290 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2291 * alpha-mdebug-tdep.c: Update.
2292 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2293
2294 2003-06-26 Andreas Jaeger <aj@suse.de>
2295
2296 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2297 of SSE registers so that varargs functions work. Rework handling
2298 of passing arguments on the stack.
2299 (x86_64_store_return_value): Return double and float values in SSE
2300 register.
2301
2302 2003-06-24 Michael Chastain <mec@shout.net>
2303
2304 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2305 the "constructor breakpoints ignored" bug.
2306
2307 2003-06-25 David Carlton <carlton@kealia.com>
2308
2309 * MAINTAINERS: Update e-mail address.
2310
2311 2003-06-24 Jim Blandy <jimb@redhat.com>
2312
2313 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2314
2315 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2316 function.
2317 (ppc_linux_init_abi): Register it as the
2318 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2319
2320 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2321 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2322 method.
2323
2324 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2325 (ppc64_standard_linkage_target): Use it.
2326
2327 2003-06-23 Andrew Cagney <cagney@redhat.com>
2328
2329 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2330 for 0 "int0" and 4 "int32" sized registers.
2331 * gdbtypes.c (builtin_type_int0): Define.
2332 (build_gdbtypes): Initialize builtin_type_int0.
2333 * gdbtypes.h (builtin_type_int0): Declare.
2334
2335 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2336
2337 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2338 as characters are unsigned.
2339
2340 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2341
2342 PR gdb/1179
2343 * dwarfread.c (struct_type): Skip static fields without crashing.
2344
2345 2003-06-22 Andrew Cagney <cagney@redhat.com>
2346
2347 GDB 6.0 branch created.
2348 * README: Update.
2349 * PROBLEMS: Update. Empty.
2350 * NEWS: Update.
2351
2352 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2353
2354 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2355 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2356
2357 2003-06-22 Andrew Cagney <cagney@redhat.com>
2358
2359 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2360 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2361 Velikov.
2362
2363 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2364
2365 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2366 compilers.
2367
2368 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2369
2370 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2371 argument of val_print.
2372 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2373 to the address argument of baseclass_offset or target_read_memory.
2374 Do add it to the argument of cp_print_value_fields.
2375
2376 2003-06-21 Andrew Cagney <cagney@redhat.com>
2377
2378 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2379 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2380 instead of 0..NUM_REGS.
2381 (mips_register_reggroup_p): New function.
2382 (mips_pseudo_register_write): New function.
2383 (mips_pseudo_register_read): New function.
2384 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2385 based on the register's type.
2386 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2387 cooked.
2388 (mips_get_saved_register): Simplify. Assert that REGNO is a
2389 pseudo / cooked.
2390 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2391 (mips_register_type): Replace mips_register_virtual_type. Map
2392 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2393 when available.
2394 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2395 that the register is cooked / virtual.
2396 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2397 Only get the extra info when needed.
2398 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2399 (mips32_heuristic_proc_desc): Fetch the cooked register.
2400 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2401 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2402 (mips_print_register): Use gdbarch_register_type, instead of
2403 REGISTER_VIRTUAL_TYPE.
2404 (print_gp_register_row): Use gdbarch_register_type, instead of
2405 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2406 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2407 Print the pseudo / cooked registers.
2408 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2409 Print the pseudo / cooked registers.
2410 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2411 REG_NUM is pseudo / cooked.
2412 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2413 (mips_n32n64_xfer_return_value): Ditto.
2414 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2415 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2416 (mips_register_sim_regno): New function.
2417 (mips_gdbarch_init): Set deprecated_register_byte,
2418 register_group_p, pseudo_register_write, pseudo_register_read,
2419 register_sim_regno, and num_pseudo_regs. Set register_type,
2420 instead of register_virtual_type.
2421 * Makefile.in (mips-tdep.o): Update dependencies.
2422 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2423 REGISTER_VIRTUAL_TYPE.
2424 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2425 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2426 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2427 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2428 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2429
2430 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2431
2432 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2433 * cli/cli-cmds.c: Include "gdb_vfork.h".
2434 (shell_escape): Use vfork.
2435
2436 2003-06-21 Andrew Cagney <cagney@redhat.com>
2437
2438 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2439 32 bit floating-point register saves.
2440
2441 * frame.h (deprecated_unwind_get_saved_register): Delete.
2442 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2443 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2444 and deprecated_get_next_frame_hack instead of
2445 deprecated_unwind_get_saved_register.
2446
2447 * mips-tdep.c (mips_dump_tdep): Do not print
2448 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2449
2450 * frame.c (get_frame_register): New function.
2451 (frame_unwind_register_signed): New function.
2452 (get_frame_register_signed): New function.
2453 (frame_unwind_register_unsigned): New function.
2454 (get_frame_register_unsigned): New function.
2455 * frame.h: Add comments on naming schema.
2456 (get_frame_register, frame_unwind_register_signed): Declare.
2457 (get_frame_register_signed, get_frame_register_signed): Declare.
2458 (frame_unwind_register_unsigned): Declare.
2459 (get_frame_register_unsigned): Declare.
2460
2461 2003-06-20 Theodore A. Roth <troth@openavr.org>
2462
2463 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2464
2465 2003-06-20 Theodore A. Roth <troth@openavr.org>
2466
2467 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2468 (avr_read_sp): Ditto.
2469
2470 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2471
2472 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2473 * config/arm/nm-linux.h: Likewise.
2474 * config/arm/tm-linux.h: Likewise.
2475 * config/ia64/nm-linux.h: Likewise.
2476 * config/ia64/tm-ia64.h: Likewise.
2477 * config/s390/tm-linux.h: Likewise.
2478 * config/s390/tm-s390.h: Likewise.
2479 * s390-nat.c: Likewise.
2480 * s390-tdep.c: Likewise.
2481
2482 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2483 * config/ia64/linux.mt: Likewise.
2484 * config/m68k/linux.mh: Likewise.
2485 * config/mips/linux.mt: Likewise.
2486 * config/powerpc/linux.mh: Likewise.
2487 * config/sh/linux.mt: Likewise.
2488
2489 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2490
2491 * solib.c (solib_open): Change tests for whether to search
2492 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2493 comments.
2494
2495 2003-06-19 Theodore A. Roth <troth@openavr.org>
2496
2497 * avr-tdep.c (avr_frame_address): Delete function.
2498 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2499 set_gdbarch_frame_args_address.
2500
2501 2003-06-19 Andrew Cagney <cagney@redhat.com>
2502
2503 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2504 (REGISTER_CONVERT_FROM_TYPE): Delete.
2505 (mips_register_convert_to_type): Delete declaration.
2506 (mips_register_convert_from_type): Delete declaration.
2507 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2508 kernel/.
2509
2510 2003-06-19 Michael Snyder <msnyder@redhat.com>
2511
2512 * linux-nat.h: New file.
2513 * linux-nat.c: Include linux-nat.h.
2514 * lin-lwp.c: Include linux-nat.h.
2515 Move struct lwp_info def to linux-nat.h.
2516 * linux-proc.c: Include linux-nat.h.
2517 (linux_make_note_section): Iterate over lwps instead of threads.
2518 (linux_do_thread_registers): Use lwp instead of merged pid.
2519 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2520 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2521 Add dependency on linux_nat_h.
2522
2523 2003-06-19 Theodore A. Roth <troth@openavr.org>
2524
2525 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2526
2527 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2528
2529 * varobj.c (get_type, get_target_type): Use check_typedef.
2530
2531 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2532
2533 * breakpoint.c (insert_catchpoint): Call internal_error.
2534
2535 2003-06-19 Theodore A. Roth <troth@openavr.org>
2536
2537 * avr-tdep.c (avr_push_dummy_code): Delete function.
2538 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2539
2540 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2541
2542 * arch-utils.c (default_prepare_to_proceed): Remove.
2543 (generic_prepare_to_proceed): Remove.
2544 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2545 (generic_prepare_to_proceed): Remove prototype.
2546 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2547 * gdbarch.c: Regenerate.
2548 * gdbarch.h: Regenerate.
2549 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2550 * hppah-nat.c (hppa_switched_threads): Remove.
2551 * infrun.c (prepare_to_proceed): New static function, copied from
2552 generic_prepare_to_proceed. Remove select_it argument.
2553 (proceed): Call prepare_to_proceed.
2554 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2555 variables.
2556 (ptrace_wait): Don't set the removed variables.
2557 (hppa_switched_threads): Remove.
2558 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2559 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2560 (lin_lwp_prepare_to_proceed): Remove prototype.
2561 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2562 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2563
2564 2003-06-18 Theodore A. Roth <troth@openavr.org>
2565
2566 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2567 trad-frame.h.
2568 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2569 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2570 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2571 (AVR_PROLOGUE_*): Enumerate prologue types.
2572 (struct frame_extra_info): Remove.
2573 (struct avr_unwind_cache): Define.
2574 (avr_write_sp): Delete function.
2575 (avr_read_fp): Ditto.
2576 (avr_init_extra_frame_info): Ditto.
2577 (avr_pop_frame): Ditto.
2578 (avr_frame_saved_pc): Ditto.
2579 (avr_saved_pc_after_call): Ditto.
2580 (avr_push_return_address): Ditto.
2581 (avr_frame_chain): Ditto.
2582 (avr_store_struct_return): Ditto.
2583 (avr_push_arguments): Ditto.
2584 (avr_scan_prologue): Update comments. Changed to set up the info for
2585 cache unwinding. Now returns end of prologue PC.
2586 (avr_skip_prologue): Better handling of functions lacking a prologue
2587 by using avr_scan_prologue.
2588 (avr_scan_arg_moves): New function.
2589 (avr_saved_regs_unwinder): Ditto.
2590 (avr_frame_unwind_cache): Ditto.
2591 (avr_unwind_pc): Ditto.
2592 (avr_frame_this_id): Ditto.
2593 (avr_frame_prev_register): Ditto.
2594 (avr_frame_p): Ditto.
2595 (avr_frame_base_address ): Ditto.
2596 (avr_unwind_dummy_id): Ditto.
2597 (avr_push_dummy_code): Ditto.
2598 (push_stack_item): Ditto.
2599 (pop_stack_item): Ditto.
2600 (avr_push_dummy_call): Ditto.
2601 (struct stack_item): Define.
2602 (avr_frame_unwind): Declare structure.
2603 (avr_frame_base): Ditto.
2604 (avr_gdbarch_init): Remove calls to
2605 set_gdbarch_deprecated_init_frame_pc,
2606 set_gdbarch_deprecated_target_read_fp,
2607 set_gdbarch_deprecated_dummy_write_sp,
2608 set_gdbarch_deprecated_fp_regnum,
2609 set_gdbarch_deprecated_push_arguments,
2610 set_gdbarch_deprecated_push_return_address,
2611 set_gdbarch_deprecated_pop_frame,
2612 set_gdbarch_deprecated_store_struct_return,
2613 set_gdbarch_deprecated_frame_init_saved_regs,
2614 set_gdbarch_deprecated_init_extra_frame_info,
2615 set_gdbarch_deprecated_frame_chain,
2616 set_gdbarch_deprecated_frame_saved_pc,
2617 set_gdbarch_deprecated_saved_pc_after_call.
2618 Add calls to set_gdbarch_push_dummy_call,
2619 set_gdbarch_push_dummy_code,
2620 frame_unwind_append_predicate,
2621 frame_base_set_default,
2622 set_gdbarch_unwind_dummy_id,
2623 set_gdbarch_unwind_pc.
2624 Wrap a long line.
2625
2626 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2627
2628 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2629 registers for H8/300S.
2630 (h8300_print_registers_info): Ditto.
2631 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2632
2633 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2634
2635 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2636 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2637 (lin_lwp_wait): Likewise. Update comments.
2638 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2639 (pull_pid_from_list, linux_record_stopped_pid): New.
2640
2641 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2642
2643 * ada-lang.c (scan_discrim_bound): Name first argument.
2644 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2645 declared by ALL_BLOCK_SYMBOLS.
2646
2647 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2648
2649 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2650 ("regcache.h"): Include it.
2651 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2652
2653 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2654
2655 * NEWS: Mention gdbserver detach change and "disconnect" command.
2656 * infcmd.c (disconnect_command): New function.
2657 (_initialize_infcmd): Add ``disconnect'' command.
2658 * remote.c (remote_async_detach): Delete.
2659 (remote_detach): Merge remote_async_detach.
2660 (remote_disconnect): New.
2661 (init_remote_ops): Set to_disconnect.
2662 (init_remote_cisco_ops): Likewise.
2663 (init_remote_async_ops): Likewise. Use remote_detach.
2664 * target.c (cleanup_target): Default to_disconnect.
2665 (update_current_target): Inherit to_disconnect.
2666 (target_disconnect, debug_to_disconnect): New functions.
2667 (setup_target_debug): Set to_disconnect.
2668 * target.h (struct target_ops): Add to_disconnect.
2669 (target_disconnect): Add prototype.
2670
2671 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2672
2673 * breakpoint.c (insert_catchpoint): New function.
2674 (insert_breakpoints): Use catch_exceptions to call
2675 insert_catchpoint. Disable catchpoints if they fail to insert.
2676
2677 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2678
2679 * symfile.c (reread_symbols): Clear sym_private.
2680
2681 2003-06-17 Andrew Cagney <cagney@redhat.com>
2682
2683 * trad-frame.h (struct frame_info): Add opaque declaration.
2684 * remote-fileio.h (struct cmd_list_element): Add opaque
2685 declaration.
2686 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2687 comments.
2688
2689 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2690
2691 * remote.c (remote_prepare_to_store): Replace call to
2692 deprecated_read_register_bytes with multiple regcache_raw_read
2693 calls.
2694
2695 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2696
2697 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2698 (nto_find_and_open_solib): Likewise.
2699 (nto_init_solib_absolute_prefix): Likewise.
2700 (_initialize_nto_tdep): Fix indentation.
2701
2702 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2703
2704 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2705
2706 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2707
2708 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2709
2710 2003-06-17 Jim Blandy <jimb@redhat.com>
2711
2712 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2713
2714 2003-06-16 Theodore A. Roth <troth@openavr.org>
2715
2716 * avr-tdep.c (avr_extract_return_value): New function.
2717 (avr_gdbarch_init): Set extract_return_value method.
2718
2719 2003-06-16 Andrew Cagney <cagney@redhat.com>
2720
2721 * frame.h (deprecated_get_next_frame_hack): Declare.
2722 * frame.c (legacy_saved_regs_prev_register): Only require
2723 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2724 there are always saved regs.
2725 (deprecated_generic_get_saved_register): Do not require
2726 DEPRECATED_FRAME_INIT_SAVED_REGS.
2727 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2728 use frame ID unwind instead.
2729 (deprecated_get_next_frame_hack): New function.
2730
2731 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2732
2733 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2734 (h8300_push_dummy_call): ...this function. Some minor optimization.
2735 (h8300_push_return_address): Remove.
2736 (h8300_gdbarch_init): Remove calls to
2737 set_gdbarch_deprecated_dummy_write_sp,
2738 set_gdbarch_deprecated_push_arguments and
2739 set_gdbarch_deprecated_push_return_address.
2740 Add call to set_gdbarch_push_dummy_call.
2741
2742 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2743
2744 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2745 (E_PSEUDO_EXR_REGNUM): Ditto.
2746 (h8300_is_argument_spill): Check for instructions moving argument
2747 registers into safe registers.
2748 (h8300_skip_prologue): Check for stm instruction to push registers
2749 used for register variables onto stack.
2750 (gdb_print_insn_h8300): Remove.
2751 (h8300_examine_prologue): Add a comment.
2752 (h8300_register_name): Take pseudo registers into account.
2753 (h8300s_register_name): Ditto.
2754 (h8300sx_register_name): Ditto.
2755 (h8300_print_register): Ditto.
2756 (h8300_print_registers_info): Define "nice" printing order.
2757 (h8300_saved_pc_after_call): Take pseudo registers into account.
2758 (h8300_register_type): Ditto. Return type used for remote connection
2759 when requesting real CCR or EXR register, return actual type when
2760 requesting pseudo CCR or EXR.
2761 (h8300_pseudo_register_read): New function.
2762 (h8300_pseudo_register_write): Ditto.
2763 (h8300_dbg_reg_to_regnum): Ditto.
2764 (h8300s_dbg_reg_to_regnum): Ditto.
2765 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2766 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2767 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2768 set_gdbarch_print_insn architecture dependent.
2769 Call set_gdbarch_pseudo_register_read and
2770 set_gdbarch_pseudo_register_write.
2771 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2772
2773 2003-06-16 Andrew Cagney <cagney@redhat.com>
2774
2775 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2776 * gdbarch.h, gdbarch.c: Re-generate.
2777 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2778 * s390-tdep.c (s390_gdbarch_init): Update.
2779 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2780 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2781 * mips-tdep.c (mips_gdbarch_init): Update.
2782 * mcore-tdep.c (mcore_gdbarch_init): Update.
2783 * cris-tdep.c (cris_gdbarch_init): Update.
2784 * infcall.c (call_function_by_hand): Update.
2785 * ia64-tdep.c (ia64_push_arguments): Update comment.
2786 * frame.c (legacy_get_prev_frame): Do not assume
2787 SAVE_DUMMY_FRAME_TOS_P.
2788 * dummy-frame.c (find_dummy_frame): Update comment.
2789
2790 2003-06-16 Andrew Cagney <cagney@redhat.com>
2791
2792 * regcache.c (do_cooked_read): Do not use register_valid_p.
2793
2794 2003-06-15 Theodore A. Roth <troth@openavr.org>
2795
2796 * avr-tdep.c (avr_register_type): Remove a blank line.
2797 (avr_scan_prologue): Correct some comments.
2798
2799 2003-06-15 Theodore A. Roth <troth@openavr.org>
2800
2801 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2802 prologue types.
2803 Properly scan prologues generated by gcc with the -mcall-prologues
2804 option.
2805 Add code to scan -mcall-prologues for mega devices.
2806
2807 2003-06-15 Theodore A. Roth <troth@openavr.org>
2808
2809 * avr-tdep.c (avr_register_byte): Delete function.
2810 (avr_register_raw_size): Delete function.
2811 (avr_register_virtual_size): Delete function.
2812 (avr_register_virtual_type): Delete function.
2813 (avr_register_type): New function.
2814 (avr_address_to_pointer): Remove unused code.
2815 (avr_read_fp): Need to read FP as two separate bytes due to change to
2816 avr_register_type() usage.
2817 (avr_gdbarch_init): Don't set deprecated_register_size.
2818 Don't set deprecated_register_bytes.
2819 Don't set deprecated_register_byte.
2820 Don't set deprecated_register_raw_size.
2821 Don't set deprecated_max_register_raw_size.
2822 Don't set deprecated_register_virtual_size.
2823 Don't set deprecated_max_register_virtual_size.
2824 Don't set deprecated_register_virtual_type.
2825 Set register_type method.
2826
2827 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2828
2829 * Makefile.in (linux-nat.o): Add rule.
2830 * linux-nat.c: New file.
2831 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2832 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2833 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2834 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2835 * config/arm/linux.mh (NATDEPFILES): Likewise.
2836 * config/i386/linux.mh (NATDEPFILES): Likewise.
2837 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2838 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2839 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2840 * config/mips/linux.mh (NATDEPFILES): Likewise.
2841 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2842 * config/s390/s390.mh (NATDEPFILES): Likewise.
2843 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2844
2845 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2846
2847 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2848 replace out-of-date comment.
2849
2850 2003-06-15 Andrew Cagney <cagney@redhat.com>
2851
2852 * rdi-share/host.h (Fail): Change to a varargs function.
2853 * remote-rdi.c (Fail): Update.
2854
2855 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2856
2857 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2858 (i386_convert_register_p, i386_register_to_value,
2859 i386_register_from_value): Handle types longer than 8 bytes.
2860
2861 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2862
2863 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2864 Move floating-point code to new function in i387-tdep.c.
2865 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2866 New functions containing code moved here from i386-tdep.c.
2867 * i387-tdep.h: Add opaque declaration for `struct type'.
2868 (i387_register_to_value, i387_value_to_register): New prototypes.
2869 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2870 (x86_64_init_abi): Set convert_register_p, register_to_value and
2871 value_to_register here.
2872
2873 2003-06-14 Andrew Cagney <cagney@redhat.com>
2874
2875 * mips-tdep.c (mips_register_to_value): Make static.
2876 (mips_value_to_register): Make static.
2877 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2878 * ia64-tdep.c (ia64_register_raw_size): Make static.
2879 (ia64_register_virtual_size): Make static.
2880 (ia64_register_byte): Make static.
2881 * i387-tdep.c: Include "i387-tdep.h".
2882 (print_387_control_word): Delete function.
2883 (print_387_status_word): Delete function.
2884 (print_387_status_bits): Delete function.
2885 (print_387_control_bits): Delete function.
2886 * Makefile.in (i387-tdep.o): Update dependencies.
2887 * rdi-share/host.h (Fail): Declare.
2888 * remote-rdi.c (Fail): Update to match declaration.
2889
2890 2003-06-14 Andrew Cagney <cagney@redhat.com>
2891
2892 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2893 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2894 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2895 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2896 * README: Delete reference to remote-array.
2897 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2898 (remote-array.o): Delete target.
2899 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2900 * remote-array.c: Delete file.
2901
2902 2003-06-14 Andrew Cagney <cagney@redhat.com>
2903 Mark Kettenis <kettenis@gnu.org>
2904
2905 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2906 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2907 parameter with "frame".
2908 * gdbarch.h, gdbarch.c: Re-generate.
2909 * frame.h (put_frame_register): Declare.
2910 * frame.c (put_frame_register): New function.
2911 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2912 (legacy_register_to_value): Rewrite, use "frame" to get the
2913 register value.
2914 (legacy_value_to_register): Rewrite, use "frame" to find the
2915 register's location before storing.
2916 * arch-utils.h (legacy_convert_register_p): Update.
2917 (legacy_register_to_value, legacy_value_to_register): Update.
2918 * findvar.c (value_from_register): Rewrite, eliminate use of
2919 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2920 "frame" to REGISTER_TO_VALUE.
2921 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2922 lval_reg_frame_relative + lval_register branch of the switch. Do
2923 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2924 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2925 I386_EDI_REGNUM): New defines.
2926 (i386_next_regnum, i386_convert_register_p,
2927 i386_register_to_value, i386_value_to_register): New functions.
2928 (i386_register_convertible, i386_register_convert_to_virtual,
2929 i386_convert_to_raw): Remove functions.
2930 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2931 value_to_register instead of register_convertible,
2932 register_convert_to_virtual and register_convert_to_raw.
2933 * mips-tdep.c (mips_convert_register_p): New function.
2934 (mips_value_to_register): Replace mips_register_convert_from_type.
2935 (mips_register_to_value): Replace mips_register_convert_to_type.
2936 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2937 register_to_value.
2938 * alpha-tdep.c (alpha_convert_register_p): Update.
2939 (alpha_value_to_register): Update, store the register.
2940 (alpha_register_to_value): Update, fetch the register.
2941
2942 2003-06-14 Theodore A. Roth <troth@openavr.org>
2943
2944 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2945 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2946 Don't set deprecated_call_dummy_words.
2947 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2948 Don't set remote_translate_xfer_address.
2949 (avr_io_reg_read_command): Remove commented out debug printf.
2950 Wrap a long line.
2951
2952 2003-06-14 Theodore A. Roth <troth@openavr.org>
2953
2954 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2955 causes gdb to seg fault.
2956
2957 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2958
2959 * sparc-nat.c (fetch_inferior_registers): Correct
2960 a reference to "registers".
2961
2962 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2963
2964 * Makefile.in (exc_request_U_h): Define
2965 (exc_request_S_h): Likewise.
2966 (msg_reply_S_h): Likewise.
2967 (msg_U_h): Likewise.
2968 (notify_S_h): Likewise.
2969 (process_reply_S_h): Likewise.
2970 (gnu-nat.o): Depend on gdb_obstack_h
2971 * gnu-nat.c: Include "gdb_obstack.h".
2972
2973 2003-06-13 Andrew Cagney <cagney@redhat.com>
2974
2975 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2976 * gdbarch.h, gdbarch.c: Re-generate.
2977
2978 2003-06-13 Andrew Cagney <cagney@redhat.com>
2979
2980 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2981 when deprecated REGISTER macros can be deleted.
2982 * gdbarch.h, gdbarch.c: Re-generate.
2983
2984 2003-06-13 Jim Blandy <jimb@redhat.com>
2985
2986 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2987 Linux entry point symbols for _dl_debug_state, too.
2988
2989 2003-06-13 Andrew Cagney <cagney@redhat.com>
2990
2991 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2992 available, do not use the FP register, and always save the TOS.
2993 * dummy-frame.c (dummy_frame_this_id): Do not assert
2994 SAVE_DUMMY_FRAME_TOS.
2995 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2996 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2997 (i386_push_dummy_call): Add 8 to the returned SP.
2998 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2999 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3000 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3001 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3002 (x86_64_push_dummy_call): Return "sp + 16".
3003 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3004 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3005 save_dummy_frame_tos.
3006
3007 2003-06-13 Jim Blandy <jimb@redhat.com>
3008
3009 * frv-tdep.c (frv_use_struct_convention): Delete static
3010 declaration for function deleted in my change of 2003-06-12.
3011
3012 2003-06-13 Theodore A. Roth <troth@openavr.org>
3013
3014 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3015 (avr_pointer_to_address): Shift code addrs left 1 bit.
3016 (avr_convert_from_func_ptr_addr): Delete function since operation is
3017 better handled by avr_address_to_pointer and avr_pointer_to_address.
3018 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3019
3020 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3021
3022 From Kelley Cook <kelleycook@wideopenwest.com>:
3023 * configure.host: Accept i[34567]86 variants.
3024 * configure.tgt: Likewise.
3025 * nlm/configure.in: Likewise.
3026 * nlm/configure: Regenerated.
3027
3028 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3029
3030 * arm-tdep.c (solib-svr4.h): Dont' include it.
3031 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3032 * arm-linux-tdep.c: ... here. Make static.
3033 (arm_linux_init_abi): Register it.
3034 (solib-svr4.h): Include it.
3035 * Makefile.in: Update dependencies.
3036 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3037 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3038
3039 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3040
3041 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3042 indicate registers used for return values.
3043 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3044 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3045 members.
3046 (h8300_init_extra_frame_info): Ditto.
3047 (h8300_frame_locals_address): Removed.
3048 (h8300_frame_args_address): Removed.
3049 (h8300_extract_return_value): Use new regcache structure. Only care
3050 for 16 bit CPUs.
3051 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3052 (h8300_store_return_value): Use new regcache structure. Only care
3053 for 16 bit CPUs.
3054 (h8300h_store_return_value): Same function for 32 bit CPUs.
3055 (h8300_store_struct_return): Removed.
3056 (h8300_extract_struct_value_address): Use new regcache structure.
3057 (h8300h_extract_struct_value_address): Removed.
3058 (h8300_push_dummy_code): New function.
3059 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3060 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3061 set_gdbarch_store_return_value architecture dependent.
3062 Call set_gdbarch_push_dummy_code and
3063 set_gdbarch_extract_struct_value_address.
3064 Remove calls to set_gdbarch_frame_args_address,
3065 set_gdbarch_frame_locals_address,
3066 set_gdbarch_deprecated_store_struct_return,
3067 set_gdbarch_deprecated_extract_return_value,
3068 set_gdbarch_deprecated_extract_struct_value_address,
3069 set_gdbarch_deprecated_call_dummy_words and
3070 set_gdbarch_deprecated_sizeof_call_dummy_words.
3071
3072 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3073
3074 * h8300-tdep.c (h8300_register_byte): Remove.
3075 (h8300h_register_byte): Remove.
3076 (h8300_register_virtual_type): Remove. Substitute by...
3077 (h8300_register_type): New function.
3078 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3079 (h8300h_extract_struct_value_address): Ditto.
3080 (h8300_gdbarch_init): Drop calls to
3081 set_gdbarch_deprecated_register_byte and
3082 set_gdbarch_deprecated_register_virtual_type.
3083 Add call to set_gdbarch_register_type.
3084
3085 2003-06-13 Andrew Cagney <cagney@redhat.com>
3086
3087 * gdbarch.sh: Update comments on registers.
3088 (deprecated_register_byte): Rename register_byte.
3089 (deprecated_register_raw_size): Rename register_raw_size.
3090 (deprecated_register_virtual_size): Rename register_virtual_size.
3091 (deprecated_register_virtual_type): Rename register_virtual_type.
3092 * gdbarch.h, gdbarch.c: Re-generate.
3093 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3094 * vax-tdep.c (vax_gdbarch_init): Update.
3095 * v850-tdep.c (v850_gdbarch_init): Update.
3096 * sparc-tdep.c (sparc_gdbarch_init): Update.
3097 * sh-tdep.c (sh_gdbarch_init): Update.
3098 * s390-tdep.c (s390_gdbarch_init): Update.
3099 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3100 * ns32k-tdep.c: Update.
3101 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3102 * mips-tdep.c (mips_gdbarch_init): Update.
3103 * mcore-tdep.c (mcore_gdbarch_init): Update.
3104 * m68k-tdep.c (m68k_gdbarch_init): Update.
3105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3106 * ia64-tdep.c (ia64_gdbarch_init): Update.
3107 * hppa-tdep.c (hppa_gdbarch_init): Update.
3108 * h8300-tdep.c (h8300_gdbarch_init): Update.
3109 * frv-tdep.c (frv_gdbarch_init): Update.
3110 * cris-tdep.c (cris_gdbarch_init): Update.
3111 * avr-tdep.c (avr_gdbarch_init): Update.
3112 * alpha-tdep.c (alpha_gdbarch_init): Update.
3113 * arm-tdep.c (arm_gdbarch_init): Update.
3114
3115 2003-06-13 Andrew Cagney <cagney@redhat.com>
3116
3117 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3118 mips_o32_use_struct_convention with always_use_struct_convention.
3119
3120 2003-06-12 David Carlton <carlton@kealia.com>
3121
3122 * cp-namespace.c (cp_set_block_scope): Comment out
3123 processing_has_namespace_info branch.
3124
3125 2003-06-12 Jim Blandy <jimb@redhat.com>
3126
3127 Recognize and skip 64-bit PowerPC Linux linkage functions.
3128 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3129 insn_pattern, insns_match_pattern, d_field, ds_field): New
3130 functions, macros, and types for working with PPC instructions.
3131 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3132 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3133 ppc64_skip_trampoline_code): New functions, variables, and macros
3134 for recognizing and skipping linkage functions.
3135 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3136 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3137
3138 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3139 register offsets for both the 32- and 64-bit interfaces.
3140
3141 Actually finish the job started by my change of 2003-05-29.
3142 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3143 other #definition of this.
3144 (ppc_linux_skip_trampoline_code): Remove declaration.
3145 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3146 static.
3147 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3148 method for GDBARCH.
3149
3150 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3151 'long' on ppc64-*-linux*.
3152
3153 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3154 isn't #defined, assume the register doesn't exist: act as if
3155 tdep->ppc_mq_regnum were -1.
3156
3157 * configure.host, configure.tgt: Add entries for
3158 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3159 powerpc/linux.mt.
3160 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3161 New files.
3162
3163 * arch-utils.c (always_use_struct_convention): New function.
3164 * arch-utils.h (always_use_struct_convention): New prototype.
3165 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3166 (alpha_gdbarch_init): Register always_use_struct_convention,
3167 instead of alpha_use_struct_convention.
3168 * cris-tdep.c (cris_use_struct_convention): Delete.
3169 (cris_gdbarch_init): Register always_use_struct_convention,
3170 instead of cris_use_struct_convention.
3171 * frv-tdep.c (frv_use_struct_convention): Delete.
3172 (frv_gdbarch_init): Register always_use_struct_convention,
3173 instead of frv_use_struct_convention.
3174 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3175 (h8300_gdbarch_init): Register always_use_struct_convention,
3176 instead of h8300_use_struct_convention.
3177 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3178 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3179 instead of mips_o32_use_struct_convention.
3180
3181 2003-06-12 Andrew Cagney <cagney@redhat.com>
3182
3183 * wince.c: Include "mips-tdep.h".
3184 * mips-tdep.h (mips_next_pc): Declare.
3185 * mcore-tdep.c: Make more local functions static.
3186 * Makefile.in (wince.o): Update dependencies.
3187
3188 2003-06-12 David Carlton <carlton@kealia.com>
3189
3190 * symtab.c (lookup_symbol_aux_minsyms): Replace
3191 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3192 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3193 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3194 SYMBOL_NATURAL_NAME.
3195
3196 2003-06-12 Andreas Schwab <schwab@suse.de>
3197
3198 * Makefile.in (tuiDisassem.o): Update dependencies.
3199
3200 2003-06-12 David Carlton <carlton@bactrian.org>
3201
3202 * symtab.h: Delete declaration of make_symbol_overload_list.
3203 Add declaration of lookup_partial_symbol.
3204 * symtab.c (remove_params): Move to cp-support.c.
3205 (overload_list_add_symbol, make_symbol_overload_list)
3206 (sym_return_val_size, sym_return_val_index): Ditto.
3207 (lookup_partial_symbol): Make extern.
3208 * cp-support.h: Add declaration of make_symbol_overload_list.
3209 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3210 symtab.h, and block.h.
3211 (remove_params): Move here from symtab.c.
3212 (overload_list_add_symbol, make_symbol_overload_list)
3213 (sym_return_val_size, sym_return_val_index): Ditto.
3214 * valops.c: Include cp-support.h.
3215 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3216 frame_h, and block_h.
3217 (valops.o): Depend on cp_support_h.
3218
3219 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3220
3221 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3222 substitute by NUM_REGS throughout.
3223 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3224 (h8300s_register_name): New function for H8S registers.
3225 (h8300sx_register_name): Ditto for H8SX registers.
3226 (h8300_print_register): Revise register printing, avoid depending
3227 on 32 bit long.
3228 (h8300_register_byte): Only care for H8/300 registers.
3229 (h8300h_register_byte): New function for any other architecture.
3230 (h8300_register_raw_size): Remove.
3231 (h8300_register_virtual_type): Revise to return actually useful
3232 type.
3233 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3234 (h8300h_extract_struct_value_address): New function for any other
3235 architecture.
3236 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3237 set_gdbarch_register_name, set_gdbarch_register_byte,
3238 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3239 Remove calls to set_gdbarch_deprecated_register_size,
3240 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3241 set_gdbarch_deprecated_max_register_raw_size,
3242 set_gdbarch_register_virtual_size and
3243 set_gdbarch_deprecated_max_register_virtual_size entirely.
3244 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3245 set_gdbarch_long_double_bit.
3246
3247 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3248
3249 * doublest.c (convert_doublest_to_floatformat): When dealing
3250 with the implied integer bit, only alter mant_bits if we are
3251 processing a full 32 bits of mantissa.
3252
3253 2003-06-11 David Carlton <carlton@bactrian.org>
3254
3255 * dictionary.h: New.
3256 * dictionary.c: New.
3257 * block.h: Add opaque declaration for struct dictionary.
3258 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3259 'sym' members.
3260 (BLOCK_DICT): New macro.
3261 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3262 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3263 BLOCK_SHOULD_SORT.
3264 (ALL_BLOCK_SYMBOLS): Update definition.
3265 * Makefile.in (SFILES): Add dictionary.c.
3266 (dictionary_h): New.
3267 (COMMON_OBS): Add dictionary.o.
3268 (dictionary.o): New.
3269 (ada-lang.o): Depend on dictionary_h.
3270 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3271 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3272 (mi-cmd-stack.o): Ditto.
3273 (gdbtk-cmds.o): Update dependencies.
3274 (gdbtk-stack.o): Ditto.
3275 * ada-lang.c: Include dictionary.h.
3276 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3277 (fill_in_ada_prototype, debug_print_block): Ditto.
3278 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3279 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3280 'is_sorted'.
3281 * mdebugread.c: Include dictionary.h.
3282 (struct parse_stack): Delete 'maxsyms' member.
3283 (parse_symbol): Update calls to new_block. Delete calls to
3284 shrink_block. Use dictionary methods.
3285 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3286 Update calls to new_symtab. Don't maintain maxsyms data.
3287 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3288 (add_symbol): Just call dict_add_symbol.
3289 (new_symtab): Delete 'maxsyms' argument.
3290 (new_symtab): Update calls to new_block.
3291 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3292 (shrink_block): Delete function.
3293 (fixup_sigtramp): Update call to new_block. Add symbol via
3294 dict_add_symbol.
3295 * jv-lang.c: Include dictionary.h.
3296 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3297 appropriately. Set class_symtab->free_func. Make sure the
3298 blockvector is big enough to hold two blocks.
3299 (add_class_symtab_symbol): Use dictionary methods.
3300 (free_class_block): New function.
3301 (type_from_class): Replace explicit iteration by
3302 ALL_BLOCK_SYMBOLS.
3303 * symtab.h (struct symtab): Replace 'free_ptr' method by
3304 'free_func'.
3305 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3306 sort_symtab_syms.
3307 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3308 sort_symtab_syms.
3309 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3310 Include dictionary.h.
3311 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3312 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3313 sort_symtab_syms.
3314 * objfiles.c: Include dictionary.h.
3315 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3316 * buildsym.c: Include dictionary.h.
3317 (finish_block): Use dictionary methods.
3318 (end_symtab): Set free_func to NULL, not free_ptr.
3319 * tracepoint.c: Include dictionary.h.
3320 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3321 (scope_info): Ditto.
3322 * stack.c: Include dictionary.h.
3323 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3324 (print_block_frame_labels, print_frame_arg_vars)
3325 (print_frame_args): Ditto.
3326 * symmisc.c (free_symtab_block): Use dictionary methods.
3327 (dump_symtab): Ditto.
3328 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3329 Include dictionary.h.
3330 * symfile.h: Delete declarations of sort_block_syms,
3331 sort_symtab_syms.
3332 * symfile.c (sort_block_syms): Delete.
3333 (sort_symtab_syms): Delete.
3334 * symtab.c: Include dictionary.h.
3335 (lookup_block_symbol): Use dictionary iterators.
3336 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3337 (search_symbols, make_symbol_completion_list): Ditto.
3338 (make_symbol_overload_list): Ditto.
3339 * valops.c (value_of_local): Use dict_empty.
3340 Include dictionary.h.
3341
3342 2003-06-11 J. Brobecker <brobecker@gnat.com>
3343
3344 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3345
3346 2003-06-11 David Carlton <carlton@bactrian.org>
3347
3348 * block.h (BLOCK_SHOULD_SORT): Delete.
3349 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3350 blocks.
3351 * ada-lang.c (ada_add_block_symbols): Ditto.
3352 * symfile.c (sort_block_syms): Delete.
3353 (sort_symtab_syms): Ditto.
3354 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3355 declarations.
3356 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3357 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3358 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3359 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3360 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3361 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3362 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3363
3364 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3365
3366 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3367 bits to 128.
3368
3369 2003-06-11 Andrew Cagney <cagney@redhat.com>
3370
3371 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3372 REGISTER_CONVERTIBLE.
3373 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3374 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3375 * gdbarch.h, gdbarch.c: Re-generate.
3376 * arch-utils.h (deprecated_register_convertible_not): Rename
3377 generic_register_convertible_not.
3378 * arch-utils.c (deprecated_register_convertible_not): Rename
3379 generic_register_convertible.
3380 (legacy_convert_register_p, legacy_register_to_value): Update.
3381 * sh-tdep.c (sh64_push_arguments): Update.
3382 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3383 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3384 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3385 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3386 * arch-utils.c (legacy_value_to_register): Update.
3387 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3388 (rs6000_register_convert_to_raw): Make parameter "from" const.
3389 * mips-tdep.c (mips_gdbarch_init): Update.
3390 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3391 * infcmd.c (default_print_registers_info): Update.
3392 * ia64-tdep.c (ia64_gdbarch_init): Update.
3393 (ia64_register_convert_to_raw): Make parameter "from" const.
3394 * i386-tdep.c (i386_gdbarch_init): Update.
3395 (i386_register_convert_to_raw): Update.
3396
3397 2003-06-11 Andrew Cagney <cagney@redhat.com>
3398
3399 * remote-fileio.c: Include "remote-fileio.h".
3400 * Makefile.in (remote-fileio.o): Update dependencies.
3401 (remote_fileio_h): Fix typo.
3402
3403 2003-06-11 Andrew Cagney <cagney@redhat.com>
3404
3405 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3406 (xstormy16_save_dummy_frame_tos): Make static.
3407 (_initialize_xstormy16_tdep): Add declaration.
3408 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3409 * v850-tdep.c: Make local functions static.
3410 (_initialize_v850_tdep): Add declaration.
3411 * sparc-tdep.c: Make local functions static.
3412 (_initialize_sparc_tdep): Add declaration.
3413 * sh-tdep.c: Make local functions static.
3414 (_initialize_sh_tdep): Add declaration.
3415 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3416 * s390-tdep.c: Make local functions static.
3417 (_initialize_s390_tdep): Add declaration.
3418 * dbxread.c (find_stab_function_addr): Make static.
3419 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3420 * ocd.c (_initialize_remote_ocd): Add declaration.
3421 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3422 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3423 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3424 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3425 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3426 * remote-array.c (_initialize_array): Add declaration.
3427 (_initialize_remote_monitors): Add declaration.
3428 * remote-mips.c: Make local functions static.
3429 (_initialize_remote_mips): Add declaration.
3430 * mcore-tdep.c: Make all local functions static.
3431 (_initialize_mcore_tdep): Add declaration.
3432 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3433 * abug-rom.c (_initialize_abug_rom): Add declaration.
3434 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3435 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3436 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3437 * remote-est.c (_initialize_est): Add declaration.
3438 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3439 (m68hc11_call_dummy_address): Make static.
3440 * ia64-tdep.c: Make local functions static.
3441 (_initialize_ia64_tdep): Add declaration.
3442 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3443 * monitor.c (monitor_wait_filter): Make static.
3444 (_initialize_remote_monitors): Add declaration.
3445 * remote-hms.c (_initialize_remote_hms): Add declaration.
3446 * remote-e7000.c (fetch_regs_from_dump): Make static.
3447 (expect_n): Make static.
3448 (_initialize_remote_e7000): Add declaration.
3449 * ser-e7kpc.c: Always include "defs.h".
3450 (_initialize_ser_e7000pc): Add declaration.
3451 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3452 * cris-tdep.c: Make all but one function static.
3453 (_initialize_cris_tdep): Add declaration.
3454 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3455 * solib.c (update_solib_list): Make static.
3456 (_initialize_solib): Add declaration.
3457 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3458 (_initialize_avr_tdep): Add declaration.
3459 * remote-rdi.c (voiddummy): Make static.
3460 (_initialize_remote_rdi): Add declaration.
3461 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3462 * remote-rdp.c (send_rdp): Make static.
3463 (_initialize_remote_rdp): Add declaration.
3464 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3465
3466 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3467
3468 * remote-fileio.c: Make ari happy.
3469
3470 2003-06-10 J. Brobecker <brobecker@gnat.com>
3471
3472 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3473 fetching the trailing bytes of the buffer we are about to write.
3474
3475 2003-06-10 Andrew Cagney <cagney@redhat.com>
3476
3477 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3478 * Makefile.in (remote-fileio.o): Update dependencies.
3479 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3480 include <setjmp.h>, or <sys/types.h> conditional on USG.
3481 (remote_fio_jmp_buf): Delete global variable.
3482
3483 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3484 Martin M. Hunt <hunt@redhat.com>
3485
3486 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3487 (SFILES): Add remote-fileio.c.
3488 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3489 dependencies for building remote.o.
3490 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3491 * remote-fileio.h: New header file defining remote File-I/O interface.
3492 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3493 static storage class.
3494 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3495 'F' packet.
3496 (_initialize_remote): Call initialize_remote_fileio().
3497 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3498 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3499 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3500 (captured_main): Initialize new ui_files.
3501 * ui-file.c: Add read and fgets input functions.
3502 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3503 (null_file_read): New function.
3504 (ui_file_read): New function.
3505 (set_ui_file_read): New function.
3506 (stdio_file_read): New function.
3507 * ui-file.h: New type ui_file_read_ftype.
3508 (set_ui_file_read): Declare.
3509 (ui_file_read): Declare.
3510
3511 2003-06-09 Andrew Cagney <cagney@redhat.com>
3512
3513 * frame.h (deprecated_unwind_get_saved_register): Rename
3514 generic_unwind_get_saved_register, update comments.
3515 * mips-tdep.c (mips_get_saved_register): Update.
3516 * frame.c (deprecated_unwind_get_saved_register): Update.
3517
3518 2003-06-09 Andrew Cagney <cagney@redhat.com>
3519
3520 * vax-tdep.c (vax_frame_locals_address): Delete function.
3521 (vax_gdbarch_init): Do not set frame_locals_address.
3522 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3523 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3524 * s390-tdep.c (s390_frame_args_address): Delete function.
3525 (s390_gdbarch_init): Do not set frame_args_address or
3526 frame_locals_address.
3527 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3528 (ns32k_gdbarch_init): Do not set frame_locals_address.
3529 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3530 (hppa_frame_locals_address): Delete function.
3531 (hppa_gdbarch_init): Do not set frame_args_address, or
3532 frame_locals_address.
3533 * arm-tdep.c (arm_frame_args_address): Delete.
3534 (arm_frame_locals_address): Delete.
3535 (arm_gdbarch_init): Do not set frame_args_address, or
3536 frame_locals_address.
3537
3538 2003-06-09 Andrew Cagney <cagney@redhat.com>
3539
3540 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3541 * gdbarch.h, gdbarch.c: Re-generate.
3542 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3543 * arch-utils.c (frame_num_args_unknown): Delete function.
3544 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3545 (frame_info): Use FRAME_NUM_ARGS_P.
3546 * arm-tdep.c (arm_frame_num_args): Delete function.
3547 (arm_gdbarch_init): Do not set frame_num_args.
3548 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3549 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3550 (hppa_gdbarch_init): Do not set frame_num_args.
3551 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3552 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3553 frame_num_args to default frame_num_args_unknown.
3554 * v850-tdep.c (v850_gdbarch_init): Ditto.
3555 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3556 * sh-tdep.c (sh_gdbarch_init): Ditto.
3557 * s390-tdep.c (s390_gdbarch_init): Ditto.
3558 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3559 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3560 * mips-tdep.c (mips_gdbarch_init): Ditto.
3561 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3562 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3563 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3564 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3565 * i386-tdep.c (i386_gdbarch_init): Ditto.
3566 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3567 * frv-tdep.c (frv_gdbarch_init): Ditto.
3568 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3569 * cris-tdep.c (cris_gdbarch_init): Ditto.
3570 * avr-tdep.c (avr_gdbarch_init): Ditto.
3571 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3572
3573 2003-06-09 Andrew Cagney <cagney@redhat.com>
3574
3575 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3576 (print_frame_args): Moved to "stack.c".
3577 * stack.c: Include "gdb_assert.h".
3578 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3579 (print_frame_args): Moved from "printcmd.c".
3580 * frame.h (print_frame_args): Delete declaration.
3581 * Makefile.in (stack.o): Update dependencies.
3582
3583 2003-06-08 Andrew Cagney <cagney@redhat.com>
3584
3585 * frame.c (get_prev_frame): Remove reference to
3586 frame_args_address_correct in comments.
3587 * frame-base.c (default_frame_args_address): Delete code
3588 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3589 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3590 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3591 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3592 (vax_frame_args_address_correct): Delete declaration.
3593
3594 2003-06-08 Andrew Cagney <cagney@redhat.com>
3595
3596 * gdbarch.sh (UNWIND_SP): Add.
3597 * gdbarch.h, gdbarch.c: Re-generate.
3598 * frame.c (frame_sp_unwind): New function.
3599 (get_frame_sp): New function.
3600 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3601 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3602 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3603 value.
3604 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3605 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3606
3607 2003-06-08 Andrew Cagney <cagney@redhat.com>
3608
3609 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3610 REMOTE_BREAKPOINT.
3611 * remote.c: Update.
3612 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3613 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3614 * config/m68k/tm-sun3.h: Update.
3615 * config/m68k/tm-m68klynx.h: Update.
3616 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3617
3618 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3619 trad_frame". Update comments.
3620 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3621 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3622 (trad_frame_register_value, trad_frame_prev_register): Update.
3623
3624 2003-06-08 Andrew Cagney <cagney@redhat.com>
3625
3626 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3627 from GCC's acinclude.m4.
3628 * configure.in: Check for getopt's delcaration.
3629 * aclocal.m4, config.in, configure: Re-generate.
3630 * main.c (error_init): Delete declaration.
3631 * defs.h (error_init): Declare.
3632 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3633 (rs6000_convert_from_func_ptr_addr): Make static.
3634 (_initialize_rs6000_tdep): Add declaration.
3635 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3636 (show_commands, set_verbose, show_history): Delete declaration.
3637 * top.h (set_verbose): Add declaration.
3638 (show_history, set_history, show_commands): Add declaration.
3639 (do_restore_instream_cleanup): Add declaration.
3640 * objc-lang.c (specialcmp): Make static.
3641 (print_object_command): Make static.
3642 (find_objc_msgsend): Make static.
3643 (find_objc_msgcall_submethod_helper): Make static.
3644 (find_objc_msgcall_submethod): Make static.
3645 (_initialize_objc_language): Add declaration.
3646 (find_implementation_from_class): Make static.
3647 (find_implementation): Make static.
3648 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3649 * objc-lang.h (lookup_struct_typedef): Add declaration.
3650 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3651 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3652 (do_restore_user_call_depth): Make static.
3653 (do_restore_instream_cleanup): Delete declaration.
3654 (dont_repeat): Delete declaration.
3655 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3656 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3657 * reggroups.c (_initialize_reggroup): Add declaration.
3658 * cp-support.c (_initialize_cp_support): Add declaration.
3659 * cp-abi.c (_initialize_cp_abi): Add declaration.
3660 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3661 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3662 (_initialize_gnu_v3_abi): Add declaration.
3663 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3664 (_initialize_gnu_v2_abi): Add declaration.
3665 * frame-base.c (_initialize_frame_base): Add declaration.
3666 * doublest.c (floatformat_from_length): Make static.
3667 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3668 * frame.c (create_sentinel_frame): Make static.
3669 (_initialize_frame): Add declaration.
3670 * top.c (do_catch_errors): Make static.
3671 (gdb_rl_operate_and_get_next_completion): Make static.
3672 * typeprint.c: Include "typeprint.h".
3673 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3674 (sentinel_frame_this_id): Make static.
3675 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3676 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3677 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3678 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3679 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3680 * maint.c (maintenance_print_architecture): Make static.
3681 * signals/signals.c (_initialize_signals): Add declaration.
3682 * std-regs.c (_initialize_frame_reg): Add declaration.
3683 * jv-exp.y (push_variable): ISO C definition.
3684 (push_qualified_expression_name): Ditto.
3685 * memattr.c (_initialize_mem): Add declaration.
3686 * remote.c (remote_check_watch_resources): Make static.
3687 (remote_stopped_by_watchpoint): Make static.
3688 (remote_stopped_data_address): Make static.
3689 * d10v-tdep.c (nr_dmap_regs): Make static.
3690 (a0_regnum): Make static.
3691 (d10v_frame_unwind_cache): Make static.
3692 (d10v_frame_p): Make static.
3693 * osabi.c (show_osabi): Make static.
3694 (_initialize_gdb_osabi): Add extern declaration.
3695 * gdbtypes.c (make_qualified_type): Make static.
3696 (safe_parse_type): Make static.
3697 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3698 * macrotab.c (macro_bcache_free): Make static.
3699 * interps.c (interp_set_quiet): Make static.
3700 (interpreter_exec_cmd): Make static.
3701 * stack.h (select_frame_command): New file.
3702 * stack.c: Include "stack.h".
3703 (select_frame_command_wrapper): Delete function.
3704 (select_frame_command): Make global.
3705 * infcall.c: Include "infcall.h".
3706 * linespec.c: Include "linespec.h".
3707 * symfile.c (sections_overlap): Make static.
3708 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3709 * charset.c (_initialize_charset): Add missing prototype.
3710 * regcache.c (init_legacy_regcache_descr): Make static.
3711 (do_regcache_xfree): Make static.
3712 (regcache_xfer_part): Make static.
3713 (_initialize_regcache): Add missing prototype.
3714 * breakpoint.c (parse_breakpoint_sals): Make static.
3715 (breakpoint_sals_to_pc): Make static.
3716 * interps.h (clear_interpreter_hooks): ISO C declaration.
3717 * Makefile.in (stack_h): Define.
3718 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3719 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3720
3721 2003-06-08 Andrew Cagney <cagney@redhat.com>
3722
3723 * Makefile.in (d10v-tdep.o): Update dependencies.
3724 (SFILES): Add trad-frame.c.
3725 (trad_frame_h): Define.
3726 (COMMON_OBS): Add trad-frame.o.
3727 (trad-frame.o): Specify dependencies.
3728 * d10v-tdep.c: Include "trad-frame.h".
3729 (saved_regs_unwinder): Delete function.
3730 (d10v_frame_prev_register): Use trad_frame_prev_register.
3731 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3732 trad_frame", delete "regs" and "prev_sp".
3733 (prologue_find_regs): Use trad-frame.
3734 * trad-frame.h, trad-frame.c: New files.
3735
3736 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3737
3738 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3739
3740 2003-06-07 Adam Fedor <fedor@gnu.org>
3741
3742 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3743 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3744 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3745 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3746 resolve_msgsend_super, resolve_msgsend_super_stret):
3747 Use it.
3748
3749 2003-06-07 Andrew Cagney <cagney@redhat.com>
3750
3751 * symfile.h: Re-indent, clean up comments.
3752
3753 2003-06-07 Andrew Cagney <cagney@redhat.com>
3754
3755 * inferior.h (deprecated_write_sp): Replace
3756 generic_target_write_sp.
3757 * regcache.c (deprecated_write_sp): Replace
3758 generic_target_write_sp.
3759 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3760 * vax-tdep.c (vax_gdbarch_init): Update.
3761 * v850-tdep.c (v850_gdbarch_init): Update.
3762 * sparc-tdep.c (sparc_gdbarch_init): Update.
3763 * sh-tdep.c (sh_gdbarch_init): Update.
3764 * s390-tdep.c (s390_gdbarch_init): Update.
3765 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3766 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3767 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3768 * mcore-tdep.c (mcore_gdbarch_init): Update.
3769 * m68k-tdep.c (m68k_gdbarch_init): Update.
3770 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3771 * ia64-tdep.c (ia64_gdbarch_init): Update.
3772 * h8300-tdep.c (h8300_gdbarch_init): Update.
3773 * frv-tdep.c (frv_gdbarch_init): Update.
3774 * cris-tdep.c (cris_gdbarch_init): Update.
3775 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3776
3777 2003-06-07 Andrew Cagney <cagney@redhat.com>
3778
3779 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3780 Assert that PC_REGNUM is valid.
3781 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3782
3783 2003-06-07 Andrew Cagney <cagney@redhat.com>
3784
3785 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3786 * gdbarch.h, gdbarch.c: Regenerate.
3787 * mn10300-tdep.c: Include "gdb_assert.h".
3788 (mn10300_read_fp): New function.
3789 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3790 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3791 * ia64-tdep.c: Include "gdb_assert.h".
3792 (ia64_read_fp): New function.
3793 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3794 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3795 * regcache.c (generic_target_read_sp): Delete function.
3796 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3797 * inferior.h (generic_target_read_sp): Delete declaration.
3798 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3799 generic_target_read_sp.
3800 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3801 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3802 * sh-tdep.c (sh_gdbarch_init): Ditto.
3803 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3804 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3805
3806 2003-06-07 Andrew Cagney <cagney@redhat.com>
3807
3808 * gdbarch.sh: Comment each field of startup_gdbarch.
3809 * gdbarch.h, gdbarch.c: Re-generate.
3810
3811 2003-06-07 Andrew Cagney <cagney@redhat.com>
3812
3813 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3814 * gdbarch.h, gdbarch.c: Re-generate.
3815 * regcache.c: Update comments on read_pc et.al.
3816 (generic_target_read_pc): Delete function.
3817 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3818 * inferior.h (generic_target_read_pc): Delete declaration.
3819 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3820 generic_target_read_pc.
3821 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3822 * sh-tdep.c (sh_gdbarch_init): Ditto.
3823 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3824 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3825
3826 2003-06-07 Andrew Cagney <cagney@redhat.com>
3827
3828 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3829 "index" with "special_local_sect". Use strcmp instead of STREQ.
3830 Append period to coments.
3831
3832 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3833
3834 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3835 (elfstab_offset_sections): Likewise.
3836 * gdb-stabs.h (stab_section_info): Likewise.
3837 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3838 * objfiles.c (objfile_relocate): Likewise.
3839 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3840 * remote.c (get_offsets): Likewise.
3841 (remote_cisco_objfile_relocate): Likewise.
3842 * somread.c (som_symfile_offsets): Likewise.
3843 * symfile.c (alloc_section_addr_info): New function.
3844 (build_section_addr_info_from_section_tab): Use it.
3845 (free_section_addr_info): Adjust.
3846 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3847 (syms_from_objfile): Allocate local_addr dynamically.
3848 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3849 dynamically.
3850 (add_symbol_file_command): Allocate sect_opts dynamically.
3851 (reread_symbols): Avoid use of SECT_OFF_MAX.
3852 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3853 (alloc_section_addr_info): Declare it.
3854 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3855 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3856 dynamically.
3857 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3858
3859 2003-06-06 Andrew Cagney <cagney@redhat.com>
3860
3861 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3862 (d10v_frame_unwind_cache): Do not set "return_pc".
3863
3864 2003-06-06 Michael Snyder <msnyder@redhat.com>
3865
3866 * h8300-tdep.c: Make tidy (long lines).
3867
3868 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3869
3870 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3871 to regcache_collect().
3872
3873 2003-06-05 J. Brobecker <brobecker@gnat.com>
3874
3875 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3876 pc_in_sigtramp multiarch method.
3877 (hppa_hpux_som_init_abi): Use it.
3878 (hppa_hpux_elf_init_abi): Likewise.
3879 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3880 macro has been multiarched.
3881 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3882 macro here, as hppa64 isn't multiarched yet.
3883
3884 2003-06-05 Andrew Cagney <cagney@redhat.com>
3885
3886 * Makefile.in (value_h): Add $(frame_h).
3887 * value.h: Include "frame.h".
3888 (struct value): Replace "frame_addr" with "frame_id".
3889 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3890 * values.c (allocate_value): Use VALUE_FRAME_ID.
3891 (value_copy): Use VALUE_FRAME_ID.
3892 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3893 * valops.c (value_assign): Update. Use frame_find_by_id.
3894
3895 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3896
3897 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3898 in each pass.
3899
3900 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3901
3902 * thread-db.c (check_event): For create/death event breakpoints,
3903 loop through all messages to ensure that we read the message
3904 corresponding to the breakpoint we are at.
3905
3906 2003-06-04 Michael Snyder <msnyder@redhat.com>
3907
3908 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3909
3910 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3911
3912 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3913 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3914 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3915 when handling .eh_frame sections.
3916
3917 2003-06-04 J. Brobecker <brobecker@gnat.com>
3918
3919 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3920 prepare_to_proceed procedure instead of the hppa-specific one.
3921 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3922
3923 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3924
3925 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3926 * config.in: Regenerated.
3927 * configure.in: Add test for syscall function and check for
3928 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3929 * configure: Regenerated.
3930 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3931 <sys/syscall.h>.
3932 (kill_lwp): New function that uses tkill syscall or
3933 uses kill, depending on whether threading model is nptl or not.
3934 All callers of kill() changed to use kill_lwp().
3935 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3936 see if all threads have already exited in the nptl model.
3937 (stop_and_resume_callback): New callback function used by the
3938 lin_lwp_wait thread exit handling code.
3939 (stop_wait_callback): Check for threads already having exited and
3940 delete such threads fromt the lwp list when discovered.
3941 (stop_callback): Don't assert retcode of kill call.
3942
3943 Roland McGrath <roland@redhat.com>
3944 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3945 nptl libthread_db.
3946
3947 2003-06-03 Richard Henderson <rth@redhat.com>
3948
3949 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3950 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3951 (alpha_sigtramp_frame_prev_register): Likewise.
3952 (alpha_heuristic_frame_prev_register): Likewise.
3953 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3954
3955 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3956 alpha-specific register id names.
3957 (alpha_mdebug_frame_unwind_cache): Likewise.
3958 (alpha_mdebug_frame_prev_register): Likewise.
3959
3960 2003-06-03 Richard Henderson <rth@redhat.com>
3961
3962 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3963 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3964 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3965 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3966 unwind routines.
3967 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3968 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3969 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3970
3971 * alpha-linux-tdep.c: Remove unnecessary includes.
3972 * Makefile.in (alpha-linux-tdep.o): Update.
3973
3974 2003-06-03 Richard Henderson <rth@redhat.com>
3975
3976 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3977 (alphabsd_fill_fpreg): Likewise.
3978
3979 2003-06-03 J. Brobecker <brobecker@gnat.com>
3980
3981 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3982 references to struct frame_info fields by calls to the equivalent
3983 accessors. Necessary now that frame_info is opaque.
3984
3985 2003-06-03 J. Brobecker <brobecker@gnat.com>
3986
3987 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3988 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3989 structure, field no longer exists.
3990
3991 2003-06-03 J. Brobecker <brobecker@gnat.com>
3992
3993 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3994 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3995
3996 2003-06-03 J. Brobecker <brobecker@gnat.com>
3997
3998 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3999 references to struct frame_info fields by calls to the equivalent
4000 accessors. Necessary now that frame_info is opaque.
4001
4002 2003-06-03 J. Brobecker <brobecker@gnat.com>
4003
4004 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4005 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4006 structure, field no longer exists.
4007
4008 2003-06-03 Theodore A. Roth <troth@openavr.org>
4009
4010 * remote.c (init_remote_state): Compute sizeof_g_packet by
4011 accumulation of the size of all registers instead of blindly using
4012 DEPRECATED_REGISTER_BYTES.
4013
4014 2003-06-03 Michael Snyder <msnyder@redhat.com>
4015
4016 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4017 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4018 for h8300sx.
4019
4020 2003-06-03 J. Brobecker <brobecker@gnat.com>
4021
4022 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4023 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4024
4025 2003-06-03 Andrew Cagney <cagney@redhat.com>
4026
4027 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4028 (sparc_convert_to_raw): Delete function.
4029 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4030 register_convert_to_virtual.
4031
4032 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4033
4034 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4035 layer if not dealing with a statically-linked threaded program.
4036
4037 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4038
4039 * solib.c (solib_open): Update comment to reflect actual search order.
4040
4041 2003-06-03 Andrew Cagney <cagney@redhat.com>
4042
4043 * frame.c (get_frame_memory_signed): New function.
4044 (get_frame_memory, get_frame_memory_unsigned): New function.
4045 (get_frame_arch): New function.
4046 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4047 (get_frame_memory, get_frame_unsigned_memory): Declare.
4048 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4049 get_frame_memory_unsigned and get_frame_arch.
4050 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4051
4052 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4053
4054 * MAINTAINERS (write after approval): Add myself.
4055
4056 2003-06-03 Jim Blandy <jimb@redhat.com>
4057
4058 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4059 elements of gregset_t are 64 bits each, but access registers
4060 are still 32 bits, so they're packed two per gregset_t
4061 element. Unpack/pack them properly.
4062
4063 2003-06-02 David Carlton <carlton@bactrian.org>
4064
4065 * linespec.c (find_methods): Break out code into
4066 add_matching_methods and add_constructors.
4067 (add_matching_methods): New.
4068 (add_constructors): Ditto.
4069
4070 2003-06-02 Andrew Cagney <cagney@redhat.com>
4071
4072 * sparc-tdep.c (sparc_print_registers): Delete call to
4073 REGISTER_CONVERTIBLE.
4074 (sparc_gdbarch_init): Do not set register_convertible.
4075 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4076 * frv-tdep.c (frv_gdbarch_init): Ditto.
4077 * cris-tdep.c (cris_gdbarch_init): Ditto.
4078
4079 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4080
4081 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4082 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4083 (syms_from_objfile): Ditto.
4084
4085 2003-06-03 Andreas Schwab <schwab@suse.de>
4086
4087 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4088 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4089
4090 2003-06-02 Richard Henderson <rth@redhat.com>
4091
4092 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4093 a member of all_reggroup.
4094
4095 2003-06-02 Richard Henderson <rth@redhat.com>
4096
4097 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4098 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4099 (alpha_lds, alpha_sts): New.
4100 (alpha_convert_register_p): Change from _register_convertible.
4101 (alpha_register_to_value): Change from _convert_to_virtual;
4102 restructure and fail for type sizes other than 4 or 8.
4103 (alpha_value_to_register): Similarly.
4104 (alpha_extract_return_value): Use alpha_sts.
4105 (alpha_store_return_value): Use alpha_lds.
4106 (alpha_gdbarch_init): Update hooks.
4107
4108 2003-06-02 Richard Henderson <rth@redhat.com>
4109
4110 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4111 regnum identifiers.
4112 (alpha_sigtramp_register_address): Likewise.
4113
4114 2003-06-02 Richard Henderson <rth@redhat.com>
4115
4116 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4117 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4118 * alpha-tdep.h: Declare them.
4119
4120 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4121 Remove zerobuf. Don't error on UNIQUE.
4122 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4123 (ALPHA_REGSET_UNIQUE): Provide default.
4124 (supply_gregset): Use alpha_supply_int_regs.
4125 (fill_gregset): Use alpha_fill_int_regs.
4126 (supply_fpregset): Use alpha_supply_fp_regs.
4127 (fill_fpregset): Use alpha_fill_fp_regs.
4128 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4129 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4130 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4131 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4132 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4133 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4134
4135 2003-06-02 Richard Henderson <rth@redhat.com>
4136
4137 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4138
4139 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4140 (alpha_store_return_value): Likewise.
4141
4142 2003-06-02 David Carlton <carlton@math.stanford.edu>
4143
4144 * block.c (contained_in): Add 'const' to arguments.
4145 (block_function): Ditto.
4146 * block.h: Update declarations for block_function and
4147 contained_in.
4148
4149 2003-06-02 David Carlton <carlton@math.stanford.edu>
4150
4151 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4152 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4153 * p-valprint.c (pascal_val_print): Ditto.
4154 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4155
4156 2003-06-02 Richard Henderson <rth@redhat.com>
4157
4158 * alpha-tdep.c (alpha_push_dummy_call): Use
4159 builtin_type_ieee_double_little instead of builtin_type_double.
4160
4161 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4162 sign-extension of 32-bit values.
4163 (alpha_store_return_value): Similarly.
4164
4165 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4166 (alpha_extract_return_value): Likewise.
4167 (alpha_store_return_value): Likewise.
4168
4169 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4170 (alpha_store_return_value): Error on IEEE Quad floats.
4171
4172 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4173 (alpha_extract_struct_value_address): Likewise.
4174 (alpha_store_return_value): Likewise.
4175 (alpha_store_struct_return): Remove.
4176 (alpha_gdbarch_init): Update hook registration to match.
4177
4178 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4179 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4180 macros where appropriate.
4181 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4182 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4183
4184 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4185 for SP, GP; void_func_ptr for PC; non-language-specific types
4186 for all others.
4187 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4188
4189 2003-06-02 Richard Henderson <rth@redhat.com>
4190
4191 * top.h (lim_at_start): Declare.
4192 * main.c (captured_main): Set it.
4193 * top.c (lim_at_start): Define.
4194 (command_loop): Use it instead of &environ.
4195 * event-top.c (command_handler): Likewise.
4196
4197 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4198
4199 * mipsnbsd-tdep.c: Update copyright years.
4200 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4201
4202 2003-06-01 Richard Henderson <rth@redhat.com>
4203
4204 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4205 (alpha-linux-tdep.o): Update dependencies.
4206 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4207 * alpha-mdebug-tdep.c: Remove unneeded includes.
4208
4209 2003-06-01 Richard Henderson <rth@redhat.com>
4210
4211 * alpha-tdep.c (alpha_register_reggroup_p): New.
4212 (alpha_gdbarch_init): Register it.
4213
4214 2003-06-02 Andrew Cagney <cagney@redhat.com>
4215
4216 * dwarfread.c: Eliminate "register"
4217 (decode_die_type): Eliminate assignment within "if".
4218 (struct_type, decode_array_element_type): Ditto.
4219 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4220 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4221 (decode_modified_type, completedieinfo): Ditto.
4222 * block.c: Eliminate "register".
4223 (blockvector_for_pc_sect): Eliminate assignment within "if".
4224 * cp-support.h (struct symbol): Opaque declaration.
4225 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4226
4227 2003-06-01 Richard Henderson <rth@redhat.com>
4228
4229 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4230 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4231
4232 2003-06-01 Adam Fedor <fedor@gnu.org>
4233
4234 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4235 * gdbarch.[ch]: Regenerate.
4236 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4237 (hppa_gdbarch_init): Set it in the gdbarch vector.
4238 * i386-tdep.c (i386_fetch_pointer_argument): New
4239 (i386_gdbarch_init): Set it into gdbarch.
4240 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4241 (rs6000_gdbarch_init): Set it in gdbarch.
4242 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4243 (sparc_gdbarch_init): Set it in gdbarch.
4244
4245 2003-06-01 Andrew Cagney <cagney@redhat.com>
4246
4247 * defs.h (extract_address): Delete declaration.
4248 * findvar.c (extract_address): Delete function.
4249 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4250 extract_address with the inline equivalent,
4251 extract_unsigned_integer.
4252 (xstormy16_extract_struct_value_address): Ditto.
4253 (xstormy16_pointer_to_address): Ditto.
4254 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4255 * v850-tdep.c (v850_push_arguments): Ditto.
4256 (v850_extract_return_value): Ditto.
4257 (v850_extract_struct_value_address): Ditto.
4258 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4259 (sparcnbsd_get_longjmp_target_64): Ditto.
4260 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4261 (get_longjmp_target): Ditto.
4262 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4263 (sh64_extract_struct_value_address): Ditto.
4264 (sh_push_arguments): Ditto.
4265 (sh64_push_arguments): Ditto.
4266 * remote-vxsparc.c (vx_read_register): Ditto.
4267 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4268 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4269 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4270 * mipsv4-nat.c (get_longjmp_target): Ditto.
4271 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4272 * mips-nat.c (get_longjmp_target): Ditto.
4273 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4274 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4275 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4276 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4277 * irix5-nat.c (get_longjmp_target): Ditto.
4278 * irix4-nat.c (get_longjmp_target): Ditto.
4279 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4280 (ia64_push_arguments): Ditto.
4281 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4282 * h8300-tdep.c (h8300_push_arguments): Ditto.
4283 (h8300_store_return_value): Ditto.
4284 (h8300_extract_struct_value_address): Ditto.
4285 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4286 (frv_push_arguments): Ditto.
4287 * avr-tdep.c (avr_pointer_to_address): Ditto.
4288 (avr_push_arguments): Ditto.
4289 * arm-tdep.c (arm_push_dummy_call): Ditto.
4290 (arm_get_longjmp_target): Ditto.
4291 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4292 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4293 (alpha_get_longjmp_target): Ditto.
4294
4295 * solib-irix.c (extract_mips_address): Inline extract_address,
4296 replacing it with extract_signed_integer.
4297 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4298 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4299 (first_link_map_member, open_symbol_file_object): Ditto.
4300 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4301 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4302 (LM_NEXT, LM_NAME): Ditto.
4303
4304 2003-06-01 Richard Henderson <rth@redhat.com>
4305
4306 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4307 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4308 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4309 (alpha_cannot_store_register): Likewise.
4310 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4311 * alpha-nat.c (supply_gregset): Likewise.
4312 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4313
4314 2003-06-01 Andrew Cagney <cagney@redhat.com>
4315
4316 * infcall.c (call_function_by_hand): Update comment on
4317 DEPRECATED_DUMMY_WRITE_SP.
4318
4319 * mips-tdep.c (mips_gdbarch_init): Do not set
4320 deprecated_dummy_write_sp.
4321 (mips_eabi_push_dummy_call): Set the SP register.
4322 (mips_o64_push_dummy_call): Set the SP register.
4323 (mips_o32_push_dummy_call): Set the SP register.
4324 (mips_n32n64_push_dummy_call): Set the SP register.
4325
4326 2003-06-01 Richard Henderson <rth@redhat.com>
4327
4328 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4329 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4330 (supply_gregset): Likewise.
4331 * alpha-tdep.c (alpha_store_return_value): Likewise.
4332 (alpha_get_longjmp_target): Likewise.
4333 (alpha_register_name): Constify array.
4334 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4335 deprecated_register_size, deprecated_register_bytes,
4336 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4337 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4338 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4339
4340 2003-06-01 Richard Henderson <rth@redhat.com>
4341
4342 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4343 from arg_reg_buffer to regcache to avoid double conversion.
4344
4345 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4346
4347 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4348 SP_REGNUM.
4349 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4350 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4351
4352 2003-06-01 Richard Henderson <rth@redhat.com>
4353
4354 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4355 (decode_frame_entry): Set it. Skip FDE augmentation.
4356
4357 2003-06-01 Richard Henderson <rth@redhat.com>
4358
4359 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4360 not overlapping PC_REGNUM.
4361
4362 2003-06-01 Richard Henderson <rth@redhat.com>
4363
4364 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4365 alpha_push_arguments. Don't dump argument register data to
4366 the target stack. Fix float and 128-bit long double semantics.
4367 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4368 (alpha_fix_call_dummy): Remove.
4369 (alpha_call_dummy_words): Remove.
4370 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4371
4372 2003-06-01 Richard Henderson <rth@redhat.com>
4373
4374 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4375
4376 2003-06-01 Andrew Cagney <cagney@redhat.com>
4377
4378 * mips-tdep.c (is_mips16_addr): New function.
4379 (make_mips16_addr, unmake_mips16_addr): New functions.
4380 (pc_is_mips16, mips_fetch_instruction): Use.
4381 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4382 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4383 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4384 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4385 TARGET_MIPS.
4386 * config/mips/tm-mips.h: Update copyright.
4387 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4388 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4389 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4390 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4391 (TM_PRINT_INSN_MACH): Delete.
4392 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4393
4394 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4395 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4396 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4397 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4398 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4399 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4400 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4401 mips*-*-riscos* and mips*-*-sysv* onto mips.
4402 * config/mips/mips64.mt: New file.
4403 * config/mips/mips.mt: New file.
4404 * config/mips/littlemips.mt: Delete file.
4405 * config/mips/decstation.mt: Delete file.
4406 * config/mips/vr4300el.mt: Delete file.
4407 * config/mips/vr5000el.mt: Delete file.
4408 * config/mips/vr5000.mt: Delete file.
4409 * config/mips/vr4100.mt: Delete file.
4410 * config/mips/vr4xxxel.mt: Delete file.
4411 * config/mips/vr4300.mt: Delete file.
4412 * config/mips/vr4xxx.mt: Delete file.
4413 * config/mips/bigmips.mt: Delete file.
4414 * config/mips/bigmips64.mt: Delete file.
4415 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4416 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4417 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4418 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4419 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4420 "tm-bigmips.h".
4421 * config/mips/tm-irix3.h: Ditto.
4422 * config/mips/tm-mipsv4.h: Ditto.
4423 * config/mips/tm-embed.h: Ditto.
4424 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4425 "tm-bigmips64.h".
4426 * config/mips/tm-vr5000el.h: Delete file.
4427 * config/mips/tm-tx39l.h: Delete file.
4428 * config/mips/tm-vr4300el.h: Delete file.
4429 * config/mips/tm-vr4xxxel.h: Delete file.
4430 * config/mips/tm-vr4300.h: Delete file.
4431 * config/mips/tm-vr4100.h: Delete file.
4432 * config/mips/tm-vr4xxx.h: Delete file.
4433 * config/mips/tm-vr5000.h: Delete file.
4434 * config/mips/tm-embedl64.h: Delete file.
4435 * config/mips/tm-embedl.h: Delete file.
4436 * config/mips/tm-embed64.h: Delete file.
4437 * config/mips/tm-bigmips64.h: Delete file.
4438 * config/mips/tm-bigmips.h: Delete file.
4439
4440 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4441
4442 Fix gdb/1216.
4443 * shnbsd-nat.c: Include "sh-tdep.h".
4444
4445 From Richard Henderson <rth@redhat.com>:
4446 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4447
4448 2003-05-31 Andrew Cagney <cagney@redhat.com>
4449
4450 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4451 forward declaration.
4452 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4453 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4454 (mips_find_saved_regs): Use set_reg_offset.
4455 (mips_frame_init_saved_regs): Delete function.
4456 (mips_pop_frame): Call mips_find_saved_regs instead of
4457 DEPRECATED_FRAME_INIT_SAVED_REGS.
4458
4459 2003-05-31 Andrew Cagney <cagney@redhat.com>
4460
4461 * mips-tdep.c (mips_gdbarch_init): Do not set
4462 deprecated_max_register_raw_size, register_virtual_size, and
4463 deprecated_max_register_virtual_size.
4464
4465 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4466
4467 * i386-tdep.c: Include "dwarf2-frame.h".
4468 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4469 * Makefile.in (i386-tdep.o): Update dependencies.
4470
4471 * dwarf2-frame.c, dwarf2-frame.h: New files.
4472 * Makefile.in (SFILES): Add dwarf2-frame.c.
4473 (dwarf2_frame_h): Define.
4474 (COMMON_OBS): Add dwarf2-frame.o.
4475 (dwarf2-frame.o): Add dependencies.
4476
4477 2003-05-31 Andreas Jaeger <aj@suse.de>
4478
4479 * x86-64-linux-nat.c: Fix comment.
4480
4481 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4482
4483 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4484 function signature.
4485
4486 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4487 have a sigcontext_addr handler.
4488 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4489 sigcontext_addr handler.
4490
4491 2003-05-31 Andrew Cagney <cagney@redhat.com>
4492
4493 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4494 (print_fp_register_row): Replace do_fp_register_row.
4495 (mips_print_fp_register): Add "file" and "frame" parameters.
4496 (mips_print_register): Add "file" and "frame" parameters.
4497 (mips_print_registers_info): Replace mips_do_registers_info.
4498 (mips_gdbarch_init): Set print_registers_info instead of
4499 deprecated_do_registers_info.
4500 (mips_read_fp_register_single): Add "frame" parameter.
4501 (mips_read_fp_register_double): Add "frame" parameter.
4502
4503 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4504
4505 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4506 Fixes a bug where GDB would print the wrong register names for
4507 targets without SSE.
4508
4509 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4510 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4511 registers.
4512
4513 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4514 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4515 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4516 TDEP->sc_sp_offset.
4517
4518 From Michal Ludvig <mludvig@suse.cz>:
4519 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4520 and `sc_num_regs'.
4521 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4522 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4523 I386_ST0_REGNUM): Move here from...
4524 * i386-tdep.c: ... here.
4525 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4526 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4527 registers if possible.
4528 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4529 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4530 Remove variables.
4531 (i386bsd_sc_reg_offset): New variable.
4532 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4533 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4534 TDEP->sc_sp_offset.
4535 (i386fbsd_sc_reg_offset): New variable.
4536 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4537 TDEP->sc_num_regs.
4538 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4539 variables.
4540 (i386fbsd4_sc_reg_offset): New variable.
4541 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4542 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4543 TDEP->sc_sp_offset.
4544 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4545 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4546 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4547 Remove variables.
4548 (i386nbsd_sc_reg_offset): New variable.
4549 (i386nbsd_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 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4553 Remove variables.
4554 (i386obsd_sc_reg_offset): New variable.
4555 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4556 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4557 TDEP->sc_sp_offset.
4558 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4559 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4560 for frame pointer offset in `struct sigcontext'.
4561
4562 2003-05-31 Andrew Cagney <cagney@redhat.com>
4563
4564 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4565 architecture methods call_dummy_words, sizeof_call_dummy_words,
4566 push_return_address, store_struct_return, and fix_call_dummy. Set
4567 push_dummy_call instead of deprecated_push_arguments.
4568 (mips_store_struct_return): Delete function.
4569 (mips_fix_call_dummy): Delete function.
4570 (mips_push_return_address): Delete function.
4571 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4572 RA_REGNUM and T9_REGNUM.
4573 (mips_n32n64_push_dummy_call): Ditto for
4574 mips_n32n64_push_arguments.
4575 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4576 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4577
4578 2003-05-31 Andrew Cagney <cagney@redhat.com>
4579
4580 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4581 "dummy_addr" to "bp_addr".
4582 * infcall.c (call_function_by_hand): Pass "funaddr" to
4583 gdbarch_push_dummy_call.
4584 * gdbarch.h, gdbarch.c: Re-generate.
4585 * i386-tdep.c (i386_push_dummy_call): Update.
4586 * arm-tdep.c (arm_push_dummy_call): Update.
4587 * d10v-tdep.c (d10v_push_dummy_call): Update.
4588
4589 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4590
4591 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4592 variable declarations.
4593 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4594 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4595 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4596 x86_64_init_frame_pc, x86_64_init_frame_pc,
4597 x86_64_function_has_prologue): Remove prototypes.
4598 (X86_64_NUM_GREGS): New define.
4599 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4600 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4601 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4602 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4603 XMM1_REGNUM): Remove defines.
4604 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4605 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4606 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4607 X86_64_XMM1_REGNUM): New defines.
4608 (struct x86_64_register_info): Renamed from `struct
4609 register_info'. Remove `size' member.
4610 (x86_64_register_info_table): Remove variable.
4611 (x86_64_register_info): New variable.
4612 (X86_64_NUM_REGS): New define.
4613 (X86_64_NUM_GREGS): Remove define.
4614 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4615 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4616 Remove variables.
4617 (x86_54_dwarf2_reg_to_regnum): Remove function.
4618 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4619 (x86_64_dwarf_reg_to_regnum): New function.
4620 (x86_64_register_name): Rewrite.
4621 (x86_64_register_raw_size): Remove function.
4622 (x86_64_register_byte_table): Remove variable.
4623 (x86_64_register_byte): Remove function.
4624 (x86_64_register_virtual_type): Remove function.
4625 (x86_64_register_type): New function.
4626 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4627 x86_64_register_convert_to_raw): Remove functions.
4628 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4629 (x86_64_use_struct_convention): Make static. Adjust for renamed
4630 defines.
4631 (x86_64_frame_init_saved_regs): Remove function.
4632 (x86_64_push_arguments): Make static. Change to accept a regcache
4633 as argument.
4634 (x86_64_store_return_value, x86_64_extract_return_value): Make
4635 static. Rewrite based on i386 counterparts.
4636 (x86_64_push_dummy_call): New function.
4637 (X86_64_NUM_SAVED_REGS): New define.
4638 (x86_64_register_number): Remove function.
4639 (x86_64_store_struct_return): Remove function.
4640 (x86_64_frameless_function_invocation,
4641 x86_64_function_has_prologue): Remove functions.
4642 (PROLOG_BUFSIZE): Remove define.
4643 (struct x86_64_frame_cache): New structure.
4644 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4645 x86_64_frame_cache, x86_64_frame_this_id,
4646 x86_64_frame_prev_register, x86_64_frame_p,
4647 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4648 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4649 functions.
4650 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4651 variables.
4652 (x86_64_skip_prologue): Rewrite in terms of
4653 x86_64_analyze_prologue.
4654 (x86_64_frame_base_address): New function.
4655 (x86_64_frame_base): New variable.
4656 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4657 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4658 set deprecated_fp_regnum, deprecated_register_size,
4659 deprecated_register_bytes, register_raw_size, register_byte,
4660 register_virtual_type, register_convertiable,
4661 register_convert_to_virtual, convert_to_raw,
4662 deprecated_get_saved_register, deprecated_target_read_fp,
4663 deprecated_push_arguments, deprecated_push_return_address,
4664 deprecated_pop_frame, deprecated_store_struct_return,
4665 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4666 frameless_function_invocation, deprecated_frame_saved_pc,
4667 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4668 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4669 deprecated_init_frame_pc and virtual_frame_pointer. Call
4670 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4671 and x86_64_frame_p. Call frame_base_set_default to register
4672 x86_64_frame_base.
4673 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4674 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4675 (_initialize_x86_64_tdep): Remove function.
4676 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4677 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4678 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4679 define.
4680 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4681 (x86_64_linux_sigcontext_addr): Rewrite.
4682 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4683 x86_64_linux_frame_saved_pc): Remove functions.
4684 (x86_64_linux_pc_in_sigtramp): Renamed from
4685 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4686 trampoline.
4687 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4688 Remove_functions.
4689 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4690 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4691 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4692 (x86_64_regmap): Rename to regmap.
4693 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4694 x86_64_num_gregs.
4695 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4696 x86_64_regmap.
4697 (x86_64_fxsave_offset): Remove function.
4698 (supply_fpregset): Simply call x86_64_supply_fxsave.
4699 (fill_fpregset): Simply call x86_64_fill_fxsave.
4700 (fetch_inferior_registers, store_inferior_registers): Avoid
4701 asignment in if-statement.
4702 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4703 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4704 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4705 (fetch_core_registers): Remove function.
4706 (linux_elf_core_fns): Remove.
4707 (offsetoff): Don't define.
4708 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4709 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4710 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4711 add core-regset.o.
4712 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4713 protection against multiple includes instead of NM_X86_64_h. Add
4714 various comments. Include "config/nm-linux.h". Don't include
4715 <signal.h>.
4716 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4717 GET_THREAD_SIGNALS): Remove defines.
4718 (x86_64_register_u_addr, kernel_u_size,
4719 lin_thread_get_thread_signals): Remove prototypes.
4720 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4721 [HAVE_LINK_H]: Don't include "solib.h".
4722 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4723 * config/i386/tm-x86-64linux.h: Fix comments.
4724 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4725 x86-64-tdep.o): Update dependencies.
4726
4727 2003-05-30 Andrew Cagney <cagney@redhat.com>
4728
4729 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4730 Change parameter type to a "struct regcache *".
4731
4732 * gdbarch.sh: Regardless of the multi-arch level, always define
4733 the macro when not already defined.
4734 * gdbarch.h, gdbarch.c: Re-generate.
4735
4736 2003-05-30 Richard Henderson <rth@redhat.com>
4737
4738 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4739 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4740 (alpha_mdebug_frame_this_id): Likewise.
4741 (alpha_mdebug_frame_prev_register): Likewise.
4742 (alpha_mdebug_frame_base_address): Likewise.
4743 (alpha_mdebug_frame_locals_address): Likewise.
4744 (alpha_mdebug_frame_args_address): Likewise.
4745 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4746 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4747 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4748 loop increment.
4749 (alpha_heuristic_frame_this_id): Make static.
4750 (alpha_heuristic_frame_prev_register): Likewise.
4751 (alpha_heuristic_frame_base_address): Likewise.
4752 * alpha-tdep.h: Update.
4753
4754 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4755
4756 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4757 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4758 defenitions.
4759 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4760 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4761 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4762 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4763 I386_ST0_REGNUM): New defines.
4764 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4765 codestream_get): Remove define.
4766 (codestream_next_addr, condestream_addr, condestream_buf,
4767 codestream_off, codestream_cnt): Remove variables.
4768 (codestream_fill, codestream_seek, codestream_read): Remove
4769 functions.
4770 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4771 functionality.
4772 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4773 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4774 i386_frame_saved_pc, i386_saved_pc_after_call,
4775 i386_frame_num_args, i386_frame_init_saved_regs,
4776 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4777 i386_push_arguments): Remove functions.
4778 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4779 functionality. Use i386_analyze_prologue instead of
4780 i386_get_frame_setup.
4781 (I386_NUM_SAVED_REGS): New define.
4782 (struct i386_frame_cache): New structure.
4783 (i386_alloc_frame_cache, i386_analyze_struct_return,
4784 i386_skip_probe, i386_analyze_frame_setup,
4785 i386_analyze_register_saves, i386_analyze_prologue,
4786 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4787 i386_frame_prev_register, i386_sigtramp_frame_cache,
4788 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4789 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4790 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4791 New functions.
4792 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4793 New variables.
4794 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4795 I386_EAX_REGNUM and I386_EDX_REGNUM.
4796 (i386_extract_return_value, i386_store_return_value): Use
4797 I386_ST0_REGNUM where appropriate.
4798 (i386_extract_struct_value_address): Rewrite to use extract_address.
4799 (i386_svr4_pc_in_sigtramp): Add comment.
4800 (i386_svr4_sigcontext_addr): Rewrite.
4801 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4802 TDEP->sc_sp_offset.
4803 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4804 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4805 of new defines. Set push_dummy_call, don't set
4806 deprecated_push_arguments, deprecated_push_return_address,
4807 deprecated_pop_frame. Don't set parm_boundary. Don't set
4808 deprecated_frame_chain, deprecated_frame_saved_pc,
4809 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4810 save_dummy_frame_tos, unwind_pc. Call
4811 frame_unwind_append_predicate and frame_base_set_default. Don't
4812 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4813 Don't set frameless_function_invocation. Don't set
4814 deprecated_register_bytes, deprecated_register_size,
4815 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4816 * i386-linux-tdep.c: Fix formatting in some comments.
4817 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4818 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4819 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4820 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4821 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4822 redundant parentheses.
4823 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4824 (i386_linux_sigcontext_addr): Use it. Rewrite.
4825 (find_minsym_and_objfile): Change name of second argument.
4826 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4827 changed. Use frame_pc_unwind instead of
4828 DEPRECATED_SAVED_PC_AFTER_CALL.
4829 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4830 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4831 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4832 unwinder.
4833 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4834 "dummy-frame.h".
4835 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4836 (_initialize_i386_cygwin_tdep): New prototype.
4837 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4838 deprecated_frame_chain_valid.
4839 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4840 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4841 Rely on the SVR4 defaults.
4842 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4843 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4844
4845 2003-05-30 Andrew Cagney <cagney@redhat.com>
4846
4847 * infcall.c (call_function_by_hand): Always call
4848 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4849
4850 2003-05-30 Richard Henderson <rth@redhat.com>
4851
4852 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4853 increment.
4854
4855 2003-05-29 Jim Blandy <jimb@redhat.com>
4856
4857 Use gdbarch methods for solib stuff on PowerPC Linux.
4858 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4859 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4860 show through.
4861 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4862 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4863 giving the same effect as the #definitions above.
4864
4865 2003-05-29 Adam Fedor <fedor@gnu.org>
4866
4867 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4868 (find_implementation_from_class): Replace it with the standard
4869 case i.e. do nothing.
4870
4871 2003-05-29 Richard Henderson <rth@redhat.com>
4872
4873 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4874 (alpha_linux_sigtramp_offset): Use it. Make static.
4875 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4876 update for new frame model.
4877 * alpha-mdebug-tdep.c: New file.
4878 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4879 (alpha_osf1_init_abi): Install it.
4880 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4881 (linked_proc_desc_table): Remove.
4882 (alpha_frame_past_sigtramp_frame): Remove.
4883 (alpha_dynamic_sigtramp_offset): Remove.
4884 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4885 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4886 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4887 (push_sigtramp_desc): Remove.
4888 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4889 (alpha_cannot_store_register): Likewise.
4890 (alpha_sigcontext_addr): Remove.
4891 (alpha_find_saved_regs): Remove.
4892 (alpha_frame_init_saved_regs): Remove.
4893 (alpha_init_frame_pc_first): Remove.
4894 (read_next_frame_reg): Remove.
4895 (alpha_frame_saved_pc): Remove.
4896 (alpha_saved_pc_after_call): Remove.
4897 (temp_proc_desc, temp_saved_regs): Remove.
4898 (alpha_about_to_return): Remove.
4899 (cached_proc_desc): Remove.
4900 (alpha_frame_chain): Remove.
4901 (alpha_print_extra_frame_info): Remove.
4902 (alpha_init_extra_frame_info): Remove.
4903 (alpha_frame_locals_address): Remove.
4904 (alpha_frame_args_address): Remove.
4905 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4906 (alpha_push_dummy_frame): Remove.
4907 (alpha_pop_frame): Remove.
4908 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4909 (alpha_read_insn): New.
4910 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4911 for different insn encodings.
4912 (alpha_in_lenient_prologue): Remove.
4913 (struct alpha_sigtramp_unwind_cache): New.
4914 (alpha_sigtramp_frame_unwind_cache): New.
4915 (alpha_sigtramp_register_address): New.
4916 (alpha_sigtramp_frame_this_id): New.
4917 (alpha_sigtramp_frame_prev_register): New.
4918 (alpha_sigtramp_frame_unwind): New.
4919 (alpha_sigtramp_frame_p): New.
4920 (struct alpha_heuristic_unwind_cache): New.
4921 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4922 don't count nop insns that occur between functions.
4923 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4924 heuristic_proc_desc, but without the mdebug wrapping.
4925 (alpha_heuristic_frame_this_id): New.
4926 (alpha_heuristic_frame_prev_register): New.
4927 (alpha_heuristic_frame_unwind): New.
4928 (alpha_heuristic_frame_p): New.
4929 (alpha_heuristic_frame_base_address): New.
4930 (alpha_heuristic_frame_base): New.
4931 (alpha_unwind_dummy_id): New.
4932 (alpha_unwind_pc): New.
4933 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4934 frame related deprecated initializations; install replacements.
4935 (alpha_dump_tdep): Remove.
4936 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4937 (alpha_read_insn, alpha_after_prologue,
4938 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4939 alpha_heuristic_frame_prev_register,
4940 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4941 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4942 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4943 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4944
4945 2003-05-29 Andrew Cagney <cagney@redhat.com>
4946
4947 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4948 dependant on the availability of ASSERT_FUNCTION.
4949 (ASSERT_FUNCTION): Do not define when there is no function name.
4950
4951 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4952
4953 From Jimi X <jimix@watson.ibm.com>:
4954 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4955
4956 2003-05-28 Jim Blandy <jimb@redhat.com>
4957
4958 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4959 argument to ptrace to int; the system headers should give it the
4960 right type, and pointers don't fit in ints on powerpc64-*-*.
4961
4962 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4963
4964 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4965 DW_TAG_catch_block.
4966
4967 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4968
4969 * stabsread.c (dbx_lookup_type): Make static.
4970 (read_type): Ditto.
4971 (add_undefined_type): Ditto.
4972 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4973 not export.
4974
4975 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4976
4977 * hpread.c (hpread_has_name): Make static.
4978 (hpread_psymtab_to_symtab): Ditto.
4979 (file_exists): Ditto.
4980 (hpread_call_pxdb): Ditto.
4981 (hpread_pxdb_needed): Ditto.
4982 (hpread_quick_traverse): Ditto.
4983 (hpread_get_header): Ditto.
4984 (hpread_get_lntt): Ditto.
4985 (hpread_get_slt): Ditto.
4986 (class_of): Ditto.
4987
4988 2003-05-25 Andreas Schwab <schwab@suse.de>
4989
4990 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4991 stack_align and deprecated_extra_stack_alignment_needed.
4992 (m68k_stack_align): Delete.
4993
4994 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4995 (m68k_register_virtual_size): Likewise.
4996 (altos_skip_prologue): Remove obsolete function.
4997 (isi_frame_num_args): Likewise.
4998 (news_frame_num_args): Likewise.
4999 (m68k_fix_call_dummy): Make static.
5000 (m68k_push_dummy_frame): Likewise.
5001 (m68k_pop_frame): Likewise.
5002 (m68k_skip_prologue): Likewise.
5003 (m68k_frame_init_saved_regs): Likewise.
5004 (m68k_saved_pc_after_call): Likewise.
5005 (m68k_get_longjmp_target): Make multi-arch.
5006 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5007 structure. Register m68k_get_longjmp_target if enabled.
5008 * m68k-tdep.h (struct gdbarch_tdep): Define.
5009 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5010
5011 * Makefile.in (config.status): Also depend on configure.tgt
5012 and configure.host.
5013 (m68klinux-tdep.o): Update dependencies.
5014 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5015 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5016 (M68K_LINUX_JB_PC): Define.
5017 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5018 and take additional parameter.
5019 (m68k_linux_sigtramp_saved_pc): Update.
5020 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5021 m68k_linux_pc_in_sigtramp, in_plt_section,
5022 find_solib_trampoline_target.
5023 * config/m68k/tm-linux.h: Don't include any tm headers.
5024 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5025 (JB_ELEMENT_SIZE): Likewise.
5026 (JB_PC): Likewise.
5027 (GET_LONGJMP_TARGET): Likewise.
5028 (IN_SIGTRAMP): Likewise.
5029 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5030
5031 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5032
5033 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5034 (sparc32_push_arguments): Re-implement by calling
5035 sparc32_do_push_arguments.
5036
5037 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5038
5039 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5040 SPARC_O1_REGNUM): New defines.
5041 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5042 (sparc32_store_return_value): New function.
5043 (sparc_extract_struct_value_address): Rewrite to operate on a
5044 regcache.
5045 (sparc_gdbarch_init): Don't set
5046 deprecated_extract_struct_value_address. Set
5047 extract_struct_value_address instead. Don't set
5048 deprecated_extract_return_value and deprecated_store_return_value
5049 for 32-bit targets. Set extract_return_value and
5050 store_return_value instead.
5051 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5052 DEPRECTAED_EXTRACT_RETURN_VALUE,
5053 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5054 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5055 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5056 (sparc_store_return_value): Remove prototype.
5057 (sparc32_store_return_value): New prototype.
5058 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5059 Adjust prototypes.
5060
5061 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5062
5063 * sparcnbsd-tdep.c: Include "gdb_string.h".
5064
5065 2003-05-23 Andrew Cagney <cagney@redhat.com>
5066
5067 * p-valprint.c (pascal_val_print): Replace extract_address with
5068 the inline equivalent extract_unsigned_integer.
5069 * jv-valprint.c (java_value_print): Ditto.
5070 * ada-valprint.c (ada_val_print_1): Ditto.
5071 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5072
5073 2003-05-23 Theodore A. Roth <troth@openavr.org>
5074
5075 * blockframe.c (frameless_look_for_prologue): Remove unused
5076 after_prologue variable.
5077
5078 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5079
5080 * blockframe.c (get_pc_function_start): Rewrite to avoid
5081 asignments in if-statements.
5082
5083 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5084
5085 Committed by Elena Zannoni <ezannoni@redhat.com>.
5086 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5087 files, don't relocate absolute symbols (and do use mst_abs).
5088
5089 2003-05-23 Andrew Cagney <cagney@redhat.com>
5090
5091 * objc-lang.c: Include "gdb_assert.h".
5092 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5093 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5094 (gdb_check, gdb_check_fatal): Delete functions.
5095 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5096 gdb_assert.
5097 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5098 * Makefile.in (objc-lang.o): Update dependencies.
5099
5100 2003-05-22 Ian Lance Taylor <ian@airs.com>
5101
5102 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5103 with fprintf_filtered, not fprintf_unfiltered.
5104
5105 2003-05-22 Andrew Cagney <cagney@redhat.com>
5106
5107 * stack.c (frame_info): Inline extract_address, replacing it with
5108 extract_unsigned_integer.
5109 * findvar.c (unsigned_pointer_to_address): Ditto.
5110 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5111 * dwarf2expr.c (dwarf2_read_address): Ditto.
5112 * frame.c (frame_pc_unwind): Update comment.
5113 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5114
5115 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5116
5117 * infptrace.c (detach): Call print_sys_errmsg rather than
5118 perror_with_name to issue warning message when errno is non-zero
5119 after calling ptrace detach.
5120
5121 2003-05-21 J. Brobecker <brobecker@gnat.com>
5122
5123 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5124 macro definitions from here...
5125 * hppa-tdep.c: ...to there.
5126
5127 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5128
5129 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5130 register_ptrace_addr(). Fix all callers.
5131
5132 2003-05-21 Andreas Schwab <schwab@suse.de>
5133
5134 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5135 dependencies.
5136 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5137 end.
5138 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5139 (_initialize_m68k_linux_tdep): New function.
5140 (m68k_linux_frame_saved_pc): Make static.
5141 (m68k_linux_extract_return_value): Likewise.
5142 (m68k_linux_store_return_value): Likewise.
5143 (m68k_linux_extract_struct_value_address): Likewise.
5144 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5145 Remove.
5146 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5147 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5148 (DEPRECATED_FRAME_SAVED_PC): Remove.
5149
5150 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5151
5152 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5153 regset numbering rather than our own.
5154
5155 2003-05-19 David Carlton <carlton@bactrian.org>
5156
5157 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5158
5159 2003-05-19 David Carlton <carlton@bactrian.org>
5160
5161 Partial fix for PR c++/827.
5162 * cp-support.h: Include symtab.h.
5163 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5164 * cp-namespace.c: Update contributors.
5165 (cp_lookup_symbol_nonlocal): New.
5166 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5167 (lookup_symbol_file): Ditto.
5168 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5169 * block.h: Declare block_scope, block_using, block_global_block.
5170 * block.c (block_scope): New.
5171 (block_using, block_global_block): Ditto.
5172 * Makefile.in (cp_support_h): Depend on symtab_h.
5173 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5174
5175 2003-05-19 David Carlton <carlton@bactrian.org>
5176
5177 * language.h (struct language_defn): Add 'la_value_of_this'
5178 and 'la_lookup_symbol_nonlocal' members.
5179 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5180 lookup_symbol_static, lookup_symbol_global,
5181 lookup_symbol_aux_block.
5182 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5183 if we should search fields of this and how to do static/global
5184 lookup.
5185 (lookup_symbol_aux_block): Make extern.
5186 (basic_lookup_symbol_nonlocal): New.
5187 (lookup_symbol_static, lookup_symbol_global): Ditto.
5188 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5189 'la_lookup_symbol_nonlocal' members.
5190 * c-lang.c (c_language_defn, cplus_language_defn)
5191 (asm_language_defn, minimal_language_defn): Ditto.
5192 * jv-lang.c (java_language_defn): Ditto.
5193 * language.c (unknown_language_defn, auto_language_defn)
5194 (local_language_defn): Ditto.
5195 * m2-lang.c (m2_language_defn): Ditto.
5196 * objc-lang.c (objc_language_defn): Ditto.
5197 * scm-lang.c (scm_language_defn): Ditto.
5198 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5199 * p-lang.c (pascal_language_defn): Ditto for both.
5200 * Makefile.in (f-lang.o): Depend on value_h.
5201 (p-lang.o): Ditto.
5202
5203 2003-05-19 David Carlton <carlton@bactrian.org>
5204
5205 * block.h: Declare block_static_block.
5206 * block.c (block_static_block): New.
5207 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5208 lookup_symbol_aux_local, calling block_static_block instead.
5209 (lookup_symbol_aux_local): Delete 'static_block' argument.
5210
5211 2003-05-19 David Carlton <carlton@bactrian.org>
5212
5213 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5214
5215 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5216
5217 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5218 register numbers mapping.
5219
5220 2003-05-18 Adam Fedor <fedor@gnu.org>
5221
5222 * symtab.c (completion_list_objc_symbol): New function.
5223 (make_symbol_completion_list): Use it to add ObjC symbols
5224 when looking though the list.
5225 (language_search_unquoted_string): New function.
5226 (make_file_symbol_completion_list): Use it.
5227
5228 2003-05-18 Andreas Schwab <schwab@suse.de>
5229
5230 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5231 dependencies.
5232 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5233 as m68k_linux_extract_return_value.
5234 (DEPRECATED_STORE_RETURN_VALUE): Define as
5235 m68k_linux_store_return_value.
5236 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5237 m68k_linux_extract_struct_value_address.
5238 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5239 get_next_frame, get_frame_base, get_frame_pc.
5240 (m68k_linux_frame_saved_pc): Use get_frame_base.
5241 (m68k_linux_extract_return_value): New function.
5242 (m68k_linux_store_return_value): New function.
5243 (m68k_linux_extract_struct_value_address): New function.
5244 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5245
5246 * c-exp.y (typebase): Remove duplicate occurence of
5247 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5248 of lookup_signed_typename.
5249
5250 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5251
5252 * dwarf2loc.c (find_location_expression): Change type of second
5253 argument to `size_t *'.
5254 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5255 for size variable.
5256
5257 2003-05-18 David Carlton <carlton@bactrian.org>
5258
5259 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5260 'linkage_name'. Add comment.
5261 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5262 'linkage_name'.
5263 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5264 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5265 (lookup_block_symbol): Ditto.
5266
5267 2003-05-16 Andrew Cagney <cagney@redhat.com>
5268
5269 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5270 * gdbarch.h, gdbarch.c: Re-generate.
5271 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5272 * TODO (REGISTER_BYTES): Delete reference.
5273 * alpha-tdep.c (alpha_gdbarch_init): Update.
5274 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5275 * x86-64-tdep.c (x86_64_init_abi): Update.
5276 * vax-tdep.c (vax_gdbarch_init): Update.
5277 * v850-tdep.c (v850_gdbarch_init): Update.
5278 * sparc-tdep.c (sparc_gdbarch_init): Update.
5279 * sh-tdep.c (sh_gdbarch_init): Update.
5280 * s390-tdep.c (s390_gdbarch_init): Update.
5281 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5282 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5283 (ns32k_gdbarch_init_32382): Update.
5284 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5285 * mcore-tdep.c (mcore_gdbarch_init): Update.
5286 * m68k-tdep.c (m68k_gdbarch_init): Update.
5287 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5288 * ia64-tdep.c (ia64_gdbarch_init): Update.
5289 * i386-tdep.c (i386_gdbarch_init): Update.
5290 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5291 * hppa-tdep.c (hppa_gdbarch_init): Update.
5292 * h8300-tdep.c (h8300_gdbarch_init): Update.
5293 * frv-tdep.c (frv_gdbarch_init): Update.
5294 * cris-tdep.c (cris_gdbarch_init): Update.
5295 * avr-tdep.c (avr_gdbarch_init): Update.
5296 * arm-tdep.c (arm_gdbarch_init): Update.
5297 * sparc-tdep.c (sparc_pop_frame): Update.
5298 * rs6000-tdep.c (rs6000_pop_frame): Update.
5299 * remote.c (init_remote_state): Update.
5300 (remote_prepare_to_store): Update.
5301 * remote-vx.c (vx_prepare_to_store): Update.
5302 * remote-sds.c (sds_fetch_registers): Update.
5303 (sds_prepare_to_store): Update.
5304 * remote-array.c: Update.
5305 * regcache.c (init_legacy_regcache_descr): Update.
5306 (init_regcache_descr): Update.
5307 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5308 (mips_o64_extract_return_value): Update.
5309 * irix5-nat.c (fetch_core_registers): Update.
5310 * irix4-nat.c (fetch_core_registers): Update.
5311 * i386-tdep.h: Update.
5312 * hppa-tdep.c (pa_do_registers_info): Update.
5313 (pa_do_strcat_registers_info): Update.
5314 * cris-tdep.c (cris_register_bytes_ok): Update.
5315 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5316 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5317 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5318 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5319 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5320 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5321 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5322 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5323 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5324 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5325 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5326 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5327 (REGISTER_BYTES_OK): Update.
5328 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5329 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5330
5331 2003-05-16 Ian Lance Taylor <ian@airs.com>
5332
5333 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5334 (vax_print_insn, print_insn_arg): Remove static functions.
5335 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5336 print_insn_vax from opcodes library.
5337 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5338
5339 2003-05-15 Andrew Cagney <cagney@redhat.com>
5340
5341 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5342 * target.h (memory_breakpoint_from_pc): Delete declaration.
5343 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5344 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5345 * monitor.c (monitor_insert_breakpoint): Use
5346 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5347 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5348 * gdbarch.h, gdbarch.c: Re-generate.
5349 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5350 (sparc_gdbarch_init): Set breakpoint_from_pc to
5351 sparc_breakpoint_from_pc.
5352 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5353 (BREAKPOINT_FROM_PC): Define.
5354 (sparc_breakpoint_from_pc): Declare.
5355 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5356 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5357 (BREAKPOINT_FROM_PC): Define.
5358 (BREAKPOINT): Delete macro.
5359 * target.h: Update comment.
5360 * s390-tdep.c (s390_gdbarch_init): Update comments.
5361 * remote.c: Update comments.
5362 * remote-mips.c: Update comments.
5363 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5364 * mem-break.c: Update comment.
5365 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5366 (ia64_memory_insert_breakpoint): Update.
5367 * config/sparc/tm-sparc.h: Update comment.
5368 * config/pa/tm-hppa64.h: Update comment.
5369 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5370 (rs6000_breakpoint_from_pc): Update.
5371 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5372 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5373 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5374 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5375 (mips_breakpoint_from_pc): Update.
5376 (mips_dump_tdep): Update.
5377
5378 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5379 * minsyms.c (lookup_minimal_symbol): Inline
5380 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5381
5382 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5383 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5384 * p-lang.c (pascal_printstr): Ditto.
5385 * objc-lang.c (objc_printstr): Ditto.
5386 * m2-lang.c (m2_printstr): Ditto.
5387 * jv-valprint.c (java_print_value_fields): Ditto.
5388 * f-lang.c (f_printstr): Ditto.
5389 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5390 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5391 for repeat_count_threshold.
5392 * Makefile.in (cp-valprint.o): Update dependencies.
5393
5394 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5395
5396 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5397 (examine_prologue): Support looking through leaf functions, knowing
5398 they start with mov r2,r12. Support skipping over indirect stores
5399 of the input registers. Upon hitting a non-nop branch instruction
5400 or predicated instruction, bail out by setting lim_pc to the current
5401 pc value in the loop. At the end, if the lim_pc value is still
5402 beyond our calculated value and we have trust_limit set,
5403 use the lim_pc value.
5404
5405 2003-05-15 Andrew Cagney <cagney@redhat.com>
5406
5407 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5408 generic_find_dummy_frame.
5409 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5410 (deprecated_generic_find_dummy_frame): Update.
5411 (deprecated_read_register_dummy): Update.
5412 * frame.c (deprecated_generic_get_saved_register): Update.
5413
5414 2003-05-15 Theodore A. Roth <troth@openavr.org>
5415
5416 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5417 (avr_gdbarch_init): Set breakpoint_from_pc method.
5418
5419 2003-05-15 Andrew Cagney <cagney@redhat.com>
5420
5421 * regcache.c (build_regcache): Set deprecated_register_valid
5422 directly.
5423 (deprecated_grub_regcache_for_register_valid): Delete function.
5424 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5425 declaration.
5426
5427 2003-05-15 David Carlton <carlton@bactrian.org>
5428
5429 Committed by Elena Zannoni <ezannoni@redhat.com>
5430 * symtab.c (lookup_symbol_aux): Delete calls to
5431 lookup_symbol_aux_minsyms.
5432 (lookup_symbol_aux_minsyms): Comment out function and
5433 prototype. Delete lookup by mangled name.
5434
5435 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5436
5437 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5438 correctly indicate an empty stack and ``stack_allocated'' to the
5439 indicate the number of elements initially allocated.
5440 (dwarf_expr_grow_stack): Simplify method for computing new
5441 stack size. Don't loop infinitely if ``stack_len'' is zero.
5442 (execute_stack_op): Move ``ctx->in_reg'' initialization
5443 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5444 be used in conjuction with DW_OP_piece. Revise error message
5445 accordingly.
5446
5447 2003-05-14 Theodore A. Roth <troth@openavr.org>
5448
5449 * MAINTAINERS: Update my email address.
5450 * avr-tdep.c: Ditto.
5451
5452 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5453
5454 * symtab.h (enum domain_enum): Rename from namespace_enum.
5455 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5456 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5457 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5458 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5459 TYPES_NAMESPACE, METHODS_NAMESPACE.
5460 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5461 (struct symbol, struct partial_symbol): Rename field
5462 'namespace_enum namespace' to 'domain_enum domain'.
5463 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5464 Delete old define kludge for namespace.
5465
5466 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5467 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5468 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5469 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5470 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5471 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5472 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5473 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5474 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5475 occurrences of the above.
5476
5477 2003-05-14 Ian Lance Taylor <ian@airs.com>
5478
5479 * Makefile.in (install-only): Use $(SHELL) when running
5480 mkinstalldirs.
5481
5482 2003-05-13 Ian Lance Taylor <ian@airs.com>
5483
5484 * MAINTAINERS (write after approval): Add myself.
5485
5486 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5487 second and third arguments.
5488 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5489 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5490
5491 2003-05-13 Andrew Cagney <cagney@redhat.com>
5492
5493 * defs.h (store_address): Delete declaration.
5494 findvar.c (store_address): Delete function.
5495 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5496 store_unsigned_integer.
5497 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5498 * v850-tdep.c (v850_push_arguments): Ditto.
5499 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5500 * sh-tdep.c (sh64_get_saved_register): Ditto.
5501 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5502 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5503 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5504 (mips_get_saved_register): Ditto.
5505 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5506 (find_func_descr, ia64_push_arguments): Ditto.
5507 * i386-tdep.c (i386_push_arguments): Ditto.
5508 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5509 * frv-tdep.c (frv_push_arguments): Ditto.
5510 * frame.c (legacy_saved_regs_prev_register): Ditto.
5511 (deprecated_generic_get_saved_register): Ditto.
5512 * findvar.c (unsigned_address_to_pointer): Ditto.
5513 * dwarf2read.c (dwarf2_const_value): Ditto.
5514 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5515 * alpha-tdep.c (alpha_push_arguments): Ditto.
5516
5517 2003-05-12 J. Brobecker <brobecker@gnat.com>
5518
5519 * NEWS: Mention that the hppa-hpux port has been partially
5520 multiarched (32bit ABIT only, so far).
5521
5522 2003-05-11 Andrew Cagney <cagney@redhat.com>
5523
5524 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5525 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5526 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5527 sim/testsuite/sim/arm/misaligned2.ms, and
5528 sim/testsuite/sim/arm/misaligned3.ms.
5529 * disasm.h (struct ui_file): Add opaque struct declaration.
5530 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5531 * frame.h (struct ui_file): Ditto.
5532
5533 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5534
5535 * value.h: Pretty print.
5536
5537 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5538
5539 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5540
5541 2003-05-08 Andrew Cagney <cagney@redhat.com>
5542
5543 * regcache.h (max_register_size): Delete declaration.
5544 * regcache.c (max_register_size): Delete function.
5545 (struct regcache_descr): Delete field "max_register_size".
5546 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5547 registers fit in MAX_REGISTER_SIZE.
5548 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5549 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5550 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5551 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5552 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5553 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5554 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5555 * dve3900-rom.c, hppa-tdep.c: Ditto.
5556
5557 2003-05-08 David Carlton <carlton@math.stanford.edu>
5558
5559 * valops.c (push_word): Fix typo.
5560
5561 2003-05-08 Andrew Cagney <cagney@redhat.com>
5562
5563 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5564 * gdbarch.h: Re-generate.
5565 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5566 (legacy_max_register_raw_size): Delete declaration.
5567 * regcache.c (legacy_max_register_raw_size): Delete function.
5568 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5569 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5570 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5571 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5572 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5573 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5574 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5575 * findvar.c, dwarf2cfi.c: Ditto.
5576
5577 2003-05-08 Andrew Cagney <cagney@redhat.com>
5578
5579 * mips-tdep.c (read_signed_register): New function, moved to here
5580 from "regcache.c".
5581 (read_signed_register_pid): Ditto.
5582 * regcache.c (read_signed_register_pid): Delete function, moved to
5583 "mips-tdep.c".
5584 (read_signed_register): Ditto.
5585 * regcache.h (read_signed_register): Delete declaration.
5586 (read_signed_register_pid): Delete declaration.
5587
5588 2003-05-08 Andrew Cagney <cagney@redhat.com>
5589
5590 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5591 * gdbarch.h: Re-generate.
5592 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5593 (legacy_max_register_virtual_size): Delete declaration.
5594 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5595 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5596 * tracepoint.c (memrange_sortmerge): Ditto.
5597 * sparc-tdep.c (sparc_print_registers): Ditto.
5598 * regcache.c (legacy_max_register_virtual_size): Delete function.
5599
5600 2002-05-08 J. Brobecker <brobecker@gnat.com>
5601
5602 * fork-child.c (escape_bang_in_quoted_argument): New function.
5603 (fork_inferior): Escape '!' characters in quoted arguments
5604 only when needed.
5605
5606 2003-05-08 J. Brobecker <brobecker@gnat.com>
5607
5608 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5609 the language of the CU is not currently supported by GDB.
5610
5611 2003-05-08 J. Brobecker <brobecker@gnat.com>
5612
5613 * defs.h (language): Add language_minimal enum value.
5614 * c-lang.c (minimal_language_defn): New language definition.
5615 (_initialize_c_language): Add the new minimal language to the list
5616 of languages known to GDB.
5617
5618 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5619
5620 * frame.c (get_frame_type): Don't attempt to lazily initialize
5621 frame's unwinder for legacy frames.
5622
5623 2003-05-07 Andrew Cagney <cagney@redhat.com>
5624
5625 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5626 and "regcache" parameters.
5627 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5628
5629 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5630
5631 * dwarf2read.c (dwarf_decode_lines): Only use output of
5632 check_cu_functions() when calling record_line(). Do not update
5633 the current address.
5634
5635 2003-05-07 Andrew Cagney <cagney@redhat.com>
5636
5637 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5638 code.
5639
5640 2003-05-07 Jim Blandy <jimb@redhat.com>
5641
5642 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5643 'maint info symtabs' and 'maint info psymtabs'.
5644 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5645 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5646 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5647 Declarations updated.
5648 * maint.c (maintenance_list_command): Delete.
5649 (_initialize_maint_cmds): Update calls to add_cmd.
5650 * gdbcmd.h (maintenancelistlist): Delete declaration.
5651 * cli/cli-cmds.c (maintenancelistlist): Delete.
5652 (init_cmd_lists): Don't initialize it.
5653 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5654
5655 2003-05-07 Andrew Cagney <cagney@redhat.com>
5656
5657 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5658 "regcache".
5659 (d10v_print_registers_info): Update.
5660 (d10v_dmap_register, d10v_imap_register): Delete functions.
5661 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5662 and "imap_register".
5663 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5664 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5665 * arch-utils.c (generic_remote_translate_xfer_address): Add
5666 "regcache" and "gdbarch" parameters.
5667 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5668 parameter. Change class to multi-arch.
5669 * gdbarch.h, gdbarch.c: Re-generate.
5670 * remote.c (remote_xfer_memory): Use
5671 gdbarch_remote_translate_xfer_address.
5672
5673 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5674
5675 * infrun.c (prev_pc): Move declaration ahead of proceed().
5676 (proceed): Refresh prev_pc value before resuming.
5677 (stop_stepping): Remove code to refresh prev_pc.
5678
5679 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5680
5681 * nto-tdep.c: Removed stray comment.
5682
5683 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5684
5685 * i386-nto-tdep.c: Fix old K&R function definitions.
5686 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5687 Also change add_show_from_set() call to add_setshow_cmd().
5688 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5689
5690 2003-05-05 Andrew Cagney <cagney@redhat.com>
5691
5692 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5693 (fprint_dummy_frames): New function.
5694 (maintenance_print_dummy_frames): New function.
5695 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5696 * frame.c (fprint_frame_id): Make global.
5697 * frame.h (fprint_frame_id): Declare.
5698 * Makefile.in (dummy-frame.o): Update dependencies.
5699
5700 2003-05-05 Andrew Cagney <cagney@redhat.com>
5701
5702 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5703 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5704 SIZEOF_CALL_DUMMY_WORDS.
5705 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5706 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5707 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5708 CALL_DUMMY_BREAKPOINT_OFFSET.
5709 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5710 CALL_DUMMY_START_OFFSET.
5711 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5712 * gdbarch.h, gdbarch.c: Re-generate.
5713 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5714 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5715 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5716 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5717 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5718 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5719 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5720 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5721 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5722 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5723 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5724 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5725 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5726 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5727 * config/sparc/tm-sparc.h: Update.
5728
5729 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5730
5731 * configure.tgt: Add i[3456]86-*-nto*.
5732 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5733 * nto-tdep.c: New file. Neutrino target support routines.
5734 * nto-tdep.h: New file. Neutrino target header.
5735 * config/tm-qnxnto.h: New file.
5736 * config/i386/i386nto.mt: New file.
5737 * config/i386/tm-i386nto.h: New file.
5738
5739 2003-05-04 Andrew Cagney <cagney@redhat.com>
5740
5741 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5742 (load_infrun_state): Ditto.
5743 (struct thread_info): Drop "prev_func_name" field.
5744 * thread.c (load_infrun_state): Update.
5745 (save_infrun_state): Update.
5746 * infrun.c (prev_func_name): Delete variable.
5747 (init_wait_for_inferior): Do not clear prev_func_name.
5748 (stop_stepping, keep_going, context_switch): Do not swap
5749 prev_func_name.
5750 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5751 instead of PC_IN_SIGTRAMP.
5752
5753 2003-05-04 Andrew Cagney <cagney@redhat.com>
5754
5755 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5756 REGISTER_BYTE with register_offset_hack.
5757 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5758 that REGISTER_BYTE is consistent with the regcache.
5759 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5760 * gdbarch.h, gdbarch.c: Regenerate.
5761
5762 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5763
5764 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5765 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5766
5767 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5768
5769 2003-05-03 J. Brobecker <brobecker@gnat.com>
5770
5771 From Thierry Schneider <tpschneider1@yahoo.com>
5772 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5773 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5774 (mi-cmd-symbol.o): Add rule.
5775
5776 2003-05-03 Andrew Cagney <cagney@redhat.com>
5777
5778 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5779 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5780 * gdbarch.h, gdbarch.c: Re-generate.
5781 * d10v-tdep.c (d10v_push_dummy_code): New function.
5782 (d10v_gdbarch_init): Set push_dummy_code.
5783 * infcall.c (legacy_push_dummy_code): New function.
5784 (generic_push_dummy_code): New function.
5785 (push_dummy_code): New function.
5786 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5787 instead of dummy_addr, to push_dummy_call. Move call to
5788 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5789 switch.
5790 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5791
5792 2003-05-03 Andrew Cagney <cagney@redhat.com>
5793
5794 * disasm.h (print_insn): Declare.
5795 * disasm.c (init_gdb_disassemble_info): New function.
5796 (gdb_disassembly): Call init_gdb_disassemble_info.
5797 (gdb_print_insn): New function.
5798 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5799 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5800 * mcore-tdep.c: Include "disasm.h"
5801 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5802 * d10v-tdep.c: Include "disasm.h".
5803 (display_trace): Call gdb_print_insn, instead of print_insn.
5804 (print_insn): Delete function.
5805 * printcmd.c: Include "disasm.h".
5806 (print_insn): Delete function.
5807 (print_formatted): Call gdb_print_insn, instead of print_insn.
5808 * Makefile.in (printcmd.o): Update dependencies.
5809 (mcore-tdep.o, d10v-tdep.o): Ditto.
5810
5811 2003-05-02 Andrew Cagney <cagney@redhat.com>
5812
5813 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5814 PC_REGNUM, re-indent.
5815 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5816 PC_REGNUM isn't set.
5817
5818 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5819 * gdbarch.h, gdbarch.c: Re-generate.
5820 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5821 register_virtual_size, pc_regnum, or register_bytes.
5822 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5823 (d10v_register_type): Use D10V_PC_REGNUM.
5824 (d10v_print_registers_info, d10v_read_pc): Ditto.
5825 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5826 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5827
5828 2003-05-02 David Carlton <carlton@bactrian.org>
5829
5830 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5831 the name with mstrsave.
5832
5833 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5834
5835 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5836 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5837 (host_charset_name, target_charset_name): New vars for use by
5838 set/show commands.
5839 (host_charset_enum, target_charset_enum): New enums for set/show
5840 commands.
5841 (set_charset_sfunc, set_host_charset_sfunc,
5842 set_target_charset_sfunc): New functions.
5843 (set_host_charset, set_target_charset): Make static.
5844 (list_charsets, set_host_charset_command,
5845 set_target_charset_command): Delete functions.
5846 (show_charset_command): Rewrite as....
5847 (show_charset): Hook this up with the set/show command mechanism.
5848 (_initialize_charset): Change names of charsets to match the
5849 set/show enums. Use host_charset_name and target_charset_name.
5850 Use set/show mechanism for charset, host-charset, target-charset
5851 commands. Do not make 'show host-charset' and 'show
5852 target-charset' be aliases of 'show charset'.
5853
5854 * charset.h (set_host_charset, set_target_charset): Don't export,
5855 they are not used outside the file.
5856
5857 2003-05-01 Andrew Cagney <cagney@redhat.com>
5858
5859 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5860 (gdb_disassembly): Make "di" non static, always initialize and
5861 cleanup. Always use dis_asm_read_memory.
5862 (gdb_dis_asm_read_memory): Delete function.
5863
5864 2003-05-01 Andrew Cagney <cagney@redhat.com>
5865
5866 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5867 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5868
5869 2003-04-30 Andrew Cagney <cagney@redhat.com>
5870
5871 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5872 "tm_print_insn_info".
5873 (TARGET_PRINT_INSN_INFO): Delete macro.
5874 (dis_asm_read_memory): Delete function declaration.
5875 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5876 (tm_print_insn_info): Delete variable definition.
5877 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5878 * gdbarch.h, gdbarch.c: Re-generate.
5879 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5880 "deprecated_tm_print_insn_info".
5881 * mcore-tdep.c (mcore_dump_insn): Ditto.
5882 * mips-tdep.c (mips_gdbarch_init): Ditto.
5883 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5884 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5885 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5886 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5887 instead of TARGET_PRINT_INSN_INFO, add comment.
5888 * s390-tdep.c (s390_get_frame_info): Instead of
5889 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5890 (s390_check_function_end, s390_is_sigreturn): Ditto.
5891 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5892 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5893 * disasm.c: Include "gdbcore.h".
5894 (_initialize_disasm): New function, initialize
5895 "deprecated_tm_print_insn_info".
5896 (deprecated_tm_print_insn_info): New variable.
5897 (dis_asm_read_memory): Moved from "corefile.c", made static.
5898 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5899 * Makefile.in (disasm.o): Update dependencies.
5900
5901 2003-04-30 Andrew Cagney <cagney@redhat.com>
5902
5903 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5904
5905 2003-04-29 Adam Fedor <fedor@gnu.org>
5906
5907 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5908 * infcall.c (find_function_addr): Make non-static.
5909 * infcall.h (find_function_addr): Declare.
5910 * Makefile.in (eval.o): Update dependencies.
5911
5912 2003-04-28 Adam Fedor <fedor@gnu.org>
5913
5914 * symtab.c (symbol_find_demangled_name): Check for and demangle
5915 ObjC symbols.
5916 (symbol_init_demangled_name): Init for language_objc as well.
5917
5918 2003-04-28 Andrew Cagney <cagney@redhat.com>
5919
5920 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5921 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5922 * gdbarch.h, gdbarch.c: Re-generate.
5923 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5924 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5925 * inferior.h (deprecated_read_fp): Rename read_fp.
5926 (generic_target_read_fp): Delete declaration.
5927 * regcache.c (generic_target_read_fp): Delete function.
5928 (deprecated_read_fp): Replace read_fp, use
5929 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5930 * d10v-tdep.c (d10v_read_fp): Delete function.
5931 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5932
5933 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5934 deprecated_target_read_fp to generic_target_read_fp.
5935 * sh-tdep.c (sh_gdbarch_init): Ditto.
5936 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5937 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5938 * frv-tdep.c (frv_gdbarch_init): Ditto.
5939
5940 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5941 deprecated_fp_regnum.
5942 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5943 * vax-tdep.c (vax_gdbarch_init): Ditto.
5944 * v850-tdep.c (v850_gdbarch_init): Ditto.
5945 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5946 * sh-tdep.c (sh_gdbarch_init): Ditto.
5947 * s390-tdep.c (s390_gdbarch_init): Ditto.
5948 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5949 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5950 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5951 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5953 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5954 * i386-tdep.c (i386_gdbarch_init): Ditto.
5955 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5956 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5957 * frv-tdep.c (frv_gdbarch_init): Ditto.
5958 * cris-tdep.c (cris_gdbarch_init): Ditto.
5959 * avr-tdep.c (avr_gdbarch_init): Ditto.
5960 * arm-tdep.c (arm_gdbarch_init): Ditto.
5961 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5962
5963 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5964 * v850-tdep.c (v850_gdbarch_init): Ditto.
5965 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5966 * sh-tdep.c (sh_gdbarch_init): Ditto.
5967 * s390-tdep.c (s390_gdbarch_init): Ditto.
5968 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5969 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5970 * mips-tdep.c (mips_gdbarch_init): Ditto.
5971 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5972 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5973 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5974 * frv-tdep.c (frv_gdbarch_init): Ditto.
5975 * avr-tdep.c (avr_gdbarch_init): Ditto.
5976 * arm-tdep.c (arm_gdbarch_init): Ditto.
5977
5978 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5979 DEPRECATED_FP_REGNUM.
5980 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5981 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5982 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5983 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5984 (sparc32_register_virtual_type): Ditto.
5985 * sh-tdep.c (sh64_frame_chain): Ditto.
5986 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5987 (sh_nofp_frame_init_saved_regs): Ditto.
5988 (sh64_nofp_frame_init_saved_regs): Ditto.
5989 (sh_fp_frame_init_saved_regs): Ditto.
5990 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5991 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5992 * procfs.c (procfs_fetch_registers): Ditto.
5993 (procfs_store_registers): Ditto.
5994 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5995 (store_inferior_registers, fetch_core_registers): Ditto.
5996 (fetch_kcore_registers, clear_regs): Ditto.
5997 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5998 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5999 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6000 * nlm/i386.c (do_status): Ditto.
6001 * mipsv4-nat.c (supply_gregset): Ditto.
6002 * mips-tdep.c: Ditto for comments.
6003 * mips-nat.c (fetch_inferior_registers): Ditto.
6004 (store_inferior_registers, fetch_core_registers): Ditto.
6005 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6006 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6007 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6008 (i386_do_pop_frame, i386_register_type): Ditto.
6009 * hppa-tdep.c (hppa_frame_chain): Ditto.
6010 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6011 (hppa_pop_frame, hppa_read_fp): Ditto.
6012 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6013 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6014 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6015 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6016 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6017 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6018 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6019 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6020 * blockframe.c: Ditto for comments.
6021 * arch-utils.h: Ditto for comments.
6022 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6023 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6024 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6025 * alpha-tdep.h: Ditto for comments.
6026 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6027 (alpha_cannot_store_register): Ditto.
6028 (alpha_push_dummy_frame): Ditto.
6029 * alpha-nat.c (supply_gregset): Ditto.
6030
6031 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6032 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6033 * config/sparc/tm-sparc.h: Update comment.
6034
6035 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6036 deprecated_read_fp instead of TARGET_READ_FP.
6037 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6038 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6039 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6040 deprecated_read_fp instead of read_fp.
6041 * s390-tdep.c (s390_push_arguments): Ditto.
6042 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6043 * frame.h: Ditto in comments.
6044 * frame.c (legacy_get_prev_frame): Ditto.
6045 * dummy-frame.c (dummy_frame_this_id): Ditto.
6046 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6047
6048 2003-04-28 Andrew Cagney <cagney@redhat.com>
6049
6050 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6051 * gdbarch.h, gdbarch.c: Re-generate.
6052 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6053 * vax-tdep.c (_initialize_vax_tdep): Update.
6054 * v850-tdep.c (_initialize_v850_tdep): Update.
6055 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6056 * s390-tdep.c (_initialize_s390_tdep): Update.
6057 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6058 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6059 * mips-tdep.c (_initialize_mips_tdep): Update.
6060 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6061 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6062 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6063 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6064 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6065 * frv-tdep.c (_initialize_frv_tdep): Update.
6066 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6067 (_initialize_cris_tdep): Update.
6068 * arch-utils.c (legacy_print_insn): Update.
6069 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6070
6071 2003-04-26 Adam Fedor <fedor@gnu.org>
6072
6073 * linespec.c (decode_objc): New function to decode ObjC calls
6074 (decode_line_1): Check for ObjC calls (using decode_objc)
6075 * Makefile (linespec.o): Update dependencies.
6076
6077 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6078
6079 * breakpoint.h (struct breakpoint_ops): New.
6080 (struct breakpoint): Add ops member.
6081
6082 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6083 (mention): Use new breakpoint ops member.
6084 (set_raw_breakpoint): Initialize ops field to NULL.
6085 (print_exception_catchpoint, print_one_exception_catchpoint)
6086 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6087 (gnu_v3_exception_catchpoint_ops): New.
6088 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6089
6090 2003-04-25 Adam Fedor <fedor@gnu.org>
6091
6092 * Makefile.in (COMMON_OBS): Add objc-lang.o
6093
6094 2003-04-25 Andrew Cagney <cagney@redhat.com>
6095
6096 * d10v-tdep.c (print_insn): Delete function.
6097 (display_trace): Use TARGET_PRINT_INSN.
6098 (_initialize_d10v_tdep): Do not set tm_print_insn.
6099 (d10v_gdbarch_init): Set print_insn.
6100
6101 2003-04-25 Andrew Cagney <cagney@redhat.com>
6102
6103 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6104 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6105 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6106 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6107 (nr_dmap_regs, a0_regnum): ... new functions.
6108 (d10v_print_registers_info): Use a0_regnum, use register_size.
6109 (d10v_register_byte): Delete function.
6110 (d10v_register_raw_size): Delete function.
6111 (d10v_register_type): Use a0_regnum.
6112 (d10v_print_registers_info): Use a0_regnum.
6113 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6114 (d10v_gdbarch_init): Do not set register_byte or
6115 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6116 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6117 extract_address.
6118 (trace_command): Use XCALLOC.
6119 (print_insn): Delete reference to tm_print_insn.
6120 (saved_regs_unwinder): Use store_unsigned_integer instead of
6121 store_address.
6122 * frame.h (FRAME_OBSTACK_CALLOC): Define
6123
6124 2003-04-25 David Carlton <carlton@bactrian.org>
6125
6126 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6127
6128 2003-04-24 Adam Fedor <fedor@gnu.org>
6129
6130 * objc-lang.c: Include "valprint.h"
6131 * Makefile.in (objc-lang.o): Update dependencies.
6132
6133 2003-04-24 Adam Fedor <fedor@gnu.org>
6134
6135 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6136 architecture dependant compilation and mark as unimplemented
6137 (until they get put in the gdbarch vector).
6138
6139 2003-04-23 David Carlton <carlton@bactrian.org>
6140
6141 * cp-support.c (cp_find_first_component): Accept 'operator' in
6142 more locations.
6143
6144 2003-04-23 Andrew Cagney <cagney@redhat.com>
6145
6146 * infcall.c (call_function_by_hand): Eliminate redundant
6147 indentation. Move "saved_async" and "old_cleanups" to where they
6148 are needed.
6149
6150 2003-04-23 Andrew Cagney <cagney@redhat.com>
6151
6152 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6153 and "buffer". Move the "name" code to where it is needed.
6154
6155 2003-04-23 Andrew Cagney <cagney@redhat.com>
6156
6157 * infcall.c (call_function_by_hand): Move variables "start_sp",
6158 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6159 code to ON_STACK switch branch.
6160
6161 2003-04-23 Andrew Cagney <cagney@redhat.com>
6162
6163 * infcall.c (call_function_by_hand): Make declaration of "i",
6164 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6165 lint.
6166
6167 2003-04-23 Andrew Cagney <cagney@redhat.com>
6168
6169 * infcall.c (call_function_by_hand): Delete variable
6170 "n_method_args". Localize "param_type"'s declaration to the loop
6171 that it is used. Reinstate code assigning to said variable -
6172 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6173 Rationalize code using "param_type".
6174
6175 2003-04-22 Andrew Cagney <cagney@redhat.com>
6176
6177 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6178 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6179 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6180 to DEPRECATED_PUSH_RETURN_ADDRESS.
6181
6182 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6183
6184 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6185 on the DWARF2 register number prior to fetching a register.
6186
6187 2003-04-22 J. Brobecker <brobecker@gnat.com>
6188
6189 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6190 Update all the tests using SOFT_FLOAT considering the fact that
6191 this macro was always set to 0.
6192 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6193 considering the fact that this macro was always set to 0.
6194 * hppa-tdep.h (hppa_store_return_value): Likewise.
6195 (hppa_extract_return_value): Likewise.
6196
6197 2003-04-22 J. Brobecker <brobecker@gnat.com>
6198
6199 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6200 the hppa-pro target only.
6201
6202 2003-04-21 J. Brobecker <brobecker@gnat.com>
6203
6204 Ongoing multi-arch conversion effort for HP/UX:
6205 * config/pa/tm-hppa.h: Move all macro that are no longer
6206 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6207 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6208
6209 2003-04-21 J. Brobecker <brobecker@gnat.com>
6210
6211 * config/pa/tm-hppa.h: Obsolete a section that was only used
6212 for hppa-pro.
6213
6214 2003-04-21 J. Brobecker <brobecker@gnat.com>
6215
6216 Ongoing multi-arch conversion for HP/UX.
6217 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6218 if already defined (allows hppa64 to stay non-multiarched for now).
6219 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6220
6221 2003-04-21 Andrew Cagney <cagney@redhat.com>
6222
6223 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6224
6225 2003-04-21 Andrew Cagney <cagney@redhat.com>
6226
6227 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6228 "i386_num_mmx_regs".
6229
6230 2003-04-21 Andrew Cagney <cagney@redhat.com>
6231
6232 * infcall.c: New file.
6233 * infcall.h: New file.
6234 * valarith.c: Include "infcall.h".
6235 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6236 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6237 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6238 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6239 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6240 (SFILES): Add "infcall.c"
6241 (COMMON_OBS): Add "infcall.o".
6242 (infcall.o): Specify dependencies.
6243 * value.h (call_function_by_hand): Delete declaration.
6244 * inferior.h (run_stack_dummy): Delete declaration.
6245 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6246 (run_stack_dummy): Move to "infcall.c", merged into
6247 call_function_by_hand.
6248 * valops.c (call_function_by_hand): Moved to "infcall.c".
6249 (find_function_addr, value_arg_coerce): Ditto.
6250 (unwindonsignal_p, coerce_float_to_double): Ditto.
6251 (_initialize_valops): Move "set/show coerce-float-to-double", and
6252 "set/show unwindonsignal" commands to "infcall.c".
6253 * v850-tdep.c, target.h: Update comments.
6254 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6255 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6256 (sh64_init_extra_frame_info): Update comments.
6257 * mn10300-tdep.c: Update comments.
6258 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6259 * config/sparc/tm-sparc.h: Update comments.
6260 * breakpoint.h: Update comments.
6261 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6262 * arm-tdep.c: Update comment.
6263
6264 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6265
6266 * i386-tdep.c (i386_num_register_names): New variable.
6267 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6268 (MM0_REGNUM): Remove redundant parentheses in define.
6269 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6270 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6271 i386_mxcsr_regnum_p): Remove redundant parentheses.
6272 (i386_register_name): Use i386_num_register_names.
6273
6274 * i386-tdep.c (i386_extract_return_value,
6275 i386_store_return_value): Correct check for availability of
6276 floating-point registers.
6277
6278 * i386-tdep.c (i386_frame_num_args): Remove function.
6279 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6280
6281 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6282 mmx_regnum_to_fp_regnum. Adjust all callers.
6283
6284 * i386-tdep.c (i386_get_longjmp_target): Use
6285 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6286 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6287 extract_address.
6288
6289 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6290
6291 * core-regset.c: Update comments to reflect reality. Re-order
6292 includes.
6293 (fetch_core_registers): Use switch instead of if. Remove
6294 redundant prototype.
6295
6296 2003-04-18 Jim Blandy <jimb@redhat.com>
6297
6298 * s390-tdep.c (s390_frame_align): New function.
6299 (s390_gdbarch_init): Register it with the gdbarch object.
6300
6301 2003-04-17 Richard Henderson <rth@redhat.com>
6302
6303 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6304
6305 2003-04-17 Michael Snyder <msnyder@redhat.com>
6306 Karen Bennet <bennet@redhat.com>
6307
6308 Committed by Elena Zannoni <ezannoni@redhat.com>
6309 * gdb_gcore.sh: New script to create a core dump of a process.
6310
6311 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6312
6313 * values.c (value_being_returned): Don't fetch the return
6314 value if the return type is void.
6315
6316 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6317
6318 * thread-db.c: Reindented.
6319
6320 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6321
6322 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6323 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6324 as types.
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6351
6352 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6353 the size of ``long double'' to 16, instead of 8.
6354
6355 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6356
6357 * i386-linux-nat.c: Add some whitespace to make things more
6358 readable.
6359 (fetch_register, store_register, fetch_inferior_registers,
6360 store_inferior_registers): Get rid of assignment in if-statement.
6361 (store_register): Fix typo in error message.
6362
6363 2003-04-16 Andrew Cagney <cagney@redhat.com>
6364
6365 * utils.c (xmmalloc): Always allocate something, matches
6366 libiberty/xmalloc's semantics.
6367 (xmrealloc, xmcalloc): Ditto.
6368
6369 2003-04-16 Andrew Cagney <cagney@redhat.com>
6370
6371 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6372 update comments.
6373 (get_frame_type): Initialize unwind and type when needed.
6374 (get_frame_id, frame_register_unwind): Ditto.
6375
6376 2003-04-16 Andrew Cagney <cagney@redhat.com>
6377
6378 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6379 obsolete.
6380 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6381 * sparcl-stub.c: Obsolete file.
6382 * config/sparc/tm-sparclet.h: Obsolete file.
6383 * sparclet-stub.c: Obsolete file.
6384 * sparclet-rom.c: Obsolete file.
6385 * sparcl-tdep.c: Obsolete file.
6386 * config/sparc/tm-sparclite.h: Obsolete file.
6387 * config/sparc/sparclite.mt: Obsolete file.
6388 * config/sparc/sparclet.mt: Obsolete file.
6389 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6390 sparc86x-*-* obsolete.
6391
6392 2003-04-15 David Carlton <carlton@math.stanford.edu>
6393
6394 * Makefile.in (SFILES): Add cp-namespace.c.
6395 (COMMON_OBS): Add cp-namespace.o.
6396 (block.o): Depend on gdb_obstack_h and cp_support_h.
6397 (buildsym.o): Depend on cp_support_h.
6398 (cp-namespace.o): New.
6399 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6400 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6401 (dwarf2read.o): Depend on cp_support_h.
6402 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6403 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6404 processing_current_namespace.
6405 (read_namespace): Update processing_current_namespace; check for
6406 anonymous namespaces.
6407 (dwarf2_name): New function.
6408 (dwarf2_extension): Ditto.
6409 * cp-support.h: Update copyright, contributors.
6410 Add inclusion guards.
6411 Add opaque declaration for structs obstack, block, symbol.
6412 (struct using_direct): New struct.
6413 Add declarations for cp_find_first_component,
6414 cp_entire_prefix_len, processing_has_namespace_info,
6415 processing_current_namespace, cp_is_anonymous,
6416 cp_add_using_directive, cp_initialize_namespace,
6417 cp_finalize_namespace, cp_set_block_scope,
6418 cp_scan_for_anonymous_namespaces.
6419 * cp-namespace.c: New file.
6420 * cp-support.c: Update copyright.
6421 Include ctype.h, gdb_assert.h, gdbcmd.h.
6422 New variable maint_cplus_cmd_list.
6423 (cp_find_first_component): New function.
6424 (cp_entire_prefix_len, maint_cplus_command)
6425 (first_component_command, _initialize_cp_support): Ditto.
6426 * buildsym.c: Include cp-support.h.
6427 New variable using_list.
6428 (add_symbol_to_list): Check for anonymous namespaces.
6429 (finish_block): Set block's scope.
6430 (start_symtab): Initialize C++ namespace support.
6431 (end_symtab): Finalize C++ namespace support.
6432 * block.h: Add opaque declarations for structs
6433 block_namespace_info, using_direct, and obstack.
6434 Add declarations for block_set_scope and block_set_using.
6435 (struct block): Add 'language_specific' member.
6436 (BLOCK_NAMESPACE): New macro.
6437 * block.c: Include gdb_obstack.h and cp-support.h.
6438 (struct block_namespace_info): New struct.
6439 (block_set_scope): New function.
6440 (block_set_using, block_initialize_namespace): Ditto.
6441
6442 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6443
6444 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6445 (locate_base): Return early if there aren't any link map offsets.
6446 (svr4_solib_create_inferior_hook): Warn if shared library support
6447 is unavailable.
6448
6449 2003-04-14 David Carlton <carlton@math.stanford.edu>
6450
6451 * symtab.c (symbol_set_names): Add prefix when storing Java names
6452 in hash table. Fix for PR java/1039.
6453
6454 2003-04-14 David Carlton <carlton@math.stanford.edu>
6455
6456 * symtab.c (symbol_set_names): Rename 'name' arg to
6457 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6458 * symtab.h: Change 'name' argument in declaration of
6459 symbol_set_names to 'linkage_name'.
6460 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6461
6462 2003-04-14 Andrew Cagney <cagney@redhat.com>
6463
6464 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6465 return the fully sign-extended register value.
6466 (get_frame_pointer): Ditto.
6467 (mips_pop_frame): Initialize "proc_desc" after checking for a
6468 dummy frame.
6469
6470 2003-04-14 Andrew Cagney <cagney@redhat.com>
6471
6472 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6473 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6474 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6475 (mips_push_register): Delete function.
6476 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6477 PUSH_FP_REGNUM.
6478
6479 2003-04-14 Jim Blandy <jimb@redhat.com>
6480
6481 * symmisc.c: #include "gdb_regex.h".
6482 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6483 functions.
6484 * maint.c (maintenance_list_command): New function.
6485 (_initialize_maint_cmds): Register the above as commands.
6486 * symtab.h (maintenance_list_symtabs,
6487 maintenance_list_psymtabs): New declarations.
6488 * cli/cli-cmds.c (maintenancelistlist): New variable.
6489 (init_cmd_lists): Initialize it.
6490 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6491 * gdbcmd.h (maintenancelistlist): New declaration.
6492 * Makefile.in (symmisc.o): Update dependencies.
6493
6494 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6495
6496 * s390-nat.c: Include asm/types.h for addr_t.
6497
6498 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6499
6500 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6501 actually incoming type.
6502
6503 2003-04-13 Andrew Cagney <cagney@redhat.com>
6504
6505 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6506 get_next_frame and get_frame_saved_regs.
6507
6508 2003-04-13 Andrew Cagney <cagney@redhat.com>
6509
6510 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6511 of gdbarch_num_regs.
6512
6513 2003-04-13 Andrew Cagney <cagney@redhat.com>
6514
6515 * frame.h: Mention what replaced what in "struct frame_info".
6516 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6517 deprecated_update_frame_base_hack and
6518 deprecated_update_frame_pc_hack.
6519 * hppa-tdep.c: Ditto.
6520
6521 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6522
6523 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6524 to read_reg and update its comment. Remove regnum member.
6525 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6526 Don't call read_reg when setting in_reg. Call read_reg to get
6527 the frame base if it's in a register. Return the register number
6528 on the stack instead of in the context. Remove extra arguments
6529 to read_reg.
6530 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6531 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6532 the register number on the expression stack.
6533 (needs_frame_read_reg): Remove extra arguments.
6534
6535 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6536
6537 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6538 made non-static.
6539 (execute_stack_op): All callers updated.
6540 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6541 * dwarf2loc.c (find_location_expression): New function.
6542 (dwarf_expr_frame_base): Call it.
6543 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6544 (dwarf2_tracepoint_var_ref): New function, broken out from
6545 locexpr_tracepoint_var_ref.
6546 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6547 Make static.
6548 (loclist_read_variable, loclist_read_needs_frame): New functions.
6549 (loclist_describe_location, loclist_tracepoint_var_ref): New
6550 functions.
6551 (dwarf2_loclist_funcs): New struct location_funcs.
6552 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6553 (struct dwarf2_locexpr_baton): Add comments.
6554 (dwarf2_loclist_funcs): New extern.
6555 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6556 base_address and base_known.
6557 (dwarf_loc_buffer): New variable.
6558 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6559 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6560 (dwarf2_has_info): Initialize dwarf_loc_offset.
6561 (dwarf2_build_psymtabs): Read in .debug_loc.
6562 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6563 DWARF_LOC_SIZE.
6564 (psymtab_to_symtab_1): Likewise. Move base address calculation
6565 here, from...
6566 (dwarf2_get_pc_bounds): ... here. Use the base address from
6567 cu_header.
6568 (dwarf2_symbol_mark_computed): Handle location lists.
6569
6570 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6571
6572 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6573 if the linkage name demangled successfully.
6574
6575 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6576
6577 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6578 disassmbly_flavour): Removed.
6579
6580 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6581
6582 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6583
6584 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6585
6586 2003-04-12 Andrew Cagney <cagney@redhat.com>
6587
6588 * frame.h (struct frame_info): Move definition from here ...
6589 * frame.c (struct frame_info): ... to here.
6590
6591 2003-04-12 Andrew Cagney <cagney@redhat.com>
6592
6593 * gdbthread.h (save_infrun_state): Delete parameter
6594 "prev_func_start".
6595 (struct thread_info): Delete field "prev_func_start".
6596 (load_infrun_state): Ditto.
6597 * thread.c (load_infrun_state, save_infrun_state): Update.
6598 * infrun.c (prev_func_start): Delete variable.
6599 (context_switch, init_wait_for_inferior): Update.
6600 (stop_stepping, keep_going): Update.
6601
6602 2003-04-12 Andrew Cagney <cagney@redhat.com>
6603
6604 * gdbarch.sh: Add missing opaque declarations.
6605 * gdbarch.h: Regnerate.
6606 * symtab.h: Add missing opaque declarations.
6607 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6608 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6609 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6610 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6611 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6612 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6613 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6614 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6615 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6616 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6617 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6618 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6619 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6620
6621 2003-04-11 Andrew Cagney <cagney@redhat.com>
6622
6623 * frame.c (get_frame_id): Return this frame's "id".
6624 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6625 function start.
6626 (legacy_saved_regs_this_id): Replace function body with
6627 internal-error.
6628 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6629 FRAME_OBSTACK_ZALLOC.
6630 (create_new_frame): Mark the frame ID as valid.
6631
6632 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6633
6634 * Makefile.in (libbfd_h): Added missing setting.
6635 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6636 according to the selected ABI.
6637
6638 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6639
6640 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6641
6642 2003-04-11 Andrew Cagney <cagney@redhat.com>
6643
6644 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6645 SAVED_PC_AFTER_CALL.
6646 * gdbarch.h, gdbarch.c: Regenerate.
6647 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6648 * x86-64-tdep.c (x86_64_init_abi): Update.
6649 * vax-tdep.c (vax_gdbarch_init): Update.
6650 * v850-tdep.c (v850_gdbarch_init): Update.
6651 * sparc-tdep.c (sparc_gdbarch_init): Update.
6652 * sh-tdep.c (sh_gdbarch_init): Update.
6653 * s390-tdep.c (s390_gdbarch_init): Update.
6654 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6655 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6656 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6657 * mips-tdep.c (mips_gdbarch_init): Update.
6658 * mcore-tdep.c (mcore_gdbarch_init): Update.
6659 * m68k-tdep.c (m68k_gdbarch_init): Update.
6660 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6661 * ia64-tdep.c (ia64_gdbarch_init): Update.
6662 (ia64_saved_pc_after_call): Update declaration.
6663 * i386ly-tdep.c (i386lynx_init_abi): Update.
6664 * i386-tdep.c (i386_gdbarch_init): Update.
6665 * hppa-tdep.c (hppa_gdbarch_init): Update.
6666 * h8300-tdep.c (h8300_gdbarch_init): Update.
6667 * frv-tdep.c (frv_gdbarch_init): Update.
6668 * cris-tdep.c (cris_gdbarch_init): Update.
6669 * avr-tdep.c (avr_gdbarch_init): Update.
6670 * arm-tdep.c (arm_gdbarch_init): Update.
6671 * alpha-tdep.c (alpha_gdbarch_init): Update.
6672 * ns32knbsd-nat.c (frame_num_args): Update.
6673 * ns32k-tdep.c (umax_frame_num_args): Update.
6674 * mips-tdep.c (mips_init_frame_pc_first): Update.
6675 * infrun.c (step_over_function): Update.
6676 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6677 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6678 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6679 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6680 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6681 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6682 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6683 * arch-utils.c (init_frame_pc_default): Update.
6684 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6685 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6686 declaration.
6687
6688 2003-04-11 Andrew Cagney <cagney@redhat.com>
6689
6690 * i387-tdep.c: Update copyright.
6691 (i387_to_double): Delete function.
6692 (double_to_i387): Delete function.
6693
6694 2003-04-10 Andrew Cagney <cagney@redhat.com>
6695
6696 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6697 frame's function's address. Simplify.
6698 (d10v_frame_unwind_cache): Check that the frame's function is
6699 non-zero.
6700
6701 2003-04-10 Jim Blandy <jimb@redhat.com>
6702
6703 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6704 call to set_gdbarch_deprecated_push_arguments.
6705
6706 2003-04-10 Andrew Cagney <cagney@redhat.com>
6707
6708 * frame.c (fprint_frame_id): New function.
6709 (fprint_frame_type, fprint_frame): New function.
6710 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6711 (create_sentinel_frame, get_frame_id): Ditto.
6712 (frame_id_p, frame_id_eq): Ditto.
6713 (frame_id_inner, create_new_frame): Ditto.
6714 (legacy_get_prev_frame, get_prev_frame): Ditto.
6715 (deprecated_update_frame_pc_hack): Ditto.
6716 (frame_register_unwind): Ditto.
6717 (deprecated_update_frame_base_hack): Ditto.
6718
6719 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6720
6721 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6722 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6723 frame_chain function.
6724 * Makefile.in: Add dependencies due to above change.
6725
6726 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6727
6728 * blockframe.c (legacy_frame_chain_valid): Move call to
6729 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6730 inside_entry_file.
6731
6732 2003-04-09 Andrew Cagney <cagney@redhat.com>
6733
6734 * frame.h (struct frame_id): Replace "pc" and "base" with
6735 "stack_addr" and "code_addr". Update comments.
6736 (frame_id_build): Update parameter names and comment.
6737 (struct frame_info): Replace "id_p" and "id" with "this_id".
6738 * dummy-frame.c (dummy_frame_this_id): Update.
6739 * breakpoint.c (print_one_breakpoint): Update.
6740 * frame.c (get_frame_id): Update.
6741 (get_frame_base, frame_id_build): Update.
6742 (create_sentinel_frame, legacy_get_prev_frame): Update.
6743 (deprecated_update_frame_base_hack): Update.
6744 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6745 (frame_id_inner): Ditto.
6746
6747 2003-04-09 Andrew Cagney <cagney@redhat.com>
6748
6749 * defs.h (gdb_print_host_address): Make "addr" parameter a
6750 pointer constant.
6751 * utils.c (gdb_print_host_address): Update.
6752
6753 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6754
6755 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6756 register number for R0 is 0.
6757
6758 2003-04-09 J. Brobecker <brobecker@gnat.com>
6759
6760 * frame.h (struct gdbarch): Add opaque structure definition
6761 to avoid a compilation warning on LynxOS 4.0.
6762
6763 2003-04-09 Andrew Cagney <cagney@redhat.com>
6764
6765 * frame.h (struct frame_info): Delete field "pc". Replace
6766 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6767 structure.
6768 * frame.c (frame_pc_unwind): Update.
6769 (create_sentinel_frame): Do not set "pc".
6770 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6771 (get_frame_pc): Call frame_pc_unwind.
6772 (deprecated_update_frame_pc_hack): Update.
6773 (create_new_frame): Use "pc" not "->pc".
6774
6775 2003-04-09 Andrew Cagney <cagney@redhat.com>
6776
6777 * frame.c (get_frame_id): Eliminate code updating "frame".
6778 (legacy_get_prev_frame): Ditto.
6779 (get_frame_base): Return id.base directly.
6780 (deprecated_update_frame_base_hack): Update "id.base".
6781 * frame.h (struct frame_info): Delete field "frame".
6782
6783 2003-04-09 Andrew Cagney <cagney@redhat.com>
6784
6785 * NEWS: Mention that the "Sequent family" is obsolete.
6786 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6787 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6788 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6789 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6790 * config/i386/tm-ptx4.h: Obsolete file.
6791 * config/i386/tm-ptx.h: Obsolete file.
6792 * symm-tdep.c: Obsolete file.
6793 * config/i386/symmetry.mt: Obsolete file.
6794 * config/i386/tm-symmetry.h: Obsolete file.
6795 * symm-nat.c: Obsolete file.
6796 * config/i386/nm-symmetry.h: Obsolete file.
6797 * config/i386/xm-symmetry.h: Obsolete file.
6798 * config/i386/symmetry.mh: Obsolete file.
6799 * config/i386/nm-ptx4.h: Obsolete file.
6800 * config/i386/ptx4.mh: Obsolete file.
6801 * config/i386/ptx.mt: Obsolete file.
6802 * config/i386/ptx.mh: Obsolete file.
6803 * config/i386/xm-ptx4.h: Obsolete file.
6804 * config/i386/xm-ptx.h: Obsolete file.
6805
6806 2003-04-09 Andrew Cagney <cagney@redhat.com>
6807
6808 Obsolete mips*-*-mach3*.
6809 * NEWS: Mention that mips*-*-mach3* is obsolete.
6810 * m3-nat.c: Obsolete file.
6811 * config/nm-m3.h: Obsolete file.
6812 * config/mips/tm-mipsm3.h: Obsolete file.
6813 * config/mips/mipsm3.mt: Obsolete file.
6814 * config/mips/mipsm3.mh: Obsolete file.
6815 * config/mips/xm-mipsm3.h: Obsolete file.
6816 * mipsm3-nat.c: Obsolete file.
6817 * configure.host: Obsolete mips-dec-mach3*.
6818 * configure.tgt: Obsolete mips*-*-mach3*.
6819
6820 2003-04-09 Andrew Cagney <cagney@redhat.com>
6821
6822 * doublest.h: Update copyright.
6823 (deprecated_store_floating, deprecated_extract_floating): Rename
6824 store_floating and extract_floating. Update comments.
6825 * doublest.c: Update copyright.
6826 (extract_floating_by_length): Replace extract_floating.
6827 (store_floating_by_length): Replace store_floating.
6828 (deprecated_extract_floating): New function.
6829 (deprecated_store_floating): New function.
6830 (extract_typed_floating): Call extract_floating_by_length.
6831 (store_typed_floating): Call store_floating_by_length.
6832 * x86-64-tdep.c (x86_64_store_return_value): Update.
6833 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6834 (sh64_extract_return_value): Update.
6835 (sh_sh4_register_convert_to_virtual): Update.
6836 (sh_sh64_register_convert_to_virtual): Update.
6837 (sh_sh4_register_convert_to_raw): Update.
6838 (sh_sh64_register_convert_to_raw): Update.
6839 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6840 (rs6000_register_convert_to_raw): Update.
6841 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6842 (ia64_register_convert_to_raw): Update.
6843 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6844 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6845 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6846 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6847 (alpha_register_convert_to_raw): Update.
6848
6849 2003-04-08 Andrew Cagney <cagney@redhat.com>
6850
6851 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6852 * gdbarch.h, gdbarch.c: Re-generate.
6853 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6854 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6855 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6856 conditionally, use frame_pc_unwind as an alternative. Add
6857 comments.
6858 * arch-utils.c (init_frame_pc_default): Only call
6859 SAVED_PC_AFTER_CALL when available.
6860
6861 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6862
6863 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6864 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6865 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6866 (start_remote): Ditto.
6867 (handle_inferior_event): Ditto.
6868 (save_inferior_status): Ditto.
6869 (restore_inferior_status): Ditto.
6870 * infcmd.c (attach_command): Ditto.
6871 * fork-child.c (startup_inferior): Ditto.
6872 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6873 * alpha-tdep.c (heuristic_proc_start): Ditto.
6874 * mips-tdep.c (heuristic_proc_start): Ditto.
6875 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6876 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6877 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6878 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6879 * remote-vx.c (vx_create_inferior): Ditto.
6880
6881 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6882
6883 * infrun.c (stop_soon_quietly): Make it an enum, to better
6884 override the default behavior of handle_inferior_event.
6885 (clear_proceed_status): Update uses of stop_soon_quietly to
6886 reflect that it is now an enum.
6887 (start_remote): Ditto.
6888 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6889 is set to handle the new GNU/Linux kernel behavior for
6890 attach/sigstop. Update uses of stop_soon_quietly.
6891 * inferior.h (enum stop_kind): New enum.
6892 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6893 Reset normal handle_inferior_event behavior, afterwards.
6894 * fork-child.c (startup_inferior): Update.
6895 * alpha-tdep.c (heuristic_proc_start): Update.
6896 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6897 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6898 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6899 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6900 * remote-vx.c (vx_create_inferior): Update.
6901 * mips-tdep.c (heuristic_proc_start): Update.
6902
6903 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6904
6905 * disasm.c (dump_insns): Move variables inside loop, or they will
6906 be freed more than once, causing wild memory corruptions.
6907 (gdb_disassembly): Look for the substring "-thread",
6908 instead of "-threads" in the target name, to make sure to find
6909 the 'multi-thread' target. Also, make sure we do the right thing
6910 with the "core" target.
6911
6912 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6913
6914 * mips-tdep.c (mips_print_fp_register): New function, created from
6915 do_fp_register_row(). Registers are now (also) printed as hex.
6916 Only one register is printed per row.
6917 (mips_print_register, do_fp_register_row): Print floating point
6918 registers with mips_print_fp_register().
6919
6920 2003-04-06 Andrew Cagney <cagney@redhat.com>
6921
6922 * valprint.h (inspect_it): Add extern declaration.
6923 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6924 (selectors_info, classes_info): Ditto.
6925 (find_objc_msgcall): Fix indentation.
6926 (objc_printstr): Delete extern declarations.
6927
6928 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6929
6930 2003-04-06 Andrew Cagney <cagney@redhat.com>
6931
6932 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6933 Update comment.
6934 * frame.c (legacy_saved_regs_this_id): Update.
6935 (legacy_get_prev_frame): Update.
6936 * xstormy16-tdep.c: Update comment.
6937 * sparc-tdep.c (sparc_frame_chain): Update comment.
6938 * blockframe.c (legacy_frame_chain_valid): Update.
6939
6940 2003-04-06 Andrew Cagney <cagney@redhat.com>
6941
6942 * valprint.c (val_print_type_code_int): Delete #ifdef
6943 PRINT_TYPELESS_INTEGER code.
6944
6945 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6946 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6947 multi-arch definition.
6948 * gdbarch.h: Re-generate.
6949
6950 2003-04-05 Andrew Cagney <cagney@redhat.com>
6951
6952 Eliminate FRAME_FIND_SAVED_REGS.
6953 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6954 Change FSR parameter to a pointer.
6955 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6956 Assume FSR parameter is a pointer.
6957 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6958 Make fsr a pointer.
6959 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6960 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6961 saved_regs a pointer.
6962 (hppa_frame_saved_pc): Ditto.
6963 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6964 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6965 pointer.
6966 (restore_pc_queue): Make fsr a pointer.
6967 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6968 (hppa_frame_chain): Make saved_regs a pointer, call
6969 hppa_frame_init_saved_regs.
6970 * sparc-tdep.c: Include "gdb_assert.h".
6971 (sparc_frame_find_saved_regs): Replace internal_error with
6972 gdb_assert.
6973 * remote-vxsparc.c (vx_read_register): Delete reference to
6974 FRAME_FIND_SAVED_REGS.
6975 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6976 * gdbarch.h: Regenerate.
6977 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6978 (deprecated_get_frame_saved_regs): Delete declaration.
6979 (struct frame_saved_regs): Delete definition.
6980 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6981 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6982 (hppa_frame_find_saved_regs): Delete declaration.
6983 (FRAME_FIND_SAVED_REGS): Delete macro.
6984 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6985 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6986 FRAME_FIND_SAVED_REGS in comment.
6987
6988 2003-04-05 Andrew Cagney <cagney@redhat.com>
6989
6990 * frame.c (frame_func_unwind, get_frame_func): New functions.
6991 * frame.h (get_frame_func, frame_func_unwind): Declare.
6992 (struct frame_info): Add field "prev_func" for caching the
6993 previous frame's function address.
6994 * arm-tdep.c (arm_frameless_function_invocation): Combine
6995 get_pc_function_start and get_frame_pc into get_frame_func.
6996 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6997 (sh64_nofp_frame_init_saved_regs): Ditto.
6998 * s390-tdep.c (s390_function_start): Ditto.
6999 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7000 (rs6000_frameless_function_invocation): Ditto.
7001 (rs6000_frame_saved_pc): Ditto.
7002 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7003 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7004 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7005 (i386_frame_init_saved_regs): Ditto.
7006 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7007 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7008 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7009 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7010 * blockframe.c (frameless_look_for_prologue): Ditto.
7011
7012 2003-04-05 Andrew Cagney <cagney@redhat.com>
7013
7014 * frame.c (legacy_get_prev_frame): Link prev to next at the
7015 function start. Update comments.
7016
7017 2003-04-05 Andrew Cagney <cagney@redhat.com>
7018
7019 * frame.c (get_frame_id): Update comment.
7020 (legacy_get_prev_frame): Update comment.
7021 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7022 * gdbarch.h: Regenerate.
7023 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7024 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7025
7026 2003-04-05 Andrew Cagney <cagney@redhat.com>
7027
7028 * stack.c (print_frame_info): Use get_frame_pc.
7029
7030 2003-04-04 Andrew Cagney <cagney@redhat.com>
7031
7032 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7033 the frame's type from the unwinder.
7034 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7035 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7036 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7037 (get_frame_base_address): Use get_frame_type.
7038 (get_frame_locals_address, get_frame_args_address): Ditto.
7039 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7040 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7041 (struct frame_info): Add comment explaining why the frame contains
7042 a "type" field.
7043 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7044 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7045 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7046 NORMAL_FRAME.
7047 * frame-unwind.h: Include "frame.h".
7048 (struct frame_unwind): Add "type" field.
7049 * Makefile.in (frame_unwind_h): Add $(frame_h).
7050
7051 2003-04-04 Andrew Cagney <cagney@redhat.com>
7052
7053 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7054 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7055 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7056 get_frame_base.
7057 (d10v_unwind_dummy_id): Use frame_id_build.
7058 * frame.c (find_frame_sal): Use get_frame_pc.
7059 (create_new_frame): Use deprecated_update_frame_pc_hack and
7060 deprecated_update_frame_base_hack.
7061 (create_sentinel_frame): Add comment about ->pc going away.
7062 (get_prev_frame): Add comment about ->pc going away.
7063 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7064 frame_id_build, deprecated_update_frame_pc_hack and
7065 deprecated_update_frame_base_hack.
7066 (select_frame): Use get_frame_pc.
7067 (legacy_saved_regs_this_id): Use frame_id_build.
7068
7069 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7070
7071 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7072 signed integer case.
7073 (classify_argument): Handle enumerations and references.
7074
7075 2003-04-04 Andrew Cagney <cagney@redhat.com>
7076
7077 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7078 ID to NULL.
7079
7080 2003-04-01 Adam Fedor <fedor@gnu.org>
7081
7082 * gdb/objc-lang.c (selectors_info): Replace calls to
7083 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7084 SYMBOL_NATURAL_NAME.
7085 (classes_info, find_methods): Likewise.
7086
7087 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7088
7089 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7090 ``mach'' to the value determined by bfd_default_set_arch_mach().
7091
7092 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7093
7094 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7095 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7096 (mi-cmd-file.o): Update dependencies.
7097
7098 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7099
7100 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7101 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7102
7103 2003-04-01 Adam Fedor <fedor@gnu.org>
7104
7105 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7106 * language.h (struct language_defn): Add la_demangle.
7107 (language_demangle): Declare.
7108 * language.c (language_demangle): New function.
7109 (unk_lang_demangle): Likewise.
7110 (unknown_language_defn, auto_language_defn, local_language_defn):
7111 Add ukn_lang_demangle.
7112 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7113 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7114 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7115 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7116 * jv-lang.c (java_demangle): New function
7117 (java_language_defn): Use it for la_demangle element.
7118 * objc-lang.c (objc_demangle): Add options argument
7119 (objc_language_defn): Use objc_demangle for la_demangle element.
7120 * maint.c (maintenance_demangle): Replace switch with
7121 call to language_demangle.
7122 * utils.c (fprintf_symbol_filtered): Likewise.
7123
7124 2003-04-01 Andrew Cagney <cagney@redhat.com>
7125
7126 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7127 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7128 PRINT_TYPELESS_INTEGER.
7129 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7130 PUSH_RETURN_ADDRESS.
7131
7132 2003-04-01 Andrew Cagney <cagney@redhat.com>
7133
7134 * Makefile.in (d10v-tdep.o): Update dependencies.
7135 * d10v-tdep.c: Include "frame-base.h".
7136 (d10v_frame_unwind): Make constant.
7137 (d10v_frame_base_address): New function.
7138 (d10v_frame_base): New variable.
7139 (d10v_gdbarch_init): Set frame_base default.
7140 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7141 comment for base.
7142 (d10v_frame_unwind_cache): Set and use "prev_sp".
7143 (d10v_frame_this_id): Use the previous frame's inner most stack
7144 address and this frame's func address for the frame ID. Use
7145 frame_id_build. Don't analyze beyond the current instruction.
7146
7147 2003-04-01 Andrew Cagney <cagney@redhat.com>
7148
7149 * frame.h (get_frame_locals_address, get_frame_args_address):
7150 Refer to the base address, instead of the address of the first
7151 local or parameter.
7152
7153 2003-04-01 Andrew Cagney <cagney@redhat.com>
7154
7155 Add frame debug info addresses:
7156 * frame-base.c: New file.
7157 * frame-base.h: New file.
7158 * frame.h (struct frame_base): Add opaque declaration.
7159 (get_frame_base): Update comment.
7160 (get_frame_base_address): Declare.
7161 (get_frame_locals_address): Declare.
7162 (get_frame_args_address): Declare.
7163 (struct frame_info): Add "base" and "base_cache". Update
7164 comments on the unwinder.
7165 * frame.c: Include "frame-base.h".
7166 (get_frame_locals_address): New function.
7167 (get_frame_base_address): New function.
7168 (get_frame_args_address): New function.
7169 * findvar.c (read_var_value): Use get_frame_locals_address and
7170 get_frame_args_address.
7171 * stack.c (frame_info): Use get_frame_locals_address and
7172 get_frame_args_address.
7173 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7174 moved to "frame-base.c".
7175 * printcmd.c (print_frame_nameless_args): Ditto.
7176 * symtab.h (address_class): Update comments.
7177 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7178 get_frame_base_address.
7179 * dwarf2expr.c (execute_stack_op): Ditto.
7180 * Makefile.in (frame_base_h): Define.
7181 (frame.o): Update dependencies.
7182 (frame-base.o): Add dependencies.
7183 (SFILES): Add frame-base.c.
7184 (COMMON_OBS): Add frame-base.o.
7185
7186 2003-04-01 Andrew Cagney <cagney@redhat.com>
7187
7188 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7189 CALL_DUMMY_LENGTH): Ditto.
7190 * gdbarch.c: Re-generate.
7191 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7192 (CALL_DUMMY_LENGTH): Delete macro.
7193 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7194 * arm-tdep.c (arm_gdbarch_init): Ditto.
7195 * avr-tdep.c (avr_gdbarch_init): Ditto.
7196 * cris-tdep.c (cris_gdbarch_init): Ditto.
7197 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7198 * frv-tdep.c (frv_gdbarch_init): Ditto.
7199 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7200 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7201 * i386-tdep.c (i386_gdbarch_init): Ditto.
7202 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7203 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7204 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7205 * mips-tdep.c (mips_gdbarch_init): Ditto.
7206 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7207 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7208 * s390-tdep.c (s390_gdbarch_init): Ditto.
7209 * sh-tdep.c (sh_gdbarch_init): Ditto.
7210 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7211 * v850-tdep.c (v850_gdbarch_init): Ditto.
7212 * vax-tdep.c (vax_gdbarch_init): Ditto.
7213 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7214
7215 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7216
7217 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7218
7219 2003-04-01 Andrew Cagney <cagney@redhat.com>
7220
7221 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7222 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7223 * gdbarch.h, gdbarch.c: Re-generate.
7224 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7225 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7226 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7227 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7228 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7229 * infcmd.c (run_stack_dummy): Simplify assuming
7230 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7231 * infrun.c (handle_inferior_event): Ditto.
7232 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7233 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7234 * arm-tdep.c (arm_gdbarch_init): Ditto.
7235 * avr-tdep.c (avr_gdbarch_init): Ditto.
7236 * cris-tdep.c (cris_gdbarch_init): Ditto.
7237 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7238 * frv-tdep.c (frv_gdbarch_init): Ditto.
7239 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7240 * i386-tdep.c (i386_gdbarch_init): Ditto.
7241 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7242 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7243 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7244 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7245 * mips-tdep.c (mips_gdbarch_init): Ditto.
7246 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7247 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7248 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7249 * s390-tdep.c (s390_gdbarch_init): Ditto.
7250 * sh-tdep.c (sh_gdbarch_init): Ditto.
7251 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7252 * v850-tdep.c (v850_gdbarch_init): Ditto.
7253 * vax-tdep.c (vax_gdbarch_init): Ditto.
7254 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7255
7256 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7257
7258 * symfile.c (symfile_relocate_debug_section): Update call to
7259 bfd_simple_get_relocated_section_contents.
7260
7261 2003-03-31 Andrew Cagney <cagney@redhat.com>
7262
7263 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7264 * gdbarch.h, gdbarch.c: Regenerate.
7265 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7266 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7267 available.
7268 * frame.h (generic_fix_call_dummy): Delete declaration.
7269 * dummy-frame.h: Update comment.
7270 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7271 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7272 fix_call_dummy.
7273 * sh-tdep.c (sh_gdbarch_init): Ditto.
7274 * s390-tdep.c (s390_gdbarch_init): Ditto.
7275 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7276 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7278 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7279 * i386-tdep.c (i386_gdbarch_init): Ditto.
7280 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7281 * frv-tdep.c (frv_gdbarch_init): Ditto.
7282 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7283 * cris-tdep.c (cris_gdbarch_init): Ditto.
7284 * avr-tdep.c (avr_gdbarch_init): Ditto.
7285 * arm-tdep.c (arm_gdbarch_init): Ditto.
7286
7287 2003-03-31 J. Brobecker <brobecker@gnat.com>
7288
7289 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7290 (INIT_FRAME_AP): Likewise.
7291 (EXTRA_FRAME_INFO): Likewise.
7292
7293 2003-03-31 Andrew Cagney <cagney@redhat.com>
7294
7295 * gdbarch.sh: Include "symfile.h".
7296 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7297 * gdbarch.h, gdbarch.c: Re-generate.
7298 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7299 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7300 call_dummy_address, the default is at entry_point_address.
7301 * v850-tdep.c (v850_gdbarch_init): Ditto.
7302 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7303 * sh-tdep.c (sh_gdbarch_init): Ditto.
7304 * s390-tdep.c (s390_gdbarch_init): Ditto.
7305 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7306 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7307 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7308 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7309 * i386-tdep.c (i386_gdbarch_init): Ditto.
7310 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7311 * frv-tdep.c (frv_gdbarch_init): Ditto.
7312 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7313 * cris-tdep.c (cris_gdbarch_init): Ditto.
7314 * arm-tdep.c (arm_gdbarch_init): Ditto.
7315
7316 2003-03-31 Andrew Cagney <cagney@redhat.com>
7317
7318 * gdbarch.sh (CALL_DUMMY_P): Delete.
7319 * gdbarch.h, gdbarch.c: Re-generate.
7320 * inferior.h (CALL_DUMMY_P): Delete macro.
7321 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7322 * vax-tdep.c (vax_gdbarch_init): Update.
7323 * v850-tdep.c (v850_gdbarch_init): Update.
7324 * sparc-tdep.c (sparc_gdbarch_init): Update.
7325 * sh-tdep.c (sh_gdbarch_init): Update.
7326 * s390-tdep.c (s390_gdbarch_init): Update.
7327 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7328 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7329 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7330 * mips-tdep.c (mips_gdbarch_init): Update.
7331 * mcore-tdep.c (mcore_gdbarch_init): Update.
7332 * m68k-tdep.c (m68k_gdbarch_init): Update.
7333 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7334 * ia64-tdep.c (ia64_gdbarch_init): Update.
7335 * i386-tdep.c (i386_gdbarch_init): Update.
7336 * h8300-tdep.c (h8300_gdbarch_init): Update.
7337 * frv-tdep.c (frv_gdbarch_init): Update.
7338 * d10v-tdep.c (d10v_gdbarch_init): Update.
7339 * cris-tdep.c (cris_gdbarch_init): Update.
7340 * breakpoint.c (deprecated_frame_in_dummy): Update.
7341 * avr-tdep.c (avr_gdbarch_init): Update.
7342 * alpha-tdep.c (alpha_gdbarch_init): Update.
7343 * arm-tdep.c (arm_gdbarch_init): Update.
7344 * dummy-frame.c (dummy_frame_this_id): Update comments.
7345 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7346 * frame.c (legacy_get_prev_frame): Ditto.
7347 * valops.c (call_function_by_hand): Delete function.
7348 (hand_function_call): Rename to call_function_by_hand
7349
7350 2003-03-30 Andrew Cagney <cagney@redhat.com>
7351
7352 2002-11-10 Klee Dienes <kdienes@apple.com>
7353 * value.h (struct value): Update comment.
7354
7355 2003-03-30 Andrew Cagney <cagney@redhat.com>
7356
7357 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7358 D10V_FP_REGNUM.
7359 (d10v_gdbarch_init): Do not set fp_regnum.
7360
7361 * frame.c (get_frame_base): Force ID initialization.
7362 (get_prev_frame): Move computation of the frame ID from here ...
7363 (get_frame_id): ... to here.
7364 (legacy_get_prev_frame): Mark the frame ID as valid.
7365 * frame.h (struct frame_info): Add field "id_p".
7366
7367 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7368
7369 * i386-tdep.c (i386_store_struct_return): Removed.
7370 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7371
7372 2003-03-30 Andrew Cagney <cagney@redhat.com>
7373
7374 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7375 * gdbarch.h, gdbarch.c: Regenerate.
7376 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7377 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7378 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7379 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7380 * i386-tdep.c (i386_gdbarch_init): Ditto.
7381 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7382 * cris-tdep.c (cris_gdbarch_init): Ditto.
7383 * vax-tdep.c (vax_gdbarch_init): Ditto.
7384 * s390-tdep.c (s390_gdbarch_init): Ditto.
7385 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7386 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7387 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7388 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7389 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7390 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7391 * sparc-tdep.c (sparc_gdbarch_init): Update.
7392 * sh-tdep.c (sh_gdbarch_init): Update.
7393 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7394 * mips-tdep.c (mips_gdbarch_init): Update.
7395 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7396 * ia64-tdep.c (ia64_gdbarch_init): Update.
7397 * frv-tdep.c (frv_gdbarch_init): Update.
7398 * avr-tdep.c (avr_gdbarch_init): Update.
7399 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7400 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7401 instead of when push_dummy_call is not available.
7402
7403 2003-03-30 Andrew Cagney <cagney@redhat.com>
7404
7405 * infttrace.c: Include "gdbthread.h".
7406 (parent_attach_all): Fix function signature.
7407 (call_ptrace): Update call.
7408 * Makefile.in (infttrace.o): Update dependencies.
7409
7410 2003-03-30 Andrew Cagney <cagney@redhat.com>
7411
7412 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7413 PUSH_RETURN_ADDRESS.
7414 * gdbarch.h, gdbarch.c: Regenerate.
7415 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7416 * x86-64-tdep.c (x86_64_init_abi): Update.
7417 * v850-tdep.c (v850_gdbarch_init): Update.
7418 * sparc-tdep.c (sparc_gdbarch_init): Update.
7419 * sh-tdep.c (sh_gdbarch_init): Update.
7420 * s390-tdep.c (s390_gdbarch_init): Update.
7421 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7422 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7423 * mips-tdep.c (mips_gdbarch_init): Update.
7424 * mcore-tdep.c (mcore_gdbarch_init): Update.
7425 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7426 * ia64-tdep.c (ia64_gdbarch_init): Update.
7427 * i386-tdep.c (i386_gdbarch_init): Update.
7428 * h8300-tdep.c (h8300_gdbarch_init): Update.
7429 * frv-tdep.c (frv_gdbarch_init): Update.
7430 * cris-tdep.c (cris_gdbarch_init): Update.
7431 * avr-tdep.c (avr_gdbarch_init): Update.
7432 * arm-tdep.c (arm_gdbarch_init): Update.
7433 * valops.c (hand_function_call): Update.
7434
7435 2003-03-29 Andrew Cagney <cagney@redhat.com>
7436
7437 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7438 sizeof_call_dummy_words.
7439 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7440 define.
7441 * gdbarch.h: Regenerate.
7442
7443 2003-03-29 Andrew Cagney <cagney@redhat.com>
7444
7445 * infttrace.h: New file.
7446 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7447 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7448 (hpread_read_doc_function_type): Detect an initialized type1.
7449 (hpread_quick_traverse): Initialize mod_name_string.
7450 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7451 (som_solib_get_solib_by_pc): Declare.
7452 (so_lib_thread_start_addr): Declare.
7453 (no_shared_libraries): Declare.
7454 * somread.c (init_import_symbols): Make static. Add forward
7455 declaration.
7456 * config/pa/nm-hppah.h: Include "infttrace.h" for
7457 parent_attach_all.
7458 (hppa_insert_hw_watchpoint): Declare.
7459 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7460 * hppah-nat.c: Include "gdb_string.h".
7461 (parent_attach_all): Delete extern declaration, moved to
7462 "infttrace.h".
7463 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7464 int.
7465 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7466 * Makefile.in (infttrace_h): Define.
7467 (hpread.o): Update dependencies.
7468 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7469 * hppa-hpux-tdep.c: Include "gdb_string.h".
7470 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7471 * infrun.c (handle_inferior_event): Always initialize
7472 stepped_after_stopped_by_watchpoint. Add default and remove
7473 fallthrough in switch statement.
7474 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7475 parameter to int.
7476 (hppa_remove_hw_watchpoint): Ditto.
7477
7478 2003-03-29 Andrew Cagney <cagney@redhat.com>
7479
7480 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7481 offset.
7482
7483 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7484
7485 * arm-tdep.c (arm_push_arguments): Delete.
7486 (struct stack_item): New type.
7487 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7488 (arm_store_struct_return): Delte.
7489 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7490 arm_push_arguments or arm_store_struct_return.
7491
7492 2003-03-28 Andrew Cagney <cagney@redhat.com>
7493
7494 * Makefile.in (d10v-tdep.o): Update dependencies.
7495 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7496 * d10v-tdep.c: Include "remote.h".
7497 (target_resume_hook): Delete extern declaration.
7498 (target_wait_loop_hook): Ditto.
7499 (tdisassemble_command): Eliminate assignment in "if" conditional.
7500 (d10v_ts2_register_sim_regno): Eliminate call to
7501 legacy_register_sim_regno.
7502 (d10v_ts3_register_sim_regno): Ditto.
7503
7504 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7505
7506 * thread.c: Reindented.
7507 * lin-lwp.c: Ditto.
7508 * linux-proc.c: Ditto.
7509
7510 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7511
7512 * MAINTAINERS (write after approval): Add myself.
7513
7514 2003-03-27 Theodore A. Roth <troth@openavr.org>
7515
7516 * objc-exp.y: Add missing semi-colons.
7517
7518 2003-03-27 Andrew Cagney <cagney@redhat.com>
7519
7520 * regcache.c (write_sp): Delete function and references.
7521 * inferior.h (write_sp): Delete declaration.
7522 * valops.c (hand_function_call): Replace write_sp with
7523 TARGET_WRITE_SP.
7524 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7525 (sparc_pop_frame): Ditto.
7526
7527 2003-03-27 Andrew Cagney <cagney@redhat.com>
7528
7529 * NEWS: Mention removal of support for hppa*-*-bsd* and
7530 hppa*-*-osf* natives, and hppa*-*-pro* target.
7531 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7532 * config/pa/xm-pa.h: Obsolete file.
7533 * config/pa/xm-hppab.h: Obsolete file.
7534 * config/pa/nm-hppab.h: Obsolete file.
7535 * config/pa/tm-hppab.h: Obsolete file.
7536 * config/pa/tm-hppao.h: Obsolete file.
7537 * config/pa/nm-hppao.h: Obsolete file.
7538 * config/pa/tm-pro.h: Obsolete file.
7539 * config/pa/hppaosf.mt: Obsolete file.
7540 * config/pa/hppaosf.mh: Obsolete file.
7541 * config/pa/hppapro.mt: Obsolete file.
7542 * config/pa/hppabsd.mt: Obsolete file.
7543 * config/pa/hppabsd.mh: Obsolete file.
7544 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7545 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7546 hppa*-*-osf*.
7547
7548 2003-03-27 Andrew Cagney <cagney@redhat.com>
7549
7550 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7551 push_arguments. Don't set push_return_address or write_sp.
7552 (d10v_push_dummy_call): Replace d10v_push_arguments.
7553 (d10v_push_return_address, d10v_write_sp): Delete function,
7554 handled by push_dummy_call.
7555
7556 2003-03-26 Andrew Cagney <cagney@redhat.com>
7557
7558 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7559 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7560 regcache and dummy_addr parameters.
7561 * gdbarch.h, gdbarch.c: Re-generate.
7562 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7563 available; assume it will handle stack alignment and return
7564 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7565 legacy_push_arguments.
7566 (legacy_push_arguments): Rename default_push_arguments.
7567 * value.h (legacy_push_arguments): Rename default_push_arguments.
7568 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7569 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7570 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7571 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7572 * config/i386/tm-symmetry.h: Update.
7573 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7574 * x86-64-tdep.c (x86_64_init_abi): Update.
7575 * v850-tdep.c (v850_gdbarch_init): Update.
7576 * sparc-tdep.c (sparc_gdbarch_init): Update.
7577 * sh-tdep.c (sh_gdbarch_init): Update.
7578 * s390-tdep.c (s390_gdbarch_init): Update.
7579 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7580 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7581 * mips-tdep.c (mips_gdbarch_init): Update.
7582 * mcore-tdep.c (mcore_gdbarch_init): Update.
7583 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7584 * ia64-tdep.c (ia64_gdbarch_init): Update.
7585 * i386-tdep.c (i386_gdbarch_init): Update.
7586 * hppa-tdep.c (hppa_gdbarch_init): Update.
7587 * h8300-tdep.c (h8300_gdbarch_init): Update.
7588 * frv-tdep.c (frv_gdbarch_init): Update.
7589 * d10v-tdep.c (d10v_gdbarch_init): Update.
7590 * cris-tdep.c (cris_gdbarch_init): Update.
7591 * avr-tdep.c (avr_gdbarch_init): Update.
7592 * arm-tdep.c (arm_gdbarch_init): Update.
7593 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7594 * alpha-tdep.c (alpha_gdbarch_init): Update.
7595
7596 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7597
7598 * signals/signals.c (do_target_signal_to_host): Correct realtime
7599 signal range test.
7600
7601 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7602
7603 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7604 (struct sal_chain, map_catch_names): Remove.
7605 (catch_exception_command_1): Don't call
7606 handle_gnu_4_16_catch_command.
7607
7608 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7609
7610 From Mark Dettinger <dettinge@de.ibm.com>:
7611 * dwarf2cfi.c (read_2u): Increment pointer by two.
7612
7613 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7614
7615 * signals/signals.c: Fix typos in last change.
7616
7617 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7618
7619 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7620 not already defined. Use __SIGRTMIN if available.
7621 (target_signal_from_host): Remove SIGRTMIN block.
7622 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7623 the signal is within the realtime range.
7624
7625 2003-03-25 Adam Fedor <fedor@gnu.org>
7626
7627 * Makefile.in (infrun.o): Add $(language_h)
7628 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7629 for language specific trampolines.
7630 * language.h (struct language_defn): Add skip_trampoline.
7631 (skip_language_trampoline): Declare.
7632 * language.c (unk_lang_trampoline, skip_language_trampoline):
7633 New functions.
7634 (unknown_language_defn, auto_language_defn, local_language_defn):
7635 Add ukn_lang_trampoline.
7636 * ada-lang.c (ada_language_defn): Add NULL for language
7637 specific skip_trampoline.
7638 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7639 scm-lang.c: Likewise.
7640 * objc-lang.c (objc_skip_trampoline): New function.
7641 (objc_language_defn): Add objc_skip_trampoline.
7642
7643 2003-03-25 Andrew Cagney <cagney@redhat.com>
7644
7645 * frame.c (get_prev_frame): Delay validating a frame's ID -
7646 non-NULL, didn't go backwards - until an attempt to unwind it to
7647 the previous frame.
7648
7649 2003-03-25 Andrew Cagney <cagney@redhat.com>
7650
7651 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7652 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7653 * gdbarch.h, gdbarch.c: Re-generate.
7654 * config/sparc/tm-sparc.h
7655 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7656 * sparc-tdep.c (sparc_gdbarch_init): Set
7657 deprecated_extra_stack_alignment_needed.
7658 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7659 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7660 extra_stack_alignment_needed.
7661 * v850-tdep.c (v850_gdbarch_init): Ditto.
7662 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7663 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7664 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7665 * cris-tdep.c (cris_gdbarch_init): Ditto.
7666 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7667 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7668
7669 2003-03-25 Andrew Cagney <cagney@redhat.com>
7670
7671 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7672 STORE_STRUCT_RETURN.
7673 * gdbarch.h, gdbarch.c: Regenerate.
7674 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7675 (d10v_push_arguments): Set the struct return register.
7676 (d10v_gdbarch_init): Update.
7677 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7678 * x86-64-tdep.c (x86_64_init_abi): Update.
7679 * vax-tdep.c (vax_gdbarch_init): Update.
7680 * v850-tdep.c (v850_gdbarch_init): Update.
7681 * sparc-tdep.c (sparc_gdbarch_init): Update.
7682 * sh-tdep.c (sh_gdbarch_init): Update.
7683 * s390-tdep.c (s390_gdbarch_init): Update.
7684 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7685 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7686 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7687 * mips-tdep.c (mips_gdbarch_init): Update.
7688 * mcore-tdep.c (mcore_gdbarch_init): Update.
7689 * m68k-tdep.c (m68k_gdbarch_init): Update.
7690 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7691 * ia64-tdep.c (ia64_gdbarch_init): Update.
7692 * i386-tdep.c (i386_gdbarch_init): Update.
7693 * hppa-tdep.c (hppa_gdbarch_init): Update.
7694 * h8300-tdep.c (h8300_gdbarch_init): Update.
7695 * frv-tdep.c (frv_gdbarch_init): Update.
7696 * cris-tdep.c (cris_gdbarch_init): Update.
7697 * avr-tdep.c (avr_gdbarch_init): Update.
7698 * arm-tdep.c (arm_gdbarch_init): Update.
7699 * alpha-tdep.c (alpha_gdbarch_init): Update.
7700
7701 2003-03-25 Andrew Cagney <cagney@redhat.com>
7702
7703 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7704 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7705 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7706 * gdbarch.h, gdbarch.c: Regenerate.
7707 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7708 call_dummy_stack_adjust_p.
7709 * vax-tdep.c (vax_gdbarch_init): Ditto.
7710 * v850-tdep.c (v850_gdbarch_init): Ditto.
7711 * sh-tdep.c (sh_gdbarch_init): Ditto.
7712 * s390-tdep.c (s390_gdbarch_init): Ditto.
7713 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7714 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7715 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7716 * mips-tdep.c (mips_gdbarch_init): Ditto.
7717 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7718 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7719 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7720 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7721 * i386-tdep.c (i386_gdbarch_init): Ditto.
7722 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7723 * frv-tdep.c (frv_gdbarch_init): Ditto.
7724 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7725 * cris-tdep.c (cris_gdbarch_init): Ditto.
7726 * avr-tdep.c (avr_gdbarch_init): Ditto.
7727 * arm-tdep.c (arm_gdbarch_init): Ditto.
7728 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7729 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7730 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7731 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7732 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7733 call_dummy_stack_adjust_p.
7734 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7735 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7736 * sparc-tdep.c (sparc32_push_arguments): Update.
7737 * valops.c (hand_function_call): Update.
7738
7739 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7740
7741 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7742 set_gdbarch_char_signed.
7743
7744 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7745
7746 PR cli/548
7747 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7748
7749 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7750
7751 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7752 (_initialize_arm_tdep): Don't set tm_print_insn.
7753
7754 2003-03-24 Adam Fedor <fedor@gnu.org>
7755
7756 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7757 * objc-lang.h: Add multiple inclusion protection.
7758 (start_msglist, add_msglist, end_msglist): Additional declarations.
7759
7760 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7761
7762 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7763 value was renamed to ARM_FLOAT_SOFT_FPA.
7764
7765 2003-03-23 Andrew Cagney <cagney@redhat.com>
7766
7767 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7768 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7769 * gdbarch.h, gdbarch.c: Regenerate.
7770 * valops.c (hand_function_call): Update.
7771 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7772 * frame.c (legacy_saved_regs_this_id): Update.
7773 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7774 * dummy-frame.h: Update.
7775 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7776 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7777 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7778 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7779 * config/m68k/tm-sun3.h: Update.
7780 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7781 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7782 * x86-64-tdep.c (x86_64_init_abi): Update.
7783 * vax-tdep.c (vax_gdbarch_init): Update.
7784 * v850-tdep.c (v850_gdbarch_init): Update.
7785 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7786 * sh-tdep.c (sh_gdbarch_init): Update.
7787 * s390-tdep.c (s390_gdbarch_init): Update.
7788 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7789 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7790 (frame_get_saved_regs): Update.
7791 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7792 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7793 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7794 * mips-tdep.c (mips_gdbarch_init): Update.
7795 * mcore-tdep.c (mcore_gdbarch_init): Update.
7796 * m68k-tdep.c (m68k_gdbarch_init): Update.
7797 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7798 * ia64-tdep.c (ia64_gdbarch_init): Update.
7799 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7800 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7801 (i386_interix_back_one_frame): Update.
7802 * hppa-tdep.c (hppa_gdbarch_init): Update.
7803 (hppa_init_extra_frame_info): Update.
7804 * h8300-tdep.c (h8300_gdbarch_init): Update.
7805 * frv-tdep.c (frv_gdbarch_init): Update.
7806 * cris-tdep.c (cris_gdbarch_init): Update.
7807 * avr-tdep.c (avr_gdbarch_init): Update.
7808 * arm-tdep.c (arm_gdbarch_init): Update.
7809 * alpha-tdep.c (alpha_gdbarch_init): Update.
7810
7811 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7812
7813 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7814 (arm_get_fp_model): Declare.
7815 * arm-tdep.c (fp_model_strings): New string array.
7816 (arm_fp_model, current_fp_model): New variables.
7817 (arm_get_fp_model): New function.
7818 (arm_set_fp): New function.
7819 (set_fp_model_sfunc): New function.
7820 (show_fp_model): New function.
7821 (_initialize_arm_tdep): Add new command to set/show the FPU.
7822 (arm_extract_return_value): Use arm_get_fp_model.
7823 (arm_store_return_value): Likewise.
7824 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7825 to initialize the floating-point data types.
7826 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7827 model is FPA.
7828
7829 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7830
7831 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7832 the current setting of each value.
7833 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7834 new_set and new_show. Use add_setshow_cmd_full and
7835 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7836 commands and add new version as subcommands of "set/show arm".
7837
7838 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7839
7840 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7841 (set_arm_command, show_arm_command): New functions.
7842 (_initialize_arm_tdep): Add them.
7843 (num_disassembly_options): Renamed from num_flavor_options.
7844 (valid_disassembly_styles): Renamed from valid_flavors.
7845 (disassembly_style): Renamed from disassembly_flavor.
7846 (set_disassembly_style_sfunc): Renamed from
7847 set_disassembly_flavor_sfunc.
7848 (set_disassembly_style): Renamed from set_disassembly_flavor.
7849 (arm_othernames): Updated.
7850 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7851 command. Add "set/show arm disassembly" commands. Deprecate
7852 "othernames" command.
7853
7854 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7855
7856 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7857 (arm-tdep.o): Depend on elf_arm_h.
7858
7859 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7860
7861 * Makefile.in (coff_internal_h): Define.
7862 (arm-tdep.o): Update dependencies.
7863
7864 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7865
7866 * arm-tdep.c (prologue_cache): Delete.
7867 (check_prologue_cache, save_prologue_cache): Delete.
7868 (arm_scan_prologue): Don't check or update the prologue_cache.
7869 (arm_gdb_arch_init): Don't initialize it.
7870 (_initialize_arm_tdep): Likewise.
7871
7872 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7873
7874 * MAINTAINERS (tui): Maintainer of tui code.
7875
7876 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7877
7878 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7879 (i386-cygwin-tdep.o): Add dependencies.
7880 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7881 * i386-cygwin-tdep.c: New file.
7882 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7883 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7884
7885 2003-03-20 Andrew Cagney <cagney@redhat.com>
7886
7887 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7888 (handle_inferior_event): Remove code calling
7889 DYNAMIC_TRAMPOLINE_NEXTPC.
7890
7891 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7892 already has a full path.
7893
7894 * main.c (gdb_main): Return 1.
7895 (captured_main): Call error to report an invalid interpreter.
7896
7897 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7898 * alpha-osf1-tdep.c: Include "gdb_string.h".
7899
7900 2003-03-19 J. Brobecker <brobecker@gnat.com>
7901
7902 Continuing work to convert the hppa targets to multiarch partial.
7903
7904 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7905 method, now that hppa_push_dummy_frame has a conformant prototype.
7906 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7907 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7908 for the switch to multiarch partial.
7909
7910 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7911
7912 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7913 when iss is issNull.
7914
7915 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7916
7917 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7918 NUM_REGS bounds check.
7919
7920 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7921
7922 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7923 * mips-tdep.c (gdb_assert.h): Include.
7924 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7925 (mips_register_name): Handle integer registers explicitly. Add
7926 bounds checking.
7927 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7928 (mips_lsi33k_reg_names): Don't list integer registers; they're
7929 handled by mips_register_name() now.
7930 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7931 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7932 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7933 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7934 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7935
7936 2003-03-18 Andrew Cagney <cagney@redhat.com>
7937
7938 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7939 a void pointer.
7940 * gdbtypes.h (print_scalar_formatted): Update declaration.
7941 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7942
7943 2003-03-18 J. Brobecker <brobecker@gnat.com>
7944
7945 * infrun.c (observer.h): Add #include.
7946 (normal_stop): Add call to observer_notify_normal_stop.
7947 * Makefile.in (infrun.o): Add dependency on observer.h.
7948
7949 2003-03-18 J. Brobecker <brobecker@gnat.com>
7950
7951 Continuing work to convert the hppa targets to multiarch partial.
7952 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7953 parameter. Reformat comment.
7954 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7955 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7956 to match new profile.
7957
7958 2003-03-18 J. Brobecker <brobecker@gnat.com>
7959
7960 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7961 appear to be working in any case.
7962
7963 2003-03-18 J. Brobecker <brobecker@gnat.com>
7964
7965 * observer.c (observer_test_first_observer): New static variable.
7966 (observer_test_second_observer): Likewise.
7967 (observer_test_third_observer): Likewise.
7968 (observer_test_first_notification_function): New static function.
7969 (observer_test_second_notification_function): Likewise.
7970 (observer_test_third_notification_function): Likewise.
7971
7972 2003-03-17 J. Brobecker <brobecker@gnat.com>
7973
7974 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7975 * somsolib.c (gdb_assert.h): Likewise.
7976 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7977 (somsolib.o): Likewise.
7978
7979 2003-03-17 Andrew Cagney <cagney@redhat.com>
7980
7981 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7982 BFD. Simplify setting of di.endian.
7983
7984 2003-03-17 Andrew Cagney <cagney@redhat.com>
7985
7986 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7987 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7988
7989 From Elena Zannoni <ezannoni@redhat.com>
7990 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7991 vector and floating-point parameters.
7992 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7993 convention.
7994 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7995
7996 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7997
7998 * MAINTAINERS: Remove my name from several maintainership roles.
7999
8000 2003-03-17 Andrew Cagney <cagney@redhat.com>
8001
8002 Fix frame off-by-one bug.
8003 * frame-unwind.h (frame_this_id_ftype): Replace
8004 frame_unwind_id_ftype.
8005 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8006 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8007 with "prev_register".
8008 * frame-unwind.c (frame_unwind_find_by_pc): Return
8009 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8010 comment.
8011 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8012 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8013 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8014 (dummy_frame_unwind): Update.
8015 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8016 sentinel_frame_register_unwind.
8017 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8018 (sentinel_frame_unwinder): Update.
8019 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8020 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8021 * frame.c (create_sentinel_frame): Update. Initialize
8022 "prologue_cache" instead of "unwind_cache".
8023 (frame_register_unwind): Call this frame's prev_register with the
8024 next frame and this frame's prologue cache.
8025 (get_prev_frame): Simplify. Always call prev frame's this_id with
8026 this frame and prev frame's prologue cache. Document that this
8027 call is shifted one to the left when compared to the
8028 frame_register_unwind call.
8029 (legacy_saved_regs_prev_register): Replace
8030 frame_saved_regs_register_unwind.
8031 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8032 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8033 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8034 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8035 (d10v_frame_unwind): Update.
8036 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8037 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8038 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8039 "saved_regs" with "this_saved_regs".
8040
8041 2003-03-16 Andrew Cagney <cagney@redhat.com>
8042
8043 * frame.c (frame_pop): Don't call target_store_registers. Fix
8044 problem reported by Mark Kettenis.
8045
8046 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8047
8048 * i386-tdep.c (i386_register_type): Renamed from
8049 i386_register_virtual_type. Adjust function signature.
8050 (i386_gdbarch_init): Set register_type instead of
8051 deprecated_max_register_raw_size,
8052 deprecated_max_register_virtual_size and register_virtual_type.
8053
8054 2003-03-14 Andrew Cagney <cagney@redhat.com>
8055
8056 * frame.c (get_prev_frame): When a legacy frame, always call
8057 legacy_get_prev_frame. Simplify unwind code using assumption that
8058 the unwinder is new.
8059 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8060 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8061 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8062
8063 2003-03-14 Andrew Cagney <cagney@redhat.com>
8064
8065 * frame.c (get_saved_register): Delete function.
8066 * frame.h (get_saved_register): Delete declaration.
8067 * xstormy16-tdep.c: Update comment.
8068 * regcache.h: Update comments.
8069 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8070 get_saved_register and extract_address, use
8071 frame_read_unsigned_register.
8072 (sparc_frame_saved_pc): Ditto.
8073 (sparc_get_saved_register): Instead of get_saved_register, use
8074 frame_register.
8075 (sparc_pop_frame): Ditto.
8076 * findvar.c: Update comments.
8077 (value_of_register): Call frame_register instead of
8078 get_saved_register.
8079 (value_from_register): Ditto.
8080 * config/sparc/tm-sparc.h: Update comment.
8081 * breakpoint.c: Update comment.
8082
8083 2003-03-14 Andrew Cagney <cagney@redhat.com>
8084
8085 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8086 GET_SAVED_REGISTER.
8087 * gdbarch.h, gdbarch.c: Re-generate.
8088 * frame.h: Update comments.
8089 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8090 * x86-64-tdep.c (x86_64_init_abi): Update.
8091 * sparc-tdep.c (sparc_gdbarch_init): Update.
8092 * sh-tdep.c (sh_gdbarch_init): Update.
8093 * mips-tdep.c (mips_gdbarch_init): Update.
8094 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8095 * cris-tdep.c (cris_gdbarch_init): Update.
8096 * ia64-tdep.c (ia64_gdbarch_init): Update.
8097 * frame.c (frame_register): Update.
8098 (get_saved_register): Update.
8099 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8100
8101 2003-03-13 Andrew Cagney <cagney@redhat.com>
8102
8103 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8104 * gdbarch.h, gdbarch.c: Regenerate.
8105 * valops.c (hand_function_call): Update comment.
8106 * stack.c (return_command): Update comment.
8107 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8108 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8109 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8110 * x86-64-tdep.c (x86_64_init_abi): Update.
8111 * vax-tdep.c (vax_gdbarch_init): Update.
8112 * v850-tdep.c (v850_gdbarch_init): Update.
8113 * sparc-tdep.c (sparc_gdbarch_init): Update.
8114 * sh-tdep.c (sh_gdbarch_init): Update.
8115 * s390-tdep.c (s390_gdbarch_init): Update.
8116 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8117 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8118 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8119 * mips-tdep.c (mips_gdbarch_init): Update.
8120 * mcore-tdep.c (mcore_gdbarch_init): Update.
8121 * m68k-tdep.c (m68k_gdbarch_init): Update.
8122 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8123 * ia64-tdep.c (ia64_gdbarch_init): Update.
8124 * i386-tdep.c (i386_gdbarch_init): Update.
8125 * hppa-tdep.c (hppa_gdbarch_init): Update.
8126 * h8300-tdep.c (h8300_gdbarch_init): Update.
8127 * frv-tdep.c (frv_gdbarch_init): Update.
8128 * cris-tdep.c (cris_gdbarch_init): Update.
8129 * avr-tdep.c (avr_gdbarch_init): Update.
8130 * arm-tdep.c (arm_gdbarch_init): Update.
8131 * alpha-tdep.c (alpha_gdbarch_init): Update.
8132
8133 2003-03-13 Andrew Cagney <cagney@redhat.com>
8134
8135 * frame.c (legacy_frame_p): New function.
8136 (get_prev_frame): Use legacy_frame_p.
8137 * frame.h (legacy_frame_p): Declare.
8138
8139 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8140
8141 * MAINTAINERS (write after approval): Alphabetically
8142 listing corrected.
8143
8144 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8145
8146 * MAINTAINERS (write after approval): Add myself.
8147
8148 2003-03-12 Andrew Cagney <cagney@redhat.com>
8149
8150 * frame.c (get_prev_frame): Rename the frame parameter to
8151 "this_frame".
8152 (get_next_frame, legacy_get_prev_frame): Ditto.
8153
8154 2003-03-12 Andrew Cagney <cagney@redhat.com>
8155
8156 * frame.c (get_current_frame): Check target_has_registers before
8157 checking target_has_stack.
8158 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8159 instead of deprecated_selected_frame.
8160 * findvar.c (value_of_register): Pass "frame", not
8161 deprecated_selected_frame, to value_of_builtin_reg.
8162
8163 2003-03-12 Andrew Cagney <cagney@redhat.com>
8164
8165 * regcache.c (regcache_cooked_write_signed): New function.
8166 (regcache_cooked_write_unsigned): New function.
8167 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8168 (regcache_cooked_read_signed): Fix regnum in range assertion.
8169 * regcache.h (regcache_cooked_write_signed): Declare.
8170 (regcache_cooked_write_unsigned): Declare.
8171
8172 2003-03-12 Andrew Cagney <cagney@redhat.com>
8173
8174 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8175 * gdbarch.h, gdbarch.c: Re-generate.
8176 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8177 * x86-64-tdep.h: Update.
8178 * x86-64-tdep.c (x86_64_init_abi): Update.
8179 * v850-tdep.c (v850_gdbarch_init): Update.
8180 * sparc-tdep.c (sparc_gdbarch_init): Update.
8181 * sh-tdep.c (sh_gdbarch_init): Update.
8182 * s390-tdep.c (s390_gdbarch_init): Update.
8183 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8184 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8185 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8186 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8187 * mips-tdep.c (mips_gdbarch_init): Update.
8188 * mcore-tdep.c (mcore_gdbarch_init): Update.
8189 * m68k-tdep.c (m68k_gdbarch_init): Update.
8190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8191 * ia64-tdep.c (ia64_gdbarch_init): Update.
8192 * i386-tdep.c (i386_gdbarch_init): Update.
8193 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8194 * hppa-tdep.c (hppa_gdbarch_init): Update.
8195 * h8300-tdep.c (h8300_gdbarch_init): Update.
8196 * frv-tdep.c (frv_gdbarch_init): Update.
8197 * cris-tdep.c (cris_gdbarch_init): Update.
8198 * avr-tdep.c (avr_gdbarch_init): Update.
8199 * arm-tdep.c (arm_gdbarch_init): Update.
8200 * alpha-tdep.c (alpha_gdbarch_init): Update.
8201 * sh-tdep.c (sh_init_extra_frame_info): Update.
8202 (sh64_init_extra_frame_info): Update.
8203 * ns32knbsd-nat.c (frame_num_args): Update.
8204 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8205 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8206 (xstormy16_frame_chain_valid): Update.
8207 * vax-tdep.c (vax_saved_pc_after_call): Update.
8208 * v850-tdep.c (v850_frame_chain): Update.
8209 (v850_pop_frame): Update.
8210 (v850_init_extra_frame_info): Update.
8211 * sparc-tdep.c (setup_arbitrary_frame): Update.
8212 * ns32k-tdep.c (umax_frame_num_args): Update.
8213 * s390-tdep.c (s390_pop_frame_regular): Update.
8214 * mn10300-tdep.c (mn10300_frame_chain): Update.
8215 (mn10300_pop_frame_regular): Update.
8216 (mn10300_init_extra_frame_info): Update.
8217 * mips-tdep.c (mips_init_frame_pc_first): Update.
8218 (mips_frame_chain): Update.
8219 (mips_pop_frame): Update.
8220 * mcore-tdep.c (mcore_frame_chain): Update.
8221 (mcore_pop_frame): Update.
8222 (mcore_init_extra_frame_info): Update.
8223 * arch-utils.c (init_frame_pc_default): Update.
8224 * m68k-tdep.c (isi_frame_num_args): Update.
8225 (delta68_frame_num_args): Update.
8226 (news_frame_num_args): Update.
8227 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8228 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8229 (alpha_frame_chain): Update.
8230 (alpha_pop_frame): Update.
8231 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8232 (hppa_init_extra_frame_info): Update.
8233 (hppa_frame_chain): Update.
8234 (hppa_frame_chain_valid): Update.
8235 * cris-tdep.c (cris_init_extra_frame_info): Update.
8236 * avr-tdep.c (avr_init_extra_frame_info): Update.
8237 * arm-tdep.c (arm_frame_chain_valid): Update.
8238 (arm_init_extra_frame_info): Update.
8239 (arm_pop_frame): Update.
8240 * frame.c (frame_pc_unwind): Update.
8241 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8242 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8243 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8244 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8245 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8246 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8247
8248 2003-03-12 Andrew Cagney <cagney@redhat.com>
8249
8250 Eliminate the need for POP_FRAME.
8251 * frame.c (do_frame_unwind_register): New function.
8252 (frame_pop): When no POP_FRAME, pop the frame using register
8253 unwind and a scratch regcache.
8254 (frame_saved_regs_pop): Delete function.
8255 (trad_frame_unwinder): Update.
8256 * d10v-tdep.c (d10v_frame_pop): Delete function.
8257 (d10v_frame_unwind): Update.
8258 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8259 (sentinel_frame_unwinder): Update.
8260 * dummy-frame.c (dummy_frame_pop): Delete function.
8261 (dummy_frame_unwind): Update.
8262 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8263 (struct frame_unwind): Update.
8264
8265 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8266
8267 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8268 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8269 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8270 Do range checks on register number obtained from debugging info.
8271 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8272 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8273 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8274 mapping function.
8275 (do_fp_register_row): Fix typo which caused double type to be
8276 used when attempting to unpack a float.
8277
8278 2003-03-11 J. Brobecker <brobecker@gnat.com>
8279
8280 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8281
8282 2003-03-11 Andrew Cagney <cagney@redhat.com>
8283
8284 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8285 frame. Problem found by Corinna Vinschen.
8286
8287 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8288
8289 * doublest.c (floatformat_from_length): Accept also
8290 the real size of 'long double' type.
8291
8292 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8293
8294 From Klee Dienes <kdienes@apple.com>:
8295 * breakpoint.c (bpstat_copy): Copy the command lines as well
8296 as the old value, to match what is freed in bpstat_clear.
8297
8298 2003-03-10 David Carlton <carlton@math.stanford.edu>
8299
8300 * minsyms.c (add_minsym_to_hash_table): Replace
8301 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8302 (compare_minimal_symbols, compact_minimal_symbols)
8303 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8304 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8305 of DEPRECATED_SYMBOL_MATCHES_NAME.
8306 (lookup_minimal_symbol_solib_trampoline): Ditto.
8307
8308 2003-03-10 Andrew Cagney <cagney@redhat.com>
8309
8310 * regcache.h (regcache_cooked_read_ftype): Define.
8311 (regcache_save, regcache_restore): Add a cooked_read parameter.
8312 * regcache.c (regcache_save, regcache_restore): Update.
8313 (do_cooked_read): New function.
8314 (regcache_cpy): Pass do_cooked_read to regcache_save and
8315 regcache_restore.
8316
8317 2003-03-10 Andrew Cagney <cagney@redhat.com>
8318
8319 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8320 * gdbarch.h, gdbarch.c: Re-generate.
8321 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8322 * x86-64-tdep.h: Update.
8323 * x86-64-tdep.c (x86_64_init_abi): Update.
8324 * v850-tdep.c (v850_gdbarch_init): Update.
8325 * sparc-tdep.c (sparc_gdbarch_init): Update.
8326 * sh-tdep.c (sh_gdbarch_init): Update.
8327 * s390-tdep.c (s390_gdbarch_init): Update.
8328 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8329 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8330 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8331 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8332 * mips-tdep.c (mips_gdbarch_init): Update.
8333 * mcore-tdep.c (mcore_gdbarch_init): Update.
8334 * m68k-tdep.c (m68k_gdbarch_init): Update.
8335 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8336 * ia64-tdep.c (ia64_gdbarch_init): Update.
8337 * i386-tdep.c (i386_gdbarch_init): Update.
8338 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8339 * hppa-tdep.c (hppa_gdbarch_init): Update.
8340 * h8300-tdep.c (h8300_gdbarch_init): Update.
8341 * frv-tdep.c (frv_gdbarch_init): Update.
8342 * cris-tdep.c (cris_gdbarch_init): Update.
8343 * avr-tdep.c (avr_gdbarch_init): Update.
8344 * arm-tdep.c (arm_gdbarch_init): Update.
8345 * alpha-tdep.c (alpha_gdbarch_init): Update.
8346 * sh-tdep.c (sh_init_extra_frame_info): Update.
8347 (sh64_init_extra_frame_info): Update.
8348 * ns32knbsd-nat.c (frame_num_args): Update.
8349 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8350 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8351 (xstormy16_frame_chain_valid): Update.
8352 * vax-tdep.c (vax_saved_pc_after_call): Update.
8353 * v850-tdep.c (v850_frame_chain): Update.
8354 (v850_pop_frame): Update.
8355 (v850_init_extra_frame_info): Update.
8356 * sparc-tdep.c (setup_arbitrary_frame): Update.
8357 * ns32k-tdep.c (umax_frame_num_args): Update.
8358 * s390-tdep.c (s390_pop_frame_regular): Update.
8359 * mn10300-tdep.c (mn10300_frame_chain): Update.
8360 (mn10300_pop_frame_regular): Update.
8361 (mn10300_init_extra_frame_info): Update.
8362 * mips-tdep.c (mips_init_frame_pc_first): Update.
8363 (mips_frame_chain): Update.
8364 (mips_pop_frame): Update.
8365 * mcore-tdep.c (mcore_frame_chain): Update.
8366 (mcore_pop_frame): Update.
8367 (mcore_init_extra_frame_info): Update.
8368 * arch-utils.c (init_frame_pc_default): Update.
8369 * m68k-tdep.c (isi_frame_num_args): Update.
8370 (delta68_frame_num_args): Update.
8371 (news_frame_num_args): Update.
8372 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8373 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8374 (alpha_frame_chain): Update.
8375 (alpha_pop_frame): Update.
8376 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8377 (hppa_init_extra_frame_info): Update.
8378 (hppa_frame_chain): Update.
8379 (hppa_frame_chain_valid): Update.
8380 * cris-tdep.c (cris_init_extra_frame_info): Update.
8381 * avr-tdep.c (avr_init_extra_frame_info): Update.
8382 * arm-tdep.c (arm_frame_chain_valid): Update.
8383 (arm_init_extra_frame_info): Update.
8384 (arm_pop_frame): Update.
8385 * frame.c (frame_pc_unwind): Update.
8386 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8387 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8388 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8389 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8390 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8391 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8392
8393 2003-03-10 Andrew Cagney <cagney@redhat.com>
8394
8395 * gdbarch.sh (gdbarch_unwind_pc): New method.
8396 * gdbarch.h, gdbarch.c: Regenerate.
8397 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8398 but use read_pc and FRAME_SAVED_PC as fall backs.
8399 (frame_saved_regs_pc_unwind): Delete function.
8400 (trad_frame_unwinder): Update.
8401 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8402 (struct frame_unwind): Update.
8403 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8404 (dummy_frame_unwind): Update.
8405 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8406 (sentinel_frame_unwinder): Update.
8407 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8408 (d10v_frame_unwind): Update.
8409 (d10v_unwind_pc): New function.
8410 (d10v_gdbarch_init): Set unwind_pc.
8411
8412 2003-03-10 Andrew Cagney <cagney@redhat.com>
8413
8414 * gdbarch.h: Re-generate.
8415
8416 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8417 PC.
8418 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8419 the PC register.
8420
8421 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8422
8423 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8424
8425 2003-03-08 Andrew Cagney <cagney@redhat.com>
8426
8427 * cli-out.c: Update copyright.
8428 (cli_out_data): Define typedef. Use instead of ui_out_data.
8429
8430 2003-03-08 Andrew Cagney <cagney@redhat.com>
8431
8432 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8433 the result.
8434
8435 2003-03-07 Andrew Cagney <cagney@redhat.com>
8436
8437 * gdbarch.sh: Don't generate two macro definitions when an
8438 undefined macro taking no arguments.
8439 * gdbarch.h: Regenerate.
8440
8441 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8442
8443 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8444 (x86_64_unwind_dummy_id): New functions.
8445 (x86_64_init_abi): Register these two new functions.
8446
8447 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8448
8449 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8450 (x86_64_skip_prologue): Move prologue detection to
8451 separate function.
8452 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8453
8454 2003-03-05 Andrew Cagney <cagney@redhat.com>
8455
8456 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8457 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8458 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8459 to use unwind_dummy_id when a dummy frame.
8460 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8461 predicate.
8462 * gdbarch.h, gdbarch.c: Regneerate.
8463
8464 2003-03-05 Andrew Cagney <cagney@redhat.com>
8465
8466 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8467 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8468 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8469 values.
8470
8471 2003-03-05 Andrew Cagney <cagney@redhat.com>
8472
8473 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8474 (struct d10v_unwind_cache): Delete field "frameless". Replace
8475 "next_addr" with "sp_offset". Add "r11_offset".
8476 (d10v_frame_unwind_cache): Update.
8477 (prologue_find_regs): Update. When "mv r11, sp", save the
8478 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8479 RN was saved in r11_offset.
8480
8481 2003-03-05 Andrew Cagney <cagney@redhat.com>
8482
8483 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8484 cached PC value in the next frame.
8485
8486 2003-03-05 Andrew Cagney <cagney@redhat.com>
8487
8488 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8489 "id_unwind_cache" with "id".
8490 (frame_id_unwind): Delete declaration.
8491 * frame.c (frame_id_unwind): Delete function.
8492 (get_prev_frame): Call the frame id unwind method directly. Store
8493 the returned next frame's ID value in NEXT_FRAME. Note that there
8494 is a problem with the wrong unwind ID being called with the wrong
8495 unwind cache.
8496
8497 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8498
8499 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8500
8501 2003-03-05 James Ingham <jingham@apple.com>
8502 Daniel Jacobowitz <drow@mvista.com>
8503
8504 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8505 (auto_cp_abi): New variable.
8506 (current_cp_abi, num_cp_abis): Make static.
8507 (CP_ABI_MAX): Define.
8508 (cp_abis): Turn into an array.
8509 (value_virtual_fn_field): Fix formatting.
8510 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8511 takes a pointer.
8512 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8513 (list_cp_abis, _initialize_cp_abi): New functions.
8514 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8515 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8516 switch_to_cp_abi. Update prototype for register_cp_abi.
8517 * Makefile.in (cp-abi.o): Update dependencies.
8518 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8519 instead of switch_to_cp_abi.
8520 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8521 register_cp_abi.
8522 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8523 register_cp_abi.
8524 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8525
8526 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8527
8528 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8529 * dwarf2loc.c: Include "regcache.h".
8530 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8531 register_size.
8532 * Makefile.in (dwarf2loc.o): Update dependencies.
8533
8534 2003-03-04 Theodore A. Roth <troth@openavr.org>
8535
8536 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8537 number of io registers reported by remote target is not a multiple of
8538 step.
8539
8540 2003-03-04 David Carlton <carlton@math.stanford.edu>
8541
8542 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8543 (lookup_symbol_aux_psymtabs): Update call to
8544 lookup_partial_symbol.
8545 (lookup_transparent_type, find_main_psymtab)
8546 (make_symbol_overload_list): Ditto.
8547
8548 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8549
8550 * MAINTAINERS (Write after approval): Update my email address.
8551
8552 2003-03-03 Andrew Cagney <cagney@redhat.com>
8553
8554 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8555 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8556 predicate. Replace MAX_REGISTER_RAW_SIZE.
8557 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8558 MAX_REGISTER_VIRTUAL_SIZE.
8559 * regcache.c (legacy_max_register_raw_size): New function.
8560 (legacy_max_register_virtual_size): New function.
8561 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8562 (MAX_REGISTER_RAW_SIZE): Define.
8563 (legacy_max_register_raw_size): Declare.
8564 (legacy_max_register_virtual_size): Declare.
8565 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8566 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8567 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8568 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8569 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8570 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8571 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8572 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8573 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8574 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8575 * vax-tdep.c (vax_gdbarch_init): Update.
8576 * v850-tdep.c (v850_gdbarch_init): Update.
8577 * sparc-tdep.c (sparc_gdbarch_init): Update.
8578 * sh-tdep.c (sh_gdbarch_init): Update.
8579 * s390-tdep.c (s390_gdbarch_init): Update.
8580 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8581 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8582 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8583 * mips-tdep.c (mips_gdbarch_init): Update.
8584 * mcore-tdep.c (mcore_gdbarch_init): Update.
8585 * m68k-tdep.c (m68k_gdbarch_init): Update.
8586 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8587 * ia64-tdep.c (ia64_gdbarch_init): Update.
8588 * i386-tdep.c (i386_gdbarch_init): Update.
8589 * hppa-tdep.c (hppa_gdbarch_init): Update.
8590 * h8300-tdep.c (h8300_gdbarch_init): Update.
8591 * frv-tdep.c (frv_gdbarch_init): Update.
8592 * cris-tdep.c (cris_gdbarch_init): Update.
8593 * avr-tdep.c (avr_gdbarch_init): Update.
8594 * arm-tdep.c (arm_gdbarch_init): Update.
8595 * alpha-tdep.c (alpha_gdbarch_init): Update.
8596 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8597 max_register_raw_size or max_register_virtual_size.
8598
8599 2003-03-03 David Carlton <carlton@math.stanford.edu>
8600
8601 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8602 SYMBOL_MATCHES_NAME, add comment.
8603 (SYMBOL_MATCHES_NATURAL_NAME): New.
8604 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8605 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8606 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8607 * symtab.c (lookup_partial_symbol): Use
8608 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8609 unhelpful comment.
8610 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8611 SYMBOL_MATCHES_NAME.
8612 Fix for PR c++/33.
8613
8614 2003-03-03 David Carlton <carlton@math.stanford.edu>
8615
8616 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8617 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8618 by regexp matching against SYMBOL_NATURAL_NAME.
8619
8620 2003-03-03 David Carlton <carlton@math.stanford.edu>
8621
8622 * linespec.c (find_method): Extract code into collect_methods.
8623 (collect_methods): New.
8624
8625 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8626
8627 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8628 get_frame_base.
8629
8630 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8631 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8632
8633 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8634
8635 * arch-utils.c (generic_register_byte): Fix to use the loop index
8636 and not regnum when summing the size of all registers up to regnum.
8637
8638 2003-03-01 Andrew Cagney <cagney@redhat.com>
8639
8640 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8641 FRAME_INIT_SAVED_REGS.
8642 * gdbarch.h, gdbarch.c: Regenerate.
8643 * stack.c (frame_info): Update.
8644 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8645 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8646 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8647 * ns32k-tdep.c (ns32k_pop_frame): Update.
8648 * mips-tdep.c (mips_pop_frame): Update.
8649 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8650 * ia64-tdep.c (ia64_frame_chain): Update.
8651 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8652 (ia64_frameless_function_invocation): Update.
8653 (ia64_init_extra_frame_info): Update.
8654 (ia64_pop_frame_regular): Update.
8655 * frame.h (struct frame_info): Update comment.
8656 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8657 * frame.c (frame_saved_regs_register_unwind): Update.
8658 (frame_saved_regs_register_unwind): Update.
8659 (deprecated_generic_get_saved_register): Update.
8660 * cris-tdep.c: Update comment.
8661 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8662 Rename macro.
8663 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8664 * x86-64-tdep.c (x86_64_init_abi): Update.
8665 * vax-tdep.c (vax_gdbarch_init): Update.
8666 * v850-tdep.c (v850_gdbarch_init): Update.
8667 * sparc-tdep.c (sparc_gdbarch_init): Update.
8668 * sh-tdep.c (sh_gdbarch_init): Update.
8669 * s390-tdep.c (s390_gdbarch_init): Update.
8670 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8671 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8672 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8673 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8674 * mips-tdep.c (mips_gdbarch_init): Update.
8675 * mcore-tdep.c (mcore_gdbarch_init): Update.
8676 * m68k-tdep.c (m68k_gdbarch_init): Update.
8677 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8678 * ia64-tdep.c (ia64_gdbarch_init): Update.
8679 * i386-tdep.c (i386_gdbarch_init): Update.
8680 * frv-tdep.c (frv_gdbarch_init): Update.
8681 * avr-tdep.c (avr_gdbarch_init): Update.
8682 * arm-tdep.c (arm_gdbarch_init): Update.
8683 * alpha-tdep.c (alpha_gdbarch_init): Update.
8684
8685 2003-03-01 Andrew Cagney <cagney@redhat.com>
8686
8687 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8688 option enum and switch. When no windows, set the interpreter to
8689 INTERP_CONSOLE.
8690
8691 2003-03-01 Andrew Cagney <cagney@redhat.com>
8692
8693 * main.c (captured_main): Replace magic option characters with an
8694 enum.
8695
8696 2003-03-01 Andrew Cagney <cagney@redhat.com>
8697
8698 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8699 INIT_EXTRA_FRAME_INFO.
8700 * gdbarch.h, gdbarch.c: Regenerate.
8701 * arm-tdep.c: Update comments.
8702 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8703 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8704 * frame.h, avr-tdep.c: Ditto.
8705 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8706 (create_new_frame, legacy_get_prev_frame): Ditto.
8707 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8708 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8709 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8710 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8711 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8712 * v850-tdep.c (v850_gdbarch_init): Ditto.
8713 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8714 * sh-tdep.c (sh_gdbarch_init): Ditto.
8715 * s390-tdep.c (s390_gdbarch_init): Ditto.
8716 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8717 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8718 * mips-tdep.c (mips_gdbarch_init): Ditto.
8719 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8720 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8721 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8722 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8723 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8724 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8725 * frv-tdep.c (frv_gdbarch_init): Ditto.
8726 * cris-tdep.c (cris_gdbarch_init): Ditto.
8727 * avr-tdep.c (avr_gdbarch_init): Ditto.
8728 * arm-tdep.c (arm_gdbarch_init): Ditto.
8729 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8730 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8731
8732 2003-03-01 Andrew Cagney <cagney@redhat.com>
8733
8734 * gdbarch.sh (register_type): New function with predicate.
8735 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8736 * gdbarch.h, gdbarch.c: Re-generate.
8737 * arch-utils.c (generic_register_byte): Use generic_register_size.
8738 (generic_register_size): When available, use
8739 gdbarch_register_type.
8740 * regcache.c (init_regcache_descr): When available, initialize the
8741 register type array using gdbarch_register_type. If the
8742 architecture supplies gdbarch_register_type, do not use the legacy
8743 regcache layout.
8744 * d10v-tdep.c (d10v_register_type): Replace
8745 d10v_register_virtual_type.
8746 (d10v_gdbarch_init): Set register_type instead of
8747 register_virtual_type.
8748
8749 2003-03-01 Andrew Cagney <cagney@redhat.com>
8750
8751 * Makefile.in (ax-gdb.o): Update dependencies.
8752 * ax-gdb.c: Include "regcache.h".
8753 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8754 * findvar.c (value_of_register): Ditto.
8755 * infcmd.c (default_print_registers_info): Ditto.
8756
8757 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8758
8759 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8760 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8761
8762 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8763
8764 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8765 of STREQ.
8766
8767 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8768
8769 * Makefile.in (dwarf2loc.o): Update dependencies.
8770 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8771 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8772 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8773 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8774 (locexpr_tracepoint_var_ref): New function.
8775 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8776
8777 2003-02-28 Andrew Cagney <cagney@redhat.com>
8778
8779 * regcache.c (register_size): New function.
8780 * regcache.h (register_size): Declare
8781 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8782 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8783
8784 2003-02-28 David Carlton <carlton@math.stanford.edu>
8785
8786 * linespec.c (decode_compound): Extract code into find_method.
8787 (find_method): New.
8788
8789 2003-02-28 J. Brobecker <brobecker@gnat.com>
8790
8791 * Makefile.in: Add rules to build and link in observer.o.
8792
8793 2003-02-27 J. Brobecker <brobecker@gnat.com>
8794
8795 * observer.c: Minor comments edits.
8796
8797 2003-02-27 J. Brobecker <brobecker@gnat.com>
8798
8799 * observer.h, observer.c: New file.
8800
8801 2003-02-27 Andrew Cagney <cagney@redhat.com>
8802
8803 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8804
8805 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8806
8807 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8808 (M6812_OP_STS_EXT): Likewise.
8809 (m6811_prologue): Use the above to recognize prologue.
8810 (m6812_prologue): Likewise.
8811
8812 2003-02-27 David Carlton <carlton@math.stanford.edu>
8813
8814 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8815 SYMBOL_PRINT_NAME.
8816 (compare_psymbols): Ditto.
8817 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8818
8819 2003-02-27 Michael Snyder <msnyder@redhat.com>
8820
8821 * f-lang.c (build_fortran_types): New function.
8822 (_initialize_f_language): Gdbarch-register built-in fortran types.
8823 * doublest.c (extract_floating): Fix warning text.
8824
8825 2003-02-27 Andrew Cagney <cagney@redhat.com>
8826
8827 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8828 predicate. Replaces PUSH_DUMMY_FRAME.
8829 * gdbarch.h, gdbarch.c: Regnerate.
8830 * valops.c (hand_function_call): Update. Call
8831 generic_push_dummy_frame directly.
8832 * vax-tdep.c (vax_gdbarch_init): Update.
8833 * sparc-tdep.c (sparc_gdbarch_init): Update.
8834 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8835 * m68k-tdep.c (m68k_gdbarch_init): Update.
8836 * hppa-tdep.c (hppa_gdbarch_init): Update.
8837 * alpha-tdep.c (alpha_gdbarch_init): Update.
8838 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8839 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8840 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8841 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8842 push_dummy_frame to generic_push_dummy_frame.
8843 * v850-tdep.c (v850_gdbarch_init): Ditto.
8844 * sh-tdep.c (sh_gdbarch_init): Ditto.
8845 * s390-tdep.c (s390_gdbarch_init): Ditto.
8846 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8847 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8848 * mips-tdep.c (mips_gdbarch_init): Ditto.
8849 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8850 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8851 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8852 * i386-tdep.c (i386_gdbarch_init): Ditto.
8853 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8854 * frv-tdep.c (frv_gdbarch_init): Ditto.
8855 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8856 * cris-tdep.c (cris_gdbarch_init): Ditto.
8857 * avr-tdep.c (avr_gdbarch_init): Ditto.
8858 * arm-tdep.c (arm_gdbarch_init): Ditto.
8859
8860 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8861
8862 * mips-tdep.c (show_mips_abi): New function.
8863 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8864 command ``show mips abi''.
8865
8866 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8867
8868 From Elena Zannoni <ezannoni@redhat.com>
8869 * dbxread.c (process_one_symbol): Only record line 0 if one or
8870 more sline entries have been seen for the function.
8871
8872 2003-02-26 Michael Chastain <mec@shout.net>
8873
8874 * configure: Regenerate with autoconf 000227.
8875
8876 2003-02-26 Michael Chastain <mec@shout.net>
8877
8878 Close PR build/660.
8879 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8880 for old libc5/glibc.
8881 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8882
8883 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8884
8885 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8886 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8887
8888 2003-02-26 Michael Chastain <mec@shout.net>
8889
8890 * configure.in: New variable HAVE_UINTPTR_T.
8891 * configure, config.in: Regenerated.
8892
8893 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8894
8895 Fix PR build/1097.
8896 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8897
8898 2003-02-25 Andrew Cagney <cagney@redhat.com>
8899
8900 * frame.c (get_prev_frame): Add comment on check for
8901 inside_entry_func. Only check for inside_entry_file when not a
8902 dummy and not a sentinel. Check that the new frame is not inner
8903 to the old frame.
8904
8905 2003-02-25 Andrew Cagney <cagney@redhat.com>
8906
8907 * frame.c (frame_debug): New variable.
8908 (_initialize_frame): Add "set/show debug frame" command.
8909 (get_prev_frame): When frame_debug, print reason why unwind
8910 failed.
8911
8912 2003-02-25 Michael Chastain <mec@shout.net>
8913
8914 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8915 to avoid uintptr_t definition problems.
8916
8917 2003-02-25 David Carlton <carlton@math.stanford.edu>
8918
8919 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8920 (SYMBOL_LINKAGE_NAME): Ditto.
8921 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8922 SYMBOL_LINKAGE_NAME.
8923 (struct general_symbol_info): Expand comment.
8924 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8925 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8926 (SYMBOL_MATCHES_REGEXP): Ditto.
8927 * symtab.c (symbol_natural_name): New function.
8928 * objfiles.h: Replace all uses of SYMBOL_NAME by
8929 DEPRECATED_SYMBOL_NAME.
8930 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8931 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8932 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8933 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8934 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8935 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8936 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8937 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8938 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8939 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8940 * ada-exp.y: Ditto.
8941 * ada-exp.y: Update copyright.
8942 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8943 * cp-valprint.c: Ditto.
8944
8945 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8946
8947 * infptrace.c (detach): Do not flag error if ptrace detach fails
8948 and errno is set to ESRCH.
8949
8950 2003-02-24 Andrew Cagney <cagney@redhat.com>
8951
8952 * infptrace.c (udot_info): Change type of udot_off to long. Use
8953 paddr when printing udot_off's value.
8954
8955 2003-02-24 David Carlton <carlton@math.stanford.edu>
8956
8957 * symtab.c (make_symbol_overload_list): Only read in partial
8958 symtabs containing a matching partial symbol.
8959
8960 2003-02-24 David Carlton <carlton@math.stanford.edu>
8961
8962 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8963 do the comparison, not strcmp.
8964 * symfile.c (compare_psymbols): Ditto.
8965 * defs.h: Declare strcmp_iw_ordered.
8966 * utils.c (strcmp_iw_ordered): New function.
8967
8968 2003-02-24 Jim Blandy <jimb@redhat.com>
8969
8970 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8971 support, shared libs): Remove my name from here, to better reflect
8972 reality.
8973
8974 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8975
8976 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8977 (target_ops): Add to_have_continuable_watchpoint.
8978 * target.c (update_current_target): Add INHERIT line for
8979 to_have_continuable_watchpoint.
8980 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8981 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8982 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8983 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8984
8985 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8986
8987 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8988 maintainership.
8989
8990 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8991
8992 * solib.c (solib_open): Call target defined search function after
8993 failing with solib-search-path.
8994 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8995 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8996
8997 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8998
8999 * MAINTAINERS: Add myself to Write After section.
9000
9001 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9002
9003 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9004
9005 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9006
9007 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9008 (m68hc11_add_reggroups): New function.
9009 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9010 (m68hc11_gdbarch_init): Install the reggroups.
9011 (_initialize_m68hc11_tdep): Initialize them.
9012
9013 2003-02-21 James E Wilson <wilson@tuliptree.org>
9014
9015 * MAINTAINERS: Update my email address.
9016
9017 2003-02-21 David Carlton <carlton@math.stanford.edu>
9018
9019 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9020
9021 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9022
9023 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9024 * symtab.h: Add opaque declarations of struct axs_value and
9025 struct agent_expr.
9026 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9027 (struct location_funcs): New type.
9028 (struct symbol): Add "loc" to aux_value.
9029 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9030 * dwarf2read.c: Include "dwarf2expr.h".
9031 (dwarf2_symbol_mark_computed): New function.
9032 (read_func_scope): Use it.
9033 (var_decode_location): New function.
9034 (new_symbol): Use it.
9035 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9036
9037 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9038 (dwarf2expr_h, dwarf2loc_h): New variables.
9039 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9040 (dwarf2expr.o, dwarf2loc.o): New rules.
9041 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9042 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9043 LOC_COMPUTED_ARG.
9044 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9045 * m2-exp.y (yylex): Likewise.
9046 * printcmd.c (address_info, print_frame_args): Likewise.
9047 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9048 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9049 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9050 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9051 * symtab.c (lookup_block_symbol): Likewise.
9052
9053 2003-02-20 Adam Fedor <fedor@gnu.org>
9054
9055 * symtab.h: Remove objc_specific struct
9056 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9057 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9058 Have language_objc use cplus_specific struct.
9059
9060 2003-02-20 Tom Tromey <tromey@redhat.com>
9061
9062 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9063 TYPE_NAME, when printing a String value. PR java/1075.
9064
9065 2003-02-20 Adam Fedor <fedor@gnu.org>
9066
9067 * objc-lang.h (find_methods): Remove declaration.
9068 * objc-lang.c (find_methods): Make static.
9069
9070 2003-02-20 Christopher Faylor <cgf@redhat.com>
9071
9072 * win32-nat.c (get_image_name): Check return value from
9073 ReadProcessMemory.
9074 (child_xfer_memory): Ditto.
9075
9076 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9077
9078 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9079 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9080 '${exec_prefix}' (in addition to the expansion thereof) as
9081 relocatable.
9082 * configure: Rebuilt.
9083
9084 2003-02-20 David Carlton <carlton@math.stanford.edu>
9085
9086 * symtab.c (search_symbols): Revert the search_symbols part of my
9087 2002-12-23 patch. Add comment.
9088
9089 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9090
9091 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9092 * dbxread.c (elfstab_build_psymtabs): Don't call
9093 install_minimal_symbols.
9094 (stabsect_build_psymtabs): Likewise.
9095 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9096 earlier.
9097 * somread.c (som_symfile_read): Call install_minimal_symbols
9098 and do_cleanups earlier.
9099 * nlmread.c (nlm_symfile_read): Likewise.
9100 * mdebugread.c (elfmdebug_build_psymtabs): Call
9101 install_minimal_symbols and make appropriate cleanups.
9102
9103 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9104
9105 * solib.c (reload_shared_libraries): New function.
9106 (_initialize_solib): Add callbacks for ``set solib-search-path''
9107 and ``set solib-absolute-prefix''.
9108
9109 2003-02-20 David Carlton <carlton@math.stanford.edu>
9110
9111 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9112 expand comment.
9113 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9114 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9115 * ada-typeprint.c (ada_typedef_print): Ditto.
9116 * ax-gdb.c (gen_var_ref): Ditto.
9117 * breakpoint.c (print_one_breakpoint): Ditto.
9118 * buildsym.c (finish_block): Ditto.
9119 * c-valprint.c (c_val_print): Ditto.
9120 * expprint.c (print_subexp): Ditto.
9121 * findvar.c (locate_var_value): Ditto.
9122 * infcmd.c (jump_command): Ditto.
9123 * linespec.c (decode_line_2, decode_compound): Ditto.
9124 * maint.c (maintenance_translate_address): Ditto.
9125 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9126 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9127 Ditto.
9128 * p-valprint.c (pascal_val_print): Ditto.
9129 * stabsread.c (define_symbol): Ditto.
9130 * stack.c (print_frame, frame_info, print_block_frame_locals)
9131 (print_frame_arg_vars, return_command): Ditto.
9132 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9133 * symmisc.c (print_symbol): Ditto.
9134 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9135 (compare_search_syms, print_symbol_info, print_msymbol_info)
9136 (rbreak_command): Ditto.
9137 * tracepoint.c (tracepoints_info): Ditto.
9138 * typeprint.c (typedef_print): Ditto.
9139 * valops.c (value_of_variable, hand_function_call): Ditto.
9140 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9141 * ada-typeprint.c: Update Copyright.
9142 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9143 * tracepoint.c, cli/cli-cmds.c: Ditto.
9144
9145 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9146
9147 * frame.c (generic_unwind_get_saved_register): Make non-static.
9148 * frame.h (generic_unwind_get_saved_register): Declare.
9149 * mips-tdep.c (read_next_frame_reg): Fetch register from
9150 current regcache when frame is NULL.
9151 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9152 that must be NULL.
9153 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9154 instead of frame_register_unwind().
9155
9156 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9157
9158 * remote-sim.c (gdbsim_insert_breakpoint)
9159 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9160 code.
9161
9162 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9163
9164 * remote.c (_initialize_remote): Add commands "set/show remote
9165 hardware-watchpoint-limit" and "set/show remote
9166 hardware-breakpoint-limit".
9167 (remote_hw_watchpoint_limit): Initialize to -1.
9168 (remote_hw_breakpoint_limit): Ditto.
9169 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9170
9171 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9172
9173 * coff-pe-read.c: New file - support reading of minimal symbols from a
9174 portable executable using the export table.
9175 * coff-pe-read.h: New file.
9176 * coffread.c: Include coff-pe-read.h.
9177 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9178 debugging symbols found.
9179 * Makefile.in (SFILES): Add coff-pe-read.o.
9180 (coff_pe_read_h): Define.
9181 (COMMON_OBS): Add coff-pe-read.o.
9182 (coffread.o): Add coff_pe_read_h dependency.
9183 (coff-pe-read.o): New target.
9184
9185 2003-02-19 David Carlton <carlton@math.stanford.edu>
9186
9187 * Makefile.in (SFILES): Add block.c.
9188 (block_h): New.
9189 (COMMON_OBS): Add block.o.
9190 (block.o): New.
9191 (x86-64-tdep.o): Add $(block_h).
9192 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9193 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9194 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9195 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9196 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9197 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9198 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9199 * value.h: Add opaque declaration for struct block.
9200 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9201 * ada-lang.h: Ditto.
9202 * x86-64-tdep.c: #include "block.h"
9203 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9204 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9205 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9206 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9207 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9208 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9209 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9210 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9211 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9212 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9213 * symtab.c (block_function): Ditto.
9214 (contained_in): Ditto.
9215 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9216 block.h. Add opaque declaration for struct block.
9217 * symtab.h: Move block_function and contained_in declarations to
9218 block.h. Add opaque declarations for struct block, struct
9219 blockvector.
9220 (struct block): Move to block.h.
9221 (struct blockvector): Ditto.
9222 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9223 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9224 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9225 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9226 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9227 Ditto.
9228 * block.c: New file.
9229 * block.h: New file.
9230
9231 2003-02-19 Theodore A. Roth <troth@openavr.org>
9232
9233 * avr-tdep.c (avr_extract_return_value): Remove function.
9234 (avr_store_return_value): Remove function.
9235 (avr_extract_struct_value_address): Remove function.
9236 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9237
9238 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9239
9240 * rs6000-tdep.c: Include "gdb_assert.h".
9241 (registers_e500): Add "acc" and "spefscr".
9242 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9243 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9244 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9245 really is "r0".
9246 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9247
9248 2003-02-18 Keith Seitz <keiths@redhat.com>
9249
9250 * Makefile.in: Add gdbtk-interps.c.
9251
9252 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9253
9254 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9255 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9256
9257 2003-02-18 Andrew Cagney <cagney@redhat.com>
9258
9259 * symtab.h (struct objfile): Add opaque declaration.
9260
9261 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9262
9263 From Jim Ingham <jingham@apple.com>:
9264 * dbxread.c (process_one_symbol): Use last_function_start rather
9265 than function_start_offset to find the real beginning of the
9266 current function. The latter is just the text section offset on
9267 some systems, the former is always the real function start.
9268
9269 2003-02-17 Andrew Cagney <cagney@redhat.com>
9270
9271 * configure.in: Revert ${target} != ${host}.
9272
9273 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9274
9275 * configure.in (Makefile): Use the test ${target} != ${host},
9276 instead of the absence of the "nm.h" file, to determine of the
9277 configuration non-native.
9278 * configure: Regenerate.
9279
9280 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9281
9282 From Brian Ford <ford@vss.fsi.com>
9283
9284 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9285 conditionalize tui_active test.
9286 (lookup_cmd_1): Ditto.
9287
9288 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9289
9290 * configure.in: Add check for _etext.
9291 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9292 available.
9293 * config.in, configure: regenerated.
9294
9295 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9296
9297 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9298
9299 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9300
9301 * main.c (tui_version): Delete variable.
9302 (captured_main): When --tui, set interpreter_p to "tui" instead of
9303 enabling tui_version.
9304 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9305 tui_version.
9306 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9307 * cli/cli-cmds.c (disassemble_command): Ditto.
9308 * defs.h (tui_version): Delete declaration.
9309 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9310 (tui-interp.o): Add rules.
9311 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9312
9313 2003-02-14 Christopher Faylor <cgf@redhat.com>
9314
9315 * win32-nat.c (register_loaded_dll): Correctly set address range for
9316 just-loaded dll.
9317
9318 2003-02-12 Jason Molenda (jmolenda@apple.com)
9319
9320 * symmisc.c (print_objfile_statistics): Include information about
9321 the number of psymtabs and symtabs in each object file.
9322
9323 2003-02-13 Keith R Seitz <keiths@redhat.com>
9324
9325 * main.h (struct captured_main_args): Add interpreter_p.
9326 * main.c (captured_main): Initialize interpreter_p from context.
9327 * gdb.c (main): Set interpreter_p argument.
9328 * Makefile.in (gdb.o): Add dependency for interps.h.
9329
9330 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9331
9332 * event-top.c (cli_command_loop): Delete declaration.
9333 (_initialize_event_loop): Delete function setting event_loop_hook.
9334 * event-top.h (cli_command_loop): Declare. Update copyright.
9335 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9336 * interps.c (current_interp_command_loop): When event_loop_p, call
9337 cli_command_loop.
9338
9339 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9340
9341 * interps.h (interp_command_loop_ftype): Change return type to
9342 void.
9343
9344 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9345
9346 * x86-64-tdep.c (x86_64_extract_return_value)
9347 (x86_64_store_return_value): Use regcache instead of regbuf.
9348 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9349 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9350
9351 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9352
9353 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9354 * aclocal.m4: Regenerate.
9355 * configure: Regenerate.
9356
9357 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9358 TCL_LD_SEARCH_FLAGS.
9359
9360 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9361
9362 * dwarf2cfi.c: Reindented.
9363
9364 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9365
9366 * interps.c (clear_interpreter_hooks): Convert function definition
9367 to ISO C.
9368
9369 2003-02-07 David Carlton <carlton@math.stanford.edu>
9370
9371 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9372
9373 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9374
9375 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9376 (struct type): ...to here.
9377 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9378 field.
9379 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9380 (replace_type): Set length on all type variants for a given type.
9381
9382 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9383
9384 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9385 <sys/stat.h>.
9386 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9387
9388 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9389
9390 * Makefile.in (symm-nat.o): Update dependencies.
9391 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9392 (lynx-nat.o, ia64-linux-nat.): Ditto.
9393 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9394 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9395 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9396
9397 * Makefile.in (inflow_h): Define.
9398 (procfs.o, inflow.o, procfs.o): Update dependencies.
9399 * inftarg.c (child_stop): Delete extern declaration of
9400 inferior_process_group. Include "inflow.h".
9401 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9402 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9403 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9404 (our_process_group, inferior_process_group): Extern declarations.
9405
9406 * procfs.c: Include "gdb_assert.h".
9407
9408 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9409 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9410 * jv-typeprint.c (java_type_print_base): Ditto.
9411 * typeprint.c (typedef_print): Eliminate STREQ.
9412 * cli/cli-script.c (define_command, define_command): Ditto.
9413 * main.c (captured_main): Ditto.
9414 * values.c (lookup_internalvar): Ditto.
9415 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9416 within `if' conditional.
9417 * linespec.c (decode_line_2): Ditto.
9418 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9419 (bfd_openw_with_cleanup): Ditto.
9420
9421 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9422
9423 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9424 legacy_extract_return_value and store_return_value to
9425 legacy_return_value.
9426
9427 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9428
9429 * win32-nat.c (get_relocated_section_addrs): New function. Find
9430 section load addresses for symbol handling in relocated DLLs.
9431 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9432
9433 2003-02-05 Fred Fish <fnf@intrinsity.com>
9434
9435 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9436 '=' and '!='.
9437 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9438 with '&' and '=='.
9439 (angel_RDI_info): Ditto.
9440 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9441 with '&' and '!='.
9442 (threads_continue_all_with_signals): Ditto.
9443
9444 2003-02-05 Jim Ingham <jingham@apple.com>
9445 Keith Seitz <keiths@redhat.com>
9446 Elena Zannoni <ezannoni@redhat.com>
9447 Andrew Cagney <ac131313@redhat.com>
9448
9449 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9450 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9451 (SUBDIR_MI_OBS): Add "mi-interp.o".
9452 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9453 (SFILES): Add "interps.c".
9454 (COMMON_OBS): Add "interps.o".
9455 (interps_h, mi_main_h): Define.
9456 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9457 (mi-main.o, main.o, event-top.o): Update dependencies.
9458 * cli/cli-interp.c: New file.
9459 * interps.h, interps.c: New files.
9460 * top.c: (gdb_init): Don't install the default interpreter, handed
9461 by captured_main.
9462 * main.c: Include "interps.h".
9463 (interpreter_p): Note that it should malloc'ed.
9464 (captured_command_loop): Call current_interp_command_loop.
9465 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9466 xfree and xstrdup when updating interpreter_p. Install the
9467 default interpreter. Add hack to stop mi1's copyright notice
9468 being encoded.
9469 * event-top.h (gdb_setup_readline): Declare.
9470 (gdb_disable_readline): Declare.
9471 * event-top.c: Include "interps.h".
9472 (display_gdb_prompt): Call current_interp_display_prompt_p.
9473 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9474 gdb_stdlog, and gdb_stdtarg.
9475 (_initialize_event_loop): Don't call gdb_setup_readline.
9476 * cli-out.c (cli_out_set_stream): New function.
9477 * cli-out.h (cli_out_set_stream): Declare.
9478
9479 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9480
9481 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9482 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9483 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9484 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9485 config/i386/i386v42mp.mt: Removed.
9486
9487 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9488
9489 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9490 GDB_OSABI_SOLARIS.
9491
9492 2003-02-05 Michael Chastain <mec@shout.net>
9493
9494 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9495 2.12.1 and earlier versions.
9496
9497 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9498
9499 Remove orphaned hosts, targets and files.
9500 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9501 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9502 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9503 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9504 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9505 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9506 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9507 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9508 * config/sparc/tm-sp64sim.h: Delete.
9509 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9510 hosts.
9511 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9512 mips*-dec-mach3* targets.
9513
9514 2003-02-04 Michael Chastain <mec@shout.net>
9515
9516 * NEWS: Fix typo: sepcifying -> specifying.
9517
9518 2003-02-04 Michael Chastain <mec@shout.net>
9519
9520 * dwarfread.c: Add documentation on the state of dwarf-1,
9521 looking towards obsoletion.
9522
9523 2003-02-03 Michael Chastain <mec@shout.net>
9524
9525 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9526 gdb/testsuite/gdb.c++/pr-1023.exp.
9527
9528 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9529
9530 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9531 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9532
9533 * utils.c (init_page_info): Delete reference to MPW in comments.
9534 * main.c (captured_main): Delete #ifdef MPW.
9535
9536 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9537
9538 * NEWS: Note that the m32r-*-elf* is obsolete.
9539 * monitor.c (monitor_expect): Obsolete reference to m32r.
9540 * configure.tgt: Mark m32r-*-elf* as obsolete.
9541 * MAINTAINERS: Mark m32k as obsolete.
9542 * m32r-rom.c: Obsolete file.
9543 * config/m32r/m32r.mt: Obsolete file.
9544 * config/m32r/tm-m32r.h: Obsolete file.
9545 * m32r-stub.c: Obsolete file.
9546 * m32r-tdep.c: Obsolete file.
9547
9548 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9549
9550 * NEWS: Mention that the z8k-zilog-none is obsolete.
9551 * MAINTAINERS: Mark z8k as obsolete.
9552 * configure.tgt: Obsolete the z8k-*-coff* target.
9553 * config/z8k/z8k.mt: Obsolete file.
9554 * config/z8k/tm-z8k.h: Obsolete file.
9555 * z8k-tdep.c: Obsolete file.
9556
9557 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9558
9559 * NEWS: Mention that the mn10200-elf is obsolete.
9560 * configure.tgt: Obsolete mn10200-*-* target.
9561 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9562 mention that the mn10200 is obsolete.
9563 * breakpoint.h: Ditto.
9564 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9565 * config/mn10200/mn10200.mt: Obsolete file.
9566 * config/mn10200/tm-mn10200.h: Obsolete file.
9567 * mn10200-tdep.c: Obsolete file.
9568
9569 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9570
9571 * MAINTAINERS: Mark h8500 as obsolete.
9572 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9573 * findvar.c (value_from_register): Ditto.
9574 * h8500-tdep.c: Mark file as obsolete.
9575 * config/h8500/h8500.mt: Ditto.
9576 * config/h8500/tm-h8500.h: Ditto.
9577 * NEWS: Mention that h8500 is obsolete.
9578
9579 2003-02-04 David Carlton <carlton@math.stanford.edu>
9580
9581 * objfiles.c (allocate_objfile): Always set name. Add comment at
9582 start of function.
9583 * jv-lang.c (get_dynamics_objfile): Add comment.
9584
9585 2003-02-04 David Carlton <carlton@math.stanford.edu>
9586
9587 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9588 * printcmd.c (build_address_symbolic): Replace uses of
9589 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9590 SYMBOL_NAME, and asm_demangle.
9591 Update copyright.
9592
9593 2003-02-04 David Carlton <carlton@math.stanford.edu>
9594
9595 * linespec.c (decode_compound): Extract code into
9596 lookup_prefix_sym.
9597 (lookup_prefix_sym): New function.
9598
9599 2003-02-04 David Carlton <carlton@math.stanford.edu>
9600
9601 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9602 FLOAT_COERCION_BADNESS.
9603 * gdbtypes.c (rank_one_type): Replace all uses of
9604 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9605
9606 2003-02-04 Jim Blandy <jimb@redhat.com>
9607
9608 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9609 section, let dwarf_macinfo_section point to it, not
9610 dwarf_loc_section.
9611
9612 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9613
9614 Pointed out by Anton Blanchard <anton@samba.org>.
9615 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9616 (ppc_linux_at_sigtramp_return_path): Use it.
9617
9618 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9619
9620 * defs.h (streq): Add prototype.
9621 * utils.c (streq): New function.
9622
9623 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9624 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9625 * mdebugread.c (new_symbol): Likewise.
9626 * stabsread.c (define_symbol): Likewise.
9627 * coffread.c (process_coff_symbol): Likewise.
9628 * dwarfread.c (new_symbol): Likewise.
9629
9630 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9631 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9632 here.
9633 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9634 SYMBOL_INIT_DEMANGLED_NAME.
9635 * objfiles.c: Include "hashtab.h".
9636 (allocate_objfile): Call htab_set_functions_ex for the
9637 demangled_names_hash.
9638 (free_objfile): Call htab_delete for the demangled_names_hash.
9639 * objfiles.h (struct htab): Add declaration.
9640 (struct objfile): Add demangled_names_hash.
9641 * symfile.c: Include "hashtab.h".
9642 (reread_symbols): Call htab_delete for the demangled_names_hash.
9643 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9644 SYMBOL_NAME in the bcache.
9645 * symtab.c: Include "hashtab.h". Update comments.
9646 (create_demangled_names_hash, symbol_set_names): New functions.
9647 (symbol_find_demangled_name): New function, broken out from
9648 symbol_init_demangled_names.
9649 (symbol_init_demangled_names): Use it.
9650 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9651 (SYMBOL_SET_NAMES): New macro.
9652 (symbol_set_names): Add prototype.
9653
9654 2003-02-03 Jim Blandy <jimb@redhat.com>
9655
9656 Use a single, consistent representation for an empty minimal
9657 symbol table in an objfile.
9658 * objfiles.c (terminate_minimal_symbol_table): New function.
9659 (allocate_objfile): Call it.
9660 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9661 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9662 non-NULL.
9663 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9664 objfile has minimal symbols, compare minimal_symbol_count to zero,
9665 instead of comparing msymbols with NULL.
9666 * objfiles.c (have_minimal_symbols): Same.
9667 * solib-sunos.c (solib_add_common_symbols): Call
9668 terminate_minimal_symbol_table.
9669 * symfile.c (reread_symbols): Same.
9670
9671 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9672
9673 * s390-tdep.c (s390_address_class_type_flags)
9674 (s390_address_class_type_flags_to_name)
9675 (s390_address_class_name_to_type_flags): New functions.
9676 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9677 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9678
9679 2003-02-03 Michael Snyder <msnyder@redhat.com>
9680
9681 * arm-tdep.c: Fix spell-o in comment.
9682
9683 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9684
9685 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9686 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9687 error messages to contain BFD filename.
9688
9689 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9690
9691 Fix PR gdb/742 gdb/743 gdb/877
9692 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9693 (do_mixed_source_and_assembly): Use
9694 make_cleanup_ui_out_tuple_begin_end and
9695 make_cleanup_ui_out_tuple_begin_end.
9696 (do_mixed_source_and_assembly): Ditto.
9697 * thread.c (do_captured_list_thread_ids): Ditto.
9698 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9699 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9700 ui_out_tuple_end): Delete prototypes.
9701 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9702 ui_out_list_end, ui_out_tuple_end): Delete.
9703
9704 From Kevin Buettner <kevinb@redhat.com>:
9705 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9706 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9707 (do_cleanup_table_end): New functions.
9708 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9709 Use cleanups to invoke_ui_out_tuple_end().
9710 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9711 * cli/cli-setshow.c (cmd_show_list): Use
9712 make_cleanup_ui_out_tuple_begin_end.
9713
9714 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9715
9716 * frame.c (frame_unwind_register): New function.
9717 (frame_unwind_unsigned_register): Use.
9718 (frame_unwind_signed_register): Use.
9719 (frame_read_register): New function.
9720 * frame.h (frame_unwind_register): Declare.
9721 (frame_read_register): Declare.
9722
9723 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9724 and frame_unwind_register instead of read_memory, write_register
9725 and deprecated_write_register_bytes.
9726
9727 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9728
9729 * frame.h: Note that namelen can be negative.
9730 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9731 NAME's length.
9732
9733 * NEWS: Mention that the d10v's `regs' command is deprecated.
9734 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9735 (d10v_print_registers_info): New function.
9736 (show_regs): Call d10v_print_registers_info.
9737 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9738
9739 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9740
9741 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9742 lost in the previous patch.
9743
9744 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9745
9746 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9747 * stack.c (print_frame_info_base): Output complete FRAME tuple
9748 for synthesized frames.
9749
9750 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9751
9752 * mips-nat.c (zerobuf): Delete.
9753 (fetch_inferior_registers): Alloc local zerobuf.
9754 (fetch_core_registers): Alloc local zerobuf.
9755 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9756 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9757 * thread-db.c (thread_db_store_registers): Ditto.
9758 * sh-tdep.c (sh_do_register): Ditto.
9759 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9760 * remote-sim.c (gdbsim_store_register): Ditto.
9761 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9762 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9763 * monitor.c (monitor_supply_register): Ditto.
9764 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9765 * mips-nat.c (fetch_inferior_registers): Ditto.
9766 * m68klinux-nat.c (fetch_register): Ditto.
9767 * lynx-nat.c (fetch_inferior_registers): Ditto.
9768 (fetch_inferior_registers): Ditto.
9769 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9770 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9771 (hpux_thread_store_registers): Ditto.
9772 * hppah-nat.c (fetch_register): Ditto.
9773 * hppab-nat.c (fetch_register): Ditto.
9774 * hppa-tdep.c (pa_register_look_aside): Ditto.
9775 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9776 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9777
9778 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9779
9780 * gdbarch.sh: Explictly specify all method levels. When a
9781 variable with an empty level, provide a non-multi-arch default.
9782 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9783 * gdbarch.h: Re-generate.
9784 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9785 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9786
9787 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9788
9789 * defs.h (host_pointer_to_address): Delete declaration.
9790 (address_to_host_pointer): Delete declaration.
9791 * utils.c (host_pointer_to_address): Delete function.
9792 (address_to_host_pointer): Delete function.
9793 * procfs.c (procfs_address_to_host_pointer): New function.
9794 * procfs.c (proc_set_watchpoint): Use.
9795 (procfs_can_use_hw_breakpoint): Update comments.
9796 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9797 (som_solib_add): Use.
9798 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9799 * hppa-tdep.c (unwind_command): Use.
9800
9801 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9802
9803 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9804 strlen d_name.
9805
9806 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9807 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9808 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9809 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9810 (define_symbol): Update.
9811 * symfile.c (generic_load): Remove references to nindy.
9812 * symtab.c: Remove references to nindy.
9813
9814 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9815
9816 * infcmd.c (print_float_info): Delete code conditional on
9817 FLOAT_INFO.
9818 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9819 * config/m68k/nm-apollo68b.h: Ditto.
9820 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9821 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9822 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9823
9824 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9825
9826 * config/i386/tm-i386os9k.h: Removed.
9827
9828 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9829 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9830 they're identical to i[3456]86-*-sysv* now.
9831 * config/i386/i386v32.mh: Removed.
9832 * config/i386/xm-i386v32.h: Removed.
9833 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9834
9835 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9836
9837 * config/i386/i386dgux.mh: Removed.
9838 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9839
9840 * configure.in: Fix typo.
9841 * configure: Regenerated.
9842
9843 2003-01-31 David Carlton <carlton@math.stanford.edu>
9844
9845 * dwarf2read.c (dwarf2_locate_sections): Set
9846 dwarf_ranges_section.
9847
9848 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9849
9850 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9851 * utils.c: Update comments documenting legitimate uses of PTR.
9852
9853 * utils.c: Re-indent.
9854
9855 * config/djgpp/fnchange.lst: Delete nindy files.
9856 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9857 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9858 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9859 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9860 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9861 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9862 * Makefile.in (init.c): Remove nindy references.
9863 (saber_gdb): Delete rule.
9864 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9865 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9866 and a68v-nat.c.
9867 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9868 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9869 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9870 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9871 nindy-share/stop.h.
9872 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9873 * saber.suppress: Delete file.
9874
9875 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9876
9877 * dbxread.c (stabs_data): New static variable.
9878 (fill_symbuf): Support an in-memory buffer for stabs data.
9879 (stabs_seek): New function.
9880 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9881 (read_ofile_symtab): Use stabs_seek.
9882 (elfstab_build_psymtabs): Take an asection* instead of
9883 an offset and size. Relocate the stabs data if necessary.
9884 Save the section* for dbx_psymtab_to_symtab.
9885 * dwarf2read.c: Add section variables for each debug section.
9886 (dwarf2_locate_sections): Fill them in.
9887 (dwarf2_read_section): Take an asection* argument.
9888 Relocate the section contents if necessary.
9889 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9890 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9891 it to dwarf2_read_section.
9892 (dwarf2_build_frame_info): Update callers.
9893 * elfread.c (elf_symfile_read): Update call to
9894 elfstab_build_psymtabs.
9895 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9896 (DBX_STAB_SECTION): New macro.
9897 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9898 * symfile.c (symfile_dummy_outputs): New function.
9899 (symfile_relocate_debug_section): New function.
9900 * symfile.h (symfile_relocate_debug_section): Add prototype.
9901
9902 2003-01-31 Richard Henderson <rth@redhat.com>
9903
9904 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9905 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9906 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9907 * alpha-tdep.c (alpha_register_name): Add "unique".
9908 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9909 (ALPHA_UNIQUE_REGNUM): New.
9910 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9911
9912 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9913
9914 * README: Remove reference to Ericsson 1800 monitor.
9915 * Makefile.in (remote-es.o): Delete rule.
9916 (ALLDEPFILES): Delete remote-es.c.
9917 * remote-es.c: Delete file.
9918 * config/m68k/es1800.mt: Delete file.
9919 * config/djgpp/fnchange.lst: Update.
9920 * configure.tgt: Delete m68*-ericsson-* target.
9921
9922 2003-01-31 Adam Fedor <fedor@gnu.org>
9923
9924 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9925 Remove duplicate/shadowing variable of same name.
9926
9927 2003-01-30 Jim Blandy <jimb@redhat.com>
9928
9929 * symfile.c (find_separate_debug_file): Assert that the objfile's
9930 directory name we compute ends with a slash, and then assume that
9931 that's so everywhere we use it.
9932
9933 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9934
9935 * valops.c (value_assign): Flush frame cache after stores to memory
9936 also.
9937
9938 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9939
9940 * Makefile.in (mon960-rom.o): Delete rule.
9941 * mon960-rom.c: Delete file.
9942
9943 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9944
9945 * d10v-tdep.c: Include "frame-unwind.h".
9946 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9947 list.
9948 (next_addr, uses_frame): Delete.
9949 (struct d10v_unwind_cache): Define.
9950 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9951 Use info instead of next_addr and uses_frame globals.
9952 (d10v_frame_init_saved_regs): Delete function.
9953 (d10v_init_extra_frame_info): Delete function.
9954 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9955 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9956 init_frame_pc or frame_saved_pc.
9957 (d10v_pop_frame): Delete function.
9958 (do_d10v_pop_frame): Delete function.
9959 (d10v_frame_chain): Delete function.
9960 (d10v_frame_chain_valid): Delete function.
9961 (d10v_frame_pc_unwind): New function.
9962 (d10v_frame_id_unwind): New function.
9963 (saved_regs_unwinder): New function.
9964 (d10v_frame_register_unwind): New function.
9965 (d10v_frame_pop): New function.
9966 (d10v_frame_unwind): New variable.
9967 (d10v_frame_p): New function.
9968 (d10v_frame_saved_pc): Delete function.
9969 * Makefile.in (d10v-tdep.o): Update dependencies.
9970
9971 2003-01-30 J. Brobecker <brobecker@gnat.com>
9972
9973 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9974 causing some regressions due to a change in the default value
9975 for this macro.
9976
9977 2003-01-29 Richard Henderson <rth@redhat.com>
9978 Elena Zannoni <ezannoni@redhat.com>
9979 Daniel Jacobowitz <drow@mvista.com>
9980
9981 Fix PR gdb/961.
9982 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9983 variables.
9984 (RANGES_SECTION): New.
9985 (dwarf_ranges_buffer): New variable.
9986 (struct comp_unit_head): Add member "die".
9987 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9988 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9989 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9990 (dwarf2_locate_sections): Likewise.
9991 (dwarf2_build_psymtabs): Read .debug_ranges.
9992 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9993 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9994 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9995 Look for DW_AT_ranges and return the bounding box.
9996
9997 2003-01-29 Brian Ford <ford@vss.fsi.com>
9998
9999 * win32-nat.c (cygwin_pid): Removed as unused.
10000 (child_attach): Try fall back to Cygwin pid.
10001
10002 2003-01-29 Jim Blandy <jimb@redhat.com>
10003
10004 * objfiles.h (struct objfile): Doc fix.
10005
10006 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10007
10008 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10009 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10010 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10011 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10012 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10013 (FRAME_SAVED_PC): Change to a function with predicate.
10014 * gdbarch.h, gdbarch.c: Re-generate.
10015
10016 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10017
10018 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10019
10020 * complaints.c (complain): Delete function.
10021 * complaints.h (struct deprecated_complaint): Delete definition.
10022 (complain): Delete declaration.
10023
10024 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10025
10026 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10027 dummy frames.
10028
10029 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10030
10031 * sentinel-frame.h, sentinel-frame.c: New files.
10032 * Makefile.in (frame.o): Update dependencies.
10033 (SFILES): Add sentinel-frame.c.
10034 (sentinel_frame_h): Define.
10035 (COMMON_OBS): Add sentinel-frame.o.
10036 (sentinel-frame.o): Specify dependencies.
10037 * frame.c: Include "sentinel-frame.h".
10038 (frame_register_unwind): Rewrite assuming that there is always a a
10039 ->next frame.
10040 (frame_register, generic_unwind_get_saved_register): Ditto.
10041 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10042 (create_sentinel_frame, unwind_to_current_frame): New functions.
10043 (get_current_frame): Rewrite using create_sentinel_frame and
10044 unwind_to_current_frame. When possible, always create a frame.
10045 (create_new_frame): Set next to the sentinel frame.
10046 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10047 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10048 ID cache when necessary.
10049 (frame_saved_regs_id_unwind): Use frame_relative_level.
10050 (deprecated_generic_get_saved_register): Use frame_relative_level,
10051 get_frame_saved_regs, get_frame_pc, get_frame_base and
10052 get_next_frame.
10053 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10054 frame_register.
10055
10056 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10057
10058 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10059
10060 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10061
10062 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10063 (maintenance_set_profile_cmd): Use error () instead of warning ().
10064
10065 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10066
10067 * configure.in: Check that -pg works if using --enable-profiling.
10068 Check for monstartup and _mcleanup regardless of --enable-profiling.
10069 * maint.c: Check for monstartup and _mcleanup before using them.
10070 * config.in: Regenerated.
10071 * configure: Regenerated.
10072
10073 2003-01-24 Nick Clifton <nickc@redhat.com>
10074
10075 * Add sh2e support:
10076
10077 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10078
10079 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10080 (sh2e_show_regs): New.
10081 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10082 * config/sh/tm-sh.h: Added sh2e to comments.
10083
10084 2003-01-23 Jim Blandy <jimb@redhat.com>
10085
10086 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10087 symbols found)" message here; we haven't checked for a separate
10088 debug info file yet, so we don't know yet.
10089 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10090 we've looked everywhere. Also, there's no need to print a special
10091 message when we're loading the separate debug info file: the one
10092 symbol_file_add prints is fine.
10093
10094 2003-01-23 Alexander Larsson <alexl@redhat.com>
10095 Jim Blandy <jimb@redhat.com>
10096
10097 Add support for executables whose debug info has been separated
10098 out into a separate file, leaving only a link behind.
10099 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10100 and separate_debug_objfile_backlink.
10101 (put_objfile_before): New declaration.
10102 * symfile.c: #include "filenames.h".
10103 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10104 debug info in a separate file, read that, too. Save the addrs
10105 argument, so we can use it again to read the separated debug info;
10106 syms_from_objfile modifies the table we pass it.
10107 (reread_symbols): After re-reading an objfile, call
10108 reread_separate_symbols to refresh its separate debug info
10109 objfile, if it has one.
10110 (reread_separate_symbols, find_separate_debug_file,
10111 get_debug_link_info, separate_debug_file_exists): New functions.
10112 (debug_file_directory): New global var.
10113 (_initialize_symfile): Initialize debug_file_directory, and
10114 provide the new `set debug-file-directory' command to let the user
10115 change it.
10116 * objfiles.c (free_objfile): If this objfile has its debug info in
10117 a separate objfile, free that one too. If this is itself a
10118 separate debug info objfile, clear our parent's backlink.
10119 (put_objfile_before): New function.
10120 * utils.c (gnu_debuglink_crc32): New function.
10121 * defs.h (gnu_debuglink_crc32): New declaration.
10122 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10123 * configure.in: Handle --with-separate-debug-dir config option.
10124 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10125 * acconfig.h (DEBUGDIR): New macro.
10126 * configure, aclocal.m4, config.in: Regenerated.
10127
10128 2003-01-22 Jim Blandy <jimb@redhat.com>
10129
10130 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10131 like the old symbol_file_add, but taking new arguments: you can
10132 now pass in either a `struct section_addr_info' list to say where
10133 each section is loaded, or a `struct section_offsets' table. Pass
10134 these new arguments through to syms_from_objfile as appropriate.
10135 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10136 with the appropriate quiescent values for the new arguments.
10137
10138 * symfile.c: #include "gdb_assert.h".
10139 (syms_from_objfile): Add the ability to pass in a section offset
10140 table directly, as an alternative to the section_addr_info table.
10141 Document arguments better.
10142 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10143 * symfile.h (syms_from_objfile): Update declaration.
10144 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10145 syms_from_objfile.
10146 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10147
10148 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10149
10150 Original patch by Tom Tromey <tromey@cygnus.com> and
10151 Jason Molenda <jmolenda@apple.com>.
10152 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10153 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10154 * NEWS: Mention profiling.
10155 * configure.in (--enable-gdbtk): Fix typo.
10156 (--enable-profiling): New. Set PROFILE_CFLAGS.
10157 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10158 Fill in function.
10159 (profiling_state): New variable.
10160 (mcleanup_wrapper): New function.
10161 (_initialize_maint): Remove NOTYET, fix call to
10162 add_setshow_boolean_cmd for "maint set profile".
10163 * configure: Regenerated.
10164
10165 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10166
10167 * Makefile.in (install-gdbtk): Install PNG images too.
10168
10169 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10170
10171 * exec.c (text_start): Delete global variable.
10172 (exec_file_attach): Make text_start local to the function.
10173 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10174 * valops.c (hand_function_call): Delete code that handles
10175 BEFORE_TEXT_END and AFTER_TEXT_END.
10176 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10177 of CALL_DUMMY_LOCATION.
10178 * gdbarch.c: Regenerate.
10179 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10180 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10181 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10182 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10183 (text_end): Delete extern declaration.
10184
10185 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10186
10187 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10188 * blockframe.c (backtrace_below_main): Move to "frame.c".
10189 (frame_chain_valid): Delete check for backtrace_below_main.
10190 (_initialize_blockframe): Delete initialization, move ``set
10191 backtrace-below-main'' command to "frame.c".
10192 (do_flush_frames_sfunc): Delete function.
10193 * frame.c: Include "command.h" and "gdbcmd.h".
10194 (frame_type_from_pc): New function.
10195 (create_new_frame): Use frame_type_from_pc.
10196 (legacy_get_prev_frame): New function.
10197 (get_prev_frame): Rewrite. When an old style frame, call
10198 legacy_get_prev_frame. Otherwize, unwind the PC first.
10199 (_initialize_frame): Add ``set backtrace-below-main'' command.
10200 * Makefile.in (frame.o): Update dependencies.
10201
10202 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10203
10204 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10205 DEPRECATED_REGISTERS_INFO.
10206
10207 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10208
10209 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10210 Maintainers'. Update `Various Maintainers'.
10211
10212 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10213
10214 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10215 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10216 Suppress actual parameters when `-'.
10217 * gdbarch.h, gdbarch.c: Regenerate.
10218
10219 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10220
10221 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10222 code handling dummy frames.
10223
10224 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10225
10226 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10227 (struct frame_unwind): Add field pop.
10228 * frame.h (frame_pop): Declare.
10229 * frame.c (frame_saved_regs_pop): New function.
10230 (trad_frame_unwinder): Add frame_saved_regs_pop.
10231 (frame_pop): New function.
10232 * dummy-frame.c (dummy_frame_pop): New function.
10233 (discard_innermost_dummy): New function.
10234 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10235 (dummy_frame_unwind): Add dummy_frame_pop.
10236 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10237 * valops.c (hand_function_call): Ditto.
10238 * stack.c (return_command): Ditto.
10239
10240 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10241
10242 * cris-tdep.c: Fix function declaration indentation.
10243 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10244 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10245 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10246 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10247 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10248 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10249
10250 2003-01-18 Michael Chastain <mec@shout.net>
10251
10252 * README (Unpacking and Installation -- quick overview):
10253 Warn against ".../gdb-5.3/gdb/configure".
10254
10255 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10256
10257 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10258 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10259 (struct frame_unwind): Declare opaque.
10260 (dummy_frame_p): Declare function.
10261 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10262 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10263 * dummy-frame.c: Include "frame-unwind.h".
10264 (dummy_frame_p): New function.
10265 (dummy_frame_unwind): New variable.
10266 * frame.c: Include "frame-unwind.h".
10267 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10268 to use the new unwind field.
10269 (set_unwind_by_pc): Delete function.
10270 (create_new_frame, get_prev_frame): Set unwind field using
10271 frame_unwind_find_by_pc.
10272 (trad_frame_unwind, trad_frame_unwinder): New variables.
10273 * frame.h (trad_frame_unwind): Declare variable.
10274 (frame_id_unwind_ftype): Delete declaration.
10275 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10276 (struct frame_unwind): Declare opaque.
10277 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10278 register_unwind with a single unwind pointer.
10279 * frame-unwind.h, frame-unwind.c: New files.
10280 * Makefile.in (SFILES): Add frame-unwind.c.
10281 (frame_unwind_h): Define.
10282 (COMMON_OBS): Add frame-unwind.o.
10283 (frame-unwind.o): Specify dependencies.
10284 (frame.o, dummy-frame.o): Update dependencies.
10285
10286 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10287
10288 * ada-valprint.c: Eliminate PTR.
10289 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10290 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10291 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10292 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10293 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10294 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10295 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10296
10297 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10298
10299 * main.c (captured_main): Don't use PTR.
10300 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10301 * gdbtypes.c (lookup_primitive_typename): Ditto.
10302 (lookup_struct_elt_type): Ditto.
10303 * f-valprint.c (info_common_command): Ditto.
10304 (list_all_visible_commons): Ditto.
10305 * jv-typeprint.c (java_type_print_base): Ditto.
10306
10307 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10308 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10309 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10310 i386-interix-nat.c and i386-interix-tdep.c. Rename
10311 m68klinux-nat.c and m68klinux-tdep.c. Rename
10312 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10313 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10314 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10315 * main.c (captured_main): Use xfree, not free.
10316
10317 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10318
10319 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10320 ID back using a parameter.
10321 * frame.c (frame_id_unwind): Update call.
10322 (frame_saved_regs_id_unwind): Update.
10323 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10324 * dummy-frame.h (struct frame_id): Add opaque declaration.
10325 (dummy_frame_id_unwind): Update declaration.
10326
10327 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10328
10329 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10330
10331 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10332
10333 * MAINTAINERS (Stephen P. Smith): Updated email address.
10334
10335 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10336
10337 Fix PR gdb/898
10338 * breakpoint.c (until_break_command): Add new argument. Use it to
10339 decide whether to stop only at the current frame or not.
10340 * breakpoint.h (until_break_command): Update prototype.
10341 * infcmd.c (until_command): Add new argument to until_break_command
10342 call.
10343 (advance_command): New function.
10344 (_initialize_infcmd): Update help string for 'until' command.
10345 Add new 'advance' command.
10346
10347 2003-01-14 David Carlton <carlton@math.stanford.edu>
10348
10349 * linespec.c (decode_line_1): Normalize comments.
10350 (set_flags): Ditto.
10351 (locate_first_half): Ditto.
10352 (decode_compound): Ditto.
10353 (symtab_from_filename): Ditto.
10354 (decode_all_digits): Ditto.
10355 (decode_dollar): Ditto.
10356 (find_methods): Ditto.
10357 (find_toplevel_char): Ditto.
10358
10359 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10360
10361 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10362 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10363 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10364 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10365 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10366 * language.c, language.h, m32r-tdep.c: Update copyright.
10367 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10368 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10369 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10370 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10371 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10372 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10373
10374 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10375
10376 * stabsread.h (process_later, resolve_cfront_continuation):
10377 Obsolete.
10378 Update copyright years.
10379 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10380 Update copyright year.
10381 * dbxread.c(struct cont_elem): Obsolete.
10382 (process_later, process_now): Obsolete functions.
10383 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10384 Update copyright year.
10385 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10386 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10387 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10388 (parse_partial_symbols): Obsolete cfront support.
10389 * stabsread.c
10390 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10391 macros.
10392 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10393 read_cfront_baseclasses, read_cfront_member_functions,
10394 resolve_cfront_continuation,read_cfront_static_fields,
10395 copy_cfront_struct_fields): Obsolete functions.
10396 (define_symbol, read_one_struct_field): Obsolete cfront support.
10397 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10398 Update Copyright year.
10399
10400 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10401
10402 * stack.c (print_frame_info, print_stack_frame_base_stub,
10403 print_stack_frame_base, show_and_print_stack_frame_stub,
10404 show_and_print_stack_frame, print_only_stack_frame_stub,
10405 print_only_stack_frame): Delete functions.
10406 (print_stack_frame_stub): Call print_frame_info instead of
10407 print_frame_info_base.
10408 (print_frame_info_base): Rename to print_frame_info.
10409 (backtrace_command_1): Call print_frame_info, instead of
10410 print_frame_info_base.
10411 (current_frame_command): Call print_stack_frame, instead of
10412 print_only_stack_frame.
10413 (frame_command): Call print_stack_frame, instead of
10414 show_and_print_stack_frame.
10415 (up_command): Ditto.
10416 (down_command): Ditto.
10417 * frame.h (print_only_stack_frame): Delete prototype.
10418 * infrun.c (normal_stop): Call print_stack_frame, instead of
10419 show_and_print_stack_frame.
10420 * thread.c (info_threads_command): Call print_stack_frame, instead
10421 of print_only_stack_frame.
10422
10423 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10424
10425 * README (Graphical interface to GDB): Update URL. Point at
10426 gdb/links/.
10427
10428 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10429 version match.
10430
10431 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10432
10433 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10434 lines.
10435
10436 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10437
10438 * thread-db.c (attach_thread): Prototype.
10439 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10440 thread information (ti), and valid flags (th_valid, ti_valid).
10441 (attach_thread): Move target_pid_to_str call to after the thread
10442 is added to GDB's list. Initialize the cache.
10443 (thread_get_info_callback, thread_db_map_id2thr)
10444 (thread_db_get_info): New functions.
10445 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10446 (thread_db_store_registers, thread_db_thread_alive)
10447 (thread_db_get_thread_local_address): Use them.
10448 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10449 of calling error() for threads in unknown state.
10450
10451 (clear_lwpid_callback): New function.
10452 (thread_db_resume): Use it to clear the cache.
10453
10454 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10455
10456 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10457 (resume_callback): Remove dead code.
10458
10459 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10460
10461 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10462 predicate.
10463 * gdbarch.h, gdbarch.c: Regenerate.
10464 * stack.c (frame_info): Only initialize the saved registers when
10465 FRAME_INIT_SAVED_REGS_P.
10466 * frame.c (frame_saved_regs_register_unwind): Assert
10467 FRAME_INIT_SAVED_REGS_P.
10468 (deprecated_generic_get_saved_register): Ditto.
10469
10470 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10471
10472 * source.c (openp): Squelch warning about "filename".
10473
10474 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10475
10476 * source.c (openp): If the file does not exist don't necessarily
10477 search the path.
10478
10479 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10480
10481 Fix PR gdb/872.
10482 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10483 (integer_types_same_name_p): New function.
10484 (rank_one_type): Use it.
10485 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10486
10487 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10488
10489 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10490 variables.
10491 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10492 * configure.in: Add --with-sysroot.
10493 * configure: Regenerated.
10494 * main.c (gdb_sysroot): New variable.
10495 (captured_main): Initialize gdb_sysroot.
10496 * defs.h (gdb_sysroot): New extern declaration.
10497 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10498
10499 2003-01-12 Michael Chastain <mec@shout.net>
10500
10501 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10502
10503 2003-01-12 Michael Chastain <mec@shout.net>
10504
10505 * top.c (print_gdb_version): Bump copyright year to 2003.
10506
10507 2003-01-12 David Carlton <carlton@bactrian.org>
10508
10509 * linespec.c (symtab_from_filename): Rename variable 's' to
10510 'file_symtab'.
10511
10512 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10513
10514 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10515 dummy frame.
10516 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10517
10518 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10519
10520 * d10v-tdep.c: Include "gdb_assert.h".
10521 (d10v_store_return_value): Rewrite to match current interface.
10522 (d10v_extract_struct_value_address): Ditto.
10523 (d10v_extract_return_value): Ditto.
10524 (d10v_gdbarch_init): Set store_restore_value,
10525 extract_struct_value_address and extract_return_value.
10526
10527 2003-01-12 J. Brobecker <brobecker@gnat.com>
10528
10529 * hpread.c (set_namestring): New procedure replacing the
10530 SET_NAMESTRING macro.
10531 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10532 by calls to set_namestring.
10533
10534 2003-01-11 J. Brobecker <brobecker@gnat.com>
10535
10536 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10537 a compilation warning.
10538 (hpread_process_one_debug_symbol): Likewise.
10539
10540 2003-01-10 David Carlton <carlton@math.stanford.edu>
10541
10542 * linespec.c (decode_line_1): Rename variable 's' to
10543 'file_symtab'.
10544 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10545 (decode_dollar): Ditto.
10546 (decode_variable): Ditto.
10547 (symbol_found): Ditto.
10548
10549 2003-01-09 Michael Chastain <mec@shout.net>
10550
10551 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10552
10553 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10554
10555 * win32-nat.c (set_process_privilege): New function.
10556 (child_attach): Call set_process_privilege() to enable the
10557 SE_DEBUG_NAME user privilege if available in process token.
10558
10559 2003-01-10 J. Brobecker <brobecker@gnat.com>
10560
10561 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10562 compilation error in the previous revision.
10563
10564 2003-01-09 David Carlton <carlton@math.stanford.edu>
10565
10566 * linespec.c: Update copyright.
10567
10568 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10569
10570 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10571 than inferior_ptid.
10572 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10573
10574 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10575
10576 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10577 Update comments.
10578 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10579 (frame_saved_regs_zalloc): Update.
10580 (frame_saved_regs_register_unwind): Update.
10581 (create_new_frame): Update.
10582 (get_prev_frame): Update.
10583 (frame_extra_info_zalloc): Update.
10584 (deprecated_get_frame_saved_regs): Update.
10585 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10586 * cris-tdep.c: Update comment.
10587
10588 * somsolib.h: Fix function indentation.
10589 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10590 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10591 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10592 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10593 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10594
10595 * infrun.c (follow_fork): Use ISO C definition.
10596 * expprint.c (print_subexp): Use xfree instead of free.
10597 * charset.c: Include "gdb_string.h" instead of <string.h>.
10598 (register_iconv_charsets): Use ISO C definition.
10599 (host_charset, target_charset): Ditto.
10600 * Makefile.in (charset.o): Update dependencies.
10601 (mi-cmd-env.o): Update dependencies.
10602
10603 2003-01-08 Andrew Cagney <cagney@redhat.com>
10604
10605 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10606 get_frame_base.
10607
10608 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10609
10610 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10611 build directories. Save edited gdb output in Mbuild.log. If a
10612 build fails, remove any final GDB executable.
10613
10614 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10615
10616 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10617 replacing hex constants with function names and stripping leading
10618 file name directory prefixes.
10619
10620 2003-01-08 Andrew Cagney <cagney@redhat.com>
10621
10622 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10623 get_frame_base.
10624
10625 2003-01-08 David Carlton <carlton@math.stanford.edu>
10626
10627 * linespec.c (decode_line_1): Move code into decode_variable.
10628 (decode_variable): New function.
10629
10630 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10631
10632 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10633
10634 2003-01-08 Andrew Cagney <cagney@redhat.com>
10635
10636 * cris-tdep.c (cris_frame_init_saved_regs): Use
10637 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10638 saved_regs buffer.
10639 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10640 (sh64_nofp_frame_init_saved_regs): Ditto.
10641 (sh_fp_frame_init_saved_regs): Ditto.
10642 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10643 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10644 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10645 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10646
10647 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10648
10649 * minsyms.c (lookup_minimal_symbol): Update comment.
10650 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10651 (lookup_minimal_symbol_solib_trampoline): Likewise.
10652
10653 2003-01-08 Andrew Cagney <cagney@redhat.com>
10654
10655 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10656 frame_relative_level.
10657
10658 * alpha-tdep.c: Use get_frame_extra_info.
10659 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10660 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10661 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10662 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10663
10664 * alpha-tdep.c: Use get_next_frame.
10665 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10666 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10667 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10668 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10669 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10670 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10671 * xstormy16-tdep.c: Ditto.
10672
10673 2003-01-07 Andrew Cagney <cagney@redhat.com>
10674
10675 * alpha-tdep.c: Use get_frame_base.
10676 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10677 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10678 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10679 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10680 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10681 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10682 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10683 * config/sparc/tm-sparc.h: Ditto.
10684
10685 2003-01-07 Andrew Cagney <cagney@redhat.com>
10686
10687 * frame.c (deprecated_get_frame_context): New function.
10688 (deprecated_set_frame_context): New function.
10689 * frame.h (deprecated_get_frame_context): Declare.
10690 (deprecated_set_frame_context): Declare.
10691 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10692 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10693
10694 2003-01-07 Andrew Cagney <cagney@redhat.com>
10695
10696 * frame.c (deprecated_set_frame_next_hack): New function.
10697 (deprecated_set_frame_prev_hack): New function.
10698 * frame.h (deprecated_set_frame_next_hack): Declare.
10699 (deprecated_set_frame_prev_hack): Declare.
10700 * mcore-tdep.c (analyze_dummy_frame): Use
10701 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10702 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10703
10704 2003-01-07 David Carlton <carlton@math.stanford.edu>
10705
10706 * linespec.c (decode_line_1): Move code into decode_dollar.
10707 (decode_dollar): New function.
10708
10709 2003-01-07 Andrew Cagney <cagney@redhat.com>
10710
10711 * arm-tdep.c (arm_init_extra_frame_info): Use
10712 deprecated_update_frame_base_hack.
10713 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10714 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10715 (fix_frame_pointer): Ditto.
10716 (mn10300_analyze_prologue): Ditto.
10717
10718 2003-01-07 Andrew Cagney <cagney@redhat.com>
10719
10720 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10721 extra_info using frame_extra_info_zalloc.
10722 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10723 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10724 (sh64_init_extra_frame_info): Ditto.
10725 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10726 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10727 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10728 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10729 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10730 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10731 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10732 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10733 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10734 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10735 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10736 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10737
10738 * mn10300-tdep.c (analyze_dummy_frame): Use
10739 deprecated_set_frame_extra_info_hack.
10740 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10741
10742 2003-01-07 J. Brobecker <brobecker@gnat.com>
10743
10744 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10745 class is not scText. These do not define "real" procedures.
10746 (parse_partial_symbols): Likewise.
10747
10748 2003-01-06 Michael Snyder <msnyder@redhat.com>
10749
10750 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10751
10752 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10753
10754 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10755 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10756 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10757 deprecated_frame_xmalloc_with_cleanup.
10758 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10759 deprecated_frame_xmalloc.
10760 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10761 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10762
10763 2003-01-06 Andrew Cagney <cagney@redhat.com>
10764
10765 * x86-64-linux-tdep.c: Include "osabi.h".
10766 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10767
10768 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10769
10770 2003-01-06 Andrew Cagney <cagney@redhat.com>
10771
10772 * MAINTAINERS (Target Instruction Set Architectures): Update
10773 arm-elf. Can be built with -Werror, has been multiarched.
10774
10775 * value.h (unpack_long): Make buffer parameter constant.
10776 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10777 * scm-lang.h (scm_parse): Ditto.
10778 * defs.h (extract_typed_address, extract_address): Ditto.
10779 (extract_long_unsigned_integer): Ditto.
10780 * inferior.h (unsigned_pointer_to_address): Ditto.
10781 (signed_pointer_to_address): Ditto.
10782 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10783 * gdbarch.h, gdbarch.c: Regenerate.
10784 * findvar.c (extract_long_unsigned_integer): Update.
10785 (extract_address): Update.
10786 (extract_typed_address): Update.
10787 (unsigned_pointer_to_address): Update.
10788 * values.c (unpack_long): Update.
10789 (unpack_double): Update.
10790 (unpack_pointer): Update.
10791 (unpack_field_as_long): Update.
10792 * d10v-tdep.c (d10v_pointer_to_address): Update.
10793 * avr-tdep.c (avr_pointer_to_address): Update.
10794 * scm-lang.c (scm_unpack): Update.
10795 * findvar.c (signed_pointer_to_address): Update.
10796
10797 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10798
10799 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10800 since it is in i386-tdep.c.
10801
10802 2003-01-06 J. Brobecker <brobecker@gnat.com>
10803
10804 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10805 failure introduced in the previous change.
10806
10807 2003-01-05 Michael Chastain <mec@shout.net>
10808
10809 * README: Remove references to deleted remote-*.c files:
10810 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10811 remote-nrom.c, remote-os9k.c, remote-udi.c.
10812
10813 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10814
10815 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10816 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10817 i386_get_longjmp_target.
10818
10819 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10820
10821 * arm-tdep.c (prologue_cache): Change to a pointer.
10822 (_initialize_arm_tdep): Allocate prologue_cache.
10823 (check_prologue_cache): Update.
10824 (save_prologue_cache): Update.
10825 (arm_gdbarch_init): Update.
10826
10827 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10828
10829 * stabsread.c (update_method_name_from_physname): Call complaint()
10830 instead of error.
10831
10832 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10833
10834 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10835 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10836 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10837
10838 * blockframe.c: Include "gdbcmd.h" and "command.h".
10839 (backtrace_below_main): New variable.
10840 (file_frame_chain_valid, func_frame_chain_valid)
10841 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10842 (generic_func_frame_chain_valid): Remove functions.
10843 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10844 (_initialize_blockframe): New function.
10845 * Makefile.in (blockframe.o): Update dependencies.
10846 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10847 comment. Call frame_chain_valid ().
10848 * frame.h: Remove old prototypes. Add prototype for
10849 frame_chain_valid and update comments to match.
10850 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10851 Remove old comment.
10852 * gdbarch.h: Regenerated.
10853 * gdbarch.c: Regenerated.
10854
10855 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10856 set_gdbarch_frame_chain_valid.
10857 * avr-tdep.c (avr_gdbarch_init): Likewise.
10858 * cris-tdep.c (cris_gdbarch_init): Likewise.
10859 * frv-tdep.c (frv_gdbarch_init): Likewise.
10860 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10861 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10862 (i386_nw_init_abi): Likewise.
10863 (i386_gdbarch_init): Likewise.
10864 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10865 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10866 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10867 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10868 * mips-tdep.c (mips_gdbarch_init): Likewise.
10869 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10870 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10871 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10872 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10873 * s390-tdep.c (s390_gdbarch_init): Likewise.
10874 * sh-tdep.c (sh_gdbarch_init): Likewise.
10875 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10876 * v850-tdep.c (v850_gdbarch_init): Likewise.
10877 * vax-tdep.c (vax_gdbarch_init): Likewise.
10878 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10879
10880 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10881 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10882 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10883 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10884 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10885 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10886 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10887 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10888
10889 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10890
10891 * Makefile.in (acconfig_h): Remove incorrect macro.
10892 (config_h): Define.
10893 (osabi.o): Update dependencies.
10894 * configure.tgt: Set gdb_osabi based on target triplet.
10895 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10896 * configure: Regenerated.
10897 * config.in: Regenerated.
10898 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10899 (GDB_OSABI_DEFAULT): Define if not already defined.
10900 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10901 (set_osabi_string): New variables.
10902 (gdbarch_register_osabi): Add new OS ABI to
10903 gdb_osabi_available_names.
10904 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10905 (set_osabi, show_osabi): New functions.
10906 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10907
10908 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10909
10910 * arch-utils.c (gdbarch_info_init): Set osabi to
10911 GDB_OSABI_UNINITIALIZED.
10912 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10913 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10914 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10915 * gdbarch.c: Regenerated.
10916 * gdbarch.h: Regenerated.
10917 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10918 there's no BFD.
10919 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10920 * osabi.h (enum gdb_osabi): Move to defs.h.
10921 (gdbarch_init_osabi): Update prototype.
10922 * defs.h (enum gdb_osabi): Moved here.
10923 * Makefile.in: Update dependencies.
10924
10925 * alpha-tdep.h: Don't include "osabi.h".
10926 (struct gdbarch_tdep): Remove osabi member.
10927 * alpha-tdep.c: Include "osabi.h".
10928 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10929 iterate over arches. Update call to gdbarch_init_osabi.
10930 (alpha_dump_tdep): Don't dump osabi.
10931 * alpha-linux-tdep.c: Include "osabi.h".
10932 * alpha-osf1-tdep.c: Include "osabi.h".
10933 * alphafbsd-tdep.c: Include "osabi.h".
10934 * alphanbsd-tdep.c: Include "osabi.h".
10935
10936 * arm-tdep.h: Don't include "osabi.h".
10937 (struct gdbarch_tdep): Remove osabi member.
10938 * arm-tdep.c: Include "osabi.h".
10939 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10940 iterate over arches. Update call to gdbarch_init_osabi.
10941 (arm_dump_tdep): Don't dump osabi.
10942 * arm-linux-tdep.c: Include "osabi.h".
10943 * armnbsd-tdep.c: Include "osabi.h".
10944
10945 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10946 Update call to gdbarch_init_osabi.
10947
10948 * i386-tdep.h: Don't include "osabi.h".
10949 (struct gdbarch_tdep): Remove osabi member.
10950 * i386-tdep.c: Include "osabi.h".
10951 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10952 iterate over arches. Update call to gdbarch_init_osabi.
10953 (i386_dump_tdep): Don't dump osabi.
10954 * i386-linux-tdep.c: Include "osabi.h".
10955 * i386-sol2-tdep.c: Include "osabi.h".
10956 * i386bsd-tdep.c: Include "osabi.h".
10957 * i386gnu-tdep.c: Include "osabi.h".
10958 * i386ly-tdep.c: Include "osabi.h".
10959 * i386nbsd-tdep.c: Include "osabi.h".
10960 * i386obsd-tdep.c: Include "osabi.h".
10961
10962 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10963 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10964 check osabi when iterating over arches. Update call to
10965 gdbarch_init_osabi.
10966 (mips_dump_tdep): Don't dump osabi.
10967
10968 * ns32k-tdep.h: Don't include "osabi.h".
10969 (struct gdbarch_tdep): Remove.
10970 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10971 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10972 allocate tdep. Update call to gdbarch_init_osabi.
10973 (ns32k_dump_tdep): Remove.
10974 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10975 * ns32knbsd-tdep.c: Include "osabi.h".
10976
10977 * ppc-tdep.h: Don't include "osabi.h".
10978 (struct gdbarch_tdep): Remove osabi member.
10979 * rs6000-tdep.c: Include "osabi.h".
10980 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10981 osabi when iterating over arches. Update call to
10982 gdbarch_init_osabi.
10983 (rs6000_dump_tdep): Don't dump osabi.
10984 * ppc-linux-tdep.c: Include "osabi.h".
10985 * ppcnbsd-tdep.c: Include "osabi.h".
10986
10987 * sh-tdep.h: Don't include "osabi.h".
10988 (struct gdbarch_tdep): Remove osabi member.
10989 * sh-tdep.c: Include "osabi.h".
10990 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10991 iterate over arches. Update call to gdbarch_init_osabi.
10992 (sh_dump_tdep): Don't dump osabi.
10993 * shnbsd-tdep.c: Include "osabi.h".
10994
10995 * sparc-tdep.c: Include "osabi.h".
10996 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10997 iterate over arches. Update call to gdbarch_init_osabi.
10998 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10999 tdep structure.
11000
11001 * vax-tdep.h: Don't include "osabi.h".
11002 (struct gdbarch_tdep): Remove.
11003 * vax-tdep.c: Include "osabi.h".
11004 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11005 iterate over arches. Don't allocate tdep. Update call
11006 to gdbarch_init_osabi.
11007 (vax_dump_tdep): Remove.
11008 (_initialize_vax_tdep): Update call to gdbarch_register.
11009
11010 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11011
11012 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11013 entirely.
11014 (breakpoint_re_set_one): Don't fetch the value for a disabled
11015 watchpoint.
11016
11017 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11018
11019 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11020 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11021 (COERCE_FLOAT_TO_DOUBLE): Remove.
11022 * gdbarch.c: Regenerate.
11023 * gdbarch.h: Regenerate.
11024 * Makefile.in: Remove value_h from gdbarch_h.
11025 * valops.c (coerce_float_to_double): New variable.
11026 (default_coerce_float_to_double): Remove.
11027 (standard_coerce_float_to_double): Remove.
11028 (value_arg_coerce): Use coerce_float_to_double.
11029 (_initialize_valops): Add "set coerce-float-to-double".
11030 * value.h (default_coerce_float_to_double): Remove prototype.
11031 (standard_coerce_float_to_double): Remove prototype.
11032
11033 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11034 prototyped.
11035 * mdebugread.c (parse_symbol): Likewise.
11036 * stabsread.c (define_symbol): Mark all functions as prototyped.
11037
11038 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11039 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11040 set_gdbarch_coerce_float_to_double.
11041 * arm-tdep.c (arm_gdbarch_init): Likewise.
11042 * frv-tdep.c (frv_gdbarch_init): Likewise.
11043 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11044 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11045 * mips-tdep.c (mips_gdbarch_init): Likewise.
11046 (mips_coerce_float_to_double): Remove.
11047 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11048 (rs6000_coerce_float_to_double): Remove.
11049 * s390-tdep.c (s390_gdbarch_init): Likewise.
11050 * sh-tdep.c (sh_gdbarch_init): Likewise.
11051 (sh_coerce_float_to_double): Remove.
11052 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11053 (sparc_coerce_float_to_double): Remove.
11054 * v850-tdep.c (v850_gdbarch_init): Likewise.
11055 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11056 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11057 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11058 (hppa_coerce_float_to_double): Remove prototype.
11059 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11060
11061 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11062
11063 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11064
11065 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11066
11067 Suggested by Stewart Brown <sb24@avaya.com>:
11068 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11069 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11070 (c_type_print_varspec_suffix): Likewise.
11071
11072 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11073
11074 * configure.in: Don't set and AC_SUBST SUBDIRS.
11075 * configure: Regenerated.
11076
11077 * configure.in: Remove code dealing with shared libraries.
11078 * Makefile.in: Remove HLDFLAGS and HLDENV.
11079 * configure: Regenerated.
11080
11081 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11082
11083 * frame.c (deprecated_frame_xmalloc): New function.
11084 (deprecated_set_frame_saved_regs_hack): New function.
11085 (deprecated_set_frame_extra_info_hack): New function.
11086 * frame.h (deprecated_frame_xmalloc): Declare.
11087 (deprecated_set_frame_saved_regs_hack): Declare.
11088 (deprecated_set_frame_extra_info_hack): Declare.
11089
11090 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11091
11092 * configure.in: Move code that provides the --enable-gdbtk option
11093 right after the code that handles the --enable-tui option, and
11094 polish it somewhat.
11095 * configure: Regenerated.
11096
11097 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11098 AC_CHECK_FUNCS and remove the old check for pread64.
11099 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11100 * acconfig.h (_GNU_SOURCE): Add.
11101 (HAVE_PREAD64): Remove.
11102 * configure, aclocal.m4, config.in: Regenerated.
11103
11104 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11105
11106 * alpha-tdep.c: Use get_frame_saved_regs.
11107 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11108 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11109 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11110 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11111 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11112
11113 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11114
11115 * configure.in: Remove all use of the SUBDIRS variable; add
11116 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11117 code providing the --enable-multi-ice option, and move it right in
11118 front of the code that checks whether gdbserver is supported.
11119 Polish that too.
11120 * configure: Regenerated.
11121 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11122 @SUBDIRS@.
11123
11124 2003-01-03 Andrew Cagney <cagney@redhat.com>
11125
11126 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11127 * avr-tdep.c, cris-tdep.c: Ditto.
11128 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11129 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11130
11131 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11132
11133 * configure.in: Remove --enable-netrom option.
11134 * configure: Regenerated.
11135
11136 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11137
11138 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11139 declaration for `struct re_pattern_buffer' instead.
11140 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11141
11142 2003-01-03 J. Brobecker <brobecker@gnat.com>
11143
11144 * mdebugread.c (parse_symbol): Count until the stEnd matching
11145 the structure name.
11146
11147 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11148
11149 * configure.in: Remove --with-cpu option.
11150 subscripts. Remove evil changequotes here.
11151 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11152 * config.in, configure: Regenerated.
11153
11154 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11155 * configure.in: Cleanup section that sources GDB and BFD configure
11156 subscripts. Remove evil changequotes here.
11157 * config.in, configure: Regenerated.
11158
11159 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11160
11161 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11162 frame accessor methods.
11163 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11164 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11165 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11166 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11167 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11168 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11169 * z8k-tdep.c: Ditto.
11170
11171 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11172
11173 * configure.in: Remove UI_OUT configuration code.
11174 * ada-lang.c: Update assuming UI_OUT is always true.
11175 * Makefile.in (UIOUT_CFLAGS): Remove.
11176 * configure: Regenerated.
11177 * TODO: Remove blurb about elimination of -DUI_OUT.
11178
11179 * configure.in: Move code that provides the --enable-gdbcli,
11180 --enable-gdbmi options right before the code that handles the
11181 --enable-tui option. Polish a bit.
11182 * configure: Regenerated.
11183
11184 * configure.in: Rewrite check for GNU regex and the
11185 --without-included regex option, and move it into the "Checks for
11186 library functions" section. This makes us use the system regex
11187 again by default on systems with version 2 of the GNU C library.
11188 This was apparently broken.
11189 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11190 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11191 * config.in, configure: Regenerated.
11192
11193 * configure.in: Move code that provides the --enable-tui option
11194 before the "Checks for libraries" section. Polish the code
11195 somewhat and set need_curses to yes if we build the TUI. Rewrite
11196 code that looks for a library providing termcap functionality to
11197 match more closely what's done in the Readline library, and move
11198 it into to the "Checks for libraries" section.
11199 * configure: Regenerated.
11200 * Makefile.in (TERMCAP): Remove variable.
11201 * config/i386/go32.mh (TERMCAP): Remove variable.
11202
11203 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11204
11205 * MAINTAINERS: Mention gdb_mbuild.sh.
11206 * gdb_mbuild.sh: Rewrite.
11207
11208 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11209
11210 * configure.in: Fix typo in last change.
11211 * config.in, configure: Regenerated.
11212
11213 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11214
11215 * valarith.c (value_binop): Delete obsolete code and comments.
11216 * configure.host: Ditto.
11217 * buildsym.h (make_blockvector): Ditto.
11218 * buildsym.c (make_blockvector): Ditto.
11219 * defs.h (enum language): Ditto.
11220 (chill_demangle): Ditto.
11221 * elfread.c (elf_symtab_read): Ditto.
11222 * dwarfread.c (CHILL_PRODUCER): Ditto.
11223 (set_cu_language): Ditto.
11224 (handle_producer): Ditto.
11225 * expprint.c (print_subexp): Ditto.
11226 * gdbtypes.c (chill_varying_type): Ditto.
11227 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11228 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11229 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11230 (chill_varying_type): Ditto.
11231 * language.h (_LANG_chill): Ditto.
11232 * language.c (binop_result_type, integral_type): Ditto.
11233 (character_type, string_type, structured_type): Ditto.
11234 (lang_bool_type, binop_type_check): Ditto.
11235 * stabsread.h (os9k_stabs): Ditto.
11236 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11237 (define_symbol, read_type, read_struct_fields): Ditto.
11238 (read_array_type, read_enum_type, read_huge_number): Ditto.
11239 (read_range_type, start_stabs): Ditto.
11240 * symfile.c (init_filename_language_table): Ditto.
11241 (add_psymbol_with_dem_name_to_list): Ditto.
11242 * symtab.c (symbol_init_language_specific): Ditto.
11243 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11244 * symtab.h (struct general_symbol_info): Ditto.
11245 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11246 * typeprint.c (typedef_print): Ditto.
11247 * utils.c (fprintf_symbol_filtered): Ditto.
11248 * valops.c (value_cast, search_struct_field, value_slice): Delete
11249 obsolete code.
11250 (varying_to_slice): Delete function.
11251 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11252 (varying_to_slice): Delete declaration.
11253 * MAINTAINERS: Update.
11254
11255 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11256
11257 * configure.in: Reorganize "Checks for library functions section"
11258 a bit. Remove check for `btowc' and `isascii' functions.
11259 * configure: Regenerated.
11260
11261 * acconfig.h (_MSE_INT_H): Remove.
11262 * configure.in: Create "Checks for header files" section, and move
11263 appropriate tests there. Don't check for objlist.h, wchar.h,
11264 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11265 misdetection fix. Also add "Checks for types", "Checks for
11266 compiler characteristics" and "Checks for library functions"
11267 sections.
11268 * config.in, configure: Regenerated.
11269
11270 * configure.in: Create "Checks for programs" section, and move
11271 appropriate tests there.
11272
11273 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11274
11275 * configure.in: Create "Checks for libraries" section, and move
11276 appropriate tests there. Cleanup check for wctype in libw. Use
11277 AC_SEARCH_LIBS to see whether we need libsocket.
11278 * configure: Regenerated.
11279
11280 For older changes see ChangeLog-2002
11281 \f
11282 Local Variables:
11283 mode: change-log
11284 left-margin: 8
11285 fill-column: 74
11286 version-control: never
11287 End:
This page took 0.380525 seconds and 5 git commands to generate.