e7d670d7bf63218f75d3f2abdf5e36d08b9153b6
[binutils-gdb.git] / gdb / ChangeLog
1 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2
3 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
4 null pointer. Fix typo in comment.
5
6 * regcache.c (supply_register): Reimplement to call
7 regcache_raw_supply.
8 (regcache_collect): Reimplement by calling regcache_raw_collect.
9
10 2003-08-28 Mark Kettenis <kettenis@gnu.org>
11
12 * regcache.c (register_buffer): Consitify first argument.
13 (regcache_raw_supply, regcache_raw_collect): New
14 functions.
15
16 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
17
18 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
19 by Nathan J. Williams.
20
21 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
22
23 * lin-lwp.c (wait_lwp): New function, copied from
24 stop_wait_callback. Clean up.
25 (stop_wait_callback): Use wait_lwp.
26
27 2003-08-28 Andrew Cagney <cagney@redhat.com>
28
29 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
30 flavour and disassembler options.
31 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
32 (mips_gdbarch_init): Set "print_insn". Delete initialization of
33 deprecated_tm_print_insn_info.
34
35 2003-08-27 Andrew Cagney <cagney@redhat.com>
36
37 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
38 Use target_read_memory.
39 (s390_get_frame_info): Update. Do not reference
40 deprecated_tm_print_insn_info.
41 (s390_check_function_end, s390_is_sigreturn): Ditto.
42
43 2003-08-27 Andrew Cagney <cagney@redhat.com>
44
45 * Makefile.in (cris-tdep.o): Update dependencies.
46 * cris-tdep.c: Include "gdb_assert.h".
47 (cris_gdbarch_init): Set print_insn.
48 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
49 (cris_delayed_get_disassembler): Simplify, directly call the
50 disassembler returned by cris_get_disassembler.
51 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
52 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
53 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
54 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
55 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
56 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
57 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
58 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
59 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
60 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
61 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
62 (gdb_print_insn_sparc): Delete function.
63 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
64 deprecated_tm_print_insn_info.
65 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
66 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
67 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
68 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
69 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
70 * s390-tdep.c (gdb_print_insn_s390): Delete function.
71 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
72 (s390_gdbarch_init): Set print_insn.
73
74 2003-08-27 Andrew Cagney <cagney@redhat.com>
75
76 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
77 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
78 * infcall.c (call_function_by_hand): Convert the entry point
79 address into a code address.
80
81 2003-08-27 Andrew Cagney <cagney@redhat.com>
82
83 * dsrec.c: Include "gdb_string.h".
84 * Makefile.in (dsrec.o): Update dependencies.
85
86 2003-08-27 Michael Chastain <mec@shout.net>
87
88 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
89
90 2003-08-27 Andrew Cagney <cagney@redhat.com>
91
92 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
93 (alpha_osf1_init_abi): Do not set call_dummy_address.
94
95 2003-08-27 David Carlton <carlton@kealia.com>
96
97 From Randolph Chung <tausq@debian.org>:
98 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
99 compiles with -Wformat-nonliteral -Werror.
100
101 2003-08-26 Jim Blandy <jimb@redhat.com>
102
103 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
104 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
105 bfd_lookup_symbol, since we only want symbols in code sections.
106 (look_for_base): Pass zero as the SECT_FLAGS argument to
107 bfd_lookup_symbol, since we're not concerned about which section
108 the symbol is in.
109
110 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
111
112 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
113 we are frameless or the return address register is already known.
114
115 2003-08-26 Andrew Cagney <cagney@redhat.com>
116
117 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
118 in size. Add comments.
119
120 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
121
122 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
123 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
124
125 2003-08-26 Jason Merrill <jason@redhat.com>
126
127 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
128 case out of #ifdef MIPS block.
129
130 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
131
132 PR java/1322
133 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
134 available before calling SECT_OFF_TEXT.
135 * PROBLEMS: Remove description of java/1322.
136
137 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
138
139 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
140 bof, and nat0-nat127 as pseudo-registers.
141 (ia64_frame_cache): New struct used to cache frame info.
142 (ia64_register_reggroup_p): New routine used to override default
143 register grouping so registers without names are still saved and
144 restored.
145 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
146 pseudo values.
147 (ia64_pseudo_register_read): New routine to read pseudo-registers.
148 (ia64_pseudo_register_write): New routine to write pseudo-registers.
149 (ia64_alloc_frame_cache): New routine to create a new
150 ia64_frame_cache.
151 (examine_prologue): Change prototype to add next_frame pointer.
152 Assume frameless until otherwise proven. Verify that the cfm for
153 current frame matches the cfm that should occur for the prologues
154 alloc insn and if equal, mark as not frameless. At end of routine,
155 if not frameless, calculate registers for the previous frame and store
156 in the cache, if a cache is provided.
157 (ia64_skip_prologue): Use new prototype when calling examine_prologue
158 and pass 0 for next_frame.
159 (ia64_store_return_value): Change to use convert_typed_floating()
160 instead of calling ia64_convert_to_raw().
161 (ia64_extract_return_value): Change to use convert_typed_floating()
162 instead of calling ia64_convert_to_virtual().
163 (ia64_frame_cache): New routine to support new frame model.
164 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
165 (ia64_frame_sniffer): Ditto.
166 (ia64_sigtramp_frame_init_saved_regs): Ditto.
167 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
168 (ia64_sigtramp_frame_prev_register): Ditto.
169 (ia64_sigtramp_frame_sniffer): Ditto.
170 (ia64_frame_base_address): Ditto.
171 (ia64_extract_struct_value_address): Change to issue error message.
172 (ia64_frame_align): New routine to align sp.
173 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
174 (ia64_push_arguments): Removed. Logic moved to
175 ia64_push_dummy_call().
176 (ia64_push_return_address): Ditto.
177 (ia64_unwind_dummy_id): New function.
178 (ia64_unwind_pc): Ditto.
179 (ia64_convert_register_p): Ditto.
180 (ia64_register_to_value): Ditto.
181 (ia64_value_to_register): Ditto.
182 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
183 (ia64_register_byte, ia64_register_raw_size): Ditto.
184 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
185 (ia64_saved_pc_after_call): Ditto.
186 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
187 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
188 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
189 (ia64_register_convert_to_raw): Ditto.
190 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
191 (ia64_init_extra_frame_info): Ditto.
192 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
193 (ia64_gdbarch_init): Remove registering of deprecated functions that
194 are no longer used. Add registration of new gdbarch functions.
195 Remove registering deprecated_write_sp. Replace
196 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
197 Delete set_gdbarch_deprecated_register_convertible(),
198 set_gdbarch_deprecated_register_convert_to_virtual(), and
199 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
200 set_gdbarch_deprecated_register_size(),
201 set_gdbarch_deprecated_register_bytes(),
202 set_gdbarch_pcregnum(),
203 set_gdbarch_deprecated_register_byte(),
204 set_gdbarch_deprecated_register_raw_size(),
205 set_gdbarch_deprecated_max_register_raw_size(),
206 set_gdbarch_deprecated_register_virtual_size(),
207 and set_gdbarch_deprecated_max_register_virtual_size() calls.
208 Replace set_gdbarch_deprecated_extract_return_value() with
209 set_gdbarch_extract_return_value(). Remove calls to:
210 set_gdbarch_deprecated_saved_pc_after_call();
211 set_gdbarch_deprecated_frame_chain(),
212 set_gdbarch_deprecated_frame_saved_pc(),
213 set_gdbarch_deprecated_frame_init_saved_regs(),
214 set_gdbarch_deprecated_get_saved_register(),
215 set_gdbarch_deprecated_call_dummy_words(),
216 set_gdbarch_deprecated_sizeof_call_dummy_words(),
217 set_gdbarch_deprecated_init_extra_frame_info(),
218 set_gdbarch_deprecated_frame_args_address(),
219 set_gdbarch_deprecated_frame_locals_address(),
220 and set_gdbarch_deprecated_dummy_write_sp().
221 Add set_gdbarch_convert_register_p(),
222 set_gdbarch_register_to_value(),
223 set_gdbarch_value_to_register(),
224 set_gdbarch_push_dummy_call(),
225 set_gdbarch_frame_align(),
226 set_gdbarch_unwind_dummy_id(),
227 set_gdbarch_unwind_pc(),
228 frame_unwind_append_sniffer(),
229 frame_unwind_append_sniffer(),
230 and frame_base_set_default().
231
232 2003-08-25 Chris Demetriou <cgd@broadcom.com>
233
234 * configure.tgt: Document need for special "mipsisa64" handling.
235 (mipsisa64*-*-linux64): Handle as target linux64.
236 (mipsisa64*-*-*): Handle as target embed64.
237
238 2003-08-18 Michael Chastain <mec@shout.net>
239
240 * PROBLEMS: Document pr gdb/1322, the Java anonymous
241 objfile bug.
242
243 2003-08-24 Mark Kettenis <kettenis@gnu.org>
244
245 * i387-tdep.h: Update copyright date.
246 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
247
248 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
249 CFLAGS games to reflect reality.
250
251 2003-08-24 Andrew Cagney <cagney@redhat.com>
252
253 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
254 GDB_MULTI_ARCH is always non-zero.
255 * osabi.c (_initialize_gdb_osabi): Ditto.
256 (gdbarch_init_osabi): Ditto.
257 * sparc-tdep.c: Ditto for #if code.
258
259 2003-08-23 Mark Kettenis <kettenis@gnu.org>
260
261 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
262 Update comments.
263 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
264 comments.
265 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
266 x86_64_supply_fxsave.
267 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
268 x86_64_supply_fxsave.
269 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
270 x86_64_supply_fxsave.
271
272 2003-08-23 Andreas Jaeger <aj@suse.de>
273
274 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
275 i387_supply_fxsave.
276
277 2003-08-23 Mark Kettenis <kettenis@gnu.org>
278
279 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
280 i387_supply_register.
281 (go32_fetch_registers): Adjust call to i387_supply_fsave.
282 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
283 i387_supply_fsave.
284 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
285 i387_supply_fxsave.
286 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
287 i387_supply_fsave.
288 * i386bsd-nat.c (supply_fpregset): Adjust call to
289 i387_supply_fsave.
290 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
291 call to i387_supply_fxsave. Call i387_supply_fsave instead of
292 supply_fpregset.
293 (store_inferior_registers): Remove extraneous whitespace. Call
294 i387_fill_fsave instead of fill_fpregset.
295 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
296 (supply_fpregset): Likewise.
297 * i386v4-nat.c (supply_fpregset): Adjust call to
298 i387_supply_fsave.
299 * i386-interix-nat.c (supply_fpregset): Adjust call to
300 i387_supply_fsave.
301 * i386-linux-nat.c (supply_fpregset): Adjust call to
302 i387_supply_fsave.
303 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
304 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
305 i387supply_fsave and i387_supply_fxsave.
306 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
307 Incorporate code from `i387_supply_register.
308 (i387_supply_register): Remove.
309 (i387_supply_fxsave): Add `regnum' argument.
310 Update comments.
311 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
312 prototype.
313 (i387_supply_register): remove prototype.
314 Update comments.
315
316 2003-08-22 Michael Chastain <mec@shout.net>
317
318 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
319 Add lines for files in gdb/testsuite/gdb.cp/* that are
320 still not 8.3 unique.
321
322 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
323
324 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
325 TYPE_VPTR_FIELDNO is valid.
326
327 2003-08-19 Mark Kettenis <kettenis@gnu.org>
328
329 * utils.c (set_width_command): Remove prototypes.
330 (set_screen_size): New prototype.
331 (init_page_info): Simplify by fetching the screen size from
332 Readline. Call set_screen_size.
333 (set_screen_size): New function.
334 (set_width): Add missing whitespace in comment.
335 (set_width_command): Call set_screen_size.
336 (set_height_command): New function.
337 (initialize_utils): Fix formatting. Make "set height" command
338 call set_height_command. Remove redundant code that turns off
339 pagination if output isn't a terminal. Remove redundant call to
340 set_width_command.
341
342 2003-08-22 Mark Kettenis <kettenis@gnu.org>
343
344 * sparc64-tdep.h (sparc64_regnum): Fix comment.
345 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
346 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
347 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
348 `case' keyword.
349 (sparc64_register_info): Give the reister with number
350 SPARC64_STATE_REGNUM a name.
351 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
352 %asi and %ccr.
353 (sparc64_push_dummy_call): Take BIAS into account when checking
354 stcak alignment.
355 (sparc_software_single_step): Remove assertions that check whether
356 NPC and NNPC were zero.
357 (sparc_supply_rwindow): Make public. Merge functionality with
358 sparc64_supply_rwindow.
359 (sparc_fill_rwindow): Make public. Merge functionality with
360 sparc64_fill_rwindow.
361 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
362 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
363 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
364 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
365 sparc_supply_rwindow instead of sparc64_supply_rwindow.
366
367 * reggroups.c: Add whitespace after declarations of local
368 variables in functions.
369
370 2003-08-21 Michael Chastain <mec@shout.net>
371
372 * gdbtypes.h: Change array bound type from an int to enum.
373
374 2003-08-21 Andrew Cagney <cagney@redhat.com>
375
376 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
377 * config/sparc/tm-sparc.h: Ditto.
378 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
379 unconditionally.
380 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
381
382 2003-07-13 Mark Kettenis <kettenis@gnu.org>
383
384 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
385 (register_objfile_data, set_objfile_data, objfile_data): New
386 prototypes.
387 * objfiles.c (objfile_alloc_data, objfile_free_data): New
388 prototypes.
389 (allocate_objfile): Call objfile_alloc_data.
390 (free_objfile): Call objfile_free_data.
391 (struct objfile_data): New.
392 (struct objfile_data_registration): New.
393 (struct objfile_data_registry): New.
394 (objfile_data_registry): New variable.
395 (register_objfile_data): New function.
396 (objfile_alloc_data, objfile_free_data): New functions.
397 (set_objfile_data, objfile_data): New functions.
398 * dwarf2-frame.c (dwarf2_frame_data): New variable.
399 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
400 (_initialize_dwarf2_frame): New function and prototype.
401
402 2003-08-21 Andrew Cagney <cagney@redhat.com>
403
404 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
405 a specific architecture.
406 * arch-utils.h (set_architecture_from_arch_mach): Delete
407 declaration.
408 (target_architecture_hook): Delete declaration.
409 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
410 (default_float_format): Assume GDB_MULTI_ARCH.
411 (default_double_format): Assume GDB_MULTI_ARCH.
412 (set_endian_from_file): Delete function.
413 (arch_ok): Delete function.
414 (set_arch): Delete function.
415 (set_architecture_from_arch_mach): Delete function.
416 (set_architecture_from_file): Delete function.
417 (set_architecture): Assume GDB_MULTI_ARCH.
418 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
419
420 2003-08-21 Mark Kettenis <kettenis@gnu.org>
421
422 Rewrite FreeBSD/sparc64 native configuration.
423 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
424 * sparc64fbsd-nat.c: New file.
425 * sparc64fbsd-tdep.c: New file.
426 * sparc64-tdep.c sparc64-tdep.h: New files.
427 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
428 sparc64fbsd-tdep.o): New dependencies.
429 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
430 and sparc64fbsd-tdep.c.
431 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
432 * config/sparc/fbsd.mh: Remove copyright notice.
433 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
434 sparcbsd-nat.o.
435 * config/sparc/fbsd.mt: Remove copyright notice.
436 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
437 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
438 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
439 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
440 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
441 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
442 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
443 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
444 "sparc/tm-sp64.h".
445 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
446 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
447
448 2003-08-21 Michael Chastain <mec@shout.net>
449
450 * symtab.h: Add doco on the space critical structures and
451 some measurements of space usage.
452
453 2003-08-21 Michael Snyder <msnyder@redhat.com>
454
455 * tracepoint.c (trace_dump_command): Trace break address
456 is subject to DECR_PC_AFTER_BREAK.
457 (set_traceframe_context): Make "trace_line" an int.
458 Fixes suggested by Mark Newman <mark.newman@lmco.com>
459
460 2003-08-20 Michael Snyder <msnyder@redhat.com>
461
462 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
463 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
464 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
465 argument passing.
466 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
467 functions, replace sh_push_dummy_call.
468 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
469
470 2003-08-20 Michael Chastain <mec@shout.net>
471
472 * gdbtypes.h (struct main_type): Rearrange to save space.
473
474 2003-08-20 Michael Snyder <msnyder@redhat.com>
475
476 * trad-frame.c: Comment typo fix.
477
478 2003-08-20 Michael Snyder <msnyder@redhat.com>
479 Kevin Buettner <kevinb@redhat.com>
480
481 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
482 (frv_frame_init_saved_regs): Add declaration.
483 (frame_extra_info): Add new field ``saved_regs''.
484 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
485 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
486 Update frame related code.
487 (frv_extract_struct_value_address): Adjust formatting.
488 * Makefile.in (frv-tdep.o): Update dependencies.
489 * config/frv/tm-frv.h (target_insert_watchpoint)
490 (target_remove_watchpoint, target_insert_hw_breakpoint)
491 (target_remove_hw_breakpoint): Delete these macros.
492 (remote_insert_watchpoint, remote_remove_watchpoint)
493 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
494 these declarations.
495
496 2003-08-20 Michael Chastain <mec@shout.net>
497
498 * defs.h (ENUM_BITFIELD): New macro.
499 * symtab.h (ENUM_BITFIELD): Use it.
500 (BYTE_BITFIELD): Remove old macro, which was already disabled.
501
502 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
503
504 * MAINTAINERS (write after approval): Add myself.
505
506 2003-08-18 Andrew Cagney <cagney@redhat.com>
507
508 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
509 * gdbarch.h, gdbarch.c: Re-generate.
510 * infcall.c (call_function_by_hand): Adjust the SP by
511 frame_red_zone_size before allocating any stack space.
512 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
513 * x86-64-tdep.c (x86_64_frame_align): New function.
514 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
515
516 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
517 Remove code adjusting SP so that it skips over the Red Zone.
518
519 2003-08-18 Mark Kettenis <kettenis@gnu.org>
520
521 * NEWS (New native configurations): Mention FreeBSD/amd64.
522
523 2003-08-18 Andrew Cagney <cagney@redhat.com>
524
525 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
526 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
527 "m68k_frame_p".
528 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
529
530 2003-08-18 Mark Kettenis <kettenis@gnu.org>
531
532 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
533
534 2003-08-18 Michal Ludvig <mludvig@suse.cz>
535
536 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
537 Define.
538 * i386-linux-nat.c: Include "linux-nat.h".
539 (child_post_startup_inferior): New function.
540
541 2003-08-18 Mark Kettenis <kettenis@gnu.org>
542
543 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
544 at the start of a frameless function. This probably fixes PR
545 backtrace/1338.
546
547 2003-08-17 Michael Chastain <mec@shout.net>
548
549 * symfile.c (find_sym_fns): Remove special case for apollo target.
550
551 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
552
553 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
554 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
555 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
556 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
557 (linux_supports_tracevforkdone): New function.
558 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
559 TRACEVFORKDONE.
560 (child_follow_fork): Handle vfork.
561 (linux_handle_extended_wait): Likewise. Also handle exec.
562 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
563 * NEWS: Mention fork tracing.
564
565 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
566
567 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
568
569 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
570
571 * Makefile.in (i386-linux-nat.o): Update dependencies.
572 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
573 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
574 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
575 * i386-linux-nat.c: Include "linux-nat.h".
576 (child_post_startup_inferior): New function.
577 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
578 * infptrace.c (kill_inferior): Wrap in #ifdef.
579 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
580 attaching to each LWP.
581 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
582 (init_lin_lwp_ops): Fill in some more operations.
583 * linux-nat.h (linux_enable_event_reporting)
584 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
585 prototypes.
586 * linux-nat.c (linux_enable_event_reporting): New function.
587 (child_post_attach, linux_child_post_startup_inferior)
588 (child_post_startup_inferior, child_follow_fork)
589 (linux_handle_extended_wait, kill_inferior): New functions.
590
591 2003-08-16 Andrew Cagney <cagney@redhat.com>
592
593 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
594 * gdbarch.h, gdbarch.c: Re-generate.
595
596 2003-08-16 Mark Kettenis <kettenis@gnu.org>
597
598 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
599
600 2003-08-16 Andrew Cagney <cagney@redhat.com>
601
602 * NEWS: Mention that "set prompt-escape-char" was deleted.
603 * top.c (get_prompt_1): Delete function.
604 (gdb_prompt_escape):
605 (init_main): Do not clear "gdb_prompt_escape". Delete "set
606 prompt-escape-char" command.
607 (MAX_PROMPT_SIZE): Delete macro.
608 (get_prompt): Simplify, do not call get_prompt_1.
609
610 2003-08-16 Andrew Cagney <cagney@redhat.com>
611
612 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
613 -Werror. -Wformat-nonliteral problems.
614
615 2003-08-15 J. Brobecker <brobecker@gnat.com>
616
617 Further multiarching work mostly for hppa64-*-hpux11:
618 * hppa-tdep.h: New file.
619 * hppa-tdep.c: #include hppa-tdep.c.
620 (hppa32_num_regs): Renamed from hppa_num_regs.
621 (hppa64_num_regs): New constant.
622 (hppa64_call_dummy_breakpoint_offset): New constant.
623 (hppa32_call_dummy_length): New constant.
624 (hppa64_call_dummy_length): New constant.
625 (hppa32_stack_align): Make name 32bit explicit.
626 (hppa32_register_virtual_type): Likewise.
627 (hppa32_extract_return_value): Likewise.
628 (hppa32_use_struct_convention): Likewise.
629 (hppa32_store_return_value): Likewise.
630 (hppa64_register_virtual_type): New function.
631 (hppa64_extract_return_value): New function.
632 (hppa64_use_struct_convention): New function.
633 (hppa64_store_return_value): New function.
634 (hppa_frame_locals_address): Remove declaration, function does
635 not exist anymore.
636 (hppa_register_byte): Add support for PA64 ABI.
637 (hppa_gdbarch_init): Add support for PA64 ABI.
638 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
639 Make name 32bit explicit.
640 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
641 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
642 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
643 (hppa64_hpux_frame_base_before_sigtramp): New function.
644 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
645 * config/pa/tm-hppa64.h: Remove macros that are no longer
646 necessary now that the gdbarch vector is properly setup.
647 Transform some macros into function calls. Some minor cleanup.
648 * config/pa/tm-hppah.h: Update function calls in macros
649 following the function renaming in hppa-hpux-tdep.c.
650 * Makefile.in (hppa_tdep_h): New variable.
651 (hppa-tdep.o): Add dependency over hppa_tdep_h.
652
653 2003-08-14 Michael Snyder <msnyder@redhat.com>
654
655 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
656
657 2003-08-13 J. Brobecker <brobecker@gnat.com>
658
659 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
660 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
661 routine.
662
663 2003-08-13 Michael Snyder <msnyder@redhat.com>
664
665 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
666 (frv_saved_pc_after_call): Use deprecated ftype.
667 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
668 (frv_remote_translate_xfer_address): Remove.
669 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
670
671 2003-08-13 J. Brobecker <brobecker@gnat.com>
672
673 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
674 initialization after the common gdbarch initialization, not before.
675
676 2003-08-13 J. Brobecker <brobecker@gnat.com>
677
678 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
679 (ADDR_BITS_REMOVE): Remove, redundant.
680
681 2003-08-13 J. Brobecker <brobecker@gnat.com>
682
683 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
684 gdbarch method to clear the 2 low bits of text addresses.
685
686 2003-08-12 Andrew Cagney <cagney@redhat.com>
687
688 * Makefile.in (dsrec.o): Update dependencies.
689 * dsrec.c: Include "gdb_assert.h".
690 (make_srec): Use snprintf instead of sprintf, use a literal format
691 string.
692
693 2003-08-12 Andrew Cagney <cagney@redhat.com>
694
695 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
696 FRAME_OBSTACK_ZALLOC.
697
698 2003-08-12 Kevin Buettner <kevinb@redhat.com>
699
700 * i386-tdep.c (i386_gdbarch_init): Enable default support for
701 SSE registers.
702
703 2003-08-10 Mark Kettenis <kettenis@gnu.org>
704
705 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
706 amd64fbsd_sc_reg_offset): Add extern declarations.
707 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
708 declarations.
709
710 2003-08-11 Ben Elliston <bje@wasabisystems.com>
711
712 * MAINTAINERS (write after approval): Update my mail address.
713
714 2003-08-10 Andrew Cagney <cagney@redhat.com>
715
716 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
717
718 2003-08-10 Mark Kettenis <kettenis@gnu.org>
719
720 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
721 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
722 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
723 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
724 i386bsd_sc_reg_offset): Add extern declarations.
725 * i386obsd-nat.c: Include "i386-tdep.h"
726 (_initialize_i386obsd_nat): Remove extern declarations.
727 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
728 declarations.
729 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
730 declarations.
731
732 * i386-tdep.c (i386_register_to_value): Use get_frame_register
733 instead of frame_read_register.
734 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
735 instead of frame_read_register. Use I386_ESP_REGNUM instead of
736 SP_REGNUM.
737 (i386_frame_prev_register): Use frame_unwind_register_unsigned
738 instead of frame_unwind_unsigned_register. Use
739 I386_EFLAGS_REGISTER instead of PS_REGNUM.
740 (i386_get_longjmp_target): Use regcache_read_unsigned_register
741 instead of read_register. Use builtin_type_void_data_ptr instead
742 of builtin_type_void_func_ptr when extracting the address of the
743 jmp_buf.
744 (i386_extract_return_value, i386_store_return_value,
745 i386_pseudo_register_read, i386_pseudo_register_write): Use
746 register_size instead REGISTER_RAW_SIZE.
747
748 2003-08-10 Andrew Cagney <cagney@redhat.com>
749
750 * infcall.c (call_function_by_hand): Use xstrprintf instead of
751 sprintf. Make "name" constant.
752
753 2003-08-10 Mark Kettenis <kettenis@gnu.org>
754
755 * i387-tdep.c (i387_register_to_value): Use get_frame_register
756 instead of frame_read_register.
757 (i387_print_float_info): Use get_frame_register and
758 get_frame_register_unsigned instead of frame_register_read.
759
760 * i386fbsd-nat.c: Include "i386-tdep.h".
761 (child_resume): Make `eflags' an ULONGEST. Use
762 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
763 instead of register_read and register_write.
764
765 * i386bsd-nat.c (fetch_inferior_registers,
766 store_inferior_registers): Don't use && at the end of a line.
767 (_initialize_i386bsd_nat): Fix typo.
768
769 * frame.c (_initialize_frame): Add missing backslash.
770
771 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
772 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
773 and supply_register instead of manipulating the register buffer
774 directly.
775
776 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
777 * config/i386/nm-i386sol2.h
778 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
779
780 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
781 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
782 instructions that GCC likes to mingle into the prologue. Fixes
783 gdb/1253 and gdb/1255.
784
785 2003-08-09 Andrew Cagney <cagney@redhat.com>
786
787 Fix GDB PR cli/926.
788 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
789 * command.h (add_setshow_uinteger_cmd): Declare.
790 * frame.c (set_backtrace_cmd): New function.
791 (show_backtrace_cmd): New function.
792 * frame.c (_initialize_frame): Replace "set/show
793 backtrace-below-main" with "set/show backtrace past-main". Add
794 command "set/show backtrace limit".
795 (backtrace_past_main): Rename "backtrace_below_main".
796 (backtrace_limit): New variable.
797 (get_prev_frame): Update. Check the backtrace_limit.
798
799 2003-08-09 Andrew Cagney <cagney@redhat.com>
800
801 * defs.h (xstrprintf): Declare.
802 * utils.c (xstrprintf): New function.
803 * breakpoint.c (insert_breakpoints): Replace sprintf and
804 non-literal format strings, with xstrprintf and cleanups.
805 (delete_breakpoint,breakpoint_re_set): Ditto.
806 (commands_command, insert_breakpoints): Ditto.
807 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
808 (break_at_finish_command_1): Ditto.
809
810 2003-08-09 Andrew Cagney <cagney@redhat.com>
811
812 * MAINTAINERS (language support): List Adam Fedor as Objective C
813 maintainer.
814
815 2003-08-08 J. Brobecker <brobecker@gnat.com>
816
817 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
818 are now multiarched.
819
820 2003-08-08 J. Brobecker <brobecker@gnat.com>
821
822 * config/pa/tm-hppa64.h: Remove lots of macros that are no
823 longer necessary now that hppa64 is partially multiarch'ed.
824
825 2003-08-08 Andrew Cagney <cagney@redhat.com>
826
827 * interps.c (interp_set): Check for a NULL "old_interp".
828
829 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
830
831 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
832 (install-only): Support DESTDIR.
833 (uninstall): Likewise.
834 (install-gdbtk): Likewise.
835
836 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
837
838 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
839 contains something meaningful at all times.
840
841 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
842
843 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
844
845 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
846
847 * MAINTAINERS (write after approval): Added self.
848
849 2003-08-07 Andrew Cagney <cagney@redhat.com>
850
851 * inferior.h (AT_SYMBOL): Define.
852 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
853 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
854 * mips-tdep.c (mips_call_dummy_address): Delete function.
855 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
856 set call_dummy_address.
857
858 2003-08-07 Andrew Cagney <cagney@redhat.com>
859
860 * language.c (op_error): Delete function.
861 (binop_type_check): Delete function.
862 * language.h (type_op_error, range_op_error): Delete macros.
863 (op_error): Delete declaration.
864
865 2003-08-07 Andrew Cagney <cagney@redhat.com>
866
867 * interps.h (INTERP_MI2, INTERP_MI3): Define.
868
869 2003-08-07 Michal Ludvig <mludvig@suse.cz>
870
871 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
872 (x86_64_push_arguments): Skip the red zone.
873
874 2003-08-05 Andrew Cagney <cagney@redhat.com>
875
876 * reggroups.c (reggroup_next): Check for the final entry.
877
878 2003-08-04 Andrew Cagney <cagney@redhat.com>
879
880 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
881 * cli/cli-script.c (define_command): Call query directly, instead
882 of passing it a buffer.
883 * ocd.c (ocd_error): Pass error a constant format string.
884 * remote-mips.c (mips_error): Use fputs_filtered.
885
886 * solib-svr4.c (_initialize_svr4_solib): Update
887 register_gdbarch_data call.
888 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
889
890 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
891 (register_gdbarch_data): Delete "free" parameter. Update
892 comments.
893 * gdbarch.h, gdbarch.c: Re-generate.
894 * reggroups.c (_initialize_reggroup): Update.
895 * gnu-v3-abi.c (init_gnuv3_ops): Update.
896 * frame-base.c (_initialize_frame_base): Update.
897 * frame-unwind.c (_initialize_frame_unwind): Update.
898 * user-regs.c (_initialize_user_regs): Update.
899 * remote.c (_initialize_remote): Update.
900 * regcache.c (_initialize_regcache): Update.
901
902 * regcache.c (xfree_regcache_descr): Delete function.
903 (_initialize_regcache): Update call to register_gdbarch_data.
904 (init_regcache_descr, init_legacy_regcache_descr): Use
905 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
906
907 * remote.c (free_remote_state): Delete function.
908 (_initialize_remote): Update register_gdbarch_data.
909 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
910 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
911
912 2003-08-04 Andrew Cagney <cagney@redhat.com>
913
914 * reggroups.c (struct reggroup_el): Define.
915 (struct reggroups): Delete field "nr_group". Replace array
916 "group" with a "first" to "last" linked list.
917 (reggroups_init): Update. Allocate using gdbarch's obstack.
918 (reggroups_free): Delete function.
919 (add_group): Update. Add "el" parameter.
920 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
921 (default_groups): Update.
922 (reggroup_next): Replace reggroups.
923 (reggroups_dump): Update.
924 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
925 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
926 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
927
928 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
929
930 * Makefile.in (tui-interp.o): Update dependencies.
931
932 2003-08-04 David Carlton <carlton@kealia.com>
933
934 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
935 to internal_error call.
936 * source.c (forward_search_command): Add "%s" format argument.
937 (reverse_search_command): Ditto.
938 * top.c (quit_confirm): Ditto.
939 * cli/cli-setshow.c (do_setshow_command): Ditto.
940 * cp-valprint.c (cp_print_class_method): Replace
941 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
942 (cp_print_class_member): Ditto.
943 * event-top.c (command_line_handler): Ditto.
944 * linux-proc.c (linux_info_proc_cmd): Ditto.
945 * p-typeprint.c (pascal_type_print_base): Ditto.
946 * p-valprint.c (pascal_object_print_class_method): Ditto.
947 (pascal_object_print_class_member): Ditto.
948 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
949 * remote.c (remote_cisco_section_offsets): Ditto.
950 * top.c (command_line_input): Ditto.
951 * utils.c (vwarning,error_stream,quit): Ditto.
952 * valprint.c (print_floating,print_binary_chars)
953 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
954
955 2003-08-04 Andrew Cagney <cagney@redhat.com>
956
957 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
958
959 2003-08-02 Andrew Cagney <cagney@redhat.com>
960
961 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
962 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
963 amd64fbsd-nat.c.
964
965 2003-08-02 Andrew Cagney <cagney@redhat.com>
966
967 * Makefile.in: Update all dependencies and definitions.
968
969 2003-08-02 Adam Fedor <fedor@gnu.org>
970
971 * linespec.c (is_objc_method_format): New function
972 (decode_line_1, locate_first_half): Use it.
973 Fixes PR objc/1298
974
975 2003-08-01 Andrew Cagney <cagney@redhat.com>
976
977 * NEWS: Mention that m32r is multi-arch.
978 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
979 * configure.tgt: Recognize m32r-*-*.
980 * config/m32r/tm-m32r.h: Delete file.
981 * config/m32r/m32r.mt: New file.
982 * m32r-rom.c (m32r_upload_command): Use hostent only when
983 gethostname succeeds, in order to avoid a compilation
984 warning.
985 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
986 compiler warning.
987
988 2003-08-01 Michael Snyder <msnyder@redhat.com>
989
990 * sh-tdep.c (sh_frame_align): New gdbarch method.
991 (sh_gdbarch_init): Set up frame_align method.
992
993 2003-07-31 Michael Snyder <msnyder@redhat.com>
994
995 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
996 which is already covered by the new frames infrastructure.
997
998 2003-07-31 Andrew Cagney <cagney@redhat.com>
999
1000 * user-regs.c (struct user_reg): Add "next" link.
1001 (struct user_regs): Replace "user" with "first" and "last" links.
1002 (append_user_reg): Add pre-allocated "reg" parameter.
1003 (builtin_user_regs): Provide initial value for "last".
1004 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1005 (user_regs_init): Allocate memory from the gdbarch obstack.
1006 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1007 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1008 linked list.
1009 (usernum_to_user_reg): New function.
1010 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1011 (value_of_user_reg): Use usernum_to_user_reg.
1012 (user_regs_free): Delete function.
1013 (_initialize_user_regs): Update register_gdbarch_data call.
1014
1015 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1016
1017 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1018
1019 2003-07-30 Michael Snyder <msnyder@redhat.com>
1020
1021 * value.h (value_being_returned): Add a struct_addr argument.
1022 * infcall.c (call_function_by_hand): Pass struct_addr to
1023 value_being_returned.
1024 * infcmd.c (print_return_value): Pass zero as struct_addr.
1025 * values.c (value_being_returned): If struct_addr is passed,
1026 use it instead of trying to recover it from the inferior.
1027
1028 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1029
1030 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1031 the prologue analyzer won't need to attempt to extract the pc
1032 value from the woefully incomplete dummy frame.
1033 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1034 possible. Disable code which modifies the frame.
1035
1036 2003-07-28 Andrew Cagney <cagney@redhat.com>
1037
1038 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1039 to level 2.
1040 (annotate_breakpoints_table, annotate_record): Ditto.
1041 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1042 (annotate_field_name_end, annotate_field_value): Ditto.
1043 (annotate_field_end, annotate_frame_source_begin): Ditto.
1044 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1045 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1046 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1047 (annotate_frame_address_end, annotate_frame_address): Ditto.
1048 (annotate_frame_args, annotate_frame_end): Ditto.
1049 (annotate_frame_where, annotate_arg_begin): Ditto.
1050 (annotate_arg_name_end, annotate_arg_value): Ditto.
1051 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1052 (annotate_function_call, annotate_signal_name): Ditto.
1053 (annotate_signal_string, annotate_signal_name_end): Ditto.
1054 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1055 (annotate_value_begin, annotate_value_history_value): Ditto.
1056 (annotate_value_history_end, annotate_value_end): Ditto.
1057 (annotate_display_begin, annotate_display_number_end): Ditto.
1058 (annotate_display_format, annotate_display_expression): Ditto.
1059 (annotate_display_expression_end, annotate_display_value): Ditto.
1060 (annotate_display_end, annotate_array_section_begin): Ditto.
1061 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1062 (annotate_elt, annotate_array_section_end): Ditto.
1063
1064 2003-07-28 Andrew Cagney <cagney@redhat.com>
1065
1066 * regcache.c (struct regcache_descr): Update comments on
1067 nr_raw_registers.
1068 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1069 sizeof_raw_register_valid_p.
1070 (init_regcache_descr): Set nr_raw_registers and
1071 sizeof_raw_register_valid_p before calling
1072 init_legacy_regcache_descr.
1073
1074 2003-07-28 Andrew Cagney <cagney@redhat.com>
1075
1076 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1077 MOD NUM_REGS.
1078
1079 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1080
1081 * thread.c (info_threads_command): Use get_selected_frame ().
1082 Check that there is at least one non-sentinel frame.
1083
1084 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1085
1086 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1087 (m68hc11_pop_frame): Remove.
1088 (m68hc11_frame_saved_pc): Remove.
1089 (m68hc11_frame_chain): Remove.
1090 (m68hc11_frame_init_saved_regs): Remove.
1091 (m68hc11_init_extra_frame_info): Remove.
1092 (m68hc11_store_struct_return): Remove.
1093 (m68hc11_saved_pc_after_call): Remove.
1094
1095 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1096
1097 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1098 frame unwind information.
1099 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1100 and adapted for frame unwinding.
1101 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1102 (m68hc11_unwind_pc): New function.
1103 (m68hc11_frame_unwind_cache): New function to analyze frames.
1104 (m68hc11_frame_this_id): New function to create new frame struct.
1105 (m68hc11_frame_prev_register): New function to unwind a register from
1106 the frame.
1107 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1108 (m68hc11_frame_p): New function for the above.
1109 (m68hc11_frame_base_address): New function to return fp of frame.
1110 (m68hc11_frame_args_address): Update for frame.
1111 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1112 (m68hc11_unwind_sp): New function.
1113 (m68hc11_unwind_dummy_id): New function.
1114 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1115 calls.
1116
1117 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1118
1119 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1120 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1121 when we are beyond the current pc.
1122
1123 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1124
1125 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1126 from m68hc11_push_arguments.
1127 (m68hc11_push_arguments): Remove.
1128 (m68hc11_push_return_address): Remove.
1129 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1130 handlers; remove deprecated_extra_stack_alignment_needed.
1131
1132 2003-07-27 Andrew Cagney <cagney@redhat.com>
1133
1134 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1135 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1136 REAL_PC and not the pointer.
1137 * hppa-hpux-tdep.c: Include frame.h
1138
1139 2003-07-27 Andrew Cagney <cagney@redhat.com>
1140
1141 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1142 GDB_MULTI_ACH_PARTIAL.
1143
1144 2003-07-27 Andrew Cagney <cagney@redhat.com>
1145
1146 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1147 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1148 operator at start and not end of line.
1149 (decode_prologue): Ditto.
1150 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1151 frame_unwind_register_unsigned instead of
1152 frame_unwind_unsigned_register.
1153 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1154 read_register.
1155 (m32r_push_dummy_call): Use register_size instead of
1156 REGISTER_RAW_SIZE.
1157 (m32r_frame_sniffer): Replace m32r_frame_p.
1158 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1159 * m32r-rom.c (report_transfer_performance): Delete extern
1160 declaration.
1161 (m32r_load, m32r_upload_command): Use print_transfer_performance
1162 instead of report_transfer_performance.
1163 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1164 / add_show_from_set.
1165
1166 2003-07-26 Andrew Cagney <cagney@redhat.com>
1167
1168 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1169 store_return_value and extract_struct_value_address.
1170
1171 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1172
1173 PR c++/1267
1174 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1175 NULL, default to the section containing PC.
1176
1177 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1178
1179 * NEWS: Mention "regs" deprecated for m68hc11 too.
1180
1181 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1182 (m68hc11_print_register): New function to print out one register.
1183 (m68hc11_print_registers_info): New function to print registers.
1184 (show_regs): Deprecate and use the above.
1185 (m68hc11_gdbarch_init): Install the print_registers_info.
1186
1187 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1188
1189 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1190 that we have a SIGTRAP before returning non-zero.
1191
1192 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1193 Elena Zannoni <ezannoni@redhat.com>
1194
1195 * linespec.c (decode_line_2): Avoid crash if
1196 find_function_start_sal() returns empty record.
1197
1198 2003-07-23 Andreas Schwab <schwab@suse.de>
1199
1200 * ia64-tdep.c (ia64_print_insn): New function.
1201 (ia64_gdbarch_init): Set print_insn to it.
1202 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1203 deprecated_tm_print_insn_info.
1204
1205 2003-07-22 Michael Snyder <msnyder@redhat.com>
1206
1207 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1208 handle 8-bit returns (long long).
1209 (h8300h_extract_return_value): Ditto.
1210 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1211
1212 2003-07-22 Andrew Cagney <cagney@redhat.com>
1213
1214 * gdbarch.c Include "gdb_obstack.h".
1215 (struct gdbarch): Add an "obstack".
1216 (alloc_gdbarch_data): Allocate the gdbarch data using
1217 GDBARCH_OBSTACK_CALLOC.
1218 (free_gdbarch_data): Delete function.
1219 (gdbarch_obstack_zalloc): New function.
1220 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1221 Assert that the architecture is not initialized.
1222 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1223 vector from the obstack.
1224 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1225 architecture obstack.
1226 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1227 (set_gdbarch_data): Assert that the data is not initialized.
1228 (struct gdbarch_data): Delete member "free".
1229 (register_gdbarch_data): Do not initialize "free".
1230 * gdbarch.h, gdbarch.c: Re-generate.
1231
1232 2003-07-22 Andrew Cagney <cagney@redhat.com>
1233
1234 * configure.in (build_warnings): Add -Wformat-nonliteral.
1235 * configure: Re-generate.
1236
1237 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1238
1239 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1240
1241 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1242
1243 * findvar.c (read_var_value): Remove case for thread local storage
1244 variables. It is now entirely handled by the dwarf2 location
1245 expression code.
1246 * printcmd.c (address_info): Ditto.
1247 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1248 enumeration value.
1249 (struct symbol): Remove objfile field, which was used by
1250 LOC_THREAD_LOCAL_STATIC only.
1251 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1252 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1253 usage of objfile pointer.
1254 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1255 thread local variables.
1256 Add include of objfiles.h.
1257 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1258 storage variables.
1259 * Makefile.in (dwarf2loc.o): Update dependencies.
1260
1261 2003-07-22 Andrew Cagney <cagney@redhat.com>
1262
1263 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1264 get_frame_base.
1265 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1266 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1267 (struct value): Add opaque declaration.
1268 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1269
1270 2003-07-21 Andrew Cagney <cagney@redhat.com>
1271
1272 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1273 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1274
1275 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1276
1277 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1278 regcache_cooked_read_unsigned instead of read_register.
1279 (m68hc11_saved_pc_after_call): Likewise.
1280 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1281 instead of write_register.
1282 (m68hc11_register_type): New function.
1283 (m68hc11_register_virtual_type): Remove.
1284 (m68hc11_store_return_value): Convert to use the regcache.
1285 (m68hc11_extract_struct_value_address): Likewise.
1286 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1287 m68hc11_register_type; undeprecate store_return_value and
1288 extract_struct_value_address.
1289
1290 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1291
1292 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1293 and translate to use regcache.
1294 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1295
1296 2003-07-18 Andrew Cagney <cagney@redhat.com>
1297
1298 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1299 * gdbarch.h, gdbarch.c: Re-generate.
1300 * i386-tdep.c (i386_gdbarch_init): Do not set
1301 DWARF2_BUILD_FRAME_INFO.
1302 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1303 unconditionally.
1304 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1305 DWARF2_BUILD_FRAME_INFO.
1306
1307 2003-07-18 Andrew Cagney <cagney@redhat.com>
1308
1309 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1310 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1311
1312 2003-07-18 Andrew Cagney <cagney@redhat.com>
1313
1314 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1315 frame_unwind_address_in_block, instead of frame_pc_unwind.
1316 (dwarf2_frame_cache): Ditto.
1317
1318 2003-07-18 Andrew Cagney <cagney@redhat.com>
1319
1320 * user-regs.h (struct gdbarch): Declare opaque.
1321 * ui-out.h (struct ui_file): Declare opaque.
1322 * dwarf2-frame.h (struct frame_info): Declare opaque.
1323
1324 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1325
1326 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1327 #include "...".
1328 (procfs_meminfo): Change strerror to safe_strerror.
1329 (procfs_can_run): Remove K&R badness.
1330
1331 2003-07-17 Michael Snyder <msnyder@redhat.com>
1332
1333 * remote-sim.c: Comment typo fix.
1334
1335 2003-07-17 Andrew Cagney <cagney@redhat.com>
1336
1337 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1338 configure.
1339 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1340 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1341 GDB_MULTI_ARCH_PARTIAL.
1342
1343 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1344
1345 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1346 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1347 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1348
1349 2003-07-16 Theodore A. Roth <troth@openavr.org>
1350
1351 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1352 found.
1353 (avr_frame_unwind_cache): Don't unwind FP for main.
1354 Update a comment.
1355 Save the computed prev_sp.
1356 (avr_saved_regs_unwinder): Remove function.
1357 (avr_frame_prev_register): Use PC unwind logic from
1358 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1359
1360 2003-07-16 Andrew Cagney <cagney@redhat.com>
1361
1362 * frame-base.h (frame_base_p_ftype): Delete definition.
1363 (frame_base_append_predicate): Delete declaration.
1364 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1365 (frame_unwind_append_predicate): Delete declaration.
1366 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1367 (append_predicate): Delete parameter "p".
1368 (frame_unwind_append_predicate): Delete function.
1369 (frame_unwind_append_sniffer): Update call to append_predicate.
1370 (frame_unwind_free): Delete function.
1371 (_initialize_frame_unwind): Pass NULL as "free" to
1372 register_gdbarch_data.
1373 (frame_unwind_init): Append the dummy_frame_sniffer.
1374 (frame_unwind_find_by_frame): Simplify.
1375 * frame-base.c (struct frame_base_table): Delete field "p".
1376 (append_predicate): Delete parameter "p".
1377 (frame_base_append_predicate): Delete function.
1378 (frame_base_append_sniffer): Update call to append_predicate.
1379 (frame_base_free): Delete function.
1380 (frame_base_find_by_frame): Simplify.
1381 (_initialize_frame_base): Pass NULL as "free" to
1382 register_gdbarch_data.
1383 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1384 (x86_64_sigtramp_frame_sniffer): Replace
1385 "x86_64_sigtramp_frame_p".
1386 (x86_64_init_abi): Set the frame unwind sniffers.
1387 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1388 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1389 (m68k_gdbarch_init): Set the frame unwind sniffers.
1390 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1391 "i386_sigtramp_frame_p".
1392 (i386_frame_sniffer): Replace "i386_frame_p".
1393 (i386_gdbarch_init): Set the frame unwind sniffers.
1394 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1395 (avr_gdbarch_init): Set the frame unwind sniffers.
1396 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1397 "alpha_sigtramp_frame_p"
1398 (alpha_heuristic_frame_sniffer): Replace
1399 "alpha_heuristic_frame_p".
1400 (alpha_gdbarch_init): Set the frame unwind sniffers.
1401 (alpha_dwarf2_init_abi): Ditto.
1402 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1403 "alpha_debug_frame_p".
1404 (alpha_mdebug_frame_base_sniffer): Replace
1405 "alpha_mdebug_frame_base_p".
1406 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1407 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1408 (d10v_gdbarch_init): Set the frame unwind sniffer.
1409 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1410 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1411 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1412 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1413 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1414 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1415
1416 2003-07-16 Michael Snyder <msnyder@redhat.com>
1417
1418 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1419 should go thru sh_dsp_register_sim_regno, else the dsp regs
1420 will not get the right values.
1421
1422 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1423
1424 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1425 deprecated_store_floating by call to store_typed_floating.
1426 (sh_sh4_register_convert_to_raw): Substitute call to
1427 deprecated_extract_floating by call to extract_typed_floating.
1428
1429 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1430
1431 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1432
1433 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1434
1435 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1436 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1437 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1438 as possible.
1439 (do_pseudo_register): Remove.
1440 (sh_push_dummy_code): New function.
1441 (sh64_store_struct_return): Rename from sh_store_struct_return.
1442 Only called for sh64 now.
1443 (sh_extract_struct_value_address): Regcache'ify.
1444 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1445 and accomodate new tasks.
1446 (sh64_push_return_address): Rename from sh_push_return_address.
1447 Only called for sh64 now.
1448 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1449 Regcache'ify.
1450 (sh3e_sh4_extract_return_value): Regcache'ify.
1451 (sh_default_store_return_value): Ditto.
1452 (sh3e_sh4_store_return_value): Ditto.
1453 (sh_default_register_byte): Remove.
1454 (sh_sh4_register_byte): Remove.
1455 (sh_default_register_raw_size): Remove.
1456 (sh_sh4_register_raw_size): Remove.
1457 (sh_register_virtual_size): Remove.
1458 (sh_sh3e_register_virtual_type): Remove.
1459 (sh_sh3e_register_type): New function.
1460 (sh_sh4_register_virtual_type): Remove.
1461 (sh_sh4_register_type): New function.
1462 (sh_default_register_virtual_type): Remove.
1463 (sh_default_register_type): New function.
1464 (do_fv_register_info): Add parameters to accomodate call from
1465 sh_print_registers_info.
1466 (do_dr_register_info): Ditto.
1467 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1468 Add parameters to accomodate call from sh_print_registers_info.
1469 (sh_do_fp_register): Ditto.
1470 (sh64_do_pseudo_register): Call do_dr_register_info,
1471 do_fv_register_info and sh_do_fp_register with default parameters.
1472 (sh_do_register): Add parameters to accomodate call from
1473 sh_print_registers_info.
1474 (sh_print_register): Ditto.
1475 (sh_print_registers_info): Rename from sh_do_registers_info.
1476 Add parameters to be used as gdbarch_print_registers_info
1477 implementation. Accomodate removed do_pseudo_register function
1478 pointer.
1479 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1480 function pointer. Call sh_print_register with default parameters.
1481 (sh64_do_registers_info): Call sh_print_registers_info instead of
1482 sh_do_registers_info.
1483 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1484 detection of deprecated vs. non-deprecated functionality.
1485 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1486 function pointer assignments by direct function calls.
1487
1488 2003-07-15 Andrew Cagney <cagney@redhat.com>
1489
1490 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1491 (frame_register_unwind, create_new_frame): Ditto.
1492 (legacy_get_prev_frame, get_frame_type): Ditto.
1493 (get_frame_base_address): Use frame_base_find_by_frame.
1494 (get_frame_locals_address): Use frame_base_find_by_frame.
1495 (get_frame_args_address): Use frame_base_find_by_frame.
1496 * frame-base.h (frame_base_sniffer_ftype): Declare.
1497 (frame_base_append_sniffer): Declare.
1498 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1499 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1500 (frame_base_append_sniffer): New function.
1501 (frame_base_append_predicate): Add a NULL sniffer.
1502 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1503 (struct frame_base_table): Add "sniffer".
1504 (frame_base_free): Free the "sniffer" table.
1505 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1506 (frame_unwind_append_sniffer): Declare.
1507 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1508 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1509 (struct frame_unwind_table): Add "sniffer", delete "middle".
1510 (append_predicate): Add "sniffer" parameter, append the sniffer.
1511 (frame_unwind_init): Update append_predicate call.
1512 (frame_unwind_append_sniffer): New function.
1513 (frame_unwind_append_predicate): Update append_predicate call.
1514 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1515
1516 2003-07-15 Andrew Cagney <cagney@redhat.com>
1517
1518 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1519 before code inhibiting repeated unwind attempts. Add to
1520 commentary on that test's problems.
1521 * blockframe.c (inside_main_func): Look for "main" in the minimal
1522 symbol table.
1523 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1524 identical.
1525
1526 2003-07-15 Andrew Cagney <cagney@redhat.com>
1527
1528 * complaints.c (struct explanation): Define.
1529 (struct complaints): Change type of "explanation" to "struct
1530 explanation".
1531 (symfile_explanations): Convert to a "struct explanation" table.
1532 (vcomplaint): Update.
1533
1534 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1535
1536 * x86-64-linux-nat.c (regmap): Removed.
1537 (supply_gregset, fill_gregset): Call
1538 x86_64_linux_(fill,supply)_gregset functions.
1539 * x86-64-linux-tdep.c (USER_*): New defines.
1540 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1541 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1542 New functions.
1543 (fetch_core_registers): Ditto.
1544 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1545 * x86-64-linux-tdep.h: New file.
1546 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1547 and core-regset.o.
1548 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1549
1550 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1551
1552 * x86-64-tdep.c (x86_64_store_return_value): Use
1553 regcache_cooked_write_part instead of regcache_cooked_write.
1554
1555 * configure.host: Add x86_64-*-freebsd*.
1556 * configure.tgt: Add x86_64-*-freebsd*.
1557 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1558 * amd64fbsd-nat.c: New file.
1559 * amd64fbsd-tdep.c: New file.
1560 * config/i386/nm-fbsd64.h: New file.
1561 * config/i386/fbsd64.mh: New file.
1562 * config/i386/fbsd64.mt: New file.
1563
1564 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1565
1566 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1567 `sc_regs_offset' and `sc_fpregs_offset'.
1568 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1569 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1570 (alpha_sigtramp_register_address): Rewrite to use new members of
1571 `struct gdbarch_tdep'.
1572 (alpha_gdbarch_init): Initialize new members of struct
1573 gdbarch_tdep'.
1574 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1575 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1576 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1577 (alphafbsd_pc_in_sigtramp): Implement.
1578 (alphafbsd_sigtramp_offset): New function.
1579 (alphafbsd_sigcontext_addr): New function.
1580 (alphafbsd_init_abi): Initialize signal trampoline related members
1581 of `struct gdbarch_tdep'.
1582 (_initialize_alphafbsd_tdep): Add prototype.
1583
1584 2003-07-11 Theodore A. Roth <troth@openavr.org>
1585
1586 * Makefile.in (install-only): Quote sed expression when generating
1587 transformed_name.
1588
1589 2003-07-11 Richard Henderson <rth@redhat.com>
1590
1591 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1592 * dwarf2-frame.c: Include complaints.h.
1593 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1594 variable initialization; return NULL on error.
1595 (decode_frame_entry): New.
1596
1597 2003-07-11 Andrew Cagney <cagney@redhat.com>
1598
1599 * frame.h (frame_address_in_block): Delete declaration.
1600 * blockframe.c (frame_address_in_block): Delete function.
1601 (get_frame_block): Use get_frame_address_in_block.
1602 (block_innermost_frame): Ditto.
1603 * stack.c (print_frame, backtrace_command_1): Ditto.
1604
1605 * frame.h (get_frame_address_in_block): Declare.
1606 (frame_unwind_address_in_block): Declare.
1607 * frame.c (frame_unwind_address_in_block): New function.
1608 (get_frame_address_in_block): New function.
1609
1610 2003-07-10 Andrew Cagney <cagney@redhat.com>
1611
1612 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1613 pre-default. Note: re-generate has no effect.
1614
1615 2003-07-10 Andrew Cagney <cagney@redhat.com>
1616
1617 * gdbarch.sh: When a variable, but not a function, compare against
1618 0. Fix problem in previous patch.
1619 * gdbarch.c: Re-generate.
1620
1621 2003-07-10 Andrew Cagney <cagney@redhat.com>
1622
1623 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1624 functions against NULL, not 0.
1625 * gdbarch.c: Re-generate.
1626
1627 2003-07-10 Fred Fish <fnf@ninemoons.com>
1628
1629 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1630 null string instead of a null pointer.
1631 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1632
1633 2003-07-09 Michael Snyder <msnyder@redhat.com>
1634
1635 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1636
1637 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1638
1639 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1640 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1641 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1642 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1643 * x86-64-tdep.c: ... from here.
1644
1645 2003-07-09 Andreas Schwab <schwab@suse.de>
1646
1647 * m68k-tdep.h (enum struct_return): Define.
1648 (struct gdbarch_tdep): Add struct_return.
1649 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1650 bytes are padded to the right, not to the left. Pass struct value
1651 address in register %a1, not on stack.
1652 (m68k_use_struct_convention): New function.
1653 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1654 struct_return in tdep to pcc_struct_return.
1655 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1656 reg_struct_return.
1657
1658 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1659
1660 * somread.c (som_symfile_offsets): Fix compilation error.
1661
1662 2003-07-09 Andrew Cagney <cagney@redhat.com>
1663
1664 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1665 Add comments about the checks.
1666
1667 2003-07-08 Andrew Cagney <cagney@redhat.com>
1668
1669 * Makefile.in: Make dependency section headers consistent.
1670 (config_h): Move to $BUILD headers section.
1671 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1672 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1673 (ada-exp.tab.c): Move to YACC/LEX section.
1674 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1675 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1676
1677 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1678
1679 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1680 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1681 of strerror with safe_strerror, use ISO C function definitions,
1682 and replace instances of sprintf with snprintf.
1683
1684 2003-07-07 Andrew Cagney <cagney@redhat.com>
1685
1686 * frame.c (get_prev_frame): Enable check for identical frames.
1687 Update comments. Update error messages.
1688
1689 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1690
1691 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1692
1693 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1694
1695 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1696 sort_symtab_syms, no longer necessary.
1697
1698 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1699
1700 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1701
1702 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1703
1704 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1705 (mips_register_byte): Likewise.
1706
1707 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1708
1709 * Makefile.in (sparc_tdep_h): New.
1710 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1711 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1712 * sparc-linux-nat.c: Include "sparc-tdep.h".
1713 * sparc-nat.c: Likewise.
1714 * sparc-tdep.c: Likewise.
1715 * sparc64nbsd-nat.c: Likewise.
1716 * sparcnbsd-nat.c: Likewise.
1717 * sparcnbsd-tdep.c: Likewise.
1718 * sparc-tdep.h: New file.
1719 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1720 and sparc_npc_regnum.
1721
1722 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1723
1724 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1725 (mips_linux_cannot_store_register): List supported instead of
1726 unsupported registers.
1727
1728 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1729
1730 * disasm.c (dump_insns): Separate instructions from addresses.
1731
1732 2003-07-07 Andreas Schwab <schwab@suse.de>
1733
1734 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1735 dependencies.
1736 * m68k-tdep.c (NUM_FREGS): Delete.
1737 (SIG_PC_FP_OFFSET): Delete.
1738 (TARGET_M68K): Delete.
1739 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1740 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1741 P_MOVEL_SP, P_MOVEML_SP): Define.
1742 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1743 P_TRAP): Delete.
1744 (m68k_register_raw_size): Delete.
1745 (m68k_register_virtual_size): Delete.
1746 (m68k_register_type): Renamed from m68k_register_virtual_type and
1747 add gdbarch argument.
1748 (m68k_store_struct_return): Delete.
1749 (m68k_deprecated_extract_return_value): Delete.
1750 (m68k_deprecated_extract_struct_value_address): Delete.
1751 (m68k_frame_chain): Delete.
1752 (m68k_frame_saved_pc): Delete.
1753 (m68k_fix_call_dummy): Delete.
1754 (m68k_push_dummy_frame): Delete.
1755 (m68k_pop_frame): Delete.
1756 (m68k_extract_return_value): New function.
1757 (m68k_store_return_value): Rewrite using regcache.
1758 (m68k_extract_struct_value_address): Rewrite using regcache.
1759 (m68k_push_dummy_call): New function.
1760 (struct m68k_frame_cache): Define.
1761 (m68k_alloc_frame_cache): New function.
1762 (m68k_analyze_frame_setup): New function.
1763 (m68k_analyze_register_saves): New function.
1764 (m68k_analyze_prologue): New function.
1765 (m68k_skip_prologue): Rewrite using above functions.
1766 (m68k_unwind_pc): New function.
1767 (m68k_frame_cache): New function.
1768 (m68k_frame_this_id): New function.
1769 (m68k_frame_prev_register): New function.
1770 (m68k_frame_unwind): New variable.
1771 (m68k_frame_p): New function.
1772 (m68k_sigtramp_frame_cache): New function.
1773 (m68k_sigtramp_frame_this_id): New function.
1774 (m68k_sigtramp_frame_prev_register): New function.
1775 (m68k_sigtramp_frame_unwind): New variable.
1776 (m68k_sigtramp_frame_p): New function.
1777 (m68k_frame_base_address): New function.
1778 (m68k_frame_base): New function.
1779 (m68k_unwind_dummy_id): New function.
1780 (fill_gregset): Use regcache_collect.
1781 (fill_fpregset): Likewise.
1782 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1783 defined.
1784 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1785 deprecated_init_frame_pc, deprecated_store_struct_return,
1786 deprecated_extract_return_value, deprecated_store_return_value,
1787 deprecated_frame_chain, deprecated_frame_saved_pc,
1788 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1789 deprecated_register_virtual_size,
1790 deprecated_max_register_raw_size,
1791 deprecated_max_register_virtual_size,
1792 deprecated_register_virtual_type, deprecated_register_size,
1793 deprecated_register_byte, deprecated_register_bytes,
1794 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1795 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1796 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1797 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1798 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1799 deprecated_push_dummy_frame, deprecated_pop_frame,
1800 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1801 only if SYSCALL_TRAP is defined. Set extract_return_value,
1802 store_return_value, extract_struct_value_address, register_type,
1803 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1804 predicates.
1805 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1806 M68K_MAX_REGISTER_SIZE): Define.
1807 (struct m68k_sigtramp_info): Define.
1808 (struct gdbarch_tdep): Add get_sigtramp_info.
1809 * m68klinux-nat.c (fetch_register): Use register_size instead of
1810 REGISTER_RAW_SIZE. Don't put assignment in if.
1811 (store_register): Likewise.
1812 (fetch_inferior_registers): Likewise.
1813 (store_inferior_registers): Likewise.
1814 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1815 (m68k_linux_frame_saved_pc): Delete.
1816 (m68k_linux_sigcontext_reg_offset,
1817 m68k_linux_ucontext_reg_offset): Define.
1818 (m68k_linux_get_sigtramp_info): New function.
1819 (m68k_linux_extract_return_value): Rewrite using regcache.
1820 (m68k_linux_store_return_value): Likewise.
1821 (m68k_linux_extract_struct_value_address): Likewise.
1822 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1823 Don't set deprecated_frame_saved_pc,
1824 deprecated_extract_return_value, deprecated_store_return_value,
1825 deprecated_extract_struct_value_address. Set
1826 extract_return_value, store_return_value,
1827 extract_struct_value_address.
1828
1829 2003-07-07 Andrew Cagney <cagney@redhat.com>
1830
1831 * expprint.c: Include "user-regs.h" instead of "frame.h".
1832 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1833 frame_map_regnum_to_name.
1834 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1835 (frame_map_name_to_regnum): Simplify, call
1836 user_reg_map_name_to_regnum.
1837 (frame_map_regnum_to_name): Simplify, call
1838 user_reg_map_regnum_to_name.
1839 (frame_register_unwind): Update.
1840 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1841 (_initialize_frame_reg): Call user_reg_add_builtin.
1842 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1843 (value_of_register): Use value_of_user_reg.
1844 * eval.c (evaluate_subexp_standard): Update.
1845 * parse.c (write_dollar_variable): Update.
1846 * d10v-tdep.c (d10v_print_registers_info): Update.
1847 * infcmd.c (registers_info): Update.
1848 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1849 (builtin_regs_h): Delete macro.
1850 (user_regs_h): Define.
1851 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1852 (builtin-regs.o): Delete target.
1853 (user-regs.o): Specify dependencies.
1854 (expprint.o): Update dependencies.
1855 (findvar.o): Update dependencies.
1856 (frame.o): Update dependencies.
1857 (std-regs.o): Update dependencies.
1858
1859 2003-07-06 Christopher Faylor <cgf@redhat.com>
1860
1861 * win32-nat.c (solib_symbols_add): Use one variable for all section
1862 address stuff. Pass variable rather than address of variable to
1863 safe_symbol_file_add.
1864
1865 2003-07-06 Andreas Schwab <schwab@suse.de>
1866
1867 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1868
1869 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1870
1871 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1872
1873 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1874
1875 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1876
1877 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1878
1879 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1880 * config/i386/nto.mh: New file.
1881 * config/i386/nm-nto.h: New file.
1882 * configure.host: Add i[3456]86-*-nto*.
1883
1884 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1885
1886 * remote-vx.c (vx_add_symbols): Fix compilation error.
1887
1888 2003-07-03 Andrew Cagney <cagney@redhat.com>
1889
1890 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1891 * gdbarch.h, gdbarch.c: Re-generate.
1892 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1893 (legacy_register_name): Declare.
1894 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1895 (REGISTER_NAME): Define.
1896 * sparc-tdep.c (legacy_register_name): New function.
1897 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1898 (REGISTER_NAME): Define.
1899 (hppa64_register_name): Declare.
1900 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1901 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1902 (hppa64_register_name): New function.
1903 (hppa_register_name): New function.
1904 * arch-utils.c (legacy_register_name): Delete.
1905 * arch-utils.h (legacy_register_name): Delete.
1906
1907 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1908
1909 * cli/cli-interp.c (cli_interpreter_resume): Update the
1910 cli_uiout's stream to gdb_stdout.
1911
1912 2003-07-03 Andrew Cagney <cagney@redhat.com>
1913
1914 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1915 predicate.
1916 * gdbarch.h, gdbarch.c: Re-generate.
1917 * regcache.c (init_regcache_descr): Use legacy code when either
1918 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1919
1920 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1921
1922 * NEWS: Move "set logging" entry into GDB 6.0 section.
1923
1924 2003-07-02 Jim Blandy <jimb@redhat.com>
1925
1926 * s390-tdep.c (struct frame_extra_info): new member:
1927 'stack_bought_valid'.
1928 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1929 initialize fextra_info->stack_bought.
1930 (s390_frameless_function_invocation): Don't trust the value of
1931 fextra_info_ptr->stack_bought unless
1932 fextra_info->stack_bought_valid is set.
1933
1934 New S390 prologue analyzer.
1935 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1936 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1937 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1938 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1939 compute_x_addr, s390_on_stack, s390_store,
1940 s390_get_signal_frame_info): New functions.
1941 (S390_NUM_SPILL_SLOTS): New macro.
1942 (s390_get_frame_info): Rewritten.
1943 (is_arg_reg): Deleted.
1944
1945 Break out the decoding of S/390 instructions into separate
1946 functions, to make it more legible, and easier to check
1947 against the spec.
1948 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1949 is_rx, is_rxe): New functions.
1950 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1951 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1952 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1953 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1954 enums for opcode values. (Is this an improvement?)
1955
1956 2003-07-02 Andrew Cagney <cagney@redhat.com>
1957
1958 * i386-tdep.c: Revert change committed as part of trad-frame code
1959 below.
1960
1961 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1962
1963 * breakpoint.c (insert_catchpoint): Make static.
1964
1965 2003-07-02 Andreas Schwab <schwab@suse.de>
1966
1967 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1968 former ia64_push_arguments and ia64_push_return_address, and use
1969 regcache functions instead of read/write_register.
1970 (ia64_gdbarch_init): Set push_dummy_call instead of
1971 deprecated_push_arguments and deprecated_push_return_address.
1972
1973 2003-07-01 Andreas Jaeger <aj@suse.de>
1974
1975 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1976 before the call.
1977 Set %rax only to number of SSE registers used.
1978
1979 2003-07-01 Andrew Cagney <cagney@redhat.com>
1980
1981 * trad-frame.h: Update comments, a -1 .addr is reserved.
1982 (trad_frame_value_p, trad_frame_addr_p): Declare.
1983 (trad_frame_reg_p): Declare.
1984 (trad_frame_set_value): Rename trad_frame_register_value.
1985 (trad_frame_set_unknown): Declare.
1986 * trad-frame.c (trad_frame_realreg_p): New function.
1987 (trad_frame_addr_p, trad_frame_value_p): New function.
1988 (trad_frame_set_unknown): New function.
1989 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1990 (trad_frame_prev_register): Use trad_frame_realreg_p,
1991 trad_frame_addr_p and trad_frame_value_p.
1992 (trad_frame_set_value): Rename trad_frame_register_value.
1993 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1994 and trad_frame_set_value.
1995
1996 2003-06-30 Jim Blandy <jimb@redhat.com>
1997
1998 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1999 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2000 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2001 for 16 registers, and then 32 more bytes.
2002 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2003 New macros.
2004 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2005 Move up in the file, since it's now used by is_simple_arg.
2006 (is_simple_arg): Don't assume registers are four bytes long.
2007 Exclude all double arguments. Extended floats are not simple
2008 args.
2009 (is_power_of_two): New function.
2010 (pass_by_copy_ref): Call is_power_of_two, and check that the
2011 length fits in a register, rather than listing all the acceptable
2012 sizes. Extended floats are not passed by reference.
2013 (s390_push_arguments): Don't assume registers are four bytes long.
2014 Reserve an argument register to point to the buffer for structures
2015 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2016 S390_STACK_FRAME_OVERHEAD.
2017
2018 2003-06-30 Andreas Schwab <schwab@suse.de>
2019
2020 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2021 format error message.
2022
2023 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2024
2025 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2026
2027 2003-06-30 David Carlton <carlton@kealia.com>
2028
2029 Band-aid for PR c++/1245.
2030 * Makefile.in (cp-support.o): Depend on complaints_h.
2031 * cp-support.c: Include complaints.h. Add declaration for
2032 find_last_component.
2033 (cp_find_first_component): Separate code into
2034 cp_find_first_component_aux.
2035 (cp_find_first_component_aux): Call demangled_name_complaint.
2036 (demangled_name_complaint): New.
2037
2038 2003-06-30 Andrew Cagney <cagney@redhat.com>
2039
2040 * remote.c (remote_write_bytes): Explicitly compute and then use
2041 the payload size. Update comments to reflect. Fixes problem of
2042 GDB not sending small packets as found by Fred Fish.
2043
2044 2003-06-30 Andrew Cagney <cagney@redhat.com>
2045
2046 * remote.c (remote_async_wait): Fix -Wformat problem.
2047
2048 2003-06-29 Andrew Cagney <cagney@redhat.com>
2049
2050 * remote.c (remote_wait): Call error, and not warning, when the
2051 packet is corrupt.
2052 (remote_async_wait): Ditto.
2053
2054 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2055
2056 * sparc-tdep.c (sparc_y_regnum): Make external again.
2057
2058 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2059
2060 * cli/cli-logging.c (pop_output_files): Add void to function
2061 definition.
2062
2063 2003-06-29 Andrew Cagney <cagney@redhat.com>
2064
2065 * frame.c (frame_register_unwind): Use unsigned char when dumping
2066 the buffer contents.
2067
2068 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2069
2070 * cli/cli-logging.c: New file.
2071 * cli-out.c (struct ui_out_data): Add original_stream.
2072 (cli_redirect): New function.
2073 (cli_ui_out_impl): Add cli_redirect.
2074 (cli_out_new): Initialize original_stream.
2075 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2076 (uo_redirect, ui_out_redirect): New.
2077 * ui-out.h (struct ui_out_impl): Add redirect member.
2078 (redirect_ftype): New.
2079 (ui_out_redirect): Add prototype.
2080 * Makefile.in: Add rules for cli-logging.c.
2081 * NEWS: Mention "set logging".
2082
2083 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2084
2085 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2086
2087 2003-06-27 Andrew Cagney <cagney@redhat.com>
2088
2089 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2090 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2091 * avr-tdep.c (avr_call_dummy_address): Delete function.
2092 (avr_gdbarch_init): Do not set call_dummy_address.
2093
2094 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2095
2096 * symfile.c (syms_from_objfile): Move variables to inner block.
2097 Move the checks for the non-mainline case a bit earlier to avoid
2098 doing some useless computations.
2099
2100 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2101
2102 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2103
2104 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2105
2106 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2107 sections.
2108
2109 2003-06-26 Michael Chastain <mec@shout.net>
2110
2111 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2112 gdb/testsuite/gdb.c++/pr-1210.exp.
2113
2114 2003-06-26 Andrew Cagney <cagney@redhat.com>
2115
2116 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2117 altivec_expression.h and altivec_registers.h.
2118
2119 2003-06-26 Andrew Cagney <cagney@redhat.com>
2120
2121 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2122 info->mach when MIPS16. Patch suggested by Fred Fish.
2123
2124 2003-06-26 Andrew Cagney <cagney@redhat.com>
2125
2126 * utils.c (internal_vproblem): Print the problem to a reason
2127 buffer and then pass to query. Make the msg variable more local.
2128
2129 2003-06-26 Andrew Cagney <cagney@redhat.com>
2130
2131 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2132 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2133 * gdbarch.h, gdbarch.c: Re-generate.
2134 * frame-base.c (default_frame_args_address): Update. Use
2135 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2136 not available.
2137 (default_frame_locals_address): Ditto for
2138 DEPRECATED_FRAME_LOCALS_ADDRESS.
2139 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2140 (vax_frame_num_args): Update.
2141 (vax_gdbarch_init): Update.
2142 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2143 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2144 * mcore-tdep.c (mcore_gdbarch_init): Update.
2145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2146 * ia64-tdep.c (ia64_gdbarch_init): Update.
2147 * symtab.h (address_class): Update comments.
2148 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2149 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2150 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2151 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2152 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2153 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2154 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2155 * alpha-mdebug-tdep.c: Update.
2156 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2157
2158 2003-06-26 Andreas Jaeger <aj@suse.de>
2159
2160 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2161 of SSE registers so that varargs functions work. Rework handling
2162 of passing arguments on the stack.
2163 (x86_64_store_return_value): Return double and float values in SSE
2164 register.
2165
2166 2003-06-24 Michael Chastain <mec@shout.net>
2167
2168 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2169 the "constructor breakpoints ignored" bug.
2170
2171 2003-06-25 David Carlton <carlton@kealia.com>
2172
2173 * MAINTAINERS: Update e-mail address.
2174
2175 2003-06-24 Jim Blandy <jimb@redhat.com>
2176
2177 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2178
2179 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2180 function.
2181 (ppc_linux_init_abi): Register it as the
2182 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2183
2184 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2185 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2186 method.
2187
2188 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2189 (ppc64_standard_linkage_target): Use it.
2190
2191 2003-06-23 Andrew Cagney <cagney@redhat.com>
2192
2193 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2194 for 0 "int0" and 4 "int32" sized registers.
2195 * gdbtypes.c (builtin_type_int0): Define.
2196 (build_gdbtypes): Initialize builtin_type_int0.
2197 * gdbtypes.h (builtin_type_int0): Declare.
2198
2199 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2200
2201 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2202 as characters are unsigned.
2203
2204 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2205
2206 PR gdb/1179
2207 * dwarfread.c (struct_type): Skip static fields without crashing.
2208
2209 2003-06-22 Andrew Cagney <cagney@redhat.com>
2210
2211 GDB 6.0 branch created.
2212 * README: Update.
2213 * PROBLEMS: Update. Empty.
2214 * NEWS: Update.
2215
2216 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2217
2218 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2219 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2220
2221 2003-06-22 Andrew Cagney <cagney@redhat.com>
2222
2223 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2224 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2225 Velikov.
2226
2227 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2228
2229 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2230 compilers.
2231
2232 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2233
2234 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2235 argument of val_print.
2236 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2237 to the address argument of baseclass_offset or target_read_memory.
2238 Do add it to the argument of cp_print_value_fields.
2239
2240 2003-06-21 Andrew Cagney <cagney@redhat.com>
2241
2242 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2243 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2244 instead of 0..NUM_REGS.
2245 (mips_register_reggroup_p): New function.
2246 (mips_pseudo_register_write): New function.
2247 (mips_pseudo_register_read): New function.
2248 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2249 based on the register's type.
2250 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2251 cooked.
2252 (mips_get_saved_register): Simplify. Assert that REGNO is a
2253 pseudo / cooked.
2254 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2255 (mips_register_type): Replace mips_register_virtual_type. Map
2256 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2257 when available.
2258 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2259 that the register is cooked / virtual.
2260 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2261 Only get the extra info when needed.
2262 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2263 (mips32_heuristic_proc_desc): Fetch the cooked register.
2264 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2265 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2266 (mips_print_register): Use gdbarch_register_type, instead of
2267 REGISTER_VIRTUAL_TYPE.
2268 (print_gp_register_row): Use gdbarch_register_type, instead of
2269 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2270 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2271 Print the pseudo / cooked registers.
2272 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2273 Print the pseudo / cooked registers.
2274 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2275 REG_NUM is pseudo / cooked.
2276 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2277 (mips_n32n64_xfer_return_value): Ditto.
2278 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2279 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2280 (mips_register_sim_regno): New function.
2281 (mips_gdbarch_init): Set deprecated_register_byte,
2282 register_group_p, pseudo_register_write, pseudo_register_read,
2283 register_sim_regno, and num_pseudo_regs. Set register_type,
2284 instead of register_virtual_type.
2285 * Makefile.in (mips-tdep.o): Update dependencies.
2286 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2287 REGISTER_VIRTUAL_TYPE.
2288 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2289 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2290 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2291 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2292 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2293
2294 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2295
2296 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2297 * cli/cli-cmds.c: Include "gdb_vfork.h".
2298 (shell_escape): Use vfork.
2299
2300 2003-06-21 Andrew Cagney <cagney@redhat.com>
2301
2302 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2303 32 bit floating-point register saves.
2304
2305 * frame.h (deprecated_unwind_get_saved_register): Delete.
2306 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2307 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2308 and deprecated_get_next_frame_hack instead of
2309 deprecated_unwind_get_saved_register.
2310
2311 * mips-tdep.c (mips_dump_tdep): Do not print
2312 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2313
2314 * frame.c (get_frame_register): New function.
2315 (frame_unwind_register_signed): New function.
2316 (get_frame_register_signed): New function.
2317 (frame_unwind_register_unsigned): New function.
2318 (get_frame_register_unsigned): New function.
2319 * frame.h: Add comments on naming schema.
2320 (get_frame_register, frame_unwind_register_signed): Declare.
2321 (get_frame_register_signed, get_frame_register_signed): Declare.
2322 (frame_unwind_register_unsigned): Declare.
2323 (get_frame_register_unsigned): Declare.
2324
2325 2003-06-20 Theodore A. Roth <troth@openavr.org>
2326
2327 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2328
2329 2003-06-20 Theodore A. Roth <troth@openavr.org>
2330
2331 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2332 (avr_read_sp): Ditto.
2333
2334 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2335
2336 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2337 * config/arm/nm-linux.h: Likewise.
2338 * config/arm/tm-linux.h: Likewise.
2339 * config/ia64/nm-linux.h: Likewise.
2340 * config/ia64/tm-ia64.h: Likewise.
2341 * config/s390/tm-linux.h: Likewise.
2342 * config/s390/tm-s390.h: Likewise.
2343 * s390-nat.c: Likewise.
2344 * s390-tdep.c: Likewise.
2345
2346 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2347 * config/ia64/linux.mt: Likewise.
2348 * config/m68k/linux.mh: Likewise.
2349 * config/mips/linux.mt: Likewise.
2350 * config/powerpc/linux.mh: Likewise.
2351 * config/sh/linux.mt: Likewise.
2352
2353 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2354
2355 * solib.c (solib_open): Change tests for whether to search
2356 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2357 comments.
2358
2359 2003-06-19 Theodore A. Roth <troth@openavr.org>
2360
2361 * avr-tdep.c (avr_frame_address): Delete function.
2362 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2363 set_gdbarch_frame_args_address.
2364
2365 2003-06-19 Andrew Cagney <cagney@redhat.com>
2366
2367 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2368 (REGISTER_CONVERT_FROM_TYPE): Delete.
2369 (mips_register_convert_to_type): Delete declaration.
2370 (mips_register_convert_from_type): Delete declaration.
2371 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2372 kernel/.
2373
2374 2003-06-19 Michael Snyder <msnyder@redhat.com>
2375
2376 * linux-nat.h: New file.
2377 * linux-nat.c: Include linux-nat.h.
2378 * lin-lwp.c: Include linux-nat.h.
2379 Move struct lwp_info def to linux-nat.h.
2380 * linux-proc.c: Include linux-nat.h.
2381 (linux_make_note_section): Iterate over lwps instead of threads.
2382 (linux_do_thread_registers): Use lwp instead of merged pid.
2383 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2384 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2385 Add dependency on linux_nat_h.
2386
2387 2003-06-19 Theodore A. Roth <troth@openavr.org>
2388
2389 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2390
2391 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2392
2393 * varobj.c (get_type, get_target_type): Use check_typedef.
2394
2395 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2396
2397 * breakpoint.c (insert_catchpoint): Call internal_error.
2398
2399 2003-06-19 Theodore A. Roth <troth@openavr.org>
2400
2401 * avr-tdep.c (avr_push_dummy_code): Delete function.
2402 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2403
2404 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2405
2406 * arch-utils.c (default_prepare_to_proceed): Remove.
2407 (generic_prepare_to_proceed): Remove.
2408 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2409 (generic_prepare_to_proceed): Remove prototype.
2410 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2411 * gdbarch.c: Regenerate.
2412 * gdbarch.h: Regenerate.
2413 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2414 * hppah-nat.c (hppa_switched_threads): Remove.
2415 * infrun.c (prepare_to_proceed): New static function, copied from
2416 generic_prepare_to_proceed. Remove select_it argument.
2417 (proceed): Call prepare_to_proceed.
2418 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2419 variables.
2420 (ptrace_wait): Don't set the removed variables.
2421 (hppa_switched_threads): Remove.
2422 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2423 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2424 (lin_lwp_prepare_to_proceed): Remove prototype.
2425 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2426 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2427
2428 2003-06-18 Theodore A. Roth <troth@openavr.org>
2429
2430 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2431 trad-frame.h.
2432 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2433 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2434 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2435 (AVR_PROLOGUE_*): Enumerate prologue types.
2436 (struct frame_extra_info): Remove.
2437 (struct avr_unwind_cache): Define.
2438 (avr_write_sp): Delete function.
2439 (avr_read_fp): Ditto.
2440 (avr_init_extra_frame_info): Ditto.
2441 (avr_pop_frame): Ditto.
2442 (avr_frame_saved_pc): Ditto.
2443 (avr_saved_pc_after_call): Ditto.
2444 (avr_push_return_address): Ditto.
2445 (avr_frame_chain): Ditto.
2446 (avr_store_struct_return): Ditto.
2447 (avr_push_arguments): Ditto.
2448 (avr_scan_prologue): Update comments. Changed to set up the info for
2449 cache unwinding. Now returns end of prologue PC.
2450 (avr_skip_prologue): Better handling of functions lacking a prologue
2451 by using avr_scan_prologue.
2452 (avr_scan_arg_moves): New function.
2453 (avr_saved_regs_unwinder): Ditto.
2454 (avr_frame_unwind_cache): Ditto.
2455 (avr_unwind_pc): Ditto.
2456 (avr_frame_this_id): Ditto.
2457 (avr_frame_prev_register): Ditto.
2458 (avr_frame_p): Ditto.
2459 (avr_frame_base_address ): Ditto.
2460 (avr_unwind_dummy_id): Ditto.
2461 (avr_push_dummy_code): Ditto.
2462 (push_stack_item): Ditto.
2463 (pop_stack_item): Ditto.
2464 (avr_push_dummy_call): Ditto.
2465 (struct stack_item): Define.
2466 (avr_frame_unwind): Declare structure.
2467 (avr_frame_base): Ditto.
2468 (avr_gdbarch_init): Remove calls to
2469 set_gdbarch_deprecated_init_frame_pc,
2470 set_gdbarch_deprecated_target_read_fp,
2471 set_gdbarch_deprecated_dummy_write_sp,
2472 set_gdbarch_deprecated_fp_regnum,
2473 set_gdbarch_deprecated_push_arguments,
2474 set_gdbarch_deprecated_push_return_address,
2475 set_gdbarch_deprecated_pop_frame,
2476 set_gdbarch_deprecated_store_struct_return,
2477 set_gdbarch_deprecated_frame_init_saved_regs,
2478 set_gdbarch_deprecated_init_extra_frame_info,
2479 set_gdbarch_deprecated_frame_chain,
2480 set_gdbarch_deprecated_frame_saved_pc,
2481 set_gdbarch_deprecated_saved_pc_after_call.
2482 Add calls to set_gdbarch_push_dummy_call,
2483 set_gdbarch_push_dummy_code,
2484 frame_unwind_append_predicate,
2485 frame_base_set_default,
2486 set_gdbarch_unwind_dummy_id,
2487 set_gdbarch_unwind_pc.
2488 Wrap a long line.
2489
2490 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2491
2492 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2493 registers for H8/300S.
2494 (h8300_print_registers_info): Ditto.
2495 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2496
2497 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2498
2499 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2500 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2501 (lin_lwp_wait): Likewise. Update comments.
2502 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2503 (pull_pid_from_list, linux_record_stopped_pid): New.
2504
2505 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2506
2507 * ada-lang.c (scan_discrim_bound): Name first argument.
2508 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2509 declared by ALL_BLOCK_SYMBOLS.
2510
2511 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2512
2513 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2514 ("regcache.h"): Include it.
2515 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2516
2517 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2518
2519 * NEWS: Mention gdbserver detach change and "disconnect" command.
2520 * infcmd.c (disconnect_command): New function.
2521 (_initialize_infcmd): Add ``disconnect'' command.
2522 * remote.c (remote_async_detach): Delete.
2523 (remote_detach): Merge remote_async_detach.
2524 (remote_disconnect): New.
2525 (init_remote_ops): Set to_disconnect.
2526 (init_remote_cisco_ops): Likewise.
2527 (init_remote_async_ops): Likewise. Use remote_detach.
2528 * target.c (cleanup_target): Default to_disconnect.
2529 (update_current_target): Inherit to_disconnect.
2530 (target_disconnect, debug_to_disconnect): New functions.
2531 (setup_target_debug): Set to_disconnect.
2532 * target.h (struct target_ops): Add to_disconnect.
2533 (target_disconnect): Add prototype.
2534
2535 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2536
2537 * breakpoint.c (insert_catchpoint): New function.
2538 (insert_breakpoints): Use catch_exceptions to call
2539 insert_catchpoint. Disable catchpoints if they fail to insert.
2540
2541 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2542
2543 * symfile.c (reread_symbols): Clear sym_private.
2544
2545 2003-06-17 Andrew Cagney <cagney@redhat.com>
2546
2547 * trad-frame.h (struct frame_info): Add opaque declaration.
2548 * remote-fileio.h (struct cmd_list_element): Add opaque
2549 declaration.
2550 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2551 comments.
2552
2553 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2554
2555 * remote.c (remote_prepare_to_store): Replace call to
2556 deprecated_read_register_bytes with multiple regcache_raw_read
2557 calls.
2558
2559 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2560
2561 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2562 (nto_find_and_open_solib): Likewise.
2563 (nto_init_solib_absolute_prefix): Likewise.
2564 (_initialize_nto_tdep): Fix indentation.
2565
2566 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2567
2568 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2569
2570 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2571
2572 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2573
2574 2003-06-17 Jim Blandy <jimb@redhat.com>
2575
2576 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2577
2578 2003-06-16 Theodore A. Roth <troth@openavr.org>
2579
2580 * avr-tdep.c (avr_extract_return_value): New function.
2581 (avr_gdbarch_init): Set extract_return_value method.
2582
2583 2003-06-16 Andrew Cagney <cagney@redhat.com>
2584
2585 * frame.h (deprecated_get_next_frame_hack): Declare.
2586 * frame.c (legacy_saved_regs_prev_register): Only require
2587 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2588 there are always saved regs.
2589 (deprecated_generic_get_saved_register): Do not require
2590 DEPRECATED_FRAME_INIT_SAVED_REGS.
2591 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2592 use frame ID unwind instead.
2593 (deprecated_get_next_frame_hack): New function.
2594
2595 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2596
2597 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2598 (h8300_push_dummy_call): ...this function. Some minor optimization.
2599 (h8300_push_return_address): Remove.
2600 (h8300_gdbarch_init): Remove calls to
2601 set_gdbarch_deprecated_dummy_write_sp,
2602 set_gdbarch_deprecated_push_arguments and
2603 set_gdbarch_deprecated_push_return_address.
2604 Add call to set_gdbarch_push_dummy_call.
2605
2606 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2607
2608 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2609 (E_PSEUDO_EXR_REGNUM): Ditto.
2610 (h8300_is_argument_spill): Check for instructions moving argument
2611 registers into safe registers.
2612 (h8300_skip_prologue): Check for stm instruction to push registers
2613 used for register variables onto stack.
2614 (gdb_print_insn_h8300): Remove.
2615 (h8300_examine_prologue): Add a comment.
2616 (h8300_register_name): Take pseudo registers into account.
2617 (h8300s_register_name): Ditto.
2618 (h8300sx_register_name): Ditto.
2619 (h8300_print_register): Ditto.
2620 (h8300_print_registers_info): Define "nice" printing order.
2621 (h8300_saved_pc_after_call): Take pseudo registers into account.
2622 (h8300_register_type): Ditto. Return type used for remote connection
2623 when requesting real CCR or EXR register, return actual type when
2624 requesting pseudo CCR or EXR.
2625 (h8300_pseudo_register_read): New function.
2626 (h8300_pseudo_register_write): Ditto.
2627 (h8300_dbg_reg_to_regnum): Ditto.
2628 (h8300s_dbg_reg_to_regnum): Ditto.
2629 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2630 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2631 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2632 set_gdbarch_print_insn architecture dependent.
2633 Call set_gdbarch_pseudo_register_read and
2634 set_gdbarch_pseudo_register_write.
2635 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2636
2637 2003-06-16 Andrew Cagney <cagney@redhat.com>
2638
2639 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2640 * gdbarch.h, gdbarch.c: Re-generate.
2641 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2642 * s390-tdep.c (s390_gdbarch_init): Update.
2643 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2644 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2645 * mips-tdep.c (mips_gdbarch_init): Update.
2646 * mcore-tdep.c (mcore_gdbarch_init): Update.
2647 * cris-tdep.c (cris_gdbarch_init): Update.
2648 * infcall.c (call_function_by_hand): Update.
2649 * ia64-tdep.c (ia64_push_arguments): Update comment.
2650 * frame.c (legacy_get_prev_frame): Do not assume
2651 SAVE_DUMMY_FRAME_TOS_P.
2652 * dummy-frame.c (find_dummy_frame): Update comment.
2653
2654 2003-06-16 Andrew Cagney <cagney@redhat.com>
2655
2656 * regcache.c (do_cooked_read): Do not use register_valid_p.
2657
2658 2003-06-15 Theodore A. Roth <troth@openavr.org>
2659
2660 * avr-tdep.c (avr_register_type): Remove a blank line.
2661 (avr_scan_prologue): Correct some comments.
2662
2663 2003-06-15 Theodore A. Roth <troth@openavr.org>
2664
2665 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2666 prologue types.
2667 Properly scan prologues generated by gcc with the -mcall-prologues
2668 option.
2669 Add code to scan -mcall-prologues for mega devices.
2670
2671 2003-06-15 Theodore A. Roth <troth@openavr.org>
2672
2673 * avr-tdep.c (avr_register_byte): Delete function.
2674 (avr_register_raw_size): Delete function.
2675 (avr_register_virtual_size): Delete function.
2676 (avr_register_virtual_type): Delete function.
2677 (avr_register_type): New function.
2678 (avr_address_to_pointer): Remove unused code.
2679 (avr_read_fp): Need to read FP as two separate bytes due to change to
2680 avr_register_type() usage.
2681 (avr_gdbarch_init): Don't set deprecated_register_size.
2682 Don't set deprecated_register_bytes.
2683 Don't set deprecated_register_byte.
2684 Don't set deprecated_register_raw_size.
2685 Don't set deprecated_max_register_raw_size.
2686 Don't set deprecated_register_virtual_size.
2687 Don't set deprecated_max_register_virtual_size.
2688 Don't set deprecated_register_virtual_type.
2689 Set register_type method.
2690
2691 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2692
2693 * Makefile.in (linux-nat.o): Add rule.
2694 * linux-nat.c: New file.
2695 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2696 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2697 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2698 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2699 * config/arm/linux.mh (NATDEPFILES): Likewise.
2700 * config/i386/linux.mh (NATDEPFILES): Likewise.
2701 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2702 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2703 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2704 * config/mips/linux.mh (NATDEPFILES): Likewise.
2705 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2706 * config/s390/s390.mh (NATDEPFILES): Likewise.
2707 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2708
2709 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2710
2711 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2712 replace out-of-date comment.
2713
2714 2003-06-15 Andrew Cagney <cagney@redhat.com>
2715
2716 * rdi-share/host.h (Fail): Change to a varargs function.
2717 * remote-rdi.c (Fail): Update.
2718
2719 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2720
2721 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2722 (i386_convert_register_p, i386_register_to_value,
2723 i386_register_from_value): Handle types longer than 8 bytes.
2724
2725 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2726
2727 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2728 Move floating-point code to new function in i387-tdep.c.
2729 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2730 New functions containing code moved here from i386-tdep.c.
2731 * i387-tdep.h: Add opaque declaration for `struct type'.
2732 (i387_register_to_value, i387_value_to_register): New prototypes.
2733 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2734 (x86_64_init_abi): Set convert_register_p, register_to_value and
2735 value_to_register here.
2736
2737 2003-06-14 Andrew Cagney <cagney@redhat.com>
2738
2739 * mips-tdep.c (mips_register_to_value): Make static.
2740 (mips_value_to_register): Make static.
2741 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2742 * ia64-tdep.c (ia64_register_raw_size): Make static.
2743 (ia64_register_virtual_size): Make static.
2744 (ia64_register_byte): Make static.
2745 * i387-tdep.c: Include "i387-tdep.h".
2746 (print_387_control_word): Delete function.
2747 (print_387_status_word): Delete function.
2748 (print_387_status_bits): Delete function.
2749 (print_387_control_bits): Delete function.
2750 * Makefile.in (i387-tdep.o): Update dependencies.
2751 * rdi-share/host.h (Fail): Declare.
2752 * remote-rdi.c (Fail): Update to match declaration.
2753
2754 2003-06-14 Andrew Cagney <cagney@redhat.com>
2755
2756 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2757 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2758 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2759 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2760 * README: Delete reference to remote-array.
2761 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2762 (remote-array.o): Delete target.
2763 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2764 * remote-array.c: Delete file.
2765
2766 2003-06-14 Andrew Cagney <cagney@redhat.com>
2767 Mark Kettenis <kettenis@gnu.org>
2768
2769 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2770 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2771 parameter with "frame".
2772 * gdbarch.h, gdbarch.c: Re-generate.
2773 * frame.h (put_frame_register): Declare.
2774 * frame.c (put_frame_register): New function.
2775 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2776 (legacy_register_to_value): Rewrite, use "frame" to get the
2777 register value.
2778 (legacy_value_to_register): Rewrite, use "frame" to find the
2779 register's location before storing.
2780 * arch-utils.h (legacy_convert_register_p): Update.
2781 (legacy_register_to_value, legacy_value_to_register): Update.
2782 * findvar.c (value_from_register): Rewrite, eliminate use of
2783 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2784 "frame" to REGISTER_TO_VALUE.
2785 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2786 lval_reg_frame_relative + lval_register branch of the switch. Do
2787 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2788 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2789 I386_EDI_REGNUM): New defines.
2790 (i386_next_regnum, i386_convert_register_p,
2791 i386_register_to_value, i386_value_to_register): New functions.
2792 (i386_register_convertible, i386_register_convert_to_virtual,
2793 i386_convert_to_raw): Remove functions.
2794 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2795 value_to_register instead of register_convertible,
2796 register_convert_to_virtual and register_convert_to_raw.
2797 * mips-tdep.c (mips_convert_register_p): New function.
2798 (mips_value_to_register): Replace mips_register_convert_from_type.
2799 (mips_register_to_value): Replace mips_register_convert_to_type.
2800 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2801 register_to_value.
2802 * alpha-tdep.c (alpha_convert_register_p): Update.
2803 (alpha_value_to_register): Update, store the register.
2804 (alpha_register_to_value): Update, fetch the register.
2805
2806 2003-06-14 Theodore A. Roth <troth@openavr.org>
2807
2808 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2809 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2810 Don't set deprecated_call_dummy_words.
2811 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2812 Don't set remote_translate_xfer_address.
2813 (avr_io_reg_read_command): Remove commented out debug printf.
2814 Wrap a long line.
2815
2816 2003-06-14 Theodore A. Roth <troth@openavr.org>
2817
2818 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2819 causes gdb to seg fault.
2820
2821 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2822
2823 * sparc-nat.c (fetch_inferior_registers): Correct
2824 a reference to "registers".
2825
2826 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2827
2828 * Makefile.in (exc_request_U_h): Define
2829 (exc_request_S_h): Likewise.
2830 (msg_reply_S_h): Likewise.
2831 (msg_U_h): Likewise.
2832 (notify_S_h): Likewise.
2833 (process_reply_S_h): Likewise.
2834 (gnu-nat.o): Depend on gdb_obstack_h
2835 * gnu-nat.c: Include "gdb_obstack.h".
2836
2837 2003-06-13 Andrew Cagney <cagney@redhat.com>
2838
2839 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2840 * gdbarch.h, gdbarch.c: Re-generate.
2841
2842 2003-06-13 Andrew Cagney <cagney@redhat.com>
2843
2844 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2845 when deprecated REGISTER macros can be deleted.
2846 * gdbarch.h, gdbarch.c: Re-generate.
2847
2848 2003-06-13 Jim Blandy <jimb@redhat.com>
2849
2850 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2851 Linux entry point symbols for _dl_debug_state, too.
2852
2853 2003-06-13 Andrew Cagney <cagney@redhat.com>
2854
2855 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2856 available, do not use the FP register, and always save the TOS.
2857 * dummy-frame.c (dummy_frame_this_id): Do not assert
2858 SAVE_DUMMY_FRAME_TOS.
2859 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2860 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2861 (i386_push_dummy_call): Add 8 to the returned SP.
2862 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2863 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2864 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2865 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2866 (x86_64_push_dummy_call): Return "sp + 16".
2867 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2868 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2869 save_dummy_frame_tos.
2870
2871 2003-06-13 Jim Blandy <jimb@redhat.com>
2872
2873 * frv-tdep.c (frv_use_struct_convention): Delete static
2874 declaration for function deleted in my change of 2003-06-12.
2875
2876 2003-06-13 Theodore A. Roth <troth@openavr.org>
2877
2878 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2879 (avr_pointer_to_address): Shift code addrs left 1 bit.
2880 (avr_convert_from_func_ptr_addr): Delete function since operation is
2881 better handled by avr_address_to_pointer and avr_pointer_to_address.
2882 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2883
2884 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2885
2886 From Kelley Cook <kelleycook@wideopenwest.com>:
2887 * configure.host: Accept i[34567]86 variants.
2888 * configure.tgt: Likewise.
2889 * nlm/configure.in: Likewise.
2890 * nlm/configure: Regenerated.
2891
2892 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2893
2894 * arm-tdep.c (solib-svr4.h): Dont' include it.
2895 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2896 * arm-linux-tdep.c: ... here. Make static.
2897 (arm_linux_init_abi): Register it.
2898 (solib-svr4.h): Include it.
2899 * Makefile.in: Update dependencies.
2900 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2901 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2902
2903 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2904
2905 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2906 indicate registers used for return values.
2907 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2908 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2909 members.
2910 (h8300_init_extra_frame_info): Ditto.
2911 (h8300_frame_locals_address): Removed.
2912 (h8300_frame_args_address): Removed.
2913 (h8300_extract_return_value): Use new regcache structure. Only care
2914 for 16 bit CPUs.
2915 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2916 (h8300_store_return_value): Use new regcache structure. Only care
2917 for 16 bit CPUs.
2918 (h8300h_store_return_value): Same function for 32 bit CPUs.
2919 (h8300_store_struct_return): Removed.
2920 (h8300_extract_struct_value_address): Use new regcache structure.
2921 (h8300h_extract_struct_value_address): Removed.
2922 (h8300_push_dummy_code): New function.
2923 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2924 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2925 set_gdbarch_store_return_value architecture dependent.
2926 Call set_gdbarch_push_dummy_code and
2927 set_gdbarch_extract_struct_value_address.
2928 Remove calls to set_gdbarch_frame_args_address,
2929 set_gdbarch_frame_locals_address,
2930 set_gdbarch_deprecated_store_struct_return,
2931 set_gdbarch_deprecated_extract_return_value,
2932 set_gdbarch_deprecated_extract_struct_value_address,
2933 set_gdbarch_deprecated_call_dummy_words and
2934 set_gdbarch_deprecated_sizeof_call_dummy_words.
2935
2936 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2937
2938 * h8300-tdep.c (h8300_register_byte): Remove.
2939 (h8300h_register_byte): Remove.
2940 (h8300_register_virtual_type): Remove. Substitute by...
2941 (h8300_register_type): New function.
2942 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2943 (h8300h_extract_struct_value_address): Ditto.
2944 (h8300_gdbarch_init): Drop calls to
2945 set_gdbarch_deprecated_register_byte and
2946 set_gdbarch_deprecated_register_virtual_type.
2947 Add call to set_gdbarch_register_type.
2948
2949 2003-06-13 Andrew Cagney <cagney@redhat.com>
2950
2951 * gdbarch.sh: Update comments on registers.
2952 (deprecated_register_byte): Rename register_byte.
2953 (deprecated_register_raw_size): Rename register_raw_size.
2954 (deprecated_register_virtual_size): Rename register_virtual_size.
2955 (deprecated_register_virtual_type): Rename register_virtual_type.
2956 * gdbarch.h, gdbarch.c: Re-generate.
2957 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2958 * vax-tdep.c (vax_gdbarch_init): Update.
2959 * v850-tdep.c (v850_gdbarch_init): Update.
2960 * sparc-tdep.c (sparc_gdbarch_init): Update.
2961 * sh-tdep.c (sh_gdbarch_init): Update.
2962 * s390-tdep.c (s390_gdbarch_init): Update.
2963 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2964 * ns32k-tdep.c: Update.
2965 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2966 * mips-tdep.c (mips_gdbarch_init): Update.
2967 * mcore-tdep.c (mcore_gdbarch_init): Update.
2968 * m68k-tdep.c (m68k_gdbarch_init): Update.
2969 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2970 * ia64-tdep.c (ia64_gdbarch_init): Update.
2971 * hppa-tdep.c (hppa_gdbarch_init): Update.
2972 * h8300-tdep.c (h8300_gdbarch_init): Update.
2973 * frv-tdep.c (frv_gdbarch_init): Update.
2974 * cris-tdep.c (cris_gdbarch_init): Update.
2975 * avr-tdep.c (avr_gdbarch_init): Update.
2976 * alpha-tdep.c (alpha_gdbarch_init): Update.
2977 * arm-tdep.c (arm_gdbarch_init): Update.
2978
2979 2003-06-13 Andrew Cagney <cagney@redhat.com>
2980
2981 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2982 mips_o32_use_struct_convention with always_use_struct_convention.
2983
2984 2003-06-12 David Carlton <carlton@kealia.com>
2985
2986 * cp-namespace.c (cp_set_block_scope): Comment out
2987 processing_has_namespace_info branch.
2988
2989 2003-06-12 Jim Blandy <jimb@redhat.com>
2990
2991 Recognize and skip 64-bit PowerPC Linux linkage functions.
2992 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2993 insn_pattern, insns_match_pattern, d_field, ds_field): New
2994 functions, macros, and types for working with PPC instructions.
2995 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2996 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2997 ppc64_skip_trampoline_code): New functions, variables, and macros
2998 for recognizing and skipping linkage functions.
2999 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3000 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3001
3002 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3003 register offsets for both the 32- and 64-bit interfaces.
3004
3005 Actually finish the job started by my change of 2003-05-29.
3006 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3007 other #definition of this.
3008 (ppc_linux_skip_trampoline_code): Remove declaration.
3009 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3010 static.
3011 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3012 method for GDBARCH.
3013
3014 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3015 'long' on ppc64-*-linux*.
3016
3017 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3018 isn't #defined, assume the register doesn't exist: act as if
3019 tdep->ppc_mq_regnum were -1.
3020
3021 * configure.host, configure.tgt: Add entries for
3022 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3023 powerpc/linux.mt.
3024 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3025 New files.
3026
3027 * arch-utils.c (always_use_struct_convention): New function.
3028 * arch-utils.h (always_use_struct_convention): New prototype.
3029 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3030 (alpha_gdbarch_init): Register always_use_struct_convention,
3031 instead of alpha_use_struct_convention.
3032 * cris-tdep.c (cris_use_struct_convention): Delete.
3033 (cris_gdbarch_init): Register always_use_struct_convention,
3034 instead of cris_use_struct_convention.
3035 * frv-tdep.c (frv_use_struct_convention): Delete.
3036 (frv_gdbarch_init): Register always_use_struct_convention,
3037 instead of frv_use_struct_convention.
3038 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3039 (h8300_gdbarch_init): Register always_use_struct_convention,
3040 instead of h8300_use_struct_convention.
3041 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3042 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3043 instead of mips_o32_use_struct_convention.
3044
3045 2003-06-12 Andrew Cagney <cagney@redhat.com>
3046
3047 * wince.c: Include "mips-tdep.h".
3048 * mips-tdep.h (mips_next_pc): Declare.
3049 * mcore-tdep.c: Make more local functions static.
3050 * Makefile.in (wince.o): Update dependencies.
3051
3052 2003-06-12 David Carlton <carlton@kealia.com>
3053
3054 * symtab.c (lookup_symbol_aux_minsyms): Replace
3055 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3056 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3057 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3058 SYMBOL_NATURAL_NAME.
3059
3060 2003-06-12 Andreas Schwab <schwab@suse.de>
3061
3062 * Makefile.in (tuiDisassem.o): Update dependencies.
3063
3064 2003-06-12 David Carlton <carlton@bactrian.org>
3065
3066 * symtab.h: Delete declaration of make_symbol_overload_list.
3067 Add declaration of lookup_partial_symbol.
3068 * symtab.c (remove_params): Move to cp-support.c.
3069 (overload_list_add_symbol, make_symbol_overload_list)
3070 (sym_return_val_size, sym_return_val_index): Ditto.
3071 (lookup_partial_symbol): Make extern.
3072 * cp-support.h: Add declaration of make_symbol_overload_list.
3073 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3074 symtab.h, and block.h.
3075 (remove_params): Move here from symtab.c.
3076 (overload_list_add_symbol, make_symbol_overload_list)
3077 (sym_return_val_size, sym_return_val_index): Ditto.
3078 * valops.c: Include cp-support.h.
3079 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3080 frame_h, and block_h.
3081 (valops.o): Depend on cp_support_h.
3082
3083 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3084
3085 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3086 substitute by NUM_REGS throughout.
3087 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3088 (h8300s_register_name): New function for H8S registers.
3089 (h8300sx_register_name): Ditto for H8SX registers.
3090 (h8300_print_register): Revise register printing, avoid depending
3091 on 32 bit long.
3092 (h8300_register_byte): Only care for H8/300 registers.
3093 (h8300h_register_byte): New function for any other architecture.
3094 (h8300_register_raw_size): Remove.
3095 (h8300_register_virtual_type): Revise to return actually useful
3096 type.
3097 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3098 (h8300h_extract_struct_value_address): New function for any other
3099 architecture.
3100 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3101 set_gdbarch_register_name, set_gdbarch_register_byte,
3102 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3103 Remove calls to set_gdbarch_deprecated_register_size,
3104 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3105 set_gdbarch_deprecated_max_register_raw_size,
3106 set_gdbarch_register_virtual_size and
3107 set_gdbarch_deprecated_max_register_virtual_size entirely.
3108 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3109 set_gdbarch_long_double_bit.
3110
3111 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3112
3113 * doublest.c (convert_doublest_to_floatformat): When dealing
3114 with the implied integer bit, only alter mant_bits if we are
3115 processing a full 32 bits of mantissa.
3116
3117 2003-06-11 David Carlton <carlton@bactrian.org>
3118
3119 * dictionary.h: New.
3120 * dictionary.c: New.
3121 * block.h: Add opaque declaration for struct dictionary.
3122 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3123 'sym' members.
3124 (BLOCK_DICT): New macro.
3125 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3126 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3127 BLOCK_SHOULD_SORT.
3128 (ALL_BLOCK_SYMBOLS): Update definition.
3129 * Makefile.in (SFILES): Add dictionary.c.
3130 (dictionary_h): New.
3131 (COMMON_OBS): Add dictionary.o.
3132 (dictionary.o): New.
3133 (ada-lang.o): Depend on dictionary_h.
3134 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3135 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3136 (mi-cmd-stack.o): Ditto.
3137 (gdbtk-cmds.o): Update dependencies.
3138 (gdbtk-stack.o): Ditto.
3139 * ada-lang.c: Include dictionary.h.
3140 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3141 (fill_in_ada_prototype, debug_print_block): Ditto.
3142 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3143 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3144 'is_sorted'.
3145 * mdebugread.c: Include dictionary.h.
3146 (struct parse_stack): Delete 'maxsyms' member.
3147 (parse_symbol): Update calls to new_block. Delete calls to
3148 shrink_block. Use dictionary methods.
3149 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3150 Update calls to new_symtab. Don't maintain maxsyms data.
3151 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3152 (add_symbol): Just call dict_add_symbol.
3153 (new_symtab): Delete 'maxsyms' argument.
3154 (new_symtab): Update calls to new_block.
3155 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3156 (shrink_block): Delete function.
3157 (fixup_sigtramp): Update call to new_block. Add symbol via
3158 dict_add_symbol.
3159 * jv-lang.c: Include dictionary.h.
3160 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3161 appropriately. Set class_symtab->free_func. Make sure the
3162 blockvector is big enough to hold two blocks.
3163 (add_class_symtab_symbol): Use dictionary methods.
3164 (free_class_block): New function.
3165 (type_from_class): Replace explicit iteration by
3166 ALL_BLOCK_SYMBOLS.
3167 * symtab.h (struct symtab): Replace 'free_ptr' method by
3168 'free_func'.
3169 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3170 sort_symtab_syms.
3171 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3172 sort_symtab_syms.
3173 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3174 Include dictionary.h.
3175 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3176 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3177 sort_symtab_syms.
3178 * objfiles.c: Include dictionary.h.
3179 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3180 * buildsym.c: Include dictionary.h.
3181 (finish_block): Use dictionary methods.
3182 (end_symtab): Set free_func to NULL, not free_ptr.
3183 * tracepoint.c: Include dictionary.h.
3184 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3185 (scope_info): Ditto.
3186 * stack.c: Include dictionary.h.
3187 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3188 (print_block_frame_labels, print_frame_arg_vars)
3189 (print_frame_args): Ditto.
3190 * symmisc.c (free_symtab_block): Use dictionary methods.
3191 (dump_symtab): Ditto.
3192 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3193 Include dictionary.h.
3194 * symfile.h: Delete declarations of sort_block_syms,
3195 sort_symtab_syms.
3196 * symfile.c (sort_block_syms): Delete.
3197 (sort_symtab_syms): Delete.
3198 * symtab.c: Include dictionary.h.
3199 (lookup_block_symbol): Use dictionary iterators.
3200 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3201 (search_symbols, make_symbol_completion_list): Ditto.
3202 (make_symbol_overload_list): Ditto.
3203 * valops.c (value_of_local): Use dict_empty.
3204 Include dictionary.h.
3205
3206 2003-06-11 J. Brobecker <brobecker@gnat.com>
3207
3208 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3209
3210 2003-06-11 David Carlton <carlton@bactrian.org>
3211
3212 * block.h (BLOCK_SHOULD_SORT): Delete.
3213 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3214 blocks.
3215 * ada-lang.c (ada_add_block_symbols): Ditto.
3216 * symfile.c (sort_block_syms): Delete.
3217 (sort_symtab_syms): Ditto.
3218 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3219 declarations.
3220 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3221 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3222 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3223 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3224 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3225 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3226 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3227
3228 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3229
3230 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3231 bits to 128.
3232
3233 2003-06-11 Andrew Cagney <cagney@redhat.com>
3234
3235 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3236 REGISTER_CONVERTIBLE.
3237 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3238 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3239 * gdbarch.h, gdbarch.c: Re-generate.
3240 * arch-utils.h (deprecated_register_convertible_not): Rename
3241 generic_register_convertible_not.
3242 * arch-utils.c (deprecated_register_convertible_not): Rename
3243 generic_register_convertible.
3244 (legacy_convert_register_p, legacy_register_to_value): Update.
3245 * sh-tdep.c (sh64_push_arguments): Update.
3246 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3247 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3248 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3249 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3250 * arch-utils.c (legacy_value_to_register): Update.
3251 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3252 (rs6000_register_convert_to_raw): Make parameter "from" const.
3253 * mips-tdep.c (mips_gdbarch_init): Update.
3254 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3255 * infcmd.c (default_print_registers_info): Update.
3256 * ia64-tdep.c (ia64_gdbarch_init): Update.
3257 (ia64_register_convert_to_raw): Make parameter "from" const.
3258 * i386-tdep.c (i386_gdbarch_init): Update.
3259 (i386_register_convert_to_raw): Update.
3260
3261 2003-06-11 Andrew Cagney <cagney@redhat.com>
3262
3263 * remote-fileio.c: Include "remote-fileio.h".
3264 * Makefile.in (remote-fileio.o): Update dependencies.
3265 (remote_fileio_h): Fix typo.
3266
3267 2003-06-11 Andrew Cagney <cagney@redhat.com>
3268
3269 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3270 (xstormy16_save_dummy_frame_tos): Make static.
3271 (_initialize_xstormy16_tdep): Add declaration.
3272 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3273 * v850-tdep.c: Make local functions static.
3274 (_initialize_v850_tdep): Add declaration.
3275 * sparc-tdep.c: Make local functions static.
3276 (_initialize_sparc_tdep): Add declaration.
3277 * sh-tdep.c: Make local functions static.
3278 (_initialize_sh_tdep): Add declaration.
3279 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3280 * s390-tdep.c: Make local functions static.
3281 (_initialize_s390_tdep): Add declaration.
3282 * dbxread.c (find_stab_function_addr): Make static.
3283 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3284 * ocd.c (_initialize_remote_ocd): Add declaration.
3285 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3286 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3287 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3288 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3289 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3290 * remote-array.c (_initialize_array): Add declaration.
3291 (_initialize_remote_monitors): Add declaration.
3292 * remote-mips.c: Make local functions static.
3293 (_initialize_remote_mips): Add declaration.
3294 * mcore-tdep.c: Make all local functions static.
3295 (_initialize_mcore_tdep): Add declaration.
3296 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3297 * abug-rom.c (_initialize_abug_rom): Add declaration.
3298 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3299 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3300 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3301 * remote-est.c (_initialize_est): Add declaration.
3302 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3303 (m68hc11_call_dummy_address): Make static.
3304 * ia64-tdep.c: Make local functions static.
3305 (_initialize_ia64_tdep): Add declaration.
3306 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3307 * monitor.c (monitor_wait_filter): Make static.
3308 (_initialize_remote_monitors): Add declaration.
3309 * remote-hms.c (_initialize_remote_hms): Add declaration.
3310 * remote-e7000.c (fetch_regs_from_dump): Make static.
3311 (expect_n): Make static.
3312 (_initialize_remote_e7000): Add declaration.
3313 * ser-e7kpc.c: Always include "defs.h".
3314 (_initialize_ser_e7000pc): Add declaration.
3315 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3316 * cris-tdep.c: Make all but one function static.
3317 (_initialize_cris_tdep): Add declaration.
3318 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3319 * solib.c (update_solib_list): Make static.
3320 (_initialize_solib): Add declaration.
3321 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3322 (_initialize_avr_tdep): Add declaration.
3323 * remote-rdi.c (voiddummy): Make static.
3324 (_initialize_remote_rdi): Add declaration.
3325 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3326 * remote-rdp.c (send_rdp): Make static.
3327 (_initialize_remote_rdp): Add declaration.
3328 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3329
3330 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3331
3332 * remote-fileio.c: Make ari happy.
3333
3334 2003-06-10 J. Brobecker <brobecker@gnat.com>
3335
3336 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3337 fetching the trailing bytes of the buffer we are about to write.
3338
3339 2003-06-10 Andrew Cagney <cagney@redhat.com>
3340
3341 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3342 * Makefile.in (remote-fileio.o): Update dependencies.
3343 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3344 include <setjmp.h>, or <sys/types.h> conditional on USG.
3345 (remote_fio_jmp_buf): Delete global variable.
3346
3347 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3348 Martin M. Hunt <hunt@redhat.com>
3349
3350 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3351 (SFILES): Add remote-fileio.c.
3352 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3353 dependencies for building remote.o.
3354 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3355 * remote-fileio.h: New header file defining remote File-I/O interface.
3356 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3357 static storage class.
3358 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3359 'F' packet.
3360 (_initialize_remote): Call initialize_remote_fileio().
3361 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3362 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3363 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3364 (captured_main): Initialize new ui_files.
3365 * ui-file.c: Add read and fgets input functions.
3366 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3367 (null_file_read): New function.
3368 (ui_file_read): New function.
3369 (set_ui_file_read): New function.
3370 (stdio_file_read): New function.
3371 * ui-file.h: New type ui_file_read_ftype.
3372 (set_ui_file_read): Declare.
3373 (ui_file_read): Declare.
3374
3375 2003-06-09 Andrew Cagney <cagney@redhat.com>
3376
3377 * frame.h (deprecated_unwind_get_saved_register): Rename
3378 generic_unwind_get_saved_register, update comments.
3379 * mips-tdep.c (mips_get_saved_register): Update.
3380 * frame.c (deprecated_unwind_get_saved_register): Update.
3381
3382 2003-06-09 Andrew Cagney <cagney@redhat.com>
3383
3384 * vax-tdep.c (vax_frame_locals_address): Delete function.
3385 (vax_gdbarch_init): Do not set frame_locals_address.
3386 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3387 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3388 * s390-tdep.c (s390_frame_args_address): Delete function.
3389 (s390_gdbarch_init): Do not set frame_args_address or
3390 frame_locals_address.
3391 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3392 (ns32k_gdbarch_init): Do not set frame_locals_address.
3393 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3394 (hppa_frame_locals_address): Delete function.
3395 (hppa_gdbarch_init): Do not set frame_args_address, or
3396 frame_locals_address.
3397 * arm-tdep.c (arm_frame_args_address): Delete.
3398 (arm_frame_locals_address): Delete.
3399 (arm_gdbarch_init): Do not set frame_args_address, or
3400 frame_locals_address.
3401
3402 2003-06-09 Andrew Cagney <cagney@redhat.com>
3403
3404 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3405 * gdbarch.h, gdbarch.c: Re-generate.
3406 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3407 * arch-utils.c (frame_num_args_unknown): Delete function.
3408 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3409 (frame_info): Use FRAME_NUM_ARGS_P.
3410 * arm-tdep.c (arm_frame_num_args): Delete function.
3411 (arm_gdbarch_init): Do not set frame_num_args.
3412 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3413 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3414 (hppa_gdbarch_init): Do not set frame_num_args.
3415 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3416 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3417 frame_num_args to default frame_num_args_unknown.
3418 * v850-tdep.c (v850_gdbarch_init): Ditto.
3419 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3420 * sh-tdep.c (sh_gdbarch_init): Ditto.
3421 * s390-tdep.c (s390_gdbarch_init): Ditto.
3422 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3423 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3424 * mips-tdep.c (mips_gdbarch_init): Ditto.
3425 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3426 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3427 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3428 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3429 * i386-tdep.c (i386_gdbarch_init): Ditto.
3430 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3431 * frv-tdep.c (frv_gdbarch_init): Ditto.
3432 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3433 * cris-tdep.c (cris_gdbarch_init): Ditto.
3434 * avr-tdep.c (avr_gdbarch_init): Ditto.
3435 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3436
3437 2003-06-09 Andrew Cagney <cagney@redhat.com>
3438
3439 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3440 (print_frame_args): Moved to "stack.c".
3441 * stack.c: Include "gdb_assert.h".
3442 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3443 (print_frame_args): Moved from "printcmd.c".
3444 * frame.h (print_frame_args): Delete declaration.
3445 * Makefile.in (stack.o): Update dependencies.
3446
3447 2003-06-08 Andrew Cagney <cagney@redhat.com>
3448
3449 * frame.c (get_prev_frame): Remove reference to
3450 frame_args_address_correct in comments.
3451 * frame-base.c (default_frame_args_address): Delete code
3452 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3453 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3454 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3455 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3456 (vax_frame_args_address_correct): Delete declaration.
3457
3458 2003-06-08 Andrew Cagney <cagney@redhat.com>
3459
3460 * gdbarch.sh (UNWIND_SP): Add.
3461 * gdbarch.h, gdbarch.c: Re-generate.
3462 * frame.c (frame_sp_unwind): New function.
3463 (get_frame_sp): New function.
3464 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3465 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3466 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3467 value.
3468 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3469 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3470
3471 2003-06-08 Andrew Cagney <cagney@redhat.com>
3472
3473 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3474 REMOTE_BREAKPOINT.
3475 * remote.c: Update.
3476 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3477 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3478 * config/m68k/tm-sun3.h: Update.
3479 * config/m68k/tm-m68klynx.h: Update.
3480 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3481
3482 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3483 trad_frame". Update comments.
3484 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3485 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3486 (trad_frame_register_value, trad_frame_prev_register): Update.
3487
3488 2003-06-08 Andrew Cagney <cagney@redhat.com>
3489
3490 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3491 from GCC's acinclude.m4.
3492 * configure.in: Check for getopt's delcaration.
3493 * aclocal.m4, config.in, configure: Re-generate.
3494 * main.c (error_init): Delete declaration.
3495 * defs.h (error_init): Declare.
3496 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3497 (rs6000_convert_from_func_ptr_addr): Make static.
3498 (_initialize_rs6000_tdep): Add declaration.
3499 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3500 (show_commands, set_verbose, show_history): Delete declaration.
3501 * top.h (set_verbose): Add declaration.
3502 (show_history, set_history, show_commands): Add declaration.
3503 (do_restore_instream_cleanup): Add declaration.
3504 * objc-lang.c (specialcmp): Make static.
3505 (print_object_command): Make static.
3506 (find_objc_msgsend): Make static.
3507 (find_objc_msgcall_submethod_helper): Make static.
3508 (find_objc_msgcall_submethod): Make static.
3509 (_initialize_objc_language): Add declaration.
3510 (find_implementation_from_class): Make static.
3511 (find_implementation): Make static.
3512 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3513 * objc-lang.h (lookup_struct_typedef): Add declaration.
3514 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3515 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3516 (do_restore_user_call_depth): Make static.
3517 (do_restore_instream_cleanup): Delete declaration.
3518 (dont_repeat): Delete declaration.
3519 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3520 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3521 * reggroups.c (_initialize_reggroup): Add declaration.
3522 * cp-support.c (_initialize_cp_support): Add declaration.
3523 * cp-abi.c (_initialize_cp_abi): Add declaration.
3524 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3525 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3526 (_initialize_gnu_v3_abi): Add declaration.
3527 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3528 (_initialize_gnu_v2_abi): Add declaration.
3529 * frame-base.c (_initialize_frame_base): Add declaration.
3530 * doublest.c (floatformat_from_length): Make static.
3531 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3532 * frame.c (create_sentinel_frame): Make static.
3533 (_initialize_frame): Add declaration.
3534 * top.c (do_catch_errors): Make static.
3535 (gdb_rl_operate_and_get_next_completion): Make static.
3536 * typeprint.c: Include "typeprint.h".
3537 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3538 (sentinel_frame_this_id): Make static.
3539 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3540 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3541 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3542 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3543 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3544 * maint.c (maintenance_print_architecture): Make static.
3545 * signals/signals.c (_initialize_signals): Add declaration.
3546 * std-regs.c (_initialize_frame_reg): Add declaration.
3547 * jv-exp.y (push_variable): ISO C definition.
3548 (push_qualified_expression_name): Ditto.
3549 * memattr.c (_initialize_mem): Add declaration.
3550 * remote.c (remote_check_watch_resources): Make static.
3551 (remote_stopped_by_watchpoint): Make static.
3552 (remote_stopped_data_address): Make static.
3553 * d10v-tdep.c (nr_dmap_regs): Make static.
3554 (a0_regnum): Make static.
3555 (d10v_frame_unwind_cache): Make static.
3556 (d10v_frame_p): Make static.
3557 * osabi.c (show_osabi): Make static.
3558 (_initialize_gdb_osabi): Add extern declaration.
3559 * gdbtypes.c (make_qualified_type): Make static.
3560 (safe_parse_type): Make static.
3561 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3562 * macrotab.c (macro_bcache_free): Make static.
3563 * interps.c (interp_set_quiet): Make static.
3564 (interpreter_exec_cmd): Make static.
3565 * stack.h (select_frame_command): New file.
3566 * stack.c: Include "stack.h".
3567 (select_frame_command_wrapper): Delete function.
3568 (select_frame_command): Make global.
3569 * infcall.c: Include "infcall.h".
3570 * linespec.c: Include "linespec.h".
3571 * symfile.c (sections_overlap): Make static.
3572 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3573 * charset.c (_initialize_charset): Add missing prototype.
3574 * regcache.c (init_legacy_regcache_descr): Make static.
3575 (do_regcache_xfree): Make static.
3576 (regcache_xfer_part): Make static.
3577 (_initialize_regcache): Add missing prototype.
3578 * breakpoint.c (parse_breakpoint_sals): Make static.
3579 (breakpoint_sals_to_pc): Make static.
3580 * interps.h (clear_interpreter_hooks): ISO C declaration.
3581 * Makefile.in (stack_h): Define.
3582 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3583 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3584
3585 2003-06-08 Andrew Cagney <cagney@redhat.com>
3586
3587 * Makefile.in (d10v-tdep.o): Update dependencies.
3588 (SFILES): Add trad-frame.c.
3589 (trad_frame_h): Define.
3590 (COMMON_OBS): Add trad-frame.o.
3591 (trad-frame.o): Specify dependencies.
3592 * d10v-tdep.c: Include "trad-frame.h".
3593 (saved_regs_unwinder): Delete function.
3594 (d10v_frame_prev_register): Use trad_frame_prev_register.
3595 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3596 trad_frame", delete "regs" and "prev_sp".
3597 (prologue_find_regs): Use trad-frame.
3598 * trad-frame.h, trad-frame.c: New files.
3599
3600 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3601
3602 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3603
3604 2003-06-07 Adam Fedor <fedor@gnu.org>
3605
3606 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3607 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3608 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3609 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3610 resolve_msgsend_super, resolve_msgsend_super_stret):
3611 Use it.
3612
3613 2003-06-07 Andrew Cagney <cagney@redhat.com>
3614
3615 * symfile.h: Re-indent, clean up comments.
3616
3617 2003-06-07 Andrew Cagney <cagney@redhat.com>
3618
3619 * inferior.h (deprecated_write_sp): Replace
3620 generic_target_write_sp.
3621 * regcache.c (deprecated_write_sp): Replace
3622 generic_target_write_sp.
3623 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3624 * vax-tdep.c (vax_gdbarch_init): Update.
3625 * v850-tdep.c (v850_gdbarch_init): Update.
3626 * sparc-tdep.c (sparc_gdbarch_init): Update.
3627 * sh-tdep.c (sh_gdbarch_init): Update.
3628 * s390-tdep.c (s390_gdbarch_init): Update.
3629 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3630 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3631 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3632 * mcore-tdep.c (mcore_gdbarch_init): Update.
3633 * m68k-tdep.c (m68k_gdbarch_init): Update.
3634 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3635 * ia64-tdep.c (ia64_gdbarch_init): Update.
3636 * h8300-tdep.c (h8300_gdbarch_init): Update.
3637 * frv-tdep.c (frv_gdbarch_init): Update.
3638 * cris-tdep.c (cris_gdbarch_init): Update.
3639 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3640
3641 2003-06-07 Andrew Cagney <cagney@redhat.com>
3642
3643 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3644 Assert that PC_REGNUM is valid.
3645 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3646
3647 2003-06-07 Andrew Cagney <cagney@redhat.com>
3648
3649 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3650 * gdbarch.h, gdbarch.c: Regenerate.
3651 * mn10300-tdep.c: Include "gdb_assert.h".
3652 (mn10300_read_fp): New function.
3653 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3654 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3655 * ia64-tdep.c: Include "gdb_assert.h".
3656 (ia64_read_fp): New function.
3657 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3658 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3659 * regcache.c (generic_target_read_sp): Delete function.
3660 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3661 * inferior.h (generic_target_read_sp): Delete declaration.
3662 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3663 generic_target_read_sp.
3664 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3665 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3666 * sh-tdep.c (sh_gdbarch_init): Ditto.
3667 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3668 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3669
3670 2003-06-07 Andrew Cagney <cagney@redhat.com>
3671
3672 * gdbarch.sh: Comment each field of startup_gdbarch.
3673 * gdbarch.h, gdbarch.c: Re-generate.
3674
3675 2003-06-07 Andrew Cagney <cagney@redhat.com>
3676
3677 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3678 * gdbarch.h, gdbarch.c: Re-generate.
3679 * regcache.c: Update comments on read_pc et.al.
3680 (generic_target_read_pc): Delete function.
3681 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3682 * inferior.h (generic_target_read_pc): Delete declaration.
3683 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3684 generic_target_read_pc.
3685 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3686 * sh-tdep.c (sh_gdbarch_init): Ditto.
3687 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3688 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3689
3690 2003-06-07 Andrew Cagney <cagney@redhat.com>
3691
3692 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3693 "index" with "special_local_sect". Use strcmp instead of STREQ.
3694 Append period to coments.
3695
3696 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3697
3698 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3699 (elfstab_offset_sections): Likewise.
3700 * gdb-stabs.h (stab_section_info): Likewise.
3701 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3702 * objfiles.c (objfile_relocate): Likewise.
3703 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3704 * remote.c (get_offsets): Likewise.
3705 (remote_cisco_objfile_relocate): Likewise.
3706 * somread.c (som_symfile_offsets): Likewise.
3707 * symfile.c (alloc_section_addr_info): New function.
3708 (build_section_addr_info_from_section_tab): Use it.
3709 (free_section_addr_info): Adjust.
3710 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3711 (syms_from_objfile): Allocate local_addr dynamically.
3712 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3713 dynamically.
3714 (add_symbol_file_command): Allocate sect_opts dynamically.
3715 (reread_symbols): Avoid use of SECT_OFF_MAX.
3716 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3717 (alloc_section_addr_info): Declare it.
3718 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3719 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3720 dynamically.
3721 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3722
3723 2003-06-06 Andrew Cagney <cagney@redhat.com>
3724
3725 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3726 (d10v_frame_unwind_cache): Do not set "return_pc".
3727
3728 2003-06-06 Michael Snyder <msnyder@redhat.com>
3729
3730 * h8300-tdep.c: Make tidy (long lines).
3731
3732 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3733
3734 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3735 to regcache_collect().
3736
3737 2003-06-05 J. Brobecker <brobecker@gnat.com>
3738
3739 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3740 pc_in_sigtramp multiarch method.
3741 (hppa_hpux_som_init_abi): Use it.
3742 (hppa_hpux_elf_init_abi): Likewise.
3743 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3744 macro has been multiarched.
3745 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3746 macro here, as hppa64 isn't multiarched yet.
3747
3748 2003-06-05 Andrew Cagney <cagney@redhat.com>
3749
3750 * Makefile.in (value_h): Add $(frame_h).
3751 * value.h: Include "frame.h".
3752 (struct value): Replace "frame_addr" with "frame_id".
3753 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3754 * values.c (allocate_value): Use VALUE_FRAME_ID.
3755 (value_copy): Use VALUE_FRAME_ID.
3756 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3757 * valops.c (value_assign): Update. Use frame_find_by_id.
3758
3759 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3760
3761 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3762 in each pass.
3763
3764 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3765
3766 * thread-db.c (check_event): For create/death event breakpoints,
3767 loop through all messages to ensure that we read the message
3768 corresponding to the breakpoint we are at.
3769
3770 2003-06-04 Michael Snyder <msnyder@redhat.com>
3771
3772 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3773
3774 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3775
3776 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3777 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3778 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3779 when handling .eh_frame sections.
3780
3781 2003-06-04 J. Brobecker <brobecker@gnat.com>
3782
3783 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3784 prepare_to_proceed procedure instead of the hppa-specific one.
3785 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3786
3787 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3788
3789 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3790 * config.in: Regenerated.
3791 * configure.in: Add test for syscall function and check for
3792 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3793 * configure: Regenerated.
3794 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3795 <sys/syscall.h>.
3796 (kill_lwp): New function that uses tkill syscall or
3797 uses kill, depending on whether threading model is nptl or not.
3798 All callers of kill() changed to use kill_lwp().
3799 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3800 see if all threads have already exited in the nptl model.
3801 (stop_and_resume_callback): New callback function used by the
3802 lin_lwp_wait thread exit handling code.
3803 (stop_wait_callback): Check for threads already having exited and
3804 delete such threads fromt the lwp list when discovered.
3805 (stop_callback): Don't assert retcode of kill call.
3806
3807 Roland McGrath <roland@redhat.com>
3808 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3809 nptl libthread_db.
3810
3811 2003-06-03 Richard Henderson <rth@redhat.com>
3812
3813 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3814 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3815 (alpha_sigtramp_frame_prev_register): Likewise.
3816 (alpha_heuristic_frame_prev_register): Likewise.
3817 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3818
3819 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3820 alpha-specific register id names.
3821 (alpha_mdebug_frame_unwind_cache): Likewise.
3822 (alpha_mdebug_frame_prev_register): Likewise.
3823
3824 2003-06-03 Richard Henderson <rth@redhat.com>
3825
3826 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3827 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3828 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3829 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3830 unwind routines.
3831 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3832 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3833 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3834
3835 * alpha-linux-tdep.c: Remove unnecessary includes.
3836 * Makefile.in (alpha-linux-tdep.o): Update.
3837
3838 2003-06-03 Richard Henderson <rth@redhat.com>
3839
3840 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3841 (alphabsd_fill_fpreg): Likewise.
3842
3843 2003-06-03 J. Brobecker <brobecker@gnat.com>
3844
3845 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3846 references to struct frame_info fields by calls to the equivalent
3847 accessors. Necessary now that frame_info is opaque.
3848
3849 2003-06-03 J. Brobecker <brobecker@gnat.com>
3850
3851 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3852 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3853 structure, field no longer exists.
3854
3855 2003-06-03 J. Brobecker <brobecker@gnat.com>
3856
3857 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3858 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3859
3860 2003-06-03 J. Brobecker <brobecker@gnat.com>
3861
3862 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3863 references to struct frame_info fields by calls to the equivalent
3864 accessors. Necessary now that frame_info is opaque.
3865
3866 2003-06-03 J. Brobecker <brobecker@gnat.com>
3867
3868 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3869 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3870 structure, field no longer exists.
3871
3872 2003-06-03 Theodore A. Roth <troth@openavr.org>
3873
3874 * remote.c (init_remote_state): Compute sizeof_g_packet by
3875 accumulation of the size of all registers instead of blindly using
3876 DEPRECATED_REGISTER_BYTES.
3877
3878 2003-06-03 Michael Snyder <msnyder@redhat.com>
3879
3880 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3881 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3882 for h8300sx.
3883
3884 2003-06-03 J. Brobecker <brobecker@gnat.com>
3885
3886 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3887 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3888
3889 2003-06-03 Andrew Cagney <cagney@redhat.com>
3890
3891 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3892 (sparc_convert_to_raw): Delete function.
3893 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3894 register_convert_to_virtual.
3895
3896 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3897
3898 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3899 layer if not dealing with a statically-linked threaded program.
3900
3901 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3902
3903 * solib.c (solib_open): Update comment to reflect actual search order.
3904
3905 2003-06-03 Andrew Cagney <cagney@redhat.com>
3906
3907 * frame.c (get_frame_memory_signed): New function.
3908 (get_frame_memory, get_frame_memory_unsigned): New function.
3909 (get_frame_arch): New function.
3910 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3911 (get_frame_memory, get_frame_unsigned_memory): Declare.
3912 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3913 get_frame_memory_unsigned and get_frame_arch.
3914 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3915
3916 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3917
3918 * MAINTAINERS (write after approval): Add myself.
3919
3920 2003-06-03 Jim Blandy <jimb@redhat.com>
3921
3922 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3923 elements of gregset_t are 64 bits each, but access registers
3924 are still 32 bits, so they're packed two per gregset_t
3925 element. Unpack/pack them properly.
3926
3927 2003-06-02 David Carlton <carlton@bactrian.org>
3928
3929 * linespec.c (find_methods): Break out code into
3930 add_matching_methods and add_constructors.
3931 (add_matching_methods): New.
3932 (add_constructors): Ditto.
3933
3934 2003-06-02 Andrew Cagney <cagney@redhat.com>
3935
3936 * sparc-tdep.c (sparc_print_registers): Delete call to
3937 REGISTER_CONVERTIBLE.
3938 (sparc_gdbarch_init): Do not set register_convertible.
3939 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3940 * frv-tdep.c (frv_gdbarch_init): Ditto.
3941 * cris-tdep.c (cris_gdbarch_init): Ditto.
3942
3943 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3944
3945 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3946 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3947 (syms_from_objfile): Ditto.
3948
3949 2003-06-03 Andreas Schwab <schwab@suse.de>
3950
3951 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3952 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3953
3954 2003-06-02 Richard Henderson <rth@redhat.com>
3955
3956 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3957 a member of all_reggroup.
3958
3959 2003-06-02 Richard Henderson <rth@redhat.com>
3960
3961 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3962 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3963 (alpha_lds, alpha_sts): New.
3964 (alpha_convert_register_p): Change from _register_convertible.
3965 (alpha_register_to_value): Change from _convert_to_virtual;
3966 restructure and fail for type sizes other than 4 or 8.
3967 (alpha_value_to_register): Similarly.
3968 (alpha_extract_return_value): Use alpha_sts.
3969 (alpha_store_return_value): Use alpha_lds.
3970 (alpha_gdbarch_init): Update hooks.
3971
3972 2003-06-02 Richard Henderson <rth@redhat.com>
3973
3974 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3975 regnum identifiers.
3976 (alpha_sigtramp_register_address): Likewise.
3977
3978 2003-06-02 Richard Henderson <rth@redhat.com>
3979
3980 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3981 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3982 * alpha-tdep.h: Declare them.
3983
3984 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3985 Remove zerobuf. Don't error on UNIQUE.
3986 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3987 (ALPHA_REGSET_UNIQUE): Provide default.
3988 (supply_gregset): Use alpha_supply_int_regs.
3989 (fill_gregset): Use alpha_fill_int_regs.
3990 (supply_fpregset): Use alpha_supply_fp_regs.
3991 (fill_fpregset): Use alpha_fill_fp_regs.
3992 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3993 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3994 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3995 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3996 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3997 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3998
3999 2003-06-02 Richard Henderson <rth@redhat.com>
4000
4001 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4002
4003 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4004 (alpha_store_return_value): Likewise.
4005
4006 2003-06-02 David Carlton <carlton@math.stanford.edu>
4007
4008 * block.c (contained_in): Add 'const' to arguments.
4009 (block_function): Ditto.
4010 * block.h: Update declarations for block_function and
4011 contained_in.
4012
4013 2003-06-02 David Carlton <carlton@math.stanford.edu>
4014
4015 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4016 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4017 * p-valprint.c (pascal_val_print): Ditto.
4018 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4019
4020 2003-06-02 Richard Henderson <rth@redhat.com>
4021
4022 * alpha-tdep.c (alpha_push_dummy_call): Use
4023 builtin_type_ieee_double_little instead of builtin_type_double.
4024
4025 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4026 sign-extension of 32-bit values.
4027 (alpha_store_return_value): Similarly.
4028
4029 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4030 (alpha_extract_return_value): Likewise.
4031 (alpha_store_return_value): Likewise.
4032
4033 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4034 (alpha_store_return_value): Error on IEEE Quad floats.
4035
4036 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4037 (alpha_extract_struct_value_address): Likewise.
4038 (alpha_store_return_value): Likewise.
4039 (alpha_store_struct_return): Remove.
4040 (alpha_gdbarch_init): Update hook registration to match.
4041
4042 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4043 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4044 macros where appropriate.
4045 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4046 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4047
4048 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4049 for SP, GP; void_func_ptr for PC; non-language-specific types
4050 for all others.
4051 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4052
4053 2003-06-02 Richard Henderson <rth@redhat.com>
4054
4055 * top.h (lim_at_start): Declare.
4056 * main.c (captured_main): Set it.
4057 * top.c (lim_at_start): Define.
4058 (command_loop): Use it instead of &environ.
4059 * event-top.c (command_handler): Likewise.
4060
4061 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4062
4063 * mipsnbsd-tdep.c: Update copyright years.
4064 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4065
4066 2003-06-01 Richard Henderson <rth@redhat.com>
4067
4068 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4069 (alpha-linux-tdep.o): Update dependencies.
4070 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4071 * alpha-mdebug-tdep.c: Remove unneeded includes.
4072
4073 2003-06-01 Richard Henderson <rth@redhat.com>
4074
4075 * alpha-tdep.c (alpha_register_reggroup_p): New.
4076 (alpha_gdbarch_init): Register it.
4077
4078 2003-06-02 Andrew Cagney <cagney@redhat.com>
4079
4080 * dwarfread.c: Eliminate "register"
4081 (decode_die_type): Eliminate assignment within "if".
4082 (struct_type, decode_array_element_type): Ditto.
4083 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4084 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4085 (decode_modified_type, completedieinfo): Ditto.
4086 * block.c: Eliminate "register".
4087 (blockvector_for_pc_sect): Eliminate assignment within "if".
4088 * cp-support.h (struct symbol): Opaque declaration.
4089 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4090
4091 2003-06-01 Richard Henderson <rth@redhat.com>
4092
4093 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4094 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4095
4096 2003-06-01 Adam Fedor <fedor@gnu.org>
4097
4098 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4099 * gdbarch.[ch]: Regenerate.
4100 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4101 (hppa_gdbarch_init): Set it in the gdbarch vector.
4102 * i386-tdep.c (i386_fetch_pointer_argument): New
4103 (i386_gdbarch_init): Set it into gdbarch.
4104 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4105 (rs6000_gdbarch_init): Set it in gdbarch.
4106 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4107 (sparc_gdbarch_init): Set it in gdbarch.
4108
4109 2003-06-01 Andrew Cagney <cagney@redhat.com>
4110
4111 * defs.h (extract_address): Delete declaration.
4112 * findvar.c (extract_address): Delete function.
4113 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4114 extract_address with the inline equivalent,
4115 extract_unsigned_integer.
4116 (xstormy16_extract_struct_value_address): Ditto.
4117 (xstormy16_pointer_to_address): Ditto.
4118 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4119 * v850-tdep.c (v850_push_arguments): Ditto.
4120 (v850_extract_return_value): Ditto.
4121 (v850_extract_struct_value_address): Ditto.
4122 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4123 (sparcnbsd_get_longjmp_target_64): Ditto.
4124 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4125 (get_longjmp_target): Ditto.
4126 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4127 (sh64_extract_struct_value_address): Ditto.
4128 (sh_push_arguments): Ditto.
4129 (sh64_push_arguments): Ditto.
4130 * remote-vxsparc.c (vx_read_register): Ditto.
4131 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4132 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4133 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4134 * mipsv4-nat.c (get_longjmp_target): Ditto.
4135 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4136 * mips-nat.c (get_longjmp_target): Ditto.
4137 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4138 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4139 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4140 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4141 * irix5-nat.c (get_longjmp_target): Ditto.
4142 * irix4-nat.c (get_longjmp_target): Ditto.
4143 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4144 (ia64_push_arguments): Ditto.
4145 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4146 * h8300-tdep.c (h8300_push_arguments): Ditto.
4147 (h8300_store_return_value): Ditto.
4148 (h8300_extract_struct_value_address): Ditto.
4149 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4150 (frv_push_arguments): Ditto.
4151 * avr-tdep.c (avr_pointer_to_address): Ditto.
4152 (avr_push_arguments): Ditto.
4153 * arm-tdep.c (arm_push_dummy_call): Ditto.
4154 (arm_get_longjmp_target): Ditto.
4155 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4156 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4157 (alpha_get_longjmp_target): Ditto.
4158
4159 * solib-irix.c (extract_mips_address): Inline extract_address,
4160 replacing it with extract_signed_integer.
4161 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4162 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4163 (first_link_map_member, open_symbol_file_object): Ditto.
4164 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4165 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4166 (LM_NEXT, LM_NAME): Ditto.
4167
4168 2003-06-01 Richard Henderson <rth@redhat.com>
4169
4170 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4171 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4172 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4173 (alpha_cannot_store_register): Likewise.
4174 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4175 * alpha-nat.c (supply_gregset): Likewise.
4176 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4177
4178 2003-06-01 Andrew Cagney <cagney@redhat.com>
4179
4180 * infcall.c (call_function_by_hand): Update comment on
4181 DEPRECATED_DUMMY_WRITE_SP.
4182
4183 * mips-tdep.c (mips_gdbarch_init): Do not set
4184 deprecated_dummy_write_sp.
4185 (mips_eabi_push_dummy_call): Set the SP register.
4186 (mips_o64_push_dummy_call): Set the SP register.
4187 (mips_o32_push_dummy_call): Set the SP register.
4188 (mips_n32n64_push_dummy_call): Set the SP register.
4189
4190 2003-06-01 Richard Henderson <rth@redhat.com>
4191
4192 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4193 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4194 (supply_gregset): Likewise.
4195 * alpha-tdep.c (alpha_store_return_value): Likewise.
4196 (alpha_get_longjmp_target): Likewise.
4197 (alpha_register_name): Constify array.
4198 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4199 deprecated_register_size, deprecated_register_bytes,
4200 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4201 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4202 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4203
4204 2003-06-01 Richard Henderson <rth@redhat.com>
4205
4206 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4207 from arg_reg_buffer to regcache to avoid double conversion.
4208
4209 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4210
4211 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4212 SP_REGNUM.
4213 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4214 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4215
4216 2003-06-01 Richard Henderson <rth@redhat.com>
4217
4218 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4219 (decode_frame_entry): Set it. Skip FDE augmentation.
4220
4221 2003-06-01 Richard Henderson <rth@redhat.com>
4222
4223 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4224 not overlapping PC_REGNUM.
4225
4226 2003-06-01 Richard Henderson <rth@redhat.com>
4227
4228 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4229 alpha_push_arguments. Don't dump argument register data to
4230 the target stack. Fix float and 128-bit long double semantics.
4231 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4232 (alpha_fix_call_dummy): Remove.
4233 (alpha_call_dummy_words): Remove.
4234 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4235
4236 2003-06-01 Richard Henderson <rth@redhat.com>
4237
4238 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4239
4240 2003-06-01 Andrew Cagney <cagney@redhat.com>
4241
4242 * mips-tdep.c (is_mips16_addr): New function.
4243 (make_mips16_addr, unmake_mips16_addr): New functions.
4244 (pc_is_mips16, mips_fetch_instruction): Use.
4245 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4246 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4247 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4248 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4249 TARGET_MIPS.
4250 * config/mips/tm-mips.h: Update copyright.
4251 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4252 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4253 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4254 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4255 (TM_PRINT_INSN_MACH): Delete.
4256 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4257
4258 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4259 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4260 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4261 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4262 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4263 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4264 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4265 mips*-*-riscos* and mips*-*-sysv* onto mips.
4266 * config/mips/mips64.mt: New file.
4267 * config/mips/mips.mt: New file.
4268 * config/mips/littlemips.mt: Delete file.
4269 * config/mips/decstation.mt: Delete file.
4270 * config/mips/vr4300el.mt: Delete file.
4271 * config/mips/vr5000el.mt: Delete file.
4272 * config/mips/vr5000.mt: Delete file.
4273 * config/mips/vr4100.mt: Delete file.
4274 * config/mips/vr4xxxel.mt: Delete file.
4275 * config/mips/vr4300.mt: Delete file.
4276 * config/mips/vr4xxx.mt: Delete file.
4277 * config/mips/bigmips.mt: Delete file.
4278 * config/mips/bigmips64.mt: Delete file.
4279 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4280 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4281 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4282 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4283 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4284 "tm-bigmips.h".
4285 * config/mips/tm-irix3.h: Ditto.
4286 * config/mips/tm-mipsv4.h: Ditto.
4287 * config/mips/tm-embed.h: Ditto.
4288 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4289 "tm-bigmips64.h".
4290 * config/mips/tm-vr5000el.h: Delete file.
4291 * config/mips/tm-tx39l.h: Delete file.
4292 * config/mips/tm-vr4300el.h: Delete file.
4293 * config/mips/tm-vr4xxxel.h: Delete file.
4294 * config/mips/tm-vr4300.h: Delete file.
4295 * config/mips/tm-vr4100.h: Delete file.
4296 * config/mips/tm-vr4xxx.h: Delete file.
4297 * config/mips/tm-vr5000.h: Delete file.
4298 * config/mips/tm-embedl64.h: Delete file.
4299 * config/mips/tm-embedl.h: Delete file.
4300 * config/mips/tm-embed64.h: Delete file.
4301 * config/mips/tm-bigmips64.h: Delete file.
4302 * config/mips/tm-bigmips.h: Delete file.
4303
4304 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4305
4306 Fix gdb/1216.
4307 * shnbsd-nat.c: Include "sh-tdep.h".
4308
4309 From Richard Henderson <rth@redhat.com>:
4310 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4311
4312 2003-05-31 Andrew Cagney <cagney@redhat.com>
4313
4314 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4315 forward declaration.
4316 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4317 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4318 (mips_find_saved_regs): Use set_reg_offset.
4319 (mips_frame_init_saved_regs): Delete function.
4320 (mips_pop_frame): Call mips_find_saved_regs instead of
4321 DEPRECATED_FRAME_INIT_SAVED_REGS.
4322
4323 2003-05-31 Andrew Cagney <cagney@redhat.com>
4324
4325 * mips-tdep.c (mips_gdbarch_init): Do not set
4326 deprecated_max_register_raw_size, register_virtual_size, and
4327 deprecated_max_register_virtual_size.
4328
4329 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4330
4331 * i386-tdep.c: Include "dwarf2-frame.h".
4332 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4333 * Makefile.in (i386-tdep.o): Update dependencies.
4334
4335 * dwarf2-frame.c, dwarf2-frame.h: New files.
4336 * Makefile.in (SFILES): Add dwarf2-frame.c.
4337 (dwarf2_frame_h): Define.
4338 (COMMON_OBS): Add dwarf2-frame.o.
4339 (dwarf2-frame.o): Add dependencies.
4340
4341 2003-05-31 Andreas Jaeger <aj@suse.de>
4342
4343 * x86-64-linux-nat.c: Fix comment.
4344
4345 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4346
4347 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4348 function signature.
4349
4350 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4351 have a sigcontext_addr handler.
4352 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4353 sigcontext_addr handler.
4354
4355 2003-05-31 Andrew Cagney <cagney@redhat.com>
4356
4357 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4358 (print_fp_register_row): Replace do_fp_register_row.
4359 (mips_print_fp_register): Add "file" and "frame" parameters.
4360 (mips_print_register): Add "file" and "frame" parameters.
4361 (mips_print_registers_info): Replace mips_do_registers_info.
4362 (mips_gdbarch_init): Set print_registers_info instead of
4363 deprecated_do_registers_info.
4364 (mips_read_fp_register_single): Add "frame" parameter.
4365 (mips_read_fp_register_double): Add "frame" parameter.
4366
4367 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4368
4369 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4370 Fixes a bug where GDB would print the wrong register names for
4371 targets without SSE.
4372
4373 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4374 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4375 registers.
4376
4377 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4378 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4379 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4380 TDEP->sc_sp_offset.
4381
4382 From Michal Ludvig <mludvig@suse.cz>:
4383 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4384 and `sc_num_regs'.
4385 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4386 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4387 I386_ST0_REGNUM): Move here from...
4388 * i386-tdep.c: ... here.
4389 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4390 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4391 registers if possible.
4392 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4393 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4394 Remove variables.
4395 (i386bsd_sc_reg_offset): New variable.
4396 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4397 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4398 TDEP->sc_sp_offset.
4399 (i386fbsd_sc_reg_offset): New variable.
4400 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4401 TDEP->sc_num_regs.
4402 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4403 variables.
4404 (i386fbsd4_sc_reg_offset): New variable.
4405 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4406 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4407 TDEP->sc_sp_offset.
4408 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4409 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4410 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4411 Remove variables.
4412 (i386nbsd_sc_reg_offset): New variable.
4413 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4414 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4415 TDEP->sc_sp_offset.
4416 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4417 Remove variables.
4418 (i386obsd_sc_reg_offset): New variable.
4419 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4420 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4421 TDEP->sc_sp_offset.
4422 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4423 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4424 for frame pointer offset in `struct sigcontext'.
4425
4426 2003-05-31 Andrew Cagney <cagney@redhat.com>
4427
4428 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4429 architecture methods call_dummy_words, sizeof_call_dummy_words,
4430 push_return_address, store_struct_return, and fix_call_dummy. Set
4431 push_dummy_call instead of deprecated_push_arguments.
4432 (mips_store_struct_return): Delete function.
4433 (mips_fix_call_dummy): Delete function.
4434 (mips_push_return_address): Delete function.
4435 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4436 RA_REGNUM and T9_REGNUM.
4437 (mips_n32n64_push_dummy_call): Ditto for
4438 mips_n32n64_push_arguments.
4439 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4440 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4441
4442 2003-05-31 Andrew Cagney <cagney@redhat.com>
4443
4444 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4445 "dummy_addr" to "bp_addr".
4446 * infcall.c (call_function_by_hand): Pass "funaddr" to
4447 gdbarch_push_dummy_call.
4448 * gdbarch.h, gdbarch.c: Re-generate.
4449 * i386-tdep.c (i386_push_dummy_call): Update.
4450 * arm-tdep.c (arm_push_dummy_call): Update.
4451 * d10v-tdep.c (d10v_push_dummy_call): Update.
4452
4453 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4454
4455 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4456 variable declarations.
4457 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4458 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4459 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4460 x86_64_init_frame_pc, x86_64_init_frame_pc,
4461 x86_64_function_has_prologue): Remove prototypes.
4462 (X86_64_NUM_GREGS): New define.
4463 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4464 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4465 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4466 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4467 XMM1_REGNUM): Remove defines.
4468 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4469 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4470 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4471 X86_64_XMM1_REGNUM): New defines.
4472 (struct x86_64_register_info): Renamed from `struct
4473 register_info'. Remove `size' member.
4474 (x86_64_register_info_table): Remove variable.
4475 (x86_64_register_info): New variable.
4476 (X86_64_NUM_REGS): New define.
4477 (X86_64_NUM_GREGS): Remove define.
4478 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4479 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4480 Remove variables.
4481 (x86_54_dwarf2_reg_to_regnum): Remove function.
4482 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4483 (x86_64_dwarf_reg_to_regnum): New function.
4484 (x86_64_register_name): Rewrite.
4485 (x86_64_register_raw_size): Remove function.
4486 (x86_64_register_byte_table): Remove variable.
4487 (x86_64_register_byte): Remove function.
4488 (x86_64_register_virtual_type): Remove function.
4489 (x86_64_register_type): New function.
4490 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4491 x86_64_register_convert_to_raw): Remove functions.
4492 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4493 (x86_64_use_struct_convention): Make static. Adjust for renamed
4494 defines.
4495 (x86_64_frame_init_saved_regs): Remove function.
4496 (x86_64_push_arguments): Make static. Change to accept a regcache
4497 as argument.
4498 (x86_64_store_return_value, x86_64_extract_return_value): Make
4499 static. Rewrite based on i386 counterparts.
4500 (x86_64_push_dummy_call): New function.
4501 (X86_64_NUM_SAVED_REGS): New define.
4502 (x86_64_register_number): Remove function.
4503 (x86_64_store_struct_return): Remove function.
4504 (x86_64_frameless_function_invocation,
4505 x86_64_function_has_prologue): Remove functions.
4506 (PROLOG_BUFSIZE): Remove define.
4507 (struct x86_64_frame_cache): New structure.
4508 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4509 x86_64_frame_cache, x86_64_frame_this_id,
4510 x86_64_frame_prev_register, x86_64_frame_p,
4511 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4512 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4513 functions.
4514 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4515 variables.
4516 (x86_64_skip_prologue): Rewrite in terms of
4517 x86_64_analyze_prologue.
4518 (x86_64_frame_base_address): New function.
4519 (x86_64_frame_base): New variable.
4520 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4521 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4522 set deprecated_fp_regnum, deprecated_register_size,
4523 deprecated_register_bytes, register_raw_size, register_byte,
4524 register_virtual_type, register_convertiable,
4525 register_convert_to_virtual, convert_to_raw,
4526 deprecated_get_saved_register, deprecated_target_read_fp,
4527 deprecated_push_arguments, deprecated_push_return_address,
4528 deprecated_pop_frame, deprecated_store_struct_return,
4529 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4530 frameless_function_invocation, deprecated_frame_saved_pc,
4531 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4532 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4533 deprecated_init_frame_pc and virtual_frame_pointer. Call
4534 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4535 and x86_64_frame_p. Call frame_base_set_default to register
4536 x86_64_frame_base.
4537 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4538 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4539 (_initialize_x86_64_tdep): Remove function.
4540 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4541 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4542 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4543 define.
4544 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4545 (x86_64_linux_sigcontext_addr): Rewrite.
4546 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4547 x86_64_linux_frame_saved_pc): Remove functions.
4548 (x86_64_linux_pc_in_sigtramp): Renamed from
4549 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4550 trampoline.
4551 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4552 Remove_functions.
4553 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4554 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4555 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4556 (x86_64_regmap): Rename to regmap.
4557 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4558 x86_64_num_gregs.
4559 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4560 x86_64_regmap.
4561 (x86_64_fxsave_offset): Remove function.
4562 (supply_fpregset): Simply call x86_64_supply_fxsave.
4563 (fill_fpregset): Simply call x86_64_fill_fxsave.
4564 (fetch_inferior_registers, store_inferior_registers): Avoid
4565 asignment in if-statement.
4566 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4567 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4568 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4569 (fetch_core_registers): Remove function.
4570 (linux_elf_core_fns): Remove.
4571 (offsetoff): Don't define.
4572 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4573 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4574 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4575 add core-regset.o.
4576 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4577 protection against multiple includes instead of NM_X86_64_h. Add
4578 various comments. Include "config/nm-linux.h". Don't include
4579 <signal.h>.
4580 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4581 GET_THREAD_SIGNALS): Remove defines.
4582 (x86_64_register_u_addr, kernel_u_size,
4583 lin_thread_get_thread_signals): Remove prototypes.
4584 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4585 [HAVE_LINK_H]: Don't include "solib.h".
4586 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4587 * config/i386/tm-x86-64linux.h: Fix comments.
4588 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4589 x86-64-tdep.o): Update dependencies.
4590
4591 2003-05-30 Andrew Cagney <cagney@redhat.com>
4592
4593 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4594 Change parameter type to a "struct regcache *".
4595
4596 * gdbarch.sh: Regardless of the multi-arch level, always define
4597 the macro when not already defined.
4598 * gdbarch.h, gdbarch.c: Re-generate.
4599
4600 2003-05-30 Richard Henderson <rth@redhat.com>
4601
4602 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4603 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4604 (alpha_mdebug_frame_this_id): Likewise.
4605 (alpha_mdebug_frame_prev_register): Likewise.
4606 (alpha_mdebug_frame_base_address): Likewise.
4607 (alpha_mdebug_frame_locals_address): Likewise.
4608 (alpha_mdebug_frame_args_address): Likewise.
4609 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4610 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4611 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4612 loop increment.
4613 (alpha_heuristic_frame_this_id): Make static.
4614 (alpha_heuristic_frame_prev_register): Likewise.
4615 (alpha_heuristic_frame_base_address): Likewise.
4616 * alpha-tdep.h: Update.
4617
4618 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4619
4620 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4621 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4622 defenitions.
4623 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4624 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4625 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4626 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4627 I386_ST0_REGNUM): New defines.
4628 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4629 codestream_get): Remove define.
4630 (codestream_next_addr, condestream_addr, condestream_buf,
4631 codestream_off, codestream_cnt): Remove variables.
4632 (codestream_fill, codestream_seek, codestream_read): Remove
4633 functions.
4634 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4635 functionality.
4636 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4637 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4638 i386_frame_saved_pc, i386_saved_pc_after_call,
4639 i386_frame_num_args, i386_frame_init_saved_regs,
4640 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4641 i386_push_arguments): Remove functions.
4642 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4643 functionality. Use i386_analyze_prologue instead of
4644 i386_get_frame_setup.
4645 (I386_NUM_SAVED_REGS): New define.
4646 (struct i386_frame_cache): New structure.
4647 (i386_alloc_frame_cache, i386_analyze_struct_return,
4648 i386_skip_probe, i386_analyze_frame_setup,
4649 i386_analyze_register_saves, i386_analyze_prologue,
4650 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4651 i386_frame_prev_register, i386_sigtramp_frame_cache,
4652 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4653 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4654 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4655 New functions.
4656 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4657 New variables.
4658 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4659 I386_EAX_REGNUM and I386_EDX_REGNUM.
4660 (i386_extract_return_value, i386_store_return_value): Use
4661 I386_ST0_REGNUM where appropriate.
4662 (i386_extract_struct_value_address): Rewrite to use extract_address.
4663 (i386_svr4_pc_in_sigtramp): Add comment.
4664 (i386_svr4_sigcontext_addr): Rewrite.
4665 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4666 TDEP->sc_sp_offset.
4667 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4668 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4669 of new defines. Set push_dummy_call, don't set
4670 deprecated_push_arguments, deprecated_push_return_address,
4671 deprecated_pop_frame. Don't set parm_boundary. Don't set
4672 deprecated_frame_chain, deprecated_frame_saved_pc,
4673 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4674 save_dummy_frame_tos, unwind_pc. Call
4675 frame_unwind_append_predicate and frame_base_set_default. Don't
4676 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4677 Don't set frameless_function_invocation. Don't set
4678 deprecated_register_bytes, deprecated_register_size,
4679 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4680 * i386-linux-tdep.c: Fix formatting in some comments.
4681 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4682 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4683 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4684 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4685 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4686 redundant parentheses.
4687 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4688 (i386_linux_sigcontext_addr): Use it. Rewrite.
4689 (find_minsym_and_objfile): Change name of second argument.
4690 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4691 changed. Use frame_pc_unwind instead of
4692 DEPRECATED_SAVED_PC_AFTER_CALL.
4693 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4694 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4695 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4696 unwinder.
4697 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4698 "dummy-frame.h".
4699 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4700 (_initialize_i386_cygwin_tdep): New prototype.
4701 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4702 deprecated_frame_chain_valid.
4703 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4704 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4705 Rely on the SVR4 defaults.
4706 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4707 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4708
4709 2003-05-30 Andrew Cagney <cagney@redhat.com>
4710
4711 * infcall.c (call_function_by_hand): Always call
4712 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4713
4714 2003-05-30 Richard Henderson <rth@redhat.com>
4715
4716 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4717 increment.
4718
4719 2003-05-29 Jim Blandy <jimb@redhat.com>
4720
4721 Use gdbarch methods for solib stuff on PowerPC Linux.
4722 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4723 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4724 show through.
4725 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4726 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4727 giving the same effect as the #definitions above.
4728
4729 2003-05-29 Adam Fedor <fedor@gnu.org>
4730
4731 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4732 (find_implementation_from_class): Replace it with the standard
4733 case i.e. do nothing.
4734
4735 2003-05-29 Richard Henderson <rth@redhat.com>
4736
4737 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4738 (alpha_linux_sigtramp_offset): Use it. Make static.
4739 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4740 update for new frame model.
4741 * alpha-mdebug-tdep.c: New file.
4742 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4743 (alpha_osf1_init_abi): Install it.
4744 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4745 (linked_proc_desc_table): Remove.
4746 (alpha_frame_past_sigtramp_frame): Remove.
4747 (alpha_dynamic_sigtramp_offset): Remove.
4748 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4749 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4750 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4751 (push_sigtramp_desc): Remove.
4752 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4753 (alpha_cannot_store_register): Likewise.
4754 (alpha_sigcontext_addr): Remove.
4755 (alpha_find_saved_regs): Remove.
4756 (alpha_frame_init_saved_regs): Remove.
4757 (alpha_init_frame_pc_first): Remove.
4758 (read_next_frame_reg): Remove.
4759 (alpha_frame_saved_pc): Remove.
4760 (alpha_saved_pc_after_call): Remove.
4761 (temp_proc_desc, temp_saved_regs): Remove.
4762 (alpha_about_to_return): Remove.
4763 (cached_proc_desc): Remove.
4764 (alpha_frame_chain): Remove.
4765 (alpha_print_extra_frame_info): Remove.
4766 (alpha_init_extra_frame_info): Remove.
4767 (alpha_frame_locals_address): Remove.
4768 (alpha_frame_args_address): Remove.
4769 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4770 (alpha_push_dummy_frame): Remove.
4771 (alpha_pop_frame): Remove.
4772 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4773 (alpha_read_insn): New.
4774 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4775 for different insn encodings.
4776 (alpha_in_lenient_prologue): Remove.
4777 (struct alpha_sigtramp_unwind_cache): New.
4778 (alpha_sigtramp_frame_unwind_cache): New.
4779 (alpha_sigtramp_register_address): New.
4780 (alpha_sigtramp_frame_this_id): New.
4781 (alpha_sigtramp_frame_prev_register): New.
4782 (alpha_sigtramp_frame_unwind): New.
4783 (alpha_sigtramp_frame_p): New.
4784 (struct alpha_heuristic_unwind_cache): New.
4785 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4786 don't count nop insns that occur between functions.
4787 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4788 heuristic_proc_desc, but without the mdebug wrapping.
4789 (alpha_heuristic_frame_this_id): New.
4790 (alpha_heuristic_frame_prev_register): New.
4791 (alpha_heuristic_frame_unwind): New.
4792 (alpha_heuristic_frame_p): New.
4793 (alpha_heuristic_frame_base_address): New.
4794 (alpha_heuristic_frame_base): New.
4795 (alpha_unwind_dummy_id): New.
4796 (alpha_unwind_pc): New.
4797 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4798 frame related deprecated initializations; install replacements.
4799 (alpha_dump_tdep): Remove.
4800 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4801 (alpha_read_insn, alpha_after_prologue,
4802 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4803 alpha_heuristic_frame_prev_register,
4804 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4805 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4806 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4807 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4808
4809 2003-05-29 Andrew Cagney <cagney@redhat.com>
4810
4811 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4812 dependant on the availability of ASSERT_FUNCTION.
4813 (ASSERT_FUNCTION): Do not define when there is no function name.
4814
4815 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4816
4817 From Jimi X <jimix@watson.ibm.com>:
4818 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4819
4820 2003-05-28 Jim Blandy <jimb@redhat.com>
4821
4822 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4823 argument to ptrace to int; the system headers should give it the
4824 right type, and pointers don't fit in ints on powerpc64-*-*.
4825
4826 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4827
4828 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4829 DW_TAG_catch_block.
4830
4831 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4832
4833 * stabsread.c (dbx_lookup_type): Make static.
4834 (read_type): Ditto.
4835 (add_undefined_type): Ditto.
4836 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4837 not export.
4838
4839 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4840
4841 * hpread.c (hpread_has_name): Make static.
4842 (hpread_psymtab_to_symtab): Ditto.
4843 (file_exists): Ditto.
4844 (hpread_call_pxdb): Ditto.
4845 (hpread_pxdb_needed): Ditto.
4846 (hpread_quick_traverse): Ditto.
4847 (hpread_get_header): Ditto.
4848 (hpread_get_lntt): Ditto.
4849 (hpread_get_slt): Ditto.
4850 (class_of): Ditto.
4851
4852 2003-05-25 Andreas Schwab <schwab@suse.de>
4853
4854 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4855 stack_align and deprecated_extra_stack_alignment_needed.
4856 (m68k_stack_align): Delete.
4857
4858 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4859 (m68k_register_virtual_size): Likewise.
4860 (altos_skip_prologue): Remove obsolete function.
4861 (isi_frame_num_args): Likewise.
4862 (news_frame_num_args): Likewise.
4863 (m68k_fix_call_dummy): Make static.
4864 (m68k_push_dummy_frame): Likewise.
4865 (m68k_pop_frame): Likewise.
4866 (m68k_skip_prologue): Likewise.
4867 (m68k_frame_init_saved_regs): Likewise.
4868 (m68k_saved_pc_after_call): Likewise.
4869 (m68k_get_longjmp_target): Make multi-arch.
4870 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4871 structure. Register m68k_get_longjmp_target if enabled.
4872 * m68k-tdep.h (struct gdbarch_tdep): Define.
4873 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4874
4875 * Makefile.in (config.status): Also depend on configure.tgt
4876 and configure.host.
4877 (m68klinux-tdep.o): Update dependencies.
4878 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4879 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4880 (M68K_LINUX_JB_PC): Define.
4881 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4882 and take additional parameter.
4883 (m68k_linux_sigtramp_saved_pc): Update.
4884 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4885 m68k_linux_pc_in_sigtramp, in_plt_section,
4886 find_solib_trampoline_target.
4887 * config/m68k/tm-linux.h: Don't include any tm headers.
4888 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4889 (JB_ELEMENT_SIZE): Likewise.
4890 (JB_PC): Likewise.
4891 (GET_LONGJMP_TARGET): Likewise.
4892 (IN_SIGTRAMP): Likewise.
4893 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4894
4895 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4896
4897 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4898 (sparc32_push_arguments): Re-implement by calling
4899 sparc32_do_push_arguments.
4900
4901 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4902
4903 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4904 SPARC_O1_REGNUM): New defines.
4905 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4906 (sparc32_store_return_value): New function.
4907 (sparc_extract_struct_value_address): Rewrite to operate on a
4908 regcache.
4909 (sparc_gdbarch_init): Don't set
4910 deprecated_extract_struct_value_address. Set
4911 extract_struct_value_address instead. Don't set
4912 deprecated_extract_return_value and deprecated_store_return_value
4913 for 32-bit targets. Set extract_return_value and
4914 store_return_value instead.
4915 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4916 DEPRECTAED_EXTRACT_RETURN_VALUE,
4917 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4918 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4919 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4920 (sparc_store_return_value): Remove prototype.
4921 (sparc32_store_return_value): New prototype.
4922 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4923 Adjust prototypes.
4924
4925 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4926
4927 * sparcnbsd-tdep.c: Include "gdb_string.h".
4928
4929 2003-05-23 Andrew Cagney <cagney@redhat.com>
4930
4931 * p-valprint.c (pascal_val_print): Replace extract_address with
4932 the inline equivalent extract_unsigned_integer.
4933 * jv-valprint.c (java_value_print): Ditto.
4934 * ada-valprint.c (ada_val_print_1): Ditto.
4935 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4936
4937 2003-05-23 Theodore A. Roth <troth@openavr.org>
4938
4939 * blockframe.c (frameless_look_for_prologue): Remove unused
4940 after_prologue variable.
4941
4942 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4943
4944 * blockframe.c (get_pc_function_start): Rewrite to avoid
4945 asignments in if-statements.
4946
4947 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4948
4949 Committed by Elena Zannoni <ezannoni@redhat.com>.
4950 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4951 files, don't relocate absolute symbols (and do use mst_abs).
4952
4953 2003-05-23 Andrew Cagney <cagney@redhat.com>
4954
4955 * objc-lang.c: Include "gdb_assert.h".
4956 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4957 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4958 (gdb_check, gdb_check_fatal): Delete functions.
4959 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4960 gdb_assert.
4961 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4962 * Makefile.in (objc-lang.o): Update dependencies.
4963
4964 2003-05-22 Ian Lance Taylor <ian@airs.com>
4965
4966 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4967 with fprintf_filtered, not fprintf_unfiltered.
4968
4969 2003-05-22 Andrew Cagney <cagney@redhat.com>
4970
4971 * stack.c (frame_info): Inline extract_address, replacing it with
4972 extract_unsigned_integer.
4973 * findvar.c (unsigned_pointer_to_address): Ditto.
4974 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4975 * dwarf2expr.c (dwarf2_read_address): Ditto.
4976 * frame.c (frame_pc_unwind): Update comment.
4977 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4978
4979 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4980
4981 * infptrace.c (detach): Call print_sys_errmsg rather than
4982 perror_with_name to issue warning message when errno is non-zero
4983 after calling ptrace detach.
4984
4985 2003-05-21 J. Brobecker <brobecker@gnat.com>
4986
4987 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4988 macro definitions from here...
4989 * hppa-tdep.c: ...to there.
4990
4991 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4992
4993 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4994 register_ptrace_addr(). Fix all callers.
4995
4996 2003-05-21 Andreas Schwab <schwab@suse.de>
4997
4998 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4999 dependencies.
5000 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5001 end.
5002 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5003 (_initialize_m68k_linux_tdep): New function.
5004 (m68k_linux_frame_saved_pc): Make static.
5005 (m68k_linux_extract_return_value): Likewise.
5006 (m68k_linux_store_return_value): Likewise.
5007 (m68k_linux_extract_struct_value_address): Likewise.
5008 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5009 Remove.
5010 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5011 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5012 (DEPRECATED_FRAME_SAVED_PC): Remove.
5013
5014 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5015
5016 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5017 regset numbering rather than our own.
5018
5019 2003-05-19 David Carlton <carlton@bactrian.org>
5020
5021 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5022
5023 2003-05-19 David Carlton <carlton@bactrian.org>
5024
5025 Partial fix for PR c++/827.
5026 * cp-support.h: Include symtab.h.
5027 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5028 * cp-namespace.c: Update contributors.
5029 (cp_lookup_symbol_nonlocal): New.
5030 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5031 (lookup_symbol_file): Ditto.
5032 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5033 * block.h: Declare block_scope, block_using, block_global_block.
5034 * block.c (block_scope): New.
5035 (block_using, block_global_block): Ditto.
5036 * Makefile.in (cp_support_h): Depend on symtab_h.
5037 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5038
5039 2003-05-19 David Carlton <carlton@bactrian.org>
5040
5041 * language.h (struct language_defn): Add 'la_value_of_this'
5042 and 'la_lookup_symbol_nonlocal' members.
5043 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5044 lookup_symbol_static, lookup_symbol_global,
5045 lookup_symbol_aux_block.
5046 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5047 if we should search fields of this and how to do static/global
5048 lookup.
5049 (lookup_symbol_aux_block): Make extern.
5050 (basic_lookup_symbol_nonlocal): New.
5051 (lookup_symbol_static, lookup_symbol_global): Ditto.
5052 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5053 'la_lookup_symbol_nonlocal' members.
5054 * c-lang.c (c_language_defn, cplus_language_defn)
5055 (asm_language_defn, minimal_language_defn): Ditto.
5056 * jv-lang.c (java_language_defn): Ditto.
5057 * language.c (unknown_language_defn, auto_language_defn)
5058 (local_language_defn): Ditto.
5059 * m2-lang.c (m2_language_defn): Ditto.
5060 * objc-lang.c (objc_language_defn): Ditto.
5061 * scm-lang.c (scm_language_defn): Ditto.
5062 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5063 * p-lang.c (pascal_language_defn): Ditto for both.
5064 * Makefile.in (f-lang.o): Depend on value_h.
5065 (p-lang.o): Ditto.
5066
5067 2003-05-19 David Carlton <carlton@bactrian.org>
5068
5069 * block.h: Declare block_static_block.
5070 * block.c (block_static_block): New.
5071 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5072 lookup_symbol_aux_local, calling block_static_block instead.
5073 (lookup_symbol_aux_local): Delete 'static_block' argument.
5074
5075 2003-05-19 David Carlton <carlton@bactrian.org>
5076
5077 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5078
5079 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5080
5081 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5082 register numbers mapping.
5083
5084 2003-05-18 Adam Fedor <fedor@gnu.org>
5085
5086 * symtab.c (completion_list_objc_symbol): New function.
5087 (make_symbol_completion_list): Use it to add ObjC symbols
5088 when looking though the list.
5089 (language_search_unquoted_string): New function.
5090 (make_file_symbol_completion_list): Use it.
5091
5092 2003-05-18 Andreas Schwab <schwab@suse.de>
5093
5094 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5095 dependencies.
5096 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5097 as m68k_linux_extract_return_value.
5098 (DEPRECATED_STORE_RETURN_VALUE): Define as
5099 m68k_linux_store_return_value.
5100 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5101 m68k_linux_extract_struct_value_address.
5102 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5103 get_next_frame, get_frame_base, get_frame_pc.
5104 (m68k_linux_frame_saved_pc): Use get_frame_base.
5105 (m68k_linux_extract_return_value): New function.
5106 (m68k_linux_store_return_value): New function.
5107 (m68k_linux_extract_struct_value_address): New function.
5108 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5109
5110 * c-exp.y (typebase): Remove duplicate occurence of
5111 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5112 of lookup_signed_typename.
5113
5114 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5115
5116 * dwarf2loc.c (find_location_expression): Change type of second
5117 argument to `size_t *'.
5118 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5119 for size variable.
5120
5121 2003-05-18 David Carlton <carlton@bactrian.org>
5122
5123 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5124 'linkage_name'. Add comment.
5125 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5126 'linkage_name'.
5127 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5128 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5129 (lookup_block_symbol): Ditto.
5130
5131 2003-05-16 Andrew Cagney <cagney@redhat.com>
5132
5133 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5134 * gdbarch.h, gdbarch.c: Re-generate.
5135 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5136 * TODO (REGISTER_BYTES): Delete reference.
5137 * alpha-tdep.c (alpha_gdbarch_init): Update.
5138 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5139 * x86-64-tdep.c (x86_64_init_abi): Update.
5140 * vax-tdep.c (vax_gdbarch_init): Update.
5141 * v850-tdep.c (v850_gdbarch_init): Update.
5142 * sparc-tdep.c (sparc_gdbarch_init): Update.
5143 * sh-tdep.c (sh_gdbarch_init): Update.
5144 * s390-tdep.c (s390_gdbarch_init): Update.
5145 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5146 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5147 (ns32k_gdbarch_init_32382): Update.
5148 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5149 * mcore-tdep.c (mcore_gdbarch_init): Update.
5150 * m68k-tdep.c (m68k_gdbarch_init): Update.
5151 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5152 * ia64-tdep.c (ia64_gdbarch_init): Update.
5153 * i386-tdep.c (i386_gdbarch_init): Update.
5154 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5155 * hppa-tdep.c (hppa_gdbarch_init): Update.
5156 * h8300-tdep.c (h8300_gdbarch_init): Update.
5157 * frv-tdep.c (frv_gdbarch_init): Update.
5158 * cris-tdep.c (cris_gdbarch_init): Update.
5159 * avr-tdep.c (avr_gdbarch_init): Update.
5160 * arm-tdep.c (arm_gdbarch_init): Update.
5161 * sparc-tdep.c (sparc_pop_frame): Update.
5162 * rs6000-tdep.c (rs6000_pop_frame): Update.
5163 * remote.c (init_remote_state): Update.
5164 (remote_prepare_to_store): Update.
5165 * remote-vx.c (vx_prepare_to_store): Update.
5166 * remote-sds.c (sds_fetch_registers): Update.
5167 (sds_prepare_to_store): Update.
5168 * remote-array.c: Update.
5169 * regcache.c (init_legacy_regcache_descr): Update.
5170 (init_regcache_descr): Update.
5171 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5172 (mips_o64_extract_return_value): Update.
5173 * irix5-nat.c (fetch_core_registers): Update.
5174 * irix4-nat.c (fetch_core_registers): Update.
5175 * i386-tdep.h: Update.
5176 * hppa-tdep.c (pa_do_registers_info): Update.
5177 (pa_do_strcat_registers_info): Update.
5178 * cris-tdep.c (cris_register_bytes_ok): Update.
5179 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5180 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5181 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5182 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5183 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5184 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5185 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5186 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5187 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5188 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5189 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5190 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5191 (REGISTER_BYTES_OK): Update.
5192 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5193 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5194
5195 2003-05-16 Ian Lance Taylor <ian@airs.com>
5196
5197 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5198 (vax_print_insn, print_insn_arg): Remove static functions.
5199 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5200 print_insn_vax from opcodes library.
5201 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5202
5203 2003-05-15 Andrew Cagney <cagney@redhat.com>
5204
5205 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5206 * target.h (memory_breakpoint_from_pc): Delete declaration.
5207 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5208 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5209 * monitor.c (monitor_insert_breakpoint): Use
5210 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5211 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5212 * gdbarch.h, gdbarch.c: Re-generate.
5213 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5214 (sparc_gdbarch_init): Set breakpoint_from_pc to
5215 sparc_breakpoint_from_pc.
5216 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5217 (BREAKPOINT_FROM_PC): Define.
5218 (sparc_breakpoint_from_pc): Declare.
5219 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5220 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5221 (BREAKPOINT_FROM_PC): Define.
5222 (BREAKPOINT): Delete macro.
5223 * target.h: Update comment.
5224 * s390-tdep.c (s390_gdbarch_init): Update comments.
5225 * remote.c: Update comments.
5226 * remote-mips.c: Update comments.
5227 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5228 * mem-break.c: Update comment.
5229 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5230 (ia64_memory_insert_breakpoint): Update.
5231 * config/sparc/tm-sparc.h: Update comment.
5232 * config/pa/tm-hppa64.h: Update comment.
5233 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5234 (rs6000_breakpoint_from_pc): Update.
5235 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5236 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5237 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5238 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5239 (mips_breakpoint_from_pc): Update.
5240 (mips_dump_tdep): Update.
5241
5242 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5243 * minsyms.c (lookup_minimal_symbol): Inline
5244 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5245
5246 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5247 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5248 * p-lang.c (pascal_printstr): Ditto.
5249 * objc-lang.c (objc_printstr): Ditto.
5250 * m2-lang.c (m2_printstr): Ditto.
5251 * jv-valprint.c (java_print_value_fields): Ditto.
5252 * f-lang.c (f_printstr): Ditto.
5253 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5254 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5255 for repeat_count_threshold.
5256 * Makefile.in (cp-valprint.o): Update dependencies.
5257
5258 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5259
5260 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5261 (examine_prologue): Support looking through leaf functions, knowing
5262 they start with mov r2,r12. Support skipping over indirect stores
5263 of the input registers. Upon hitting a non-nop branch instruction
5264 or predicated instruction, bail out by setting lim_pc to the current
5265 pc value in the loop. At the end, if the lim_pc value is still
5266 beyond our calculated value and we have trust_limit set,
5267 use the lim_pc value.
5268
5269 2003-05-15 Andrew Cagney <cagney@redhat.com>
5270
5271 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5272 generic_find_dummy_frame.
5273 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5274 (deprecated_generic_find_dummy_frame): Update.
5275 (deprecated_read_register_dummy): Update.
5276 * frame.c (deprecated_generic_get_saved_register): Update.
5277
5278 2003-05-15 Theodore A. Roth <troth@openavr.org>
5279
5280 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5281 (avr_gdbarch_init): Set breakpoint_from_pc method.
5282
5283 2003-05-15 Andrew Cagney <cagney@redhat.com>
5284
5285 * regcache.c (build_regcache): Set deprecated_register_valid
5286 directly.
5287 (deprecated_grub_regcache_for_register_valid): Delete function.
5288 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5289 declaration.
5290
5291 2003-05-15 David Carlton <carlton@bactrian.org>
5292
5293 Committed by Elena Zannoni <ezannoni@redhat.com>
5294 * symtab.c (lookup_symbol_aux): Delete calls to
5295 lookup_symbol_aux_minsyms.
5296 (lookup_symbol_aux_minsyms): Comment out function and
5297 prototype. Delete lookup by mangled name.
5298
5299 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5300
5301 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5302 correctly indicate an empty stack and ``stack_allocated'' to the
5303 indicate the number of elements initially allocated.
5304 (dwarf_expr_grow_stack): Simplify method for computing new
5305 stack size. Don't loop infinitely if ``stack_len'' is zero.
5306 (execute_stack_op): Move ``ctx->in_reg'' initialization
5307 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5308 be used in conjuction with DW_OP_piece. Revise error message
5309 accordingly.
5310
5311 2003-05-14 Theodore A. Roth <troth@openavr.org>
5312
5313 * MAINTAINERS: Update my email address.
5314 * avr-tdep.c: Ditto.
5315
5316 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5317
5318 * symtab.h (enum domain_enum): Rename from namespace_enum.
5319 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5320 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5321 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5322 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5323 TYPES_NAMESPACE, METHODS_NAMESPACE.
5324 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5325 (struct symbol, struct partial_symbol): Rename field
5326 'namespace_enum namespace' to 'domain_enum domain'.
5327 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5328 Delete old define kludge for namespace.
5329
5330 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5331 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5332 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5333 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5334 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5335 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5336 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5337 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5338 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5339 occurrences of the above.
5340
5341 2003-05-14 Ian Lance Taylor <ian@airs.com>
5342
5343 * Makefile.in (install-only): Use $(SHELL) when running
5344 mkinstalldirs.
5345
5346 2003-05-13 Ian Lance Taylor <ian@airs.com>
5347
5348 * MAINTAINERS (write after approval): Add myself.
5349
5350 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5351 second and third arguments.
5352 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5353 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5354
5355 2003-05-13 Andrew Cagney <cagney@redhat.com>
5356
5357 * defs.h (store_address): Delete declaration.
5358 findvar.c (store_address): Delete function.
5359 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5360 store_unsigned_integer.
5361 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5362 * v850-tdep.c (v850_push_arguments): Ditto.
5363 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5364 * sh-tdep.c (sh64_get_saved_register): Ditto.
5365 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5366 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5367 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5368 (mips_get_saved_register): Ditto.
5369 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5370 (find_func_descr, ia64_push_arguments): Ditto.
5371 * i386-tdep.c (i386_push_arguments): Ditto.
5372 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5373 * frv-tdep.c (frv_push_arguments): Ditto.
5374 * frame.c (legacy_saved_regs_prev_register): Ditto.
5375 (deprecated_generic_get_saved_register): Ditto.
5376 * findvar.c (unsigned_address_to_pointer): Ditto.
5377 * dwarf2read.c (dwarf2_const_value): Ditto.
5378 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5379 * alpha-tdep.c (alpha_push_arguments): Ditto.
5380
5381 2003-05-12 J. Brobecker <brobecker@gnat.com>
5382
5383 * NEWS: Mention that the hppa-hpux port has been partially
5384 multiarched (32bit ABIT only, so far).
5385
5386 2003-05-11 Andrew Cagney <cagney@redhat.com>
5387
5388 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5389 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5390 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5391 sim/testsuite/sim/arm/misaligned2.ms, and
5392 sim/testsuite/sim/arm/misaligned3.ms.
5393 * disasm.h (struct ui_file): Add opaque struct declaration.
5394 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5395 * frame.h (struct ui_file): Ditto.
5396
5397 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5398
5399 * value.h: Pretty print.
5400
5401 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5402
5403 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5404
5405 2003-05-08 Andrew Cagney <cagney@redhat.com>
5406
5407 * regcache.h (max_register_size): Delete declaration.
5408 * regcache.c (max_register_size): Delete function.
5409 (struct regcache_descr): Delete field "max_register_size".
5410 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5411 registers fit in MAX_REGISTER_SIZE.
5412 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5413 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5414 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5415 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5416 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5417 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5418 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5419 * dve3900-rom.c, hppa-tdep.c: Ditto.
5420
5421 2003-05-08 David Carlton <carlton@math.stanford.edu>
5422
5423 * valops.c (push_word): Fix typo.
5424
5425 2003-05-08 Andrew Cagney <cagney@redhat.com>
5426
5427 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5428 * gdbarch.h: Re-generate.
5429 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5430 (legacy_max_register_raw_size): Delete declaration.
5431 * regcache.c (legacy_max_register_raw_size): Delete function.
5432 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5433 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5434 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5435 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5436 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5437 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5438 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5439 * findvar.c, dwarf2cfi.c: Ditto.
5440
5441 2003-05-08 Andrew Cagney <cagney@redhat.com>
5442
5443 * mips-tdep.c (read_signed_register): New function, moved to here
5444 from "regcache.c".
5445 (read_signed_register_pid): Ditto.
5446 * regcache.c (read_signed_register_pid): Delete function, moved to
5447 "mips-tdep.c".
5448 (read_signed_register): Ditto.
5449 * regcache.h (read_signed_register): Delete declaration.
5450 (read_signed_register_pid): Delete declaration.
5451
5452 2003-05-08 Andrew Cagney <cagney@redhat.com>
5453
5454 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5455 * gdbarch.h: Re-generate.
5456 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5457 (legacy_max_register_virtual_size): Delete declaration.
5458 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5459 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5460 * tracepoint.c (memrange_sortmerge): Ditto.
5461 * sparc-tdep.c (sparc_print_registers): Ditto.
5462 * regcache.c (legacy_max_register_virtual_size): Delete function.
5463
5464 2002-05-08 J. Brobecker <brobecker@gnat.com>
5465
5466 * fork-child.c (escape_bang_in_quoted_argument): New function.
5467 (fork_inferior): Escape '!' characters in quoted arguments
5468 only when needed.
5469
5470 2003-05-08 J. Brobecker <brobecker@gnat.com>
5471
5472 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5473 the language of the CU is not currently supported by GDB.
5474
5475 2003-05-08 J. Brobecker <brobecker@gnat.com>
5476
5477 * defs.h (language): Add language_minimal enum value.
5478 * c-lang.c (minimal_language_defn): New language definition.
5479 (_initialize_c_language): Add the new minimal language to the list
5480 of languages known to GDB.
5481
5482 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5483
5484 * frame.c (get_frame_type): Don't attempt to lazily initialize
5485 frame's unwinder for legacy frames.
5486
5487 2003-05-07 Andrew Cagney <cagney@redhat.com>
5488
5489 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5490 and "regcache" parameters.
5491 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5492
5493 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5494
5495 * dwarf2read.c (dwarf_decode_lines): Only use output of
5496 check_cu_functions() when calling record_line(). Do not update
5497 the current address.
5498
5499 2003-05-07 Andrew Cagney <cagney@redhat.com>
5500
5501 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5502 code.
5503
5504 2003-05-07 Jim Blandy <jimb@redhat.com>
5505
5506 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5507 'maint info symtabs' and 'maint info psymtabs'.
5508 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5509 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5510 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5511 Declarations updated.
5512 * maint.c (maintenance_list_command): Delete.
5513 (_initialize_maint_cmds): Update calls to add_cmd.
5514 * gdbcmd.h (maintenancelistlist): Delete declaration.
5515 * cli/cli-cmds.c (maintenancelistlist): Delete.
5516 (init_cmd_lists): Don't initialize it.
5517 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5518
5519 2003-05-07 Andrew Cagney <cagney@redhat.com>
5520
5521 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5522 "regcache".
5523 (d10v_print_registers_info): Update.
5524 (d10v_dmap_register, d10v_imap_register): Delete functions.
5525 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5526 and "imap_register".
5527 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5528 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5529 * arch-utils.c (generic_remote_translate_xfer_address): Add
5530 "regcache" and "gdbarch" parameters.
5531 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5532 parameter. Change class to multi-arch.
5533 * gdbarch.h, gdbarch.c: Re-generate.
5534 * remote.c (remote_xfer_memory): Use
5535 gdbarch_remote_translate_xfer_address.
5536
5537 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5538
5539 * infrun.c (prev_pc): Move declaration ahead of proceed().
5540 (proceed): Refresh prev_pc value before resuming.
5541 (stop_stepping): Remove code to refresh prev_pc.
5542
5543 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5544
5545 * nto-tdep.c: Removed stray comment.
5546
5547 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5548
5549 * i386-nto-tdep.c: Fix old K&R function definitions.
5550 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5551 Also change add_show_from_set() call to add_setshow_cmd().
5552 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5553
5554 2003-05-05 Andrew Cagney <cagney@redhat.com>
5555
5556 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5557 (fprint_dummy_frames): New function.
5558 (maintenance_print_dummy_frames): New function.
5559 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5560 * frame.c (fprint_frame_id): Make global.
5561 * frame.h (fprint_frame_id): Declare.
5562 * Makefile.in (dummy-frame.o): Update dependencies.
5563
5564 2003-05-05 Andrew Cagney <cagney@redhat.com>
5565
5566 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5567 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5568 SIZEOF_CALL_DUMMY_WORDS.
5569 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5570 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5571 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5572 CALL_DUMMY_BREAKPOINT_OFFSET.
5573 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5574 CALL_DUMMY_START_OFFSET.
5575 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5576 * gdbarch.h, gdbarch.c: Re-generate.
5577 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5578 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5579 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5580 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5581 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5582 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5583 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5584 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5585 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5586 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5587 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5588 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5589 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5590 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5591 * config/sparc/tm-sparc.h: Update.
5592
5593 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5594
5595 * configure.tgt: Add i[3456]86-*-nto*.
5596 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5597 * nto-tdep.c: New file. Neutrino target support routines.
5598 * nto-tdep.h: New file. Neutrino target header.
5599 * config/tm-qnxnto.h: New file.
5600 * config/i386/i386nto.mt: New file.
5601 * config/i386/tm-i386nto.h: New file.
5602
5603 2003-05-04 Andrew Cagney <cagney@redhat.com>
5604
5605 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5606 (load_infrun_state): Ditto.
5607 (struct thread_info): Drop "prev_func_name" field.
5608 * thread.c (load_infrun_state): Update.
5609 (save_infrun_state): Update.
5610 * infrun.c (prev_func_name): Delete variable.
5611 (init_wait_for_inferior): Do not clear prev_func_name.
5612 (stop_stepping, keep_going, context_switch): Do not swap
5613 prev_func_name.
5614 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5615 instead of PC_IN_SIGTRAMP.
5616
5617 2003-05-04 Andrew Cagney <cagney@redhat.com>
5618
5619 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5620 REGISTER_BYTE with register_offset_hack.
5621 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5622 that REGISTER_BYTE is consistent with the regcache.
5623 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5624 * gdbarch.h, gdbarch.c: Regenerate.
5625
5626 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5627
5628 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5629 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5630
5631 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5632
5633 2003-05-03 J. Brobecker <brobecker@gnat.com>
5634
5635 From Thierry Schneider <tpschneider1@yahoo.com>
5636 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5637 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5638 (mi-cmd-symbol.o): Add rule.
5639
5640 2003-05-03 Andrew Cagney <cagney@redhat.com>
5641
5642 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5643 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5644 * gdbarch.h, gdbarch.c: Re-generate.
5645 * d10v-tdep.c (d10v_push_dummy_code): New function.
5646 (d10v_gdbarch_init): Set push_dummy_code.
5647 * infcall.c (legacy_push_dummy_code): New function.
5648 (generic_push_dummy_code): New function.
5649 (push_dummy_code): New function.
5650 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5651 instead of dummy_addr, to push_dummy_call. Move call to
5652 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5653 switch.
5654 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5655
5656 2003-05-03 Andrew Cagney <cagney@redhat.com>
5657
5658 * disasm.h (print_insn): Declare.
5659 * disasm.c (init_gdb_disassemble_info): New function.
5660 (gdb_disassembly): Call init_gdb_disassemble_info.
5661 (gdb_print_insn): New function.
5662 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5663 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5664 * mcore-tdep.c: Include "disasm.h"
5665 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5666 * d10v-tdep.c: Include "disasm.h".
5667 (display_trace): Call gdb_print_insn, instead of print_insn.
5668 (print_insn): Delete function.
5669 * printcmd.c: Include "disasm.h".
5670 (print_insn): Delete function.
5671 (print_formatted): Call gdb_print_insn, instead of print_insn.
5672 * Makefile.in (printcmd.o): Update dependencies.
5673 (mcore-tdep.o, d10v-tdep.o): Ditto.
5674
5675 2003-05-02 Andrew Cagney <cagney@redhat.com>
5676
5677 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5678 PC_REGNUM, re-indent.
5679 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5680 PC_REGNUM isn't set.
5681
5682 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5683 * gdbarch.h, gdbarch.c: Re-generate.
5684 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5685 register_virtual_size, pc_regnum, or register_bytes.
5686 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5687 (d10v_register_type): Use D10V_PC_REGNUM.
5688 (d10v_print_registers_info, d10v_read_pc): Ditto.
5689 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5690 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5691
5692 2003-05-02 David Carlton <carlton@bactrian.org>
5693
5694 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5695 the name with mstrsave.
5696
5697 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5698
5699 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5700 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5701 (host_charset_name, target_charset_name): New vars for use by
5702 set/show commands.
5703 (host_charset_enum, target_charset_enum): New enums for set/show
5704 commands.
5705 (set_charset_sfunc, set_host_charset_sfunc,
5706 set_target_charset_sfunc): New functions.
5707 (set_host_charset, set_target_charset): Make static.
5708 (list_charsets, set_host_charset_command,
5709 set_target_charset_command): Delete functions.
5710 (show_charset_command): Rewrite as....
5711 (show_charset): Hook this up with the set/show command mechanism.
5712 (_initialize_charset): Change names of charsets to match the
5713 set/show enums. Use host_charset_name and target_charset_name.
5714 Use set/show mechanism for charset, host-charset, target-charset
5715 commands. Do not make 'show host-charset' and 'show
5716 target-charset' be aliases of 'show charset'.
5717
5718 * charset.h (set_host_charset, set_target_charset): Don't export,
5719 they are not used outside the file.
5720
5721 2003-05-01 Andrew Cagney <cagney@redhat.com>
5722
5723 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5724 (gdb_disassembly): Make "di" non static, always initialize and
5725 cleanup. Always use dis_asm_read_memory.
5726 (gdb_dis_asm_read_memory): Delete function.
5727
5728 2003-05-01 Andrew Cagney <cagney@redhat.com>
5729
5730 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5731 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5732
5733 2003-04-30 Andrew Cagney <cagney@redhat.com>
5734
5735 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5736 "tm_print_insn_info".
5737 (TARGET_PRINT_INSN_INFO): Delete macro.
5738 (dis_asm_read_memory): Delete function declaration.
5739 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5740 (tm_print_insn_info): Delete variable definition.
5741 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5742 * gdbarch.h, gdbarch.c: Re-generate.
5743 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5744 "deprecated_tm_print_insn_info".
5745 * mcore-tdep.c (mcore_dump_insn): Ditto.
5746 * mips-tdep.c (mips_gdbarch_init): Ditto.
5747 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5748 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5749 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5750 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5751 instead of TARGET_PRINT_INSN_INFO, add comment.
5752 * s390-tdep.c (s390_get_frame_info): Instead of
5753 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5754 (s390_check_function_end, s390_is_sigreturn): Ditto.
5755 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5756 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5757 * disasm.c: Include "gdbcore.h".
5758 (_initialize_disasm): New function, initialize
5759 "deprecated_tm_print_insn_info".
5760 (deprecated_tm_print_insn_info): New variable.
5761 (dis_asm_read_memory): Moved from "corefile.c", made static.
5762 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5763 * Makefile.in (disasm.o): Update dependencies.
5764
5765 2003-04-30 Andrew Cagney <cagney@redhat.com>
5766
5767 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5768
5769 2003-04-29 Adam Fedor <fedor@gnu.org>
5770
5771 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5772 * infcall.c (find_function_addr): Make non-static.
5773 * infcall.h (find_function_addr): Declare.
5774 * Makefile.in (eval.o): Update dependencies.
5775
5776 2003-04-28 Adam Fedor <fedor@gnu.org>
5777
5778 * symtab.c (symbol_find_demangled_name): Check for and demangle
5779 ObjC symbols.
5780 (symbol_init_demangled_name): Init for language_objc as well.
5781
5782 2003-04-28 Andrew Cagney <cagney@redhat.com>
5783
5784 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5785 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5786 * gdbarch.h, gdbarch.c: Re-generate.
5787 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5788 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5789 * inferior.h (deprecated_read_fp): Rename read_fp.
5790 (generic_target_read_fp): Delete declaration.
5791 * regcache.c (generic_target_read_fp): Delete function.
5792 (deprecated_read_fp): Replace read_fp, use
5793 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5794 * d10v-tdep.c (d10v_read_fp): Delete function.
5795 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5796
5797 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5798 deprecated_target_read_fp to generic_target_read_fp.
5799 * sh-tdep.c (sh_gdbarch_init): Ditto.
5800 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5801 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5802 * frv-tdep.c (frv_gdbarch_init): Ditto.
5803
5804 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5805 deprecated_fp_regnum.
5806 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5807 * vax-tdep.c (vax_gdbarch_init): Ditto.
5808 * v850-tdep.c (v850_gdbarch_init): Ditto.
5809 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5810 * sh-tdep.c (sh_gdbarch_init): Ditto.
5811 * s390-tdep.c (s390_gdbarch_init): Ditto.
5812 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5813 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5814 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5815 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5816 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5817 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5818 * i386-tdep.c (i386_gdbarch_init): Ditto.
5819 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5820 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5821 * frv-tdep.c (frv_gdbarch_init): Ditto.
5822 * cris-tdep.c (cris_gdbarch_init): Ditto.
5823 * avr-tdep.c (avr_gdbarch_init): Ditto.
5824 * arm-tdep.c (arm_gdbarch_init): Ditto.
5825 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5826
5827 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5828 * v850-tdep.c (v850_gdbarch_init): Ditto.
5829 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5830 * sh-tdep.c (sh_gdbarch_init): Ditto.
5831 * s390-tdep.c (s390_gdbarch_init): Ditto.
5832 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5833 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5834 * mips-tdep.c (mips_gdbarch_init): Ditto.
5835 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5836 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5837 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5838 * frv-tdep.c (frv_gdbarch_init): Ditto.
5839 * avr-tdep.c (avr_gdbarch_init): Ditto.
5840 * arm-tdep.c (arm_gdbarch_init): Ditto.
5841
5842 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5843 DEPRECATED_FP_REGNUM.
5844 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5845 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5846 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5847 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5848 (sparc32_register_virtual_type): Ditto.
5849 * sh-tdep.c (sh64_frame_chain): Ditto.
5850 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5851 (sh_nofp_frame_init_saved_regs): Ditto.
5852 (sh64_nofp_frame_init_saved_regs): Ditto.
5853 (sh_fp_frame_init_saved_regs): Ditto.
5854 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5855 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5856 * procfs.c (procfs_fetch_registers): Ditto.
5857 (procfs_store_registers): Ditto.
5858 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5859 (store_inferior_registers, fetch_core_registers): Ditto.
5860 (fetch_kcore_registers, clear_regs): Ditto.
5861 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5862 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5863 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5864 * nlm/i386.c (do_status): Ditto.
5865 * mipsv4-nat.c (supply_gregset): Ditto.
5866 * mips-tdep.c: Ditto for comments.
5867 * mips-nat.c (fetch_inferior_registers): Ditto.
5868 (store_inferior_registers, fetch_core_registers): Ditto.
5869 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5870 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5871 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5872 (i386_do_pop_frame, i386_register_type): Ditto.
5873 * hppa-tdep.c (hppa_frame_chain): Ditto.
5874 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5875 (hppa_pop_frame, hppa_read_fp): Ditto.
5876 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5877 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5878 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5879 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5880 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5881 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5882 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5883 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5884 * blockframe.c: Ditto for comments.
5885 * arch-utils.h: Ditto for comments.
5886 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5887 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5888 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5889 * alpha-tdep.h: Ditto for comments.
5890 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5891 (alpha_cannot_store_register): Ditto.
5892 (alpha_push_dummy_frame): Ditto.
5893 * alpha-nat.c (supply_gregset): Ditto.
5894
5895 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5896 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5897 * config/sparc/tm-sparc.h: Update comment.
5898
5899 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5900 deprecated_read_fp instead of TARGET_READ_FP.
5901 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5902 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5903 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5904 deprecated_read_fp instead of read_fp.
5905 * s390-tdep.c (s390_push_arguments): Ditto.
5906 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5907 * frame.h: Ditto in comments.
5908 * frame.c (legacy_get_prev_frame): Ditto.
5909 * dummy-frame.c (dummy_frame_this_id): Ditto.
5910 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5911
5912 2003-04-28 Andrew Cagney <cagney@redhat.com>
5913
5914 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5915 * gdbarch.h, gdbarch.c: Re-generate.
5916 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5917 * vax-tdep.c (_initialize_vax_tdep): Update.
5918 * v850-tdep.c (_initialize_v850_tdep): Update.
5919 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5920 * s390-tdep.c (_initialize_s390_tdep): Update.
5921 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5922 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5923 * mips-tdep.c (_initialize_mips_tdep): Update.
5924 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5925 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5926 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5927 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5928 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5929 * frv-tdep.c (_initialize_frv_tdep): Update.
5930 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5931 (_initialize_cris_tdep): Update.
5932 * arch-utils.c (legacy_print_insn): Update.
5933 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5934
5935 2003-04-26 Adam Fedor <fedor@gnu.org>
5936
5937 * linespec.c (decode_objc): New function to decode ObjC calls
5938 (decode_line_1): Check for ObjC calls (using decode_objc)
5939 * Makefile (linespec.o): Update dependencies.
5940
5941 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5942
5943 * breakpoint.h (struct breakpoint_ops): New.
5944 (struct breakpoint): Add ops member.
5945
5946 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5947 (mention): Use new breakpoint ops member.
5948 (set_raw_breakpoint): Initialize ops field to NULL.
5949 (print_exception_catchpoint, print_one_exception_catchpoint)
5950 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5951 (gnu_v3_exception_catchpoint_ops): New.
5952 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5953
5954 2003-04-25 Adam Fedor <fedor@gnu.org>
5955
5956 * Makefile.in (COMMON_OBS): Add objc-lang.o
5957
5958 2003-04-25 Andrew Cagney <cagney@redhat.com>
5959
5960 * d10v-tdep.c (print_insn): Delete function.
5961 (display_trace): Use TARGET_PRINT_INSN.
5962 (_initialize_d10v_tdep): Do not set tm_print_insn.
5963 (d10v_gdbarch_init): Set print_insn.
5964
5965 2003-04-25 Andrew Cagney <cagney@redhat.com>
5966
5967 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5968 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5969 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5970 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5971 (nr_dmap_regs, a0_regnum): ... new functions.
5972 (d10v_print_registers_info): Use a0_regnum, use register_size.
5973 (d10v_register_byte): Delete function.
5974 (d10v_register_raw_size): Delete function.
5975 (d10v_register_type): Use a0_regnum.
5976 (d10v_print_registers_info): Use a0_regnum.
5977 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5978 (d10v_gdbarch_init): Do not set register_byte or
5979 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5980 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5981 extract_address.
5982 (trace_command): Use XCALLOC.
5983 (print_insn): Delete reference to tm_print_insn.
5984 (saved_regs_unwinder): Use store_unsigned_integer instead of
5985 store_address.
5986 * frame.h (FRAME_OBSTACK_CALLOC): Define
5987
5988 2003-04-25 David Carlton <carlton@bactrian.org>
5989
5990 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5991
5992 2003-04-24 Adam Fedor <fedor@gnu.org>
5993
5994 * objc-lang.c: Include "valprint.h"
5995 * Makefile.in (objc-lang.o): Update dependencies.
5996
5997 2003-04-24 Adam Fedor <fedor@gnu.org>
5998
5999 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6000 architecture dependant compilation and mark as unimplemented
6001 (until they get put in the gdbarch vector).
6002
6003 2003-04-23 David Carlton <carlton@bactrian.org>
6004
6005 * cp-support.c (cp_find_first_component): Accept 'operator' in
6006 more locations.
6007
6008 2003-04-23 Andrew Cagney <cagney@redhat.com>
6009
6010 * infcall.c (call_function_by_hand): Eliminate redundant
6011 indentation. Move "saved_async" and "old_cleanups" to where they
6012 are needed.
6013
6014 2003-04-23 Andrew Cagney <cagney@redhat.com>
6015
6016 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6017 and "buffer". Move the "name" code to where it is needed.
6018
6019 2003-04-23 Andrew Cagney <cagney@redhat.com>
6020
6021 * infcall.c (call_function_by_hand): Move variables "start_sp",
6022 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6023 code to ON_STACK switch branch.
6024
6025 2003-04-23 Andrew Cagney <cagney@redhat.com>
6026
6027 * infcall.c (call_function_by_hand): Make declaration of "i",
6028 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6029 lint.
6030
6031 2003-04-23 Andrew Cagney <cagney@redhat.com>
6032
6033 * infcall.c (call_function_by_hand): Delete variable
6034 "n_method_args". Localize "param_type"'s declaration to the loop
6035 that it is used. Reinstate code assigning to said variable -
6036 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6037 Rationalize code using "param_type".
6038
6039 2003-04-22 Andrew Cagney <cagney@redhat.com>
6040
6041 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6042 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6043 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6044 to DEPRECATED_PUSH_RETURN_ADDRESS.
6045
6046 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6047
6048 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6049 on the DWARF2 register number prior to fetching a register.
6050
6051 2003-04-22 J. Brobecker <brobecker@gnat.com>
6052
6053 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6054 Update all the tests using SOFT_FLOAT considering the fact that
6055 this macro was always set to 0.
6056 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6057 considering the fact that this macro was always set to 0.
6058 * hppa-tdep.h (hppa_store_return_value): Likewise.
6059 (hppa_extract_return_value): Likewise.
6060
6061 2003-04-22 J. Brobecker <brobecker@gnat.com>
6062
6063 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6064 the hppa-pro target only.
6065
6066 2003-04-21 J. Brobecker <brobecker@gnat.com>
6067
6068 Ongoing multi-arch conversion effort for HP/UX:
6069 * config/pa/tm-hppa.h: Move all macro that are no longer
6070 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6071 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6072
6073 2003-04-21 J. Brobecker <brobecker@gnat.com>
6074
6075 * config/pa/tm-hppa.h: Obsolete a section that was only used
6076 for hppa-pro.
6077
6078 2003-04-21 J. Brobecker <brobecker@gnat.com>
6079
6080 Ongoing multi-arch conversion for HP/UX.
6081 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6082 if already defined (allows hppa64 to stay non-multiarched for now).
6083 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6084
6085 2003-04-21 Andrew Cagney <cagney@redhat.com>
6086
6087 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6088
6089 2003-04-21 Andrew Cagney <cagney@redhat.com>
6090
6091 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6092 "i386_num_mmx_regs".
6093
6094 2003-04-21 Andrew Cagney <cagney@redhat.com>
6095
6096 * infcall.c: New file.
6097 * infcall.h: New file.
6098 * valarith.c: Include "infcall.h".
6099 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6100 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6101 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6102 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6103 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6104 (SFILES): Add "infcall.c"
6105 (COMMON_OBS): Add "infcall.o".
6106 (infcall.o): Specify dependencies.
6107 * value.h (call_function_by_hand): Delete declaration.
6108 * inferior.h (run_stack_dummy): Delete declaration.
6109 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6110 (run_stack_dummy): Move to "infcall.c", merged into
6111 call_function_by_hand.
6112 * valops.c (call_function_by_hand): Moved to "infcall.c".
6113 (find_function_addr, value_arg_coerce): Ditto.
6114 (unwindonsignal_p, coerce_float_to_double): Ditto.
6115 (_initialize_valops): Move "set/show coerce-float-to-double", and
6116 "set/show unwindonsignal" commands to "infcall.c".
6117 * v850-tdep.c, target.h: Update comments.
6118 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6119 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6120 (sh64_init_extra_frame_info): Update comments.
6121 * mn10300-tdep.c: Update comments.
6122 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6123 * config/sparc/tm-sparc.h: Update comments.
6124 * breakpoint.h: Update comments.
6125 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6126 * arm-tdep.c: Update comment.
6127
6128 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6129
6130 * i386-tdep.c (i386_num_register_names): New variable.
6131 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6132 (MM0_REGNUM): Remove redundant parentheses in define.
6133 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6134 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6135 i386_mxcsr_regnum_p): Remove redundant parentheses.
6136 (i386_register_name): Use i386_num_register_names.
6137
6138 * i386-tdep.c (i386_extract_return_value,
6139 i386_store_return_value): Correct check for availability of
6140 floating-point registers.
6141
6142 * i386-tdep.c (i386_frame_num_args): Remove function.
6143 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6144
6145 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6146 mmx_regnum_to_fp_regnum. Adjust all callers.
6147
6148 * i386-tdep.c (i386_get_longjmp_target): Use
6149 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6150 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6151 extract_address.
6152
6153 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6154
6155 * core-regset.c: Update comments to reflect reality. Re-order
6156 includes.
6157 (fetch_core_registers): Use switch instead of if. Remove
6158 redundant prototype.
6159
6160 2003-04-18 Jim Blandy <jimb@redhat.com>
6161
6162 * s390-tdep.c (s390_frame_align): New function.
6163 (s390_gdbarch_init): Register it with the gdbarch object.
6164
6165 2003-04-17 Richard Henderson <rth@redhat.com>
6166
6167 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6168
6169 2003-04-17 Michael Snyder <msnyder@redhat.com>
6170 Karen Bennet <bennet@redhat.com>
6171
6172 Committed by Elena Zannoni <ezannoni@redhat.com>
6173 * gdb_gcore.sh: New script to create a core dump of a process.
6174
6175 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6176
6177 * values.c (value_being_returned): Don't fetch the return
6178 value if the return type is void.
6179
6180 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6181
6182 * thread-db.c: Reindented.
6183
6184 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6185
6186 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6187 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6188 as types.
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6215
6216 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6217 the size of ``long double'' to 16, instead of 8.
6218
6219 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6220
6221 * i386-linux-nat.c: Add some whitespace to make things more
6222 readable.
6223 (fetch_register, store_register, fetch_inferior_registers,
6224 store_inferior_registers): Get rid of assignment in if-statement.
6225 (store_register): Fix typo in error message.
6226
6227 2003-04-16 Andrew Cagney <cagney@redhat.com>
6228
6229 * utils.c (xmmalloc): Always allocate something, matches
6230 libiberty/xmalloc's semantics.
6231 (xmrealloc, xmcalloc): Ditto.
6232
6233 2003-04-16 Andrew Cagney <cagney@redhat.com>
6234
6235 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6236 update comments.
6237 (get_frame_type): Initialize unwind and type when needed.
6238 (get_frame_id, frame_register_unwind): Ditto.
6239
6240 2003-04-16 Andrew Cagney <cagney@redhat.com>
6241
6242 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6243 obsolete.
6244 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6245 * sparcl-stub.c: Obsolete file.
6246 * config/sparc/tm-sparclet.h: Obsolete file.
6247 * sparclet-stub.c: Obsolete file.
6248 * sparclet-rom.c: Obsolete file.
6249 * sparcl-tdep.c: Obsolete file.
6250 * config/sparc/tm-sparclite.h: Obsolete file.
6251 * config/sparc/sparclite.mt: Obsolete file.
6252 * config/sparc/sparclet.mt: Obsolete file.
6253 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6254 sparc86x-*-* obsolete.
6255
6256 2003-04-15 David Carlton <carlton@math.stanford.edu>
6257
6258 * Makefile.in (SFILES): Add cp-namespace.c.
6259 (COMMON_OBS): Add cp-namespace.o.
6260 (block.o): Depend on gdb_obstack_h and cp_support_h.
6261 (buildsym.o): Depend on cp_support_h.
6262 (cp-namespace.o): New.
6263 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6264 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6265 (dwarf2read.o): Depend on cp_support_h.
6266 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6267 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6268 processing_current_namespace.
6269 (read_namespace): Update processing_current_namespace; check for
6270 anonymous namespaces.
6271 (dwarf2_name): New function.
6272 (dwarf2_extension): Ditto.
6273 * cp-support.h: Update copyright, contributors.
6274 Add inclusion guards.
6275 Add opaque declaration for structs obstack, block, symbol.
6276 (struct using_direct): New struct.
6277 Add declarations for cp_find_first_component,
6278 cp_entire_prefix_len, processing_has_namespace_info,
6279 processing_current_namespace, cp_is_anonymous,
6280 cp_add_using_directive, cp_initialize_namespace,
6281 cp_finalize_namespace, cp_set_block_scope,
6282 cp_scan_for_anonymous_namespaces.
6283 * cp-namespace.c: New file.
6284 * cp-support.c: Update copyright.
6285 Include ctype.h, gdb_assert.h, gdbcmd.h.
6286 New variable maint_cplus_cmd_list.
6287 (cp_find_first_component): New function.
6288 (cp_entire_prefix_len, maint_cplus_command)
6289 (first_component_command, _initialize_cp_support): Ditto.
6290 * buildsym.c: Include cp-support.h.
6291 New variable using_list.
6292 (add_symbol_to_list): Check for anonymous namespaces.
6293 (finish_block): Set block's scope.
6294 (start_symtab): Initialize C++ namespace support.
6295 (end_symtab): Finalize C++ namespace support.
6296 * block.h: Add opaque declarations for structs
6297 block_namespace_info, using_direct, and obstack.
6298 Add declarations for block_set_scope and block_set_using.
6299 (struct block): Add 'language_specific' member.
6300 (BLOCK_NAMESPACE): New macro.
6301 * block.c: Include gdb_obstack.h and cp-support.h.
6302 (struct block_namespace_info): New struct.
6303 (block_set_scope): New function.
6304 (block_set_using, block_initialize_namespace): Ditto.
6305
6306 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6307
6308 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6309 (locate_base): Return early if there aren't any link map offsets.
6310 (svr4_solib_create_inferior_hook): Warn if shared library support
6311 is unavailable.
6312
6313 2003-04-14 David Carlton <carlton@math.stanford.edu>
6314
6315 * symtab.c (symbol_set_names): Add prefix when storing Java names
6316 in hash table. Fix for PR java/1039.
6317
6318 2003-04-14 David Carlton <carlton@math.stanford.edu>
6319
6320 * symtab.c (symbol_set_names): Rename 'name' arg to
6321 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6322 * symtab.h: Change 'name' argument in declaration of
6323 symbol_set_names to 'linkage_name'.
6324 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6325
6326 2003-04-14 Andrew Cagney <cagney@redhat.com>
6327
6328 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6329 return the fully sign-extended register value.
6330 (get_frame_pointer): Ditto.
6331 (mips_pop_frame): Initialize "proc_desc" after checking for a
6332 dummy frame.
6333
6334 2003-04-14 Andrew Cagney <cagney@redhat.com>
6335
6336 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6337 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6338 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6339 (mips_push_register): Delete function.
6340 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6341 PUSH_FP_REGNUM.
6342
6343 2003-04-14 Jim Blandy <jimb@redhat.com>
6344
6345 * symmisc.c: #include "gdb_regex.h".
6346 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6347 functions.
6348 * maint.c (maintenance_list_command): New function.
6349 (_initialize_maint_cmds): Register the above as commands.
6350 * symtab.h (maintenance_list_symtabs,
6351 maintenance_list_psymtabs): New declarations.
6352 * cli/cli-cmds.c (maintenancelistlist): New variable.
6353 (init_cmd_lists): Initialize it.
6354 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6355 * gdbcmd.h (maintenancelistlist): New declaration.
6356 * Makefile.in (symmisc.o): Update dependencies.
6357
6358 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6359
6360 * s390-nat.c: Include asm/types.h for addr_t.
6361
6362 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6363
6364 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6365 actually incoming type.
6366
6367 2003-04-13 Andrew Cagney <cagney@redhat.com>
6368
6369 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6370 get_next_frame and get_frame_saved_regs.
6371
6372 2003-04-13 Andrew Cagney <cagney@redhat.com>
6373
6374 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6375 of gdbarch_num_regs.
6376
6377 2003-04-13 Andrew Cagney <cagney@redhat.com>
6378
6379 * frame.h: Mention what replaced what in "struct frame_info".
6380 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6381 deprecated_update_frame_base_hack and
6382 deprecated_update_frame_pc_hack.
6383 * hppa-tdep.c: Ditto.
6384
6385 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6386
6387 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6388 to read_reg and update its comment. Remove regnum member.
6389 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6390 Don't call read_reg when setting in_reg. Call read_reg to get
6391 the frame base if it's in a register. Return the register number
6392 on the stack instead of in the context. Remove extra arguments
6393 to read_reg.
6394 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6395 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6396 the register number on the expression stack.
6397 (needs_frame_read_reg): Remove extra arguments.
6398
6399 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6400
6401 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6402 made non-static.
6403 (execute_stack_op): All callers updated.
6404 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6405 * dwarf2loc.c (find_location_expression): New function.
6406 (dwarf_expr_frame_base): Call it.
6407 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6408 (dwarf2_tracepoint_var_ref): New function, broken out from
6409 locexpr_tracepoint_var_ref.
6410 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6411 Make static.
6412 (loclist_read_variable, loclist_read_needs_frame): New functions.
6413 (loclist_describe_location, loclist_tracepoint_var_ref): New
6414 functions.
6415 (dwarf2_loclist_funcs): New struct location_funcs.
6416 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6417 (struct dwarf2_locexpr_baton): Add comments.
6418 (dwarf2_loclist_funcs): New extern.
6419 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6420 base_address and base_known.
6421 (dwarf_loc_buffer): New variable.
6422 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6423 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6424 (dwarf2_has_info): Initialize dwarf_loc_offset.
6425 (dwarf2_build_psymtabs): Read in .debug_loc.
6426 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6427 DWARF_LOC_SIZE.
6428 (psymtab_to_symtab_1): Likewise. Move base address calculation
6429 here, from...
6430 (dwarf2_get_pc_bounds): ... here. Use the base address from
6431 cu_header.
6432 (dwarf2_symbol_mark_computed): Handle location lists.
6433
6434 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6435
6436 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6437 if the linkage name demangled successfully.
6438
6439 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6440
6441 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6442 disassmbly_flavour): Removed.
6443
6444 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6445
6446 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6447
6448 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6449
6450 2003-04-12 Andrew Cagney <cagney@redhat.com>
6451
6452 * frame.h (struct frame_info): Move definition from here ...
6453 * frame.c (struct frame_info): ... to here.
6454
6455 2003-04-12 Andrew Cagney <cagney@redhat.com>
6456
6457 * gdbthread.h (save_infrun_state): Delete parameter
6458 "prev_func_start".
6459 (struct thread_info): Delete field "prev_func_start".
6460 (load_infrun_state): Ditto.
6461 * thread.c (load_infrun_state, save_infrun_state): Update.
6462 * infrun.c (prev_func_start): Delete variable.
6463 (context_switch, init_wait_for_inferior): Update.
6464 (stop_stepping, keep_going): Update.
6465
6466 2003-04-12 Andrew Cagney <cagney@redhat.com>
6467
6468 * gdbarch.sh: Add missing opaque declarations.
6469 * gdbarch.h: Regnerate.
6470 * symtab.h: Add missing opaque declarations.
6471 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6472 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6473 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6474 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6475 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6476 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6477 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6478 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6479 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6480 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6481 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6482 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6483 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6484
6485 2003-04-11 Andrew Cagney <cagney@redhat.com>
6486
6487 * frame.c (get_frame_id): Return this frame's "id".
6488 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6489 function start.
6490 (legacy_saved_regs_this_id): Replace function body with
6491 internal-error.
6492 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6493 FRAME_OBSTACK_ZALLOC.
6494 (create_new_frame): Mark the frame ID as valid.
6495
6496 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6497
6498 * Makefile.in (libbfd_h): Added missing setting.
6499 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6500 according to the selected ABI.
6501
6502 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6503
6504 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6505
6506 2003-04-11 Andrew Cagney <cagney@redhat.com>
6507
6508 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6509 SAVED_PC_AFTER_CALL.
6510 * gdbarch.h, gdbarch.c: Regenerate.
6511 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6512 * x86-64-tdep.c (x86_64_init_abi): Update.
6513 * vax-tdep.c (vax_gdbarch_init): Update.
6514 * v850-tdep.c (v850_gdbarch_init): Update.
6515 * sparc-tdep.c (sparc_gdbarch_init): Update.
6516 * sh-tdep.c (sh_gdbarch_init): Update.
6517 * s390-tdep.c (s390_gdbarch_init): Update.
6518 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6519 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6520 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6521 * mips-tdep.c (mips_gdbarch_init): Update.
6522 * mcore-tdep.c (mcore_gdbarch_init): Update.
6523 * m68k-tdep.c (m68k_gdbarch_init): Update.
6524 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6525 * ia64-tdep.c (ia64_gdbarch_init): Update.
6526 (ia64_saved_pc_after_call): Update declaration.
6527 * i386ly-tdep.c (i386lynx_init_abi): Update.
6528 * i386-tdep.c (i386_gdbarch_init): Update.
6529 * hppa-tdep.c (hppa_gdbarch_init): Update.
6530 * h8300-tdep.c (h8300_gdbarch_init): Update.
6531 * frv-tdep.c (frv_gdbarch_init): Update.
6532 * cris-tdep.c (cris_gdbarch_init): Update.
6533 * avr-tdep.c (avr_gdbarch_init): Update.
6534 * arm-tdep.c (arm_gdbarch_init): Update.
6535 * alpha-tdep.c (alpha_gdbarch_init): Update.
6536 * ns32knbsd-nat.c (frame_num_args): Update.
6537 * ns32k-tdep.c (umax_frame_num_args): Update.
6538 * mips-tdep.c (mips_init_frame_pc_first): Update.
6539 * infrun.c (step_over_function): Update.
6540 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6541 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6542 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6543 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6544 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6545 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6546 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6547 * arch-utils.c (init_frame_pc_default): Update.
6548 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6549 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6550 declaration.
6551
6552 2003-04-11 Andrew Cagney <cagney@redhat.com>
6553
6554 * i387-tdep.c: Update copyright.
6555 (i387_to_double): Delete function.
6556 (double_to_i387): Delete function.
6557
6558 2003-04-10 Andrew Cagney <cagney@redhat.com>
6559
6560 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6561 frame's function's address. Simplify.
6562 (d10v_frame_unwind_cache): Check that the frame's function is
6563 non-zero.
6564
6565 2003-04-10 Jim Blandy <jimb@redhat.com>
6566
6567 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6568 call to set_gdbarch_deprecated_push_arguments.
6569
6570 2003-04-10 Andrew Cagney <cagney@redhat.com>
6571
6572 * frame.c (fprint_frame_id): New function.
6573 (fprint_frame_type, fprint_frame): New function.
6574 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6575 (create_sentinel_frame, get_frame_id): Ditto.
6576 (frame_id_p, frame_id_eq): Ditto.
6577 (frame_id_inner, create_new_frame): Ditto.
6578 (legacy_get_prev_frame, get_prev_frame): Ditto.
6579 (deprecated_update_frame_pc_hack): Ditto.
6580 (frame_register_unwind): Ditto.
6581 (deprecated_update_frame_base_hack): Ditto.
6582
6583 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6584
6585 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6586 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6587 frame_chain function.
6588 * Makefile.in: Add dependencies due to above change.
6589
6590 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6591
6592 * blockframe.c (legacy_frame_chain_valid): Move call to
6593 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6594 inside_entry_file.
6595
6596 2003-04-09 Andrew Cagney <cagney@redhat.com>
6597
6598 * frame.h (struct frame_id): Replace "pc" and "base" with
6599 "stack_addr" and "code_addr". Update comments.
6600 (frame_id_build): Update parameter names and comment.
6601 (struct frame_info): Replace "id_p" and "id" with "this_id".
6602 * dummy-frame.c (dummy_frame_this_id): Update.
6603 * breakpoint.c (print_one_breakpoint): Update.
6604 * frame.c (get_frame_id): Update.
6605 (get_frame_base, frame_id_build): Update.
6606 (create_sentinel_frame, legacy_get_prev_frame): Update.
6607 (deprecated_update_frame_base_hack): Update.
6608 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6609 (frame_id_inner): Ditto.
6610
6611 2003-04-09 Andrew Cagney <cagney@redhat.com>
6612
6613 * defs.h (gdb_print_host_address): Make "addr" parameter a
6614 pointer constant.
6615 * utils.c (gdb_print_host_address): Update.
6616
6617 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6618
6619 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6620 register number for R0 is 0.
6621
6622 2003-04-09 J. Brobecker <brobecker@gnat.com>
6623
6624 * frame.h (struct gdbarch): Add opaque structure definition
6625 to avoid a compilation warning on LynxOS 4.0.
6626
6627 2003-04-09 Andrew Cagney <cagney@redhat.com>
6628
6629 * frame.h (struct frame_info): Delete field "pc". Replace
6630 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6631 structure.
6632 * frame.c (frame_pc_unwind): Update.
6633 (create_sentinel_frame): Do not set "pc".
6634 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6635 (get_frame_pc): Call frame_pc_unwind.
6636 (deprecated_update_frame_pc_hack): Update.
6637 (create_new_frame): Use "pc" not "->pc".
6638
6639 2003-04-09 Andrew Cagney <cagney@redhat.com>
6640
6641 * frame.c (get_frame_id): Eliminate code updating "frame".
6642 (legacy_get_prev_frame): Ditto.
6643 (get_frame_base): Return id.base directly.
6644 (deprecated_update_frame_base_hack): Update "id.base".
6645 * frame.h (struct frame_info): Delete field "frame".
6646
6647 2003-04-09 Andrew Cagney <cagney@redhat.com>
6648
6649 * NEWS: Mention that the "Sequent family" is obsolete.
6650 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6651 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6652 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6653 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6654 * config/i386/tm-ptx4.h: Obsolete file.
6655 * config/i386/tm-ptx.h: Obsolete file.
6656 * symm-tdep.c: Obsolete file.
6657 * config/i386/symmetry.mt: Obsolete file.
6658 * config/i386/tm-symmetry.h: Obsolete file.
6659 * symm-nat.c: Obsolete file.
6660 * config/i386/nm-symmetry.h: Obsolete file.
6661 * config/i386/xm-symmetry.h: Obsolete file.
6662 * config/i386/symmetry.mh: Obsolete file.
6663 * config/i386/nm-ptx4.h: Obsolete file.
6664 * config/i386/ptx4.mh: Obsolete file.
6665 * config/i386/ptx.mt: Obsolete file.
6666 * config/i386/ptx.mh: Obsolete file.
6667 * config/i386/xm-ptx4.h: Obsolete file.
6668 * config/i386/xm-ptx.h: Obsolete file.
6669
6670 2003-04-09 Andrew Cagney <cagney@redhat.com>
6671
6672 Obsolete mips*-*-mach3*.
6673 * NEWS: Mention that mips*-*-mach3* is obsolete.
6674 * m3-nat.c: Obsolete file.
6675 * config/nm-m3.h: Obsolete file.
6676 * config/mips/tm-mipsm3.h: Obsolete file.
6677 * config/mips/mipsm3.mt: Obsolete file.
6678 * config/mips/mipsm3.mh: Obsolete file.
6679 * config/mips/xm-mipsm3.h: Obsolete file.
6680 * mipsm3-nat.c: Obsolete file.
6681 * configure.host: Obsolete mips-dec-mach3*.
6682 * configure.tgt: Obsolete mips*-*-mach3*.
6683
6684 2003-04-09 Andrew Cagney <cagney@redhat.com>
6685
6686 * doublest.h: Update copyright.
6687 (deprecated_store_floating, deprecated_extract_floating): Rename
6688 store_floating and extract_floating. Update comments.
6689 * doublest.c: Update copyright.
6690 (extract_floating_by_length): Replace extract_floating.
6691 (store_floating_by_length): Replace store_floating.
6692 (deprecated_extract_floating): New function.
6693 (deprecated_store_floating): New function.
6694 (extract_typed_floating): Call extract_floating_by_length.
6695 (store_typed_floating): Call store_floating_by_length.
6696 * x86-64-tdep.c (x86_64_store_return_value): Update.
6697 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6698 (sh64_extract_return_value): Update.
6699 (sh_sh4_register_convert_to_virtual): Update.
6700 (sh_sh64_register_convert_to_virtual): Update.
6701 (sh_sh4_register_convert_to_raw): Update.
6702 (sh_sh64_register_convert_to_raw): Update.
6703 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6704 (rs6000_register_convert_to_raw): Update.
6705 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6706 (ia64_register_convert_to_raw): Update.
6707 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6708 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6709 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6710 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6711 (alpha_register_convert_to_raw): Update.
6712
6713 2003-04-08 Andrew Cagney <cagney@redhat.com>
6714
6715 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6716 * gdbarch.h, gdbarch.c: Re-generate.
6717 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6718 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6719 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6720 conditionally, use frame_pc_unwind as an alternative. Add
6721 comments.
6722 * arch-utils.c (init_frame_pc_default): Only call
6723 SAVED_PC_AFTER_CALL when available.
6724
6725 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6726
6727 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6728 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6729 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6730 (start_remote): Ditto.
6731 (handle_inferior_event): Ditto.
6732 (save_inferior_status): Ditto.
6733 (restore_inferior_status): Ditto.
6734 * infcmd.c (attach_command): Ditto.
6735 * fork-child.c (startup_inferior): Ditto.
6736 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6737 * alpha-tdep.c (heuristic_proc_start): Ditto.
6738 * mips-tdep.c (heuristic_proc_start): Ditto.
6739 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6740 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6741 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6742 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6743 * remote-vx.c (vx_create_inferior): Ditto.
6744
6745 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6746
6747 * infrun.c (stop_soon_quietly): Make it an enum, to better
6748 override the default behavior of handle_inferior_event.
6749 (clear_proceed_status): Update uses of stop_soon_quietly to
6750 reflect that it is now an enum.
6751 (start_remote): Ditto.
6752 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6753 is set to handle the new GNU/Linux kernel behavior for
6754 attach/sigstop. Update uses of stop_soon_quietly.
6755 * inferior.h (enum stop_kind): New enum.
6756 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6757 Reset normal handle_inferior_event behavior, afterwards.
6758 * fork-child.c (startup_inferior): Update.
6759 * alpha-tdep.c (heuristic_proc_start): Update.
6760 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6761 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6762 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6763 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6764 * remote-vx.c (vx_create_inferior): Update.
6765 * mips-tdep.c (heuristic_proc_start): Update.
6766
6767 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6768
6769 * disasm.c (dump_insns): Move variables inside loop, or they will
6770 be freed more than once, causing wild memory corruptions.
6771 (gdb_disassembly): Look for the substring "-thread",
6772 instead of "-threads" in the target name, to make sure to find
6773 the 'multi-thread' target. Also, make sure we do the right thing
6774 with the "core" target.
6775
6776 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6777
6778 * mips-tdep.c (mips_print_fp_register): New function, created from
6779 do_fp_register_row(). Registers are now (also) printed as hex.
6780 Only one register is printed per row.
6781 (mips_print_register, do_fp_register_row): Print floating point
6782 registers with mips_print_fp_register().
6783
6784 2003-04-06 Andrew Cagney <cagney@redhat.com>
6785
6786 * valprint.h (inspect_it): Add extern declaration.
6787 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6788 (selectors_info, classes_info): Ditto.
6789 (find_objc_msgcall): Fix indentation.
6790 (objc_printstr): Delete extern declarations.
6791
6792 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6793
6794 2003-04-06 Andrew Cagney <cagney@redhat.com>
6795
6796 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6797 Update comment.
6798 * frame.c (legacy_saved_regs_this_id): Update.
6799 (legacy_get_prev_frame): Update.
6800 * xstormy16-tdep.c: Update comment.
6801 * sparc-tdep.c (sparc_frame_chain): Update comment.
6802 * blockframe.c (legacy_frame_chain_valid): Update.
6803
6804 2003-04-06 Andrew Cagney <cagney@redhat.com>
6805
6806 * valprint.c (val_print_type_code_int): Delete #ifdef
6807 PRINT_TYPELESS_INTEGER code.
6808
6809 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6810 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6811 multi-arch definition.
6812 * gdbarch.h: Re-generate.
6813
6814 2003-04-05 Andrew Cagney <cagney@redhat.com>
6815
6816 Eliminate FRAME_FIND_SAVED_REGS.
6817 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6818 Change FSR parameter to a pointer.
6819 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6820 Assume FSR parameter is a pointer.
6821 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6822 Make fsr a pointer.
6823 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6824 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6825 saved_regs a pointer.
6826 (hppa_frame_saved_pc): Ditto.
6827 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6828 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6829 pointer.
6830 (restore_pc_queue): Make fsr a pointer.
6831 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6832 (hppa_frame_chain): Make saved_regs a pointer, call
6833 hppa_frame_init_saved_regs.
6834 * sparc-tdep.c: Include "gdb_assert.h".
6835 (sparc_frame_find_saved_regs): Replace internal_error with
6836 gdb_assert.
6837 * remote-vxsparc.c (vx_read_register): Delete reference to
6838 FRAME_FIND_SAVED_REGS.
6839 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6840 * gdbarch.h: Regenerate.
6841 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6842 (deprecated_get_frame_saved_regs): Delete declaration.
6843 (struct frame_saved_regs): Delete definition.
6844 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6845 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6846 (hppa_frame_find_saved_regs): Delete declaration.
6847 (FRAME_FIND_SAVED_REGS): Delete macro.
6848 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6849 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6850 FRAME_FIND_SAVED_REGS in comment.
6851
6852 2003-04-05 Andrew Cagney <cagney@redhat.com>
6853
6854 * frame.c (frame_func_unwind, get_frame_func): New functions.
6855 * frame.h (get_frame_func, frame_func_unwind): Declare.
6856 (struct frame_info): Add field "prev_func" for caching the
6857 previous frame's function address.
6858 * arm-tdep.c (arm_frameless_function_invocation): Combine
6859 get_pc_function_start and get_frame_pc into get_frame_func.
6860 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6861 (sh64_nofp_frame_init_saved_regs): Ditto.
6862 * s390-tdep.c (s390_function_start): Ditto.
6863 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6864 (rs6000_frameless_function_invocation): Ditto.
6865 (rs6000_frame_saved_pc): Ditto.
6866 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6867 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6868 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6869 (i386_frame_init_saved_regs): Ditto.
6870 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6871 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6872 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6873 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6874 * blockframe.c (frameless_look_for_prologue): Ditto.
6875
6876 2003-04-05 Andrew Cagney <cagney@redhat.com>
6877
6878 * frame.c (legacy_get_prev_frame): Link prev to next at the
6879 function start. Update comments.
6880
6881 2003-04-05 Andrew Cagney <cagney@redhat.com>
6882
6883 * frame.c (get_frame_id): Update comment.
6884 (legacy_get_prev_frame): Update comment.
6885 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6886 * gdbarch.h: Regenerate.
6887 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6888 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6889
6890 2003-04-05 Andrew Cagney <cagney@redhat.com>
6891
6892 * stack.c (print_frame_info): Use get_frame_pc.
6893
6894 2003-04-04 Andrew Cagney <cagney@redhat.com>
6895
6896 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6897 the frame's type from the unwinder.
6898 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6899 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6900 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6901 (get_frame_base_address): Use get_frame_type.
6902 (get_frame_locals_address, get_frame_args_address): Ditto.
6903 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6904 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6905 (struct frame_info): Add comment explaining why the frame contains
6906 a "type" field.
6907 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6908 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6909 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6910 NORMAL_FRAME.
6911 * frame-unwind.h: Include "frame.h".
6912 (struct frame_unwind): Add "type" field.
6913 * Makefile.in (frame_unwind_h): Add $(frame_h).
6914
6915 2003-04-04 Andrew Cagney <cagney@redhat.com>
6916
6917 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6918 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6919 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6920 get_frame_base.
6921 (d10v_unwind_dummy_id): Use frame_id_build.
6922 * frame.c (find_frame_sal): Use get_frame_pc.
6923 (create_new_frame): Use deprecated_update_frame_pc_hack and
6924 deprecated_update_frame_base_hack.
6925 (create_sentinel_frame): Add comment about ->pc going away.
6926 (get_prev_frame): Add comment about ->pc going away.
6927 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6928 frame_id_build, deprecated_update_frame_pc_hack and
6929 deprecated_update_frame_base_hack.
6930 (select_frame): Use get_frame_pc.
6931 (legacy_saved_regs_this_id): Use frame_id_build.
6932
6933 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6934
6935 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6936 signed integer case.
6937 (classify_argument): Handle enumerations and references.
6938
6939 2003-04-04 Andrew Cagney <cagney@redhat.com>
6940
6941 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6942 ID to NULL.
6943
6944 2003-04-01 Adam Fedor <fedor@gnu.org>
6945
6946 * gdb/objc-lang.c (selectors_info): Replace calls to
6947 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6948 SYMBOL_NATURAL_NAME.
6949 (classes_info, find_methods): Likewise.
6950
6951 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6952
6953 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6954 ``mach'' to the value determined by bfd_default_set_arch_mach().
6955
6956 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6957
6958 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6959 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6960 (mi-cmd-file.o): Update dependencies.
6961
6962 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6963
6964 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6965 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6966
6967 2003-04-01 Adam Fedor <fedor@gnu.org>
6968
6969 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6970 * language.h (struct language_defn): Add la_demangle.
6971 (language_demangle): Declare.
6972 * language.c (language_demangle): New function.
6973 (unk_lang_demangle): Likewise.
6974 (unknown_language_defn, auto_language_defn, local_language_defn):
6975 Add ukn_lang_demangle.
6976 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6977 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6978 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6979 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6980 * jv-lang.c (java_demangle): New function
6981 (java_language_defn): Use it for la_demangle element.
6982 * objc-lang.c (objc_demangle): Add options argument
6983 (objc_language_defn): Use objc_demangle for la_demangle element.
6984 * maint.c (maintenance_demangle): Replace switch with
6985 call to language_demangle.
6986 * utils.c (fprintf_symbol_filtered): Likewise.
6987
6988 2003-04-01 Andrew Cagney <cagney@redhat.com>
6989
6990 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6991 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6992 PRINT_TYPELESS_INTEGER.
6993 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6994 PUSH_RETURN_ADDRESS.
6995
6996 2003-04-01 Andrew Cagney <cagney@redhat.com>
6997
6998 * Makefile.in (d10v-tdep.o): Update dependencies.
6999 * d10v-tdep.c: Include "frame-base.h".
7000 (d10v_frame_unwind): Make constant.
7001 (d10v_frame_base_address): New function.
7002 (d10v_frame_base): New variable.
7003 (d10v_gdbarch_init): Set frame_base default.
7004 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7005 comment for base.
7006 (d10v_frame_unwind_cache): Set and use "prev_sp".
7007 (d10v_frame_this_id): Use the previous frame's inner most stack
7008 address and this frame's func address for the frame ID. Use
7009 frame_id_build. Don't analyze beyond the current instruction.
7010
7011 2003-04-01 Andrew Cagney <cagney@redhat.com>
7012
7013 * frame.h (get_frame_locals_address, get_frame_args_address):
7014 Refer to the base address, instead of the address of the first
7015 local or parameter.
7016
7017 2003-04-01 Andrew Cagney <cagney@redhat.com>
7018
7019 Add frame debug info addresses:
7020 * frame-base.c: New file.
7021 * frame-base.h: New file.
7022 * frame.h (struct frame_base): Add opaque declaration.
7023 (get_frame_base): Update comment.
7024 (get_frame_base_address): Declare.
7025 (get_frame_locals_address): Declare.
7026 (get_frame_args_address): Declare.
7027 (struct frame_info): Add "base" and "base_cache". Update
7028 comments on the unwinder.
7029 * frame.c: Include "frame-base.h".
7030 (get_frame_locals_address): New function.
7031 (get_frame_base_address): New function.
7032 (get_frame_args_address): New function.
7033 * findvar.c (read_var_value): Use get_frame_locals_address and
7034 get_frame_args_address.
7035 * stack.c (frame_info): Use get_frame_locals_address and
7036 get_frame_args_address.
7037 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7038 moved to "frame-base.c".
7039 * printcmd.c (print_frame_nameless_args): Ditto.
7040 * symtab.h (address_class): Update comments.
7041 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7042 get_frame_base_address.
7043 * dwarf2expr.c (execute_stack_op): Ditto.
7044 * Makefile.in (frame_base_h): Define.
7045 (frame.o): Update dependencies.
7046 (frame-base.o): Add dependencies.
7047 (SFILES): Add frame-base.c.
7048 (COMMON_OBS): Add frame-base.o.
7049
7050 2003-04-01 Andrew Cagney <cagney@redhat.com>
7051
7052 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7053 CALL_DUMMY_LENGTH): Ditto.
7054 * gdbarch.c: Re-generate.
7055 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7056 (CALL_DUMMY_LENGTH): Delete macro.
7057 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7058 * arm-tdep.c (arm_gdbarch_init): Ditto.
7059 * avr-tdep.c (avr_gdbarch_init): Ditto.
7060 * cris-tdep.c (cris_gdbarch_init): Ditto.
7061 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7062 * frv-tdep.c (frv_gdbarch_init): Ditto.
7063 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7064 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7065 * i386-tdep.c (i386_gdbarch_init): Ditto.
7066 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7067 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7068 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7069 * mips-tdep.c (mips_gdbarch_init): Ditto.
7070 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7071 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7072 * s390-tdep.c (s390_gdbarch_init): Ditto.
7073 * sh-tdep.c (sh_gdbarch_init): Ditto.
7074 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7075 * v850-tdep.c (v850_gdbarch_init): Ditto.
7076 * vax-tdep.c (vax_gdbarch_init): Ditto.
7077 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7078
7079 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7080
7081 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7082
7083 2003-04-01 Andrew Cagney <cagney@redhat.com>
7084
7085 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7086 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7087 * gdbarch.h, gdbarch.c: Re-generate.
7088 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7089 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7090 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7091 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7092 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7093 * infcmd.c (run_stack_dummy): Simplify assuming
7094 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7095 * infrun.c (handle_inferior_event): Ditto.
7096 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7097 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7098 * arm-tdep.c (arm_gdbarch_init): Ditto.
7099 * avr-tdep.c (avr_gdbarch_init): Ditto.
7100 * cris-tdep.c (cris_gdbarch_init): Ditto.
7101 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7102 * frv-tdep.c (frv_gdbarch_init): Ditto.
7103 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7104 * i386-tdep.c (i386_gdbarch_init): Ditto.
7105 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7106 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7107 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7108 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7109 * mips-tdep.c (mips_gdbarch_init): Ditto.
7110 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7111 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7112 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7113 * s390-tdep.c (s390_gdbarch_init): Ditto.
7114 * sh-tdep.c (sh_gdbarch_init): Ditto.
7115 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7116 * v850-tdep.c (v850_gdbarch_init): Ditto.
7117 * vax-tdep.c (vax_gdbarch_init): Ditto.
7118 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7119
7120 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7121
7122 * symfile.c (symfile_relocate_debug_section): Update call to
7123 bfd_simple_get_relocated_section_contents.
7124
7125 2003-03-31 Andrew Cagney <cagney@redhat.com>
7126
7127 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7128 * gdbarch.h, gdbarch.c: Regenerate.
7129 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7130 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7131 available.
7132 * frame.h (generic_fix_call_dummy): Delete declaration.
7133 * dummy-frame.h: Update comment.
7134 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7135 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7136 fix_call_dummy.
7137 * sh-tdep.c (sh_gdbarch_init): Ditto.
7138 * s390-tdep.c (s390_gdbarch_init): Ditto.
7139 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7140 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7142 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7143 * i386-tdep.c (i386_gdbarch_init): Ditto.
7144 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7145 * frv-tdep.c (frv_gdbarch_init): Ditto.
7146 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7147 * cris-tdep.c (cris_gdbarch_init): Ditto.
7148 * avr-tdep.c (avr_gdbarch_init): Ditto.
7149 * arm-tdep.c (arm_gdbarch_init): Ditto.
7150
7151 2003-03-31 J. Brobecker <brobecker@gnat.com>
7152
7153 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7154 (INIT_FRAME_AP): Likewise.
7155 (EXTRA_FRAME_INFO): Likewise.
7156
7157 2003-03-31 Andrew Cagney <cagney@redhat.com>
7158
7159 * gdbarch.sh: Include "symfile.h".
7160 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7161 * gdbarch.h, gdbarch.c: Re-generate.
7162 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7163 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7164 call_dummy_address, the default is at entry_point_address.
7165 * v850-tdep.c (v850_gdbarch_init): Ditto.
7166 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7167 * sh-tdep.c (sh_gdbarch_init): Ditto.
7168 * s390-tdep.c (s390_gdbarch_init): Ditto.
7169 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7170 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7171 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7172 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7173 * i386-tdep.c (i386_gdbarch_init): Ditto.
7174 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7175 * frv-tdep.c (frv_gdbarch_init): Ditto.
7176 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7177 * cris-tdep.c (cris_gdbarch_init): Ditto.
7178 * arm-tdep.c (arm_gdbarch_init): Ditto.
7179
7180 2003-03-31 Andrew Cagney <cagney@redhat.com>
7181
7182 * gdbarch.sh (CALL_DUMMY_P): Delete.
7183 * gdbarch.h, gdbarch.c: Re-generate.
7184 * inferior.h (CALL_DUMMY_P): Delete macro.
7185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7186 * vax-tdep.c (vax_gdbarch_init): Update.
7187 * v850-tdep.c (v850_gdbarch_init): Update.
7188 * sparc-tdep.c (sparc_gdbarch_init): Update.
7189 * sh-tdep.c (sh_gdbarch_init): Update.
7190 * s390-tdep.c (s390_gdbarch_init): Update.
7191 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7192 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7193 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7194 * mips-tdep.c (mips_gdbarch_init): Update.
7195 * mcore-tdep.c (mcore_gdbarch_init): Update.
7196 * m68k-tdep.c (m68k_gdbarch_init): Update.
7197 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7198 * ia64-tdep.c (ia64_gdbarch_init): Update.
7199 * i386-tdep.c (i386_gdbarch_init): Update.
7200 * h8300-tdep.c (h8300_gdbarch_init): Update.
7201 * frv-tdep.c (frv_gdbarch_init): Update.
7202 * d10v-tdep.c (d10v_gdbarch_init): Update.
7203 * cris-tdep.c (cris_gdbarch_init): Update.
7204 * breakpoint.c (deprecated_frame_in_dummy): Update.
7205 * avr-tdep.c (avr_gdbarch_init): Update.
7206 * alpha-tdep.c (alpha_gdbarch_init): Update.
7207 * arm-tdep.c (arm_gdbarch_init): Update.
7208 * dummy-frame.c (dummy_frame_this_id): Update comments.
7209 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7210 * frame.c (legacy_get_prev_frame): Ditto.
7211 * valops.c (call_function_by_hand): Delete function.
7212 (hand_function_call): Rename to call_function_by_hand
7213
7214 2003-03-30 Andrew Cagney <cagney@redhat.com>
7215
7216 2002-11-10 Klee Dienes <kdienes@apple.com>
7217 * value.h (struct value): Update comment.
7218
7219 2003-03-30 Andrew Cagney <cagney@redhat.com>
7220
7221 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7222 D10V_FP_REGNUM.
7223 (d10v_gdbarch_init): Do not set fp_regnum.
7224
7225 * frame.c (get_frame_base): Force ID initialization.
7226 (get_prev_frame): Move computation of the frame ID from here ...
7227 (get_frame_id): ... to here.
7228 (legacy_get_prev_frame): Mark the frame ID as valid.
7229 * frame.h (struct frame_info): Add field "id_p".
7230
7231 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7232
7233 * i386-tdep.c (i386_store_struct_return): Removed.
7234 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7235
7236 2003-03-30 Andrew Cagney <cagney@redhat.com>
7237
7238 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7239 * gdbarch.h, gdbarch.c: Regenerate.
7240 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7241 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7242 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7243 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7244 * i386-tdep.c (i386_gdbarch_init): Ditto.
7245 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7246 * cris-tdep.c (cris_gdbarch_init): Ditto.
7247 * vax-tdep.c (vax_gdbarch_init): Ditto.
7248 * s390-tdep.c (s390_gdbarch_init): Ditto.
7249 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7250 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7251 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7252 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7253 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7254 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7255 * sparc-tdep.c (sparc_gdbarch_init): Update.
7256 * sh-tdep.c (sh_gdbarch_init): Update.
7257 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7258 * mips-tdep.c (mips_gdbarch_init): Update.
7259 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7260 * ia64-tdep.c (ia64_gdbarch_init): Update.
7261 * frv-tdep.c (frv_gdbarch_init): Update.
7262 * avr-tdep.c (avr_gdbarch_init): Update.
7263 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7264 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7265 instead of when push_dummy_call is not available.
7266
7267 2003-03-30 Andrew Cagney <cagney@redhat.com>
7268
7269 * infttrace.c: Include "gdbthread.h".
7270 (parent_attach_all): Fix function signature.
7271 (call_ptrace): Update call.
7272 * Makefile.in (infttrace.o): Update dependencies.
7273
7274 2003-03-30 Andrew Cagney <cagney@redhat.com>
7275
7276 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7277 PUSH_RETURN_ADDRESS.
7278 * gdbarch.h, gdbarch.c: Regenerate.
7279 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7280 * x86-64-tdep.c (x86_64_init_abi): Update.
7281 * v850-tdep.c (v850_gdbarch_init): Update.
7282 * sparc-tdep.c (sparc_gdbarch_init): Update.
7283 * sh-tdep.c (sh_gdbarch_init): Update.
7284 * s390-tdep.c (s390_gdbarch_init): Update.
7285 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7286 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7287 * mips-tdep.c (mips_gdbarch_init): Update.
7288 * mcore-tdep.c (mcore_gdbarch_init): Update.
7289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7290 * ia64-tdep.c (ia64_gdbarch_init): Update.
7291 * i386-tdep.c (i386_gdbarch_init): Update.
7292 * h8300-tdep.c (h8300_gdbarch_init): Update.
7293 * frv-tdep.c (frv_gdbarch_init): Update.
7294 * cris-tdep.c (cris_gdbarch_init): Update.
7295 * avr-tdep.c (avr_gdbarch_init): Update.
7296 * arm-tdep.c (arm_gdbarch_init): Update.
7297 * valops.c (hand_function_call): Update.
7298
7299 2003-03-29 Andrew Cagney <cagney@redhat.com>
7300
7301 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7302 sizeof_call_dummy_words.
7303 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7304 define.
7305 * gdbarch.h: Regenerate.
7306
7307 2003-03-29 Andrew Cagney <cagney@redhat.com>
7308
7309 * infttrace.h: New file.
7310 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7311 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7312 (hpread_read_doc_function_type): Detect an initialized type1.
7313 (hpread_quick_traverse): Initialize mod_name_string.
7314 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7315 (som_solib_get_solib_by_pc): Declare.
7316 (so_lib_thread_start_addr): Declare.
7317 (no_shared_libraries): Declare.
7318 * somread.c (init_import_symbols): Make static. Add forward
7319 declaration.
7320 * config/pa/nm-hppah.h: Include "infttrace.h" for
7321 parent_attach_all.
7322 (hppa_insert_hw_watchpoint): Declare.
7323 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7324 * hppah-nat.c: Include "gdb_string.h".
7325 (parent_attach_all): Delete extern declaration, moved to
7326 "infttrace.h".
7327 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7328 int.
7329 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7330 * Makefile.in (infttrace_h): Define.
7331 (hpread.o): Update dependencies.
7332 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7333 * hppa-hpux-tdep.c: Include "gdb_string.h".
7334 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7335 * infrun.c (handle_inferior_event): Always initialize
7336 stepped_after_stopped_by_watchpoint. Add default and remove
7337 fallthrough in switch statement.
7338 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7339 parameter to int.
7340 (hppa_remove_hw_watchpoint): Ditto.
7341
7342 2003-03-29 Andrew Cagney <cagney@redhat.com>
7343
7344 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7345 offset.
7346
7347 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7348
7349 * arm-tdep.c (arm_push_arguments): Delete.
7350 (struct stack_item): New type.
7351 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7352 (arm_store_struct_return): Delte.
7353 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7354 arm_push_arguments or arm_store_struct_return.
7355
7356 2003-03-28 Andrew Cagney <cagney@redhat.com>
7357
7358 * Makefile.in (d10v-tdep.o): Update dependencies.
7359 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7360 * d10v-tdep.c: Include "remote.h".
7361 (target_resume_hook): Delete extern declaration.
7362 (target_wait_loop_hook): Ditto.
7363 (tdisassemble_command): Eliminate assignment in "if" conditional.
7364 (d10v_ts2_register_sim_regno): Eliminate call to
7365 legacy_register_sim_regno.
7366 (d10v_ts3_register_sim_regno): Ditto.
7367
7368 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7369
7370 * thread.c: Reindented.
7371 * lin-lwp.c: Ditto.
7372 * linux-proc.c: Ditto.
7373
7374 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7375
7376 * MAINTAINERS (write after approval): Add myself.
7377
7378 2003-03-27 Theodore A. Roth <troth@openavr.org>
7379
7380 * objc-exp.y: Add missing semi-colons.
7381
7382 2003-03-27 Andrew Cagney <cagney@redhat.com>
7383
7384 * regcache.c (write_sp): Delete function and references.
7385 * inferior.h (write_sp): Delete declaration.
7386 * valops.c (hand_function_call): Replace write_sp with
7387 TARGET_WRITE_SP.
7388 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7389 (sparc_pop_frame): Ditto.
7390
7391 2003-03-27 Andrew Cagney <cagney@redhat.com>
7392
7393 * NEWS: Mention removal of support for hppa*-*-bsd* and
7394 hppa*-*-osf* natives, and hppa*-*-pro* target.
7395 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7396 * config/pa/xm-pa.h: Obsolete file.
7397 * config/pa/xm-hppab.h: Obsolete file.
7398 * config/pa/nm-hppab.h: Obsolete file.
7399 * config/pa/tm-hppab.h: Obsolete file.
7400 * config/pa/tm-hppao.h: Obsolete file.
7401 * config/pa/nm-hppao.h: Obsolete file.
7402 * config/pa/tm-pro.h: Obsolete file.
7403 * config/pa/hppaosf.mt: Obsolete file.
7404 * config/pa/hppaosf.mh: Obsolete file.
7405 * config/pa/hppapro.mt: Obsolete file.
7406 * config/pa/hppabsd.mt: Obsolete file.
7407 * config/pa/hppabsd.mh: Obsolete file.
7408 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7409 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7410 hppa*-*-osf*.
7411
7412 2003-03-27 Andrew Cagney <cagney@redhat.com>
7413
7414 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7415 push_arguments. Don't set push_return_address or write_sp.
7416 (d10v_push_dummy_call): Replace d10v_push_arguments.
7417 (d10v_push_return_address, d10v_write_sp): Delete function,
7418 handled by push_dummy_call.
7419
7420 2003-03-26 Andrew Cagney <cagney@redhat.com>
7421
7422 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7423 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7424 regcache and dummy_addr parameters.
7425 * gdbarch.h, gdbarch.c: Re-generate.
7426 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7427 available; assume it will handle stack alignment and return
7428 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7429 legacy_push_arguments.
7430 (legacy_push_arguments): Rename default_push_arguments.
7431 * value.h (legacy_push_arguments): Rename default_push_arguments.
7432 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7433 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7434 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7435 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7436 * config/i386/tm-symmetry.h: Update.
7437 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7438 * x86-64-tdep.c (x86_64_init_abi): Update.
7439 * v850-tdep.c (v850_gdbarch_init): Update.
7440 * sparc-tdep.c (sparc_gdbarch_init): Update.
7441 * sh-tdep.c (sh_gdbarch_init): Update.
7442 * s390-tdep.c (s390_gdbarch_init): Update.
7443 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7444 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7445 * mips-tdep.c (mips_gdbarch_init): Update.
7446 * mcore-tdep.c (mcore_gdbarch_init): Update.
7447 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7448 * ia64-tdep.c (ia64_gdbarch_init): Update.
7449 * i386-tdep.c (i386_gdbarch_init): Update.
7450 * hppa-tdep.c (hppa_gdbarch_init): Update.
7451 * h8300-tdep.c (h8300_gdbarch_init): Update.
7452 * frv-tdep.c (frv_gdbarch_init): Update.
7453 * d10v-tdep.c (d10v_gdbarch_init): Update.
7454 * cris-tdep.c (cris_gdbarch_init): Update.
7455 * avr-tdep.c (avr_gdbarch_init): Update.
7456 * arm-tdep.c (arm_gdbarch_init): Update.
7457 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7458 * alpha-tdep.c (alpha_gdbarch_init): Update.
7459
7460 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7461
7462 * signals/signals.c (do_target_signal_to_host): Correct realtime
7463 signal range test.
7464
7465 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7466
7467 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7468 (struct sal_chain, map_catch_names): Remove.
7469 (catch_exception_command_1): Don't call
7470 handle_gnu_4_16_catch_command.
7471
7472 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7473
7474 From Mark Dettinger <dettinge@de.ibm.com>:
7475 * dwarf2cfi.c (read_2u): Increment pointer by two.
7476
7477 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7478
7479 * signals/signals.c: Fix typos in last change.
7480
7481 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7482
7483 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7484 not already defined. Use __SIGRTMIN if available.
7485 (target_signal_from_host): Remove SIGRTMIN block.
7486 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7487 the signal is within the realtime range.
7488
7489 2003-03-25 Adam Fedor <fedor@gnu.org>
7490
7491 * Makefile.in (infrun.o): Add $(language_h)
7492 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7493 for language specific trampolines.
7494 * language.h (struct language_defn): Add skip_trampoline.
7495 (skip_language_trampoline): Declare.
7496 * language.c (unk_lang_trampoline, skip_language_trampoline):
7497 New functions.
7498 (unknown_language_defn, auto_language_defn, local_language_defn):
7499 Add ukn_lang_trampoline.
7500 * ada-lang.c (ada_language_defn): Add NULL for language
7501 specific skip_trampoline.
7502 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7503 scm-lang.c: Likewise.
7504 * objc-lang.c (objc_skip_trampoline): New function.
7505 (objc_language_defn): Add objc_skip_trampoline.
7506
7507 2003-03-25 Andrew Cagney <cagney@redhat.com>
7508
7509 * frame.c (get_prev_frame): Delay validating a frame's ID -
7510 non-NULL, didn't go backwards - until an attempt to unwind it to
7511 the previous frame.
7512
7513 2003-03-25 Andrew Cagney <cagney@redhat.com>
7514
7515 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7516 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7517 * gdbarch.h, gdbarch.c: Re-generate.
7518 * config/sparc/tm-sparc.h
7519 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7520 * sparc-tdep.c (sparc_gdbarch_init): Set
7521 deprecated_extra_stack_alignment_needed.
7522 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7523 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7524 extra_stack_alignment_needed.
7525 * v850-tdep.c (v850_gdbarch_init): Ditto.
7526 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7527 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7528 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7529 * cris-tdep.c (cris_gdbarch_init): Ditto.
7530 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7531 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7532
7533 2003-03-25 Andrew Cagney <cagney@redhat.com>
7534
7535 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7536 STORE_STRUCT_RETURN.
7537 * gdbarch.h, gdbarch.c: Regenerate.
7538 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7539 (d10v_push_arguments): Set the struct return register.
7540 (d10v_gdbarch_init): Update.
7541 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7542 * x86-64-tdep.c (x86_64_init_abi): Update.
7543 * vax-tdep.c (vax_gdbarch_init): Update.
7544 * v850-tdep.c (v850_gdbarch_init): Update.
7545 * sparc-tdep.c (sparc_gdbarch_init): Update.
7546 * sh-tdep.c (sh_gdbarch_init): Update.
7547 * s390-tdep.c (s390_gdbarch_init): Update.
7548 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7549 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7550 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7551 * mips-tdep.c (mips_gdbarch_init): Update.
7552 * mcore-tdep.c (mcore_gdbarch_init): Update.
7553 * m68k-tdep.c (m68k_gdbarch_init): Update.
7554 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7555 * ia64-tdep.c (ia64_gdbarch_init): Update.
7556 * i386-tdep.c (i386_gdbarch_init): Update.
7557 * hppa-tdep.c (hppa_gdbarch_init): Update.
7558 * h8300-tdep.c (h8300_gdbarch_init): Update.
7559 * frv-tdep.c (frv_gdbarch_init): Update.
7560 * cris-tdep.c (cris_gdbarch_init): Update.
7561 * avr-tdep.c (avr_gdbarch_init): Update.
7562 * arm-tdep.c (arm_gdbarch_init): Update.
7563 * alpha-tdep.c (alpha_gdbarch_init): Update.
7564
7565 2003-03-25 Andrew Cagney <cagney@redhat.com>
7566
7567 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7568 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7569 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7570 * gdbarch.h, gdbarch.c: Regenerate.
7571 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7572 call_dummy_stack_adjust_p.
7573 * vax-tdep.c (vax_gdbarch_init): Ditto.
7574 * v850-tdep.c (v850_gdbarch_init): Ditto.
7575 * sh-tdep.c (sh_gdbarch_init): Ditto.
7576 * s390-tdep.c (s390_gdbarch_init): Ditto.
7577 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7578 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7579 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7580 * mips-tdep.c (mips_gdbarch_init): Ditto.
7581 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7582 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7583 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7584 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7585 * i386-tdep.c (i386_gdbarch_init): Ditto.
7586 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7587 * frv-tdep.c (frv_gdbarch_init): Ditto.
7588 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7589 * cris-tdep.c (cris_gdbarch_init): Ditto.
7590 * avr-tdep.c (avr_gdbarch_init): Ditto.
7591 * arm-tdep.c (arm_gdbarch_init): Ditto.
7592 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7593 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7594 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7595 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7596 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7597 call_dummy_stack_adjust_p.
7598 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7599 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7600 * sparc-tdep.c (sparc32_push_arguments): Update.
7601 * valops.c (hand_function_call): Update.
7602
7603 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7604
7605 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7606 set_gdbarch_char_signed.
7607
7608 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7609
7610 PR cli/548
7611 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7612
7613 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7614
7615 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7616 (_initialize_arm_tdep): Don't set tm_print_insn.
7617
7618 2003-03-24 Adam Fedor <fedor@gnu.org>
7619
7620 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7621 * objc-lang.h: Add multiple inclusion protection.
7622 (start_msglist, add_msglist, end_msglist): Additional declarations.
7623
7624 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7625
7626 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7627 value was renamed to ARM_FLOAT_SOFT_FPA.
7628
7629 2003-03-23 Andrew Cagney <cagney@redhat.com>
7630
7631 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7632 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7633 * gdbarch.h, gdbarch.c: Regenerate.
7634 * valops.c (hand_function_call): Update.
7635 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7636 * frame.c (legacy_saved_regs_this_id): Update.
7637 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7638 * dummy-frame.h: Update.
7639 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7640 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7641 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7642 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7643 * config/m68k/tm-sun3.h: Update.
7644 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7645 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7646 * x86-64-tdep.c (x86_64_init_abi): Update.
7647 * vax-tdep.c (vax_gdbarch_init): Update.
7648 * v850-tdep.c (v850_gdbarch_init): Update.
7649 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7650 * sh-tdep.c (sh_gdbarch_init): Update.
7651 * s390-tdep.c (s390_gdbarch_init): Update.
7652 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7653 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7654 (frame_get_saved_regs): Update.
7655 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7656 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7657 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7658 * mips-tdep.c (mips_gdbarch_init): Update.
7659 * mcore-tdep.c (mcore_gdbarch_init): Update.
7660 * m68k-tdep.c (m68k_gdbarch_init): Update.
7661 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7662 * ia64-tdep.c (ia64_gdbarch_init): Update.
7663 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7664 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7665 (i386_interix_back_one_frame): Update.
7666 * hppa-tdep.c (hppa_gdbarch_init): Update.
7667 (hppa_init_extra_frame_info): Update.
7668 * h8300-tdep.c (h8300_gdbarch_init): Update.
7669 * frv-tdep.c (frv_gdbarch_init): Update.
7670 * cris-tdep.c (cris_gdbarch_init): Update.
7671 * avr-tdep.c (avr_gdbarch_init): Update.
7672 * arm-tdep.c (arm_gdbarch_init): Update.
7673 * alpha-tdep.c (alpha_gdbarch_init): Update.
7674
7675 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7676
7677 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7678 (arm_get_fp_model): Declare.
7679 * arm-tdep.c (fp_model_strings): New string array.
7680 (arm_fp_model, current_fp_model): New variables.
7681 (arm_get_fp_model): New function.
7682 (arm_set_fp): New function.
7683 (set_fp_model_sfunc): New function.
7684 (show_fp_model): New function.
7685 (_initialize_arm_tdep): Add new command to set/show the FPU.
7686 (arm_extract_return_value): Use arm_get_fp_model.
7687 (arm_store_return_value): Likewise.
7688 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7689 to initialize the floating-point data types.
7690 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7691 model is FPA.
7692
7693 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7694
7695 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7696 the current setting of each value.
7697 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7698 new_set and new_show. Use add_setshow_cmd_full and
7699 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7700 commands and add new version as subcommands of "set/show arm".
7701
7702 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7703
7704 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7705 (set_arm_command, show_arm_command): New functions.
7706 (_initialize_arm_tdep): Add them.
7707 (num_disassembly_options): Renamed from num_flavor_options.
7708 (valid_disassembly_styles): Renamed from valid_flavors.
7709 (disassembly_style): Renamed from disassembly_flavor.
7710 (set_disassembly_style_sfunc): Renamed from
7711 set_disassembly_flavor_sfunc.
7712 (set_disassembly_style): Renamed from set_disassembly_flavor.
7713 (arm_othernames): Updated.
7714 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7715 command. Add "set/show arm disassembly" commands. Deprecate
7716 "othernames" command.
7717
7718 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7719
7720 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7721 (arm-tdep.o): Depend on elf_arm_h.
7722
7723 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7724
7725 * Makefile.in (coff_internal_h): Define.
7726 (arm-tdep.o): Update dependencies.
7727
7728 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7729
7730 * arm-tdep.c (prologue_cache): Delete.
7731 (check_prologue_cache, save_prologue_cache): Delete.
7732 (arm_scan_prologue): Don't check or update the prologue_cache.
7733 (arm_gdb_arch_init): Don't initialize it.
7734 (_initialize_arm_tdep): Likewise.
7735
7736 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7737
7738 * MAINTAINERS (tui): Maintainer of tui code.
7739
7740 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7741
7742 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7743 (i386-cygwin-tdep.o): Add dependencies.
7744 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7745 * i386-cygwin-tdep.c: New file.
7746 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7747 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7748
7749 2003-03-20 Andrew Cagney <cagney@redhat.com>
7750
7751 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7752 (handle_inferior_event): Remove code calling
7753 DYNAMIC_TRAMPOLINE_NEXTPC.
7754
7755 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7756 already has a full path.
7757
7758 * main.c (gdb_main): Return 1.
7759 (captured_main): Call error to report an invalid interpreter.
7760
7761 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7762 * alpha-osf1-tdep.c: Include "gdb_string.h".
7763
7764 2003-03-19 J. Brobecker <brobecker@gnat.com>
7765
7766 Continuing work to convert the hppa targets to multiarch partial.
7767
7768 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7769 method, now that hppa_push_dummy_frame has a conformant prototype.
7770 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7771 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7772 for the switch to multiarch partial.
7773
7774 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7775
7776 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7777 when iss is issNull.
7778
7779 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7780
7781 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7782 NUM_REGS bounds check.
7783
7784 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7785
7786 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7787 * mips-tdep.c (gdb_assert.h): Include.
7788 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7789 (mips_register_name): Handle integer registers explicitly. Add
7790 bounds checking.
7791 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7792 (mips_lsi33k_reg_names): Don't list integer registers; they're
7793 handled by mips_register_name() now.
7794 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7795 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7796 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7797 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7798 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7799
7800 2003-03-18 Andrew Cagney <cagney@redhat.com>
7801
7802 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7803 a void pointer.
7804 * gdbtypes.h (print_scalar_formatted): Update declaration.
7805 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7806
7807 2003-03-18 J. Brobecker <brobecker@gnat.com>
7808
7809 * infrun.c (observer.h): Add #include.
7810 (normal_stop): Add call to observer_notify_normal_stop.
7811 * Makefile.in (infrun.o): Add dependency on observer.h.
7812
7813 2003-03-18 J. Brobecker <brobecker@gnat.com>
7814
7815 Continuing work to convert the hppa targets to multiarch partial.
7816 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7817 parameter. Reformat comment.
7818 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7819 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7820 to match new profile.
7821
7822 2003-03-18 J. Brobecker <brobecker@gnat.com>
7823
7824 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7825 appear to be working in any case.
7826
7827 2003-03-18 J. Brobecker <brobecker@gnat.com>
7828
7829 * observer.c (observer_test_first_observer): New static variable.
7830 (observer_test_second_observer): Likewise.
7831 (observer_test_third_observer): Likewise.
7832 (observer_test_first_notification_function): New static function.
7833 (observer_test_second_notification_function): Likewise.
7834 (observer_test_third_notification_function): Likewise.
7835
7836 2003-03-17 J. Brobecker <brobecker@gnat.com>
7837
7838 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7839 * somsolib.c (gdb_assert.h): Likewise.
7840 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7841 (somsolib.o): Likewise.
7842
7843 2003-03-17 Andrew Cagney <cagney@redhat.com>
7844
7845 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7846 BFD. Simplify setting of di.endian.
7847
7848 2003-03-17 Andrew Cagney <cagney@redhat.com>
7849
7850 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7851 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7852
7853 From Elena Zannoni <ezannoni@redhat.com>
7854 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7855 vector and floating-point parameters.
7856 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7857 convention.
7858 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7859
7860 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7861
7862 * MAINTAINERS: Remove my name from several maintainership roles.
7863
7864 2003-03-17 Andrew Cagney <cagney@redhat.com>
7865
7866 Fix frame off-by-one bug.
7867 * frame-unwind.h (frame_this_id_ftype): Replace
7868 frame_unwind_id_ftype.
7869 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7870 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7871 with "prev_register".
7872 * frame-unwind.c (frame_unwind_find_by_pc): Return
7873 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7874 comment.
7875 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7876 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7877 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7878 (dummy_frame_unwind): Update.
7879 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7880 sentinel_frame_register_unwind.
7881 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7882 (sentinel_frame_unwinder): Update.
7883 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7884 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7885 * frame.c (create_sentinel_frame): Update. Initialize
7886 "prologue_cache" instead of "unwind_cache".
7887 (frame_register_unwind): Call this frame's prev_register with the
7888 next frame and this frame's prologue cache.
7889 (get_prev_frame): Simplify. Always call prev frame's this_id with
7890 this frame and prev frame's prologue cache. Document that this
7891 call is shifted one to the left when compared to the
7892 frame_register_unwind call.
7893 (legacy_saved_regs_prev_register): Replace
7894 frame_saved_regs_register_unwind.
7895 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7896 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7897 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7898 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7899 (d10v_frame_unwind): Update.
7900 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7901 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7902 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7903 "saved_regs" with "this_saved_regs".
7904
7905 2003-03-16 Andrew Cagney <cagney@redhat.com>
7906
7907 * frame.c (frame_pop): Don't call target_store_registers. Fix
7908 problem reported by Mark Kettenis.
7909
7910 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7911
7912 * i386-tdep.c (i386_register_type): Renamed from
7913 i386_register_virtual_type. Adjust function signature.
7914 (i386_gdbarch_init): Set register_type instead of
7915 deprecated_max_register_raw_size,
7916 deprecated_max_register_virtual_size and register_virtual_type.
7917
7918 2003-03-14 Andrew Cagney <cagney@redhat.com>
7919
7920 * frame.c (get_prev_frame): When a legacy frame, always call
7921 legacy_get_prev_frame. Simplify unwind code using assumption that
7922 the unwinder is new.
7923 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7924 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7925 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7926
7927 2003-03-14 Andrew Cagney <cagney@redhat.com>
7928
7929 * frame.c (get_saved_register): Delete function.
7930 * frame.h (get_saved_register): Delete declaration.
7931 * xstormy16-tdep.c: Update comment.
7932 * regcache.h: Update comments.
7933 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7934 get_saved_register and extract_address, use
7935 frame_read_unsigned_register.
7936 (sparc_frame_saved_pc): Ditto.
7937 (sparc_get_saved_register): Instead of get_saved_register, use
7938 frame_register.
7939 (sparc_pop_frame): Ditto.
7940 * findvar.c: Update comments.
7941 (value_of_register): Call frame_register instead of
7942 get_saved_register.
7943 (value_from_register): Ditto.
7944 * config/sparc/tm-sparc.h: Update comment.
7945 * breakpoint.c: Update comment.
7946
7947 2003-03-14 Andrew Cagney <cagney@redhat.com>
7948
7949 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7950 GET_SAVED_REGISTER.
7951 * gdbarch.h, gdbarch.c: Re-generate.
7952 * frame.h: Update comments.
7953 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7954 * x86-64-tdep.c (x86_64_init_abi): Update.
7955 * sparc-tdep.c (sparc_gdbarch_init): Update.
7956 * sh-tdep.c (sh_gdbarch_init): Update.
7957 * mips-tdep.c (mips_gdbarch_init): Update.
7958 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7959 * cris-tdep.c (cris_gdbarch_init): Update.
7960 * ia64-tdep.c (ia64_gdbarch_init): Update.
7961 * frame.c (frame_register): Update.
7962 (get_saved_register): Update.
7963 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7964
7965 2003-03-13 Andrew Cagney <cagney@redhat.com>
7966
7967 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7968 * gdbarch.h, gdbarch.c: Regenerate.
7969 * valops.c (hand_function_call): Update comment.
7970 * stack.c (return_command): Update comment.
7971 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7972 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7973 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7974 * x86-64-tdep.c (x86_64_init_abi): Update.
7975 * vax-tdep.c (vax_gdbarch_init): Update.
7976 * v850-tdep.c (v850_gdbarch_init): Update.
7977 * sparc-tdep.c (sparc_gdbarch_init): Update.
7978 * sh-tdep.c (sh_gdbarch_init): Update.
7979 * s390-tdep.c (s390_gdbarch_init): Update.
7980 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7981 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7982 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7983 * mips-tdep.c (mips_gdbarch_init): Update.
7984 * mcore-tdep.c (mcore_gdbarch_init): Update.
7985 * m68k-tdep.c (m68k_gdbarch_init): Update.
7986 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7987 * ia64-tdep.c (ia64_gdbarch_init): Update.
7988 * i386-tdep.c (i386_gdbarch_init): Update.
7989 * hppa-tdep.c (hppa_gdbarch_init): Update.
7990 * h8300-tdep.c (h8300_gdbarch_init): Update.
7991 * frv-tdep.c (frv_gdbarch_init): Update.
7992 * cris-tdep.c (cris_gdbarch_init): Update.
7993 * avr-tdep.c (avr_gdbarch_init): Update.
7994 * arm-tdep.c (arm_gdbarch_init): Update.
7995 * alpha-tdep.c (alpha_gdbarch_init): Update.
7996
7997 2003-03-13 Andrew Cagney <cagney@redhat.com>
7998
7999 * frame.c (legacy_frame_p): New function.
8000 (get_prev_frame): Use legacy_frame_p.
8001 * frame.h (legacy_frame_p): Declare.
8002
8003 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8004
8005 * MAINTAINERS (write after approval): Alphabetically
8006 listing corrected.
8007
8008 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8009
8010 * MAINTAINERS (write after approval): Add myself.
8011
8012 2003-03-12 Andrew Cagney <cagney@redhat.com>
8013
8014 * frame.c (get_prev_frame): Rename the frame parameter to
8015 "this_frame".
8016 (get_next_frame, legacy_get_prev_frame): Ditto.
8017
8018 2003-03-12 Andrew Cagney <cagney@redhat.com>
8019
8020 * frame.c (get_current_frame): Check target_has_registers before
8021 checking target_has_stack.
8022 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8023 instead of deprecated_selected_frame.
8024 * findvar.c (value_of_register): Pass "frame", not
8025 deprecated_selected_frame, to value_of_builtin_reg.
8026
8027 2003-03-12 Andrew Cagney <cagney@redhat.com>
8028
8029 * regcache.c (regcache_cooked_write_signed): New function.
8030 (regcache_cooked_write_unsigned): New function.
8031 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8032 (regcache_cooked_read_signed): Fix regnum in range assertion.
8033 * regcache.h (regcache_cooked_write_signed): Declare.
8034 (regcache_cooked_write_unsigned): Declare.
8035
8036 2003-03-12 Andrew Cagney <cagney@redhat.com>
8037
8038 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8039 * gdbarch.h, gdbarch.c: Re-generate.
8040 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8041 * x86-64-tdep.h: Update.
8042 * x86-64-tdep.c (x86_64_init_abi): Update.
8043 * v850-tdep.c (v850_gdbarch_init): Update.
8044 * sparc-tdep.c (sparc_gdbarch_init): Update.
8045 * sh-tdep.c (sh_gdbarch_init): Update.
8046 * s390-tdep.c (s390_gdbarch_init): Update.
8047 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8048 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8049 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8050 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8051 * mips-tdep.c (mips_gdbarch_init): Update.
8052 * mcore-tdep.c (mcore_gdbarch_init): Update.
8053 * m68k-tdep.c (m68k_gdbarch_init): Update.
8054 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8055 * ia64-tdep.c (ia64_gdbarch_init): Update.
8056 * i386-tdep.c (i386_gdbarch_init): Update.
8057 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8058 * hppa-tdep.c (hppa_gdbarch_init): Update.
8059 * h8300-tdep.c (h8300_gdbarch_init): Update.
8060 * frv-tdep.c (frv_gdbarch_init): Update.
8061 * cris-tdep.c (cris_gdbarch_init): Update.
8062 * avr-tdep.c (avr_gdbarch_init): Update.
8063 * arm-tdep.c (arm_gdbarch_init): Update.
8064 * alpha-tdep.c (alpha_gdbarch_init): Update.
8065 * sh-tdep.c (sh_init_extra_frame_info): Update.
8066 (sh64_init_extra_frame_info): Update.
8067 * ns32knbsd-nat.c (frame_num_args): Update.
8068 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8069 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8070 (xstormy16_frame_chain_valid): Update.
8071 * vax-tdep.c (vax_saved_pc_after_call): Update.
8072 * v850-tdep.c (v850_frame_chain): Update.
8073 (v850_pop_frame): Update.
8074 (v850_init_extra_frame_info): Update.
8075 * sparc-tdep.c (setup_arbitrary_frame): Update.
8076 * ns32k-tdep.c (umax_frame_num_args): Update.
8077 * s390-tdep.c (s390_pop_frame_regular): Update.
8078 * mn10300-tdep.c (mn10300_frame_chain): Update.
8079 (mn10300_pop_frame_regular): Update.
8080 (mn10300_init_extra_frame_info): Update.
8081 * mips-tdep.c (mips_init_frame_pc_first): Update.
8082 (mips_frame_chain): Update.
8083 (mips_pop_frame): Update.
8084 * mcore-tdep.c (mcore_frame_chain): Update.
8085 (mcore_pop_frame): Update.
8086 (mcore_init_extra_frame_info): Update.
8087 * arch-utils.c (init_frame_pc_default): Update.
8088 * m68k-tdep.c (isi_frame_num_args): Update.
8089 (delta68_frame_num_args): Update.
8090 (news_frame_num_args): Update.
8091 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8092 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8093 (alpha_frame_chain): Update.
8094 (alpha_pop_frame): Update.
8095 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8096 (hppa_init_extra_frame_info): Update.
8097 (hppa_frame_chain): Update.
8098 (hppa_frame_chain_valid): Update.
8099 * cris-tdep.c (cris_init_extra_frame_info): Update.
8100 * avr-tdep.c (avr_init_extra_frame_info): Update.
8101 * arm-tdep.c (arm_frame_chain_valid): Update.
8102 (arm_init_extra_frame_info): Update.
8103 (arm_pop_frame): Update.
8104 * frame.c (frame_pc_unwind): Update.
8105 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8106 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8107 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8108 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8109 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8110 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8111
8112 2003-03-12 Andrew Cagney <cagney@redhat.com>
8113
8114 Eliminate the need for POP_FRAME.
8115 * frame.c (do_frame_unwind_register): New function.
8116 (frame_pop): When no POP_FRAME, pop the frame using register
8117 unwind and a scratch regcache.
8118 (frame_saved_regs_pop): Delete function.
8119 (trad_frame_unwinder): Update.
8120 * d10v-tdep.c (d10v_frame_pop): Delete function.
8121 (d10v_frame_unwind): Update.
8122 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8123 (sentinel_frame_unwinder): Update.
8124 * dummy-frame.c (dummy_frame_pop): Delete function.
8125 (dummy_frame_unwind): Update.
8126 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8127 (struct frame_unwind): Update.
8128
8129 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8130
8131 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8132 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8133 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8134 Do range checks on register number obtained from debugging info.
8135 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8136 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8137 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8138 mapping function.
8139 (do_fp_register_row): Fix typo which caused double type to be
8140 used when attempting to unpack a float.
8141
8142 2003-03-11 J. Brobecker <brobecker@gnat.com>
8143
8144 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8145
8146 2003-03-11 Andrew Cagney <cagney@redhat.com>
8147
8148 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8149 frame. Problem found by Corinna Vinschen.
8150
8151 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8152
8153 * doublest.c (floatformat_from_length): Accept also
8154 the real size of 'long double' type.
8155
8156 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8157
8158 From Klee Dienes <kdienes@apple.com>:
8159 * breakpoint.c (bpstat_copy): Copy the command lines as well
8160 as the old value, to match what is freed in bpstat_clear.
8161
8162 2003-03-10 David Carlton <carlton@math.stanford.edu>
8163
8164 * minsyms.c (add_minsym_to_hash_table): Replace
8165 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8166 (compare_minimal_symbols, compact_minimal_symbols)
8167 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8168 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8169 of DEPRECATED_SYMBOL_MATCHES_NAME.
8170 (lookup_minimal_symbol_solib_trampoline): Ditto.
8171
8172 2003-03-10 Andrew Cagney <cagney@redhat.com>
8173
8174 * regcache.h (regcache_cooked_read_ftype): Define.
8175 (regcache_save, regcache_restore): Add a cooked_read parameter.
8176 * regcache.c (regcache_save, regcache_restore): Update.
8177 (do_cooked_read): New function.
8178 (regcache_cpy): Pass do_cooked_read to regcache_save and
8179 regcache_restore.
8180
8181 2003-03-10 Andrew Cagney <cagney@redhat.com>
8182
8183 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8184 * gdbarch.h, gdbarch.c: Re-generate.
8185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8186 * x86-64-tdep.h: Update.
8187 * x86-64-tdep.c (x86_64_init_abi): Update.
8188 * v850-tdep.c (v850_gdbarch_init): Update.
8189 * sparc-tdep.c (sparc_gdbarch_init): Update.
8190 * sh-tdep.c (sh_gdbarch_init): Update.
8191 * s390-tdep.c (s390_gdbarch_init): Update.
8192 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8193 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8194 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8195 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8196 * mips-tdep.c (mips_gdbarch_init): Update.
8197 * mcore-tdep.c (mcore_gdbarch_init): Update.
8198 * m68k-tdep.c (m68k_gdbarch_init): Update.
8199 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8200 * ia64-tdep.c (ia64_gdbarch_init): Update.
8201 * i386-tdep.c (i386_gdbarch_init): Update.
8202 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8203 * hppa-tdep.c (hppa_gdbarch_init): Update.
8204 * h8300-tdep.c (h8300_gdbarch_init): Update.
8205 * frv-tdep.c (frv_gdbarch_init): Update.
8206 * cris-tdep.c (cris_gdbarch_init): Update.
8207 * avr-tdep.c (avr_gdbarch_init): Update.
8208 * arm-tdep.c (arm_gdbarch_init): Update.
8209 * alpha-tdep.c (alpha_gdbarch_init): Update.
8210 * sh-tdep.c (sh_init_extra_frame_info): Update.
8211 (sh64_init_extra_frame_info): Update.
8212 * ns32knbsd-nat.c (frame_num_args): Update.
8213 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8214 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8215 (xstormy16_frame_chain_valid): Update.
8216 * vax-tdep.c (vax_saved_pc_after_call): Update.
8217 * v850-tdep.c (v850_frame_chain): Update.
8218 (v850_pop_frame): Update.
8219 (v850_init_extra_frame_info): Update.
8220 * sparc-tdep.c (setup_arbitrary_frame): Update.
8221 * ns32k-tdep.c (umax_frame_num_args): Update.
8222 * s390-tdep.c (s390_pop_frame_regular): Update.
8223 * mn10300-tdep.c (mn10300_frame_chain): Update.
8224 (mn10300_pop_frame_regular): Update.
8225 (mn10300_init_extra_frame_info): Update.
8226 * mips-tdep.c (mips_init_frame_pc_first): Update.
8227 (mips_frame_chain): Update.
8228 (mips_pop_frame): Update.
8229 * mcore-tdep.c (mcore_frame_chain): Update.
8230 (mcore_pop_frame): Update.
8231 (mcore_init_extra_frame_info): Update.
8232 * arch-utils.c (init_frame_pc_default): Update.
8233 * m68k-tdep.c (isi_frame_num_args): Update.
8234 (delta68_frame_num_args): Update.
8235 (news_frame_num_args): Update.
8236 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8237 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8238 (alpha_frame_chain): Update.
8239 (alpha_pop_frame): Update.
8240 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8241 (hppa_init_extra_frame_info): Update.
8242 (hppa_frame_chain): Update.
8243 (hppa_frame_chain_valid): Update.
8244 * cris-tdep.c (cris_init_extra_frame_info): Update.
8245 * avr-tdep.c (avr_init_extra_frame_info): Update.
8246 * arm-tdep.c (arm_frame_chain_valid): Update.
8247 (arm_init_extra_frame_info): Update.
8248 (arm_pop_frame): Update.
8249 * frame.c (frame_pc_unwind): Update.
8250 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8251 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8252 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8253 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8254 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8255 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8256
8257 2003-03-10 Andrew Cagney <cagney@redhat.com>
8258
8259 * gdbarch.sh (gdbarch_unwind_pc): New method.
8260 * gdbarch.h, gdbarch.c: Regenerate.
8261 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8262 but use read_pc and FRAME_SAVED_PC as fall backs.
8263 (frame_saved_regs_pc_unwind): Delete function.
8264 (trad_frame_unwinder): Update.
8265 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8266 (struct frame_unwind): Update.
8267 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8268 (dummy_frame_unwind): Update.
8269 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8270 (sentinel_frame_unwinder): Update.
8271 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8272 (d10v_frame_unwind): Update.
8273 (d10v_unwind_pc): New function.
8274 (d10v_gdbarch_init): Set unwind_pc.
8275
8276 2003-03-10 Andrew Cagney <cagney@redhat.com>
8277
8278 * gdbarch.h: Re-generate.
8279
8280 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8281 PC.
8282 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8283 the PC register.
8284
8285 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8286
8287 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8288
8289 2003-03-08 Andrew Cagney <cagney@redhat.com>
8290
8291 * cli-out.c: Update copyright.
8292 (cli_out_data): Define typedef. Use instead of ui_out_data.
8293
8294 2003-03-08 Andrew Cagney <cagney@redhat.com>
8295
8296 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8297 the result.
8298
8299 2003-03-07 Andrew Cagney <cagney@redhat.com>
8300
8301 * gdbarch.sh: Don't generate two macro definitions when an
8302 undefined macro taking no arguments.
8303 * gdbarch.h: Regenerate.
8304
8305 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8306
8307 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8308 (x86_64_unwind_dummy_id): New functions.
8309 (x86_64_init_abi): Register these two new functions.
8310
8311 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8312
8313 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8314 (x86_64_skip_prologue): Move prologue detection to
8315 separate function.
8316 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8317
8318 2003-03-05 Andrew Cagney <cagney@redhat.com>
8319
8320 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8321 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8322 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8323 to use unwind_dummy_id when a dummy frame.
8324 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8325 predicate.
8326 * gdbarch.h, gdbarch.c: Regneerate.
8327
8328 2003-03-05 Andrew Cagney <cagney@redhat.com>
8329
8330 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8331 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8332 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8333 values.
8334
8335 2003-03-05 Andrew Cagney <cagney@redhat.com>
8336
8337 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8338 (struct d10v_unwind_cache): Delete field "frameless". Replace
8339 "next_addr" with "sp_offset". Add "r11_offset".
8340 (d10v_frame_unwind_cache): Update.
8341 (prologue_find_regs): Update. When "mv r11, sp", save the
8342 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8343 RN was saved in r11_offset.
8344
8345 2003-03-05 Andrew Cagney <cagney@redhat.com>
8346
8347 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8348 cached PC value in the next frame.
8349
8350 2003-03-05 Andrew Cagney <cagney@redhat.com>
8351
8352 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8353 "id_unwind_cache" with "id".
8354 (frame_id_unwind): Delete declaration.
8355 * frame.c (frame_id_unwind): Delete function.
8356 (get_prev_frame): Call the frame id unwind method directly. Store
8357 the returned next frame's ID value in NEXT_FRAME. Note that there
8358 is a problem with the wrong unwind ID being called with the wrong
8359 unwind cache.
8360
8361 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8362
8363 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8364
8365 2003-03-05 James Ingham <jingham@apple.com>
8366 Daniel Jacobowitz <drow@mvista.com>
8367
8368 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8369 (auto_cp_abi): New variable.
8370 (current_cp_abi, num_cp_abis): Make static.
8371 (CP_ABI_MAX): Define.
8372 (cp_abis): Turn into an array.
8373 (value_virtual_fn_field): Fix formatting.
8374 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8375 takes a pointer.
8376 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8377 (list_cp_abis, _initialize_cp_abi): New functions.
8378 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8379 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8380 switch_to_cp_abi. Update prototype for register_cp_abi.
8381 * Makefile.in (cp-abi.o): Update dependencies.
8382 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8383 instead of switch_to_cp_abi.
8384 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8385 register_cp_abi.
8386 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8387 register_cp_abi.
8388 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8389
8390 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8391
8392 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8393 * dwarf2loc.c: Include "regcache.h".
8394 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8395 register_size.
8396 * Makefile.in (dwarf2loc.o): Update dependencies.
8397
8398 2003-03-04 Theodore A. Roth <troth@openavr.org>
8399
8400 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8401 number of io registers reported by remote target is not a multiple of
8402 step.
8403
8404 2003-03-04 David Carlton <carlton@math.stanford.edu>
8405
8406 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8407 (lookup_symbol_aux_psymtabs): Update call to
8408 lookup_partial_symbol.
8409 (lookup_transparent_type, find_main_psymtab)
8410 (make_symbol_overload_list): Ditto.
8411
8412 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8413
8414 * MAINTAINERS (Write after approval): Update my email address.
8415
8416 2003-03-03 Andrew Cagney <cagney@redhat.com>
8417
8418 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8419 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8420 predicate. Replace MAX_REGISTER_RAW_SIZE.
8421 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8422 MAX_REGISTER_VIRTUAL_SIZE.
8423 * regcache.c (legacy_max_register_raw_size): New function.
8424 (legacy_max_register_virtual_size): New function.
8425 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8426 (MAX_REGISTER_RAW_SIZE): Define.
8427 (legacy_max_register_raw_size): Declare.
8428 (legacy_max_register_virtual_size): Declare.
8429 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8430 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8431 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8432 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8433 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8434 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8435 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8436 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8437 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8438 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8439 * vax-tdep.c (vax_gdbarch_init): Update.
8440 * v850-tdep.c (v850_gdbarch_init): Update.
8441 * sparc-tdep.c (sparc_gdbarch_init): Update.
8442 * sh-tdep.c (sh_gdbarch_init): Update.
8443 * s390-tdep.c (s390_gdbarch_init): Update.
8444 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8445 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8446 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8447 * mips-tdep.c (mips_gdbarch_init): Update.
8448 * mcore-tdep.c (mcore_gdbarch_init): Update.
8449 * m68k-tdep.c (m68k_gdbarch_init): Update.
8450 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8451 * ia64-tdep.c (ia64_gdbarch_init): Update.
8452 * i386-tdep.c (i386_gdbarch_init): Update.
8453 * hppa-tdep.c (hppa_gdbarch_init): Update.
8454 * h8300-tdep.c (h8300_gdbarch_init): Update.
8455 * frv-tdep.c (frv_gdbarch_init): Update.
8456 * cris-tdep.c (cris_gdbarch_init): Update.
8457 * avr-tdep.c (avr_gdbarch_init): Update.
8458 * arm-tdep.c (arm_gdbarch_init): Update.
8459 * alpha-tdep.c (alpha_gdbarch_init): Update.
8460 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8461 max_register_raw_size or max_register_virtual_size.
8462
8463 2003-03-03 David Carlton <carlton@math.stanford.edu>
8464
8465 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8466 SYMBOL_MATCHES_NAME, add comment.
8467 (SYMBOL_MATCHES_NATURAL_NAME): New.
8468 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8469 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8470 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8471 * symtab.c (lookup_partial_symbol): Use
8472 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8473 unhelpful comment.
8474 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8475 SYMBOL_MATCHES_NAME.
8476 Fix for PR c++/33.
8477
8478 2003-03-03 David Carlton <carlton@math.stanford.edu>
8479
8480 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8481 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8482 by regexp matching against SYMBOL_NATURAL_NAME.
8483
8484 2003-03-03 David Carlton <carlton@math.stanford.edu>
8485
8486 * linespec.c (find_method): Extract code into collect_methods.
8487 (collect_methods): New.
8488
8489 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8490
8491 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8492 get_frame_base.
8493
8494 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8495 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8496
8497 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8498
8499 * arch-utils.c (generic_register_byte): Fix to use the loop index
8500 and not regnum when summing the size of all registers up to regnum.
8501
8502 2003-03-01 Andrew Cagney <cagney@redhat.com>
8503
8504 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8505 FRAME_INIT_SAVED_REGS.
8506 * gdbarch.h, gdbarch.c: Regenerate.
8507 * stack.c (frame_info): Update.
8508 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8509 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8510 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8511 * ns32k-tdep.c (ns32k_pop_frame): Update.
8512 * mips-tdep.c (mips_pop_frame): Update.
8513 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8514 * ia64-tdep.c (ia64_frame_chain): Update.
8515 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8516 (ia64_frameless_function_invocation): Update.
8517 (ia64_init_extra_frame_info): Update.
8518 (ia64_pop_frame_regular): Update.
8519 * frame.h (struct frame_info): Update comment.
8520 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8521 * frame.c (frame_saved_regs_register_unwind): Update.
8522 (frame_saved_regs_register_unwind): Update.
8523 (deprecated_generic_get_saved_register): Update.
8524 * cris-tdep.c: Update comment.
8525 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8526 Rename macro.
8527 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8528 * x86-64-tdep.c (x86_64_init_abi): Update.
8529 * vax-tdep.c (vax_gdbarch_init): Update.
8530 * v850-tdep.c (v850_gdbarch_init): Update.
8531 * sparc-tdep.c (sparc_gdbarch_init): Update.
8532 * sh-tdep.c (sh_gdbarch_init): Update.
8533 * s390-tdep.c (s390_gdbarch_init): Update.
8534 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8535 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8536 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8537 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8538 * mips-tdep.c (mips_gdbarch_init): Update.
8539 * mcore-tdep.c (mcore_gdbarch_init): Update.
8540 * m68k-tdep.c (m68k_gdbarch_init): Update.
8541 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8542 * ia64-tdep.c (ia64_gdbarch_init): Update.
8543 * i386-tdep.c (i386_gdbarch_init): Update.
8544 * frv-tdep.c (frv_gdbarch_init): Update.
8545 * avr-tdep.c (avr_gdbarch_init): Update.
8546 * arm-tdep.c (arm_gdbarch_init): Update.
8547 * alpha-tdep.c (alpha_gdbarch_init): Update.
8548
8549 2003-03-01 Andrew Cagney <cagney@redhat.com>
8550
8551 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8552 option enum and switch. When no windows, set the interpreter to
8553 INTERP_CONSOLE.
8554
8555 2003-03-01 Andrew Cagney <cagney@redhat.com>
8556
8557 * main.c (captured_main): Replace magic option characters with an
8558 enum.
8559
8560 2003-03-01 Andrew Cagney <cagney@redhat.com>
8561
8562 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8563 INIT_EXTRA_FRAME_INFO.
8564 * gdbarch.h, gdbarch.c: Regenerate.
8565 * arm-tdep.c: Update comments.
8566 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8567 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8568 * frame.h, avr-tdep.c: Ditto.
8569 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8570 (create_new_frame, legacy_get_prev_frame): Ditto.
8571 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8572 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8573 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8574 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8575 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8576 * v850-tdep.c (v850_gdbarch_init): Ditto.
8577 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8578 * sh-tdep.c (sh_gdbarch_init): Ditto.
8579 * s390-tdep.c (s390_gdbarch_init): Ditto.
8580 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8581 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8582 * mips-tdep.c (mips_gdbarch_init): Ditto.
8583 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8584 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8585 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8586 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8587 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8588 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8589 * frv-tdep.c (frv_gdbarch_init): Ditto.
8590 * cris-tdep.c (cris_gdbarch_init): Ditto.
8591 * avr-tdep.c (avr_gdbarch_init): Ditto.
8592 * arm-tdep.c (arm_gdbarch_init): Ditto.
8593 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8594 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8595
8596 2003-03-01 Andrew Cagney <cagney@redhat.com>
8597
8598 * gdbarch.sh (register_type): New function with predicate.
8599 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8600 * gdbarch.h, gdbarch.c: Re-generate.
8601 * arch-utils.c (generic_register_byte): Use generic_register_size.
8602 (generic_register_size): When available, use
8603 gdbarch_register_type.
8604 * regcache.c (init_regcache_descr): When available, initialize the
8605 register type array using gdbarch_register_type. If the
8606 architecture supplies gdbarch_register_type, do not use the legacy
8607 regcache layout.
8608 * d10v-tdep.c (d10v_register_type): Replace
8609 d10v_register_virtual_type.
8610 (d10v_gdbarch_init): Set register_type instead of
8611 register_virtual_type.
8612
8613 2003-03-01 Andrew Cagney <cagney@redhat.com>
8614
8615 * Makefile.in (ax-gdb.o): Update dependencies.
8616 * ax-gdb.c: Include "regcache.h".
8617 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8618 * findvar.c (value_of_register): Ditto.
8619 * infcmd.c (default_print_registers_info): Ditto.
8620
8621 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8622
8623 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8624 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8625
8626 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8627
8628 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8629 of STREQ.
8630
8631 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8632
8633 * Makefile.in (dwarf2loc.o): Update dependencies.
8634 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8635 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8636 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8637 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8638 (locexpr_tracepoint_var_ref): New function.
8639 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8640
8641 2003-02-28 Andrew Cagney <cagney@redhat.com>
8642
8643 * regcache.c (register_size): New function.
8644 * regcache.h (register_size): Declare
8645 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8646 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8647
8648 2003-02-28 David Carlton <carlton@math.stanford.edu>
8649
8650 * linespec.c (decode_compound): Extract code into find_method.
8651 (find_method): New.
8652
8653 2003-02-28 J. Brobecker <brobecker@gnat.com>
8654
8655 * Makefile.in: Add rules to build and link in observer.o.
8656
8657 2003-02-27 J. Brobecker <brobecker@gnat.com>
8658
8659 * observer.c: Minor comments edits.
8660
8661 2003-02-27 J. Brobecker <brobecker@gnat.com>
8662
8663 * observer.h, observer.c: New file.
8664
8665 2003-02-27 Andrew Cagney <cagney@redhat.com>
8666
8667 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8668
8669 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8670
8671 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8672 (M6812_OP_STS_EXT): Likewise.
8673 (m6811_prologue): Use the above to recognize prologue.
8674 (m6812_prologue): Likewise.
8675
8676 2003-02-27 David Carlton <carlton@math.stanford.edu>
8677
8678 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8679 SYMBOL_PRINT_NAME.
8680 (compare_psymbols): Ditto.
8681 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8682
8683 2003-02-27 Michael Snyder <msnyder@redhat.com>
8684
8685 * f-lang.c (build_fortran_types): New function.
8686 (_initialize_f_language): Gdbarch-register built-in fortran types.
8687 * doublest.c (extract_floating): Fix warning text.
8688
8689 2003-02-27 Andrew Cagney <cagney@redhat.com>
8690
8691 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8692 predicate. Replaces PUSH_DUMMY_FRAME.
8693 * gdbarch.h, gdbarch.c: Regnerate.
8694 * valops.c (hand_function_call): Update. Call
8695 generic_push_dummy_frame directly.
8696 * vax-tdep.c (vax_gdbarch_init): Update.
8697 * sparc-tdep.c (sparc_gdbarch_init): Update.
8698 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8699 * m68k-tdep.c (m68k_gdbarch_init): Update.
8700 * hppa-tdep.c (hppa_gdbarch_init): Update.
8701 * alpha-tdep.c (alpha_gdbarch_init): Update.
8702 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8703 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8704 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8705 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8706 push_dummy_frame to generic_push_dummy_frame.
8707 * v850-tdep.c (v850_gdbarch_init): Ditto.
8708 * sh-tdep.c (sh_gdbarch_init): Ditto.
8709 * s390-tdep.c (s390_gdbarch_init): Ditto.
8710 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8711 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8712 * mips-tdep.c (mips_gdbarch_init): Ditto.
8713 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8714 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8715 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8716 * i386-tdep.c (i386_gdbarch_init): Ditto.
8717 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8718 * frv-tdep.c (frv_gdbarch_init): Ditto.
8719 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8720 * cris-tdep.c (cris_gdbarch_init): Ditto.
8721 * avr-tdep.c (avr_gdbarch_init): Ditto.
8722 * arm-tdep.c (arm_gdbarch_init): Ditto.
8723
8724 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8725
8726 * mips-tdep.c (show_mips_abi): New function.
8727 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8728 command ``show mips abi''.
8729
8730 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8731
8732 From Elena Zannoni <ezannoni@redhat.com>
8733 * dbxread.c (process_one_symbol): Only record line 0 if one or
8734 more sline entries have been seen for the function.
8735
8736 2003-02-26 Michael Chastain <mec@shout.net>
8737
8738 * configure: Regenerate with autoconf 000227.
8739
8740 2003-02-26 Michael Chastain <mec@shout.net>
8741
8742 Close PR build/660.
8743 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8744 for old libc5/glibc.
8745 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8746
8747 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8748
8749 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8750 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8751
8752 2003-02-26 Michael Chastain <mec@shout.net>
8753
8754 * configure.in: New variable HAVE_UINTPTR_T.
8755 * configure, config.in: Regenerated.
8756
8757 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8758
8759 Fix PR build/1097.
8760 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8761
8762 2003-02-25 Andrew Cagney <cagney@redhat.com>
8763
8764 * frame.c (get_prev_frame): Add comment on check for
8765 inside_entry_func. Only check for inside_entry_file when not a
8766 dummy and not a sentinel. Check that the new frame is not inner
8767 to the old frame.
8768
8769 2003-02-25 Andrew Cagney <cagney@redhat.com>
8770
8771 * frame.c (frame_debug): New variable.
8772 (_initialize_frame): Add "set/show debug frame" command.
8773 (get_prev_frame): When frame_debug, print reason why unwind
8774 failed.
8775
8776 2003-02-25 Michael Chastain <mec@shout.net>
8777
8778 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8779 to avoid uintptr_t definition problems.
8780
8781 2003-02-25 David Carlton <carlton@math.stanford.edu>
8782
8783 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8784 (SYMBOL_LINKAGE_NAME): Ditto.
8785 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8786 SYMBOL_LINKAGE_NAME.
8787 (struct general_symbol_info): Expand comment.
8788 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8789 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8790 (SYMBOL_MATCHES_REGEXP): Ditto.
8791 * symtab.c (symbol_natural_name): New function.
8792 * objfiles.h: Replace all uses of SYMBOL_NAME by
8793 DEPRECATED_SYMBOL_NAME.
8794 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8795 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8796 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8797 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8798 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8799 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8800 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8801 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8802 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8803 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8804 * ada-exp.y: Ditto.
8805 * ada-exp.y: Update copyright.
8806 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8807 * cp-valprint.c: Ditto.
8808
8809 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8810
8811 * infptrace.c (detach): Do not flag error if ptrace detach fails
8812 and errno is set to ESRCH.
8813
8814 2003-02-24 Andrew Cagney <cagney@redhat.com>
8815
8816 * infptrace.c (udot_info): Change type of udot_off to long. Use
8817 paddr when printing udot_off's value.
8818
8819 2003-02-24 David Carlton <carlton@math.stanford.edu>
8820
8821 * symtab.c (make_symbol_overload_list): Only read in partial
8822 symtabs containing a matching partial symbol.
8823
8824 2003-02-24 David Carlton <carlton@math.stanford.edu>
8825
8826 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8827 do the comparison, not strcmp.
8828 * symfile.c (compare_psymbols): Ditto.
8829 * defs.h: Declare strcmp_iw_ordered.
8830 * utils.c (strcmp_iw_ordered): New function.
8831
8832 2003-02-24 Jim Blandy <jimb@redhat.com>
8833
8834 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8835 support, shared libs): Remove my name from here, to better reflect
8836 reality.
8837
8838 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8839
8840 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8841 (target_ops): Add to_have_continuable_watchpoint.
8842 * target.c (update_current_target): Add INHERIT line for
8843 to_have_continuable_watchpoint.
8844 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8845 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8846 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8847 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8848
8849 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8850
8851 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8852 maintainership.
8853
8854 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8855
8856 * solib.c (solib_open): Call target defined search function after
8857 failing with solib-search-path.
8858 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8859 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8860
8861 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8862
8863 * MAINTAINERS: Add myself to Write After section.
8864
8865 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8866
8867 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8868
8869 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8870
8871 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8872 (m68hc11_add_reggroups): New function.
8873 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8874 (m68hc11_gdbarch_init): Install the reggroups.
8875 (_initialize_m68hc11_tdep): Initialize them.
8876
8877 2003-02-21 James E Wilson <wilson@tuliptree.org>
8878
8879 * MAINTAINERS: Update my email address.
8880
8881 2003-02-21 David Carlton <carlton@math.stanford.edu>
8882
8883 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8884
8885 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8886
8887 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8888 * symtab.h: Add opaque declarations of struct axs_value and
8889 struct agent_expr.
8890 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8891 (struct location_funcs): New type.
8892 (struct symbol): Add "loc" to aux_value.
8893 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8894 * dwarf2read.c: Include "dwarf2expr.h".
8895 (dwarf2_symbol_mark_computed): New function.
8896 (read_func_scope): Use it.
8897 (var_decode_location): New function.
8898 (new_symbol): Use it.
8899 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8900
8901 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8902 (dwarf2expr_h, dwarf2loc_h): New variables.
8903 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8904 (dwarf2expr.o, dwarf2loc.o): New rules.
8905 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8906 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8907 LOC_COMPUTED_ARG.
8908 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8909 * m2-exp.y (yylex): Likewise.
8910 * printcmd.c (address_info, print_frame_args): Likewise.
8911 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8912 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8913 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8914 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8915 * symtab.c (lookup_block_symbol): Likewise.
8916
8917 2003-02-20 Adam Fedor <fedor@gnu.org>
8918
8919 * symtab.h: Remove objc_specific struct
8920 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8921 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8922 Have language_objc use cplus_specific struct.
8923
8924 2003-02-20 Tom Tromey <tromey@redhat.com>
8925
8926 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8927 TYPE_NAME, when printing a String value. PR java/1075.
8928
8929 2003-02-20 Adam Fedor <fedor@gnu.org>
8930
8931 * objc-lang.h (find_methods): Remove declaration.
8932 * objc-lang.c (find_methods): Make static.
8933
8934 2003-02-20 Christopher Faylor <cgf@redhat.com>
8935
8936 * win32-nat.c (get_image_name): Check return value from
8937 ReadProcessMemory.
8938 (child_xfer_memory): Ditto.
8939
8940 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8941
8942 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8943 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8944 '${exec_prefix}' (in addition to the expansion thereof) as
8945 relocatable.
8946 * configure: Rebuilt.
8947
8948 2003-02-20 David Carlton <carlton@math.stanford.edu>
8949
8950 * symtab.c (search_symbols): Revert the search_symbols part of my
8951 2002-12-23 patch. Add comment.
8952
8953 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8954
8955 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8956 * dbxread.c (elfstab_build_psymtabs): Don't call
8957 install_minimal_symbols.
8958 (stabsect_build_psymtabs): Likewise.
8959 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8960 earlier.
8961 * somread.c (som_symfile_read): Call install_minimal_symbols
8962 and do_cleanups earlier.
8963 * nlmread.c (nlm_symfile_read): Likewise.
8964 * mdebugread.c (elfmdebug_build_psymtabs): Call
8965 install_minimal_symbols and make appropriate cleanups.
8966
8967 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8968
8969 * solib.c (reload_shared_libraries): New function.
8970 (_initialize_solib): Add callbacks for ``set solib-search-path''
8971 and ``set solib-absolute-prefix''.
8972
8973 2003-02-20 David Carlton <carlton@math.stanford.edu>
8974
8975 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8976 expand comment.
8977 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8978 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8979 * ada-typeprint.c (ada_typedef_print): Ditto.
8980 * ax-gdb.c (gen_var_ref): Ditto.
8981 * breakpoint.c (print_one_breakpoint): Ditto.
8982 * buildsym.c (finish_block): Ditto.
8983 * c-valprint.c (c_val_print): Ditto.
8984 * expprint.c (print_subexp): Ditto.
8985 * findvar.c (locate_var_value): Ditto.
8986 * infcmd.c (jump_command): Ditto.
8987 * linespec.c (decode_line_2, decode_compound): Ditto.
8988 * maint.c (maintenance_translate_address): Ditto.
8989 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8990 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8991 Ditto.
8992 * p-valprint.c (pascal_val_print): Ditto.
8993 * stabsread.c (define_symbol): Ditto.
8994 * stack.c (print_frame, frame_info, print_block_frame_locals)
8995 (print_frame_arg_vars, return_command): Ditto.
8996 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8997 * symmisc.c (print_symbol): Ditto.
8998 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8999 (compare_search_syms, print_symbol_info, print_msymbol_info)
9000 (rbreak_command): Ditto.
9001 * tracepoint.c (tracepoints_info): Ditto.
9002 * typeprint.c (typedef_print): Ditto.
9003 * valops.c (value_of_variable, hand_function_call): Ditto.
9004 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9005 * ada-typeprint.c: Update Copyright.
9006 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9007 * tracepoint.c, cli/cli-cmds.c: Ditto.
9008
9009 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9010
9011 * frame.c (generic_unwind_get_saved_register): Make non-static.
9012 * frame.h (generic_unwind_get_saved_register): Declare.
9013 * mips-tdep.c (read_next_frame_reg): Fetch register from
9014 current regcache when frame is NULL.
9015 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9016 that must be NULL.
9017 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9018 instead of frame_register_unwind().
9019
9020 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9021
9022 * remote-sim.c (gdbsim_insert_breakpoint)
9023 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9024 code.
9025
9026 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9027
9028 * remote.c (_initialize_remote): Add commands "set/show remote
9029 hardware-watchpoint-limit" and "set/show remote
9030 hardware-breakpoint-limit".
9031 (remote_hw_watchpoint_limit): Initialize to -1.
9032 (remote_hw_breakpoint_limit): Ditto.
9033 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9034
9035 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9036
9037 * coff-pe-read.c: New file - support reading of minimal symbols from a
9038 portable executable using the export table.
9039 * coff-pe-read.h: New file.
9040 * coffread.c: Include coff-pe-read.h.
9041 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9042 debugging symbols found.
9043 * Makefile.in (SFILES): Add coff-pe-read.o.
9044 (coff_pe_read_h): Define.
9045 (COMMON_OBS): Add coff-pe-read.o.
9046 (coffread.o): Add coff_pe_read_h dependency.
9047 (coff-pe-read.o): New target.
9048
9049 2003-02-19 David Carlton <carlton@math.stanford.edu>
9050
9051 * Makefile.in (SFILES): Add block.c.
9052 (block_h): New.
9053 (COMMON_OBS): Add block.o.
9054 (block.o): New.
9055 (x86-64-tdep.o): Add $(block_h).
9056 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9057 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9058 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9059 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9060 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9061 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9062 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9063 * value.h: Add opaque declaration for struct block.
9064 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9065 * ada-lang.h: Ditto.
9066 * x86-64-tdep.c: #include "block.h"
9067 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9068 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9069 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9070 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9071 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9072 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9073 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9074 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9075 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9076 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9077 * symtab.c (block_function): Ditto.
9078 (contained_in): Ditto.
9079 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9080 block.h. Add opaque declaration for struct block.
9081 * symtab.h: Move block_function and contained_in declarations to
9082 block.h. Add opaque declarations for struct block, struct
9083 blockvector.
9084 (struct block): Move to block.h.
9085 (struct blockvector): Ditto.
9086 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9087 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9088 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9089 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9090 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9091 Ditto.
9092 * block.c: New file.
9093 * block.h: New file.
9094
9095 2003-02-19 Theodore A. Roth <troth@openavr.org>
9096
9097 * avr-tdep.c (avr_extract_return_value): Remove function.
9098 (avr_store_return_value): Remove function.
9099 (avr_extract_struct_value_address): Remove function.
9100 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9101
9102 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9103
9104 * rs6000-tdep.c: Include "gdb_assert.h".
9105 (registers_e500): Add "acc" and "spefscr".
9106 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9107 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9108 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9109 really is "r0".
9110 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9111
9112 2003-02-18 Keith Seitz <keiths@redhat.com>
9113
9114 * Makefile.in: Add gdbtk-interps.c.
9115
9116 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9117
9118 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9119 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9120
9121 2003-02-18 Andrew Cagney <cagney@redhat.com>
9122
9123 * symtab.h (struct objfile): Add opaque declaration.
9124
9125 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9126
9127 From Jim Ingham <jingham@apple.com>:
9128 * dbxread.c (process_one_symbol): Use last_function_start rather
9129 than function_start_offset to find the real beginning of the
9130 current function. The latter is just the text section offset on
9131 some systems, the former is always the real function start.
9132
9133 2003-02-17 Andrew Cagney <cagney@redhat.com>
9134
9135 * configure.in: Revert ${target} != ${host}.
9136
9137 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9138
9139 * configure.in (Makefile): Use the test ${target} != ${host},
9140 instead of the absence of the "nm.h" file, to determine of the
9141 configuration non-native.
9142 * configure: Regenerate.
9143
9144 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9145
9146 From Brian Ford <ford@vss.fsi.com>
9147
9148 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9149 conditionalize tui_active test.
9150 (lookup_cmd_1): Ditto.
9151
9152 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9153
9154 * configure.in: Add check for _etext.
9155 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9156 available.
9157 * config.in, configure: regenerated.
9158
9159 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9160
9161 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9162
9163 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9164
9165 * main.c (tui_version): Delete variable.
9166 (captured_main): When --tui, set interpreter_p to "tui" instead of
9167 enabling tui_version.
9168 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9169 tui_version.
9170 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9171 * cli/cli-cmds.c (disassemble_command): Ditto.
9172 * defs.h (tui_version): Delete declaration.
9173 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9174 (tui-interp.o): Add rules.
9175 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9176
9177 2003-02-14 Christopher Faylor <cgf@redhat.com>
9178
9179 * win32-nat.c (register_loaded_dll): Correctly set address range for
9180 just-loaded dll.
9181
9182 2003-02-12 Jason Molenda (jmolenda@apple.com)
9183
9184 * symmisc.c (print_objfile_statistics): Include information about
9185 the number of psymtabs and symtabs in each object file.
9186
9187 2003-02-13 Keith R Seitz <keiths@redhat.com>
9188
9189 * main.h (struct captured_main_args): Add interpreter_p.
9190 * main.c (captured_main): Initialize interpreter_p from context.
9191 * gdb.c (main): Set interpreter_p argument.
9192 * Makefile.in (gdb.o): Add dependency for interps.h.
9193
9194 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9195
9196 * event-top.c (cli_command_loop): Delete declaration.
9197 (_initialize_event_loop): Delete function setting event_loop_hook.
9198 * event-top.h (cli_command_loop): Declare. Update copyright.
9199 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9200 * interps.c (current_interp_command_loop): When event_loop_p, call
9201 cli_command_loop.
9202
9203 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9204
9205 * interps.h (interp_command_loop_ftype): Change return type to
9206 void.
9207
9208 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9209
9210 * x86-64-tdep.c (x86_64_extract_return_value)
9211 (x86_64_store_return_value): Use regcache instead of regbuf.
9212 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9213 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9214
9215 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9216
9217 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9218 * aclocal.m4: Regenerate.
9219 * configure: Regenerate.
9220
9221 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9222 TCL_LD_SEARCH_FLAGS.
9223
9224 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9225
9226 * dwarf2cfi.c: Reindented.
9227
9228 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9229
9230 * interps.c (clear_interpreter_hooks): Convert function definition
9231 to ISO C.
9232
9233 2003-02-07 David Carlton <carlton@math.stanford.edu>
9234
9235 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9236
9237 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9238
9239 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9240 (struct type): ...to here.
9241 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9242 field.
9243 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9244 (replace_type): Set length on all type variants for a given type.
9245
9246 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9247
9248 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9249 <sys/stat.h>.
9250 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9251
9252 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9253
9254 * Makefile.in (symm-nat.o): Update dependencies.
9255 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9256 (lynx-nat.o, ia64-linux-nat.): Ditto.
9257 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9258 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9259 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9260
9261 * Makefile.in (inflow_h): Define.
9262 (procfs.o, inflow.o, procfs.o): Update dependencies.
9263 * inftarg.c (child_stop): Delete extern declaration of
9264 inferior_process_group. Include "inflow.h".
9265 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9266 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9267 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9268 (our_process_group, inferior_process_group): Extern declarations.
9269
9270 * procfs.c: Include "gdb_assert.h".
9271
9272 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9273 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9274 * jv-typeprint.c (java_type_print_base): Ditto.
9275 * typeprint.c (typedef_print): Eliminate STREQ.
9276 * cli/cli-script.c (define_command, define_command): Ditto.
9277 * main.c (captured_main): Ditto.
9278 * values.c (lookup_internalvar): Ditto.
9279 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9280 within `if' conditional.
9281 * linespec.c (decode_line_2): Ditto.
9282 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9283 (bfd_openw_with_cleanup): Ditto.
9284
9285 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9286
9287 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9288 legacy_extract_return_value and store_return_value to
9289 legacy_return_value.
9290
9291 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9292
9293 * win32-nat.c (get_relocated_section_addrs): New function. Find
9294 section load addresses for symbol handling in relocated DLLs.
9295 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9296
9297 2003-02-05 Fred Fish <fnf@intrinsity.com>
9298
9299 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9300 '=' and '!='.
9301 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9302 with '&' and '=='.
9303 (angel_RDI_info): Ditto.
9304 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9305 with '&' and '!='.
9306 (threads_continue_all_with_signals): Ditto.
9307
9308 2003-02-05 Jim Ingham <jingham@apple.com>
9309 Keith Seitz <keiths@redhat.com>
9310 Elena Zannoni <ezannoni@redhat.com>
9311 Andrew Cagney <ac131313@redhat.com>
9312
9313 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9314 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9315 (SUBDIR_MI_OBS): Add "mi-interp.o".
9316 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9317 (SFILES): Add "interps.c".
9318 (COMMON_OBS): Add "interps.o".
9319 (interps_h, mi_main_h): Define.
9320 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9321 (mi-main.o, main.o, event-top.o): Update dependencies.
9322 * cli/cli-interp.c: New file.
9323 * interps.h, interps.c: New files.
9324 * top.c: (gdb_init): Don't install the default interpreter, handed
9325 by captured_main.
9326 * main.c: Include "interps.h".
9327 (interpreter_p): Note that it should malloc'ed.
9328 (captured_command_loop): Call current_interp_command_loop.
9329 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9330 xfree and xstrdup when updating interpreter_p. Install the
9331 default interpreter. Add hack to stop mi1's copyright notice
9332 being encoded.
9333 * event-top.h (gdb_setup_readline): Declare.
9334 (gdb_disable_readline): Declare.
9335 * event-top.c: Include "interps.h".
9336 (display_gdb_prompt): Call current_interp_display_prompt_p.
9337 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9338 gdb_stdlog, and gdb_stdtarg.
9339 (_initialize_event_loop): Don't call gdb_setup_readline.
9340 * cli-out.c (cli_out_set_stream): New function.
9341 * cli-out.h (cli_out_set_stream): Declare.
9342
9343 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9344
9345 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9346 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9347 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9348 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9349 config/i386/i386v42mp.mt: Removed.
9350
9351 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9352
9353 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9354 GDB_OSABI_SOLARIS.
9355
9356 2003-02-05 Michael Chastain <mec@shout.net>
9357
9358 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9359 2.12.1 and earlier versions.
9360
9361 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9362
9363 Remove orphaned hosts, targets and files.
9364 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9365 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9366 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9367 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9368 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9369 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9370 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9371 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9372 * config/sparc/tm-sp64sim.h: Delete.
9373 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9374 hosts.
9375 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9376 mips*-dec-mach3* targets.
9377
9378 2003-02-04 Michael Chastain <mec@shout.net>
9379
9380 * NEWS: Fix typo: sepcifying -> specifying.
9381
9382 2003-02-04 Michael Chastain <mec@shout.net>
9383
9384 * dwarfread.c: Add documentation on the state of dwarf-1,
9385 looking towards obsoletion.
9386
9387 2003-02-03 Michael Chastain <mec@shout.net>
9388
9389 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9390 gdb/testsuite/gdb.c++/pr-1023.exp.
9391
9392 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9393
9394 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9395 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9396
9397 * utils.c (init_page_info): Delete reference to MPW in comments.
9398 * main.c (captured_main): Delete #ifdef MPW.
9399
9400 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9401
9402 * NEWS: Note that the m32r-*-elf* is obsolete.
9403 * monitor.c (monitor_expect): Obsolete reference to m32r.
9404 * configure.tgt: Mark m32r-*-elf* as obsolete.
9405 * MAINTAINERS: Mark m32k as obsolete.
9406 * m32r-rom.c: Obsolete file.
9407 * config/m32r/m32r.mt: Obsolete file.
9408 * config/m32r/tm-m32r.h: Obsolete file.
9409 * m32r-stub.c: Obsolete file.
9410 * m32r-tdep.c: Obsolete file.
9411
9412 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9413
9414 * NEWS: Mention that the z8k-zilog-none is obsolete.
9415 * MAINTAINERS: Mark z8k as obsolete.
9416 * configure.tgt: Obsolete the z8k-*-coff* target.
9417 * config/z8k/z8k.mt: Obsolete file.
9418 * config/z8k/tm-z8k.h: Obsolete file.
9419 * z8k-tdep.c: Obsolete file.
9420
9421 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9422
9423 * NEWS: Mention that the mn10200-elf is obsolete.
9424 * configure.tgt: Obsolete mn10200-*-* target.
9425 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9426 mention that the mn10200 is obsolete.
9427 * breakpoint.h: Ditto.
9428 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9429 * config/mn10200/mn10200.mt: Obsolete file.
9430 * config/mn10200/tm-mn10200.h: Obsolete file.
9431 * mn10200-tdep.c: Obsolete file.
9432
9433 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9434
9435 * MAINTAINERS: Mark h8500 as obsolete.
9436 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9437 * findvar.c (value_from_register): Ditto.
9438 * h8500-tdep.c: Mark file as obsolete.
9439 * config/h8500/h8500.mt: Ditto.
9440 * config/h8500/tm-h8500.h: Ditto.
9441 * NEWS: Mention that h8500 is obsolete.
9442
9443 2003-02-04 David Carlton <carlton@math.stanford.edu>
9444
9445 * objfiles.c (allocate_objfile): Always set name. Add comment at
9446 start of function.
9447 * jv-lang.c (get_dynamics_objfile): Add comment.
9448
9449 2003-02-04 David Carlton <carlton@math.stanford.edu>
9450
9451 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9452 * printcmd.c (build_address_symbolic): Replace uses of
9453 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9454 SYMBOL_NAME, and asm_demangle.
9455 Update copyright.
9456
9457 2003-02-04 David Carlton <carlton@math.stanford.edu>
9458
9459 * linespec.c (decode_compound): Extract code into
9460 lookup_prefix_sym.
9461 (lookup_prefix_sym): New function.
9462
9463 2003-02-04 David Carlton <carlton@math.stanford.edu>
9464
9465 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9466 FLOAT_COERCION_BADNESS.
9467 * gdbtypes.c (rank_one_type): Replace all uses of
9468 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9469
9470 2003-02-04 Jim Blandy <jimb@redhat.com>
9471
9472 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9473 section, let dwarf_macinfo_section point to it, not
9474 dwarf_loc_section.
9475
9476 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9477
9478 Pointed out by Anton Blanchard <anton@samba.org>.
9479 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9480 (ppc_linux_at_sigtramp_return_path): Use it.
9481
9482 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9483
9484 * defs.h (streq): Add prototype.
9485 * utils.c (streq): New function.
9486
9487 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9488 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9489 * mdebugread.c (new_symbol): Likewise.
9490 * stabsread.c (define_symbol): Likewise.
9491 * coffread.c (process_coff_symbol): Likewise.
9492 * dwarfread.c (new_symbol): Likewise.
9493
9494 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9495 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9496 here.
9497 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9498 SYMBOL_INIT_DEMANGLED_NAME.
9499 * objfiles.c: Include "hashtab.h".
9500 (allocate_objfile): Call htab_set_functions_ex for the
9501 demangled_names_hash.
9502 (free_objfile): Call htab_delete for the demangled_names_hash.
9503 * objfiles.h (struct htab): Add declaration.
9504 (struct objfile): Add demangled_names_hash.
9505 * symfile.c: Include "hashtab.h".
9506 (reread_symbols): Call htab_delete for the demangled_names_hash.
9507 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9508 SYMBOL_NAME in the bcache.
9509 * symtab.c: Include "hashtab.h". Update comments.
9510 (create_demangled_names_hash, symbol_set_names): New functions.
9511 (symbol_find_demangled_name): New function, broken out from
9512 symbol_init_demangled_names.
9513 (symbol_init_demangled_names): Use it.
9514 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9515 (SYMBOL_SET_NAMES): New macro.
9516 (symbol_set_names): Add prototype.
9517
9518 2003-02-03 Jim Blandy <jimb@redhat.com>
9519
9520 Use a single, consistent representation for an empty minimal
9521 symbol table in an objfile.
9522 * objfiles.c (terminate_minimal_symbol_table): New function.
9523 (allocate_objfile): Call it.
9524 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9525 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9526 non-NULL.
9527 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9528 objfile has minimal symbols, compare minimal_symbol_count to zero,
9529 instead of comparing msymbols with NULL.
9530 * objfiles.c (have_minimal_symbols): Same.
9531 * solib-sunos.c (solib_add_common_symbols): Call
9532 terminate_minimal_symbol_table.
9533 * symfile.c (reread_symbols): Same.
9534
9535 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9536
9537 * s390-tdep.c (s390_address_class_type_flags)
9538 (s390_address_class_type_flags_to_name)
9539 (s390_address_class_name_to_type_flags): New functions.
9540 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9541 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9542
9543 2003-02-03 Michael Snyder <msnyder@redhat.com>
9544
9545 * arm-tdep.c: Fix spell-o in comment.
9546
9547 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9548
9549 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9550 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9551 error messages to contain BFD filename.
9552
9553 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9554
9555 Fix PR gdb/742 gdb/743 gdb/877
9556 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9557 (do_mixed_source_and_assembly): Use
9558 make_cleanup_ui_out_tuple_begin_end and
9559 make_cleanup_ui_out_tuple_begin_end.
9560 (do_mixed_source_and_assembly): Ditto.
9561 * thread.c (do_captured_list_thread_ids): Ditto.
9562 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9563 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9564 ui_out_tuple_end): Delete prototypes.
9565 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9566 ui_out_list_end, ui_out_tuple_end): Delete.
9567
9568 From Kevin Buettner <kevinb@redhat.com>:
9569 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9570 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9571 (do_cleanup_table_end): New functions.
9572 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9573 Use cleanups to invoke_ui_out_tuple_end().
9574 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9575 * cli/cli-setshow.c (cmd_show_list): Use
9576 make_cleanup_ui_out_tuple_begin_end.
9577
9578 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9579
9580 * frame.c (frame_unwind_register): New function.
9581 (frame_unwind_unsigned_register): Use.
9582 (frame_unwind_signed_register): Use.
9583 (frame_read_register): New function.
9584 * frame.h (frame_unwind_register): Declare.
9585 (frame_read_register): Declare.
9586
9587 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9588 and frame_unwind_register instead of read_memory, write_register
9589 and deprecated_write_register_bytes.
9590
9591 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9592
9593 * frame.h: Note that namelen can be negative.
9594 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9595 NAME's length.
9596
9597 * NEWS: Mention that the d10v's `regs' command is deprecated.
9598 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9599 (d10v_print_registers_info): New function.
9600 (show_regs): Call d10v_print_registers_info.
9601 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9602
9603 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9604
9605 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9606 lost in the previous patch.
9607
9608 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9609
9610 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9611 * stack.c (print_frame_info_base): Output complete FRAME tuple
9612 for synthesized frames.
9613
9614 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9615
9616 * mips-nat.c (zerobuf): Delete.
9617 (fetch_inferior_registers): Alloc local zerobuf.
9618 (fetch_core_registers): Alloc local zerobuf.
9619 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9620 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9621 * thread-db.c (thread_db_store_registers): Ditto.
9622 * sh-tdep.c (sh_do_register): Ditto.
9623 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9624 * remote-sim.c (gdbsim_store_register): Ditto.
9625 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9626 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9627 * monitor.c (monitor_supply_register): Ditto.
9628 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9629 * mips-nat.c (fetch_inferior_registers): Ditto.
9630 * m68klinux-nat.c (fetch_register): Ditto.
9631 * lynx-nat.c (fetch_inferior_registers): Ditto.
9632 (fetch_inferior_registers): Ditto.
9633 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9634 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9635 (hpux_thread_store_registers): Ditto.
9636 * hppah-nat.c (fetch_register): Ditto.
9637 * hppab-nat.c (fetch_register): Ditto.
9638 * hppa-tdep.c (pa_register_look_aside): Ditto.
9639 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9640 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9641
9642 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9643
9644 * gdbarch.sh: Explictly specify all method levels. When a
9645 variable with an empty level, provide a non-multi-arch default.
9646 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9647 * gdbarch.h: Re-generate.
9648 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9649 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9650
9651 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9652
9653 * defs.h (host_pointer_to_address): Delete declaration.
9654 (address_to_host_pointer): Delete declaration.
9655 * utils.c (host_pointer_to_address): Delete function.
9656 (address_to_host_pointer): Delete function.
9657 * procfs.c (procfs_address_to_host_pointer): New function.
9658 * procfs.c (proc_set_watchpoint): Use.
9659 (procfs_can_use_hw_breakpoint): Update comments.
9660 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9661 (som_solib_add): Use.
9662 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9663 * hppa-tdep.c (unwind_command): Use.
9664
9665 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9666
9667 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9668 strlen d_name.
9669
9670 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9671 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9672 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9673 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9674 (define_symbol): Update.
9675 * symfile.c (generic_load): Remove references to nindy.
9676 * symtab.c: Remove references to nindy.
9677
9678 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9679
9680 * infcmd.c (print_float_info): Delete code conditional on
9681 FLOAT_INFO.
9682 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9683 * config/m68k/nm-apollo68b.h: Ditto.
9684 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9685 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9686 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9687
9688 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9689
9690 * config/i386/tm-i386os9k.h: Removed.
9691
9692 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9693 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9694 they're identical to i[3456]86-*-sysv* now.
9695 * config/i386/i386v32.mh: Removed.
9696 * config/i386/xm-i386v32.h: Removed.
9697 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9698
9699 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9700
9701 * config/i386/i386dgux.mh: Removed.
9702 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9703
9704 * configure.in: Fix typo.
9705 * configure: Regenerated.
9706
9707 2003-01-31 David Carlton <carlton@math.stanford.edu>
9708
9709 * dwarf2read.c (dwarf2_locate_sections): Set
9710 dwarf_ranges_section.
9711
9712 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9713
9714 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9715 * utils.c: Update comments documenting legitimate uses of PTR.
9716
9717 * utils.c: Re-indent.
9718
9719 * config/djgpp/fnchange.lst: Delete nindy files.
9720 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9721 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9722 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9723 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9724 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9725 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9726 * Makefile.in (init.c): Remove nindy references.
9727 (saber_gdb): Delete rule.
9728 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9729 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9730 and a68v-nat.c.
9731 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9732 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9733 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9734 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9735 nindy-share/stop.h.
9736 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9737 * saber.suppress: Delete file.
9738
9739 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9740
9741 * dbxread.c (stabs_data): New static variable.
9742 (fill_symbuf): Support an in-memory buffer for stabs data.
9743 (stabs_seek): New function.
9744 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9745 (read_ofile_symtab): Use stabs_seek.
9746 (elfstab_build_psymtabs): Take an asection* instead of
9747 an offset and size. Relocate the stabs data if necessary.
9748 Save the section* for dbx_psymtab_to_symtab.
9749 * dwarf2read.c: Add section variables for each debug section.
9750 (dwarf2_locate_sections): Fill them in.
9751 (dwarf2_read_section): Take an asection* argument.
9752 Relocate the section contents if necessary.
9753 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9754 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9755 it to dwarf2_read_section.
9756 (dwarf2_build_frame_info): Update callers.
9757 * elfread.c (elf_symfile_read): Update call to
9758 elfstab_build_psymtabs.
9759 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9760 (DBX_STAB_SECTION): New macro.
9761 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9762 * symfile.c (symfile_dummy_outputs): New function.
9763 (symfile_relocate_debug_section): New function.
9764 * symfile.h (symfile_relocate_debug_section): Add prototype.
9765
9766 2003-01-31 Richard Henderson <rth@redhat.com>
9767
9768 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9769 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9770 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9771 * alpha-tdep.c (alpha_register_name): Add "unique".
9772 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9773 (ALPHA_UNIQUE_REGNUM): New.
9774 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9775
9776 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9777
9778 * README: Remove reference to Ericsson 1800 monitor.
9779 * Makefile.in (remote-es.o): Delete rule.
9780 (ALLDEPFILES): Delete remote-es.c.
9781 * remote-es.c: Delete file.
9782 * config/m68k/es1800.mt: Delete file.
9783 * config/djgpp/fnchange.lst: Update.
9784 * configure.tgt: Delete m68*-ericsson-* target.
9785
9786 2003-01-31 Adam Fedor <fedor@gnu.org>
9787
9788 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9789 Remove duplicate/shadowing variable of same name.
9790
9791 2003-01-30 Jim Blandy <jimb@redhat.com>
9792
9793 * symfile.c (find_separate_debug_file): Assert that the objfile's
9794 directory name we compute ends with a slash, and then assume that
9795 that's so everywhere we use it.
9796
9797 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9798
9799 * valops.c (value_assign): Flush frame cache after stores to memory
9800 also.
9801
9802 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9803
9804 * Makefile.in (mon960-rom.o): Delete rule.
9805 * mon960-rom.c: Delete file.
9806
9807 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9808
9809 * d10v-tdep.c: Include "frame-unwind.h".
9810 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9811 list.
9812 (next_addr, uses_frame): Delete.
9813 (struct d10v_unwind_cache): Define.
9814 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9815 Use info instead of next_addr and uses_frame globals.
9816 (d10v_frame_init_saved_regs): Delete function.
9817 (d10v_init_extra_frame_info): Delete function.
9818 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9819 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9820 init_frame_pc or frame_saved_pc.
9821 (d10v_pop_frame): Delete function.
9822 (do_d10v_pop_frame): Delete function.
9823 (d10v_frame_chain): Delete function.
9824 (d10v_frame_chain_valid): Delete function.
9825 (d10v_frame_pc_unwind): New function.
9826 (d10v_frame_id_unwind): New function.
9827 (saved_regs_unwinder): New function.
9828 (d10v_frame_register_unwind): New function.
9829 (d10v_frame_pop): New function.
9830 (d10v_frame_unwind): New variable.
9831 (d10v_frame_p): New function.
9832 (d10v_frame_saved_pc): Delete function.
9833 * Makefile.in (d10v-tdep.o): Update dependencies.
9834
9835 2003-01-30 J. Brobecker <brobecker@gnat.com>
9836
9837 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9838 causing some regressions due to a change in the default value
9839 for this macro.
9840
9841 2003-01-29 Richard Henderson <rth@redhat.com>
9842 Elena Zannoni <ezannoni@redhat.com>
9843 Daniel Jacobowitz <drow@mvista.com>
9844
9845 Fix PR gdb/961.
9846 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9847 variables.
9848 (RANGES_SECTION): New.
9849 (dwarf_ranges_buffer): New variable.
9850 (struct comp_unit_head): Add member "die".
9851 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9852 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9853 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9854 (dwarf2_locate_sections): Likewise.
9855 (dwarf2_build_psymtabs): Read .debug_ranges.
9856 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9857 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9858 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9859 Look for DW_AT_ranges and return the bounding box.
9860
9861 2003-01-29 Brian Ford <ford@vss.fsi.com>
9862
9863 * win32-nat.c (cygwin_pid): Removed as unused.
9864 (child_attach): Try fall back to Cygwin pid.
9865
9866 2003-01-29 Jim Blandy <jimb@redhat.com>
9867
9868 * objfiles.h (struct objfile): Doc fix.
9869
9870 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9871
9872 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9873 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9874 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9875 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9876 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9877 (FRAME_SAVED_PC): Change to a function with predicate.
9878 * gdbarch.h, gdbarch.c: Re-generate.
9879
9880 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9881
9882 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9883
9884 * complaints.c (complain): Delete function.
9885 * complaints.h (struct deprecated_complaint): Delete definition.
9886 (complain): Delete declaration.
9887
9888 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9889
9890 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9891 dummy frames.
9892
9893 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9894
9895 * sentinel-frame.h, sentinel-frame.c: New files.
9896 * Makefile.in (frame.o): Update dependencies.
9897 (SFILES): Add sentinel-frame.c.
9898 (sentinel_frame_h): Define.
9899 (COMMON_OBS): Add sentinel-frame.o.
9900 (sentinel-frame.o): Specify dependencies.
9901 * frame.c: Include "sentinel-frame.h".
9902 (frame_register_unwind): Rewrite assuming that there is always a a
9903 ->next frame.
9904 (frame_register, generic_unwind_get_saved_register): Ditto.
9905 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9906 (create_sentinel_frame, unwind_to_current_frame): New functions.
9907 (get_current_frame): Rewrite using create_sentinel_frame and
9908 unwind_to_current_frame. When possible, always create a frame.
9909 (create_new_frame): Set next to the sentinel frame.
9910 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9911 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9912 ID cache when necessary.
9913 (frame_saved_regs_id_unwind): Use frame_relative_level.
9914 (deprecated_generic_get_saved_register): Use frame_relative_level,
9915 get_frame_saved_regs, get_frame_pc, get_frame_base and
9916 get_next_frame.
9917 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9918 frame_register.
9919
9920 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9921
9922 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9923
9924 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9925
9926 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9927 (maintenance_set_profile_cmd): Use error () instead of warning ().
9928
9929 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9930
9931 * configure.in: Check that -pg works if using --enable-profiling.
9932 Check for monstartup and _mcleanup regardless of --enable-profiling.
9933 * maint.c: Check for monstartup and _mcleanup before using them.
9934 * config.in: Regenerated.
9935 * configure: Regenerated.
9936
9937 2003-01-24 Nick Clifton <nickc@redhat.com>
9938
9939 * Add sh2e support:
9940
9941 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9942
9943 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9944 (sh2e_show_regs): New.
9945 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9946 * config/sh/tm-sh.h: Added sh2e to comments.
9947
9948 2003-01-23 Jim Blandy <jimb@redhat.com>
9949
9950 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9951 symbols found)" message here; we haven't checked for a separate
9952 debug info file yet, so we don't know yet.
9953 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9954 we've looked everywhere. Also, there's no need to print a special
9955 message when we're loading the separate debug info file: the one
9956 symbol_file_add prints is fine.
9957
9958 2003-01-23 Alexander Larsson <alexl@redhat.com>
9959 Jim Blandy <jimb@redhat.com>
9960
9961 Add support for executables whose debug info has been separated
9962 out into a separate file, leaving only a link behind.
9963 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9964 and separate_debug_objfile_backlink.
9965 (put_objfile_before): New declaration.
9966 * symfile.c: #include "filenames.h".
9967 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9968 debug info in a separate file, read that, too. Save the addrs
9969 argument, so we can use it again to read the separated debug info;
9970 syms_from_objfile modifies the table we pass it.
9971 (reread_symbols): After re-reading an objfile, call
9972 reread_separate_symbols to refresh its separate debug info
9973 objfile, if it has one.
9974 (reread_separate_symbols, find_separate_debug_file,
9975 get_debug_link_info, separate_debug_file_exists): New functions.
9976 (debug_file_directory): New global var.
9977 (_initialize_symfile): Initialize debug_file_directory, and
9978 provide the new `set debug-file-directory' command to let the user
9979 change it.
9980 * objfiles.c (free_objfile): If this objfile has its debug info in
9981 a separate objfile, free that one too. If this is itself a
9982 separate debug info objfile, clear our parent's backlink.
9983 (put_objfile_before): New function.
9984 * utils.c (gnu_debuglink_crc32): New function.
9985 * defs.h (gnu_debuglink_crc32): New declaration.
9986 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9987 * configure.in: Handle --with-separate-debug-dir config option.
9988 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9989 * acconfig.h (DEBUGDIR): New macro.
9990 * configure, aclocal.m4, config.in: Regenerated.
9991
9992 2003-01-22 Jim Blandy <jimb@redhat.com>
9993
9994 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9995 like the old symbol_file_add, but taking new arguments: you can
9996 now pass in either a `struct section_addr_info' list to say where
9997 each section is loaded, or a `struct section_offsets' table. Pass
9998 these new arguments through to syms_from_objfile as appropriate.
9999 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10000 with the appropriate quiescent values for the new arguments.
10001
10002 * symfile.c: #include "gdb_assert.h".
10003 (syms_from_objfile): Add the ability to pass in a section offset
10004 table directly, as an alternative to the section_addr_info table.
10005 Document arguments better.
10006 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10007 * symfile.h (syms_from_objfile): Update declaration.
10008 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10009 syms_from_objfile.
10010 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10011
10012 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10013
10014 Original patch by Tom Tromey <tromey@cygnus.com> and
10015 Jason Molenda <jmolenda@apple.com>.
10016 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10017 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10018 * NEWS: Mention profiling.
10019 * configure.in (--enable-gdbtk): Fix typo.
10020 (--enable-profiling): New. Set PROFILE_CFLAGS.
10021 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10022 Fill in function.
10023 (profiling_state): New variable.
10024 (mcleanup_wrapper): New function.
10025 (_initialize_maint): Remove NOTYET, fix call to
10026 add_setshow_boolean_cmd for "maint set profile".
10027 * configure: Regenerated.
10028
10029 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10030
10031 * Makefile.in (install-gdbtk): Install PNG images too.
10032
10033 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10034
10035 * exec.c (text_start): Delete global variable.
10036 (exec_file_attach): Make text_start local to the function.
10037 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10038 * valops.c (hand_function_call): Delete code that handles
10039 BEFORE_TEXT_END and AFTER_TEXT_END.
10040 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10041 of CALL_DUMMY_LOCATION.
10042 * gdbarch.c: Regenerate.
10043 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10044 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10045 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10046 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10047 (text_end): Delete extern declaration.
10048
10049 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10050
10051 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10052 * blockframe.c (backtrace_below_main): Move to "frame.c".
10053 (frame_chain_valid): Delete check for backtrace_below_main.
10054 (_initialize_blockframe): Delete initialization, move ``set
10055 backtrace-below-main'' command to "frame.c".
10056 (do_flush_frames_sfunc): Delete function.
10057 * frame.c: Include "command.h" and "gdbcmd.h".
10058 (frame_type_from_pc): New function.
10059 (create_new_frame): Use frame_type_from_pc.
10060 (legacy_get_prev_frame): New function.
10061 (get_prev_frame): Rewrite. When an old style frame, call
10062 legacy_get_prev_frame. Otherwize, unwind the PC first.
10063 (_initialize_frame): Add ``set backtrace-below-main'' command.
10064 * Makefile.in (frame.o): Update dependencies.
10065
10066 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10067
10068 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10069 DEPRECATED_REGISTERS_INFO.
10070
10071 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10072
10073 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10074 Maintainers'. Update `Various Maintainers'.
10075
10076 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10077
10078 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10079 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10080 Suppress actual parameters when `-'.
10081 * gdbarch.h, gdbarch.c: Regenerate.
10082
10083 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10084
10085 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10086 code handling dummy frames.
10087
10088 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10089
10090 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10091 (struct frame_unwind): Add field pop.
10092 * frame.h (frame_pop): Declare.
10093 * frame.c (frame_saved_regs_pop): New function.
10094 (trad_frame_unwinder): Add frame_saved_regs_pop.
10095 (frame_pop): New function.
10096 * dummy-frame.c (dummy_frame_pop): New function.
10097 (discard_innermost_dummy): New function.
10098 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10099 (dummy_frame_unwind): Add dummy_frame_pop.
10100 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10101 * valops.c (hand_function_call): Ditto.
10102 * stack.c (return_command): Ditto.
10103
10104 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10105
10106 * cris-tdep.c: Fix function declaration indentation.
10107 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10108 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10109 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10110 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10111 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10112 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10113
10114 2003-01-18 Michael Chastain <mec@shout.net>
10115
10116 * README (Unpacking and Installation -- quick overview):
10117 Warn against ".../gdb-5.3/gdb/configure".
10118
10119 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10120
10121 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10122 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10123 (struct frame_unwind): Declare opaque.
10124 (dummy_frame_p): Declare function.
10125 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10126 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10127 * dummy-frame.c: Include "frame-unwind.h".
10128 (dummy_frame_p): New function.
10129 (dummy_frame_unwind): New variable.
10130 * frame.c: Include "frame-unwind.h".
10131 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10132 to use the new unwind field.
10133 (set_unwind_by_pc): Delete function.
10134 (create_new_frame, get_prev_frame): Set unwind field using
10135 frame_unwind_find_by_pc.
10136 (trad_frame_unwind, trad_frame_unwinder): New variables.
10137 * frame.h (trad_frame_unwind): Declare variable.
10138 (frame_id_unwind_ftype): Delete declaration.
10139 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10140 (struct frame_unwind): Declare opaque.
10141 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10142 register_unwind with a single unwind pointer.
10143 * frame-unwind.h, frame-unwind.c: New files.
10144 * Makefile.in (SFILES): Add frame-unwind.c.
10145 (frame_unwind_h): Define.
10146 (COMMON_OBS): Add frame-unwind.o.
10147 (frame-unwind.o): Specify dependencies.
10148 (frame.o, dummy-frame.o): Update dependencies.
10149
10150 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10151
10152 * ada-valprint.c: Eliminate PTR.
10153 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10154 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10155 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10156 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10157 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10158 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10159 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10160
10161 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10162
10163 * main.c (captured_main): Don't use PTR.
10164 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10165 * gdbtypes.c (lookup_primitive_typename): Ditto.
10166 (lookup_struct_elt_type): Ditto.
10167 * f-valprint.c (info_common_command): Ditto.
10168 (list_all_visible_commons): Ditto.
10169 * jv-typeprint.c (java_type_print_base): Ditto.
10170
10171 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10172 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10173 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10174 i386-interix-nat.c and i386-interix-tdep.c. Rename
10175 m68klinux-nat.c and m68klinux-tdep.c. Rename
10176 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10177 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10178 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10179 * main.c (captured_main): Use xfree, not free.
10180
10181 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10182
10183 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10184 ID back using a parameter.
10185 * frame.c (frame_id_unwind): Update call.
10186 (frame_saved_regs_id_unwind): Update.
10187 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10188 * dummy-frame.h (struct frame_id): Add opaque declaration.
10189 (dummy_frame_id_unwind): Update declaration.
10190
10191 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10192
10193 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10194
10195 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10196
10197 * MAINTAINERS (Stephen P. Smith): Updated email address.
10198
10199 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10200
10201 Fix PR gdb/898
10202 * breakpoint.c (until_break_command): Add new argument. Use it to
10203 decide whether to stop only at the current frame or not.
10204 * breakpoint.h (until_break_command): Update prototype.
10205 * infcmd.c (until_command): Add new argument to until_break_command
10206 call.
10207 (advance_command): New function.
10208 (_initialize_infcmd): Update help string for 'until' command.
10209 Add new 'advance' command.
10210
10211 2003-01-14 David Carlton <carlton@math.stanford.edu>
10212
10213 * linespec.c (decode_line_1): Normalize comments.
10214 (set_flags): Ditto.
10215 (locate_first_half): Ditto.
10216 (decode_compound): Ditto.
10217 (symtab_from_filename): Ditto.
10218 (decode_all_digits): Ditto.
10219 (decode_dollar): Ditto.
10220 (find_methods): Ditto.
10221 (find_toplevel_char): Ditto.
10222
10223 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10224
10225 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10226 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10227 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10228 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10229 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10230 * language.c, language.h, m32r-tdep.c: Update copyright.
10231 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10232 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10233 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10234 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10235 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10236 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10237
10238 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10239
10240 * stabsread.h (process_later, resolve_cfront_continuation):
10241 Obsolete.
10242 Update copyright years.
10243 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10244 Update copyright year.
10245 * dbxread.c(struct cont_elem): Obsolete.
10246 (process_later, process_now): Obsolete functions.
10247 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10248 Update copyright year.
10249 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10250 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10251 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10252 (parse_partial_symbols): Obsolete cfront support.
10253 * stabsread.c
10254 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10255 macros.
10256 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10257 read_cfront_baseclasses, read_cfront_member_functions,
10258 resolve_cfront_continuation,read_cfront_static_fields,
10259 copy_cfront_struct_fields): Obsolete functions.
10260 (define_symbol, read_one_struct_field): Obsolete cfront support.
10261 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10262 Update Copyright year.
10263
10264 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10265
10266 * stack.c (print_frame_info, print_stack_frame_base_stub,
10267 print_stack_frame_base, show_and_print_stack_frame_stub,
10268 show_and_print_stack_frame, print_only_stack_frame_stub,
10269 print_only_stack_frame): Delete functions.
10270 (print_stack_frame_stub): Call print_frame_info instead of
10271 print_frame_info_base.
10272 (print_frame_info_base): Rename to print_frame_info.
10273 (backtrace_command_1): Call print_frame_info, instead of
10274 print_frame_info_base.
10275 (current_frame_command): Call print_stack_frame, instead of
10276 print_only_stack_frame.
10277 (frame_command): Call print_stack_frame, instead of
10278 show_and_print_stack_frame.
10279 (up_command): Ditto.
10280 (down_command): Ditto.
10281 * frame.h (print_only_stack_frame): Delete prototype.
10282 * infrun.c (normal_stop): Call print_stack_frame, instead of
10283 show_and_print_stack_frame.
10284 * thread.c (info_threads_command): Call print_stack_frame, instead
10285 of print_only_stack_frame.
10286
10287 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10288
10289 * README (Graphical interface to GDB): Update URL. Point at
10290 gdb/links/.
10291
10292 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10293 version match.
10294
10295 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10296
10297 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10298 lines.
10299
10300 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10301
10302 * thread-db.c (attach_thread): Prototype.
10303 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10304 thread information (ti), and valid flags (th_valid, ti_valid).
10305 (attach_thread): Move target_pid_to_str call to after the thread
10306 is added to GDB's list. Initialize the cache.
10307 (thread_get_info_callback, thread_db_map_id2thr)
10308 (thread_db_get_info): New functions.
10309 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10310 (thread_db_store_registers, thread_db_thread_alive)
10311 (thread_db_get_thread_local_address): Use them.
10312 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10313 of calling error() for threads in unknown state.
10314
10315 (clear_lwpid_callback): New function.
10316 (thread_db_resume): Use it to clear the cache.
10317
10318 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10319
10320 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10321 (resume_callback): Remove dead code.
10322
10323 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10324
10325 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10326 predicate.
10327 * gdbarch.h, gdbarch.c: Regenerate.
10328 * stack.c (frame_info): Only initialize the saved registers when
10329 FRAME_INIT_SAVED_REGS_P.
10330 * frame.c (frame_saved_regs_register_unwind): Assert
10331 FRAME_INIT_SAVED_REGS_P.
10332 (deprecated_generic_get_saved_register): Ditto.
10333
10334 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10335
10336 * source.c (openp): Squelch warning about "filename".
10337
10338 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10339
10340 * source.c (openp): If the file does not exist don't necessarily
10341 search the path.
10342
10343 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10344
10345 Fix PR gdb/872.
10346 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10347 (integer_types_same_name_p): New function.
10348 (rank_one_type): Use it.
10349 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10350
10351 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10352
10353 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10354 variables.
10355 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10356 * configure.in: Add --with-sysroot.
10357 * configure: Regenerated.
10358 * main.c (gdb_sysroot): New variable.
10359 (captured_main): Initialize gdb_sysroot.
10360 * defs.h (gdb_sysroot): New extern declaration.
10361 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10362
10363 2003-01-12 Michael Chastain <mec@shout.net>
10364
10365 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10366
10367 2003-01-12 Michael Chastain <mec@shout.net>
10368
10369 * top.c (print_gdb_version): Bump copyright year to 2003.
10370
10371 2003-01-12 David Carlton <carlton@bactrian.org>
10372
10373 * linespec.c (symtab_from_filename): Rename variable 's' to
10374 'file_symtab'.
10375
10376 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10377
10378 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10379 dummy frame.
10380 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10381
10382 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10383
10384 * d10v-tdep.c: Include "gdb_assert.h".
10385 (d10v_store_return_value): Rewrite to match current interface.
10386 (d10v_extract_struct_value_address): Ditto.
10387 (d10v_extract_return_value): Ditto.
10388 (d10v_gdbarch_init): Set store_restore_value,
10389 extract_struct_value_address and extract_return_value.
10390
10391 2003-01-12 J. Brobecker <brobecker@gnat.com>
10392
10393 * hpread.c (set_namestring): New procedure replacing the
10394 SET_NAMESTRING macro.
10395 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10396 by calls to set_namestring.
10397
10398 2003-01-11 J. Brobecker <brobecker@gnat.com>
10399
10400 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10401 a compilation warning.
10402 (hpread_process_one_debug_symbol): Likewise.
10403
10404 2003-01-10 David Carlton <carlton@math.stanford.edu>
10405
10406 * linespec.c (decode_line_1): Rename variable 's' to
10407 'file_symtab'.
10408 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10409 (decode_dollar): Ditto.
10410 (decode_variable): Ditto.
10411 (symbol_found): Ditto.
10412
10413 2003-01-09 Michael Chastain <mec@shout.net>
10414
10415 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10416
10417 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10418
10419 * win32-nat.c (set_process_privilege): New function.
10420 (child_attach): Call set_process_privilege() to enable the
10421 SE_DEBUG_NAME user privilege if available in process token.
10422
10423 2003-01-10 J. Brobecker <brobecker@gnat.com>
10424
10425 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10426 compilation error in the previous revision.
10427
10428 2003-01-09 David Carlton <carlton@math.stanford.edu>
10429
10430 * linespec.c: Update copyright.
10431
10432 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10433
10434 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10435 than inferior_ptid.
10436 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10437
10438 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10439
10440 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10441 Update comments.
10442 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10443 (frame_saved_regs_zalloc): Update.
10444 (frame_saved_regs_register_unwind): Update.
10445 (create_new_frame): Update.
10446 (get_prev_frame): Update.
10447 (frame_extra_info_zalloc): Update.
10448 (deprecated_get_frame_saved_regs): Update.
10449 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10450 * cris-tdep.c: Update comment.
10451
10452 * somsolib.h: Fix function indentation.
10453 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10454 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10455 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10456 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10457 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10458
10459 * infrun.c (follow_fork): Use ISO C definition.
10460 * expprint.c (print_subexp): Use xfree instead of free.
10461 * charset.c: Include "gdb_string.h" instead of <string.h>.
10462 (register_iconv_charsets): Use ISO C definition.
10463 (host_charset, target_charset): Ditto.
10464 * Makefile.in (charset.o): Update dependencies.
10465 (mi-cmd-env.o): Update dependencies.
10466
10467 2003-01-08 Andrew Cagney <cagney@redhat.com>
10468
10469 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10470 get_frame_base.
10471
10472 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10473
10474 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10475 build directories. Save edited gdb output in Mbuild.log. If a
10476 build fails, remove any final GDB executable.
10477
10478 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10479
10480 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10481 replacing hex constants with function names and stripping leading
10482 file name directory prefixes.
10483
10484 2003-01-08 Andrew Cagney <cagney@redhat.com>
10485
10486 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10487 get_frame_base.
10488
10489 2003-01-08 David Carlton <carlton@math.stanford.edu>
10490
10491 * linespec.c (decode_line_1): Move code into decode_variable.
10492 (decode_variable): New function.
10493
10494 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10495
10496 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10497
10498 2003-01-08 Andrew Cagney <cagney@redhat.com>
10499
10500 * cris-tdep.c (cris_frame_init_saved_regs): Use
10501 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10502 saved_regs buffer.
10503 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10504 (sh64_nofp_frame_init_saved_regs): Ditto.
10505 (sh_fp_frame_init_saved_regs): Ditto.
10506 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10507 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10508 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10509 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10510
10511 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10512
10513 * minsyms.c (lookup_minimal_symbol): Update comment.
10514 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10515 (lookup_minimal_symbol_solib_trampoline): Likewise.
10516
10517 2003-01-08 Andrew Cagney <cagney@redhat.com>
10518
10519 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10520 frame_relative_level.
10521
10522 * alpha-tdep.c: Use get_frame_extra_info.
10523 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10524 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10525 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10526 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10527
10528 * alpha-tdep.c: Use get_next_frame.
10529 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10530 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10531 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10532 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10533 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10534 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10535 * xstormy16-tdep.c: Ditto.
10536
10537 2003-01-07 Andrew Cagney <cagney@redhat.com>
10538
10539 * alpha-tdep.c: Use get_frame_base.
10540 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10541 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10542 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10543 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10544 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10545 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10546 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10547 * config/sparc/tm-sparc.h: Ditto.
10548
10549 2003-01-07 Andrew Cagney <cagney@redhat.com>
10550
10551 * frame.c (deprecated_get_frame_context): New function.
10552 (deprecated_set_frame_context): New function.
10553 * frame.h (deprecated_get_frame_context): Declare.
10554 (deprecated_set_frame_context): Declare.
10555 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10556 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10557
10558 2003-01-07 Andrew Cagney <cagney@redhat.com>
10559
10560 * frame.c (deprecated_set_frame_next_hack): New function.
10561 (deprecated_set_frame_prev_hack): New function.
10562 * frame.h (deprecated_set_frame_next_hack): Declare.
10563 (deprecated_set_frame_prev_hack): Declare.
10564 * mcore-tdep.c (analyze_dummy_frame): Use
10565 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10566 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10567
10568 2003-01-07 David Carlton <carlton@math.stanford.edu>
10569
10570 * linespec.c (decode_line_1): Move code into decode_dollar.
10571 (decode_dollar): New function.
10572
10573 2003-01-07 Andrew Cagney <cagney@redhat.com>
10574
10575 * arm-tdep.c (arm_init_extra_frame_info): Use
10576 deprecated_update_frame_base_hack.
10577 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10578 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10579 (fix_frame_pointer): Ditto.
10580 (mn10300_analyze_prologue): Ditto.
10581
10582 2003-01-07 Andrew Cagney <cagney@redhat.com>
10583
10584 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10585 extra_info using frame_extra_info_zalloc.
10586 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10587 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10588 (sh64_init_extra_frame_info): Ditto.
10589 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10590 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10591 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10592 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10593 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10594 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10595 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10596 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10597 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10598 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10599 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10600 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10601
10602 * mn10300-tdep.c (analyze_dummy_frame): Use
10603 deprecated_set_frame_extra_info_hack.
10604 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10605
10606 2003-01-07 J. Brobecker <brobecker@gnat.com>
10607
10608 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10609 class is not scText. These do not define "real" procedures.
10610 (parse_partial_symbols): Likewise.
10611
10612 2003-01-06 Michael Snyder <msnyder@redhat.com>
10613
10614 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10615
10616 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10617
10618 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10619 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10620 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10621 deprecated_frame_xmalloc_with_cleanup.
10622 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10623 deprecated_frame_xmalloc.
10624 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10625 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10626
10627 2003-01-06 Andrew Cagney <cagney@redhat.com>
10628
10629 * x86-64-linux-tdep.c: Include "osabi.h".
10630 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10631
10632 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10633
10634 2003-01-06 Andrew Cagney <cagney@redhat.com>
10635
10636 * MAINTAINERS (Target Instruction Set Architectures): Update
10637 arm-elf. Can be built with -Werror, has been multiarched.
10638
10639 * value.h (unpack_long): Make buffer parameter constant.
10640 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10641 * scm-lang.h (scm_parse): Ditto.
10642 * defs.h (extract_typed_address, extract_address): Ditto.
10643 (extract_long_unsigned_integer): Ditto.
10644 * inferior.h (unsigned_pointer_to_address): Ditto.
10645 (signed_pointer_to_address): Ditto.
10646 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10647 * gdbarch.h, gdbarch.c: Regenerate.
10648 * findvar.c (extract_long_unsigned_integer): Update.
10649 (extract_address): Update.
10650 (extract_typed_address): Update.
10651 (unsigned_pointer_to_address): Update.
10652 * values.c (unpack_long): Update.
10653 (unpack_double): Update.
10654 (unpack_pointer): Update.
10655 (unpack_field_as_long): Update.
10656 * d10v-tdep.c (d10v_pointer_to_address): Update.
10657 * avr-tdep.c (avr_pointer_to_address): Update.
10658 * scm-lang.c (scm_unpack): Update.
10659 * findvar.c (signed_pointer_to_address): Update.
10660
10661 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10662
10663 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10664 since it is in i386-tdep.c.
10665
10666 2003-01-06 J. Brobecker <brobecker@gnat.com>
10667
10668 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10669 failure introduced in the previous change.
10670
10671 2003-01-05 Michael Chastain <mec@shout.net>
10672
10673 * README: Remove references to deleted remote-*.c files:
10674 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10675 remote-nrom.c, remote-os9k.c, remote-udi.c.
10676
10677 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10678
10679 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10680 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10681 i386_get_longjmp_target.
10682
10683 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10684
10685 * arm-tdep.c (prologue_cache): Change to a pointer.
10686 (_initialize_arm_tdep): Allocate prologue_cache.
10687 (check_prologue_cache): Update.
10688 (save_prologue_cache): Update.
10689 (arm_gdbarch_init): Update.
10690
10691 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10692
10693 * stabsread.c (update_method_name_from_physname): Call complaint()
10694 instead of error.
10695
10696 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10697
10698 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10699 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10700 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10701
10702 * blockframe.c: Include "gdbcmd.h" and "command.h".
10703 (backtrace_below_main): New variable.
10704 (file_frame_chain_valid, func_frame_chain_valid)
10705 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10706 (generic_func_frame_chain_valid): Remove functions.
10707 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10708 (_initialize_blockframe): New function.
10709 * Makefile.in (blockframe.o): Update dependencies.
10710 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10711 comment. Call frame_chain_valid ().
10712 * frame.h: Remove old prototypes. Add prototype for
10713 frame_chain_valid and update comments to match.
10714 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10715 Remove old comment.
10716 * gdbarch.h: Regenerated.
10717 * gdbarch.c: Regenerated.
10718
10719 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10720 set_gdbarch_frame_chain_valid.
10721 * avr-tdep.c (avr_gdbarch_init): Likewise.
10722 * cris-tdep.c (cris_gdbarch_init): Likewise.
10723 * frv-tdep.c (frv_gdbarch_init): Likewise.
10724 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10725 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10726 (i386_nw_init_abi): Likewise.
10727 (i386_gdbarch_init): Likewise.
10728 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10729 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10730 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10731 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10732 * mips-tdep.c (mips_gdbarch_init): Likewise.
10733 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10734 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10735 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10736 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10737 * s390-tdep.c (s390_gdbarch_init): Likewise.
10738 * sh-tdep.c (sh_gdbarch_init): Likewise.
10739 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10740 * v850-tdep.c (v850_gdbarch_init): Likewise.
10741 * vax-tdep.c (vax_gdbarch_init): Likewise.
10742 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10743
10744 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10745 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10746 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10747 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10748 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10749 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10750 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10751 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10752
10753 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10754
10755 * Makefile.in (acconfig_h): Remove incorrect macro.
10756 (config_h): Define.
10757 (osabi.o): Update dependencies.
10758 * configure.tgt: Set gdb_osabi based on target triplet.
10759 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10760 * configure: Regenerated.
10761 * config.in: Regenerated.
10762 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10763 (GDB_OSABI_DEFAULT): Define if not already defined.
10764 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10765 (set_osabi_string): New variables.
10766 (gdbarch_register_osabi): Add new OS ABI to
10767 gdb_osabi_available_names.
10768 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10769 (set_osabi, show_osabi): New functions.
10770 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10771
10772 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10773
10774 * arch-utils.c (gdbarch_info_init): Set osabi to
10775 GDB_OSABI_UNINITIALIZED.
10776 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10777 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10778 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10779 * gdbarch.c: Regenerated.
10780 * gdbarch.h: Regenerated.
10781 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10782 there's no BFD.
10783 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10784 * osabi.h (enum gdb_osabi): Move to defs.h.
10785 (gdbarch_init_osabi): Update prototype.
10786 * defs.h (enum gdb_osabi): Moved here.
10787 * Makefile.in: Update dependencies.
10788
10789 * alpha-tdep.h: Don't include "osabi.h".
10790 (struct gdbarch_tdep): Remove osabi member.
10791 * alpha-tdep.c: Include "osabi.h".
10792 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10793 iterate over arches. Update call to gdbarch_init_osabi.
10794 (alpha_dump_tdep): Don't dump osabi.
10795 * alpha-linux-tdep.c: Include "osabi.h".
10796 * alpha-osf1-tdep.c: Include "osabi.h".
10797 * alphafbsd-tdep.c: Include "osabi.h".
10798 * alphanbsd-tdep.c: Include "osabi.h".
10799
10800 * arm-tdep.h: Don't include "osabi.h".
10801 (struct gdbarch_tdep): Remove osabi member.
10802 * arm-tdep.c: Include "osabi.h".
10803 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10804 iterate over arches. Update call to gdbarch_init_osabi.
10805 (arm_dump_tdep): Don't dump osabi.
10806 * arm-linux-tdep.c: Include "osabi.h".
10807 * armnbsd-tdep.c: Include "osabi.h".
10808
10809 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10810 Update call to gdbarch_init_osabi.
10811
10812 * i386-tdep.h: Don't include "osabi.h".
10813 (struct gdbarch_tdep): Remove osabi member.
10814 * i386-tdep.c: Include "osabi.h".
10815 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10816 iterate over arches. Update call to gdbarch_init_osabi.
10817 (i386_dump_tdep): Don't dump osabi.
10818 * i386-linux-tdep.c: Include "osabi.h".
10819 * i386-sol2-tdep.c: Include "osabi.h".
10820 * i386bsd-tdep.c: Include "osabi.h".
10821 * i386gnu-tdep.c: Include "osabi.h".
10822 * i386ly-tdep.c: Include "osabi.h".
10823 * i386nbsd-tdep.c: Include "osabi.h".
10824 * i386obsd-tdep.c: Include "osabi.h".
10825
10826 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10827 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10828 check osabi when iterating over arches. Update call to
10829 gdbarch_init_osabi.
10830 (mips_dump_tdep): Don't dump osabi.
10831
10832 * ns32k-tdep.h: Don't include "osabi.h".
10833 (struct gdbarch_tdep): Remove.
10834 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10835 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10836 allocate tdep. Update call to gdbarch_init_osabi.
10837 (ns32k_dump_tdep): Remove.
10838 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10839 * ns32knbsd-tdep.c: Include "osabi.h".
10840
10841 * ppc-tdep.h: Don't include "osabi.h".
10842 (struct gdbarch_tdep): Remove osabi member.
10843 * rs6000-tdep.c: Include "osabi.h".
10844 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10845 osabi when iterating over arches. Update call to
10846 gdbarch_init_osabi.
10847 (rs6000_dump_tdep): Don't dump osabi.
10848 * ppc-linux-tdep.c: Include "osabi.h".
10849 * ppcnbsd-tdep.c: Include "osabi.h".
10850
10851 * sh-tdep.h: Don't include "osabi.h".
10852 (struct gdbarch_tdep): Remove osabi member.
10853 * sh-tdep.c: Include "osabi.h".
10854 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10855 iterate over arches. Update call to gdbarch_init_osabi.
10856 (sh_dump_tdep): Don't dump osabi.
10857 * shnbsd-tdep.c: Include "osabi.h".
10858
10859 * sparc-tdep.c: Include "osabi.h".
10860 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10861 iterate over arches. Update call to gdbarch_init_osabi.
10862 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10863 tdep structure.
10864
10865 * vax-tdep.h: Don't include "osabi.h".
10866 (struct gdbarch_tdep): Remove.
10867 * vax-tdep.c: Include "osabi.h".
10868 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10869 iterate over arches. Don't allocate tdep. Update call
10870 to gdbarch_init_osabi.
10871 (vax_dump_tdep): Remove.
10872 (_initialize_vax_tdep): Update call to gdbarch_register.
10873
10874 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10875
10876 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10877 entirely.
10878 (breakpoint_re_set_one): Don't fetch the value for a disabled
10879 watchpoint.
10880
10881 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10882
10883 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10884 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10885 (COERCE_FLOAT_TO_DOUBLE): Remove.
10886 * gdbarch.c: Regenerate.
10887 * gdbarch.h: Regenerate.
10888 * Makefile.in: Remove value_h from gdbarch_h.
10889 * valops.c (coerce_float_to_double): New variable.
10890 (default_coerce_float_to_double): Remove.
10891 (standard_coerce_float_to_double): Remove.
10892 (value_arg_coerce): Use coerce_float_to_double.
10893 (_initialize_valops): Add "set coerce-float-to-double".
10894 * value.h (default_coerce_float_to_double): Remove prototype.
10895 (standard_coerce_float_to_double): Remove prototype.
10896
10897 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10898 prototyped.
10899 * mdebugread.c (parse_symbol): Likewise.
10900 * stabsread.c (define_symbol): Mark all functions as prototyped.
10901
10902 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10903 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10904 set_gdbarch_coerce_float_to_double.
10905 * arm-tdep.c (arm_gdbarch_init): Likewise.
10906 * frv-tdep.c (frv_gdbarch_init): Likewise.
10907 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10908 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10909 * mips-tdep.c (mips_gdbarch_init): Likewise.
10910 (mips_coerce_float_to_double): Remove.
10911 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10912 (rs6000_coerce_float_to_double): Remove.
10913 * s390-tdep.c (s390_gdbarch_init): Likewise.
10914 * sh-tdep.c (sh_gdbarch_init): Likewise.
10915 (sh_coerce_float_to_double): Remove.
10916 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10917 (sparc_coerce_float_to_double): Remove.
10918 * v850-tdep.c (v850_gdbarch_init): Likewise.
10919 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10920 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10921 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10922 (hppa_coerce_float_to_double): Remove prototype.
10923 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10924
10925 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10926
10927 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10928
10929 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10930
10931 Suggested by Stewart Brown <sb24@avaya.com>:
10932 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10933 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10934 (c_type_print_varspec_suffix): Likewise.
10935
10936 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10937
10938 * configure.in: Don't set and AC_SUBST SUBDIRS.
10939 * configure: Regenerated.
10940
10941 * configure.in: Remove code dealing with shared libraries.
10942 * Makefile.in: Remove HLDFLAGS and HLDENV.
10943 * configure: Regenerated.
10944
10945 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10946
10947 * frame.c (deprecated_frame_xmalloc): New function.
10948 (deprecated_set_frame_saved_regs_hack): New function.
10949 (deprecated_set_frame_extra_info_hack): New function.
10950 * frame.h (deprecated_frame_xmalloc): Declare.
10951 (deprecated_set_frame_saved_regs_hack): Declare.
10952 (deprecated_set_frame_extra_info_hack): Declare.
10953
10954 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10955
10956 * configure.in: Move code that provides the --enable-gdbtk option
10957 right after the code that handles the --enable-tui option, and
10958 polish it somewhat.
10959 * configure: Regenerated.
10960
10961 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10962 AC_CHECK_FUNCS and remove the old check for pread64.
10963 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10964 * acconfig.h (_GNU_SOURCE): Add.
10965 (HAVE_PREAD64): Remove.
10966 * configure, aclocal.m4, config.in: Regenerated.
10967
10968 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10969
10970 * alpha-tdep.c: Use get_frame_saved_regs.
10971 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10972 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10973 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10974 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10975 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10976
10977 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10978
10979 * configure.in: Remove all use of the SUBDIRS variable; add
10980 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10981 code providing the --enable-multi-ice option, and move it right in
10982 front of the code that checks whether gdbserver is supported.
10983 Polish that too.
10984 * configure: Regenerated.
10985 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10986 @SUBDIRS@.
10987
10988 2003-01-03 Andrew Cagney <cagney@redhat.com>
10989
10990 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10991 * avr-tdep.c, cris-tdep.c: Ditto.
10992 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10993 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10994
10995 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10996
10997 * configure.in: Remove --enable-netrom option.
10998 * configure: Regenerated.
10999
11000 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11001
11002 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11003 declaration for `struct re_pattern_buffer' instead.
11004 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11005
11006 2003-01-03 J. Brobecker <brobecker@gnat.com>
11007
11008 * mdebugread.c (parse_symbol): Count until the stEnd matching
11009 the structure name.
11010
11011 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11012
11013 * configure.in: Remove --with-cpu option.
11014 subscripts. Remove evil changequotes here.
11015 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11016 * config.in, configure: Regenerated.
11017
11018 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11019 * configure.in: Cleanup section that sources GDB and BFD configure
11020 subscripts. Remove evil changequotes here.
11021 * config.in, configure: Regenerated.
11022
11023 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11024
11025 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11026 frame accessor methods.
11027 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11028 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11029 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11030 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11031 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11032 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11033 * z8k-tdep.c: Ditto.
11034
11035 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11036
11037 * configure.in: Remove UI_OUT configuration code.
11038 * ada-lang.c: Update assuming UI_OUT is always true.
11039 * Makefile.in (UIOUT_CFLAGS): Remove.
11040 * configure: Regenerated.
11041 * TODO: Remove blurb about elimination of -DUI_OUT.
11042
11043 * configure.in: Move code that provides the --enable-gdbcli,
11044 --enable-gdbmi options right before the code that handles the
11045 --enable-tui option. Polish a bit.
11046 * configure: Regenerated.
11047
11048 * configure.in: Rewrite check for GNU regex and the
11049 --without-included regex option, and move it into the "Checks for
11050 library functions" section. This makes us use the system regex
11051 again by default on systems with version 2 of the GNU C library.
11052 This was apparently broken.
11053 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11054 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11055 * config.in, configure: Regenerated.
11056
11057 * configure.in: Move code that provides the --enable-tui option
11058 before the "Checks for libraries" section. Polish the code
11059 somewhat and set need_curses to yes if we build the TUI. Rewrite
11060 code that looks for a library providing termcap functionality to
11061 match more closely what's done in the Readline library, and move
11062 it into to the "Checks for libraries" section.
11063 * configure: Regenerated.
11064 * Makefile.in (TERMCAP): Remove variable.
11065 * config/i386/go32.mh (TERMCAP): Remove variable.
11066
11067 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11068
11069 * MAINTAINERS: Mention gdb_mbuild.sh.
11070 * gdb_mbuild.sh: Rewrite.
11071
11072 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11073
11074 * configure.in: Fix typo in last change.
11075 * config.in, configure: Regenerated.
11076
11077 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11078
11079 * valarith.c (value_binop): Delete obsolete code and comments.
11080 * configure.host: Ditto.
11081 * buildsym.h (make_blockvector): Ditto.
11082 * buildsym.c (make_blockvector): Ditto.
11083 * defs.h (enum language): Ditto.
11084 (chill_demangle): Ditto.
11085 * elfread.c (elf_symtab_read): Ditto.
11086 * dwarfread.c (CHILL_PRODUCER): Ditto.
11087 (set_cu_language): Ditto.
11088 (handle_producer): Ditto.
11089 * expprint.c (print_subexp): Ditto.
11090 * gdbtypes.c (chill_varying_type): Ditto.
11091 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11092 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11093 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11094 (chill_varying_type): Ditto.
11095 * language.h (_LANG_chill): Ditto.
11096 * language.c (binop_result_type, integral_type): Ditto.
11097 (character_type, string_type, structured_type): Ditto.
11098 (lang_bool_type, binop_type_check): Ditto.
11099 * stabsread.h (os9k_stabs): Ditto.
11100 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11101 (define_symbol, read_type, read_struct_fields): Ditto.
11102 (read_array_type, read_enum_type, read_huge_number): Ditto.
11103 (read_range_type, start_stabs): Ditto.
11104 * symfile.c (init_filename_language_table): Ditto.
11105 (add_psymbol_with_dem_name_to_list): Ditto.
11106 * symtab.c (symbol_init_language_specific): Ditto.
11107 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11108 * symtab.h (struct general_symbol_info): Ditto.
11109 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11110 * typeprint.c (typedef_print): Ditto.
11111 * utils.c (fprintf_symbol_filtered): Ditto.
11112 * valops.c (value_cast, search_struct_field, value_slice): Delete
11113 obsolete code.
11114 (varying_to_slice): Delete function.
11115 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11116 (varying_to_slice): Delete declaration.
11117 * MAINTAINERS: Update.
11118
11119 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11120
11121 * configure.in: Reorganize "Checks for library functions section"
11122 a bit. Remove check for `btowc' and `isascii' functions.
11123 * configure: Regenerated.
11124
11125 * acconfig.h (_MSE_INT_H): Remove.
11126 * configure.in: Create "Checks for header files" section, and move
11127 appropriate tests there. Don't check for objlist.h, wchar.h,
11128 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11129 misdetection fix. Also add "Checks for types", "Checks for
11130 compiler characteristics" and "Checks for library functions"
11131 sections.
11132 * config.in, configure: Regenerated.
11133
11134 * configure.in: Create "Checks for programs" section, and move
11135 appropriate tests there.
11136
11137 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11138
11139 * configure.in: Create "Checks for libraries" section, and move
11140 appropriate tests there. Cleanup check for wctype in libw. Use
11141 AC_SEARCH_LIBS to see whether we need libsocket.
11142 * configure: Regenerated.
11143
11144 For older changes see ChangeLog-2002
11145 \f
11146 Local Variables:
11147 mode: change-log
11148 left-margin: 8
11149 fill-column: 74
11150 version-control: never
11151 End: