* regcache.c (register_buffer): Consitify first argument.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9a661b68
MK
12003-08-28 Mark Kettenis <kettenis@gnu.org>
2
3 * regcache.c (register_buffer): Consitify first argument.
4 (regcache_raw_supply, regcache_raw_collect): New
5 functions.
6
e94cc8fa
DJ
72003-08-28 Daniel Jacobowitz <drow@mvista.com>
8
9 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
10 by Nathan J. Williams.
11
c64bd0ce
DJ
122003-08-28 Daniel Jacobowitz <drow@mvista.com>
13
14 * lin-lwp.c (wait_lwp): New function, copied from
15 stop_wait_callback. Clean up.
16 (stop_wait_callback): Use wait_lwp.
17
e5ab0dce
AC
182003-08-28 Andrew Cagney <cagney@redhat.com>
19
20 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
21 flavour and disassembler options.
22 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
23 (mips_gdbarch_init): Set "print_insn". Delete initialization of
24 deprecated_tm_print_insn_info.
25
a788de9b
AC
262003-08-27 Andrew Cagney <cagney@redhat.com>
27
28 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
29 Use target_read_memory.
30 (s390_get_frame_info): Update. Do not reference
31 deprecated_tm_print_insn_info.
32 (s390_check_function_end, s390_is_sigreturn): Ditto.
33
36482093
AC
342003-08-27 Andrew Cagney <cagney@redhat.com>
35
36 * Makefile.in (cris-tdep.o): Update dependencies.
37 * cris-tdep.c: Include "gdb_assert.h".
38 (cris_gdbarch_init): Set print_insn.
39 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
40 (cris_delayed_get_disassembler): Simplify, directly call the
41 disassembler returned by cris_get_disassembler.
42 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
43 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
44 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
45 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
46 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
47 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
48 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
49 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
50 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
51 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
52 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
53 (gdb_print_insn_sparc): Delete function.
54 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
55 deprecated_tm_print_insn_info.
56 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
57 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
58 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
59 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
60 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
61 * s390-tdep.c (gdb_print_insn_s390): Delete function.
62 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
63 (s390_gdbarch_init): Set print_insn.
64
0285512f
AC
652003-08-27 Andrew Cagney <cagney@redhat.com>
66
67 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
68 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
69 * infcall.c (call_function_by_hand): Convert the entry point
70 address into a code address.
71
cdcd5552
AC
722003-08-27 Andrew Cagney <cagney@redhat.com>
73
74 * dsrec.c: Include "gdb_string.h".
75 * Makefile.in (dsrec.o): Update dependencies.
76
e85cddad
MC
772003-08-27 Michael Chastain <mec@shout.net>
78
79 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
80
8bbfbb23
AC
812003-08-27 Andrew Cagney <cagney@redhat.com>
82
83 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
84 (alpha_osf1_init_abi): Do not set call_dummy_address.
85
ba058b66
DC
862003-08-27 David Carlton <carlton@kealia.com>
87
88 From Randolph Chung <tausq@debian.org>:
89 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
90 compiles with -Wformat-nonliteral -Werror.
91
87f84c9d
JB
922003-08-26 Jim Blandy <jimb@redhat.com>
93
94 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
95 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
96 bfd_lookup_symbol, since we only want symbols in code sections.
97 (look_for_base): Pass zero as the SECT_FLAGS argument to
98 bfd_lookup_symbol, since we're not concerned about which section
99 the symbol is in.
100
102d615a
JJ
1012003-08-26 Jeff Johnston <jjohnstn@redhat.com>
102
103 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
104 we are frameless or the return address register is already known.
105
cc7ad3ea
AC
1062003-08-26 Andrew Cagney <cagney@redhat.com>
107
108 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
109 in size. Add comments.
110
af8b88dd
JJ
1112003-08-26 Jeff Johnston <jjohnstn@redhat.com>
112
113 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
114 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
115
e0a4f5a1
JM
1162003-08-26 Jason Merrill <jason@redhat.com>
117
118 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
119 case out of #ifdef MIPS block.
120
4ae9ee8e
DJ
1212003-08-25 Daniel Jacobowitz <drow@mvista.com>
122
123 PR java/1322
124 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
125 available before calling SECT_OFF_TEXT.
3c164570 126 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 127
004d836a
JJ
1282003-08-25 Jeff Johnston <jjohnstn@redhat.com>
129
130 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
131 bof, and nat0-nat127 as pseudo-registers.
132 (ia64_frame_cache): New struct used to cache frame info.
133 (ia64_register_reggroup_p): New routine used to override default
134 register grouping so registers without names are still saved and
135 restored.
136 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
137 pseudo values.
138 (ia64_pseudo_register_read): New routine to read pseudo-registers.
139 (ia64_pseudo_register_write): New routine to write pseudo-registers.
140 (ia64_alloc_frame_cache): New routine to create a new
141 ia64_frame_cache.
142 (examine_prologue): Change prototype to add next_frame pointer.
143 Assume frameless until otherwise proven. Verify that the cfm for
144 current frame matches the cfm that should occur for the prologues
145 alloc insn and if equal, mark as not frameless. At end of routine,
146 if not frameless, calculate registers for the previous frame and store
147 in the cache, if a cache is provided.
148 (ia64_skip_prologue): Use new prototype when calling examine_prologue
149 and pass 0 for next_frame.
150 (ia64_store_return_value): Change to use convert_typed_floating()
151 instead of calling ia64_convert_to_raw().
152 (ia64_extract_return_value): Change to use convert_typed_floating()
153 instead of calling ia64_convert_to_virtual().
154 (ia64_frame_cache): New routine to support new frame model.
155 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
156 (ia64_frame_sniffer): Ditto.
157 (ia64_sigtramp_frame_init_saved_regs): Ditto.
158 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
159 (ia64_sigtramp_frame_prev_register): Ditto.
160 (ia64_sigtramp_frame_sniffer): Ditto.
161 (ia64_frame_base_address): Ditto.
162 (ia64_extract_struct_value_address): Change to issue error message.
163 (ia64_frame_align): New routine to align sp.
164 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
165 (ia64_push_arguments): Removed. Logic moved to
166 ia64_push_dummy_call().
167 (ia64_push_return_address): Ditto.
168 (ia64_unwind_dummy_id): New function.
169 (ia64_unwind_pc): Ditto.
170 (ia64_convert_register_p): Ditto.
171 (ia64_register_to_value): Ditto.
172 (ia64_value_to_register): Ditto.
173 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
174 (ia64_register_byte, ia64_register_raw_size): Ditto.
175 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
176 (ia64_saved_pc_after_call): Ditto.
177 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
178 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
179 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
180 (ia64_register_convert_to_raw): Ditto.
181 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
182 (ia64_init_extra_frame_info): Ditto.
183 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
184 (ia64_gdbarch_init): Remove registering of deprecated functions that
185 are no longer used. Add registration of new gdbarch functions.
186 Remove registering deprecated_write_sp. Replace
187 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
188 Delete set_gdbarch_deprecated_register_convertible(),
189 set_gdbarch_deprecated_register_convert_to_virtual(), and
190 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
191 set_gdbarch_deprecated_register_size(),
192 set_gdbarch_deprecated_register_bytes(),
193 set_gdbarch_pcregnum(),
194 set_gdbarch_deprecated_register_byte(),
195 set_gdbarch_deprecated_register_raw_size(),
196 set_gdbarch_deprecated_max_register_raw_size(),
197 set_gdbarch_deprecated_register_virtual_size(),
198 and set_gdbarch_deprecated_max_register_virtual_size() calls.
199 Replace set_gdbarch_deprecated_extract_return_value() with
200 set_gdbarch_extract_return_value(). Remove calls to:
201 set_gdbarch_deprecated_saved_pc_after_call();
202 set_gdbarch_deprecated_frame_chain(),
203 set_gdbarch_deprecated_frame_saved_pc(),
204 set_gdbarch_deprecated_frame_init_saved_regs(),
205 set_gdbarch_deprecated_get_saved_register(),
206 set_gdbarch_deprecated_call_dummy_words(),
207 set_gdbarch_deprecated_sizeof_call_dummy_words(),
208 set_gdbarch_deprecated_init_extra_frame_info(),
209 set_gdbarch_deprecated_frame_args_address(),
210 set_gdbarch_deprecated_frame_locals_address(),
211 and set_gdbarch_deprecated_dummy_write_sp().
212 Add set_gdbarch_convert_register_p(),
213 set_gdbarch_register_to_value(),
214 set_gdbarch_value_to_register(),
215 set_gdbarch_push_dummy_call(),
216 set_gdbarch_frame_align(),
217 set_gdbarch_unwind_dummy_id(),
218 set_gdbarch_unwind_pc(),
219 frame_unwind_append_sniffer(),
220 frame_unwind_append_sniffer(),
221 and frame_base_set_default().
222
aede7613
CD
2232003-08-25 Chris Demetriou <cgd@broadcom.com>
224
225 * configure.tgt: Document need for special "mipsisa64" handling.
226 (mipsisa64*-*-linux64): Handle as target linux64.
227 (mipsisa64*-*-*): Handle as target embed64.
228
43c3a82e
MC
2292003-08-18 Michael Chastain <mec@shout.net>
230
231 * PROBLEMS: Document pr gdb/1322, the Java anonymous
232 objfile bug.
233
6564f77d
MK
2342003-08-24 Mark Kettenis <kettenis@gnu.org>
235
2de139ba
MK
236 * i387-tdep.h: Update copyright date.
237 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
238
6564f77d
MK
239 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
240 CFLAGS games to reflect reality.
241
42cf1509
AC
2422003-08-24 Andrew Cagney <cagney@redhat.com>
243
244 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
245 GDB_MULTI_ARCH is always non-zero.
246 * osabi.c (_initialize_gdb_osabi): Ditto.
247 (gdbarch_init_osabi): Ditto.
248 * sparc-tdep.c: Ditto for #if code.
249
0485f6ad
MK
2502003-08-23 Mark Kettenis <kettenis@gnu.org>
251
252 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
253 Update comments.
254 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
255 comments.
256 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
257 x86_64_supply_fxsave.
258 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
259 x86_64_supply_fxsave.
260 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
261 x86_64_supply_fxsave.
262
c7716133
AJ
2632003-08-23 Andreas Jaeger <aj@suse.de>
264
265 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
266 i387_supply_fxsave.
267
ed504bdf
MK
2682003-08-23 Mark Kettenis <kettenis@gnu.org>
269
270 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
271 i387_supply_register.
272 (go32_fetch_registers): Adjust call to i387_supply_fsave.
273 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
274 i387_supply_fsave.
275 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
276 i387_supply_fxsave.
277 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
278 i387_supply_fsave.
279 * i386bsd-nat.c (supply_fpregset): Adjust call to
280 i387_supply_fsave.
281 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
282 call to i387_supply_fxsave. Call i387_supply_fsave instead of
283 supply_fpregset.
284 (store_inferior_registers): Remove extraneous whitespace. Call
285 i387_fill_fsave instead of fill_fpregset.
286 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
287 (supply_fpregset): Likewise.
288 * i386v4-nat.c (supply_fpregset): Adjust call to
289 i387_supply_fsave.
290 * i386-interix-nat.c (supply_fpregset): Adjust call to
291 i387_supply_fsave.
292 * i386-linux-nat.c (supply_fpregset): Adjust call to
293 i387_supply_fsave.
294 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
295 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
296 i387supply_fsave and i387_supply_fxsave.
297 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
298 Incorporate code from `i387_supply_register.
299 (i387_supply_register): Remove.
300 (i387_supply_fxsave): Add `regnum' argument.
301 Update comments.
302 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
303 prototype.
304 (i387_supply_register): remove prototype.
305 Update comments.
306
4be5d520
MC
3072003-08-22 Michael Chastain <mec@shout.net>
308
309 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
310 Add lines for files in gdb/testsuite/gdb.cp/* that are
311 still not 8.3 unique.
312
7ed85d26
DJ
3132003-08-22 Daniel Jacobowitz <drow@mvista.com>
314
315 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
316 TYPE_VPTR_FIELDNO is valid.
317
eb0d3137
MK
3182003-08-19 Mark Kettenis <kettenis@gnu.org>
319
320 * utils.c (set_width_command): Remove prototypes.
321 (set_screen_size): New prototype.
322 (init_page_info): Simplify by fetching the screen size from
323 Readline. Call set_screen_size.
324 (set_screen_size): New function.
325 (set_width): Add missing whitespace in comment.
326 (set_width_command): Call set_screen_size.
327 (set_height_command): New function.
328 (initialize_utils): Fix formatting. Make "set height" command
329 call set_height_command. Remove redundant code that turns off
330 pagination if output isn't a terminal. Remove redundant call to
331 set_width_command.
332
7e6d0ac8
MK
3332003-08-22 Mark Kettenis <kettenis@gnu.org>
334
3567a8ea
MK
335 * sparc64-tdep.h (sparc64_regnum): Fix comment.
336 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
337 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
338 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
339 `case' keyword.
340 (sparc64_register_info): Give the reister with number
341 SPARC64_STATE_REGNUM a name.
342 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
343 %asi and %ccr.
344 (sparc64_push_dummy_call): Take BIAS into account when checking
345 stcak alignment.
346 (sparc_software_single_step): Remove assertions that check whether
347 NPC and NNPC were zero.
348 (sparc_supply_rwindow): Make public. Merge functionality with
349 sparc64_supply_rwindow.
350 (sparc_fill_rwindow): Make public. Merge functionality with
351 sparc64_fill_rwindow.
352 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
353 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
354 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
355 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
356 sparc_supply_rwindow instead of sparc64_supply_rwindow.
357
7e6d0ac8
MK
358 * reggroups.c: Add whitespace after declarations of local
359 variables in functions.
360
72e5f484
MC
3612003-08-21 Michael Chastain <mec@shout.net>
362
363 * gdbtypes.h: Change array bound type from an int to enum.
364
435ac228
AC
3652003-08-21 Andrew Cagney <cagney@redhat.com>
366
367 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
368 * config/sparc/tm-sparc.h: Ditto.
369 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
370 unconditionally.
371 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
372
0d0e1a63
MK
3732003-07-13 Mark Kettenis <kettenis@gnu.org>
374
375 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
376 (register_objfile_data, set_objfile_data, objfile_data): New
377 prototypes.
378 * objfiles.c (objfile_alloc_data, objfile_free_data): New
379 prototypes.
380 (allocate_objfile): Call objfile_alloc_data.
381 (free_objfile): Call objfile_free_data.
382 (struct objfile_data): New.
383 (struct objfile_data_registration): New.
384 (struct objfile_data_registry): New.
385 (objfile_data_registry): New variable.
386 (register_objfile_data): New function.
387 (objfile_alloc_data, objfile_free_data): New functions.
388 (set_objfile_data, objfile_data): New functions.
389 * dwarf2-frame.c (dwarf2_frame_data): New variable.
390 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
391 (_initialize_dwarf2_frame): New function and prototype.
392
d90cf509
AC
3932003-08-21 Andrew Cagney <cagney@redhat.com>
394
395 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
396 a specific architecture.
397 * arch-utils.h (set_architecture_from_arch_mach): Delete
398 declaration.
399 (target_architecture_hook): Delete declaration.
400 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
401 (default_float_format): Assume GDB_MULTI_ARCH.
402 (default_double_format): Assume GDB_MULTI_ARCH.
403 (set_endian_from_file): Delete function.
404 (arch_ok): Delete function.
405 (set_arch): Delete function.
406 (set_architecture_from_arch_mach): Delete function.
407 (set_architecture_from_file): Delete function.
408 (set_architecture): Assume GDB_MULTI_ARCH.
409 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
410
8b39fe56
MK
4112003-08-21 Mark Kettenis <kettenis@gnu.org>
412
413 Rewrite FreeBSD/sparc64 native configuration.
414 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
415 * sparc64fbsd-nat.c: New file.
416 * sparc64fbsd-tdep.c: New file.
417 * sparc64-tdep.c sparc64-tdep.h: New files.
418 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
419 sparc64fbsd-tdep.o): New dependencies.
420 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
421 and sparc64fbsd-tdep.c.
422 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
423 * config/sparc/fbsd.mh: Remove copyright notice.
424 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
425 sparcbsd-nat.o.
426 * config/sparc/fbsd.mt: Remove copyright notice.
427 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
428 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
429 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
430 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
431 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
432 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
433 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
434 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
435 "sparc/tm-sp64.h".
436 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
437 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
438
a7f19c79
MC
4392003-08-21 Michael Chastain <mec@shout.net>
440
441 * symtab.h: Add doco on the space critical structures and
442 some measurements of space usage.
443
da08ea5b
MS
4442003-08-21 Michael Snyder <msnyder@redhat.com>
445
446 * tracepoint.c (trace_dump_command): Trace break address
447 is subject to DECR_PC_AFTER_BREAK.
448 (set_traceframe_context): Make "trace_line" an int.
449 Fixes suggested by Mark Newman <mark.newman@lmco.com>
450
6df2bf50
MS
4512003-08-20 Michael Snyder <msnyder@redhat.com>
452
453 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
454 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
455 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
456 argument passing.
457 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
458 functions, replace sh_push_dummy_call.
459 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
460
0955bbf0
MC
4612003-08-20 Michael Chastain <mec@shout.net>
462
463 * gdbtypes.h (struct main_type): Rearrange to save space.
464
260a4188
MS
4652003-08-20 Michael Snyder <msnyder@redhat.com>
466
467 * trad-frame.c: Comment typo fix.
468
8baa6f92
KB
4692003-08-20 Michael Snyder <msnyder@redhat.com>
470 Kevin Buettner <kevinb@redhat.com>
471
472 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
473 (frv_frame_init_saved_regs): Add declaration.
474 (frame_extra_info): Add new field ``saved_regs''.
475 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
476 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
477 Update frame related code.
478 (frv_extract_struct_value_address): Adjust formatting.
479 * Makefile.in (frv-tdep.o): Update dependencies.
480 * config/frv/tm-frv.h (target_insert_watchpoint)
481 (target_remove_watchpoint, target_insert_hw_breakpoint)
482 (target_remove_hw_breakpoint): Delete these macros.
483 (remote_insert_watchpoint, remote_remove_watchpoint)
484 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
485 these declarations.
486
87193939
MC
4872003-08-20 Michael Chastain <mec@shout.net>
488
489 * defs.h (ENUM_BITFIELD): New macro.
490 * symtab.h (ENUM_BITFIELD): Use it.
491 (BYTE_BITFIELD): Remove old macro, which was already disabled.
492
062103ba
SA
4932003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
494
495 * MAINTAINERS (write after approval): Add myself.
496
8b148df9
AC
4972003-08-18 Andrew Cagney <cagney@redhat.com>
498
499 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
500 * gdbarch.h, gdbarch.c: Re-generate.
501 * infcall.c (call_function_by_hand): Adjust the SP by
502 frame_red_zone_size before allocating any stack space.
503 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
504 * x86-64-tdep.c (x86_64_frame_align): New function.
505 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
506
507 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
508 Remove code adjusting SP so that it skips over the Red Zone.
509
954a4db8
MK
5102003-08-18 Mark Kettenis <kettenis@gnu.org>
511
512 * NEWS (New native configurations): Mention FreeBSD/amd64.
513
1a241548
AC
5142003-08-18 Andrew Cagney <cagney@redhat.com>
515
516 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
517 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
518 "m68k_frame_p".
519 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
520
f82b2acd
MK
5212003-08-18 Mark Kettenis <kettenis@gnu.org>
522
523 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
524
4056d258
ML
5252003-08-18 Michal Ludvig <mludvig@suse.cz>
526
527 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
528 Define.
529 * i386-linux-nat.c: Include "linux-nat.h".
530 (child_post_startup_inferior): New function.
531
99ab4326
MK
5322003-08-18 Mark Kettenis <kettenis@gnu.org>
533
534 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
535 at the start of a frameless function. This probably fixes PR
536 backtrace/1338.
537
c8d5f0d6
MC
5382003-08-17 Michael Chastain <mec@shout.net>
539
540 * symfile.c (find_sym_fns): Remove special case for apollo target.
541
9016a515
DJ
5422003-08-17 Daniel Jacobowitz <drow@mvista.com>
543
544 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
545 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
546 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
547 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
548 (linux_supports_tracevforkdone): New function.
549 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
550 TRACEVFORKDONE.
551 (child_follow_fork): Handle vfork.
552 (linux_handle_extended_wait): Likewise. Also handle exec.
553 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
554 * NEWS: Mention fork tracing.
555
c538c11c
DJ
5562003-08-17 Daniel Jacobowitz <drow@mvista.com>
557
558 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
559
4de4c07c
DJ
5602003-08-17 Daniel Jacobowitz <drow@mvista.com>
561
562 * Makefile.in (i386-linux-nat.o): Update dependencies.
563 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
564 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
565 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
566 * i386-linux-nat.c: Include "linux-nat.h".
567 (child_post_startup_inferior): New function.
568 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
569 * infptrace.c (kill_inferior): Wrap in #ifdef.
570 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
571 attaching to each LWP.
572 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
573 (init_lin_lwp_ops): Fill in some more operations.
574 * linux-nat.h (linux_enable_event_reporting)
575 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
576 prototypes.
577 * linux-nat.c (linux_enable_event_reporting): New function.
578 (child_post_attach, linux_child_post_startup_inferior)
579 (child_post_startup_inferior, child_follow_fork)
580 (linux_handle_extended_wait, kill_inferior): New functions.
581
7996bcec
AC
5822003-08-16 Andrew Cagney <cagney@redhat.com>
583
584 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
585 * gdbarch.h, gdbarch.c: Re-generate.
586
3d48a7a0
MK
5872003-08-16 Mark Kettenis <kettenis@gnu.org>
588
589 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
590
7989c619
AC
5912003-08-16 Andrew Cagney <cagney@redhat.com>
592
593 * NEWS: Mention that "set prompt-escape-char" was deleted.
594 * top.c (get_prompt_1): Delete function.
595 (gdb_prompt_escape):
596 (init_main): Do not clear "gdb_prompt_escape". Delete "set
597 prompt-escape-char" command.
598 (MAX_PROMPT_SIZE): Delete macro.
599 (get_prompt): Simplify, do not call get_prompt_1.
600
07978cd8
AC
6012003-08-16 Andrew Cagney <cagney@redhat.com>
602
603 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
604 -Werror. -Wformat-nonliteral problems.
605
3ff7cf9e
JB
6062003-08-15 J. Brobecker <brobecker@gnat.com>
607
608 Further multiarching work mostly for hppa64-*-hpux11:
609 * hppa-tdep.h: New file.
610 * hppa-tdep.c: #include hppa-tdep.c.
611 (hppa32_num_regs): Renamed from hppa_num_regs.
612 (hppa64_num_regs): New constant.
613 (hppa64_call_dummy_breakpoint_offset): New constant.
614 (hppa32_call_dummy_length): New constant.
615 (hppa64_call_dummy_length): New constant.
616 (hppa32_stack_align): Make name 32bit explicit.
617 (hppa32_register_virtual_type): Likewise.
618 (hppa32_extract_return_value): Likewise.
619 (hppa32_use_struct_convention): Likewise.
620 (hppa32_store_return_value): Likewise.
621 (hppa64_register_virtual_type): New function.
622 (hppa64_extract_return_value): New function.
623 (hppa64_use_struct_convention): New function.
624 (hppa64_store_return_value): New function.
625 (hppa_frame_locals_address): Remove declaration, function does
626 not exist anymore.
627 (hppa_register_byte): Add support for PA64 ABI.
628 (hppa_gdbarch_init): Add support for PA64 ABI.
629 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
630 Make name 32bit explicit.
631 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
632 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
633 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
634 (hppa64_hpux_frame_base_before_sigtramp): New function.
635 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
636 * config/pa/tm-hppa64.h: Remove macros that are no longer
637 necessary now that the gdbarch vector is properly setup.
638 Transform some macros into function calls. Some minor cleanup.
639 * config/pa/tm-hppah.h: Update function calls in macros
640 following the function renaming in hppa-hpux-tdep.c.
641 * Makefile.in (hppa_tdep_h): New variable.
642 (hppa-tdep.o): Add dependency over hppa_tdep_h.
643
5d05ca6d
MS
6442003-08-14 Michael Snyder <msnyder@redhat.com>
645
646 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
647
37ba2569
JB
6482003-08-13 J. Brobecker <brobecker@gnat.com>
649
650 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
651 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
652 routine.
653
aed7f26a
MS
6542003-08-13 Michael Snyder <msnyder@redhat.com>
655
656 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
657 (frv_saved_pc_after_call): Use deprecated ftype.
658 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
659 (frv_remote_translate_xfer_address): Remove.
660 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
661
752d4ac1
JB
6622003-08-13 J. Brobecker <brobecker@gnat.com>
663
664 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
665 initialization after the common gdbarch initialization, not before.
666
1426ac1d
JB
6672003-08-13 J. Brobecker <brobecker@gnat.com>
668
669 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
670 (ADDR_BITS_REMOVE): Remove, redundant.
671
b6fbdd1d
JB
6722003-08-13 J. Brobecker <brobecker@gnat.com>
673
674 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
675 gdbarch method to clear the 2 low bits of text addresses.
676
44160db3
AC
6772003-08-12 Andrew Cagney <cagney@redhat.com>
678
679 * Makefile.in (dsrec.o): Update dependencies.
680 * dsrec.c: Include "gdb_assert.h".
681 (make_srec): Use snprintf instead of sprintf, use a literal format
682 string.
683
bcf7d3ca
AC
6842003-08-12 Andrew Cagney <cagney@redhat.com>
685
686 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
687 FRAME_OBSTACK_ZALLOC.
688
49ed40de
KB
6892003-08-12 Kevin Buettner <kevinb@redhat.com>
690
691 * i386-tdep.c (i386_gdbarch_init): Enable default support for
692 SSE registers.
693
b246147c
MK
6942003-08-10 Mark Kettenis <kettenis@gnu.org>
695
696 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
697 amd64fbsd_sc_reg_offset): Add extern declarations.
698 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
699 declarations.
700
d95fdc0d
BE
7012003-08-11 Ben Elliston <bje@wasabisystems.com>
702
703 * MAINTAINERS (write after approval): Update my mail address.
704
cf6a0e73
AC
7052003-08-10 Andrew Cagney <cagney@redhat.com>
706
707 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
708
f837910f
MK
7092003-08-10 Mark Kettenis <kettenis@gnu.org>
710
e2dbbd2d
MK
711 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
712 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
713 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
714 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
715 i386bsd_sc_reg_offset): Add extern declarations.
716 * i386obsd-nat.c: Include "i386-tdep.h"
717 (_initialize_i386obsd_nat): Remove extern declarations.
718 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
719 declarations.
720 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
721 declarations.
722
f837910f
MK
723 * i386-tdep.c (i386_register_to_value): Use get_frame_register
724 instead of frame_read_register.
725 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
726 instead of frame_read_register. Use I386_ESP_REGNUM instead of
727 SP_REGNUM.
728 (i386_frame_prev_register): Use frame_unwind_register_unsigned
729 instead of frame_unwind_unsigned_register. Use
730 I386_EFLAGS_REGISTER instead of PS_REGNUM.
731 (i386_get_longjmp_target): Use regcache_read_unsigned_register
732 instead of read_register. Use builtin_type_void_data_ptr instead
733 of builtin_type_void_func_ptr when extracting the address of the
734 jmp_buf.
735 (i386_extract_return_value, i386_store_return_value,
736 i386_pseudo_register_read, i386_pseudo_register_write): Use
737 register_size instead REGISTER_RAW_SIZE.
738
edcf254d
AC
7392003-08-10 Andrew Cagney <cagney@redhat.com>
740
741 * infcall.c (call_function_by_hand): Use xstrprintf instead of
742 sprintf. Make "name" constant.
743
26604a34
MK
7442003-08-10 Mark Kettenis <kettenis@gnu.org>
745
192285c6
MK
746 * i387-tdep.c (i387_register_to_value): Use get_frame_register
747 instead of frame_read_register.
f837910f
MK
748 (i387_print_float_info): Use get_frame_register and
749 get_frame_register_unsigned instead of frame_register_read.
192285c6 750
f0925262
MK
751 * i386fbsd-nat.c: Include "i386-tdep.h".
752 (child_resume): Make `eflags' an ULONGEST. Use
753 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
754 instead of register_read and register_write.
755
a144416f
MK
756 * i386bsd-nat.c (fetch_inferior_registers,
757 store_inferior_registers): Don't use && at the end of a line.
758 (_initialize_i386bsd_nat): Fix typo.
759
fec74868
MK
760 * frame.c (_initialize_frame): Add missing backslash.
761
87232496
MK
762 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
763 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
764 and supply_register instead of manipulating the register buffer
765 directly.
766
c9b9de0b
MK
767 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
768 * config/i386/nm-i386sol2.h
769 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
770
26604a34
MK
771 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
772 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
773 instructions that GCC likes to mingle into the prologue. Fixes
774 gdb/1253 and gdb/1255.
775
25d29d70
AC
7762003-08-09 Andrew Cagney <cagney@redhat.com>
777
778 Fix GDB PR cli/926.
779 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
780 * command.h (add_setshow_uinteger_cmd): Declare.
781 * frame.c (set_backtrace_cmd): New function.
782 (show_backtrace_cmd): New function.
783 * frame.c (_initialize_frame): Replace "set/show
784 backtrace-below-main" with "set/show backtrace past-main". Add
785 command "set/show backtrace limit".
786 (backtrace_past_main): Rename "backtrace_below_main".
787 (backtrace_limit): New variable.
788 (get_prev_frame): Update. Check the backtrace_limit.
789
9ebf4acf
AC
7902003-08-09 Andrew Cagney <cagney@redhat.com>
791
792 * defs.h (xstrprintf): Declare.
793 * utils.c (xstrprintf): New function.
794 * breakpoint.c (insert_breakpoints): Replace sprintf and
795 non-literal format strings, with xstrprintf and cleanups.
796 (delete_breakpoint,breakpoint_re_set): Ditto.
797 (commands_command, insert_breakpoints): Ditto.
798 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
799 (break_at_finish_command_1): Ditto.
800
3771659b
AC
8012003-08-09 Andrew Cagney <cagney@redhat.com>
802
803 * MAINTAINERS (language support): List Adam Fedor as Objective C
804 maintainer.
805
b4263afa
JB
8062003-08-08 J. Brobecker <brobecker@gnat.com>
807
808 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
809 are now multiarched.
810
d84defb1
JB
8112003-08-08 J. Brobecker <brobecker@gnat.com>
812
813 * config/pa/tm-hppa64.h: Remove lots of macros that are no
814 longer necessary now that hppa64 is partially multiarch'ed.
815
f786f615
AC
8162003-08-08 Andrew Cagney <cagney@redhat.com>
817
818 * interps.c (interp_set): Check for a NULL "old_interp".
819
c938e9b0
L
8202003-08-08 H.J. Lu <hongjiu.lu@intel.com>
821
822 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
823 (install-only): Support DESTDIR.
824 (uninstall): Likewise.
825 (install-gdbtk): Likewise.
826
9a146a11
EZ
8272003-08-08 Elena Zannoni <ezannoni@redhat.com>
828
829 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
830 contains something meaningful at all times.
831
832Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 833
62599e99 834 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 835
56296155
BC
836Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
837
62599e99 838 * MAINTAINERS (write after approval): Added self.
56296155 839
9710e734
AC
8402003-08-07 Andrew Cagney <cagney@redhat.com>
841
842 * inferior.h (AT_SYMBOL): Define.
843 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
844 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
845 * mips-tdep.c (mips_call_dummy_address): Delete function.
846 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
847 set call_dummy_address.
848
98b3ab73
AC
8492003-08-07 Andrew Cagney <cagney@redhat.com>
850
851 * language.c (op_error): Delete function.
852 (binop_type_check): Delete function.
853 * language.h (type_op_error, range_op_error): Delete macros.
854 (op_error): Delete declaration.
855
2fcf52f0
AC
8562003-08-07 Andrew Cagney <cagney@redhat.com>
857
858 * interps.h (INTERP_MI2, INTERP_MI3): Define.
859
abd4220e 8602003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 861
abd4220e 862 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 863 (x86_64_push_arguments): Skip the red zone.
abd4220e 864
9dd5f34f
AC
8652003-08-05 Andrew Cagney <cagney@redhat.com>
866
867 * reggroups.c (reggroup_next): Check for the final entry.
868
e5e78edc
AC
8692003-08-04 Andrew Cagney <cagney@redhat.com>
870
ab4e3d93
AC
871 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
872 * cli/cli-script.c (define_command): Call query directly, instead
873 of passing it a buffer.
874 * ocd.c (ocd_error): Pass error a constant format string.
875 * remote-mips.c (mips_error): Use fputs_filtered.
876
1062ca82
AC
877 * solib-svr4.c (_initialize_svr4_solib): Update
878 register_gdbarch_data call.
879 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
880
fcc1c85c
AC
881 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
882 (register_gdbarch_data): Delete "free" parameter. Update
883 comments.
884 * gdbarch.h, gdbarch.c: Re-generate.
885 * reggroups.c (_initialize_reggroup): Update.
886 * gnu-v3-abi.c (init_gnuv3_ops): Update.
887 * frame-base.c (_initialize_frame_base): Update.
888 * frame-unwind.c (_initialize_frame_unwind): Update.
889 * user-regs.c (_initialize_user_regs): Update.
890 * remote.c (_initialize_remote): Update.
891 * regcache.c (_initialize_regcache): Update.
892
116f06ea
AC
893 * regcache.c (xfree_regcache_descr): Delete function.
894 (_initialize_regcache): Update call to register_gdbarch_data.
895 (init_regcache_descr, init_legacy_regcache_descr): Use
896 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
897
e5e78edc
AC
898 * remote.c (free_remote_state): Delete function.
899 (_initialize_remote): Update register_gdbarch_data.
900 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
901 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
902
6c7d17ba
AC
9032003-08-04 Andrew Cagney <cagney@redhat.com>
904
905 * reggroups.c (struct reggroup_el): Define.
906 (struct reggroups): Delete field "nr_group". Replace array
907 "group" with a "first" to "last" linked list.
908 (reggroups_init): Update. Allocate using gdbarch's obstack.
909 (reggroups_free): Delete function.
910 (add_group): Update. Add "el" parameter.
911 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
912 (default_groups): Update.
913 (reggroup_next): Replace reggroups.
914 (reggroups_dump): Update.
915 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
916 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
917 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
918
89b7795b
DJ
9192003-08-04 Daniel Jacobowitz <drow@mvista.com>
920
921 * Makefile.in (tui-interp.o): Update dependencies.
922
306d9ac5
DC
9232003-08-04 David Carlton <carlton@kealia.com>
924
925 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
926 to internal_error call.
927 * source.c (forward_search_command): Add "%s" format argument.
928 (reverse_search_command): Ditto.
929 * top.c (quit_confirm): Ditto.
930 * cli/cli-setshow.c (do_setshow_command): Ditto.
931 * cp-valprint.c (cp_print_class_method): Replace
932 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
933 (cp_print_class_member): Ditto.
934 * event-top.c (command_line_handler): Ditto.
935 * linux-proc.c (linux_info_proc_cmd): Ditto.
936 * p-typeprint.c (pascal_type_print_base): Ditto.
937 * p-valprint.c (pascal_object_print_class_method): Ditto.
938 (pascal_object_print_class_member): Ditto.
939 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
940 * remote.c (remote_cisco_section_offsets): Ditto.
941 * top.c (command_line_input): Ditto.
942 * utils.c (vwarning,error_stream,quit): Ditto.
943 * valprint.c (print_floating,print_binary_chars)
944 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
945
57bfe177
AC
9462003-08-04 Andrew Cagney <cagney@redhat.com>
947
948 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
949
e546b999
AC
9502003-08-02 Andrew Cagney <cagney@redhat.com>
951
952 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
953 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
954 amd64fbsd-nat.c.
955
91092ee5
AC
9562003-08-02 Andrew Cagney <cagney@redhat.com>
957
958 * Makefile.in: Update all dependencies and definitions.
959
889f28e2
AF
9602003-08-02 Adam Fedor <fedor@gnu.org>
961
962 * linespec.c (is_objc_method_format): New function
963 (decode_line_1, locate_first_half): Use it.
964 Fixes PR objc/1298
965
880bc914
AC
9662003-08-01 Andrew Cagney <cagney@redhat.com>
967
968 * NEWS: Mention that m32r is multi-arch.
969 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
970 * configure.tgt: Recognize m32r-*-*.
971 * config/m32r/tm-m32r.h: Delete file.
972 * config/m32r/m32r.mt: New file.
973 * m32r-rom.c (m32r_upload_command): Use hostent only when
974 gethostname succeeds, in order to avoid a compilation
975 warning.
976 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
977 compiler warning.
978
19f59343
MS
9792003-08-01 Michael Snyder <msnyder@redhat.com>
980
981 * sh-tdep.c (sh_frame_align): New gdbarch method.
982 (sh_gdbarch_init): Set up frame_align method.
983
4e7d7511
MS
9842003-07-31 Michael Snyder <msnyder@redhat.com>
985
986 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
987 which is already covered by the new frames infrastructure.
988
63022984
AC
9892003-07-31 Andrew Cagney <cagney@redhat.com>
990
991 * user-regs.c (struct user_reg): Add "next" link.
992 (struct user_regs): Replace "user" with "first" and "last" links.
993 (append_user_reg): Add pre-allocated "reg" parameter.
994 (builtin_user_regs): Provide initial value for "last".
995 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
996 (user_regs_init): Allocate memory from the gdbarch obstack.
997 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
998 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
999 linked list.
1000 (usernum_to_user_reg): New function.
1001 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1002 (value_of_user_reg): Use usernum_to_user_reg.
1003 (user_regs_free): Delete function.
1004 (_initialize_user_regs): Update register_gdbarch_data call.
1005
7cf6e574
DJ
10062003-07-31 Daniel Jacobowitz <drow@mvista.com>
1007
1008 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1009
c48a845b
MS
10102003-07-30 Michael Snyder <msnyder@redhat.com>
1011
4e7d7511 1012 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1013 * infcall.c (call_function_by_hand): Pass struct_addr to
1014 value_being_returned.
1015 * infcmd.c (print_return_value): Pass zero as struct_addr.
1016 * values.c (value_being_returned): If struct_addr is passed,
1017 use it instead of trying to recover it from the inferior.
1018
f0d8db19
KB
10192003-07-30 Kevin Buettner <kevinb@redhat.com>
1020
1021 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1022 the prologue analyzer won't need to attempt to extract the pc
1023 value from the woefully incomplete dummy frame.
1024 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1025 possible. Disable code which modifies the frame.
1026
e5c113a1
AC
10272003-07-28 Andrew Cagney <cagney@redhat.com>
1028
1029 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1030 to level 2.
1031 (annotate_breakpoints_table, annotate_record): Ditto.
1032 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1033 (annotate_field_name_end, annotate_field_value): Ditto.
1034 (annotate_field_end, annotate_frame_source_begin): Ditto.
1035 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1036 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1037 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1038 (annotate_frame_address_end, annotate_frame_address): Ditto.
1039 (annotate_frame_args, annotate_frame_end): Ditto.
1040 (annotate_frame_where, annotate_arg_begin): Ditto.
1041 (annotate_arg_name_end, annotate_arg_value): Ditto.
1042 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1043 (annotate_function_call, annotate_signal_name): Ditto.
1044 (annotate_signal_string, annotate_signal_name_end): Ditto.
1045 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1046 (annotate_value_begin, annotate_value_history_value): Ditto.
1047 (annotate_value_history_end, annotate_value_end): Ditto.
1048 (annotate_display_begin, annotate_display_number_end): Ditto.
1049 (annotate_display_format, annotate_display_expression): Ditto.
1050 (annotate_display_expression_end, annotate_display_value): Ditto.
1051 (annotate_display_end, annotate_array_section_begin): Ditto.
1052 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1053 (annotate_elt, annotate_array_section_end): Ditto.
1054
bb1db049
AC
10552003-07-28 Andrew Cagney <cagney@redhat.com>
1056
1057 * regcache.c (struct regcache_descr): Update comments on
1058 nr_raw_registers.
1059 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1060 sizeof_raw_register_valid_p.
1061 (init_regcache_descr): Set nr_raw_registers and
1062 sizeof_raw_register_valid_p before calling
1063 init_legacy_regcache_descr.
1064
20e6603c
AC
10652003-07-28 Andrew Cagney <cagney@redhat.com>
1066
1067 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1068 MOD NUM_REGS.
1069
db742940
DJ
10702003-07-28 Daniel Jacobowitz <drow@mvista.com>
1071
1072 * thread.c (info_threads_command): Use get_selected_frame ().
1073 Check that there is at least one non-sentinel frame.
1074
ce7f4371
SC
10752003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1076
1077 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1078 (m68hc11_pop_frame): Remove.
1079 (m68hc11_frame_saved_pc): Remove.
1080 (m68hc11_frame_chain): Remove.
1081 (m68hc11_frame_init_saved_regs): Remove.
1082 (m68hc11_init_extra_frame_info): Remove.
1083 (m68hc11_store_struct_return): Remove.
1084 (m68hc11_saved_pc_after_call): Remove.
1085
1ea653ae
SC
10862003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1087
1088 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1089 frame unwind information.
1090 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1091 and adapted for frame unwinding.
1092 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1093 (m68hc11_unwind_pc): New function.
1094 (m68hc11_frame_unwind_cache): New function to analyze frames.
1095 (m68hc11_frame_this_id): New function to create new frame struct.
1096 (m68hc11_frame_prev_register): New function to unwind a register from
1097 the frame.
1098 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1099 (m68hc11_frame_p): New function for the above.
1100 (m68hc11_frame_base_address): New function to return fp of frame.
1101 (m68hc11_frame_args_address): Update for frame.
1102 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1103 (m68hc11_unwind_sp): New function.
1104 (m68hc11_unwind_dummy_id): New function.
1105 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1106 calls.
1107
c8a7f6ac
SC
11082003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1109
1110 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1111 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1112 when we are beyond the current pc.
1113
3dc990bf
SC
11142003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1115
1116 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1117 from m68hc11_push_arguments.
1118 (m68hc11_push_arguments): Remove.
1119 (m68hc11_push_return_address): Remove.
1120 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1121 handlers; remove deprecated_extra_stack_alignment_needed.
1122
222e5d1d
AC
11232003-07-27 Andrew Cagney <cagney@redhat.com>
1124
1125 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1126 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1127 REAL_PC and not the pointer.
1128 * hppa-hpux-tdep.c: Include frame.h
1129
a7e9a47e
AC
11302003-07-27 Andrew Cagney <cagney@redhat.com>
1131
1132 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1133 GDB_MULTI_ACH_PARTIAL.
1134
7e3dd49e
AC
11352003-07-27 Andrew Cagney <cagney@redhat.com>
1136
1137 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1138 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1139 operator at start and not end of line.
1140 (decode_prologue): Ditto.
1141 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1142 frame_unwind_register_unsigned instead of
1143 frame_unwind_unsigned_register.
1144 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1145 read_register.
1146 (m32r_push_dummy_call): Use register_size instead of
1147 REGISTER_RAW_SIZE.
1148 (m32r_frame_sniffer): Replace m32r_frame_p.
1149 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1150 * m32r-rom.c (report_transfer_performance): Delete extern
1151 declaration.
1152 (m32r_load, m32r_upload_command): Use print_transfer_performance
1153 instead of report_transfer_performance.
1154 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1155 / add_show_from_set.
1156
0880807f
AC
11572003-07-26 Andrew Cagney <cagney@redhat.com>
1158
1159 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1160 store_return_value and extract_struct_value_address.
1161
64ae9269
DJ
11622003-07-26 Daniel Jacobowitz <drow@mvista.com>
1163
1164 PR c++/1267
1165 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1166 NULL, default to the section containing PC.
1167
e286caf2
SC
11682003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1169
1170 * NEWS: Mention "regs" deprecated for m68hc11 too.
1171
1172 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1173 (m68hc11_print_register): New function to print out one register.
1174 (m68hc11_print_registers_info): New function to print registers.
1175 (show_regs): Deprecate and use the above.
1176 (m68hc11_gdbarch_init): Install the print_registers_info.
1177
705b278b
JJ
11782003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1179
1180 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1181 that we have a SIGTRAP before returning non-zero.
1182
63cd4198
EZ
11832003-07-23 Michal Ludvig <mludvig@suse.cz>
1184 Elena Zannoni <ezannoni@redhat.com>
1185
1186 * linespec.c (decode_line_2): Avoid crash if
1187 find_function_start_sal() returns empty record.
1188
6926787d
AS
11892003-07-23 Andreas Schwab <schwab@suse.de>
1190
1191 * ia64-tdep.c (ia64_print_insn): New function.
1192 (ia64_gdbarch_init): Set print_insn to it.
1193 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1194 deprecated_tm_print_insn_info.
1195
708cc1b6
MS
11962003-07-22 Michael Snyder <msnyder@redhat.com>
1197
1198 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1199 handle 8-bit returns (long long).
1200 (h8300h_extract_return_value): Ditto.
1201 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1202
aebd7893
AC
12032003-07-22 Andrew Cagney <cagney@redhat.com>
1204
1205 * gdbarch.c Include "gdb_obstack.h".
1206 (struct gdbarch): Add an "obstack".
1207 (alloc_gdbarch_data): Allocate the gdbarch data using
1208 GDBARCH_OBSTACK_CALLOC.
1209 (free_gdbarch_data): Delete function.
1210 (gdbarch_obstack_zalloc): New function.
1211 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1212 Assert that the architecture is not initialized.
1213 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1214 vector from the obstack.
1215 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1216 architecture obstack.
1217 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1218 (set_gdbarch_data): Assert that the data is not initialized.
1219 (struct gdbarch_data): Delete member "free".
1220 (register_gdbarch_data): Do not initialize "free".
1221 * gdbarch.h, gdbarch.c: Re-generate.
1222
153721e6
AC
12232003-07-22 Andrew Cagney <cagney@redhat.com>
1224
1225 * configure.in (build_warnings): Add -Wformat-nonliteral.
1226 * configure: Re-generate.
1227
c193f044 12282003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1229
1230 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1231
c3228f12
EZ
12322003-07-22 Elena Zannoni <ezannoni@redhat.com>
1233
1234 * findvar.c (read_var_value): Remove case for thread local storage
1235 variables. It is now entirely handled by the dwarf2 location
1236 expression code.
1237 * printcmd.c (address_info): Ditto.
1238 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1239 enumeration value.
1240 (struct symbol): Remove objfile field, which was used by
1241 LOC_THREAD_LOCAL_STATIC only.
1242 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1243 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1244 usage of objfile pointer.
1245 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1246 thread local variables.
1247 Add include of objfiles.h.
1248 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1249 storage variables.
1250 * Makefile.in (dwarf2loc.o): Update dependencies.
1251
aef9bcd2
AC
12522003-07-22 Andrew Cagney <cagney@redhat.com>
1253
1254 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1255 get_frame_base.
1256 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1257 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1258 (struct value): Add opaque declaration.
1259 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1260
d95a8903
AC
12612003-07-21 Andrew Cagney <cagney@redhat.com>
1262
1263 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1264 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1265
4db73d49
SC
12662003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1267
1268 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1269 regcache_cooked_read_unsigned instead of read_register.
1270 (m68hc11_saved_pc_after_call): Likewise.
1271 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1272 instead of write_register.
1273 (m68hc11_register_type): New function.
1274 (m68hc11_register_virtual_type): Remove.
1275 (m68hc11_store_return_value): Convert to use the regcache.
1276 (m68hc11_extract_struct_value_address): Likewise.
1277 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1278 m68hc11_register_type; undeprecate store_return_value and
1279 extract_struct_value_address.
1280
ef2b8fcd
SC
12812003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1282
1283 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1284 and translate to use regcache.
1285 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1286
625b0b97
AC
12872003-07-18 Andrew Cagney <cagney@redhat.com>
1288
1289 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1290 * gdbarch.h, gdbarch.c: Re-generate.
1291 * i386-tdep.c (i386_gdbarch_init): Do not set
1292 DWARF2_BUILD_FRAME_INFO.
1293 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1294 unconditionally.
1295 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1296 DWARF2_BUILD_FRAME_INFO.
1297
22b0d388
AC
12982003-07-18 Andrew Cagney <cagney@redhat.com>
1299
1300 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1301 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1302
1ce5d6dd
AC
13032003-07-18 Andrew Cagney <cagney@redhat.com>
1304
1305 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1306 frame_unwind_address_in_block, instead of frame_pc_unwind.
1307 (dwarf2_frame_cache): Ditto.
1308
e6e5e94c
AC
13092003-07-18 Andrew Cagney <cagney@redhat.com>
1310
1311 * user-regs.h (struct gdbarch): Declare opaque.
1312 * ui-out.h (struct ui_file): Declare opaque.
1313 * dwarf2-frame.h (struct frame_info): Declare opaque.
1314
5483d879
KW
13152003-07-18 Kris Warkentin <kewarken@qnx.com>
1316
1317 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1318 #include "...".
1319 (procfs_meminfo): Change strerror to safe_strerror.
1320 (procfs_can_run): Remove K&R badness.
1321
278a7cf7
MS
13222003-07-17 Michael Snyder <msnyder@redhat.com>
1323
1324 * remote-sim.c: Comment typo fix.
1325
606e3b82
AC
13262003-07-17 Andrew Cagney <cagney@redhat.com>
1327
1328 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1329 configure.
1330 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1331 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1332 GDB_MULTI_ARCH_PARTIAL.
1333
c43af07c
EZ
13342003-07-17 Elena Zannoni <ezannoni@redhat.com>
1335
1336 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1337 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1338 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1339
3b85b0f1
TR
13402003-07-16 Theodore A. Roth <troth@openavr.org>
1341
1342 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1343 found.
1344 (avr_frame_unwind_cache): Don't unwind FP for main.
1345 Update a comment.
1346 Save the computed prev_sp.
1347 (avr_saved_regs_unwinder): Remove function.
1348 (avr_frame_prev_register): Use PC unwind logic from
1349 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1350
336d1bba
AC
13512003-07-16 Andrew Cagney <cagney@redhat.com>
1352
1353 * frame-base.h (frame_base_p_ftype): Delete definition.
1354 (frame_base_append_predicate): Delete declaration.
1355 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1356 (frame_unwind_append_predicate): Delete declaration.
1357 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1358 (append_predicate): Delete parameter "p".
1359 (frame_unwind_append_predicate): Delete function.
1360 (frame_unwind_append_sniffer): Update call to append_predicate.
1361 (frame_unwind_free): Delete function.
1362 (_initialize_frame_unwind): Pass NULL as "free" to
1363 register_gdbarch_data.
1364 (frame_unwind_init): Append the dummy_frame_sniffer.
1365 (frame_unwind_find_by_frame): Simplify.
1366 * frame-base.c (struct frame_base_table): Delete field "p".
1367 (append_predicate): Delete parameter "p".
1368 (frame_base_append_predicate): Delete function.
1369 (frame_base_append_sniffer): Update call to append_predicate.
1370 (frame_base_free): Delete function.
1371 (frame_base_find_by_frame): Simplify.
1372 (_initialize_frame_base): Pass NULL as "free" to
1373 register_gdbarch_data.
1374 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1375 (x86_64_sigtramp_frame_sniffer): Replace
1376 "x86_64_sigtramp_frame_p".
1377 (x86_64_init_abi): Set the frame unwind sniffers.
1378 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1379 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1380 (m68k_gdbarch_init): Set the frame unwind sniffers.
1381 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1382 "i386_sigtramp_frame_p".
1383 (i386_frame_sniffer): Replace "i386_frame_p".
1384 (i386_gdbarch_init): Set the frame unwind sniffers.
1385 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1386 (avr_gdbarch_init): Set the frame unwind sniffers.
1387 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1388 "alpha_sigtramp_frame_p"
1389 (alpha_heuristic_frame_sniffer): Replace
1390 "alpha_heuristic_frame_p".
1391 (alpha_gdbarch_init): Set the frame unwind sniffers.
1392 (alpha_dwarf2_init_abi): Ditto.
1393 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1394 "alpha_debug_frame_p".
1395 (alpha_mdebug_frame_base_sniffer): Replace
1396 "alpha_mdebug_frame_base_p".
1397 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1398 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1399 (d10v_gdbarch_init): Set the frame unwind sniffer.
1400 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1401 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1402 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1403 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1404 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1405 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1406
48db5a3c
CV
14072003-07-16 Michael Snyder <msnyder@redhat.com>
1408
1409 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1410 should go thru sh_dsp_register_sim_regno, else the dsp regs
1411 will not get the right values.
1412
14132003-07-16 Corinna Vinschen <vinschen@redhat.com>
1414
1415 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1416 deprecated_store_floating by call to store_typed_floating.
1417 (sh_sh4_register_convert_to_raw): Substitute call to
1418 deprecated_extract_floating by call to extract_typed_floating.
1419
14202003-07-16 Corinna Vinschen <vinschen@redhat.com>
1421
1422 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1423
14242003-07-16 Corinna Vinschen <vinschen@redhat.com>
1425
1426 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1427 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1428 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1429 as possible.
1430 (do_pseudo_register): Remove.
1431 (sh_push_dummy_code): New function.
1432 (sh64_store_struct_return): Rename from sh_store_struct_return.
1433 Only called for sh64 now.
1434 (sh_extract_struct_value_address): Regcache'ify.
1435 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1436 and accomodate new tasks.
1437 (sh64_push_return_address): Rename from sh_push_return_address.
1438 Only called for sh64 now.
1439 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1440 Regcache'ify.
1441 (sh3e_sh4_extract_return_value): Regcache'ify.
1442 (sh_default_store_return_value): Ditto.
1443 (sh3e_sh4_store_return_value): Ditto.
1444 (sh_default_register_byte): Remove.
1445 (sh_sh4_register_byte): Remove.
1446 (sh_default_register_raw_size): Remove.
1447 (sh_sh4_register_raw_size): Remove.
1448 (sh_register_virtual_size): Remove.
1449 (sh_sh3e_register_virtual_type): Remove.
1450 (sh_sh3e_register_type): New function.
1451 (sh_sh4_register_virtual_type): Remove.
1452 (sh_sh4_register_type): New function.
1453 (sh_default_register_virtual_type): Remove.
1454 (sh_default_register_type): New function.
1455 (do_fv_register_info): Add parameters to accomodate call from
1456 sh_print_registers_info.
1457 (do_dr_register_info): Ditto.
1458 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1459 Add parameters to accomodate call from sh_print_registers_info.
1460 (sh_do_fp_register): Ditto.
1461 (sh64_do_pseudo_register): Call do_dr_register_info,
1462 do_fv_register_info and sh_do_fp_register with default parameters.
1463 (sh_do_register): Add parameters to accomodate call from
1464 sh_print_registers_info.
1465 (sh_print_register): Ditto.
1466 (sh_print_registers_info): Rename from sh_do_registers_info.
1467 Add parameters to be used as gdbarch_print_registers_info
1468 implementation. Accomodate removed do_pseudo_register function
1469 pointer.
1470 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1471 function pointer. Call sh_print_register with default parameters.
1472 (sh64_do_registers_info): Call sh_print_registers_info instead of
1473 sh_do_registers_info.
1474 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1475 detection of deprecated vs. non-deprecated functionality.
1476 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1477 function pointer assignments by direct function calls.
1478
e8a89fe2
AC
14792003-07-15 Andrew Cagney <cagney@redhat.com>
1480
1481 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1482 (frame_register_unwind, create_new_frame): Ditto.
1483 (legacy_get_prev_frame, get_frame_type): Ditto.
1484 (get_frame_base_address): Use frame_base_find_by_frame.
1485 (get_frame_locals_address): Use frame_base_find_by_frame.
1486 (get_frame_args_address): Use frame_base_find_by_frame.
1487 * frame-base.h (frame_base_sniffer_ftype): Declare.
1488 (frame_base_append_sniffer): Declare.
1489 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1490 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1491 (frame_base_append_sniffer): New function.
1492 (frame_base_append_predicate): Add a NULL sniffer.
1493 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1494 (struct frame_base_table): Add "sniffer".
1495 (frame_base_free): Free the "sniffer" table.
1496 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1497 (frame_unwind_append_sniffer): Declare.
1498 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1499 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1500 (struct frame_unwind_table): Add "sniffer", delete "middle".
1501 (append_predicate): Add "sniffer" parameter, append the sniffer.
1502 (frame_unwind_init): Update append_predicate call.
1503 (frame_unwind_append_sniffer): New function.
1504 (frame_unwind_append_predicate): Update append_predicate call.
1505 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1506
0714963c
AC
15072003-07-15 Andrew Cagney <cagney@redhat.com>
1508
1509 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1510 before code inhibiting repeated unwind attempts. Add to
1511 commentary on that test's problems.
1512 * blockframe.c (inside_main_func): Look for "main" in the minimal
1513 symbol table.
1514 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1515 identical.
1516
d9170e22
AC
15172003-07-15 Andrew Cagney <cagney@redhat.com>
1518
1519 * complaints.c (struct explanation): Define.
1520 (struct complaints): Change type of "explanation" to "struct
1521 explanation".
1522 (symfile_explanations): Convert to a "struct explanation" table.
1523 (vcomplaint): Update.
1524
eba29c8c
ML
15252003-07-15 Michal Ludvig <mludvig@suse.cz>
1526
1527 * x86-64-linux-nat.c (regmap): Removed.
1528 (supply_gregset, fill_gregset): Call
1529 x86_64_linux_(fill,supply)_gregset functions.
1530 * x86-64-linux-tdep.c (USER_*): New defines.
1531 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1532 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1533 New functions.
1534 (fetch_core_registers): Ditto.
1535 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1536 * x86-64-linux-tdep.h: New file.
1537 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1538 and core-regset.o.
1539 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1540
68cc0bfb
MK
15412003-07-13 Mark Kettenis <kettenis@gnu.org>
1542
88a115f7
MK
1543 * x86-64-tdep.c (x86_64_store_return_value): Use
1544 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 1545
68cc0bfb
MK
1546 * configure.host: Add x86_64-*-freebsd*.
1547 * configure.tgt: Add x86_64-*-freebsd*.
1548 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1549 * amd64fbsd-nat.c: New file.
1550 * amd64fbsd-tdep.c: New file.
1551 * config/i386/nm-fbsd64.h: New file.
1552 * config/i386/fbsd64.mh: New file.
1553 * config/i386/fbsd64.mt: New file.
1554
138e7be5
MK
15552003-07-11 Mark Kettenis <kettenis@gnu.org>
1556
1557 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1558 `sc_regs_offset' and `sc_fpregs_offset'.
1559 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1560 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1561 (alpha_sigtramp_register_address): Rewrite to use new members of
1562 `struct gdbarch_tdep'.
1563 (alpha_gdbarch_init): Initialize new members of struct
1564 gdbarch_tdep'.
1565 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1566 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1567 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1568 (alphafbsd_pc_in_sigtramp): Implement.
1569 (alphafbsd_sigtramp_offset): New function.
1570 (alphafbsd_sigcontext_addr): New function.
1571 (alphafbsd_init_abi): Initialize signal trampoline related members
1572 of `struct gdbarch_tdep'.
1573 (_initialize_alphafbsd_tdep): Add prototype.
1574
95303a68
TR
15752003-07-11 Theodore A. Roth <troth@openavr.org>
1576
ba292e4c
TR
1577 * Makefile.in (install-only): Quote sed expression when generating
1578 transformed_name.
95303a68 1579
6896c0c7
RH
15802003-07-11 Richard Henderson <rth@redhat.com>
1581
1582 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1583 * dwarf2-frame.c: Include complaints.h.
1584 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1585 variable initialization; return NULL on error.
1586 (decode_frame_entry): New.
1587
8edd5d01
AC
15882003-07-11 Andrew Cagney <cagney@redhat.com>
1589
c4a09524
AC
1590 * frame.h (frame_address_in_block): Delete declaration.
1591 * blockframe.c (frame_address_in_block): Delete function.
1592 (get_frame_block): Use get_frame_address_in_block.
1593 (block_innermost_frame): Ditto.
1594 * stack.c (print_frame, backtrace_command_1): Ditto.
1595
8edd5d01
AC
1596 * frame.h (get_frame_address_in_block): Declare.
1597 (frame_unwind_address_in_block): Declare.
1598 * frame.c (frame_unwind_address_in_block): New function.
1599 (get_frame_address_in_block): New function.
1600
f7968451
AC
16012003-07-10 Andrew Cagney <cagney@redhat.com>
1602
1603 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1604 pre-default. Note: re-generate has no effect.
1605
ae99b398
AC
16062003-07-10 Andrew Cagney <cagney@redhat.com>
1607
1608 * gdbarch.sh: When a variable, but not a function, compare against
1609 0. Fix problem in previous patch.
1610 * gdbarch.c: Re-generate.
1611
956ac328
AC
16122003-07-10 Andrew Cagney <cagney@redhat.com>
1613
1614 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1615 functions against NULL, not 0.
1616 * gdbarch.c: Re-generate.
1617
287c3240
FF
16182003-07-10 Fred Fish <fnf@ninemoons.com>
1619
1620 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1621 null string instead of a null pointer.
1622 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1623
32f63c4b
MS
16242003-07-09 Michael Snyder <msnyder@redhat.com>
1625
1626 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1627
402ecd56
MK
16282003-07-09 Mark Kettenis <kettenis@gnu.org>
1629
1630 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1631 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1632 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1633 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1634 * x86-64-tdep.c: ... from here.
1635
c481dac7
AS
16362003-07-09 Andreas Schwab <schwab@suse.de>
1637
1638 * m68k-tdep.h (enum struct_return): Define.
1639 (struct gdbarch_tdep): Add struct_return.
1640 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1641 bytes are padded to the right, not to the left. Pass struct value
1642 address in register %a1, not on stack.
1643 (m68k_use_struct_convention): New function.
1644 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1645 struct_return in tdep to pcc_struct_return.
1646 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1647 reg_struct_return.
1648
64176fa3
JB
16492003-07-09 Joel Brobecker <brobecker@gnat.com>
1650
1651 * somread.c (som_symfile_offsets): Fix compilation error.
1652
96a4ee76
AC
16532003-07-09 Andrew Cagney <cagney@redhat.com>
1654
1655 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1656 Add comments about the checks.
1657
1517c6d1
AC
16582003-07-08 Andrew Cagney <cagney@redhat.com>
1659
1660 * Makefile.in: Make dependency section headers consistent.
1661 (config_h): Move to $BUILD headers section.
1662 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1663 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1664 (ada-exp.tab.c): Move to YACC/LEX section.
1665 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1666 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1667
dc5dd1eb
KW
16682003-07-08 Kris Warkentin <kewarken@qnx.com>
1669
1670 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
1671 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1672 of strerror with safe_strerror, use ISO C function definitions,
1673 and replace instances of sprintf with snprintf.
dc5dd1eb 1674
612dde91
AC
16752003-07-07 Andrew Cagney <cagney@redhat.com>
1676
1677 * frame.c (get_prev_frame): Enable check for identical frames.
1678 Update comments. Update error messages.
1679
492c11d3
JB
16802003-07-07 Joel Brobecker <brobecker@gnat.com>
1681
1682 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1683
376a5a49
JB
16842003-07-07 Joel Brobecker <brobecker@gnat.com>
1685
1686 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1687 sort_symtab_syms, no longer necessary.
1688
22b4a9ad
JB
16892003-07-07 Joel Brobecker <brobecker@gnat.com>
1690
1691 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1692
5bbcb741
JB
16932003-07-07 Joel Brobecker <brobecker@gnat.com>
1694
1695 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1696 (mips_register_byte): Likewise.
1697
c139e7d9
DJ
16982003-07-07 Daniel Jacobowitz <drow@mvista.com>
1699
1700 * Makefile.in (sparc_tdep_h): New.
1701 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1702 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1703 * sparc-linux-nat.c: Include "sparc-tdep.h".
1704 * sparc-nat.c: Likewise.
1705 * sparc-tdep.c: Likewise.
1706 * sparc64nbsd-nat.c: Likewise.
1707 * sparcnbsd-nat.c: Likewise.
1708 * sparcnbsd-tdep.c: Likewise.
1709 * sparc-tdep.h: New file.
1710 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1711 and sparc_npc_regnum.
1712
fd8f87c5
DJ
17132003-07-07 Daniel Jacobowitz <drow@mvista.com>
1714
1715 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1716 (mips_linux_cannot_store_register): List supported instead of
1717 unsupported registers.
1718
13adf674
DJ
17192003-07-07 Daniel Jacobowitz <drow@mvista.com>
1720
1721 * disasm.c (dump_insns): Separate instructions from addresses.
1722
8de307e0
AS
17232003-07-07 Andreas Schwab <schwab@suse.de>
1724
1725 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1726 dependencies.
1727 * m68k-tdep.c (NUM_FREGS): Delete.
1728 (SIG_PC_FP_OFFSET): Delete.
1729 (TARGET_M68K): Delete.
1730 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1731 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1732 P_MOVEL_SP, P_MOVEML_SP): Define.
1733 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1734 P_TRAP): Delete.
1735 (m68k_register_raw_size): Delete.
1736 (m68k_register_virtual_size): Delete.
1737 (m68k_register_type): Renamed from m68k_register_virtual_type and
1738 add gdbarch argument.
1739 (m68k_store_struct_return): Delete.
1740 (m68k_deprecated_extract_return_value): Delete.
1741 (m68k_deprecated_extract_struct_value_address): Delete.
1742 (m68k_frame_chain): Delete.
1743 (m68k_frame_saved_pc): Delete.
1744 (m68k_fix_call_dummy): Delete.
1745 (m68k_push_dummy_frame): Delete.
1746 (m68k_pop_frame): Delete.
1747 (m68k_extract_return_value): New function.
1748 (m68k_store_return_value): Rewrite using regcache.
1749 (m68k_extract_struct_value_address): Rewrite using regcache.
1750 (m68k_push_dummy_call): New function.
1751 (struct m68k_frame_cache): Define.
1752 (m68k_alloc_frame_cache): New function.
1753 (m68k_analyze_frame_setup): New function.
1754 (m68k_analyze_register_saves): New function.
1755 (m68k_analyze_prologue): New function.
1756 (m68k_skip_prologue): Rewrite using above functions.
1757 (m68k_unwind_pc): New function.
1758 (m68k_frame_cache): New function.
1759 (m68k_frame_this_id): New function.
1760 (m68k_frame_prev_register): New function.
1761 (m68k_frame_unwind): New variable.
1762 (m68k_frame_p): New function.
1763 (m68k_sigtramp_frame_cache): New function.
1764 (m68k_sigtramp_frame_this_id): New function.
1765 (m68k_sigtramp_frame_prev_register): New function.
1766 (m68k_sigtramp_frame_unwind): New variable.
1767 (m68k_sigtramp_frame_p): New function.
1768 (m68k_frame_base_address): New function.
1769 (m68k_frame_base): New function.
1770 (m68k_unwind_dummy_id): New function.
1771 (fill_gregset): Use regcache_collect.
1772 (fill_fpregset): Likewise.
1773 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1774 defined.
1775 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1776 deprecated_init_frame_pc, deprecated_store_struct_return,
1777 deprecated_extract_return_value, deprecated_store_return_value,
1778 deprecated_frame_chain, deprecated_frame_saved_pc,
1779 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1780 deprecated_register_virtual_size,
1781 deprecated_max_register_raw_size,
1782 deprecated_max_register_virtual_size,
1783 deprecated_register_virtual_type, deprecated_register_size,
1784 deprecated_register_byte, deprecated_register_bytes,
1785 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1786 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1787 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1788 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1789 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1790 deprecated_push_dummy_frame, deprecated_pop_frame,
1791 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1792 only if SYSCALL_TRAP is defined. Set extract_return_value,
1793 store_return_value, extract_struct_value_address, register_type,
1794 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1795 predicates.
1796 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1797 M68K_MAX_REGISTER_SIZE): Define.
1798 (struct m68k_sigtramp_info): Define.
1799 (struct gdbarch_tdep): Add get_sigtramp_info.
1800 * m68klinux-nat.c (fetch_register): Use register_size instead of
1801 REGISTER_RAW_SIZE. Don't put assignment in if.
1802 (store_register): Likewise.
1803 (fetch_inferior_registers): Likewise.
1804 (store_inferior_registers): Likewise.
1805 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1806 (m68k_linux_frame_saved_pc): Delete.
1807 (m68k_linux_sigcontext_reg_offset,
1808 m68k_linux_ucontext_reg_offset): Define.
1809 (m68k_linux_get_sigtramp_info): New function.
1810 (m68k_linux_extract_return_value): Rewrite using regcache.
1811 (m68k_linux_store_return_value): Likewise.
1812 (m68k_linux_extract_struct_value_address): Likewise.
1813 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1814 Don't set deprecated_frame_saved_pc,
1815 deprecated_extract_return_value, deprecated_store_return_value,
1816 deprecated_extract_struct_value_address. Set
1817 extract_return_value, store_return_value,
1818 extract_struct_value_address.
1819
eb8bc282
AC
18202003-07-07 Andrew Cagney <cagney@redhat.com>
1821
1822 * expprint.c: Include "user-regs.h" instead of "frame.h".
1823 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1824 frame_map_regnum_to_name.
1825 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1826 (frame_map_name_to_regnum): Simplify, call
1827 user_reg_map_name_to_regnum.
1828 (frame_map_regnum_to_name): Simplify, call
1829 user_reg_map_regnum_to_name.
1830 (frame_register_unwind): Update.
1831 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1832 (_initialize_frame_reg): Call user_reg_add_builtin.
1833 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1834 (value_of_register): Use value_of_user_reg.
1835 * eval.c (evaluate_subexp_standard): Update.
1836 * parse.c (write_dollar_variable): Update.
1837 * d10v-tdep.c (d10v_print_registers_info): Update.
1838 * infcmd.c (registers_info): Update.
1839 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1840 (builtin_regs_h): Delete macro.
1841 (user_regs_h): Define.
1842 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1843 (builtin-regs.o): Delete target.
1844 (user-regs.o): Specify dependencies.
1845 (expprint.o): Update dependencies.
1846 (findvar.o): Update dependencies.
1847 (frame.o): Update dependencies.
1848 (std-regs.o): Update dependencies.
1849
9f476a01
CF
18502003-07-06 Christopher Faylor <cgf@redhat.com>
1851
1852 * win32-nat.c (solib_symbols_add): Use one variable for all section
1853 address stuff. Pass variable rather than address of variable to
1854 safe_symbol_file_add.
1855
a731b831
AS
18562003-07-06 Andreas Schwab <schwab@suse.de>
1857
1858 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1859
9f83329d
JB
18602003-07-04 Joel Brobecker <brobecker@gnat.com>
1861
1862 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1863
27e28cc5
KW
18642003-07-04 Kris Warkentin <kewarken@qnx.com>
1865
1866 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1867
18682003-07-04 Kris Warkentin <kewarken@qnx.com>
1869
1870 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1871 * config/i386/nto.mh: New file.
1872 * config/i386/nm-nto.h: New file.
1873 * configure.host: Add i[3456]86-*-nto*.
1874
100f2e98
JB
18752003-07-03 Joel Brobecker <brobecker@gnat.com>
1876
1877 * remote-vx.c (vx_add_symbols): Fix compilation error.
1878
e23457df
AC
18792003-07-03 Andrew Cagney <cagney@redhat.com>
1880
1881 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1882 * gdbarch.h, gdbarch.c: Re-generate.
1883 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1884 (legacy_register_name): Declare.
1885 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1886 (REGISTER_NAME): Define.
1887 * sparc-tdep.c (legacy_register_name): New function.
1888 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1889 (REGISTER_NAME): Define.
1890 (hppa64_register_name): Declare.
1891 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1892 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1893 (hppa64_register_name): New function.
1894 (hppa_register_name): New function.
1895 * arch-utils.c (legacy_register_name): Delete.
1896 * arch-utils.h (legacy_register_name): Delete.
1897
38caaeec
DJ
18982003-07-03 Daniel Jacobowitz <drow@mvista.com>
1899
1900 * cli/cli-interp.c (cli_interpreter_resume): Update the
1901 cli_uiout's stream to gdb_stdout.
1902
dadd712e
AC
19032003-07-03 Andrew Cagney <cagney@redhat.com>
1904
1905 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1906 predicate.
1907 * gdbarch.h, gdbarch.c: Re-generate.
1908 * regcache.c (init_regcache_descr): Use legacy code when either
1909 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1910
c7f1390e
DJ
19112003-07-02 Daniel Jacobowitz <drow@mvista.com>
1912
1913 * NEWS: Move "set logging" entry into GDB 6.0 section.
1914
4bc8c588
JB
19152003-07-02 Jim Blandy <jimb@redhat.com>
1916
a9dd42f1
JB
1917 * s390-tdep.c (struct frame_extra_info): new member:
1918 'stack_bought_valid'.
1919 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1920 initialize fextra_info->stack_bought.
1921 (s390_frameless_function_invocation): Don't trust the value of
1922 fextra_info_ptr->stack_bought unless
1923 fextra_info->stack_bought_valid is set.
1924
4bc8c588
JB
1925 New S390 prologue analyzer.
1926 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1927 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1928 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1929 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1930 compute_x_addr, s390_on_stack, s390_store,
1931 s390_get_signal_frame_info): New functions.
1932 (S390_NUM_SPILL_SLOTS): New macro.
1933 (s390_get_frame_info): Rewritten.
1934 (is_arg_reg): Deleted.
1935
1936 Break out the decoding of S/390 instructions into separate
1937 functions, to make it more legible, and easier to check
1938 against the spec.
1939 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1940 is_rx, is_rxe): New functions.
1941 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1942 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1943 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1944 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1945 enums for opcode values. (Is this an improvement?)
1946
fd13a04a
AC
19472003-07-02 Andrew Cagney <cagney@redhat.com>
1948
1949 * i386-tdep.c: Revert change committed as part of trad-frame code
1950 below.
1951
3f8091c1
DJ
19522003-07-02 Daniel Jacobowitz <drow@mvista.com>
1953
1954 * breakpoint.c (insert_catchpoint): Make static.
1955
8dd5115e
AS
19562003-07-02 Andreas Schwab <schwab@suse.de>
1957
1958 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1959 former ia64_push_arguments and ia64_push_return_address, and use
1960 regcache functions instead of read/write_register.
1961 (ia64_gdbarch_init): Set push_dummy_call instead of
1962 deprecated_push_arguments and deprecated_push_return_address.
1963
a2229c23
AJ
19642003-07-01 Andreas Jaeger <aj@suse.de>
1965
1966 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1967 before the call.
1968 Set %rax only to number of SSE registers used.
1969
3b3850e8
AC
19702003-07-01 Andrew Cagney <cagney@redhat.com>
1971
1972 * trad-frame.h: Update comments, a -1 .addr is reserved.
1973 (trad_frame_value_p, trad_frame_addr_p): Declare.
1974 (trad_frame_reg_p): Declare.
1975 (trad_frame_set_value): Rename trad_frame_register_value.
1976 (trad_frame_set_unknown): Declare.
1977 * trad-frame.c (trad_frame_realreg_p): New function.
1978 (trad_frame_addr_p, trad_frame_value_p): New function.
1979 (trad_frame_set_unknown): New function.
1980 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1981 (trad_frame_prev_register): Use trad_frame_realreg_p,
1982 trad_frame_addr_p and trad_frame_value_p.
1983 (trad_frame_set_value): Rename trad_frame_register_value.
1984 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1985 and trad_frame_set_value.
a2229c23 1986
4d819d0e
JB
19872003-06-30 Jim Blandy <jimb@redhat.com>
1988
1989 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1990 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1991 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1992 for 16 registers, and then 32 more bytes.
1993 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1994 New macros.
1995 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1996 Move up in the file, since it's now used by is_simple_arg.
1997 (is_simple_arg): Don't assume registers are four bytes long.
1998 Exclude all double arguments. Extended floats are not simple
1999 args.
2000 (is_power_of_two): New function.
2001 (pass_by_copy_ref): Call is_power_of_two, and check that the
2002 length fits in a register, rather than listing all the acceptable
2003 sizes. Extended floats are not passed by reference.
2004 (s390_push_arguments): Don't assume registers are four bytes long.
2005 Reserve an argument register to point to the buffer for structures
2006 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2007 S390_STACK_FRAME_OVERHEAD.
2008
1ad828f1
AS
20092003-06-30 Andreas Schwab <schwab@suse.de>
2010
2011 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2012 format error message.
2013
39b00981
JB
20142003-06-30 Joel Brobecker <brobecker@gnat.com>
2015
2016 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2017
b2a7f303
DC
20182003-06-30 David Carlton <carlton@kealia.com>
2019
2020 Band-aid for PR c++/1245.
2021 * Makefile.in (cp-support.o): Depend on complaints_h.
2022 * cp-support.c: Include complaints.h. Add declaration for
2023 find_last_component.
2024 (cp_find_first_component): Separate code into
2025 cp_find_first_component_aux.
2026 (cp_find_first_component_aux): Call demangled_name_complaint.
2027 (demangled_name_complaint): New.
2028
a257b5bb
AC
20292003-06-30 Andrew Cagney <cagney@redhat.com>
2030
2031 * remote.c (remote_write_bytes): Explicitly compute and then use
2032 the payload size. Update comments to reflect. Fixes problem of
2033 GDB not sending small packets as found by Fred Fish.
2034
0a2cfde4
AC
20352003-06-30 Andrew Cagney <cagney@redhat.com>
2036
2037 * remote.c (remote_async_wait): Fix -Wformat problem.
2038
3fcb8548
AC
20392003-06-29 Andrew Cagney <cagney@redhat.com>
2040
2041 * remote.c (remote_wait): Call error, and not warning, when the
2042 packet is corrupt.
2043 (remote_async_wait): Ditto.
2044
9f9970a3
DJ
20452003-06-29 Daniel Jacobowitz <drow@mvista.com>
2046
2047 * sparc-tdep.c (sparc_y_regnum): Make external again.
2048
83a8ccca
DJ
20492003-06-29 Daniel Jacobowitz <drow@mvista.com>
2050
2051 * cli/cli-logging.c (pop_output_files): Add void to function
2052 definition.
2053
d2cf594a
AC
20542003-06-29 Andrew Cagney <cagney@redhat.com>
2055
2056 * frame.c (frame_register_unwind): Use unsigned char when dumping
2057 the buffer contents.
2058
0fac0b41
DJ
20592003-06-28 Daniel Jacobowitz <drow@mvista.com>
2060
2061 * cli/cli-logging.c: New file.
2062 * cli-out.c (struct ui_out_data): Add original_stream.
2063 (cli_redirect): New function.
2064 (cli_ui_out_impl): Add cli_redirect.
2065 (cli_out_new): Initialize original_stream.
2066 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2067 (uo_redirect, ui_out_redirect): New.
2068 * ui-out.h (struct ui_out_impl): Add redirect member.
2069 (redirect_ftype): New.
2070 (ui_out_redirect): Add prototype.
2071 * Makefile.in: Add rules for cli-logging.c.
2072 * NEWS: Mention "set logging".
2073
88a07d7c
EZ
20742003-06-27 Elena Zannoni <ezannoni@redhat.com>
2075
2076 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2077
4eb58876
AC
20782003-06-27 Andrew Cagney <cagney@redhat.com>
2079
2080 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2081 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2082 * avr-tdep.c (avr_call_dummy_address): Delete function.
2083 (avr_gdbarch_init): Do not set call_dummy_address.
2084
1549f619
EZ
20852003-06-27 Elena Zannoni <ezannoni@redhat.com>
2086
2087 * symfile.c (syms_from_objfile): Move variables to inner block.
2088 Move the checks for the non-mainline case a bit earlier to avoid
2089 doing some useless computations.
2090
3cb3398d
EZ
20912003-06-27 Elena Zannoni <ezannoni@redhat.com>
2092
2093 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2094
3799ccc6
EZ
20952003-06-26 Elena Zannoni <ezannoni@redhat.com>
2096
2097 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2098 sections.
2099
ce1f6491
MC
21002003-06-26 Michael Chastain <mec@shout.net>
2101
2102 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2103 gdb/testsuite/gdb.c++/pr-1210.exp.
2104
d958dfd0
AC
21052003-06-26 Andrew Cagney <cagney@redhat.com>
2106
2107 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2108 altivec_expression.h and altivec_registers.h.
2109
d31431ed
AC
21102003-06-26 Andrew Cagney <cagney@redhat.com>
2111
2112 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2113 info->mach when MIPS16. Patch suggested by Fred Fish.
2114
714b1282
AC
21152003-06-26 Andrew Cagney <cagney@redhat.com>
2116
2117 * utils.c (internal_vproblem): Print the problem to a reason
2118 buffer and then pass to query. Make the msg variable more local.
2119
42efa47a
AC
21202003-06-26 Andrew Cagney <cagney@redhat.com>
2121
2122 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2123 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2124 * gdbarch.h, gdbarch.c: Re-generate.
2125 * frame-base.c (default_frame_args_address): Update. Use
2126 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2127 not available.
2128 (default_frame_locals_address): Ditto for
2129 DEPRECATED_FRAME_LOCALS_ADDRESS.
2130 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2131 (vax_frame_num_args): Update.
2132 (vax_gdbarch_init): Update.
2133 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2134 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2135 * mcore-tdep.c (mcore_gdbarch_init): Update.
2136 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2137 * ia64-tdep.c (ia64_gdbarch_init): Update.
2138 * symtab.h (address_class): Update comments.
2139 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2140 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2141 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2142 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2143 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2144 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2145 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2146 * alpha-mdebug-tdep.c: Update.
2147 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2148
8ffd9b1b
AJ
21492003-06-26 Andreas Jaeger <aj@suse.de>
2150
2151 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2152 of SSE registers so that varargs functions work. Rework handling
2153 of passing arguments on the stack.
2154 (x86_64_store_return_value): Return double and float values in SSE
2155 register.
2156
e8ac10a6
MC
21572003-06-24 Michael Chastain <mec@shout.net>
2158
2159 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2160 the "constructor breakpoints ignored" bug.
2161
986af8e6
DC
21622003-06-25 David Carlton <carlton@kealia.com>
2163
2164 * MAINTAINERS: Update e-mail address.
2165
d64558a5
JB
21662003-06-24 Jim Blandy <jimb@redhat.com>
2167
e538d2d7
JB
2168 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2169
02631ec0
JB
2170 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2171 function.
2172 (ppc_linux_init_abi): Register it as the
2173 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2174
e716d87a
JB
2175 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2176 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2177 method.
2178
d64558a5
JB
2179 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2180 (ppc64_standard_linkage_target): Use it.
2181
449a5da4
AC
21822003-06-23 Andrew Cagney <cagney@redhat.com>
2183
2184 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2185 for 0 "int0" and 4 "int32" sized registers.
2186 * gdbtypes.c (builtin_type_int0): Define.
2187 (build_gdbtypes): Initialize builtin_type_int0.
2188 * gdbtypes.h (builtin_type_int0): Declare.
2189
b2a02dda
SC
21902003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2191
2192 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2193 as characters are unsigned.
2194
fba3138e
DJ
21952003-06-22 Daniel Jacobowitz <drow@mvista.com>
2196
2197 PR gdb/1179
2198 * dwarfread.c (struct_type): Skip static fields without crashing.
2199
f6c8180b
AC
22002003-06-22 Andrew Cagney <cagney@redhat.com>
2201
2202 GDB 6.0 branch created.
f2c06f52
AC
2203 * README: Update.
2204 * PROBLEMS: Update. Empty.
2205 * NEWS: Update.
f6c8180b 2206
ae822768
DJ
22072003-06-22 Daniel Jacobowitz <drow@mvista.com>
2208
2209 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2210 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2211
261de166
AC
22122003-06-22 Andrew Cagney <cagney@redhat.com>
2213
2214 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2215 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2216 Velikov.
2217
30e94205
DJ
22182003-06-22 Daniel Jacobowitz <drow@mvista.com>
2219
2220 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2221 compilers.
2222
9e14d721
DJ
22232003-06-21 Daniel Jacobowitz <drow@mvista.com>
2224
2225 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2226 argument of val_print.
2227 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2228 to the address argument of baseclass_offset or target_read_memory.
2229 Do add it to the argument of cp_print_value_fields.
2230
a4b8ebc8
AC
22312003-06-21 Andrew Cagney <cagney@redhat.com>
2232
2233 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2234 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2235 instead of 0..NUM_REGS.
2236 (mips_register_reggroup_p): New function.
2237 (mips_pseudo_register_write): New function.
2238 (mips_pseudo_register_read): New function.
2239 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2240 based on the register's type.
2241 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2242 cooked.
2243 (mips_get_saved_register): Simplify. Assert that REGNO is a
2244 pseudo / cooked.
2245 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2246 (mips_register_type): Replace mips_register_virtual_type. Map
2247 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2248 when available.
2249 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2250 that the register is cooked / virtual.
2251 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2252 Only get the extra info when needed.
2253 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2254 (mips32_heuristic_proc_desc): Fetch the cooked register.
2255 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2256 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2257 (mips_print_register): Use gdbarch_register_type, instead of
2258 REGISTER_VIRTUAL_TYPE.
2259 (print_gp_register_row): Use gdbarch_register_type, instead of
2260 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2261 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2262 Print the pseudo / cooked registers.
2263 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2264 Print the pseudo / cooked registers.
2265 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2266 REG_NUM is pseudo / cooked.
2267 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2268 (mips_n32n64_xfer_return_value): Ditto.
2269 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2270 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2271 (mips_register_sim_regno): New function.
2272 (mips_gdbarch_init): Set deprecated_register_byte,
2273 register_group_p, pseudo_register_write, pseudo_register_read,
2274 register_sim_regno, and num_pseudo_regs. Set register_type,
2275 instead of register_virtual_type.
2276 * Makefile.in (mips-tdep.o): Update dependencies.
2277 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2278 REGISTER_VIRTUAL_TYPE.
2279 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2280 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2281 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2282 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2283 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2284
325ed089
DJ
22852003-06-21 Daniel Jacobowitz <drow@mvista.com>
2286
2287 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2288 * cli/cli-cmds.c: Include "gdb_vfork.h".
2289 (shell_escape): Use vfork.
2290
f0e7d0e8
AC
22912003-06-21 Andrew Cagney <cagney@redhat.com>
2292
c57bb9fa
AC
2293 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2294 32 bit floating-point register saves.
2295
6e51443a
AC
2296 * frame.h (deprecated_unwind_get_saved_register): Delete.
2297 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2298 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2299 and deprecated_get_next_frame_hack instead of
2300 deprecated_unwind_get_saved_register.
2301
ed183c7c
AC
2302 * mips-tdep.c (mips_dump_tdep): Do not print
2303 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2304
f0e7d0e8
AC
2305 * frame.c (get_frame_register): New function.
2306 (frame_unwind_register_signed): New function.
2307 (get_frame_register_signed): New function.
2308 (frame_unwind_register_unsigned): New function.
2309 (get_frame_register_unsigned): New function.
2310 * frame.h: Add comments on naming schema.
2311 (get_frame_register, frame_unwind_register_signed): Declare.
2312 (get_frame_register_signed, get_frame_register_signed): Declare.
2313 (frame_unwind_register_unsigned): Declare.
2314 (get_frame_register_unsigned): Declare.
2315
2224d941
TR
23162003-06-20 Theodore A. Roth <troth@openavr.org>
2317
2318 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2319
8619218d
TR
23202003-06-20 Theodore A. Roth <troth@openavr.org>
2321
2322 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2323 (avr_read_sp): Ditto.
2324
0b1b50c0
DJ
23252003-06-20 Daniel Jacobowitz <drow@mvista.com>
2326
2327 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2328 * config/arm/nm-linux.h: Likewise.
2329 * config/arm/tm-linux.h: Likewise.
2330 * config/ia64/nm-linux.h: Likewise.
2331 * config/ia64/tm-ia64.h: Likewise.
2332 * config/s390/tm-linux.h: Likewise.
2333 * config/s390/tm-s390.h: Likewise.
2334 * s390-nat.c: Likewise.
2335 * s390-tdep.c: Likewise.
2336
2337 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2338 * config/ia64/linux.mt: Likewise.
2339 * config/m68k/linux.mh: Likewise.
2340 * config/mips/linux.mt: Likewise.
2341 * config/powerpc/linux.mh: Likewise.
2342 * config/sh/linux.mt: Likewise.
2343
c8c18e65
KW
23442003-06-19 Kris Warkentin <kewarken@qnx.com>
2345
2346 * solib.c (solib_open): Change tests for whether to search
2347 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2348 comments.
2349
dcccef2e
TR
23502003-06-19 Theodore A. Roth <troth@openavr.org>
2351
2352 * avr-tdep.c (avr_frame_address): Delete function.
2353 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2354 set_gdbarch_frame_args_address.
2355
5861a190
AC
23562003-06-19 Andrew Cagney <cagney@redhat.com>
2357
2358 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2359 (REGISTER_CONVERT_FROM_TYPE): Delete.
2360 (mips_register_convert_to_type): Delete declaration.
2361 (mips_register_convert_from_type): Delete declaration.
2362 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2363 kernel/.
2364
0274a8ce
MS
23652003-06-19 Michael Snyder <msnyder@redhat.com>
2366
2367 * linux-nat.h: New file.
2368 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2369 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2370 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2371 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2372 (linux_make_note_section): Iterate over lwps instead of threads.
2373 (linux_do_thread_registers): Use lwp instead of merged pid.
2374 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2375 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2376 Add dependency on linux_nat_h.
2377
adf5f719
TR
23782003-06-19 Theodore A. Roth <troth@openavr.org>
2379
2380 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2381
6766a268
DJ
23822003-06-19 Daniel Jacobowitz <drow@mvista.com>
2383
2384 * varobj.c (get_type, get_target_type): Use check_typedef.
2385
1171114a
DJ
23862003-06-19 Daniel Jacobowitz <drow@mvista.com>
2387
2388 * breakpoint.c (insert_catchpoint): Call internal_error.
2389
adcf68a2
TR
23902003-06-19 Theodore A. Roth <troth@openavr.org>
2391
2392 * avr-tdep.c (avr_push_dummy_code): Delete function.
2393 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2394
ea67f13b
DJ
23952003-06-19 Daniel Jacobowitz <drow@mvista.com>
2396
2397 * arch-utils.c (default_prepare_to_proceed): Remove.
2398 (generic_prepare_to_proceed): Remove.
2399 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2400 (generic_prepare_to_proceed): Remove prototype.
2401 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2402 * gdbarch.c: Regenerate.
2403 * gdbarch.h: Regenerate.
2404 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2405 * hppah-nat.c (hppa_switched_threads): Remove.
2406 * infrun.c (prepare_to_proceed): New static function, copied from
2407 generic_prepare_to_proceed. Remove select_it argument.
2408 (proceed): Call prepare_to_proceed.
2409 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2410 variables.
2411 (ptrace_wait): Don't set the removed variables.
2412 (hppa_switched_threads): Remove.
2413 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2414 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2415 (lin_lwp_prepare_to_proceed): Remove prototype.
2416 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2417 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2418
4add8633
TR
24192003-06-18 Theodore A. Roth <troth@openavr.org>
2420
2421 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2422 trad-frame.h.
2423 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2424 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2425 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2426 (AVR_PROLOGUE_*): Enumerate prologue types.
2427 (struct frame_extra_info): Remove.
2428 (struct avr_unwind_cache): Define.
2429 (avr_write_sp): Delete function.
2430 (avr_read_fp): Ditto.
2431 (avr_init_extra_frame_info): Ditto.
2432 (avr_pop_frame): Ditto.
2433 (avr_frame_saved_pc): Ditto.
2434 (avr_saved_pc_after_call): Ditto.
2435 (avr_push_return_address): Ditto.
2436 (avr_frame_chain): Ditto.
2437 (avr_store_struct_return): Ditto.
2438 (avr_push_arguments): Ditto.
2439 (avr_scan_prologue): Update comments. Changed to set up the info for
2440 cache unwinding. Now returns end of prologue PC.
2441 (avr_skip_prologue): Better handling of functions lacking a prologue
2442 by using avr_scan_prologue.
2443 (avr_scan_arg_moves): New function.
2444 (avr_saved_regs_unwinder): Ditto.
2445 (avr_frame_unwind_cache): Ditto.
2446 (avr_unwind_pc): Ditto.
2447 (avr_frame_this_id): Ditto.
2448 (avr_frame_prev_register): Ditto.
2449 (avr_frame_p): Ditto.
2450 (avr_frame_base_address ): Ditto.
2451 (avr_unwind_dummy_id): Ditto.
2452 (avr_push_dummy_code): Ditto.
2453 (push_stack_item): Ditto.
2454 (pop_stack_item): Ditto.
2455 (avr_push_dummy_call): Ditto.
2456 (struct stack_item): Define.
2457 (avr_frame_unwind): Declare structure.
2458 (avr_frame_base): Ditto.
2459 (avr_gdbarch_init): Remove calls to
2460 set_gdbarch_deprecated_init_frame_pc,
2461 set_gdbarch_deprecated_target_read_fp,
2462 set_gdbarch_deprecated_dummy_write_sp,
2463 set_gdbarch_deprecated_fp_regnum,
2464 set_gdbarch_deprecated_push_arguments,
2465 set_gdbarch_deprecated_push_return_address,
2466 set_gdbarch_deprecated_pop_frame,
2467 set_gdbarch_deprecated_store_struct_return,
2468 set_gdbarch_deprecated_frame_init_saved_regs,
2469 set_gdbarch_deprecated_init_extra_frame_info,
2470 set_gdbarch_deprecated_frame_chain,
2471 set_gdbarch_deprecated_frame_saved_pc,
2472 set_gdbarch_deprecated_saved_pc_after_call.
2473 Add calls to set_gdbarch_push_dummy_call,
2474 set_gdbarch_push_dummy_code,
2475 frame_unwind_append_predicate,
2476 frame_base_set_default,
2477 set_gdbarch_unwind_dummy_id,
2478 set_gdbarch_unwind_pc.
2479 Wrap a long line.
2480
7be04a68
MS
24812003-06-18 Corinna Vinschen <vinschen@redhat.com>
2482
2483 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2484 registers for H8/300S.
2485 (h8300_print_registers_info): Ditto.
8ffd9b1b 2486 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 2487
ae087d01
DJ
24882003-06-18 Daniel Jacobowitz <drow@mvista.com>
2489
2490 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2491 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2492 (lin_lwp_wait): Likewise. Update comments.
2493 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2494 (pull_pid_from_list, linux_record_stopped_pid): New.
2495
07d8f827
SC
24962003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2497
2498 * ada-lang.c (scan_discrim_bound): Name first argument.
2499 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2500 declared by ALL_BLOCK_SYMBOLS.
2501
7cb47b14
SC
25022003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2503
2504 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2505 ("regcache.h"): Include it.
2506 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2507
6ad8ae5c
DJ
25082003-06-17 Daniel Jacobowitz <drow@mvista.com>
2509
2510 * NEWS: Mention gdbserver detach change and "disconnect" command.
2511 * infcmd.c (disconnect_command): New function.
2512 (_initialize_infcmd): Add ``disconnect'' command.
2513 * remote.c (remote_async_detach): Delete.
2514 (remote_detach): Merge remote_async_detach.
2515 (remote_disconnect): New.
2516 (init_remote_ops): Set to_disconnect.
2517 (init_remote_cisco_ops): Likewise.
2518 (init_remote_async_ops): Likewise. Use remote_detach.
2519 * target.c (cleanup_target): Default to_disconnect.
2520 (update_current_target): Inherit to_disconnect.
2521 (target_disconnect, debug_to_disconnect): New functions.
2522 (setup_target_debug): Set to_disconnect.
2523 * target.h (struct target_ops): Add to_disconnect.
2524 (target_disconnect): Add prototype.
2525
687595f9
DJ
25262003-06-17 Daniel Jacobowitz <drow@mvista.com>
2527
2528 * breakpoint.c (insert_catchpoint): New function.
2529 (insert_breakpoints): Use catch_exceptions to call
2530 insert_catchpoint. Disable catchpoints if they fail to insert.
2531
29239a8f
DJ
25322003-06-17 Daniel Jacobowitz <drow@mvista.com>
2533
2534 * symfile.c (reread_symbols): Clear sym_private.
2535
2cdf3c63
AC
25362003-06-17 Andrew Cagney <cagney@redhat.com>
2537
2538 * trad-frame.h (struct frame_info): Add opaque declaration.
2539 * remote-fileio.h (struct cmd_list_element): Add opaque
2540 declaration.
2541 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2542 comments.
2543
cf0e1e0d
DJ
25442003-06-17 Daniel Jacobowitz <drow@mvista.com>
2545
2546 * remote.c (remote_prepare_to_store): Replace call to
2547 deprecated_read_register_bytes with multiple regcache_raw_read
2548 calls.
2549
192cdb19
KW
25502003-06-17 Kris Warkentin <kewarken@qnx.com>
2551
2552 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2553 (nto_find_and_open_solib): Likewise.
2554 (nto_init_solib_absolute_prefix): Likewise.
2555 (_initialize_nto_tdep): Fix indentation.
2556
89929b45
KW
25572003-06-17 Kris Warkentin <kewarken@qnx.com>
2558
2559 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2560
46019f27
KW
25612003-06-17 Kris Warkentin <kewarken@qnx.com>
2562
2563 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2564
1a38736e
JB
25652003-06-17 Jim Blandy <jimb@redhat.com>
2566
2567 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2568
3605c34a
TR
25692003-06-16 Theodore A. Roth <troth@openavr.org>
2570
2571 * avr-tdep.c (avr_extract_return_value): New function.
2572 (avr_gdbarch_init): Set extract_return_value method.
2573
870b3035
AC
25742003-06-16 Andrew Cagney <cagney@redhat.com>
2575
2576 * frame.h (deprecated_get_next_frame_hack): Declare.
2577 * frame.c (legacy_saved_regs_prev_register): Only require
2578 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2579 there are always saved regs.
2580 (deprecated_generic_get_saved_register): Do not require
2581 DEPRECATED_FRAME_INIT_SAVED_REGS.
2582 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2583 use frame ID unwind instead.
2584 (deprecated_get_next_frame_hack): New function.
2585
63d47a7d
CV
25862003-06-16 Corinna Vinschen <vinschen@redhat.com>
2587
2588 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2589 (h8300_push_dummy_call): ...this function. Some minor optimization.
2590 (h8300_push_return_address): Remove.
2591 (h8300_gdbarch_init): Remove calls to
2592 set_gdbarch_deprecated_dummy_write_sp,
2593 set_gdbarch_deprecated_push_arguments and
2594 set_gdbarch_deprecated_push_return_address.
2595 Add call to set_gdbarch_push_dummy_call.
2596
4bb1dc5e
CV
25972003-06-16 Corinna Vinschen <vinschen@redhat.com>
2598
2599 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2600 (E_PSEUDO_EXR_REGNUM): Ditto.
2601 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 2602 registers into safe registers.
4bb1dc5e
CV
2603 (h8300_skip_prologue): Check for stm instruction to push registers
2604 used for register variables onto stack.
2605 (gdb_print_insn_h8300): Remove.
2606 (h8300_examine_prologue): Add a comment.
2607 (h8300_register_name): Take pseudo registers into account.
2608 (h8300s_register_name): Ditto.
2609 (h8300sx_register_name): Ditto.
2610 (h8300_print_register): Ditto.
2611 (h8300_print_registers_info): Define "nice" printing order.
2612 (h8300_saved_pc_after_call): Take pseudo registers into account.
2613 (h8300_register_type): Ditto. Return type used for remote connection
2614 when requesting real CCR or EXR register, return actual type when
2615 requesting pseudo CCR or EXR.
2616 (h8300_pseudo_register_read): New function.
2617 (h8300_pseudo_register_write): Ditto.
2618 (h8300_dbg_reg_to_regnum): Ditto.
2619 (h8300s_dbg_reg_to_regnum): Ditto.
2620 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2621 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2622 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2623 set_gdbarch_print_insn architecture dependent.
2624 Call set_gdbarch_pseudo_register_read and
2625 set_gdbarch_pseudo_register_write.
2626 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2627
a59fe496
AC
26282003-06-16 Andrew Cagney <cagney@redhat.com>
2629
2630 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2631 * gdbarch.h, gdbarch.c: Re-generate.
2632 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2633 * s390-tdep.c (s390_gdbarch_init): Update.
2634 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2635 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2636 * mips-tdep.c (mips_gdbarch_init): Update.
2637 * mcore-tdep.c (mcore_gdbarch_init): Update.
2638 * cris-tdep.c (cris_gdbarch_init): Update.
2639 * infcall.c (call_function_by_hand): Update.
2640 * ia64-tdep.c (ia64_push_arguments): Update comment.
2641 * frame.c (legacy_get_prev_frame): Do not assume
2642 SAVE_DUMMY_FRAME_TOS_P.
2643 * dummy-frame.c (find_dummy_frame): Update comment.
2644
6f4e5a41
AC
26452003-06-16 Andrew Cagney <cagney@redhat.com>
2646
2647 * regcache.c (do_cooked_read): Do not use register_valid_p.
2648
72fab697
TR
26492003-06-15 Theodore A. Roth <troth@openavr.org>
2650
2651 * avr-tdep.c (avr_register_type): Remove a blank line.
2652 (avr_scan_prologue): Correct some comments.
2653
e3d8b004
TR
26542003-06-15 Theodore A. Roth <troth@openavr.org>
2655
2656 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2657 prologue types.
8ffd9b1b 2658 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
2659 option.
2660 Add code to scan -mcall-prologues for mega devices.
2661
866b76ea
TR
26622003-06-15 Theodore A. Roth <troth@openavr.org>
2663
2664 * avr-tdep.c (avr_register_byte): Delete function.
2665 (avr_register_raw_size): Delete function.
2666 (avr_register_virtual_size): Delete function.
2667 (avr_register_virtual_type): Delete function.
2668 (avr_register_type): New function.
2669 (avr_address_to_pointer): Remove unused code.
2670 (avr_read_fp): Need to read FP as two separate bytes due to change to
2671 avr_register_type() usage.
2672 (avr_gdbarch_init): Don't set deprecated_register_size.
2673 Don't set deprecated_register_bytes.
2674 Don't set deprecated_register_byte.
2675 Don't set deprecated_register_raw_size.
2676 Don't set deprecated_max_register_raw_size.
2677 Don't set deprecated_register_virtual_size.
2678 Don't set deprecated_max_register_virtual_size.
2679 Don't set deprecated_register_virtual_type.
2680 Set register_type method.
2681
3993f6b1
DJ
26822003-06-15 Daniel Jacobowitz <drow@mvista.com>
2683
2684 * Makefile.in (linux-nat.o): Add rule.
2685 * linux-nat.c: New file.
2686 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2687 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2688 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2689 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2690 * config/arm/linux.mh (NATDEPFILES): Likewise.
2691 * config/i386/linux.mh (NATDEPFILES): Likewise.
2692 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2693 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2694 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2695 * config/mips/linux.mh (NATDEPFILES): Likewise.
2696 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2697 * config/s390/s390.mh (NATDEPFILES): Likewise.
2698 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2699
786a90bb
MK
27002003-06-15 Mark Kettenis <kettenis@gnu.org>
2701
2702 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2703 replace out-of-date comment.
2704
3bd3f01e
AC
27052003-06-15 Andrew Cagney <cagney@redhat.com>
2706
2707 * rdi-share/host.h (Fail): Change to a varargs function.
2708 * remote-rdi.c (Fail): Update.
8ffd9b1b 2709
de5b9bb9
MK
27102003-06-15 Mark Kettenis <kettenis@gnu.org>
2711
2712 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2713 (i386_convert_register_p, i386_register_to_value,
2714 i386_register_from_value): Handle types longer than 8 bytes.
2715
d532c08f
MK
27162003-06-15 Mark Kettenis <kettenis@gnu.org>
2717
2718 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2719 Move floating-point code to new function in i387-tdep.c.
2720 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2721 New functions containing code moved here from i386-tdep.c.
2722 * i387-tdep.h: Add opaque declaration for `struct type'.
2723 (i387_register_to_value, i387_value_to_register): New prototypes.
2724 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2725 (x86_64_init_abi): Set convert_register_p, register_to_value and
2726 value_to_register here.
8ffd9b1b 2727
42c466d7
AC
27282003-06-14 Andrew Cagney <cagney@redhat.com>
2729
2730 * mips-tdep.c (mips_register_to_value): Make static.
2731 (mips_value_to_register): Make static.
2732 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2733 * ia64-tdep.c (ia64_register_raw_size): Make static.
2734 (ia64_register_virtual_size): Make static.
2735 (ia64_register_byte): Make static.
2736 * i387-tdep.c: Include "i387-tdep.h".
2737 (print_387_control_word): Delete function.
2738 (print_387_status_word): Delete function.
2739 (print_387_status_bits): Delete function.
2740 (print_387_control_bits): Delete function.
2741 * Makefile.in (i387-tdep.o): Update dependencies.
2742 * rdi-share/host.h (Fail): Declare.
2743 * remote-rdi.c (Fail): Update to match declaration.
2744
2a9cda49
AC
27452003-06-14 Andrew Cagney <cagney@redhat.com>
2746
2747 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2748 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2749 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2750 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2751 * README: Delete reference to remote-array.
2752 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2753 (remote-array.o): Delete target.
2754 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2755 * remote-array.c: Delete file.
2756
ff2e87ac
AC
27572003-06-14 Andrew Cagney <cagney@redhat.com>
2758 Mark Kettenis <kettenis@gnu.org>
2759
2760 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2761 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2762 parameter with "frame".
2763 * gdbarch.h, gdbarch.c: Re-generate.
2764 * frame.h (put_frame_register): Declare.
2765 * frame.c (put_frame_register): New function.
2766 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2767 (legacy_register_to_value): Rewrite, use "frame" to get the
2768 register value.
2769 (legacy_value_to_register): Rewrite, use "frame" to find the
2770 register's location before storing.
2771 * arch-utils.h (legacy_convert_register_p): Update.
2772 (legacy_register_to_value, legacy_value_to_register): Update.
2773 * findvar.c (value_from_register): Rewrite, eliminate use of
2774 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2775 "frame" to REGISTER_TO_VALUE.
2776 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2777 lval_reg_frame_relative + lval_register branch of the switch. Do
2778 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2779 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2780 I386_EDI_REGNUM): New defines.
2781 (i386_next_regnum, i386_convert_register_p,
2782 i386_register_to_value, i386_value_to_register): New functions.
2783 (i386_register_convertible, i386_register_convert_to_virtual,
2784 i386_convert_to_raw): Remove functions.
2785 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2786 value_to_register instead of register_convertible,
2787 register_convert_to_virtual and register_convert_to_raw.
2788 * mips-tdep.c (mips_convert_register_p): New function.
2789 (mips_value_to_register): Replace mips_register_convert_from_type.
2790 (mips_register_to_value): Replace mips_register_convert_to_type.
2791 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2792 register_to_value.
2793 * alpha-tdep.c (alpha_convert_register_p): Update.
2794 (alpha_value_to_register): Update, store the register.
2795 (alpha_register_to_value): Update, fetch the register.
2796
98be1e77
TR
27972003-06-14 Theodore A. Roth <troth@openavr.org>
2798
2799 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2800 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2801 Don't set deprecated_call_dummy_words.
2802 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2803 Don't set remote_translate_xfer_address.
2804 (avr_io_reg_read_command): Remove commented out debug printf.
2805 Wrap a long line.
2806
57bc6122
TR
28072003-06-14 Theodore A. Roth <troth@openavr.org>
2808
2809 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2810 causes gdb to seg fault.
2811
eb01fc62
DJ
28122003-06-14 Daniel Jacobowitz <drow@mvista.com>
2813
2814 * sparc-nat.c (fetch_inferior_registers): Correct
2815 a reference to "registers".
2816
3b3e6bee
DJ
28172003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2818
2819 * Makefile.in (exc_request_U_h): Define
2820 (exc_request_S_h): Likewise.
2821 (msg_reply_S_h): Likewise.
2822 (msg_U_h): Likewise.
2823 (notify_S_h): Likewise.
2824 (process_reply_S_h): Likewise.
2825 (gnu-nat.o): Depend on gdb_obstack_h
2826 * gnu-nat.c: Include "gdb_obstack.h".
2827
b8de8283
AC
28282003-06-13 Andrew Cagney <cagney@redhat.com>
2829
2830 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2831 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 2832
f3be58bc
AC
28332003-06-13 Andrew Cagney <cagney@redhat.com>
2834
2835 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2836 when deprecated REGISTER macros can be deleted.
2837 * gdbarch.h, gdbarch.c: Re-generate.
2838
4c0122c8
JB
28392003-06-13 Jim Blandy <jimb@redhat.com>
2840
2841 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2842 Linux entry point symbols for _dl_debug_state, too.
2843
3e210248
AC
28442003-06-13 Andrew Cagney <cagney@redhat.com>
2845
2846 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2847 available, do not use the FP register, and always save the TOS.
2848 * dummy-frame.c (dummy_frame_this_id): Do not assert
2849 SAVE_DUMMY_FRAME_TOS.
2850 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2851 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2852 (i386_push_dummy_call): Add 8 to the returned SP.
2853 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2854 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2855 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2856 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2857 (x86_64_push_dummy_call): Return "sp + 16".
2858 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2859 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2860 save_dummy_frame_tos.
2861
0b65af49
JB
28622003-06-13 Jim Blandy <jimb@redhat.com>
2863
2864 * frv-tdep.c (frv_use_struct_convention): Delete static
2865 declaration for function deleted in my change of 2003-06-12.
2866
4ea2465e
TR
28672003-06-13 Theodore A. Roth <troth@openavr.org>
2868
2869 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2870 (avr_pointer_to_address): Shift code addrs left 1 bit.
2871 (avr_convert_from_func_ptr_addr): Delete function since operation is
2872 better handled by avr_address_to_pointer and avr_pointer_to_address.
2873 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2874
1581182a
MK
28752003-06-13 Mark Kettenis <kettenis@gnu.org>
2876
2877 From Kelley Cook <kelleycook@wideopenwest.com>:
2878 * configure.host: Accept i[34567]86 variants.
2879 * configure.tgt: Likewise.
2880 * nlm/configure.in: Likewise.
2881 * nlm/configure: Regenerated.
2882
7aa1783e
RE
28832003-06-13 Richard Earnshaw <rearnsha@arm.com>
2884
2885 * arm-tdep.c (solib-svr4.h): Dont' include it.
2886 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2887 * arm-linux-tdep.c: ... here. Make static.
2888 (arm_linux_init_abi): Register it.
2889 (solib-svr4.h): Include it.
2890 * Makefile.in: Update dependencies.
2891 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2892 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2893
0261a0d0
CV
28942003-06-13 Corinna Vinschen <vinschen@redhat.com>
2895
2896 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2897 indicate registers used for return values.
2898 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2899 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2900 members.
2901 (h8300_init_extra_frame_info): Ditto.
2902 (h8300_frame_locals_address): Removed.
2903 (h8300_frame_args_address): Removed.
2904 (h8300_extract_return_value): Use new regcache structure. Only care
2905 for 16 bit CPUs.
2906 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2907 (h8300_store_return_value): Use new regcache structure. Only care
2908 for 16 bit CPUs.
2909 (h8300h_store_return_value): Same function for 32 bit CPUs.
2910 (h8300_store_struct_return): Removed.
2911 (h8300_extract_struct_value_address): Use new regcache structure.
2912 (h8300h_extract_struct_value_address): Removed.
2913 (h8300_push_dummy_code): New function.
2914 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2915 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2916 set_gdbarch_store_return_value architecture dependent.
2917 Call set_gdbarch_push_dummy_code and
2918 set_gdbarch_extract_struct_value_address.
2919 Remove calls to set_gdbarch_frame_args_address,
2920 set_gdbarch_frame_locals_address,
2921 set_gdbarch_deprecated_store_struct_return,
2922 set_gdbarch_deprecated_extract_return_value,
2923 set_gdbarch_deprecated_extract_struct_value_address,
2924 set_gdbarch_deprecated_call_dummy_words and
2925 set_gdbarch_deprecated_sizeof_call_dummy_words.
2926
055c394a
CV
29272003-06-13 Corinna Vinschen <vinschen@redhat.com>
2928
2929 * h8300-tdep.c (h8300_register_byte): Remove.
2930 (h8300h_register_byte): Remove.
2931 (h8300_register_virtual_type): Remove. Substitute by...
2932 (h8300_register_type): New function.
2933 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2934 (h8300h_extract_struct_value_address): Ditto.
2935 (h8300_gdbarch_init): Drop calls to
2936 set_gdbarch_deprecated_register_byte and
2937 set_gdbarch_deprecated_register_virtual_type.
2938 Add call to set_gdbarch_register_type.
2939
9c04cab7
AC
29402003-06-13 Andrew Cagney <cagney@redhat.com>
2941
2942 * gdbarch.sh: Update comments on registers.
2943 (deprecated_register_byte): Rename register_byte.
2944 (deprecated_register_raw_size): Rename register_raw_size.
2945 (deprecated_register_virtual_size): Rename register_virtual_size.
2946 (deprecated_register_virtual_type): Rename register_virtual_type.
2947 * gdbarch.h, gdbarch.c: Re-generate.
2948 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2949 * vax-tdep.c (vax_gdbarch_init): Update.
2950 * v850-tdep.c (v850_gdbarch_init): Update.
2951 * sparc-tdep.c (sparc_gdbarch_init): Update.
2952 * sh-tdep.c (sh_gdbarch_init): Update.
2953 * s390-tdep.c (s390_gdbarch_init): Update.
2954 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2955 * ns32k-tdep.c: Update.
2956 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2957 * mips-tdep.c (mips_gdbarch_init): Update.
2958 * mcore-tdep.c (mcore_gdbarch_init): Update.
2959 * m68k-tdep.c (m68k_gdbarch_init): Update.
2960 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2961 * ia64-tdep.c (ia64_gdbarch_init): Update.
2962 * hppa-tdep.c (hppa_gdbarch_init): Update.
2963 * h8300-tdep.c (h8300_gdbarch_init): Update.
2964 * frv-tdep.c (frv_gdbarch_init): Update.
2965 * cris-tdep.c (cris_gdbarch_init): Update.
2966 * avr-tdep.c (avr_gdbarch_init): Update.
2967 * alpha-tdep.c (alpha_gdbarch_init): Update.
2968 * arm-tdep.c (arm_gdbarch_init): Update.
2969
b060cbea
AC
29702003-06-13 Andrew Cagney <cagney@redhat.com>
2971
2972 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2973 mips_o32_use_struct_convention with always_use_struct_convention.
2974
0fc9922a
DC
29752003-06-12 David Carlton <carlton@kealia.com>
2976
2977 * cp-namespace.c (cp_set_block_scope): Comment out
2978 processing_has_namespace_info branch.
2979
1fd35568
JB
29802003-06-12 Jim Blandy <jimb@redhat.com>
2981
f470a70a
JB
2982 Recognize and skip 64-bit PowerPC Linux linkage functions.
2983 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2984 insn_pattern, insns_match_pattern, d_field, ds_field): New
2985 functions, macros, and types for working with PPC instructions.
2986 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2987 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2988 ppc64_skip_trampoline_code): New functions, variables, and macros
2989 for recognizing and skipping linkage functions.
2990 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2991 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2992
49ff75ad
JB
2993 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2994 register offsets for both the 32- and 64-bit interfaces.
2995
bd918c83
JB
2996 Actually finish the job started by my change of 2003-05-29.
2997 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2998 other #definition of this.
2999 (ppc_linux_skip_trampoline_code): Remove declaration.
3000 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3001 static.
3002 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3003 method for GDBARCH.
3004
3005 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3006 'long' on ppc64-*-linux*.
3007
f8c59253
JB
3008 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3009 isn't #defined, assume the register doesn't exist: act as if
3010 tdep->ppc_mq_regnum were -1.
3011
8fbb30b1
JB
3012 * configure.host, configure.tgt: Add entries for
3013 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3014 powerpc/linux.mt.
3015 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3016 New files.
3017
1fd35568
JB
3018 * arch-utils.c (always_use_struct_convention): New function.
3019 * arch-utils.h (always_use_struct_convention): New prototype.
3020 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3021 (alpha_gdbarch_init): Register always_use_struct_convention,
3022 instead of alpha_use_struct_convention.
3023 * cris-tdep.c (cris_use_struct_convention): Delete.
3024 (cris_gdbarch_init): Register always_use_struct_convention,
3025 instead of cris_use_struct_convention.
3026 * frv-tdep.c (frv_use_struct_convention): Delete.
3027 (frv_gdbarch_init): Register always_use_struct_convention,
3028 instead of frv_use_struct_convention.
3029 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3030 (h8300_gdbarch_init): Register always_use_struct_convention,
3031 instead of h8300_use_struct_convention.
e3305dd9 3032 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3033 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3034 instead of mips_o32_use_struct_convention.
3035
e14e6e9c
AC
30362003-06-12 Andrew Cagney <cagney@redhat.com>
3037
3038 * wince.c: Include "mips-tdep.h".
3039 * mips-tdep.h (mips_next_pc): Declare.
3040 * mcore-tdep.c: Make more local functions static.
3041 * Makefile.in (wince.o): Update dependencies.
3042
2335f48e
DC
30432003-06-12 David Carlton <carlton@kealia.com>
3044
3045 * symtab.c (lookup_symbol_aux_minsyms): Replace
3046 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3047 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3048 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3049 SYMBOL_NATURAL_NAME.
3050
f70a7d61
AS
30512003-06-12 Andreas Schwab <schwab@suse.de>
3052
3053 * Makefile.in (tuiDisassem.o): Update dependencies.
3054
b6429628
DC
30552003-06-12 David Carlton <carlton@bactrian.org>
3056
3057 * symtab.h: Delete declaration of make_symbol_overload_list.
3058 Add declaration of lookup_partial_symbol.
3059 * symtab.c (remove_params): Move to cp-support.c.
3060 (overload_list_add_symbol, make_symbol_overload_list)
3061 (sym_return_val_size, sym_return_val_index): Ditto.
3062 (lookup_partial_symbol): Make extern.
3063 * cp-support.h: Add declaration of make_symbol_overload_list.
3064 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3065 symtab.h, and block.h.
3066 (remove_params): Move here from symtab.c.
3067 (overload_list_add_symbol, make_symbol_overload_list)
3068 (sym_return_val_size, sym_return_val_index): Ditto.
3069 * valops.c: Include cp-support.h.
3070 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3071 frame_h, and block_h.
3072 (valops.o): Depend on cp_support_h.
3073
084edea5
CV
30742003-06-12 Corinna Vinschen <vinschen@redhat.com>
3075
3076 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3077 substitute by NUM_REGS throughout.
3078 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3079 (h8300s_register_name): New function for H8S registers.
3080 (h8300sx_register_name): Ditto for H8SX registers.
3081 (h8300_print_register): Revise register printing, avoid depending
3082 on 32 bit long.
0261a0d0 3083 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3084 (h8300h_register_byte): New function for any other architecture.
3085 (h8300_register_raw_size): Remove.
3086 (h8300_register_virtual_type): Revise to return actually useful
3087 type.
3088 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3089 (h8300h_extract_struct_value_address): New function for any other
3090 architecture.
3091 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3092 set_gdbarch_register_name, set_gdbarch_register_byte,
3093 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3094 Remove calls to set_gdbarch_deprecated_register_size,
3095 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3096 set_gdbarch_deprecated_max_register_raw_size,
3097 set_gdbarch_register_virtual_size and
3098 set_gdbarch_deprecated_max_register_virtual_size entirely.
3099 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3100 set_gdbarch_long_double_bit.
3101
06194148
JJ
31022003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3103
8ffd9b1b
AJ
3104 * doublest.c (convert_doublest_to_floatformat): When dealing
3105 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3106 processing a full 32 bits of mantissa.
3107
de4f826b
DC
31082003-06-11 David Carlton <carlton@bactrian.org>
3109
3110 * dictionary.h: New.
3111 * dictionary.c: New.
3112 * block.h: Add opaque declaration for struct dictionary.
3113 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3114 'sym' members.
3115 (BLOCK_DICT): New macro.
3116 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3117 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3118 BLOCK_SHOULD_SORT.
3119 (ALL_BLOCK_SYMBOLS): Update definition.
3120 * Makefile.in (SFILES): Add dictionary.c.
3121 (dictionary_h): New.
3122 (COMMON_OBS): Add dictionary.o.
3123 (dictionary.o): New.
3124 (ada-lang.o): Depend on dictionary_h.
3125 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3126 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3127 (mi-cmd-stack.o): Ditto.
3128 (gdbtk-cmds.o): Update dependencies.
3129 (gdbtk-stack.o): Ditto.
3130 * ada-lang.c: Include dictionary.h.
3131 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3132 (fill_in_ada_prototype, debug_print_block): Ditto.
3133 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3134 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3135 'is_sorted'.
3136 * mdebugread.c: Include dictionary.h.
3137 (struct parse_stack): Delete 'maxsyms' member.
3138 (parse_symbol): Update calls to new_block. Delete calls to
3139 shrink_block. Use dictionary methods.
3140 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3141 Update calls to new_symtab. Don't maintain maxsyms data.
3142 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3143 (add_symbol): Just call dict_add_symbol.
3144 (new_symtab): Delete 'maxsyms' argument.
3145 (new_symtab): Update calls to new_block.
3146 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3147 (shrink_block): Delete function.
3148 (fixup_sigtramp): Update call to new_block. Add symbol via
3149 dict_add_symbol.
3150 * jv-lang.c: Include dictionary.h.
3151 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3152 appropriately. Set class_symtab->free_func. Make sure the
3153 blockvector is big enough to hold two blocks.
3154 (add_class_symtab_symbol): Use dictionary methods.
3155 (free_class_block): New function.
3156 (type_from_class): Replace explicit iteration by
3157 ALL_BLOCK_SYMBOLS.
3158 * symtab.h (struct symtab): Replace 'free_ptr' method by
3159 'free_func'.
3160 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3161 sort_symtab_syms.
3162 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3163 sort_symtab_syms.
3164 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3165 Include dictionary.h.
3166 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3167 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3168 sort_symtab_syms.
3169 * objfiles.c: Include dictionary.h.
3170 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3171 * buildsym.c: Include dictionary.h.
3172 (finish_block): Use dictionary methods.
3173 (end_symtab): Set free_func to NULL, not free_ptr.
3174 * tracepoint.c: Include dictionary.h.
3175 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3176 (scope_info): Ditto.
3177 * stack.c: Include dictionary.h.
3178 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3179 (print_block_frame_labels, print_frame_arg_vars)
3180 (print_frame_args): Ditto.
3181 * symmisc.c (free_symtab_block): Use dictionary methods.
3182 (dump_symtab): Ditto.
3183 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3184 Include dictionary.h.
3185 * symfile.h: Delete declarations of sort_block_syms,
3186 sort_symtab_syms.
3187 * symfile.c (sort_block_syms): Delete.
3188 (sort_symtab_syms): Delete.
3189 * symtab.c: Include dictionary.h.
3190 (lookup_block_symbol): Use dictionary iterators.
3191 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3192 (search_symbols, make_symbol_completion_list): Ditto.
3193 (make_symbol_overload_list): Ditto.
3194 * valops.c (value_of_local): Use dict_empty.
3195 Include dictionary.h.
3196
a31f978c
JB
31972003-06-11 J. Brobecker <brobecker@gnat.com>
3198
3199 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3200
526e70c0
DC
32012003-06-11 David Carlton <carlton@bactrian.org>
3202
3203 * block.h (BLOCK_SHOULD_SORT): Delete.
3204 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3205 blocks.
3206 * ada-lang.c (ada_add_block_symbols): Ditto.
3207 * symfile.c (sort_block_syms): Delete.
3208 (sort_symtab_syms): Ditto.
3209 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3210 declarations.
3211 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3212 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3213 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3214 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3215 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3216 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3217 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3218
33c08150
JJ
32192003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3220
8ffd9b1b 3221 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3222 bits to 128.
3223
781a750d
AC
32242003-06-11 Andrew Cagney <cagney@redhat.com>
3225
3226 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3227 REGISTER_CONVERTIBLE.
3228 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3229 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3230 * gdbarch.h, gdbarch.c: Re-generate.
3231 * arch-utils.h (deprecated_register_convertible_not): Rename
3232 generic_register_convertible_not.
3233 * arch-utils.c (deprecated_register_convertible_not): Rename
3234 generic_register_convertible.
3235 (legacy_convert_register_p, legacy_register_to_value): Update.
3236 * sh-tdep.c (sh64_push_arguments): Update.
3237 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3238 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3239 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3240 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3241 * arch-utils.c (legacy_value_to_register): Update.
3242 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3243 (rs6000_register_convert_to_raw): Make parameter "from" const.
3244 * mips-tdep.c (mips_gdbarch_init): Update.
3245 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3246 * infcmd.c (default_print_registers_info): Update.
3247 * ia64-tdep.c (ia64_gdbarch_init): Update.
3248 (ia64_register_convert_to_raw): Make parameter "from" const.
3249 * i386-tdep.c (i386_gdbarch_init): Update.
3250 (i386_register_convert_to_raw): Update.
3251
cd90e54f
AC
32522003-06-11 Andrew Cagney <cagney@redhat.com>
3253
3254 * remote-fileio.c: Include "remote-fileio.h".
3255 * Makefile.in (remote-fileio.o): Update dependencies.
3256 (remote_fileio_h): Fix typo.
3257
a78f21af
AC
32582003-06-11 Andrew Cagney <cagney@redhat.com>
3259
3260 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3261 (xstormy16_save_dummy_frame_tos): Make static.
3262 (_initialize_xstormy16_tdep): Add declaration.
3263 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3264 * v850-tdep.c: Make local functions static.
3265 (_initialize_v850_tdep): Add declaration.
3266 * sparc-tdep.c: Make local functions static.
3267 (_initialize_sparc_tdep): Add declaration.
3268 * sh-tdep.c: Make local functions static.
3269 (_initialize_sh_tdep): Add declaration.
3270 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3271 * s390-tdep.c: Make local functions static.
3272 (_initialize_s390_tdep): Add declaration.
3273 * dbxread.c (find_stab_function_addr): Make static.
3274 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3275 * ocd.c (_initialize_remote_ocd): Add declaration.
3276 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3277 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3278 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3279 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3280 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3281 * remote-array.c (_initialize_array): Add declaration.
3282 (_initialize_remote_monitors): Add declaration.
3283 * remote-mips.c: Make local functions static.
3284 (_initialize_remote_mips): Add declaration.
3285 * mcore-tdep.c: Make all local functions static.
3286 (_initialize_mcore_tdep): Add declaration.
3287 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3288 * abug-rom.c (_initialize_abug_rom): Add declaration.
3289 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3290 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3291 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3292 * remote-est.c (_initialize_est): Add declaration.
3293 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3294 (m68hc11_call_dummy_address): Make static.
3295 * ia64-tdep.c: Make local functions static.
3296 (_initialize_ia64_tdep): Add declaration.
3297 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3298 * monitor.c (monitor_wait_filter): Make static.
3299 (_initialize_remote_monitors): Add declaration.
3300 * remote-hms.c (_initialize_remote_hms): Add declaration.
3301 * remote-e7000.c (fetch_regs_from_dump): Make static.
3302 (expect_n): Make static.
3303 (_initialize_remote_e7000): Add declaration.
3304 * ser-e7kpc.c: Always include "defs.h".
3305 (_initialize_ser_e7000pc): Add declaration.
3306 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3307 * cris-tdep.c: Make all but one function static.
3308 (_initialize_cris_tdep): Add declaration.
3309 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3310 * solib.c (update_solib_list): Make static.
3311 (_initialize_solib): Add declaration.
3312 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3313 (_initialize_avr_tdep): Add declaration.
3314 * remote-rdi.c (voiddummy): Make static.
3315 (_initialize_remote_rdi): Add declaration.
3316 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3317 * remote-rdp.c (send_rdp): Make static.
3318 (_initialize_remote_rdp): Add declaration.
3319 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3320
cbcdb1f5
CV
33212003-06-11 Corinna Vinschen <vinschen@redhat.com>
3322
3323 * remote-fileio.c: Make ari happy.
3324
a191ea8d
JB
33252003-06-10 J. Brobecker <brobecker@gnat.com>
3326
3327 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3328 fetching the trailing bytes of the buffer we are about to write.
3329
0ef75e11
AC
33302003-06-10 Andrew Cagney <cagney@redhat.com>
3331
3332 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3333 * Makefile.in (remote-fileio.o): Update dependencies.
3334 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3335 include <setjmp.h>, or <sys/types.h> conditional on USG.
3336 (remote_fio_jmp_buf): Delete global variable.
3337
449092f6 33382003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3339 Martin M. Hunt <hunt@redhat.com>
449092f6 3340
559fa028
AC
3341 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3342 (SFILES): Add remote-fileio.c.
3343 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3344 dependencies for building remote.o.
449092f6
CV
3345 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3346 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3347 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3348 static storage class.
3349 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3350 'F' packet.
3351 (_initialize_remote): Call initialize_remote_fileio().
3352 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3353 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3354 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3355 (captured_main): Initialize new ui_files.
3356 * ui-file.c: Add read and fgets input functions.
3357 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3358 (null_file_read): New function.
3359 (ui_file_read): New function.
3360 (set_ui_file_read): New function.
3361 (stdio_file_read): New function.
3362 * ui-file.h: New type ui_file_read_ftype.
3363 (set_ui_file_read): Declare.
3364 (ui_file_read): Declare.
3365
248de703
AC
33662003-06-09 Andrew Cagney <cagney@redhat.com>
3367
3368 * frame.h (deprecated_unwind_get_saved_register): Rename
3369 generic_unwind_get_saved_register, update comments.
3370 * mips-tdep.c (mips_get_saved_register): Update.
3371 * frame.c (deprecated_unwind_get_saved_register): Update.
3372
0ed8aa57
AC
33732003-06-09 Andrew Cagney <cagney@redhat.com>
3374
3375 * vax-tdep.c (vax_frame_locals_address): Delete function.
3376 (vax_gdbarch_init): Do not set frame_locals_address.
3377 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3378 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3379 * s390-tdep.c (s390_frame_args_address): Delete function.
3380 (s390_gdbarch_init): Do not set frame_args_address or
3381 frame_locals_address.
3382 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3383 (ns32k_gdbarch_init): Do not set frame_locals_address.
3384 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3385 (hppa_frame_locals_address): Delete function.
3386 (hppa_gdbarch_init): Do not set frame_args_address, or
3387 frame_locals_address.
3388 * arm-tdep.c (arm_frame_args_address): Delete.
3389 (arm_frame_locals_address): Delete.
3390 (arm_gdbarch_init): Do not set frame_args_address, or
3391 frame_locals_address.
3392
983a287a
AC
33932003-06-09 Andrew Cagney <cagney@redhat.com>
3394
3395 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3396 * gdbarch.h, gdbarch.c: Re-generate.
3397 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3398 * arch-utils.c (frame_num_args_unknown): Delete function.
3399 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3400 (frame_info): Use FRAME_NUM_ARGS_P.
3401 * arm-tdep.c (arm_frame_num_args): Delete function.
3402 (arm_gdbarch_init): Do not set frame_num_args.
3403 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3404 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3405 (hppa_gdbarch_init): Do not set frame_num_args.
3406 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3407 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3408 frame_num_args to default frame_num_args_unknown.
3409 * v850-tdep.c (v850_gdbarch_init): Ditto.
3410 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3411 * sh-tdep.c (sh_gdbarch_init): Ditto.
3412 * s390-tdep.c (s390_gdbarch_init): Ditto.
3413 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3414 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3415 * mips-tdep.c (mips_gdbarch_init): Ditto.
3416 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3417 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3418 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3419 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3420 * i386-tdep.c (i386_gdbarch_init): Ditto.
3421 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3422 * frv-tdep.c (frv_gdbarch_init): Ditto.
3423 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3424 * cris-tdep.c (cris_gdbarch_init): Ditto.
3425 * avr-tdep.c (avr_gdbarch_init): Ditto.
3426 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3427
8d3b0994
AC
34282003-06-09 Andrew Cagney <cagney@redhat.com>
3429
3430 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3431 (print_frame_args): Moved to "stack.c".
3432 * stack.c: Include "gdb_assert.h".
3433 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3434 (print_frame_args): Moved from "printcmd.c".
3435 * frame.h (print_frame_args): Delete declaration.
3436 * Makefile.in (stack.o): Update dependencies.
3437
25e3a86b
AC
34382003-06-08 Andrew Cagney <cagney@redhat.com>
3439
3440 * frame.c (get_prev_frame): Remove reference to
3441 frame_args_address_correct in comments.
3442 * frame-base.c (default_frame_args_address): Delete code
3443 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3444 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3445 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3446 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3447 (vax_frame_args_address_correct): Delete declaration.
3448
a9e5fdc2
AC
34492003-06-08 Andrew Cagney <cagney@redhat.com>
3450
3451 * gdbarch.sh (UNWIND_SP): Add.
3452 * gdbarch.h, gdbarch.c: Re-generate.
3453 * frame.c (frame_sp_unwind): New function.
3454 (get_frame_sp): New function.
3455 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3456 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3457 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3458 value.
3459 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3460 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3461
8983bd83
AC
34622003-06-08 Andrew Cagney <cagney@redhat.com>
3463
7fec2c59
AC
3464 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3465 REMOTE_BREAKPOINT.
3466 * remote.c: Update.
3467 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3468 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3469 * config/m68k/tm-sun3.h: Update.
3470 * config/m68k/tm-m68klynx.h: Update.
3471 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3472
8983bd83
AC
3473 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3474 trad_frame". Update comments.
3475 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3476 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3477 (trad_frame_register_value, trad_frame_prev_register): Update.
3478
b9362cc7
AC
34792003-06-08 Andrew Cagney <cagney@redhat.com>
3480
3481 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3482 from GCC's acinclude.m4.
3483 * configure.in: Check for getopt's delcaration.
8ffd9b1b 3484 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
3485 * main.c (error_init): Delete declaration.
3486 * defs.h (error_init): Declare.
3487 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3488 (rs6000_convert_from_func_ptr_addr): Make static.
3489 (_initialize_rs6000_tdep): Add declaration.
3490 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3491 (show_commands, set_verbose, show_history): Delete declaration.
3492 * top.h (set_verbose): Add declaration.
3493 (show_history, set_history, show_commands): Add declaration.
3494 (do_restore_instream_cleanup): Add declaration.
3495 * objc-lang.c (specialcmp): Make static.
3496 (print_object_command): Make static.
3497 (find_objc_msgsend): Make static.
3498 (find_objc_msgcall_submethod_helper): Make static.
3499 (find_objc_msgcall_submethod): Make static.
3500 (_initialize_objc_language): Add declaration.
3501 (find_implementation_from_class): Make static.
3502 (find_implementation): Make static.
3503 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3504 * objc-lang.h (lookup_struct_typedef): Add declaration.
3505 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3506 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3507 (do_restore_user_call_depth): Make static.
3508 (do_restore_instream_cleanup): Delete declaration.
3509 (dont_repeat): Delete declaration.
3510 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3511 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3512 * reggroups.c (_initialize_reggroup): Add declaration.
3513 * cp-support.c (_initialize_cp_support): Add declaration.
3514 * cp-abi.c (_initialize_cp_abi): Add declaration.
3515 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3516 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3517 (_initialize_gnu_v3_abi): Add declaration.
3518 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3519 (_initialize_gnu_v2_abi): Add declaration.
3520 * frame-base.c (_initialize_frame_base): Add declaration.
3521 * doublest.c (floatformat_from_length): Make static.
3522 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3523 * frame.c (create_sentinel_frame): Make static.
3524 (_initialize_frame): Add declaration.
3525 * top.c (do_catch_errors): Make static.
3526 (gdb_rl_operate_and_get_next_completion): Make static.
3527 * typeprint.c: Include "typeprint.h".
3528 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3529 (sentinel_frame_this_id): Make static.
3530 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3531 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3532 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3533 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3534 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3535 * maint.c (maintenance_print_architecture): Make static.
3536 * signals/signals.c (_initialize_signals): Add declaration.
3537 * std-regs.c (_initialize_frame_reg): Add declaration.
3538 * jv-exp.y (push_variable): ISO C definition.
3539 (push_qualified_expression_name): Ditto.
3540 * memattr.c (_initialize_mem): Add declaration.
3541 * remote.c (remote_check_watch_resources): Make static.
3542 (remote_stopped_by_watchpoint): Make static.
3543 (remote_stopped_data_address): Make static.
3544 * d10v-tdep.c (nr_dmap_regs): Make static.
3545 (a0_regnum): Make static.
3546 (d10v_frame_unwind_cache): Make static.
3547 (d10v_frame_p): Make static.
3548 * osabi.c (show_osabi): Make static.
3549 (_initialize_gdb_osabi): Add extern declaration.
3550 * gdbtypes.c (make_qualified_type): Make static.
3551 (safe_parse_type): Make static.
3552 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3553 * macrotab.c (macro_bcache_free): Make static.
3554 * interps.c (interp_set_quiet): Make static.
3555 (interpreter_exec_cmd): Make static.
3556 * stack.h (select_frame_command): New file.
3557 * stack.c: Include "stack.h".
3558 (select_frame_command_wrapper): Delete function.
3559 (select_frame_command): Make global.
3560 * infcall.c: Include "infcall.h".
3561 * linespec.c: Include "linespec.h".
3562 * symfile.c (sections_overlap): Make static.
3563 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3564 * charset.c (_initialize_charset): Add missing prototype.
3565 * regcache.c (init_legacy_regcache_descr): Make static.
3566 (do_regcache_xfree): Make static.
3567 (regcache_xfer_part): Make static.
3568 (_initialize_regcache): Add missing prototype.
3569 * breakpoint.c (parse_breakpoint_sals): Make static.
3570 (breakpoint_sals_to_pc): Make static.
3571 * interps.h (clear_interpreter_hooks): ISO C declaration.
3572 * Makefile.in (stack_h): Define.
3573 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3574 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3575
a0f267c7
AC
35762003-06-08 Andrew Cagney <cagney@redhat.com>
3577
3578 * Makefile.in (d10v-tdep.o): Update dependencies.
3579 (SFILES): Add trad-frame.c.
3580 (trad_frame_h): Define.
3581 (COMMON_OBS): Add trad-frame.o.
3582 (trad-frame.o): Specify dependencies.
3583 * d10v-tdep.c: Include "trad-frame.h".
3584 (saved_regs_unwinder): Delete function.
3585 (d10v_frame_prev_register): Use trad_frame_prev_register.
3586 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3587 trad_frame", delete "regs" and "prev_sp".
3588 (prologue_find_regs): Use trad-frame.
3589 * trad-frame.h, trad-frame.c: New files.
3590
4538b4f4
MK
35912003-06-08 Mark Kettenis <kettenis@gnu.org>
3592
3593 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3594
a0273b2f
AF
35952003-06-07 Adam Fedor <fedor@gnu.org>
3596
3597 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3598 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3599 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3600 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 3601 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
3602 Use it.
3603
3a6c3343
AC
36042003-06-07 Andrew Cagney <cagney@redhat.com>
3605
3606 * symfile.h: Re-indent, clean up comments.
3607
b46e02f6
AC
36082003-06-07 Andrew Cagney <cagney@redhat.com>
3609
3610 * inferior.h (deprecated_write_sp): Replace
3611 generic_target_write_sp.
3612 * regcache.c (deprecated_write_sp): Replace
3613 generic_target_write_sp.
3614 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3615 * vax-tdep.c (vax_gdbarch_init): Update.
3616 * v850-tdep.c (v850_gdbarch_init): Update.
3617 * sparc-tdep.c (sparc_gdbarch_init): Update.
3618 * sh-tdep.c (sh_gdbarch_init): Update.
3619 * s390-tdep.c (s390_gdbarch_init): Update.
3620 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3621 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3622 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3623 * mcore-tdep.c (mcore_gdbarch_init): Update.
3624 * m68k-tdep.c (m68k_gdbarch_init): Update.
3625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3626 * ia64-tdep.c (ia64_gdbarch_init): Update.
3627 * h8300-tdep.c (h8300_gdbarch_init): Update.
3628 * frv-tdep.c (frv_gdbarch_init): Update.
3629 * cris-tdep.c (cris_gdbarch_init): Update.
3630 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3631
a42e117c
AC
36322003-06-07 Andrew Cagney <cagney@redhat.com>
3633
3634 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3635 Assert that PC_REGNUM is valid.
3636 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3637
bd1ce8ba
AC
36382003-06-07 Andrew Cagney <cagney@redhat.com>
3639
3640 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3641 * gdbarch.h, gdbarch.c: Regenerate.
3642 * mn10300-tdep.c: Include "gdb_assert.h".
3643 (mn10300_read_fp): New function.
3644 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3645 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3646 * ia64-tdep.c: Include "gdb_assert.h".
3647 (ia64_read_fp): New function.
3648 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3649 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3650 * regcache.c (generic_target_read_sp): Delete function.
3651 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3652 * inferior.h (generic_target_read_sp): Delete declaration.
3653 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3654 generic_target_read_sp.
3655 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3656 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3657 * sh-tdep.c (sh_gdbarch_init): Ditto.
3658 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3659 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3660
ec5cbaec
AC
36612003-06-07 Andrew Cagney <cagney@redhat.com>
3662
3663 * gdbarch.sh: Comment each field of startup_gdbarch.
3664 * gdbarch.h, gdbarch.c: Re-generate.
3665
cde9ea48
AC
36662003-06-07 Andrew Cagney <cagney@redhat.com>
3667
3668 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3669 * gdbarch.h, gdbarch.c: Re-generate.
3670 * regcache.c: Update comments on read_pc et.al.
3671 (generic_target_read_pc): Delete function.
3672 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3673 * inferior.h (generic_target_read_pc): Delete declaration.
3674 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3675 generic_target_read_pc.
3676 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3677 * sh-tdep.c (sh_gdbarch_init): Ditto.
3678 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3679 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 3680
9a90a780
AC
36812003-06-07 Andrew Cagney <cagney@redhat.com>
3682
3683 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3684 "index" with "special_local_sect". Use strcmp instead of STREQ.
3685 Append period to coments.
3686
a39a16c4
MM
36872003-06-06 Mark Mitchell <mark@codesourcery.com>
3688
3689 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3690 (elfstab_offset_sections): Likewise.
3691 * gdb-stabs.h (stab_section_info): Likewise.
3692 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3693 * objfiles.c (objfile_relocate): Likewise.
3694 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3695 * remote.c (get_offsets): Likewise.
3696 (remote_cisco_objfile_relocate): Likewise.
3697 * somread.c (som_symfile_offsets): Likewise.
3698 * symfile.c (alloc_section_addr_info): New function.
3699 (build_section_addr_info_from_section_tab): Use it.
3700 (free_section_addr_info): Adjust.
3701 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3702 (syms_from_objfile): Allocate local_addr dynamically.
3703 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3704 dynamically.
3705 (add_symbol_file_command): Allocate sect_opts dynamically.
3706 (reread_symbols): Avoid use of SECT_OFF_MAX.
3707 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3708 (alloc_section_addr_info): Declare it.
3709 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3710 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3711 dynamically.
3712 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 3713
20c6c2f8
AC
37142003-06-06 Andrew Cagney <cagney@redhat.com>
3715
3716 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3717 (d10v_frame_unwind_cache): Do not set "return_pc".
3718
884a26c8
MS
37192003-06-06 Michael Snyder <msnyder@redhat.com>
3720
3721 * h8300-tdep.c: Make tidy (long lines).
3722
088ce440
ML
37232003-06-06 Michal Ludvig <mludvig@suse.cz>
3724
8ffd9b1b 3725 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
3726 to regcache_collect().
3727
7d773d96
JB
37282003-06-05 J. Brobecker <brobecker@gnat.com>
3729
3730 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3731 pc_in_sigtramp multiarch method.
3732 (hppa_hpux_som_init_abi): Use it.
3733 (hppa_hpux_elf_init_abi): Likewise.
3734 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3735 macro has been multiarched.
3736 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3737 macro here, as hppa64 isn't multiarched yet.
3738
1df6926e
AC
37392003-06-05 Andrew Cagney <cagney@redhat.com>
3740
3741 * Makefile.in (value_h): Add $(frame_h).
3742 * value.h: Include "frame.h".
3743 (struct value): Replace "frame_addr" with "frame_id".
3744 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3745 * values.c (allocate_value): Use VALUE_FRAME_ID.
3746 (value_copy): Use VALUE_FRAME_ID.
3747 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3748 * valops.c (value_assign): Update. Use frame_find_by_id.
3749
6b53acc6
ML
37502003-06-05 Michal Ludvig <mludvig@suse.cz>
3751
3752 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3753 in each pass.
3754
4d9850d3
JJ
37552003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3756
3757 * thread-db.c (check_event): For create/death event breakpoints,
3758 loop through all messages to ensure that we read the message
3759 corresponding to the breakpoint we are at.
3760
8efca6ba
MS
37612003-06-04 Michael Snyder <msnyder@redhat.com>
3762
3763 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3764
0912c7f2
MK
37652003-06-04 Mark Kettenis <kettenis@gnu.org>
3766
3767 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3768 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3769 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3770 when handling .eh_frame sections.
3771
4e370325
JB
37722003-06-04 J. Brobecker <brobecker@gnat.com>
3773
3774 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3775 prepare_to_proceed procedure instead of the hppa-specific one.
3776 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3777
b757528f 37782003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 3779
b757528f
JJ
3780 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3781 * config.in: Regenerated.
3782 * configure.in: Add test for syscall function and check for
3783 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3784 * configure: Regenerated.
3785 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3786 <sys/syscall.h>.
3787 (kill_lwp): New function that uses tkill syscall or
3788 uses kill, depending on whether threading model is nptl or not.
3789 All callers of kill() changed to use kill_lwp().
3790 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3791 see if all threads have already exited in the nptl model.
3792 (stop_and_resume_callback): New callback function used by the
3793 lin_lwp_wait thread exit handling code.
3794 (stop_wait_callback): Check for threads already having exited and
3795 delete such threads fromt the lwp list when discovered.
3796 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 3797
b757528f
JJ
3798 Roland McGrath <roland@redhat.com>
3799 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3800 nptl libthread_db.
3801
087779b1
RH
38022003-06-03 Richard Henderson <rth@redhat.com>
3803
b21fd293
RH
3804 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3805 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3806 (alpha_sigtramp_frame_prev_register): Likewise.
3807 (alpha_heuristic_frame_prev_register): Likewise.
3808 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3809
8ffd9b1b 3810 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
3811 alpha-specific register id names.
3812 (alpha_mdebug_frame_unwind_cache): Likewise.
3813 (alpha_mdebug_frame_prev_register): Likewise.
3814
baa490c4
RH
38152003-06-03 Richard Henderson <rth@redhat.com>
3816
3817 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3818 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3819 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3820 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3821 unwind routines.
3822 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3823 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3824 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3825
3826 * alpha-linux-tdep.c: Remove unnecessary includes.
3827 * Makefile.in (alpha-linux-tdep.o): Update.
3828
38292003-06-03 Richard Henderson <rth@redhat.com>
3830
3831 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3832 (alphabsd_fill_fpreg): Likewise.
3833
f534e522
JB
38342003-06-03 J. Brobecker <brobecker@gnat.com>
3835
3836 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3837 references to struct frame_info fields by calls to the equivalent
3838 accessors. Necessary now that frame_info is opaque.
3839
4035536b
JB
38402003-06-03 J. Brobecker <brobecker@gnat.com>
3841
3842 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3843 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3844 structure, field no longer exists.
3845
0bd79c5c
JB
38462003-06-03 J. Brobecker <brobecker@gnat.com>
3847
3848 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3849 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3850
37bb6d9f
JB
38512003-06-03 J. Brobecker <brobecker@gnat.com>
3852
3853 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3854 references to struct frame_info fields by calls to the equivalent
3855 accessors. Necessary now that frame_info is opaque.
3856
852ee05c
JB
38572003-06-03 J. Brobecker <brobecker@gnat.com>
3858
3859 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3860 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3861 structure, field no longer exists.
3862
7d58c67d
TR
38632003-06-03 Theodore A. Roth <troth@openavr.org>
3864
8ffd9b1b 3865 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
3866 accumulation of the size of all registers instead of blindly using
3867 DEPRECATED_REGISTER_BYTES.
3868
0a48e7e8
MS
38692003-06-03 Michael Snyder <msnyder@redhat.com>
3870
3871 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3872 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3873 for h8300sx.
3874
9798ab0d
JB
38752003-06-03 J. Brobecker <brobecker@gnat.com>
3876
3877 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3878 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3879
00b037e2
AC
38802003-06-03 Andrew Cagney <cagney@redhat.com>
3881
3882 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3883 (sparc_convert_to_raw): Delete function.
3884 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3885 register_convert_to_virtual.
3886
043b2f77
JJ
38872003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3888
3889 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3890 layer if not dealing with a statically-linked threaded program.
3891
f43caff8
KW
38922003-06-03 Kris Warkentin <kewarken@qnx.com>
3893
3894 * solib.c (solib_open): Update comment to reflect actual search order.
3895
ae1e7417
AC
38962003-06-03 Andrew Cagney <cagney@redhat.com>
3897
3898 * frame.c (get_frame_memory_signed): New function.
3899 (get_frame_memory, get_frame_memory_unsigned): New function.
3900 (get_frame_arch): New function.
3901 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3902 (get_frame_memory, get_frame_unsigned_memory): Declare.
3903 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3904 get_frame_memory_unsigned and get_frame_arch.
3905 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3906
cb123844
RG
39072003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3908
3909 * MAINTAINERS (write after approval): Add myself.
3910
1bb792e9
JB
39112003-06-03 Jim Blandy <jimb@redhat.com>
3912
3913 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3914 elements of gregset_t are 64 bits each, but access registers
3915 are still 32 bits, so they're packed two per gregset_t
3916 element. Unpack/pack them properly.
3917
aee8d8ba
DC
39182003-06-02 David Carlton <carlton@bactrian.org>
3919
3920 * linespec.c (find_methods): Break out code into
3921 add_matching_methods and add_constructors.
3922 (add_matching_methods): New.
3923 (add_constructors): Ditto.
3924
bf7488d2
AC
39252003-06-02 Andrew Cagney <cagney@redhat.com>
3926
bf7488d2
AC
3927 * sparc-tdep.c (sparc_print_registers): Delete call to
3928 REGISTER_CONVERTIBLE.
3929 (sparc_gdbarch_init): Do not set register_convertible.
3930 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3931 * frv-tdep.c (frv_gdbarch_init): Ditto.
3932 * cris-tdep.c (cris_gdbarch_init): Ditto.
3933
adedef68
EZ
39342003-06-02 Elena Zannoni <ezannoni@redhat.com>
3935
8ffd9b1b 3936 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
3937 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3938 (syms_from_objfile): Ditto.
3939
650fcc91
AS
39402003-06-03 Andreas Schwab <schwab@suse.de>
3941
3942 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3943 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3944
df4a182b
RH
39452003-06-02 Richard Henderson <rth@redhat.com>
3946
3947 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3948 a member of all_reggroup.
3949
c483c494
RH
39502003-06-02 Richard Henderson <rth@redhat.com>
3951
3952 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3953 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3954 (alpha_lds, alpha_sts): New.
3955 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 3956 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
3957 restructure and fail for type sizes other than 4 or 8.
3958 (alpha_value_to_register): Similarly.
3959 (alpha_extract_return_value): Use alpha_sts.
3960 (alpha_store_return_value): Use alpha_lds.
3961 (alpha_gdbarch_init): Update hooks.
3962
b38b6be2
RH
39632003-06-02 Richard Henderson <rth@redhat.com>
3964
3965 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3966 regnum identifiers.
3967 (alpha_sigtramp_register_address): Likewise.
3968
98a8e1e5
RH
39692003-06-02 Richard Henderson <rth@redhat.com>
3970
3971 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3972 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3973 * alpha-tdep.h: Declare them.
3974
3975 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3976 Remove zerobuf. Don't error on UNIQUE.
3977 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3978 (ALPHA_REGSET_UNIQUE): Provide default.
3979 (supply_gregset): Use alpha_supply_int_regs.
3980 (fill_gregset): Use alpha_fill_int_regs.
3981 (supply_fpregset): Use alpha_supply_fp_regs.
3982 (fill_fpregset): Use alpha_fill_fp_regs.
3983 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3984 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3985 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3986 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3987 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3988 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3989
67dfac52
RH
39902003-06-02 Richard Henderson <rth@redhat.com>
3991
f75d70cc
RH
3992 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3993
67dfac52
RH
3994 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3995 (alpha_store_return_value): Likewise.
3996
0cf566ec
DC
39972003-06-02 David Carlton <carlton@math.stanford.edu>
3998
3999 * block.c (contained_in): Add 'const' to arguments.
4000 (block_function): Ditto.
4001 * block.h: Update declarations for block_function and
4002 contained_in.
4003
cdef89d0
DC
40042003-06-02 David Carlton <carlton@math.stanford.edu>
4005
4006 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4007 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4008 * p-valprint.c (pascal_val_print): Ditto.
4009 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4010
72667056
RH
40112003-06-02 Richard Henderson <rth@redhat.com>
4012
98a8e1e5
RH
4013 * alpha-tdep.c (alpha_push_dummy_call): Use
4014 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4015
8ffd9b1b 4016 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4017 sign-extension of 32-bit values.
4018 (alpha_store_return_value): Similarly.
0ede8eca 4019
98a8e1e5
RH
4020 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4021 (alpha_extract_return_value): Likewise.
4022 (alpha_store_return_value): Likewise.
7b5e1cb3 4023
98a8e1e5
RH
4024 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4025 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4026
98a8e1e5
RH
4027 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4028 (alpha_extract_struct_value_address): Likewise.
4029 (alpha_store_return_value): Likewise.
4030 (alpha_store_struct_return): Remove.
4031 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4032
98a8e1e5
RH
4033 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4034 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4035 macros where appropriate.
4036 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4037 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4038
98a8e1e5
RH
4039 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4040 for SP, GP; void_func_ptr for PC; non-language-specific types
4041 for all others.
4042 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4043
6dd77b81
RH
40442003-06-02 Richard Henderson <rth@redhat.com>
4045
4046 * top.h (lim_at_start): Declare.
4047 * main.c (captured_main): Set it.
4048 * top.c (lim_at_start): Define.
4049 (command_loop): Use it instead of &environ.
4050 * event-top.c (command_handler): Likewise.
4051
f4dbdb54
JT
40522003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4053
4054 * mipsnbsd-tdep.c: Update copyright years.
4055 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4056
8f285956
RH
40572003-06-01 Richard Henderson <rth@redhat.com>
4058
98a8e1e5
RH
4059 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4060 (alpha-linux-tdep.o): Update dependencies.
4061 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4062 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4063
615967cb
RH
40642003-06-01 Richard Henderson <rth@redhat.com>
4065
98a8e1e5
RH
4066 * alpha-tdep.c (alpha_register_reggroup_p): New.
4067 (alpha_gdbarch_init): Register it.
615967cb 4068
b59661bd
AC
40692003-06-02 Andrew Cagney <cagney@redhat.com>
4070
4071 * dwarfread.c: Eliminate "register"
4072 (decode_die_type): Eliminate assignment within "if".
4073 (struct_type, decode_array_element_type): Ditto.
4074 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4075 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4076 (decode_modified_type, completedieinfo): Ditto.
4077 * block.c: Eliminate "register".
4078 (blockvector_for_pc_sect): Eliminate assignment within "if".
4079 * cp-support.h (struct symbol): Opaque declaration.
4080 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4081
5ef165c2
RH
40822003-06-01 Richard Henderson <rth@redhat.com>
4083
98a8e1e5
RH
4084 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4085 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4086
143985b7
AF
40872003-06-01 Adam Fedor <fedor@gnu.org>
4088
4089 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4090 * gdbarch.[ch]: Regenerate.
4091 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4092 (hppa_gdbarch_init): Set it in the gdbarch vector.
4093 * i386-tdep.c (i386_fetch_pointer_argument): New
4094 (i386_gdbarch_init): Set it into gdbarch.
4095 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4096 (rs6000_gdbarch_init): Set it in gdbarch.
4097 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4098 (sparc_gdbarch_init): Set it in gdbarch.
4099
ae0167b9
AC
41002003-06-01 Andrew Cagney <cagney@redhat.com>
4101
7c0b4a20
AC
4102 * defs.h (extract_address): Delete declaration.
4103 * findvar.c (extract_address): Delete function.
4104 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4105 extract_address with the inline equivalent,
4106 extract_unsigned_integer.
4107 (xstormy16_extract_struct_value_address): Ditto.
4108 (xstormy16_pointer_to_address): Ditto.
4109 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4110 * v850-tdep.c (v850_push_arguments): Ditto.
4111 (v850_extract_return_value): Ditto.
4112 (v850_extract_struct_value_address): Ditto.
4113 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4114 (sparcnbsd_get_longjmp_target_64): Ditto.
4115 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4116 (get_longjmp_target): Ditto.
4117 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4118 (sh64_extract_struct_value_address): Ditto.
4119 (sh_push_arguments): Ditto.
4120 (sh64_push_arguments): Ditto.
4121 * remote-vxsparc.c (vx_read_register): Ditto.
4122 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4123 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4124 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4125 * mipsv4-nat.c (get_longjmp_target): Ditto.
4126 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4127 * mips-nat.c (get_longjmp_target): Ditto.
4128 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4129 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4130 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4131 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4132 * irix5-nat.c (get_longjmp_target): Ditto.
4133 * irix4-nat.c (get_longjmp_target): Ditto.
4134 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4135 (ia64_push_arguments): Ditto.
4136 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4137 * h8300-tdep.c (h8300_push_arguments): Ditto.
4138 (h8300_store_return_value): Ditto.
4139 (h8300_extract_struct_value_address): Ditto.
4140 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4141 (frv_push_arguments): Ditto.
4142 * avr-tdep.c (avr_pointer_to_address): Ditto.
4143 (avr_push_arguments): Ditto.
4144 * arm-tdep.c (arm_push_dummy_call): Ditto.
4145 (arm_get_longjmp_target): Ditto.
4146 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4147 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4148 (alpha_get_longjmp_target): Ditto.
4149
ae0167b9
AC
4150 * solib-irix.c (extract_mips_address): Inline extract_address,
4151 replacing it with extract_signed_integer.
4152 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4153 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4154 (first_link_map_member, open_symbol_file_object): Ditto.
4155 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4156 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4157 (LM_NEXT, LM_NAME): Ditto.
4158
44d88583
RH
41592003-06-01 Richard Henderson <rth@redhat.com>
4160
98a8e1e5
RH
4161 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4162 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4163 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4164 (alpha_cannot_store_register): Likewise.
4165 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4166 * alpha-nat.c (supply_gregset): Likewise.
4167 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4168
310e9b6a
AC
41692003-06-01 Andrew Cagney <cagney@redhat.com>
4170
4171 * infcall.c (call_function_by_hand): Update comment on
4172 DEPRECATED_DUMMY_WRITE_SP.
4173
4174 * mips-tdep.c (mips_gdbarch_init): Do not set
4175 deprecated_dummy_write_sp.
4176 (mips_eabi_push_dummy_call): Set the SP register.
4177 (mips_o64_push_dummy_call): Set the SP register.
4178 (mips_o32_push_dummy_call): Set the SP register.
4179 (mips_n32n64_push_dummy_call): Set the SP register.
4180
5ab84872
RH
41812003-06-01 Richard Henderson <rth@redhat.com>
4182
98a8e1e5
RH
4183 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4184 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4185 (supply_gregset): Likewise.
4186 * alpha-tdep.c (alpha_store_return_value): Likewise.
4187 (alpha_get_longjmp_target): Likewise.
4188 (alpha_register_name): Constify array.
4189 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4190 deprecated_register_size, deprecated_register_bytes,
4191 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4192 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4193 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4194
09cc52fd
RH
41952003-06-01 Richard Henderson <rth@redhat.com>
4196
4197 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4198 from arg_reg_buffer to regcache to avoid double conversion.
4199
c7f16359
MK
42002003-06-01 Mark Kettenis <kettenis@gnu.org>
4201
4202 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4203 SP_REGNUM.
4204 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4205 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4206
7131cb6e
RH
42072003-06-01 Richard Henderson <rth@redhat.com>
4208
98a8e1e5
RH
4209 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4210 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4211
f3e0f90b
RH
42122003-06-01 Richard Henderson <rth@redhat.com>
4213
98a8e1e5
RH
4214 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4215 not overlapping PC_REGNUM.
f3e0f90b 4216
c88e30c0
RH
42172003-06-01 Richard Henderson <rth@redhat.com>
4218
98a8e1e5
RH
4219 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4220 alpha_push_arguments. Don't dump argument register data to
4221 the target stack. Fix float and 128-bit long double semantics.
4222 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4223 (alpha_fix_call_dummy): Remove.
4224 (alpha_call_dummy_words): Remove.
4225 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4226
f1a559ae
RH
42272003-06-01 Richard Henderson <rth@redhat.com>
4228
4229 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4230
5e045346
AC
42312003-06-01 Andrew Cagney <cagney@redhat.com>
4232
95404a3e
AC
4233 * mips-tdep.c (is_mips16_addr): New function.
4234 (make_mips16_addr, unmake_mips16_addr): New functions.
4235 (pc_is_mips16, mips_fetch_instruction): Use.
4236 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4237 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4238 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4239 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4240 TARGET_MIPS.
4241 * config/mips/tm-mips.h: Update copyright.
4242 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4243 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4244 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4245 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4246 (TM_PRINT_INSN_MACH): Delete.
4247 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4248
5e045346
AC
4249 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4250 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4251 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4252 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4253 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4254 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4255 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4256 mips*-*-riscos* and mips*-*-sysv* onto mips.
4257 * config/mips/mips64.mt: New file.
4258 * config/mips/mips.mt: New file.
4259 * config/mips/littlemips.mt: Delete file.
4260 * config/mips/decstation.mt: Delete file.
4261 * config/mips/vr4300el.mt: Delete file.
4262 * config/mips/vr5000el.mt: Delete file.
4263 * config/mips/vr5000.mt: Delete file.
4264 * config/mips/vr4100.mt: Delete file.
4265 * config/mips/vr4xxxel.mt: Delete file.
4266 * config/mips/vr4300.mt: Delete file.
4267 * config/mips/vr4xxx.mt: Delete file.
4268 * config/mips/bigmips.mt: Delete file.
4269 * config/mips/bigmips64.mt: Delete file.
4270 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4271 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4272 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4273 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4274 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4275 "tm-bigmips.h".
4276 * config/mips/tm-irix3.h: Ditto.
4277 * config/mips/tm-mipsv4.h: Ditto.
4278 * config/mips/tm-embed.h: Ditto.
4279 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4280 "tm-bigmips64.h".
4281 * config/mips/tm-vr5000el.h: Delete file.
4282 * config/mips/tm-tx39l.h: Delete file.
4283 * config/mips/tm-vr4300el.h: Delete file.
4284 * config/mips/tm-vr4xxxel.h: Delete file.
4285 * config/mips/tm-vr4300.h: Delete file.
4286 * config/mips/tm-vr4100.h: Delete file.
4287 * config/mips/tm-vr4xxx.h: Delete file.
4288 * config/mips/tm-vr5000.h: Delete file.
4289 * config/mips/tm-embedl64.h: Delete file.
4290 * config/mips/tm-embedl.h: Delete file.
4291 * config/mips/tm-embed64.h: Delete file.
4292 * config/mips/tm-bigmips64.h: Delete file.
4293 * config/mips/tm-bigmips.h: Delete file.
4294
2473a4a9
MK
42952003-06-01 Mark Kettenis <kettenis@gnu.org>
4296
97a5b208
MK
4297 Fix gdb/1216.
4298 * shnbsd-nat.c: Include "sh-tdep.h".
4299
2473a4a9
MK
4300 From Richard Henderson <rth@redhat.com>:
4301 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4302
e0f7ec59
AC
43032003-05-31 Andrew Cagney <cagney@redhat.com>
4304
4305 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4306 forward declaration.
4307 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4308 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4309 (mips_find_saved_regs): Use set_reg_offset.
4310 (mips_frame_init_saved_regs): Delete function.
4311 (mips_pop_frame): Call mips_find_saved_regs instead of
4312 DEPRECATED_FRAME_INIT_SAVED_REGS.
4313
68dcc709
AC
43142003-05-31 Andrew Cagney <cagney@redhat.com>
4315
4316 * mips-tdep.c (mips_gdbarch_init): Do not set
4317 deprecated_max_register_raw_size, register_virtual_size, and
4318 deprecated_max_register_virtual_size.
4319
cfc14b3a
MK
43202003-05-31 Mark Kettenis <kettenis@gnu.org>
4321
6405b0a6
MK
4322 * i386-tdep.c: Include "dwarf2-frame.h".
4323 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4324 * Makefile.in (i386-tdep.o): Update dependencies.
4325
cfc14b3a
MK
4326 * dwarf2-frame.c, dwarf2-frame.h: New files.
4327 * Makefile.in (SFILES): Add dwarf2-frame.c.
4328 (dwarf2_frame_h): Define.
4329 (COMMON_OBS): Add dwarf2-frame.o.
4330 (dwarf2-frame.o): Add dependencies.
4331
6a2751d2
AJ
43322003-05-31 Andreas Jaeger <aj@suse.de>
4333
4334 * x86-64-linux-nat.c: Fix comment.
4335
1c3545ae
MK
43362003-05-31 Mark Kettenis <kettenis@gnu.org>
4337
10f93086
MK
4338 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4339 function signature.
4340
1c3545ae
MK
4341 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4342 have a sigcontext_addr handler.
4343 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4344 sigcontext_addr handler.
4345
e11c53d2
AC
43462003-05-31 Andrew Cagney <cagney@redhat.com>
4347
4348 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4349 (print_fp_register_row): Replace do_fp_register_row.
4350 (mips_print_fp_register): Add "file" and "frame" parameters.
4351 (mips_print_register): Add "file" and "frame" parameters.
4352 (mips_print_registers_info): Replace mips_do_registers_info.
4353 (mips_gdbarch_init): Set print_registers_info instead of
4354 deprecated_do_registers_info.
4355 (mips_read_fp_register_single): Add "frame" parameter.
4356 (mips_read_fp_register_double): Add "frame" parameter.
4357
a3386186
MK
43582003-05-31 Mark Kettenis <kettenis@gnu.org>
4359
70913449
MK
4360 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4361 Fixes a bug where GDB would print the wrong register names for
4362 targets without SSE.
4363
2b5e0749
MK
4364 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4365 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4366 registers.
4367
4368 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4369 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4370 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4371 TDEP->sc_sp_offset.
4372
a3386186
MK
4373 From Michal Ludvig <mludvig@suse.cz>:
4374 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4375 and `sc_num_regs'.
4376 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4377 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4378 I386_ST0_REGNUM): Move here from...
4379 * i386-tdep.c: ... here.
4380 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4381 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4382 registers if possible.
4383 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4384 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4385 Remove variables.
4386 (i386bsd_sc_reg_offset): New variable.
4387 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4388 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4389 TDEP->sc_sp_offset.
4390 (i386fbsd_sc_reg_offset): New variable.
4391 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4392 TDEP->sc_num_regs.
4393 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4394 variables.
4395 (i386fbsd4_sc_reg_offset): New variable.
4396 (i3864bsd4_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 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4400 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4401 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4402 Remove variables.
4403 (i386nbsd_sc_reg_offset): New variable.
4404 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4405 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4406 TDEP->sc_sp_offset.
4407 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4408 Remove variables.
4409 (i386obsd_sc_reg_offset): New variable.
4410 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4411 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4412 TDEP->sc_sp_offset.
4413 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4414 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4415 for frame pointer offset in `struct sigcontext'.
4416
25ab4790
AC
44172003-05-31 Andrew Cagney <cagney@redhat.com>
4418
4419 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4420 architecture methods call_dummy_words, sizeof_call_dummy_words,
4421 push_return_address, store_struct_return, and fix_call_dummy. Set
4422 push_dummy_call instead of deprecated_push_arguments.
4423 (mips_store_struct_return): Delete function.
4424 (mips_fix_call_dummy): Delete function.
4425 (mips_push_return_address): Delete function.
4426 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4427 RA_REGNUM and T9_REGNUM.
4428 (mips_n32n64_push_dummy_call): Ditto for
4429 mips_n32n64_push_arguments.
4430 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4431 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4432
6a65450a
AC
44332003-05-31 Andrew Cagney <cagney@redhat.com>
4434
4435 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4436 "dummy_addr" to "bp_addr".
4437 * infcall.c (call_function_by_hand): Pass "funaddr" to
4438 gdbarch_push_dummy_call.
4439 * gdbarch.h, gdbarch.c: Re-generate.
4440 * i386-tdep.c (i386_push_dummy_call): Update.
4441 * arm-tdep.c (arm_push_dummy_call): Update.
4442 * d10v-tdep.c (d10v_push_dummy_call): Update.
4443
c4f35dd8
MK
44442003-05-31 Mark Kettenis <kettenis@gnu.org>
4445
4446 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4447 variable declarations.
4448 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4449 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4450 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4451 x86_64_init_frame_pc, x86_64_init_frame_pc,
4452 x86_64_function_has_prologue): Remove prototypes.
4453 (X86_64_NUM_GREGS): New define.
4454 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4455 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4456 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4457 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4458 XMM1_REGNUM): Remove defines.
4459 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4460 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4461 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4462 X86_64_XMM1_REGNUM): New defines.
4463 (struct x86_64_register_info): Renamed from `struct
4464 register_info'. Remove `size' member.
4465 (x86_64_register_info_table): Remove variable.
4466 (x86_64_register_info): New variable.
4467 (X86_64_NUM_REGS): New define.
4468 (X86_64_NUM_GREGS): Remove define.
4469 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4470 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4471 Remove variables.
4472 (x86_54_dwarf2_reg_to_regnum): Remove function.
4473 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4474 (x86_64_dwarf_reg_to_regnum): New function.
4475 (x86_64_register_name): Rewrite.
4476 (x86_64_register_raw_size): Remove function.
4477 (x86_64_register_byte_table): Remove variable.
4478 (x86_64_register_byte): Remove function.
4479 (x86_64_register_virtual_type): Remove function.
4480 (x86_64_register_type): New function.
4481 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4482 x86_64_register_convert_to_raw): Remove functions.
4483 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4484 (x86_64_use_struct_convention): Make static. Adjust for renamed
4485 defines.
4486 (x86_64_frame_init_saved_regs): Remove function.
4487 (x86_64_push_arguments): Make static. Change to accept a regcache
4488 as argument.
4489 (x86_64_store_return_value, x86_64_extract_return_value): Make
4490 static. Rewrite based on i386 counterparts.
4491 (x86_64_push_dummy_call): New function.
4492 (X86_64_NUM_SAVED_REGS): New define.
4493 (x86_64_register_number): Remove function.
4494 (x86_64_store_struct_return): Remove function.
4495 (x86_64_frameless_function_invocation,
4496 x86_64_function_has_prologue): Remove functions.
4497 (PROLOG_BUFSIZE): Remove define.
4498 (struct x86_64_frame_cache): New structure.
4499 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4500 x86_64_frame_cache, x86_64_frame_this_id,
4501 x86_64_frame_prev_register, x86_64_frame_p,
4502 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4503 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4504 functions.
4505 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4506 variables.
4507 (x86_64_skip_prologue): Rewrite in terms of
4508 x86_64_analyze_prologue.
4509 (x86_64_frame_base_address): New function.
4510 (x86_64_frame_base): New variable.
4511 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4512 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4513 set deprecated_fp_regnum, deprecated_register_size,
4514 deprecated_register_bytes, register_raw_size, register_byte,
4515 register_virtual_type, register_convertiable,
4516 register_convert_to_virtual, convert_to_raw,
4517 deprecated_get_saved_register, deprecated_target_read_fp,
4518 deprecated_push_arguments, deprecated_push_return_address,
4519 deprecated_pop_frame, deprecated_store_struct_return,
4520 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4521 frameless_function_invocation, deprecated_frame_saved_pc,
4522 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4523 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4524 deprecated_init_frame_pc and virtual_frame_pointer. Call
4525 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4526 and x86_64_frame_p. Call frame_base_set_default to register
4527 x86_64_frame_base.
4528 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4529 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4530 (_initialize_x86_64_tdep): Remove function.
4531 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4532 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4533 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4534 define.
4535 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4536 (x86_64_linux_sigcontext_addr): Rewrite.
4537 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4538 x86_64_linux_frame_saved_pc): Remove functions.
4539 (x86_64_linux_pc_in_sigtramp): Renamed from
4540 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4541 trampoline.
4542 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4543 Remove_functions.
4544 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4545 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4546 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4547 (x86_64_regmap): Rename to regmap.
4548 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4549 x86_64_num_gregs.
4550 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4551 x86_64_regmap.
4552 (x86_64_fxsave_offset): Remove function.
4553 (supply_fpregset): Simply call x86_64_supply_fxsave.
4554 (fill_fpregset): Simply call x86_64_fill_fxsave.
4555 (fetch_inferior_registers, store_inferior_registers): Avoid
4556 asignment in if-statement.
4557 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4558 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4559 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4560 (fetch_core_registers): Remove function.
4561 (linux_elf_core_fns): Remove.
4562 (offsetoff): Don't define.
4563 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4564 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4565 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4566 add core-regset.o.
4567 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4568 protection against multiple includes instead of NM_X86_64_h. Add
4569 various comments. Include "config/nm-linux.h". Don't include
4570 <signal.h>.
4571 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4572 GET_THREAD_SIGNALS): Remove defines.
4573 (x86_64_register_u_addr, kernel_u_size,
4574 lin_thread_get_thread_signals): Remove prototypes.
4575 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4576 [HAVE_LINK_H]: Don't include "solib.h".
4577 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4578 * config/i386/tm-x86-64linux.h: Fix comments.
4579 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4580 x86-64-tdep.o): Update dependencies.
4581
c25083af
AC
45822003-05-30 Andrew Cagney <cagney@redhat.com>
4583
c8f55a7b
AC
4584 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4585 Change parameter type to a "struct regcache *".
4586
c25083af
AC
4587 * gdbarch.sh: Regardless of the multi-arch level, always define
4588 the macro when not already defined.
4589 * gdbarch.h, gdbarch.c: Re-generate.
4590
fbe586ae
RH
45912003-05-30 Richard Henderson <rth@redhat.com>
4592
4593 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4594 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4595 (alpha_mdebug_frame_this_id): Likewise.
4596 (alpha_mdebug_frame_prev_register): Likewise.
4597 (alpha_mdebug_frame_base_address): Likewise.
4598 (alpha_mdebug_frame_locals_address): Likewise.
4599 (alpha_mdebug_frame_args_address): Likewise.
4600 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4601 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4602 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4603 loop increment.
4604 (alpha_heuristic_frame_this_id): Make static.
4605 (alpha_heuristic_frame_prev_register): Likewise.
4606 (alpha_heuristic_frame_base_address): Likewise.
4607 * alpha-tdep.h: Update.
4608
acd5c798
MK
46092003-05-30 Mark Kettenis <kettenis@gnu.org>
4610
4611 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4612 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4613 defenitions.
4614 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4615 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4616 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4617 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4618 I386_ST0_REGNUM): New defines.
4619 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4620 codestream_get): Remove define.
4621 (codestream_next_addr, condestream_addr, condestream_buf,
4622 codestream_off, codestream_cnt): Remove variables.
4623 (codestream_fill, codestream_seek, codestream_read): Remove
4624 functions.
4625 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4626 functionality.
4627 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4628 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4629 i386_frame_saved_pc, i386_saved_pc_after_call,
4630 i386_frame_num_args, i386_frame_init_saved_regs,
4631 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4632 i386_push_arguments): Remove functions.
4633 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4634 functionality. Use i386_analyze_prologue instead of
4635 i386_get_frame_setup.
4636 (I386_NUM_SAVED_REGS): New define.
4637 (struct i386_frame_cache): New structure.
4638 (i386_alloc_frame_cache, i386_analyze_struct_return,
4639 i386_skip_probe, i386_analyze_frame_setup,
4640 i386_analyze_register_saves, i386_analyze_prologue,
4641 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4642 i386_frame_prev_register, i386_sigtramp_frame_cache,
4643 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4644 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4645 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4646 New functions.
4647 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4648 New variables.
4649 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4650 I386_EAX_REGNUM and I386_EDX_REGNUM.
4651 (i386_extract_return_value, i386_store_return_value): Use
4652 I386_ST0_REGNUM where appropriate.
4653 (i386_extract_struct_value_address): Rewrite to use extract_address.
4654 (i386_svr4_pc_in_sigtramp): Add comment.
4655 (i386_svr4_sigcontext_addr): Rewrite.
4656 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4657 TDEP->sc_sp_offset.
4658 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4659 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4660 of new defines. Set push_dummy_call, don't set
4661 deprecated_push_arguments, deprecated_push_return_address,
4662 deprecated_pop_frame. Don't set parm_boundary. Don't set
4663 deprecated_frame_chain, deprecated_frame_saved_pc,
4664 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4665 save_dummy_frame_tos, unwind_pc. Call
4666 frame_unwind_append_predicate and frame_base_set_default. Don't
4667 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4668 Don't set frameless_function_invocation. Don't set
4669 deprecated_register_bytes, deprecated_register_size,
4670 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4671 * i386-linux-tdep.c: Fix formatting in some comments.
4672 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4673 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4674 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4675 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4676 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4677 redundant parentheses.
4678 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4679 (i386_linux_sigcontext_addr): Use it. Rewrite.
4680 (find_minsym_and_objfile): Change name of second argument.
4681 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4682 changed. Use frame_pc_unwind instead of
4683 DEPRECATED_SAVED_PC_AFTER_CALL.
4684 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4685 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4686 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4687 unwinder.
4688 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4689 "dummy-frame.h".
4690 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4691 (_initialize_i386_cygwin_tdep): New prototype.
4692 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4693 deprecated_frame_chain_valid.
4694 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4695 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4696 Rely on the SVR4 defaults.
4697 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4698 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4699
c89b70f1
AC
47002003-05-30 Andrew Cagney <cagney@redhat.com>
4701
4702 * infcall.c (call_function_by_hand): Always call
4703 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4704
85b32d22
RH
47052003-05-30 Richard Henderson <rth@redhat.com>
4706
c89b70f1
AC
4707 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4708 increment.
85b32d22 4709
bfe51b1e
JB
47102003-05-29 Jim Blandy <jimb@redhat.com>
4711
4712 Use gdbarch methods for solib stuff on PowerPC Linux.
4713 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4714 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4715 show through.
4716 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4717 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4718 giving the same effect as the #definitions above.
4719
1abf022c
AF
47202003-05-29 Adam Fedor <fedor@gnu.org>
4721
4722 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4723 (find_implementation_from_class): Replace it with the standard
4724 case i.e. do nothing.
4725
d2427a71
RH
47262003-05-29 Richard Henderson <rth@redhat.com>
4727
4728 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4729 (alpha_linux_sigtramp_offset): Use it. Make static.
4730 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4731 update for new frame model.
4732 * alpha-mdebug-tdep.c: New file.
4733 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4734 (alpha_osf1_init_abi): Install it.
4735 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4736 (linked_proc_desc_table): Remove.
4737 (alpha_frame_past_sigtramp_frame): Remove.
4738 (alpha_dynamic_sigtramp_offset): Remove.
4739 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4740 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4741 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4742 (push_sigtramp_desc): Remove.
4743 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4744 (alpha_cannot_store_register): Likewise.
4745 (alpha_sigcontext_addr): Remove.
4746 (alpha_find_saved_regs): Remove.
4747 (alpha_frame_init_saved_regs): Remove.
4748 (alpha_init_frame_pc_first): Remove.
4749 (read_next_frame_reg): Remove.
4750 (alpha_frame_saved_pc): Remove.
4751 (alpha_saved_pc_after_call): Remove.
4752 (temp_proc_desc, temp_saved_regs): Remove.
4753 (alpha_about_to_return): Remove.
4754 (cached_proc_desc): Remove.
4755 (alpha_frame_chain): Remove.
4756 (alpha_print_extra_frame_info): Remove.
4757 (alpha_init_extra_frame_info): Remove.
4758 (alpha_frame_locals_address): Remove.
4759 (alpha_frame_args_address): Remove.
4760 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4761 (alpha_push_dummy_frame): Remove.
4762 (alpha_pop_frame): Remove.
4763 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4764 (alpha_read_insn): New.
4765 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4766 for different insn encodings.
4767 (alpha_in_lenient_prologue): Remove.
4768 (struct alpha_sigtramp_unwind_cache): New.
4769 (alpha_sigtramp_frame_unwind_cache): New.
4770 (alpha_sigtramp_register_address): New.
4771 (alpha_sigtramp_frame_this_id): New.
4772 (alpha_sigtramp_frame_prev_register): New.
4773 (alpha_sigtramp_frame_unwind): New.
4774 (alpha_sigtramp_frame_p): New.
4775 (struct alpha_heuristic_unwind_cache): New.
4776 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4777 don't count nop insns that occur between functions.
4778 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4779 heuristic_proc_desc, but without the mdebug wrapping.
4780 (alpha_heuristic_frame_this_id): New.
4781 (alpha_heuristic_frame_prev_register): New.
4782 (alpha_heuristic_frame_unwind): New.
4783 (alpha_heuristic_frame_p): New.
4784 (alpha_heuristic_frame_base_address): New.
4785 (alpha_heuristic_frame_base): New.
4786 (alpha_unwind_dummy_id): New.
4787 (alpha_unwind_pc): New.
4788 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4789 frame related deprecated initializations; install replacements.
4790 (alpha_dump_tdep): Remove.
4791 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4792 (alpha_read_insn, alpha_after_prologue,
4793 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4794 alpha_heuristic_frame_prev_register,
4795 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4796 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4797 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4798 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4799
93ec1121
AC
48002003-05-29 Andrew Cagney <cagney@redhat.com>
4801
4802 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4803 dependant on the availability of ASSERT_FUNCTION.
4804 (ASSERT_FUNCTION): Do not define when there is no function name.
4805
98f08d3d
KB
48062003-05-29 Kevin Buettner <kevinb@redhat.com>
4807
4808 From Jimi X <jimix@watson.ibm.com>:
4809 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4810
0897f59b
JB
48112003-05-28 Jim Blandy <jimb@redhat.com>
4812
4813 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4814 argument to ptrace to int; the system headers should give it the
4815 right type, and pointers don't fit in ints on powerpc64-*-*.
4816
14898363
L
48172003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4818
4819 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4820 DW_TAG_catch_block.
4821
a7a48797
EZ
48222003-05-26 Elena Zannoni <ezannoni@redhat.com>
4823
4824 * stabsread.c (dbx_lookup_type): Make static.
4825 (read_type): Ditto.
4826 (add_undefined_type): Ditto.
4827 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4828 not export.
4829
f5479e9c
EZ
48302003-05-26 Elena Zannoni <ezannoni@redhat.com>
4831
4832 * hpread.c (hpread_has_name): Make static.
4833 (hpread_psymtab_to_symtab): Ditto.
4834 (file_exists): Ditto.
4835 (hpread_call_pxdb): Ditto.
4836 (hpread_pxdb_needed): Ditto.
4837 (hpread_quick_traverse): Ditto.
4838 (hpread_get_header): Ditto.
4839 (hpread_get_lntt): Ditto.
4840 (hpread_get_slt): Ditto.
4841 (class_of): Ditto.
4842
eb2e12d7
AS
48432003-05-25 Andreas Schwab <schwab@suse.de>
4844
78bf922a
AS
4845 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4846 stack_align and deprecated_extra_stack_alignment_needed.
4847 (m68k_stack_align): Delete.
4848
eb2e12d7
AS
4849 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4850 (m68k_register_virtual_size): Likewise.
4851 (altos_skip_prologue): Remove obsolete function.
4852 (isi_frame_num_args): Likewise.
4853 (news_frame_num_args): Likewise.
4854 (m68k_fix_call_dummy): Make static.
4855 (m68k_push_dummy_frame): Likewise.
4856 (m68k_pop_frame): Likewise.
4857 (m68k_skip_prologue): Likewise.
4858 (m68k_frame_init_saved_regs): Likewise.
4859 (m68k_saved_pc_after_call): Likewise.
4860 (m68k_get_longjmp_target): Make multi-arch.
4861 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4862 structure. Register m68k_get_longjmp_target if enabled.
4863 * m68k-tdep.h (struct gdbarch_tdep): Define.
4864 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4865
4866 * Makefile.in (config.status): Also depend on configure.tgt
4867 and configure.host.
4868 (m68klinux-tdep.o): Update dependencies.
4869 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4870 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4871 (M68K_LINUX_JB_PC): Define.
4872 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4873 and take additional parameter.
4874 (m68k_linux_sigtramp_saved_pc): Update.
4875 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4876 m68k_linux_pc_in_sigtramp, in_plt_section,
4877 find_solib_trampoline_target.
4878 * config/m68k/tm-linux.h: Don't include any tm headers.
4879 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4880 (JB_ELEMENT_SIZE): Likewise.
4881 (JB_PC): Likewise.
4882 (GET_LONGJMP_TARGET): Likewise.
4883 (IN_SIGTRAMP): Likewise.
4884 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4885
eb2c22dc
MK
48862003-05-25 Mark Kettenis <kettenis@gnu.org>
4887
4888 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4889 (sparc32_push_arguments): Re-implement by calling
4890 sparc32_do_push_arguments.
4891
44b7b84e
MK
48922003-05-25 Mark Kettenis <kettenis@gnu.org>
4893
4894 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4895 SPARC_O1_REGNUM): New defines.
4896 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4897 (sparc32_store_return_value): New function.
4898 (sparc_extract_struct_value_address): Rewrite to operate on a
4899 regcache.
4900 (sparc_gdbarch_init): Don't set
4901 deprecated_extract_struct_value_address. Set
4902 extract_struct_value_address instead. Don't set
4903 deprecated_extract_return_value and deprecated_store_return_value
4904 for 32-bit targets. Set extract_return_value and
4905 store_return_value instead.
4906 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4907 DEPRECTAED_EXTRACT_RETURN_VALUE,
4908 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4909 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4910 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4911 (sparc_store_return_value): Remove prototype.
4912 (sparc32_store_return_value): New prototype.
4913 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4914 Adjust prototypes.
4915
f6ad61e3
MK
49162003-05-24 Mark Kettenis <kettenis@gnu.org>
4917
4918 * sparcnbsd-tdep.c: Include "gdb_string.h".
4919
b276f1bb
AC
49202003-05-23 Andrew Cagney <cagney@redhat.com>
4921
4922 * p-valprint.c (pascal_val_print): Replace extract_address with
4923 the inline equivalent extract_unsigned_integer.
4924 * jv-valprint.c (java_value_print): Ditto.
4925 * ada-valprint.c (ada_val_print_1): Ditto.
4926 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4927
e76c5fcc
TR
49282003-05-23 Theodore A. Roth <troth@openavr.org>
4929
4930 * blockframe.c (frameless_look_for_prologue): Remove unused
4931 after_prologue variable.
4932
2cdd89cb
MK
49332003-05-23 Mark Kettenis <kettenis@gnu.org>
4934
4935 * blockframe.c (get_pc_function_start): Rewrite to avoid
4936 asignments in if-statements.
4937
182d43bc
EZ
49382003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4939
4940 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 4941 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
4942 files, don't relocate absolute symbols (and do use mst_abs).
4943
e8f3fcdd
AC
49442003-05-23 Andrew Cagney <cagney@redhat.com>
4945
4946 * objc-lang.c: Include "gdb_assert.h".
4947 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4948 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4949 (gdb_check, gdb_check_fatal): Delete functions.
4950 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4951 gdb_assert.
4952 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4953 * Makefile.in (objc-lang.o): Update dependencies.
4954
3c23e6fb
ILT
49552003-05-22 Ian Lance Taylor <ian@airs.com>
4956
4957 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4958 with fprintf_filtered, not fprintf_unfiltered.
4959
af1342ab
AC
49602003-05-22 Andrew Cagney <cagney@redhat.com>
4961
4962 * stack.c (frame_info): Inline extract_address, replacing it with
4963 extract_unsigned_integer.
4964 * findvar.c (unsigned_pointer_to_address): Ditto.
4965 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4966 * dwarf2expr.c (dwarf2_read_address): Ditto.
4967 * frame.c (frame_pc_unwind): Update comment.
4968 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4969
47e242ec
JJ
49702003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4971
4972 * infptrace.c (detach): Call print_sys_errmsg rather than
4973 perror_with_name to issue warning message when errno is non-zero
4974 after calling ptrace detach.
4975
e2ac8128
JB
49762003-05-21 J. Brobecker <brobecker@gnat.com>
4977
4978 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4979 macro definitions from here...
4980 * hppa-tdep.c: ...to there.
4981
92b3541e
KB
49822003-05-20 Kevin Buettner <kevinb@redhat.com>
4983
4984 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4985 register_ptrace_addr(). Fix all callers.
4986
55809acb
AS
49872003-05-21 Andreas Schwab <schwab@suse.de>
4988
4989 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4990 dependencies.
4991 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4992 end.
4993 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4994 (_initialize_m68k_linux_tdep): New function.
4995 (m68k_linux_frame_saved_pc): Make static.
4996 (m68k_linux_extract_return_value): Likewise.
4997 (m68k_linux_store_return_value): Likewise.
4998 (m68k_linux_extract_struct_value_address): Likewise.
4999 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5000 Remove.
5001 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5002 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5003 (DEPRECATED_FRAME_SAVED_PC): Remove.
5004
0fbc10f7
KW
50052003-05-20 Kris Warkentin <kewarken@qnx.com>
5006
5007 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5008 regset numbering rather than our own.
5009
58da2eb2
DC
50102003-05-19 David Carlton <carlton@bactrian.org>
5011
5012 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5013
1fcb5155
DC
50142003-05-19 David Carlton <carlton@bactrian.org>
5015
5016 Partial fix for PR c++/827.
5017 * cp-support.h: Include symtab.h.
5018 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5019 * cp-namespace.c: Update contributors.
5020 (cp_lookup_symbol_nonlocal): New.
5021 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5022 (lookup_symbol_file): Ditto.
5023 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5024 * block.h: Declare block_scope, block_using, block_global_block.
5025 * block.c (block_scope): New.
5026 (block_using, block_global_block): Ditto.
5027 * Makefile.in (cp_support_h): Depend on symtab_h.
5028 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5029
5f9a71c3
DC
50302003-05-19 David Carlton <carlton@bactrian.org>
5031
5032 * language.h (struct language_defn): Add 'la_value_of_this'
5033 and 'la_lookup_symbol_nonlocal' members.
5034 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5035 lookup_symbol_static, lookup_symbol_global,
5036 lookup_symbol_aux_block.
5037 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5038 if we should search fields of this and how to do static/global
5039 lookup.
5040 (lookup_symbol_aux_block): Make extern.
5041 (basic_lookup_symbol_nonlocal): New.
5042 (lookup_symbol_static, lookup_symbol_global): Ditto.
5043 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5044 'la_lookup_symbol_nonlocal' members.
5045 * c-lang.c (c_language_defn, cplus_language_defn)
5046 (asm_language_defn, minimal_language_defn): Ditto.
5047 * jv-lang.c (java_language_defn): Ditto.
5048 * language.c (unknown_language_defn, auto_language_defn)
5049 (local_language_defn): Ditto.
5050 * m2-lang.c (m2_language_defn): Ditto.
5051 * objc-lang.c (objc_language_defn): Ditto.
5052 * scm-lang.c (scm_language_defn): Ditto.
5053 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5054 * p-lang.c (pascal_language_defn): Ditto for both.
5055 * Makefile.in (f-lang.o): Depend on value_h.
5056 (p-lang.o): Ditto.
5057
89a9d1b1
DC
50582003-05-19 David Carlton <carlton@bactrian.org>
5059
5060 * block.h: Declare block_static_block.
5061 * block.c (block_static_block): New.
5062 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5063 lookup_symbol_aux_local, calling block_static_block instead.
5064 (lookup_symbol_aux_local): Delete 'static_block' argument.
5065
eed3f8ab
DC
50662003-05-19 David Carlton <carlton@bactrian.org>
5067
5068 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5069
a09d8bda
ML
50702003-05-19 Michal Ludvig <mludvig@suse.cz>
5071
5072 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5073 register numbers mapping.
5074
69636828
AF
50752003-05-18 Adam Fedor <fedor@gnu.org>
5076
5077 * symtab.c (completion_list_objc_symbol): New function.
5078 (make_symbol_completion_list): Use it to add ObjC symbols
5079 when looking though the list.
5080 (language_search_unquoted_string): New function.
5081 (make_file_symbol_completion_list): Use it.
5082
55baeb84
AS
50832003-05-18 Andreas Schwab <schwab@suse.de>
5084
d0b45d99
AS
5085 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5086 dependencies.
5087 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5088 as m68k_linux_extract_return_value.
5089 (DEPRECATED_STORE_RETURN_VALUE): Define as
5090 m68k_linux_store_return_value.
5091 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5092 m68k_linux_extract_struct_value_address.
5093 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5094 get_next_frame, get_frame_base, get_frame_pc.
5095 (m68k_linux_frame_saved_pc): Use get_frame_base.
5096 (m68k_linux_extract_return_value): New function.
5097 (m68k_linux_store_return_value): New function.
5098 (m68k_linux_extract_struct_value_address): New function.
5099 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5100
55baeb84
AS
5101 * c-exp.y (typebase): Remove duplicate occurence of
5102 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5103 of lookup_signed_typename.
55baeb84 5104
b6b08ebf
MK
51052003-05-18 Mark Kettenis <kettenis@gnu.org>
5106
5107 * dwarf2loc.c (find_location_expression): Change type of second
5108 argument to `size_t *'.
5109 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5110 for size variable.
5111
5ad1c190
DC
51122003-05-18 David Carlton <carlton@bactrian.org>
5113
5114 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5115 'linkage_name'. Add comment.
5116 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5117 'linkage_name'.
5118 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5119 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5120 (lookup_block_symbol): Ditto.
5121
b8b527c5
AC
51222003-05-16 Andrew Cagney <cagney@redhat.com>
5123
5124 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5125 * gdbarch.h, gdbarch.c: Re-generate.
5126 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5127 * TODO (REGISTER_BYTES): Delete reference.
5128 * alpha-tdep.c (alpha_gdbarch_init): Update.
5129 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5130 * x86-64-tdep.c (x86_64_init_abi): Update.
5131 * vax-tdep.c (vax_gdbarch_init): Update.
5132 * v850-tdep.c (v850_gdbarch_init): Update.
5133 * sparc-tdep.c (sparc_gdbarch_init): Update.
5134 * sh-tdep.c (sh_gdbarch_init): Update.
5135 * s390-tdep.c (s390_gdbarch_init): Update.
5136 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5137 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5138 (ns32k_gdbarch_init_32382): Update.
5139 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5140 * mcore-tdep.c (mcore_gdbarch_init): Update.
5141 * m68k-tdep.c (m68k_gdbarch_init): Update.
5142 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5143 * ia64-tdep.c (ia64_gdbarch_init): Update.
5144 * i386-tdep.c (i386_gdbarch_init): Update.
5145 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5146 * hppa-tdep.c (hppa_gdbarch_init): Update.
5147 * h8300-tdep.c (h8300_gdbarch_init): Update.
5148 * frv-tdep.c (frv_gdbarch_init): Update.
5149 * cris-tdep.c (cris_gdbarch_init): Update.
5150 * avr-tdep.c (avr_gdbarch_init): Update.
5151 * arm-tdep.c (arm_gdbarch_init): Update.
5152 * sparc-tdep.c (sparc_pop_frame): Update.
5153 * rs6000-tdep.c (rs6000_pop_frame): Update.
5154 * remote.c (init_remote_state): Update.
5155 (remote_prepare_to_store): Update.
5156 * remote-vx.c (vx_prepare_to_store): Update.
5157 * remote-sds.c (sds_fetch_registers): Update.
5158 (sds_prepare_to_store): Update.
5159 * remote-array.c: Update.
5160 * regcache.c (init_legacy_regcache_descr): Update.
5161 (init_regcache_descr): Update.
5162 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5163 (mips_o64_extract_return_value): Update.
5164 * irix5-nat.c (fetch_core_registers): Update.
5165 * irix4-nat.c (fetch_core_registers): Update.
5166 * i386-tdep.h: Update.
5167 * hppa-tdep.c (pa_do_registers_info): Update.
5168 (pa_do_strcat_registers_info): Update.
5169 * cris-tdep.c (cris_register_bytes_ok): Update.
5170 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5171 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5172 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5173 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5174 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5175 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5176 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5177 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5178 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5179 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5180 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5181 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5182 (REGISTER_BYTES_OK): Update.
5183 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5184 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5185
ee2842e2
ILT
51862003-05-16 Ian Lance Taylor <ian@airs.com>
5187
5188 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5189 (vax_print_insn, print_insn_arg): Remove static functions.
5190 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5191 print_insn_vax from opcodes library.
5192 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5193
973177d3
AC
51942003-05-15 Andrew Cagney <cagney@redhat.com>
5195
aaab4dba
AC
5196 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5197 * target.h (memory_breakpoint_from_pc): Delete declaration.
5198 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5199 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5200 * monitor.c (monitor_insert_breakpoint): Use
5201 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5202 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5203 * gdbarch.h, gdbarch.c: Re-generate.
5204 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5205 (sparc_gdbarch_init): Set breakpoint_from_pc to
5206 sparc_breakpoint_from_pc.
5207 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5208 (BREAKPOINT_FROM_PC): Define.
5209 (sparc_breakpoint_from_pc): Declare.
5210 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5211 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5212 (BREAKPOINT_FROM_PC): Define.
5213 (BREAKPOINT): Delete macro.
5214 * target.h: Update comment.
5215 * s390-tdep.c (s390_gdbarch_init): Update comments.
5216 * remote.c: Update comments.
5217 * remote-mips.c: Update comments.
5218 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5219 * mem-break.c: Update comment.
5220 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5221 (ia64_memory_insert_breakpoint): Update.
5222 * config/sparc/tm-sparc.h: Update comment.
5223 * config/pa/tm-hppa64.h: Update comment.
5224 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5225 (rs6000_breakpoint_from_pc): Update.
5226 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5227 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5228 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5229 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5230 (mips_breakpoint_from_pc): Update.
5231 (mips_dump_tdep): Update.
5232
e06963ff
AC
5233 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5234 * minsyms.c (lookup_minimal_symbol): Inline
5235 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5236
973177d3
AC
5237 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5238 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5239 * p-lang.c (pascal_printstr): Ditto.
5240 * objc-lang.c (objc_printstr): Ditto.
5241 * m2-lang.c (m2_printstr): Ditto.
5242 * jv-valprint.c (java_print_value_fields): Ditto.
5243 * f-lang.c (f_printstr): Ditto.
5244 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5245 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5246 for repeat_count_threshold.
5247 * Makefile.in (cp-valprint.o): Update dependencies.
5248
5ea2bd7f 52492003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5250
5ea2bd7f
JJ
5251 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5252 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5253 they start with mov r2,r12. Support skipping over indirect stores
5254 of the input registers. Upon hitting a non-nop branch instruction
5255 or predicated instruction, bail out by setting lim_pc to the current
5256 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5257 beyond our calculated value and we have trust_limit set,
5258 use the lim_pc value.
5259
cc8c88f3
AC
52602003-05-15 Andrew Cagney <cagney@redhat.com>
5261
5262 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5263 generic_find_dummy_frame.
5264 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5265 (deprecated_generic_find_dummy_frame): Update.
5266 (deprecated_read_register_dummy): Update.
5267 * frame.c (deprecated_generic_get_saved_register): Update.
5268
909cd28e
TR
52692003-05-15 Theodore A. Roth <troth@openavr.org>
5270
5271 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5272 (avr_gdbarch_init): Set breakpoint_from_pc method.
5273
b923b08d
AC
52742003-05-15 Andrew Cagney <cagney@redhat.com>
5275
5276 * regcache.c (build_regcache): Set deprecated_register_valid
5277 directly.
5278 (deprecated_grub_regcache_for_register_valid): Delete function.
5279 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5280 declaration.
5281
ae2f03ac 52822003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5283
5284 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5285 * symtab.c (lookup_symbol_aux): Delete calls to
5286 lookup_symbol_aux_minsyms.
5287 (lookup_symbol_aux_minsyms): Comment out function and
5288 prototype. Delete lookup by mangled name.
ae2f03ac 5289
18ec9831
KB
52902003-05-14 Kevin Buettner <kevinb@redhat.com>
5291
5292 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5293 correctly indicate an empty stack and ``stack_allocated'' to the
5294 indicate the number of elements initially allocated.
5295 (dwarf_expr_grow_stack): Simplify method for computing new
5296 stack size. Don't loop infinitely if ``stack_len'' is zero.
5297 (execute_stack_op): Move ``ctx->in_reg'' initialization
5298 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5299 be used in conjuction with DW_OP_piece. Revise error message
5300 accordingly.
5301
de18ac1f
TR
53022003-05-14 Theodore A. Roth <troth@openavr.org>
5303
5304 * MAINTAINERS: Update my email address.
5305 * avr-tdep.c: Ditto.
5306
176620f1
EZ
53072003-05-14 Elena Zannoni <ezannoni@redhat.com>
5308
5309 * symtab.h (enum domain_enum): Rename from namespace_enum.
5310 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5311 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5312 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5313 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5314 TYPES_NAMESPACE, METHODS_NAMESPACE.
5315 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5316 (struct symbol, struct partial_symbol): Rename field
5317 'namespace_enum namespace' to 'domain_enum domain'.
5318 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5319 Delete old define kludge for namespace.
5320
5321 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5322 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5323 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5324 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5325 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5326 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5327 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5328 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5329 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5330 occurrences of the above.
5331
b7f31508
ILT
53322003-05-14 Ian Lance Taylor <ian@airs.com>
5333
5334 * Makefile.in (install-only): Use $(SHELL) when running
5335 mkinstalldirs.
5336
2fdbdd39
ILT
53372003-05-13 Ian Lance Taylor <ian@airs.com>
5338
a208d82c
ILT
5339 * MAINTAINERS (write after approval): Add myself.
5340
2fdbdd39
ILT
5341 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5342 second and third arguments.
5343 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5344 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5345
fbd9dcd3
AC
53462003-05-13 Andrew Cagney <cagney@redhat.com>
5347
5348 * defs.h (store_address): Delete declaration.
5349 findvar.c (store_address): Delete function.
5350 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5351 store_unsigned_integer.
5352 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5353 * v850-tdep.c (v850_push_arguments): Ditto.
5354 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5355 * sh-tdep.c (sh64_get_saved_register): Ditto.
5356 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5357 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5358 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5359 (mips_get_saved_register): Ditto.
5360 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5361 (find_func_descr, ia64_push_arguments): Ditto.
5362 * i386-tdep.c (i386_push_arguments): Ditto.
5363 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5364 * frv-tdep.c (frv_push_arguments): Ditto.
5365 * frame.c (legacy_saved_regs_prev_register): Ditto.
5366 (deprecated_generic_get_saved_register): Ditto.
5367 * findvar.c (unsigned_address_to_pointer): Ditto.
5368 * dwarf2read.c (dwarf2_const_value): Ditto.
5369 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5370 * alpha-tdep.c (alpha_push_arguments): Ditto.
5371
6760f9e6
JB
53722003-05-12 J. Brobecker <brobecker@gnat.com>
5373
5374 * NEWS: Mention that the hppa-hpux port has been partially
5375 multiarched (32bit ABIT only, so far).
5376
30e221b4
AC
53772003-05-11 Andrew Cagney <cagney@redhat.com>
5378
5379 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5380 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5381 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5382 sim/testsuite/sim/arm/misaligned2.ms, and
5383 sim/testsuite/sim/arm/misaligned3.ms.
5384 * disasm.h (struct ui_file): Add opaque struct declaration.
5385 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5386 * frame.h (struct ui_file): Ditto.
5387
dea7f9ba
MK
53882003-05-11 Mark Kettenis <kettenis@gnu.org>
5389
5390 * value.h: Pretty print.
5391
01986c48
MK
53922003-05-10 Mark Kettenis <kettenis@gnu.org>
5393
5394 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5395
123a958e
AC
53962003-05-08 Andrew Cagney <cagney@redhat.com>
5397
5398 * regcache.h (max_register_size): Delete declaration.
5399 * regcache.c (max_register_size): Delete function.
5400 (struct regcache_descr): Delete field "max_register_size".
5401 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5402 registers fit in MAX_REGISTER_SIZE.
5403 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5404 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5405 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5406 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5407 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5408 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5409 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5410 * dve3900-rom.c, hppa-tdep.c: Ditto.
5411
eb294659
DC
54122003-05-08 David Carlton <carlton@math.stanford.edu>
5413
5414 * valops.c (push_word): Fix typo.
5415
d9d9c31f
AC
54162003-05-08 Andrew Cagney <cagney@redhat.com>
5417
5418 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5419 * gdbarch.h: Re-generate.
5420 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5421 (legacy_max_register_raw_size): Delete declaration.
5422 * regcache.c (legacy_max_register_raw_size): Delete function.
5423 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5424 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5425 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5426 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5427 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5428 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5429 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5430 * findvar.c, dwarf2cfi.c: Ditto.
5431
22540ece
AC
54322003-05-08 Andrew Cagney <cagney@redhat.com>
5433
5434 * mips-tdep.c (read_signed_register): New function, moved to here
5435 from "regcache.c".
5436 (read_signed_register_pid): Ditto.
5437 * regcache.c (read_signed_register_pid): Delete function, moved to
5438 "mips-tdep.c".
5439 (read_signed_register): Ditto.
5440 * regcache.h (read_signed_register): Delete declaration.
5441 (read_signed_register_pid): Delete declaration.
5442
0c92afe8
AC
54432003-05-08 Andrew Cagney <cagney@redhat.com>
5444
5445 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5446 * gdbarch.h: Re-generate.
5447 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5448 (legacy_max_register_virtual_size): Delete declaration.
5449 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5450 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5451 * tracepoint.c (memrange_sortmerge): Ditto.
5452 * sparc-tdep.c (sparc_print_registers): Ditto.
5453 * regcache.c (legacy_max_register_virtual_size): Delete function.
5454
6037b830
JB
54552002-05-08 J. Brobecker <brobecker@gnat.com>
5456
5457 * fork-child.c (escape_bang_in_quoted_argument): New function.
5458 (fork_inferior): Escape '!' characters in quoted arguments
5459 only when needed.
5460
5d62c8b1
JB
54612003-05-08 J. Brobecker <brobecker@gnat.com>
5462
5463 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5464 the language of the CU is not currently supported by GDB.
5465
20a0e81d
JB
54662003-05-08 J. Brobecker <brobecker@gnat.com>
5467
5468 * defs.h (language): Add language_minimal enum value.
5469 * c-lang.c (minimal_language_defn): New language definition.
5470 (_initialize_c_language): Add the new minimal language to the list
5471 of languages known to GDB.
5472
710ee10a
KB
54732003-05-08 Kevin Buettner <kevinb@redhat.com>
5474
5475 * frame.c (get_frame_type): Don't attempt to lazily initialize
5476 frame's unwinder for legacy frames.
5477
1750fa04
AC
54782003-05-07 Andrew Cagney <cagney@redhat.com>
5479
5480 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5481 and "regcache" parameters.
5482 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5483
ddf9f258 54842003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5485
5486 * dwarf2read.c (dwarf_decode_lines): Only use output of
5487 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
5488 the current address.
5489
87767c29
AC
54902003-05-07 Andrew Cagney <cagney@redhat.com>
5491
5492 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5493 code.
5494
5e7b2f39
JB
54952003-05-07 Jim Blandy <jimb@redhat.com>
5496
5497 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5498 'maint info symtabs' and 'maint info psymtabs'.
5499 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5500 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5501 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5502 Declarations updated.
5503 * maint.c (maintenance_list_command): Delete.
5504 (_initialize_maint_cmds): Update calls to add_cmd.
5505 * gdbcmd.h (maintenancelistlist): Delete declaration.
5506 * cli/cli-cmds.c (maintenancelistlist): Delete.
5507 (init_cmd_lists): Don't initialize it.
5508 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5509
f6684c31
AC
55102003-05-07 Andrew Cagney <cagney@redhat.com>
5511
5512 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5513 "regcache".
5514 (d10v_print_registers_info): Update.
5515 (d10v_dmap_register, d10v_imap_register): Delete functions.
5516 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5517 and "imap_register".
5518 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5519 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5520 * arch-utils.c (generic_remote_translate_xfer_address): Add
5521 "regcache" and "gdbarch" parameters.
5522 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5523 parameter. Change class to multi-arch.
5524 * gdbarch.h, gdbarch.c: Re-generate.
5525 * remote.c (remote_xfer_memory): Use
5526 gdbarch_remote_translate_xfer_address.
8ffd9b1b 5527
e4846b08
JJ
55282003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5529
5530 * infrun.c (prev_pc): Move declaration ahead of proceed().
5531 (proceed): Refresh prev_pc value before resuming.
5532 (stop_stepping): Remove code to refresh prev_pc.
5533
6b71b8ac
KW
55342003-05-06 Kris Warkentin <kewarken@qnx.com>
5535
5536 * nto-tdep.c: Removed stray comment.
5537
47979a4b
KW
55382003-05-06 Kris Warkentin <kewarken@qnx.com>
5539
5540 * i386-nto-tdep.c: Fix old K&R function definitions.
5541 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5542 Also change add_show_from_set() call to add_setshow_cmd().
5543 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5544
00905d52
AC
55452003-05-05 Andrew Cagney <cagney@redhat.com>
5546
5547 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5548 (fprint_dummy_frames): New function.
5549 (maintenance_print_dummy_frames): New function.
5550 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5551 * frame.c (fprint_frame_id): Make global.
5552 * frame.h (fprint_frame_id): Declare.
5553 * Makefile.in (dummy-frame.o): Update dependencies.
5554
b1e29e33
AC
55552003-05-05 Andrew Cagney <cagney@redhat.com>
5556
5557 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5558 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5559 SIZEOF_CALL_DUMMY_WORDS.
5560 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5561 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5562 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5563 CALL_DUMMY_BREAKPOINT_OFFSET.
5564 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5565 CALL_DUMMY_START_OFFSET.
5566 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5567 * gdbarch.h, gdbarch.c: Re-generate.
5568 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5569 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5570 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5571 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5572 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5573 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5574 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5575 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5576 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5577 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5578 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5579 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5580 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5581 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5582 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
5583
55842003-05-05 Kris Warkentin <kewarken@qnx.com>
5585
5586 * configure.tgt: Add i[3456]86-*-nto*.
5587 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5588 * nto-tdep.c: New file. Neutrino target support routines.
5589 * nto-tdep.h: New file. Neutrino target header.
5590 * config/tm-qnxnto.h: New file.
5591 * config/i386/i386nto.mt: New file.
5592 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 5593
0ce3d317
AC
55942003-05-04 Andrew Cagney <cagney@redhat.com>
5595
5596 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5597 (load_infrun_state): Ditto.
5598 (struct thread_info): Drop "prev_func_name" field.
5599 * thread.c (load_infrun_state): Update.
5600 (save_infrun_state): Update.
5601 * infrun.c (prev_func_name): Delete variable.
5602 (init_wait_for_inferior): Do not clear prev_func_name.
5603 (stop_stepping, keep_going, context_switch): Do not swap
5604 prev_func_name.
5605 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5606 instead of PC_IN_SIGTRAMP.
5607
46654a5b
AC
56082003-05-04 Andrew Cagney <cagney@redhat.com>
5609
5610 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5611 REGISTER_BYTE with register_offset_hack.
5612 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5613 that REGISTER_BYTE is consistent with the regcache.
5614 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5615 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 5616
14b08c1b
MK
56172003-05-04 Mark Kettenis <kettenis@gnu.org>
5618
04c8243f
MK
5619 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5620 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5621
14b08c1b
MK
5622 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5623
c7a11e01
JB
56242003-05-03 J. Brobecker <brobecker@gnat.com>
5625
5626 From Thierry Schneider <tpschneider1@yahoo.com>
5627 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5628 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5629 (mi-cmd-symbol.o): Add rule.
5630
7043d8dc
AC
56312003-05-03 Andrew Cagney <cagney@redhat.com>
5632
5633 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5634 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5635 * gdbarch.h, gdbarch.c: Re-generate.
5636 * d10v-tdep.c (d10v_push_dummy_code): New function.
5637 (d10v_gdbarch_init): Set push_dummy_code.
5638 * infcall.c (legacy_push_dummy_code): New function.
5639 (generic_push_dummy_code): New function.
5640 (push_dummy_code): New function.
5641 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5642 instead of dummy_addr, to push_dummy_call. Move call to
5643 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5644 switch.
5645 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5646
92bf2b80
AC
56472003-05-03 Andrew Cagney <cagney@redhat.com>
5648
5649 * disasm.h (print_insn): Declare.
5650 * disasm.c (init_gdb_disassemble_info): New function.
5651 (gdb_disassembly): Call init_gdb_disassemble_info.
5652 (gdb_print_insn): New function.
5653 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5654 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5655 * mcore-tdep.c: Include "disasm.h"
5656 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5657 * d10v-tdep.c: Include "disasm.h".
5658 (display_trace): Call gdb_print_insn, instead of print_insn.
5659 (print_insn): Delete function.
5660 * printcmd.c: Include "disasm.h".
5661 (print_insn): Delete function.
5662 (print_formatted): Call gdb_print_insn, instead of print_insn.
5663 * Makefile.in (printcmd.o): Update dependencies.
5664 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 5665
27d94c49
AC
56662003-05-02 Andrew Cagney <cagney@redhat.com>
5667
82de1e5b
AC
5668 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5669 PC_REGNUM, re-indent.
5670 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5671 PC_REGNUM isn't set.
5672
27d94c49
AC
5673 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5674 * gdbarch.h, gdbarch.c: Re-generate.
5675 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5676 register_virtual_size, pc_regnum, or register_bytes.
5677 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5678 (d10v_register_type): Use D10V_PC_REGNUM.
5679 (d10v_print_registers_info, d10v_read_pc): Ditto.
5680 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5681 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5682
a9c0dc7f
DC
56832003-05-02 David Carlton <carlton@bactrian.org>
5684
5685 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5686 the name with mstrsave.
5687
e33d66ec
EZ
56882003-05-02 Elena Zannoni <ezannoni@redhat.com>
5689
5690 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5691 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5692 (host_charset_name, target_charset_name): New vars for use by
5693 set/show commands.
5694 (host_charset_enum, target_charset_enum): New enums for set/show
5695 commands.
5696 (set_charset_sfunc, set_host_charset_sfunc,
5697 set_target_charset_sfunc): New functions.
5698 (set_host_charset, set_target_charset): Make static.
5699 (list_charsets, set_host_charset_command,
5700 set_target_charset_command): Delete functions.
5701 (show_charset_command): Rewrite as....
5702 (show_charset): Hook this up with the set/show command mechanism.
5703 (_initialize_charset): Change names of charsets to match the
5704 set/show enums. Use host_charset_name and target_charset_name.
5705 Use set/show mechanism for charset, host-charset, target-charset
5706 commands. Do not make 'show host-charset' and 'show
5707 target-charset' be aliases of 'show charset'.
5708
5709 * charset.h (set_host_charset, set_target_charset): Don't export,
5710 they are not used outside the file.
5711
2b6fd0d8
AC
57122003-05-01 Andrew Cagney <cagney@redhat.com>
5713
5714 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5715 (gdb_disassembly): Make "di" non static, always initialize and
5716 cleanup. Always use dis_asm_read_memory.
5717 (gdb_dis_asm_read_memory): Delete function.
5718
6ae2f580
AC
57192003-05-01 Andrew Cagney <cagney@redhat.com>
5720
5721 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5722 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5723
810ecf9f
AC
57242003-04-30 Andrew Cagney <cagney@redhat.com>
5725
5726 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5727 "tm_print_insn_info".
5728 (TARGET_PRINT_INSN_INFO): Delete macro.
5729 (dis_asm_read_memory): Delete function declaration.
5730 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5731 (tm_print_insn_info): Delete variable definition.
5732 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5733 * gdbarch.h, gdbarch.c: Re-generate.
5734 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5735 "deprecated_tm_print_insn_info".
5736 * mcore-tdep.c (mcore_dump_insn): Ditto.
5737 * mips-tdep.c (mips_gdbarch_init): Ditto.
5738 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5739 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5740 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5741 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5742 instead of TARGET_PRINT_INSN_INFO, add comment.
5743 * s390-tdep.c (s390_get_frame_info): Instead of
5744 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5745 (s390_check_function_end, s390_is_sigreturn): Ditto.
5746 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5747 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5748 * disasm.c: Include "gdbcore.h".
5749 (_initialize_disasm): New function, initialize
5750 "deprecated_tm_print_insn_info".
5751 (deprecated_tm_print_insn_info): New variable.
5752 (dis_asm_read_memory): Moved from "corefile.c", made static.
5753 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5754 * Makefile.in (disasm.o): Update dependencies.
5755
07020390
AC
57562003-04-30 Andrew Cagney <cagney@redhat.com>
5757
5758 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5759
a9fa03de
AF
57602003-04-29 Adam Fedor <fedor@gnu.org>
5761
5762 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5763 * infcall.c (find_function_addr): Make non-static.
5764 * infcall.h (find_function_addr): Declare.
5765 * Makefile.in (eval.o): Update dependencies.
5766
1bae87b9
AF
57672003-04-28 Adam Fedor <fedor@gnu.org>
5768
5769 * symtab.c (symbol_find_demangled_name): Check for and demangle
5770 ObjC symbols.
5771 (symbol_init_demangled_name): Init for language_objc as well.
5772
0ba6dca9
AC
57732003-04-28 Andrew Cagney <cagney@redhat.com>
5774
5775 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5776 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5777 * gdbarch.h, gdbarch.c: Re-generate.
5778 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5779 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5780 * inferior.h (deprecated_read_fp): Rename read_fp.
5781 (generic_target_read_fp): Delete declaration.
5782 * regcache.c (generic_target_read_fp): Delete function.
5783 (deprecated_read_fp): Replace read_fp, use
5784 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5785 * d10v-tdep.c (d10v_read_fp): Delete function.
5786 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5787
5788 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5789 deprecated_target_read_fp to generic_target_read_fp.
5790 * sh-tdep.c (sh_gdbarch_init): Ditto.
5791 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5792 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5793 * frv-tdep.c (frv_gdbarch_init): Ditto.
5794
5795 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5796 deprecated_fp_regnum.
5797 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5798 * vax-tdep.c (vax_gdbarch_init): Ditto.
5799 * v850-tdep.c (v850_gdbarch_init): Ditto.
5800 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5801 * sh-tdep.c (sh_gdbarch_init): Ditto.
5802 * s390-tdep.c (s390_gdbarch_init): Ditto.
5803 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5804 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5805 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5806 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5807 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5808 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5809 * i386-tdep.c (i386_gdbarch_init): Ditto.
5810 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5811 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5812 * frv-tdep.c (frv_gdbarch_init): Ditto.
5813 * cris-tdep.c (cris_gdbarch_init): Ditto.
5814 * avr-tdep.c (avr_gdbarch_init): Ditto.
5815 * arm-tdep.c (arm_gdbarch_init): Ditto.
5816 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5817
5818 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5819 * v850-tdep.c (v850_gdbarch_init): Ditto.
5820 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5821 * sh-tdep.c (sh_gdbarch_init): Ditto.
5822 * s390-tdep.c (s390_gdbarch_init): Ditto.
5823 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5824 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5825 * mips-tdep.c (mips_gdbarch_init): Ditto.
5826 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5827 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5828 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5829 * frv-tdep.c (frv_gdbarch_init): Ditto.
5830 * avr-tdep.c (avr_gdbarch_init): Ditto.
5831 * arm-tdep.c (arm_gdbarch_init): Ditto.
5832
5833 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5834 DEPRECATED_FP_REGNUM.
5835 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5836 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5837 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5838 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5839 (sparc32_register_virtual_type): Ditto.
5840 * sh-tdep.c (sh64_frame_chain): Ditto.
5841 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5842 (sh_nofp_frame_init_saved_regs): Ditto.
5843 (sh64_nofp_frame_init_saved_regs): Ditto.
5844 (sh_fp_frame_init_saved_regs): Ditto.
5845 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5846 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5847 * procfs.c (procfs_fetch_registers): Ditto.
5848 (procfs_store_registers): Ditto.
5849 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5850 (store_inferior_registers, fetch_core_registers): Ditto.
5851 (fetch_kcore_registers, clear_regs): Ditto.
5852 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5853 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5854 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5855 * nlm/i386.c (do_status): Ditto.
5856 * mipsv4-nat.c (supply_gregset): Ditto.
5857 * mips-tdep.c: Ditto for comments.
5858 * mips-nat.c (fetch_inferior_registers): Ditto.
5859 (store_inferior_registers, fetch_core_registers): Ditto.
5860 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5861 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5862 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5863 (i386_do_pop_frame, i386_register_type): Ditto.
5864 * hppa-tdep.c (hppa_frame_chain): Ditto.
5865 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5866 (hppa_pop_frame, hppa_read_fp): Ditto.
5867 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5868 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5869 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5870 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5871 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5872 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5873 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5874 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5875 * blockframe.c: Ditto for comments.
5876 * arch-utils.h: Ditto for comments.
5877 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5878 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5879 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5880 * alpha-tdep.h: Ditto for comments.
5881 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5882 (alpha_cannot_store_register): Ditto.
5883 (alpha_push_dummy_frame): Ditto.
5884 * alpha-nat.c (supply_gregset): Ditto.
5885
5886 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5887 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5888 * config/sparc/tm-sparc.h: Update comment.
5889
5890 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5891 deprecated_read_fp instead of TARGET_READ_FP.
5892 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5893 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5894 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5895 deprecated_read_fp instead of read_fp.
5896 * s390-tdep.c (s390_push_arguments): Ditto.
5897 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5898 * frame.h: Ditto in comments.
5899 * frame.c (legacy_get_prev_frame): Ditto.
5900 * dummy-frame.c (dummy_frame_this_id): Ditto.
5901 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5902
d7a27068
AC
59032003-04-28 Andrew Cagney <cagney@redhat.com>
5904
5905 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5906 * gdbarch.h, gdbarch.c: Re-generate.
5907 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5908 * vax-tdep.c (_initialize_vax_tdep): Update.
5909 * v850-tdep.c (_initialize_v850_tdep): Update.
5910 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5911 * s390-tdep.c (_initialize_s390_tdep): Update.
5912 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5913 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5914 * mips-tdep.c (_initialize_mips_tdep): Update.
5915 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5916 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5917 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5918 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5919 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5920 * frv-tdep.c (_initialize_frv_tdep): Update.
5921 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5922 (_initialize_cris_tdep): Update.
5923 * arch-utils.c (legacy_print_insn): Update.
5924 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5925
d2630e69
AF
59262003-04-26 Adam Fedor <fedor@gnu.org>
5927
5928 * linespec.c (decode_objc): New function to decode ObjC calls
5929 (decode_line_1): Check for ObjC calls (using decode_objc)
5930 * Makefile (linespec.o): Update dependencies.
5931
3086aeae
DJ
59322003-04-26 Daniel Jacobowitz <drow@mvista.com>
5933
5934 * breakpoint.h (struct breakpoint_ops): New.
5935 (struct breakpoint): Add ops member.
5936
5937 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5938 (mention): Use new breakpoint ops member.
5939 (set_raw_breakpoint): Initialize ops field to NULL.
5940 (print_exception_catchpoint, print_one_exception_catchpoint)
5941 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5942 (gnu_v3_exception_catchpoint_ops): New.
5943 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5944
1fbec6c3
AF
59452003-04-25 Adam Fedor <fedor@gnu.org>
5946
5947 * Makefile.in (COMMON_OBS): Add objc-lang.o
5948
0ef21242
AC
59492003-04-25 Andrew Cagney <cagney@redhat.com>
5950
5951 * d10v-tdep.c (print_insn): Delete function.
5952 (display_trace): Use TARGET_PRINT_INSN.
5953 (_initialize_d10v_tdep): Do not set tm_print_insn.
5954 (d10v_gdbarch_init): Set print_insn.
5955
f75493ed
AC
59562003-04-25 Andrew Cagney <cagney@redhat.com>
5957
5958 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5959 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5960 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5961 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5962 (nr_dmap_regs, a0_regnum): ... new functions.
5963 (d10v_print_registers_info): Use a0_regnum, use register_size.
5964 (d10v_register_byte): Delete function.
5965 (d10v_register_raw_size): Delete function.
5966 (d10v_register_type): Use a0_regnum.
5967 (d10v_print_registers_info): Use a0_regnum.
5968 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5969 (d10v_gdbarch_init): Do not set register_byte or
5970 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5971 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5972 extract_address.
5973 (trace_command): Use XCALLOC.
5974 (print_insn): Delete reference to tm_print_insn.
5975 (saved_regs_unwinder): Use store_unsigned_integer instead of
5976 store_address.
5977 * frame.h (FRAME_OBSTACK_CALLOC): Define
5978
2202b100
DC
59792003-04-25 David Carlton <carlton@bactrian.org>
5980
5981 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5982
4e45ca2e
AF
59832003-04-24 Adam Fedor <fedor@gnu.org>
5984
5985 * objc-lang.c: Include "valprint.h"
5986 * Makefile.in (objc-lang.o): Update dependencies.
5987
93de3e7f
AF
59882003-04-24 Adam Fedor <fedor@gnu.org>
5989
8ffd9b1b 5990 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
5991 architecture dependant compilation and mark as unimplemented
5992 (until they get put in the gdbarch vector).
5993
0f20eeea
DC
59942003-04-23 David Carlton <carlton@bactrian.org>
5995
5996 * cp-support.c (cp_find_first_component): Accept 'operator' in
5997 more locations.
5998
74cfe982
AC
59992003-04-23 Andrew Cagney <cagney@redhat.com>
6000
6001 * infcall.c (call_function_by_hand): Eliminate redundant
6002 indentation. Move "saved_async" and "old_cleanups" to where they
6003 are needed.
8ffd9b1b 6004
52557533
AC
60052003-04-23 Andrew Cagney <cagney@redhat.com>
6006
6007 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6008 and "buffer". Move the "name" code to where it is needed.
6009
158775de
AC
60102003-04-23 Andrew Cagney <cagney@redhat.com>
6011
6012 * infcall.c (call_function_by_hand): Move variables "start_sp",
6013 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6014 code to ON_STACK switch branch.
8ffd9b1b 6015
ebc7896c
AC
60162003-04-23 Andrew Cagney <cagney@redhat.com>
6017
6018 * infcall.c (call_function_by_hand): Make declaration of "i",
6019 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6020 lint.
6021
d727590f
AC
60222003-04-23 Andrew Cagney <cagney@redhat.com>
6023
6024 * infcall.c (call_function_by_hand): Delete variable
6025 "n_method_args". Localize "param_type"'s declaration to the loop
6026 that it is used. Reinstate code assigning to said variable -
6027 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6028 Rationalize code using "param_type".
6029
d585e13a
AC
60302003-04-22 Andrew Cagney <cagney@redhat.com>
6031
6032 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6033 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6034 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6035 to DEPRECATED_PUSH_RETURN_ADDRESS.
6036
051caad9
KB
60372003-04-22 Kevin Buettner <kevinb@redhat.com>
6038
6039 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6040 on the DWARF2 register number prior to fetching a register.
6041
77296879
JB
60422003-04-22 J. Brobecker <brobecker@gnat.com>
6043
6044 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6045 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6046 this macro was always set to 0.
77296879
JB
6047 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6048 considering the fact that this macro was always set to 0.
6049 * hppa-tdep.h (hppa_store_return_value): Likewise.
6050 (hppa_extract_return_value): Likewise.
6051
4252f1df
JB
60522003-04-22 J. Brobecker <brobecker@gnat.com>
6053
6054 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6055 the hppa-pro target only.
6056
14604c6b
JB
60572003-04-21 J. Brobecker <brobecker@gnat.com>
6058
6059 Ongoing multi-arch conversion effort for HP/UX:
6060 * config/pa/tm-hppa.h: Move all macro that are no longer
6061 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6062 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6063
77eb01d1
JB
60642003-04-21 J. Brobecker <brobecker@gnat.com>
6065
6066 * config/pa/tm-hppa.h: Obsolete a section that was only used
6067 for hppa-pro.
6068
61995b3b
JB
60692003-04-21 J. Brobecker <brobecker@gnat.com>
6070
6071 Ongoing multi-arch conversion for HP/UX.
6072 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6073 if already defined (allows hppa64 to stay non-multiarched for now).
6074 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6075
4aa79dcc
AC
60762003-04-21 Andrew Cagney <cagney@redhat.com>
6077
6078 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6079
0f751ff2
AC
60802003-04-21 Andrew Cagney <cagney@redhat.com>
6081
6082 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6083 "i386_num_mmx_regs".
6084
04714b91
AC
60852003-04-21 Andrew Cagney <cagney@redhat.com>
6086
6087 * infcall.c: New file.
6088 * infcall.h: New file.
6089 * valarith.c: Include "infcall.h".
6090 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6091 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6092 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6093 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6094 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6095 (SFILES): Add "infcall.c"
6096 (COMMON_OBS): Add "infcall.o".
6097 (infcall.o): Specify dependencies.
6098 * value.h (call_function_by_hand): Delete declaration.
6099 * inferior.h (run_stack_dummy): Delete declaration.
6100 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6101 (run_stack_dummy): Move to "infcall.c", merged into
6102 call_function_by_hand.
6103 * valops.c (call_function_by_hand): Moved to "infcall.c".
6104 (find_function_addr, value_arg_coerce): Ditto.
6105 (unwindonsignal_p, coerce_float_to_double): Ditto.
6106 (_initialize_valops): Move "set/show coerce-float-to-double", and
6107 "set/show unwindonsignal" commands to "infcall.c".
6108 * v850-tdep.c, target.h: Update comments.
6109 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6110 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6111 (sh64_init_extra_frame_info): Update comments.
6112 * mn10300-tdep.c: Update comments.
6113 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6114 * config/sparc/tm-sparc.h: Update comments.
6115 * breakpoint.h: Update comments.
6116 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6117 * arm-tdep.c: Update comment.
6118
f9d3c2a8
MK
61192003-04-19 Mark Kettenis <kettenis@gnu.org>
6120
c40e1eab
MK
6121 * i386-tdep.c (i386_num_register_names): New variable.
6122 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6123 (MM0_REGNUM): Remove redundant parentheses in define.
6124 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6125 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6126 i386_mxcsr_regnum_p): Remove redundant parentheses.
6127 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6128
94ea66b3
MK
6129 * i386-tdep.c (i386_extract_return_value,
6130 i386_store_return_value): Correct check for availability of
6131 floating-point registers.
6132
54299a1d
MK
6133 * i386-tdep.c (i386_frame_num_args): Remove function.
6134 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6135
c86c27af
MK
6136 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6137 mmx_regnum_to_fp_regnum. Adjust all callers.
6138
f9d3c2a8
MK
6139 * i386-tdep.c (i386_get_longjmp_target): Use
6140 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6141 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6142 extract_address.
6143
94ba74a9
MK
61442003-04-19 Mark Kettenis <kettenis@gnu.org>
6145
6146 * core-regset.c: Update comments to reflect reality. Re-order
6147 includes.
6148 (fetch_core_registers): Use switch instead of if. Remove
6149 redundant prototype.
6150
4074e13c
JB
61512003-04-18 Jim Blandy <jimb@redhat.com>
6152
6153 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6154 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6155
e3ab4aba
RH
61562003-04-17 Richard Henderson <rth@redhat.com>
6157
6158 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6159
627bf7c1
EZ
61602003-04-17 Michael Snyder <msnyder@redhat.com>
6161 Karen Bennet <bennet@redhat.com>
6162
6163 Committed by Elena Zannoni <ezannoni@redhat.com>
6164 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6165
514621a9
EZ
61662003-04-17 Elena Zannoni <ezannoni@redhat.com>
6167
6168 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6169 value if the return type is void.
514621a9 6170
b4acd559
JJ
61712003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6172
6173 * thread-db.c: Reindented.
8ffd9b1b 6174
530b167e 61752003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6176
6177 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6178 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6179 as types.
6180
0a48e7e8
MS
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
8ffd9b1b 6204
ab9fe00e
KB
62052003-04-16 Kevin Buettner <kevinb@redhat.com>
6206
610a3745 6207 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6208 the size of ``long double'' to 16, instead of 8.
6209
e64a344c
MK
62102003-04-16 Mark Kettenis <kettenis@gnu.org>
6211
6212 * i386-linux-nat.c: Add some whitespace to make things more
6213 readable.
6214 (fetch_register, store_register, fetch_inferior_registers,
6215 store_inferior_registers): Get rid of assignment in if-statement.
6216 (store_register): Fix typo in error message.
6217
25d41031
AC
62182003-04-16 Andrew Cagney <cagney@redhat.com>
6219
6220 * utils.c (xmmalloc): Always allocate something, matches
6221 libiberty/xmalloc's semantics.
6222 (xmrealloc, xmcalloc): Ditto.
6223
c50901fd
AC
62242003-04-16 Andrew Cagney <cagney@redhat.com>
6225
6226 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6227 update comments.
6228 (get_frame_type): Initialize unwind and type when needed.
6229 (get_frame_id, frame_register_unwind): Ditto.
6230
f81824a9
AC
62312003-04-16 Andrew Cagney <cagney@redhat.com>
6232
6233 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6234 obsolete.
6235 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6236 * sparcl-stub.c: Obsolete file.
6237 * config/sparc/tm-sparclet.h: Obsolete file.
6238 * sparclet-stub.c: Obsolete file.
6239 * sparclet-rom.c: Obsolete file.
6240 * sparcl-tdep.c: Obsolete file.
6241 * config/sparc/tm-sparclite.h: Obsolete file.
6242 * config/sparc/sparclite.mt: Obsolete file.
6243 * config/sparc/sparclet.mt: Obsolete file.
6244 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6245 sparc86x-*-* obsolete.
6246
9219021c
DC
62472003-04-15 David Carlton <carlton@math.stanford.edu>
6248
6249 * Makefile.in (SFILES): Add cp-namespace.c.
6250 (COMMON_OBS): Add cp-namespace.o.
6251 (block.o): Depend on gdb_obstack_h and cp_support_h.
6252 (buildsym.o): Depend on cp_support_h.
6253 (cp-namespace.o): New.
6254 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6255 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6256 (dwarf2read.o): Depend on cp_support_h.
6257 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6258 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6259 processing_current_namespace.
6260 (read_namespace): Update processing_current_namespace; check for
6261 anonymous namespaces.
6262 (dwarf2_name): New function.
6263 (dwarf2_extension): Ditto.
6264 * cp-support.h: Update copyright, contributors.
6265 Add inclusion guards.
6266 Add opaque declaration for structs obstack, block, symbol.
6267 (struct using_direct): New struct.
6268 Add declarations for cp_find_first_component,
6269 cp_entire_prefix_len, processing_has_namespace_info,
6270 processing_current_namespace, cp_is_anonymous,
6271 cp_add_using_directive, cp_initialize_namespace,
6272 cp_finalize_namespace, cp_set_block_scope,
6273 cp_scan_for_anonymous_namespaces.
6274 * cp-namespace.c: New file.
6275 * cp-support.c: Update copyright.
6276 Include ctype.h, gdb_assert.h, gdbcmd.h.
6277 New variable maint_cplus_cmd_list.
6278 (cp_find_first_component): New function.
6279 (cp_entire_prefix_len, maint_cplus_command)
6280 (first_component_command, _initialize_cp_support): Ditto.
6281 * buildsym.c: Include cp-support.h.
6282 New variable using_list.
6283 (add_symbol_to_list): Check for anonymous namespaces.
6284 (finish_block): Set block's scope.
6285 (start_symtab): Initialize C++ namespace support.
6286 (end_symtab): Finalize C++ namespace support.
6287 * block.h: Add opaque declarations for structs
6288 block_namespace_info, using_direct, and obstack.
6289 Add declarations for block_set_scope and block_set_using.
6290 (struct block): Add 'language_specific' member.
6291 (BLOCK_NAMESPACE): New macro.
6292 * block.c: Include gdb_obstack.h and cp-support.h.
6293 (struct block_namespace_info): New struct.
6294 (block_set_scope): New function.
6295 (block_set_using, block_initialize_namespace): Ditto.
6296
d5a921c9
KB
62972003-04-14 Kevin Buettner <kevinb@redhat.com>
6298
6299 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6300 (locate_base): Return early if there aren't any link map offsets.
6301 (svr4_solib_create_inferior_hook): Warn if shared library support
6302 is unavailable.
6303
d2a52b27
DC
63042003-04-14 David Carlton <carlton@math.stanford.edu>
6305
6306 * symtab.c (symbol_set_names): Add prefix when storing Java names
6307 in hash table. Fix for PR java/1039.
6308
980cae7a
DC
63092003-04-14 David Carlton <carlton@math.stanford.edu>
6310
6311 * symtab.c (symbol_set_names): Rename 'name' arg to
6312 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6313 * symtab.h: Change 'name' argument in declaration of
6314 symbol_set_names to 'linkage_name'.
6315 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6316
e227b13c
AC
63172003-04-14 Andrew Cagney <cagney@redhat.com>
6318
6319 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6320 return the fully sign-extended register value.
6321 (get_frame_pointer): Ditto.
6322 (mips_pop_frame): Initialize "proc_desc" after checking for a
6323 dummy frame.
6324
36712a20
AC
63252003-04-14 Andrew Cagney <cagney@redhat.com>
6326
6327 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6328 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6329 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6330 (mips_push_register): Delete function.
6331 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6332 PUSH_FP_REGNUM.
6333
44ea7b70
JB
63342003-04-14 Jim Blandy <jimb@redhat.com>
6335
6336 * symmisc.c: #include "gdb_regex.h".
6337 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6338 functions.
6339 * maint.c (maintenance_list_command): New function.
6340 (_initialize_maint_cmds): Register the above as commands.
6341 * symtab.h (maintenance_list_symtabs,
6342 maintenance_list_psymtabs): New declarations.
6343 * cli/cli-cmds.c (maintenancelistlist): New variable.
6344 (init_cmd_lists): Initialize it.
6345 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6346 * gdbcmd.h (maintenancelistlist): New declaration.
6347 * Makefile.in (symmisc.o): Update dependencies.
6348
2d0c7962
EZ
63492003-04-14 Elena Zannoni <ezannoni@redhat.com>
6350
6351 * s390-nat.c: Include asm/types.h for addr_t.
6352
1947a811
CV
63532003-04-14 Corinna Vinschen <vinschen@redhat.com>
6354
6355 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6356 actually incoming type.
6357
adb616d7
AC
63582003-04-13 Andrew Cagney <cagney@redhat.com>
6359
6360 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6361 get_next_frame and get_frame_saved_regs.
6362
9b5e151c
AC
63632003-04-13 Andrew Cagney <cagney@redhat.com>
6364
6365 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6366 of gdbarch_num_regs.
6367
ef6e7e13
AC
63682003-04-13 Andrew Cagney <cagney@redhat.com>
6369
6370 * frame.h: Mention what replaced what in "struct frame_info".
6371 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6372 deprecated_update_frame_base_hack and
6373 deprecated_update_frame_pc_hack.
6374 * hppa-tdep.c: Ditto.
6375
61fbb938
DJ
63762003-04-13 Daniel Jacobowitz <drow@mvista.com>
6377
6378 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6379 to read_reg and update its comment. Remove regnum member.
6380 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6381 Don't call read_reg when setting in_reg. Call read_reg to get
6382 the frame base if it's in a register. Return the register number
6383 on the stack instead of in the context. Remove extra arguments
6384 to read_reg.
6385 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6386 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6387 the register number on the expression stack.
6388 (needs_frame_read_reg): Remove extra arguments.
6389
0d53c4c4
DJ
63902003-04-13 Daniel Jacobowitz <drow@mvista.com>
6391
6392 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6393 made non-static.
6394 (execute_stack_op): All callers updated.
6395 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6396 * dwarf2loc.c (find_location_expression): New function.
6397 (dwarf_expr_frame_base): Call it.
6398 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6399 (dwarf2_tracepoint_var_ref): New function, broken out from
6400 locexpr_tracepoint_var_ref.
6401 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6402 Make static.
6403 (loclist_read_variable, loclist_read_needs_frame): New functions.
6404 (loclist_describe_location, loclist_tracepoint_var_ref): New
6405 functions.
6406 (dwarf2_loclist_funcs): New struct location_funcs.
6407 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6408 (struct dwarf2_locexpr_baton): Add comments.
6409 (dwarf2_loclist_funcs): New extern.
6410 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6411 base_address and base_known.
6412 (dwarf_loc_buffer): New variable.
6413 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6414 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6415 (dwarf2_has_info): Initialize dwarf_loc_offset.
6416 (dwarf2_build_psymtabs): Read in .debug_loc.
6417 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6418 DWARF_LOC_SIZE.
6419 (psymtab_to_symtab_1): Likewise. Move base address calculation
6420 here, from...
6421 (dwarf2_get_pc_bounds): ... here. Use the base address from
6422 cu_header.
6423 (dwarf2_symbol_mark_computed): Handle location lists.
6424
6aca59a3
DJ
64252003-04-13 Daniel Jacobowitz <drow@mvista.com>
6426
6427 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6428 if the linkage name demangled successfully.
6429
aca1fcd0
MK
64302003-04-13 Mark Kettenis <kettenis@gnu.org>
6431
97095916
MK
6432 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6433 disassmbly_flavour): Removed.
6434
aca1fcd0
MK
6435 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6436
562a961f
MK
64372003-04-13 Mark Kettenis <kettenis@gnu.org>
6438
6439 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6440
bd013d54
AC
64412003-04-12 Andrew Cagney <cagney@redhat.com>
6442
6443 * frame.h (struct frame_info): Move definition from here ...
6444 * frame.c (struct frame_info): ... to here.
6445
167ef8b1
AC
64462003-04-12 Andrew Cagney <cagney@redhat.com>
6447
6448 * gdbthread.h (save_infrun_state): Delete parameter
6449 "prev_func_start".
6450 (struct thread_info): Delete field "prev_func_start".
6451 (load_infrun_state): Ditto.
6452 * thread.c (load_infrun_state, save_infrun_state): Update.
6453 * infrun.c (prev_func_start): Delete variable.
6454 (context_switch, init_wait_for_inferior): Update.
6455 (stop_stepping, keep_going): Update.
6456
da3331ec
AC
64572003-04-12 Andrew Cagney <cagney@redhat.com>
6458
6459 * gdbarch.sh: Add missing opaque declarations.
6460 * gdbarch.h: Regnerate.
6461 * symtab.h: Add missing opaque declarations.
6462 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6463 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6464 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6465 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6466 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6467 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6468 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6469 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6470 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6471 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6472 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6473 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6474 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6475
18adea3f
AC
64762003-04-11 Andrew Cagney <cagney@redhat.com>
6477
6478 * frame.c (get_frame_id): Return this frame's "id".
6479 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6480 function start.
6481 (legacy_saved_regs_this_id): Replace function body with
6482 internal-error.
6483 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6484 FRAME_OBSTACK_ZALLOC.
6485 (create_new_frame): Mark the frame ID as valid.
6486
2252e863
AO
64872003-04-11 Alexandre Oliva <aoliva@redhat.com>
6488
6489 * Makefile.in (libbfd_h): Added missing setting.
6490 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6491 according to the selected ABI.
6492
a8245ab8
JJ
64932003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6494
6495 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6496
6913c89a
AC
64972003-04-11 Andrew Cagney <cagney@redhat.com>
6498
6499 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6500 SAVED_PC_AFTER_CALL.
6501 * gdbarch.h, gdbarch.c: Regenerate.
6502 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6503 * x86-64-tdep.c (x86_64_init_abi): Update.
6504 * vax-tdep.c (vax_gdbarch_init): Update.
6505 * v850-tdep.c (v850_gdbarch_init): Update.
6506 * sparc-tdep.c (sparc_gdbarch_init): Update.
6507 * sh-tdep.c (sh_gdbarch_init): Update.
6508 * s390-tdep.c (s390_gdbarch_init): Update.
6509 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6510 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6511 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6512 * mips-tdep.c (mips_gdbarch_init): Update.
6513 * mcore-tdep.c (mcore_gdbarch_init): Update.
6514 * m68k-tdep.c (m68k_gdbarch_init): Update.
6515 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6516 * ia64-tdep.c (ia64_gdbarch_init): Update.
6517 (ia64_saved_pc_after_call): Update declaration.
6518 * i386ly-tdep.c (i386lynx_init_abi): Update.
6519 * i386-tdep.c (i386_gdbarch_init): Update.
6520 * hppa-tdep.c (hppa_gdbarch_init): Update.
6521 * h8300-tdep.c (h8300_gdbarch_init): Update.
6522 * frv-tdep.c (frv_gdbarch_init): Update.
6523 * cris-tdep.c (cris_gdbarch_init): Update.
6524 * avr-tdep.c (avr_gdbarch_init): Update.
6525 * arm-tdep.c (arm_gdbarch_init): Update.
6526 * alpha-tdep.c (alpha_gdbarch_init): Update.
6527 * ns32knbsd-nat.c (frame_num_args): Update.
6528 * ns32k-tdep.c (umax_frame_num_args): Update.
6529 * mips-tdep.c (mips_init_frame_pc_first): Update.
6530 * infrun.c (step_over_function): Update.
6531 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6532 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6533 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6534 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6535 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6536 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6537 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6538 * arch-utils.c (init_frame_pc_default): Update.
6539 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6540 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6541 declaration.
8ffd9b1b 6542
38edeab8
AC
65432003-04-11 Andrew Cagney <cagney@redhat.com>
6544
6545 * i387-tdep.c: Update copyright.
6546 (i387_to_double): Delete function.
6547 (double_to_i387): Delete function.
6548
81f8a206
AC
65492003-04-10 Andrew Cagney <cagney@redhat.com>
6550
6551 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6552 frame's function's address. Simplify.
6553 (d10v_frame_unwind_cache): Check that the frame's function is
6554 non-zero.
6555
6e691f7a
JB
65562003-04-10 Jim Blandy <jimb@redhat.com>
6557
6558 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6559 call to set_gdbarch_deprecated_push_arguments.
6560
7f78e237
AC
65612003-04-10 Andrew Cagney <cagney@redhat.com>
6562
6563 * frame.c (fprint_frame_id): New function.
6564 (fprint_frame_type, fprint_frame): New function.
6565 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6566 (create_sentinel_frame, get_frame_id): Ditto.
6567 (frame_id_p, frame_id_eq): Ditto.
6568 (frame_id_inner, create_new_frame): Ditto.
6569 (legacy_get_prev_frame, get_prev_frame): Ditto.
6570 (deprecated_update_frame_pc_hack): Ditto.
6571 (frame_register_unwind): Ditto.
6572 (deprecated_update_frame_base_hack): Ditto.
6573
f870b49b
CV
65742003-04-10 Corinna Vinschen <vinschen@redhat.com>
6575
6576 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6577 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6578 frame_chain function.
6579 * Makefile.in: Add dependencies due to above change.
6580
7c86889b
CV
65812003-04-10 Corinna Vinschen <vinschen@redhat.com>
6582
6583 * blockframe.c (legacy_frame_chain_valid): Move call to
6584 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6585 inside_entry_file.
6586
d0a55772
AC
65872003-04-09 Andrew Cagney <cagney@redhat.com>
6588
6589 * frame.h (struct frame_id): Replace "pc" and "base" with
6590 "stack_addr" and "code_addr". Update comments.
6591 (frame_id_build): Update parameter names and comment.
6592 (struct frame_info): Replace "id_p" and "id" with "this_id".
6593 * dummy-frame.c (dummy_frame_this_id): Update.
6594 * breakpoint.c (print_one_breakpoint): Update.
6595 * frame.c (get_frame_id): Update.
6596 (get_frame_base, frame_id_build): Update.
6597 (create_sentinel_frame, legacy_get_prev_frame): Update.
6598 (deprecated_update_frame_base_hack): Update.
6599 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6600 (frame_id_inner): Ditto.
6601
ac16bf07
AC
66022003-04-09 Andrew Cagney <cagney@redhat.com>
6603
6604 * defs.h (gdb_print_host_address): Make "addr" parameter a
6605 pointer constant.
6606 * utils.c (gdb_print_host_address): Update.
6607
366cfc9e
KB
66082003-04-09 Kevin Buettner <kevinb@redhat.com>
6609
6610 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6611 register number for R0 is 0.
6612
cd983b5c
JB
66132003-04-09 J. Brobecker <brobecker@gnat.com>
6614
6615 * frame.h (struct gdbarch): Add opaque structure definition
6616 to avoid a compilation warning on LynxOS 4.0.
6617
d1340264
AC
66182003-04-09 Andrew Cagney <cagney@redhat.com>
6619
6620 * frame.h (struct frame_info): Delete field "pc". Replace
6621 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6622 structure.
6623 * frame.c (frame_pc_unwind): Update.
6624 (create_sentinel_frame): Do not set "pc".
6625 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6626 (get_frame_pc): Call frame_pc_unwind.
6627 (deprecated_update_frame_pc_hack): Update.
6628 (create_new_frame): Use "pc" not "->pc".
6629
90a6fffb
AC
66302003-04-09 Andrew Cagney <cagney@redhat.com>
6631
6632 * frame.c (get_frame_id): Eliminate code updating "frame".
6633 (legacy_get_prev_frame): Ditto.
6634 (get_frame_base): Return id.base directly.
6635 (deprecated_update_frame_base_hack): Update "id.base".
6636 * frame.h (struct frame_info): Delete field "frame".
6637
2fbce691
AC
66382003-04-09 Andrew Cagney <cagney@redhat.com>
6639
6640 * NEWS: Mention that the "Sequent family" is obsolete.
6641 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6642 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6643 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6644 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6645 * config/i386/tm-ptx4.h: Obsolete file.
6646 * config/i386/tm-ptx.h: Obsolete file.
6647 * symm-tdep.c: Obsolete file.
6648 * config/i386/symmetry.mt: Obsolete file.
6649 * config/i386/tm-symmetry.h: Obsolete file.
6650 * symm-nat.c: Obsolete file.
6651 * config/i386/nm-symmetry.h: Obsolete file.
6652 * config/i386/xm-symmetry.h: Obsolete file.
6653 * config/i386/symmetry.mh: Obsolete file.
6654 * config/i386/nm-ptx4.h: Obsolete file.
6655 * config/i386/ptx4.mh: Obsolete file.
6656 * config/i386/ptx.mt: Obsolete file.
6657 * config/i386/ptx.mh: Obsolete file.
6658 * config/i386/xm-ptx4.h: Obsolete file.
6659 * config/i386/xm-ptx.h: Obsolete file.
6660
78c43945
AC
66612003-04-09 Andrew Cagney <cagney@redhat.com>
6662
6663 Obsolete mips*-*-mach3*.
6664 * NEWS: Mention that mips*-*-mach3* is obsolete.
6665 * m3-nat.c: Obsolete file.
6666 * config/nm-m3.h: Obsolete file.
6667 * config/mips/tm-mipsm3.h: Obsolete file.
6668 * config/mips/mipsm3.mt: Obsolete file.
6669 * config/mips/mipsm3.mh: Obsolete file.
6670 * config/mips/xm-mipsm3.h: Obsolete file.
6671 * mipsm3-nat.c: Obsolete file.
6672 * configure.host: Obsolete mips-dec-mach3*.
6673 * configure.tgt: Obsolete mips*-*-mach3*.
6674
f1908289
AC
66752003-04-09 Andrew Cagney <cagney@redhat.com>
6676
6677 * doublest.h: Update copyright.
6678 (deprecated_store_floating, deprecated_extract_floating): Rename
6679 store_floating and extract_floating. Update comments.
6680 * doublest.c: Update copyright.
6681 (extract_floating_by_length): Replace extract_floating.
6682 (store_floating_by_length): Replace store_floating.
6683 (deprecated_extract_floating): New function.
6684 (deprecated_store_floating): New function.
6685 (extract_typed_floating): Call extract_floating_by_length.
6686 (store_typed_floating): Call store_floating_by_length.
6687 * x86-64-tdep.c (x86_64_store_return_value): Update.
6688 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6689 (sh64_extract_return_value): Update.
6690 (sh_sh4_register_convert_to_virtual): Update.
6691 (sh_sh64_register_convert_to_virtual): Update.
6692 (sh_sh4_register_convert_to_raw): Update.
6693 (sh_sh64_register_convert_to_raw): Update.
6694 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6695 (rs6000_register_convert_to_raw): Update.
6696 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6697 (ia64_register_convert_to_raw): Update.
6698 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6699 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6700 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6701 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6702 (alpha_register_convert_to_raw): Update.
6703
4443bd83
AC
67042003-04-08 Andrew Cagney <cagney@redhat.com>
6705
6706 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6707 * gdbarch.h, gdbarch.c: Re-generate.
6708 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6709 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6710 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6711 conditionally, use frame_pc_unwind as an alternative. Add
6712 comments.
6713 * arch-utils.c (init_frame_pc_default): Only call
6714 SAVED_PC_AFTER_CALL when available.
6715
c0236d92
EZ
67162003-04-08 Elena Zannoni <ezannoni@redhat.com>
6717
fbe586ae 6718 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6719 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6720 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6721 (start_remote): Ditto.
6722 (handle_inferior_event): Ditto.
6723 (save_inferior_status): Ditto.
6724 (restore_inferior_status): Ditto.
6725 * infcmd.c (attach_command): Ditto.
6726 * fork-child.c (startup_inferior): Ditto.
fbe586ae 6727 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6728 * alpha-tdep.c (heuristic_proc_start): Ditto.
6729 * mips-tdep.c (heuristic_proc_start): Ditto.
6730 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6731 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6732 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6733 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6734 * remote-vx.c (vx_create_inferior): Ditto.
6735
67362003-04-08 Elena Zannoni <ezannoni@redhat.com>
6737
6738 * infrun.c (stop_soon_quietly): Make it an enum, to better
6739 override the default behavior of handle_inferior_event.
6740 (clear_proceed_status): Update uses of stop_soon_quietly to
6741 reflect that it is now an enum.
6742 (start_remote): Ditto.
6743 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6744 is set to handle the new GNU/Linux kernel behavior for
6745 attach/sigstop. Update uses of stop_soon_quietly.
6746 * inferior.h (enum stop_kind): New enum.
6747 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6748 Reset normal handle_inferior_event behavior, afterwards.
6749 * fork-child.c (startup_inferior): Update.
6750 * alpha-tdep.c (heuristic_proc_start): Update.
6751 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6752 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6753 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6754 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6755 * remote-vx.c (vx_create_inferior): Update.
6756 * mips-tdep.c (heuristic_proc_start): Update.
6757
1211bce3
EZ
67582003-04-07 Elena Zannoni <ezannoni@redhat.com>
6759
6760 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 6761 be freed more than once, causing wild memory corruptions.
1211bce3 6762 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 6763 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 6764 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 6765 with the "core" target.
1211bce3 6766
f0ef6b29
KB
67672003-04-07 Kevin Buettner <kevinb@redhat.com>
6768
6769 * mips-tdep.c (mips_print_fp_register): New function, created from
6770 do_fp_register_row(). Registers are now (also) printed as hex.
6771 Only one register is printed per row.
6772 (mips_print_register, do_fp_register_row): Print floating point
6773 registers with mips_print_fp_register().
6774
8cf71652
AC
67752003-04-06 Andrew Cagney <cagney@redhat.com>
6776
5e488a7b
AC
6777 * valprint.h (inspect_it): Add extern declaration.
6778 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6779 (selectors_info, classes_info): Ditto.
6780 (find_objc_msgcall): Fix indentation.
6781 (objc_printstr): Delete extern declarations.
6782
8cf71652
AC
6783 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6784
e6ba3bc9
AC
67852003-04-06 Andrew Cagney <cagney@redhat.com>
6786
6787 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6788 Update comment.
6789 * frame.c (legacy_saved_regs_this_id): Update.
6790 (legacy_get_prev_frame): Update.
6791 * xstormy16-tdep.c: Update comment.
6792 * sparc-tdep.c (sparc_frame_chain): Update comment.
6793 * blockframe.c (legacy_frame_chain_valid): Update.
6794
55e1d7e7
AC
67952003-04-06 Andrew Cagney <cagney@redhat.com>
6796
996179ee
AC
6797 * valprint.c (val_print_type_code_int): Delete #ifdef
6798 PRINT_TYPELESS_INTEGER code.
6799
55e1d7e7
AC
6800 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6801 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6802 multi-arch definition.
6803 * gdbarch.h: Re-generate.
6804
43bd9a9e
AC
68052003-04-05 Andrew Cagney <cagney@redhat.com>
6806
6807 Eliminate FRAME_FIND_SAVED_REGS.
6808 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6809 Change FSR parameter to a pointer.
6810 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6811 Assume FSR parameter is a pointer.
6812 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6813 Make fsr a pointer.
6814 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6815 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6816 saved_regs a pointer.
6817 (hppa_frame_saved_pc): Ditto.
6818 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6819 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6820 pointer.
6821 (restore_pc_queue): Make fsr a pointer.
6822 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6823 (hppa_frame_chain): Make saved_regs a pointer, call
6824 hppa_frame_init_saved_regs.
6825 * sparc-tdep.c: Include "gdb_assert.h".
6826 (sparc_frame_find_saved_regs): Replace internal_error with
6827 gdb_assert.
6828 * remote-vxsparc.c (vx_read_register): Delete reference to
6829 FRAME_FIND_SAVED_REGS.
6830 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6831 * gdbarch.h: Regenerate.
6832 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6833 (deprecated_get_frame_saved_regs): Delete declaration.
6834 (struct frame_saved_regs): Delete definition.
6835 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6836 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6837 (hppa_frame_find_saved_regs): Delete declaration.
6838 (FRAME_FIND_SAVED_REGS): Delete macro.
6839 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6840 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6841 FRAME_FIND_SAVED_REGS in comment.
6842
be41e9f4
AC
68432003-04-05 Andrew Cagney <cagney@redhat.com>
6844
6845 * frame.c (frame_func_unwind, get_frame_func): New functions.
6846 * frame.h (get_frame_func, frame_func_unwind): Declare.
6847 (struct frame_info): Add field "prev_func" for caching the
6848 previous frame's function address.
6849 * arm-tdep.c (arm_frameless_function_invocation): Combine
6850 get_pc_function_start and get_frame_pc into get_frame_func.
6851 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6852 (sh64_nofp_frame_init_saved_regs): Ditto.
6853 * s390-tdep.c (s390_function_start): Ditto.
6854 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6855 (rs6000_frameless_function_invocation): Ditto.
6856 (rs6000_frame_saved_pc): Ditto.
6857 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6858 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6859 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6860 (i386_frame_init_saved_regs): Ditto.
6861 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6862 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6863 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6864 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6865 * blockframe.c (frameless_look_for_prologue): Ditto.
6866
a01dd7cc
AC
68672003-04-05 Andrew Cagney <cagney@redhat.com>
6868
6869 * frame.c (legacy_get_prev_frame): Link prev to next at the
6870 function start. Update comments.
6871
5e5592e6
AC
68722003-04-05 Andrew Cagney <cagney@redhat.com>
6873
6874 * frame.c (get_frame_id): Update comment.
6875 (legacy_get_prev_frame): Update comment.
6876 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6877 * gdbarch.h: Regenerate.
6878 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6879 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6880
6fba5002
AC
68812003-04-05 Andrew Cagney <cagney@redhat.com>
6882
6883 * stack.c (print_frame_info): Use get_frame_pc.
6884
7df05f2b
AC
68852003-04-04 Andrew Cagney <cagney@redhat.com>
6886
6887 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6888 the frame's type from the unwinder.
6889 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6890 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6891 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6892 (get_frame_base_address): Use get_frame_type.
6893 (get_frame_locals_address, get_frame_args_address): Ditto.
6894 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6895 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6896 (struct frame_info): Add comment explaining why the frame contains
6897 a "type" field.
6898 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6899 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6900 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6901 NORMAL_FRAME.
6902 * frame-unwind.h: Include "frame.h".
6903 (struct frame_unwind): Add "type" field.
6904 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 6905
11889732
AC
69062003-04-04 Andrew Cagney <cagney@redhat.com>
6907
6908 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6909 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6910 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6911 get_frame_base.
6912 (d10v_unwind_dummy_id): Use frame_id_build.
6913 * frame.c (find_frame_sal): Use get_frame_pc.
6914 (create_new_frame): Use deprecated_update_frame_pc_hack and
6915 deprecated_update_frame_base_hack.
6916 (create_sentinel_frame): Add comment about ->pc going away.
6917 (get_prev_frame): Add comment about ->pc going away.
6918 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6919 frame_id_build, deprecated_update_frame_pc_hack and
6920 deprecated_update_frame_base_hack.
6921 (select_frame): Use get_frame_pc.
6922 (legacy_saved_regs_this_id): Use frame_id_build.
6923
50c46a0d
EZ
69242003-04-04 Elena Zannoni <ezannoni@redhat.com>
6925
fbe586ae
RH
6926 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6927 signed integer case.
6928 (classify_argument): Handle enumerations and references.
50c46a0d 6929
50bbdbd9
AC
69302003-04-04 Andrew Cagney <cagney@redhat.com>
6931
6932 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6933 ID to NULL.
6934
36018d2e
AF
69352003-04-01 Adam Fedor <fedor@gnu.org>
6936
6937 * gdb/objc-lang.c (selectors_info): Replace calls to
6938 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6939 SYMBOL_NATURAL_NAME.
6940 (classes_info, find_methods): Likewise.
6941
35cec841
KB
69422003-04-03 Kevin Buettner <kevinb@redhat.com>
6943
6944 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6945 ``mach'' to the value determined by bfd_default_set_arch_mach().
6946
43136899
BR
69472003-04-02 Bob Rossi <bob_rossi@cox.net>
6948
6949 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6950 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6951 (mi-cmd-file.o): Update dependencies.
6952
040b99fd
KB
69532003-04-01 Kevin Buettner <kevinb@redhat.com>
6954
6955 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6956 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6957
9a3d7dfd
AF
69582003-04-01 Adam Fedor <fedor@gnu.org>
6959
6960 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6961 * language.h (struct language_defn): Add la_demangle.
6962 (language_demangle): Declare.
6963 * language.c (language_demangle): New function.
6964 (unk_lang_demangle): Likewise.
6965 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 6966 Add ukn_lang_demangle.
9a3d7dfd 6967 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 6968 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
6969 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6970 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6971 * jv-lang.c (java_demangle): New function
6972 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
6973 * objc-lang.c (objc_demangle): Add options argument
6974 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
6975 * maint.c (maintenance_demangle): Replace switch with
6976 call to language_demangle.
6977 * utils.c (fprintf_symbol_filtered): Likewise.
6978
5e074003
AC
69792003-04-01 Andrew Cagney <cagney@redhat.com>
6980
6981 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6982 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6983 PRINT_TYPELESS_INTEGER.
6984 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6985 PUSH_RETURN_ADDRESS.
6986
270cb5d6
AC
69872003-04-01 Andrew Cagney <cagney@redhat.com>
6988
6989 * Makefile.in (d10v-tdep.o): Update dependencies.
6990 * d10v-tdep.c: Include "frame-base.h".
6991 (d10v_frame_unwind): Make constant.
6992 (d10v_frame_base_address): New function.
6993 (d10v_frame_base): New variable.
6994 (d10v_gdbarch_init): Set frame_base default.
6995 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6996 comment for base.
6997 (d10v_frame_unwind_cache): Set and use "prev_sp".
6998 (d10v_frame_this_id): Use the previous frame's inner most stack
6999 address and this frame's func address for the frame ID. Use
7000 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7001
6bfb3e36
AC
70022003-04-01 Andrew Cagney <cagney@redhat.com>
7003
7004 * frame.h (get_frame_locals_address, get_frame_args_address):
7005 Refer to the base address, instead of the address of the first
7006 local or parameter.
8ffd9b1b 7007
da62e633
AC
70082003-04-01 Andrew Cagney <cagney@redhat.com>
7009
7010 Add frame debug info addresses:
7011 * frame-base.c: New file.
7012 * frame-base.h: New file.
7013 * frame.h (struct frame_base): Add opaque declaration.
7014 (get_frame_base): Update comment.
7015 (get_frame_base_address): Declare.
7016 (get_frame_locals_address): Declare.
7017 (get_frame_args_address): Declare.
7018 (struct frame_info): Add "base" and "base_cache". Update
7019 comments on the unwinder.
7020 * frame.c: Include "frame-base.h".
7021 (get_frame_locals_address): New function.
7022 (get_frame_base_address): New function.
7023 (get_frame_args_address): New function.
7024 * findvar.c (read_var_value): Use get_frame_locals_address and
7025 get_frame_args_address.
7026 * stack.c (frame_info): Use get_frame_locals_address and
7027 get_frame_args_address.
7028 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7029 moved to "frame-base.c".
7030 * printcmd.c (print_frame_nameless_args): Ditto.
7031 * symtab.h (address_class): Update comments.
7032 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7033 get_frame_base_address.
7034 * dwarf2expr.c (execute_stack_op): Ditto.
7035 * Makefile.in (frame_base_h): Define.
7036 (frame.o): Update dependencies.
7037 (frame-base.o): Add dependencies.
7038 (SFILES): Add frame-base.c.
7039 (COMMON_OBS): Add frame-base.o.
7040
3d30e9c2
AC
70412003-04-01 Andrew Cagney <cagney@redhat.com>
7042
7043 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7044 CALL_DUMMY_LENGTH): Ditto.
7045 * gdbarch.c: Re-generate.
7046 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7047 (CALL_DUMMY_LENGTH): Delete macro.
7048 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7049 * arm-tdep.c (arm_gdbarch_init): Ditto.
7050 * avr-tdep.c (avr_gdbarch_init): Ditto.
7051 * cris-tdep.c (cris_gdbarch_init): Ditto.
7052 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7053 * frv-tdep.c (frv_gdbarch_init): Ditto.
7054 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7055 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7056 * i386-tdep.c (i386_gdbarch_init): Ditto.
7057 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7058 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7059 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7060 * mips-tdep.c (mips_gdbarch_init): Ditto.
7061 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7062 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7063 * s390-tdep.c (s390_gdbarch_init): Ditto.
7064 * sh-tdep.c (sh_gdbarch_init): Ditto.
7065 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7066 * v850-tdep.c (v850_gdbarch_init): Ditto.
7067 * vax-tdep.c (vax_gdbarch_init): Ditto.
7068 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7069
ce0c7262
CV
70702003-04-01 Corinna Vinschen <vinschen@redhat.com>
7071
7072 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7073
73dd234f
AC
70742003-04-01 Andrew Cagney <cagney@redhat.com>
7075
7076 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7077 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7078 * gdbarch.h, gdbarch.c: Re-generate.
7079 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7080 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7081 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7082 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7083 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7084 * infcmd.c (run_stack_dummy): Simplify assuming
7085 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7086 * infrun.c (handle_inferior_event): Ditto.
7087 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7088 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7089 * arm-tdep.c (arm_gdbarch_init): Ditto.
7090 * avr-tdep.c (avr_gdbarch_init): Ditto.
7091 * cris-tdep.c (cris_gdbarch_init): Ditto.
7092 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7093 * frv-tdep.c (frv_gdbarch_init): Ditto.
7094 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7095 * i386-tdep.c (i386_gdbarch_init): Ditto.
7096 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7097 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7098 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7099 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7100 * mips-tdep.c (mips_gdbarch_init): Ditto.
7101 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7102 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7103 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7104 * s390-tdep.c (s390_gdbarch_init): Ditto.
7105 * sh-tdep.c (sh_gdbarch_init): Ditto.
7106 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7107 * v850-tdep.c (v850_gdbarch_init): Ditto.
7108 * vax-tdep.c (vax_gdbarch_init): Ditto.
7109 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7110
97606a13
DJ
71112003-04-01 Daniel Jacobowitz <drow@mvista.com>
7112
7113 * symfile.c (symfile_relocate_debug_section): Update call to
7114 bfd_simple_get_relocated_section_contents.
7115
e8ab51f7
AC
71162003-03-31 Andrew Cagney <cagney@redhat.com>
7117
7118 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7119 * gdbarch.h, gdbarch.c: Regenerate.
7120 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7121 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7122 available.
7123 * frame.h (generic_fix_call_dummy): Delete declaration.
7124 * dummy-frame.h: Update comment.
7125 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7126 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7127 fix_call_dummy.
7128 * sh-tdep.c (sh_gdbarch_init): Ditto.
7129 * s390-tdep.c (s390_gdbarch_init): Ditto.
7130 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7131 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7132 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7133 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7134 * i386-tdep.c (i386_gdbarch_init): Ditto.
7135 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7136 * frv-tdep.c (frv_gdbarch_init): Ditto.
7137 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7138 * cris-tdep.c (cris_gdbarch_init): Ditto.
7139 * avr-tdep.c (avr_gdbarch_init): Ditto.
7140 * arm-tdep.c (arm_gdbarch_init): Ditto.
7141
018d1b48
JB
71422003-03-31 J. Brobecker <brobecker@gnat.com>
7143
7144 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7145 (INIT_FRAME_AP): Likewise.
7146 (EXTRA_FRAME_INFO): Likewise.
7147
e9a2674e
AC
71482003-03-31 Andrew Cagney <cagney@redhat.com>
7149
7150 * gdbarch.sh: Include "symfile.h".
7151 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7152 * gdbarch.h, gdbarch.c: Re-generate.
7153 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7154 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7155 call_dummy_address, the default is at entry_point_address.
7156 * v850-tdep.c (v850_gdbarch_init): Ditto.
7157 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7158 * sh-tdep.c (sh_gdbarch_init): Ditto.
7159 * s390-tdep.c (s390_gdbarch_init): Ditto.
7160 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7161 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7162 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7163 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7164 * i386-tdep.c (i386_gdbarch_init): Ditto.
7165 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7166 * frv-tdep.c (frv_gdbarch_init): Ditto.
7167 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7168 * cris-tdep.c (cris_gdbarch_init): Ditto.
7169 * arm-tdep.c (arm_gdbarch_init): Ditto.
7170
e8a8712a
AC
71712003-03-31 Andrew Cagney <cagney@redhat.com>
7172
7173 * gdbarch.sh (CALL_DUMMY_P): Delete.
7174 * gdbarch.h, gdbarch.c: Re-generate.
7175 * inferior.h (CALL_DUMMY_P): Delete macro.
7176 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7177 * vax-tdep.c (vax_gdbarch_init): Update.
7178 * v850-tdep.c (v850_gdbarch_init): Update.
7179 * sparc-tdep.c (sparc_gdbarch_init): Update.
7180 * sh-tdep.c (sh_gdbarch_init): Update.
7181 * s390-tdep.c (s390_gdbarch_init): Update.
7182 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7183 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7184 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7185 * mips-tdep.c (mips_gdbarch_init): Update.
7186 * mcore-tdep.c (mcore_gdbarch_init): Update.
7187 * m68k-tdep.c (m68k_gdbarch_init): Update.
7188 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7189 * ia64-tdep.c (ia64_gdbarch_init): Update.
7190 * i386-tdep.c (i386_gdbarch_init): Update.
7191 * h8300-tdep.c (h8300_gdbarch_init): Update.
7192 * frv-tdep.c (frv_gdbarch_init): Update.
7193 * d10v-tdep.c (d10v_gdbarch_init): Update.
7194 * cris-tdep.c (cris_gdbarch_init): Update.
7195 * breakpoint.c (deprecated_frame_in_dummy): Update.
7196 * avr-tdep.c (avr_gdbarch_init): Update.
7197 * alpha-tdep.c (alpha_gdbarch_init): Update.
7198 * arm-tdep.c (arm_gdbarch_init): Update.
7199 * dummy-frame.c (dummy_frame_this_id): Update comments.
7200 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7201 * frame.c (legacy_get_prev_frame): Ditto.
7202 * valops.c (call_function_by_hand): Delete function.
7203 (hand_function_call): Rename to call_function_by_hand
7204
ed234cf8
AC
72052003-03-30 Andrew Cagney <cagney@redhat.com>
7206
7207 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7208 * value.h (struct value): Update comment.
ed234cf8 7209
06c77151
AC
72102003-03-30 Andrew Cagney <cagney@redhat.com>
7211
6c2b5168
AC
7212 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7213 D10V_FP_REGNUM.
7214 (d10v_gdbarch_init): Do not set fp_regnum.
7215
06c77151
AC
7216 * frame.c (get_frame_base): Force ID initialization.
7217 (get_prev_frame): Move computation of the frame ID from here ...
7218 (get_frame_id): ... to here.
7219 (legacy_get_prev_frame): Mark the frame ID as valid.
7220 * frame.h (struct frame_info): Add field "id_p".
7221
97a1a11c
MK
72222003-03-30 Mark Kettenis <kettenis@gnu.org>
7223
7224 * i386-tdep.c (i386_store_struct_return): Removed.
7225 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7226
6c0e89ed
AC
72272003-03-30 Andrew Cagney <cagney@redhat.com>
7228
7229 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7230 * gdbarch.h, gdbarch.c: Regenerate.
7231 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7232 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7233 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7234 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7235 * i386-tdep.c (i386_gdbarch_init): Ditto.
7236 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7237 * cris-tdep.c (cris_gdbarch_init): Ditto.
7238 * vax-tdep.c (vax_gdbarch_init): Ditto.
7239 * s390-tdep.c (s390_gdbarch_init): Ditto.
7240 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7241 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7242 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7243 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7244 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7245 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7246 * sparc-tdep.c (sparc_gdbarch_init): Update.
7247 * sh-tdep.c (sh_gdbarch_init): Update.
7248 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7249 * mips-tdep.c (mips_gdbarch_init): Update.
7250 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7251 * ia64-tdep.c (ia64_gdbarch_init): Update.
7252 * frv-tdep.c (frv_gdbarch_init): Update.
7253 * avr-tdep.c (avr_gdbarch_init): Update.
7254 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7255 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7256 instead of when push_dummy_call is not available.
8ffd9b1b 7257
f7dd6af2
AC
72582003-03-30 Andrew Cagney <cagney@redhat.com>
7259
7260 * infttrace.c: Include "gdbthread.h".
7261 (parent_attach_all): Fix function signature.
7262 (call_ptrace): Update call.
7263 * Makefile.in (infttrace.o): Update dependencies.
7264
28f617b3
AC
72652003-03-30 Andrew Cagney <cagney@redhat.com>
7266
7267 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7268 PUSH_RETURN_ADDRESS.
7269 * gdbarch.h, gdbarch.c: Regenerate.
7270 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7271 * x86-64-tdep.c (x86_64_init_abi): Update.
7272 * v850-tdep.c (v850_gdbarch_init): Update.
7273 * sparc-tdep.c (sparc_gdbarch_init): Update.
7274 * sh-tdep.c (sh_gdbarch_init): Update.
7275 * s390-tdep.c (s390_gdbarch_init): Update.
7276 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7277 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7278 * mips-tdep.c (mips_gdbarch_init): Update.
7279 * mcore-tdep.c (mcore_gdbarch_init): Update.
7280 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7281 * ia64-tdep.c (ia64_gdbarch_init): Update.
7282 * i386-tdep.c (i386_gdbarch_init): Update.
7283 * h8300-tdep.c (h8300_gdbarch_init): Update.
7284 * frv-tdep.c (frv_gdbarch_init): Update.
7285 * cris-tdep.c (cris_gdbarch_init): Update.
7286 * avr-tdep.c (avr_gdbarch_init): Update.
7287 * arm-tdep.c (arm_gdbarch_init): Update.
7288 * valops.c (hand_function_call): Update.
7289
4d628cd7
AC
72902003-03-29 Andrew Cagney <cagney@redhat.com>
7291
7292 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7293 sizeof_call_dummy_words.
7294 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7295 define.
7296 * gdbarch.h: Regenerate.
8ffd9b1b 7297
65e82032
AC
72982003-03-29 Andrew Cagney <cagney@redhat.com>
7299
7300 * infttrace.h: New file.
7301 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7302 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7303 (hpread_read_doc_function_type): Detect an initialized type1.
7304 (hpread_quick_traverse): Initialize mod_name_string.
7305 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7306 (som_solib_get_solib_by_pc): Declare.
7307 (so_lib_thread_start_addr): Declare.
7308 (no_shared_libraries): Declare.
7309 * somread.c (init_import_symbols): Make static. Add forward
7310 declaration.
7311 * config/pa/nm-hppah.h: Include "infttrace.h" for
7312 parent_attach_all.
7313 (hppa_insert_hw_watchpoint): Declare.
7314 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7315 * hppah-nat.c: Include "gdb_string.h".
7316 (parent_attach_all): Delete extern declaration, moved to
7317 "infttrace.h".
7318 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7319 int.
7320 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7321 * Makefile.in (infttrace_h): Define.
7322 (hpread.o): Update dependencies.
7323 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7324 * hppa-hpux-tdep.c: Include "gdb_string.h".
7325 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7326 * infrun.c (handle_inferior_event): Always initialize
7327 stepped_after_stopped_by_watchpoint. Add default and remove
7328 fallthrough in switch statement.
7329 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7330 parameter to int.
7331 (hppa_remove_hw_watchpoint): Ditto.
7332
2c3bbe77
AC
73332003-03-29 Andrew Cagney <cagney@redhat.com>
7334
7335 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7336 offset.
7337
2dd604e7
RE
73382003-03-29 Richard Earnshaw <rearnsha@arm.com>
7339
7340 * arm-tdep.c (arm_push_arguments): Delete.
7341 (struct stack_item): New type.
7342 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7343 (arm_store_struct_return): Delte.
7344 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7345 arm_push_arguments or arm_store_struct_return.
7346
e8933a55
AC
73472003-03-28 Andrew Cagney <cagney@redhat.com>
7348
7349 * Makefile.in (d10v-tdep.o): Update dependencies.
7350 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7351 * d10v-tdep.c: Include "remote.h".
7352 (target_resume_hook): Delete extern declaration.
7353 (target_wait_loop_hook): Ditto.
7354 (tdisassemble_command): Eliminate assignment in "if" conditional.
7355 (d10v_ts2_register_sim_regno): Eliminate call to
7356 legacy_register_sim_regno.
7357 (d10v_ts3_register_sim_regno): Ditto.
7358
6949171e
JJ
73592003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7360
7361 * thread.c: Reindented.
7362 * lin-lwp.c: Ditto.
7363 * linux-proc.c: Ditto.
7364
98c7071f
BR
73652003-03-28 Bob Rossi <bob_rossi@cox.net>
7366
fbe586ae 7367 * MAINTAINERS (write after approval): Add myself.
98c7071f 7368
5edc9ca6
TR
73692003-03-27 Theodore A. Roth <troth@openavr.org>
7370
7371 * objc-exp.y: Add missing semi-colons.
7372
378bfd1b
AC
73732003-03-27 Andrew Cagney <cagney@redhat.com>
7374
7375 * regcache.c (write_sp): Delete function and references.
7376 * inferior.h (write_sp): Delete declaration.
7377 * valops.c (hand_function_call): Replace write_sp with
7378 TARGET_WRITE_SP.
7379 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7380 (sparc_pop_frame): Ditto.
8ffd9b1b 7381
56056df7
AC
73822003-03-27 Andrew Cagney <cagney@redhat.com>
7383
7384 * NEWS: Mention removal of support for hppa*-*-bsd* and
7385 hppa*-*-osf* natives, and hppa*-*-pro* target.
7386 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7387 * config/pa/xm-pa.h: Obsolete file.
7388 * config/pa/xm-hppab.h: Obsolete file.
7389 * config/pa/nm-hppab.h: Obsolete file.
7390 * config/pa/tm-hppab.h: Obsolete file.
7391 * config/pa/tm-hppao.h: Obsolete file.
7392 * config/pa/nm-hppao.h: Obsolete file.
7393 * config/pa/tm-pro.h: Obsolete file.
7394 * config/pa/hppaosf.mt: Obsolete file.
7395 * config/pa/hppaosf.mh: Obsolete file.
7396 * config/pa/hppapro.mt: Obsolete file.
7397 * config/pa/hppabsd.mt: Obsolete file.
7398 * config/pa/hppabsd.mh: Obsolete file.
7399 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7400 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7401 hppa*-*-osf*.
7402
5873a88d
AC
74032003-03-27 Andrew Cagney <cagney@redhat.com>
7404
7405 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7406 push_arguments. Don't set push_return_address or write_sp.
7407 (d10v_push_dummy_call): Replace d10v_push_arguments.
7408 (d10v_push_return_address, d10v_write_sp): Delete function,
7409 handled by push_dummy_call.
7410
b81774d8
AC
74112003-03-26 Andrew Cagney <cagney@redhat.com>
7412
7413 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7414 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7415 regcache and dummy_addr parameters.
7416 * gdbarch.h, gdbarch.c: Re-generate.
7417 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7418 available; assume it will handle stack alignment and return
7419 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7420 legacy_push_arguments.
7421 (legacy_push_arguments): Rename default_push_arguments.
7422 * value.h (legacy_push_arguments): Rename default_push_arguments.
7423 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7424 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7425 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7426 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7427 * config/i386/tm-symmetry.h: Update.
7428 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7429 * x86-64-tdep.c (x86_64_init_abi): Update.
7430 * v850-tdep.c (v850_gdbarch_init): Update.
7431 * sparc-tdep.c (sparc_gdbarch_init): Update.
7432 * sh-tdep.c (sh_gdbarch_init): Update.
7433 * s390-tdep.c (s390_gdbarch_init): Update.
7434 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7435 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7436 * mips-tdep.c (mips_gdbarch_init): Update.
7437 * mcore-tdep.c (mcore_gdbarch_init): Update.
7438 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7439 * ia64-tdep.c (ia64_gdbarch_init): Update.
7440 * i386-tdep.c (i386_gdbarch_init): Update.
7441 * hppa-tdep.c (hppa_gdbarch_init): Update.
7442 * h8300-tdep.c (h8300_gdbarch_init): Update.
7443 * frv-tdep.c (frv_gdbarch_init): Update.
7444 * d10v-tdep.c (d10v_gdbarch_init): Update.
7445 * cris-tdep.c (cris_gdbarch_init): Update.
7446 * avr-tdep.c (avr_gdbarch_init): Update.
7447 * arm-tdep.c (arm_gdbarch_init): Update.
7448 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7449 * alpha-tdep.c (alpha_gdbarch_init): Update.
7450
f541410f
DJ
74512003-03-26 Daniel Jacobowitz <drow@mvista.com>
7452
7453 * signals/signals.c (do_target_signal_to_host): Correct realtime
7454 signal range test.
7455
69f567ae
DJ
74562003-03-26 Daniel Jacobowitz <drow@mvista.com>
7457
7458 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7459 (struct sal_chain, map_catch_names): Remove.
7460 (catch_exception_command_1): Don't call
7461 handle_gnu_4_16_catch_command.
7462
d5d14a5a
DJ
74632003-03-26 Daniel Jacobowitz <drow@mvista.com>
7464
7465 From Mark Dettinger <dettinge@de.ibm.com>:
7466 * dwarf2cfi.c (read_2u): Increment pointer by two.
7467
bdd73e22
DJ
74682003-03-26 Daniel Jacobowitz <drow@mvista.com>
7469
7470 * signals/signals.c: Fix typos in last change.
7471
960cb555
DJ
74722003-03-26 Daniel Jacobowitz <drow@mvista.com>
7473
7474 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7475 not already defined. Use __SIGRTMIN if available.
7476 (target_signal_from_host): Remove SIGRTMIN block.
7477 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7478 the signal is within the realtime range.
7479
f636b87d
AF
74802003-03-25 Adam Fedor <fedor@gnu.org>
7481
7482 * Makefile.in (infrun.o): Add $(language_h)
7483 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7484 for language specific trampolines.
7485 * language.h (struct language_defn): Add skip_trampoline.
7486 (skip_language_trampoline): Declare.
7487 * language.c (unk_lang_trampoline, skip_language_trampoline):
7488 New functions.
7489 (unknown_language_defn, auto_language_defn, local_language_defn):
7490 Add ukn_lang_trampoline.
7491 * ada-lang.c (ada_language_defn): Add NULL for language
7492 specific skip_trampoline.
7493 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7494 scm-lang.c: Likewise.
7495 * objc-lang.c (objc_skip_trampoline): New function.
7496 (objc_language_defn): Add objc_skip_trampoline.
7497
28f617b3 74982003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
7499
7500 * frame.c (get_prev_frame): Delay validating a frame's ID -
7501 non-NULL, didn't go backwards - until an attempt to unwind it to
7502 the previous frame.
7503
f933a9c5
AC
75042003-03-25 Andrew Cagney <cagney@redhat.com>
7505
7506 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7507 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7508 * gdbarch.h, gdbarch.c: Re-generate.
7509 * config/sparc/tm-sparc.h
7510 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7511 * sparc-tdep.c (sparc_gdbarch_init): Set
7512 deprecated_extra_stack_alignment_needed.
7513 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7514 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7515 extra_stack_alignment_needed.
7516 * v850-tdep.c (v850_gdbarch_init): Ditto.
7517 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7518 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7519 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7520 * cris-tdep.c (cris_gdbarch_init): Ditto.
7521 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7522 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7523
4183d812
AC
75242003-03-25 Andrew Cagney <cagney@redhat.com>
7525
7526 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7527 STORE_STRUCT_RETURN.
7528 * gdbarch.h, gdbarch.c: Regenerate.
7529 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7530 (d10v_push_arguments): Set the struct return register.
7531 (d10v_gdbarch_init): Update.
7532 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7533 * x86-64-tdep.c (x86_64_init_abi): Update.
7534 * vax-tdep.c (vax_gdbarch_init): Update.
7535 * v850-tdep.c (v850_gdbarch_init): Update.
7536 * sparc-tdep.c (sparc_gdbarch_init): Update.
7537 * sh-tdep.c (sh_gdbarch_init): Update.
7538 * s390-tdep.c (s390_gdbarch_init): Update.
7539 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7540 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7541 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7542 * mips-tdep.c (mips_gdbarch_init): Update.
7543 * mcore-tdep.c (mcore_gdbarch_init): Update.
7544 * m68k-tdep.c (m68k_gdbarch_init): Update.
7545 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7546 * ia64-tdep.c (ia64_gdbarch_init): Update.
7547 * i386-tdep.c (i386_gdbarch_init): Update.
7548 * hppa-tdep.c (hppa_gdbarch_init): Update.
7549 * h8300-tdep.c (h8300_gdbarch_init): Update.
7550 * frv-tdep.c (frv_gdbarch_init): Update.
7551 * cris-tdep.c (cris_gdbarch_init): Update.
7552 * avr-tdep.c (avr_gdbarch_init): Update.
7553 * arm-tdep.c (arm_gdbarch_init): Update.
7554 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7555
1bf6d5cc
AC
75562003-03-25 Andrew Cagney <cagney@redhat.com>
7557
7558 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7559 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7560 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7561 * gdbarch.h, gdbarch.c: Regenerate.
7562 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7563 call_dummy_stack_adjust_p.
7564 * vax-tdep.c (vax_gdbarch_init): Ditto.
7565 * v850-tdep.c (v850_gdbarch_init): Ditto.
7566 * sh-tdep.c (sh_gdbarch_init): Ditto.
7567 * s390-tdep.c (s390_gdbarch_init): Ditto.
7568 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7569 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7570 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7571 * mips-tdep.c (mips_gdbarch_init): Ditto.
7572 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7573 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7574 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7575 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7576 * i386-tdep.c (i386_gdbarch_init): Ditto.
7577 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7578 * frv-tdep.c (frv_gdbarch_init): Ditto.
7579 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7580 * cris-tdep.c (cris_gdbarch_init): Ditto.
7581 * avr-tdep.c (avr_gdbarch_init): Ditto.
7582 * arm-tdep.c (arm_gdbarch_init): Ditto.
7583 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7584 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7585 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7586 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7587 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7588 call_dummy_stack_adjust_p.
7589 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7590 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7591 * sparc-tdep.c (sparc32_push_arguments): Update.
7592 * valops.c (hand_function_call): Update.
7593
71c08af0
CV
75942003-03-25 Corinna Vinschen <vinschen@redhat.com>
7595
7596 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7597 set_gdbarch_char_signed.
7598
30757f90
RE
75992003-03-25 Richard Earnshaw <rearnsha@arm.com>
7600
7601 PR cli/548
7602 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7603
03d48a7d
RE
76042003-03-25 Richard Earnshaw <rearnsha@arm.com>
7605
7606 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7607 (_initialize_arm_tdep): Don't set tm_print_insn.
7608
2cf6873c
AF
76092003-03-24 Adam Fedor <fedor@gnu.org>
7610
7611 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7612 * objc-lang.h: Add multiple inclusion protection.
7613 (start_msglist, add_msglist, end_msglist): Additional declarations.
7614
17c0759e
RE
76152003-03-24 Richard Earnshaw <rearnsha@arm.com>
7616
7617 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7618 value was renamed to ARM_FLOAT_SOFT_FPA.
7619
618ce49f
AC
76202003-03-23 Andrew Cagney <cagney@redhat.com>
7621
7622 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7623 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7624 * gdbarch.h, gdbarch.c: Regenerate.
7625 * valops.c (hand_function_call): Update.
7626 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7627 * frame.c (legacy_saved_regs_this_id): Update.
7628 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7629 * dummy-frame.h: Update.
7630 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7631 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7632 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7633 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7634 * config/m68k/tm-sun3.h: Update.
7635 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7636 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7637 * x86-64-tdep.c (x86_64_init_abi): Update.
7638 * vax-tdep.c (vax_gdbarch_init): Update.
7639 * v850-tdep.c (v850_gdbarch_init): Update.
7640 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7641 * sh-tdep.c (sh_gdbarch_init): Update.
7642 * s390-tdep.c (s390_gdbarch_init): Update.
7643 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7644 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7645 (frame_get_saved_regs): Update.
7646 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7647 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7648 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7649 * mips-tdep.c (mips_gdbarch_init): Update.
7650 * mcore-tdep.c (mcore_gdbarch_init): Update.
7651 * m68k-tdep.c (m68k_gdbarch_init): Update.
7652 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7653 * ia64-tdep.c (ia64_gdbarch_init): Update.
7654 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7655 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7656 (i386_interix_back_one_frame): Update.
7657 * hppa-tdep.c (hppa_gdbarch_init): Update.
7658 (hppa_init_extra_frame_info): Update.
7659 * h8300-tdep.c (h8300_gdbarch_init): Update.
7660 * frv-tdep.c (frv_gdbarch_init): Update.
7661 * cris-tdep.c (cris_gdbarch_init): Update.
7662 * avr-tdep.c (avr_gdbarch_init): Update.
7663 * arm-tdep.c (arm_gdbarch_init): Update.
7664 * alpha-tdep.c (alpha_gdbarch_init): Update.
7665
fd50bc42
RE
76662003-03-22 Richard Earnshaw <rearnsha@arm.com>
7667
7668 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7669 (arm_get_fp_model): Declare.
7670 * arm-tdep.c (fp_model_strings): New string array.
7671 (arm_fp_model, current_fp_model): New variables.
7672 (arm_get_fp_model): New function.
7673 (arm_set_fp): New function.
7674 (set_fp_model_sfunc): New function.
7675 (show_fp_model): New function.
7676 (_initialize_arm_tdep): Add new command to set/show the FPU.
7677 (arm_extract_return_value): Use arm_get_fp_model.
7678 (arm_store_return_value): Likewise.
7679 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7680 to initialize the floating-point data types.
7681 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7682 model is FPA.
7683
26304000
RE
76842003-03-22 Richard Earnshaw <rearnsha@arm.com>
7685
7686 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7687 the current setting of each value.
7688 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 7689 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
7690 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7691 commands and add new version as subcommands of "set/show arm".
7692
afd7eef0
RE
76932003-03-22 Richard Earnshaw <rearnsha@arm.com>
7694
7695 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7696 (set_arm_command, show_arm_command): New functions.
7697 (_initialize_arm_tdep): Add them.
7698 (num_disassembly_options): Renamed from num_flavor_options.
7699 (valid_disassembly_styles): Renamed from valid_flavors.
7700 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 7701 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
7702 set_disassembly_flavor_sfunc.
7703 (set_disassembly_style): Renamed from set_disassembly_flavor.
7704 (arm_othernames): Updated.
7705 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7706 command. Add "set/show arm disassembly" commands. Deprecate
7707 "othernames" command.
7708
299a7944
RE
77092003-03-22 Richard Earnshaw <rearnsha@arm.com>
7710
7711 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7712 (arm-tdep.o): Depend on elf_arm_h.
7713
c1dac9e6
RE
77142003-03-22 Richard Earnshaw <rearnsha@arm.com>
7715
7716 * Makefile.in (coff_internal_h): Define.
7717 (arm-tdep.o): Update dependencies.
7718
2702d96c
RE
77192003-03-22 Richard Earnshaw <rearnsha@arm.com>
7720
7721 * arm-tdep.c (prologue_cache): Delete.
7722 (check_prologue_cache, save_prologue_cache): Delete.
7723 (arm_scan_prologue): Don't check or update the prologue_cache.
7724 (arm_gdb_arch_init): Don't initialize it.
7725 (_initialize_arm_tdep): Likewise.
7726
27d5d74b
SC
77272003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7728
7729 * MAINTAINERS (tui): Maintainer of tui code.
7730
1762d96d
CV
77312003-03-21 Corinna Vinschen <vinschen@redhat.com>
7732
7733 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7734 (i386-cygwin-tdep.o): Add dependencies.
7735 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7736 * i386-cygwin-tdep.c: New file.
7737 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7738 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7739
4c2e2391
AC
77402003-03-20 Andrew Cagney <cagney@redhat.com>
7741
f20d38b7
AC
7742 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7743 (handle_inferior_event): Remove code calling
7744 DYNAMIC_TRAMPOLINE_NEXTPC.
7745
0022b738
AC
7746 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7747 already has a full path.
7748
864dbc90
AC
7749 * main.c (gdb_main): Return 1.
7750 (captured_main): Call error to report an invalid interpreter.
7751
4c2e2391
AC
7752 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7753 * alpha-osf1-tdep.c: Include "gdb_string.h".
7754
5ef7553b
JB
77552003-03-19 J. Brobecker <brobecker@gnat.com>
7756
7757 Continuing work to convert the hppa targets to multiarch partial.
7758
7759 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7760 method, now that hppa_push_dummy_frame has a conformant prototype.
7761 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7762 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7763 for the switch to multiarch partial.
7764
7bde8967
KB
77652003-03-19 Kevin Buettner <kevinb@redhat.com>
7766
7767 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7768 when iss is issNull.
7769
b006a9e9
KB
77702003-03-18 Kevin Buettner <kevinb@redhat.com>
7771
7772 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7773 NUM_REGS bounds check.
7774
5e2e9765
KB
77752003-03-18 Kevin Buettner <kevinb@redhat.com>
7776
7777 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7778 * mips-tdep.c (gdb_assert.h): Include.
7779 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7780 (mips_register_name): Handle integer registers explicitly. Add
7781 bounds checking.
7782 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7783 (mips_lsi33k_reg_names): Don't list integer registers; they're
7784 handled by mips_register_name() now.
7785 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7786 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7787 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7788 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7789 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7790
a2867626
AC
77912003-03-18 Andrew Cagney <cagney@redhat.com>
7792
7793 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7794 a void pointer.
7795 * gdbtypes.h (print_scalar_formatted): Update declaration.
7796 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7797
06600e06
JB
77982003-03-18 J. Brobecker <brobecker@gnat.com>
7799
7800 * infrun.c (observer.h): Add #include.
7801 (normal_stop): Add call to observer_notify_normal_stop.
7802 * Makefile.in (infrun.o): Add dependency on observer.h.
7803
7daf4f5b
JB
78042003-03-18 J. Brobecker <brobecker@gnat.com>
7805
7806 Continuing work to convert the hppa targets to multiarch partial.
7807 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7808 parameter. Reformat comment.
7809 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7810 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7811 to match new profile.
7812
3371ccc0
JB
78132003-03-18 J. Brobecker <brobecker@gnat.com>
7814
7815 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7816 appear to be working in any case.
7817
4fbe891e
JB
78182003-03-18 J. Brobecker <brobecker@gnat.com>
7819
7820 * observer.c (observer_test_first_observer): New static variable.
7821 (observer_test_second_observer): Likewise.
7822 (observer_test_third_observer): Likewise.
7823 (observer_test_first_notification_function): New static function.
7824 (observer_test_second_notification_function): Likewise.
7825 (observer_test_third_notification_function): Likewise.
7826
a7ff40e7
JB
78272003-03-17 J. Brobecker <brobecker@gnat.com>
7828
7829 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7830 * somsolib.c (gdb_assert.h): Likewise.
7831 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7832 (somsolib.o): Likewise.
7833
26ca4152
AC
78342003-03-17 Andrew Cagney <cagney@redhat.com>
7835
7836 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7837 BFD. Simplify setting of di.endian.
7838
0a613259
AC
78392003-03-17 Andrew Cagney <cagney@redhat.com>
7840
7841 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7842 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7843
7844 From Elena Zannoni <ezannoni@redhat.com>
7845 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7846 vector and floating-point parameters.
7847 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7848 convention.
7849 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7850
1132738f
FN
78512003-03-17 Fernando Nasser <fnasser@redhat.com>
7852
7853 * MAINTAINERS: Remove my name from several maintainership roles.
7854
6dc42492
AC
78552003-03-17 Andrew Cagney <cagney@redhat.com>
7856
7857 Fix frame off-by-one bug.
7858 * frame-unwind.h (frame_this_id_ftype): Replace
7859 frame_unwind_id_ftype.
7860 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7861 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7862 with "prev_register".
7863 * frame-unwind.c (frame_unwind_find_by_pc): Return
7864 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7865 comment.
7866 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7867 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7868 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7869 (dummy_frame_unwind): Update.
7870 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7871 sentinel_frame_register_unwind.
7872 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7873 (sentinel_frame_unwinder): Update.
7874 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7875 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7876 * frame.c (create_sentinel_frame): Update. Initialize
7877 "prologue_cache" instead of "unwind_cache".
7878 (frame_register_unwind): Call this frame's prev_register with the
7879 next frame and this frame's prologue cache.
7880 (get_prev_frame): Simplify. Always call prev frame's this_id with
7881 this frame and prev frame's prologue cache. Document that this
7882 call is shifted one to the left when compared to the
7883 frame_register_unwind call.
7884 (legacy_saved_regs_prev_register): Replace
7885 frame_saved_regs_register_unwind.
7886 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7887 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7888 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7889 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7890 (d10v_frame_unwind): Update.
7891 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7892 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7893 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7894 "saved_regs" with "this_saved_regs".
7895
efd710d6
AC
78962003-03-16 Andrew Cagney <cagney@redhat.com>
7897
7898 * frame.c (frame_pop): Don't call target_store_registers. Fix
7899 problem reported by Mark Kettenis.
7900
4e259f09
MK
79012003-03-16 Mark Kettenis <kettenis@gnu.org>
7902
7903 * i386-tdep.c (i386_register_type): Renamed from
7904 i386_register_virtual_type. Adjust function signature.
7905 (i386_gdbarch_init): Set register_type instead of
7906 deprecated_max_register_raw_size,
7907 deprecated_max_register_virtual_size and register_virtual_type.
7908
055bb976
AC
79092003-03-14 Andrew Cagney <cagney@redhat.com>
7910
7911 * frame.c (get_prev_frame): When a legacy frame, always call
7912 legacy_get_prev_frame. Simplify unwind code using assumption that
7913 the unwinder is new.
7914 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7915 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7916 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7917
ac2adee5
AC
79182003-03-14 Andrew Cagney <cagney@redhat.com>
7919
7920 * frame.c (get_saved_register): Delete function.
7921 * frame.h (get_saved_register): Delete declaration.
7922 * xstormy16-tdep.c: Update comment.
7923 * regcache.h: Update comments.
7924 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7925 get_saved_register and extract_address, use
7926 frame_read_unsigned_register.
7927 (sparc_frame_saved_pc): Ditto.
7928 (sparc_get_saved_register): Instead of get_saved_register, use
7929 frame_register.
7930 (sparc_pop_frame): Ditto.
7931 * findvar.c: Update comments.
7932 (value_of_register): Call frame_register instead of
7933 get_saved_register.
7934 (value_from_register): Ditto.
7935 * config/sparc/tm-sparc.h: Update comment.
7936 * breakpoint.c: Update comment.
7937
129c1cd6
AC
79382003-03-14 Andrew Cagney <cagney@redhat.com>
7939
7940 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7941 GET_SAVED_REGISTER.
7942 * gdbarch.h, gdbarch.c: Re-generate.
7943 * frame.h: Update comments.
7944 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7945 * x86-64-tdep.c (x86_64_init_abi): Update.
7946 * sparc-tdep.c (sparc_gdbarch_init): Update.
7947 * sh-tdep.c (sh_gdbarch_init): Update.
7948 * mips-tdep.c (mips_gdbarch_init): Update.
7949 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7950 * cris-tdep.c (cris_gdbarch_init): Update.
7951 * ia64-tdep.c (ia64_gdbarch_init): Update.
7952 * frame.c (frame_register): Update.
7953 (get_saved_register): Update.
7954 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 7955
749b82f6
AC
79562003-03-13 Andrew Cagney <cagney@redhat.com>
7957
7958 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7959 * gdbarch.h, gdbarch.c: Regenerate.
7960 * valops.c (hand_function_call): Update comment.
7961 * stack.c (return_command): Update comment.
7962 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7963 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7964 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7965 * x86-64-tdep.c (x86_64_init_abi): Update.
7966 * vax-tdep.c (vax_gdbarch_init): Update.
7967 * v850-tdep.c (v850_gdbarch_init): Update.
7968 * sparc-tdep.c (sparc_gdbarch_init): Update.
7969 * sh-tdep.c (sh_gdbarch_init): Update.
7970 * s390-tdep.c (s390_gdbarch_init): Update.
7971 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7972 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7973 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7974 * mips-tdep.c (mips_gdbarch_init): Update.
7975 * mcore-tdep.c (mcore_gdbarch_init): Update.
7976 * m68k-tdep.c (m68k_gdbarch_init): Update.
7977 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7978 * ia64-tdep.c (ia64_gdbarch_init): Update.
7979 * i386-tdep.c (i386_gdbarch_init): Update.
7980 * hppa-tdep.c (hppa_gdbarch_init): Update.
7981 * h8300-tdep.c (h8300_gdbarch_init): Update.
7982 * frv-tdep.c (frv_gdbarch_init): Update.
7983 * cris-tdep.c (cris_gdbarch_init): Update.
7984 * avr-tdep.c (avr_gdbarch_init): Update.
7985 * arm-tdep.c (arm_gdbarch_init): Update.
7986 * alpha-tdep.c (alpha_gdbarch_init): Update.
7987
1594fa56
AC
79882003-03-13 Andrew Cagney <cagney@redhat.com>
7989
7990 * frame.c (legacy_frame_p): New function.
7991 (get_prev_frame): Use legacy_frame_p.
7992 * frame.h (legacy_frame_p): Declare.
7993
7717fda3
V
79942003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7995
fbe586ae 7996 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
7997 listing corrected.
7998
0c67cbe9
V
79992003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8000
fbe586ae 8001 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8002
03febf99
AC
80032003-03-12 Andrew Cagney <cagney@redhat.com>
8004
8005 * frame.c (get_prev_frame): Rename the frame parameter to
8006 "this_frame".
8007 (get_next_frame, legacy_get_prev_frame): Ditto.
8008
0a1e1ca1
AC
80092003-03-12 Andrew Cagney <cagney@redhat.com>
8010
8011 * frame.c (get_current_frame): Check target_has_registers before
8012 checking target_has_stack.
8013 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8014 instead of deprecated_selected_frame.
8015 * findvar.c (value_of_register): Pass "frame", not
8016 deprecated_selected_frame, to value_of_builtin_reg.
8017
a66a9c23
AC
80182003-03-12 Andrew Cagney <cagney@redhat.com>
8019
8020 * regcache.c (regcache_cooked_write_signed): New function.
8021 (regcache_cooked_write_unsigned): New function.
8022 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8023 (regcache_cooked_read_signed): Fix regnum in range assertion.
8024 * regcache.h (regcache_cooked_write_signed): Declare.
8025 (regcache_cooked_write_unsigned): Declare.
8026
8bedc050
AC
80272003-03-12 Andrew Cagney <cagney@redhat.com>
8028
8029 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8030 * gdbarch.h, gdbarch.c: Re-generate.
8031 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8032 * x86-64-tdep.h: Update.
8033 * x86-64-tdep.c (x86_64_init_abi): Update.
8034 * v850-tdep.c (v850_gdbarch_init): Update.
8035 * sparc-tdep.c (sparc_gdbarch_init): Update.
8036 * sh-tdep.c (sh_gdbarch_init): Update.
8037 * s390-tdep.c (s390_gdbarch_init): Update.
8038 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8039 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8040 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8041 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8042 * mips-tdep.c (mips_gdbarch_init): Update.
8043 * mcore-tdep.c (mcore_gdbarch_init): Update.
8044 * m68k-tdep.c (m68k_gdbarch_init): Update.
8045 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8046 * ia64-tdep.c (ia64_gdbarch_init): Update.
8047 * i386-tdep.c (i386_gdbarch_init): Update.
8048 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8049 * hppa-tdep.c (hppa_gdbarch_init): Update.
8050 * h8300-tdep.c (h8300_gdbarch_init): Update.
8051 * frv-tdep.c (frv_gdbarch_init): Update.
8052 * cris-tdep.c (cris_gdbarch_init): Update.
8053 * avr-tdep.c (avr_gdbarch_init): Update.
8054 * arm-tdep.c (arm_gdbarch_init): Update.
8055 * alpha-tdep.c (alpha_gdbarch_init): Update.
8056 * sh-tdep.c (sh_init_extra_frame_info): Update.
8057 (sh64_init_extra_frame_info): Update.
8058 * ns32knbsd-nat.c (frame_num_args): Update.
8059 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8060 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8061 (xstormy16_frame_chain_valid): Update.
8062 * vax-tdep.c (vax_saved_pc_after_call): Update.
8063 * v850-tdep.c (v850_frame_chain): Update.
8064 (v850_pop_frame): Update.
8065 (v850_init_extra_frame_info): Update.
8066 * sparc-tdep.c (setup_arbitrary_frame): Update.
8067 * ns32k-tdep.c (umax_frame_num_args): Update.
8068 * s390-tdep.c (s390_pop_frame_regular): Update.
8069 * mn10300-tdep.c (mn10300_frame_chain): Update.
8070 (mn10300_pop_frame_regular): Update.
8071 (mn10300_init_extra_frame_info): Update.
8072 * mips-tdep.c (mips_init_frame_pc_first): Update.
8073 (mips_frame_chain): Update.
8074 (mips_pop_frame): Update.
8075 * mcore-tdep.c (mcore_frame_chain): Update.
8076 (mcore_pop_frame): Update.
8077 (mcore_init_extra_frame_info): Update.
8078 * arch-utils.c (init_frame_pc_default): Update.
8079 * m68k-tdep.c (isi_frame_num_args): Update.
8080 (delta68_frame_num_args): Update.
8081 (news_frame_num_args): Update.
8082 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8083 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8084 (alpha_frame_chain): Update.
8085 (alpha_pop_frame): Update.
8086 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8087 (hppa_init_extra_frame_info): Update.
8088 (hppa_frame_chain): Update.
8089 (hppa_frame_chain_valid): Update.
8090 * cris-tdep.c (cris_init_extra_frame_info): Update.
8091 * avr-tdep.c (avr_init_extra_frame_info): Update.
8092 * arm-tdep.c (arm_frame_chain_valid): Update.
8093 (arm_init_extra_frame_info): Update.
8094 (arm_pop_frame): Update.
8095 * frame.c (frame_pc_unwind): Update.
8096 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8097 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8098 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8099 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8100 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8101 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8102
7a25a7c1
AC
81032003-03-12 Andrew Cagney <cagney@redhat.com>
8104
8105 Eliminate the need for POP_FRAME.
8106 * frame.c (do_frame_unwind_register): New function.
8107 (frame_pop): When no POP_FRAME, pop the frame using register
8108 unwind and a scratch regcache.
8109 (frame_saved_regs_pop): Delete function.
8110 (trad_frame_unwinder): Update.
8111 * d10v-tdep.c (d10v_frame_pop): Delete function.
8112 (d10v_frame_unwind): Update.
8113 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8114 (sentinel_frame_unwinder): Update.
8115 * dummy-frame.c (dummy_frame_pop): Delete function.
8116 (dummy_frame_unwind): Update.
8117 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8118 (struct frame_unwind): Update.
8119
2f38ef89
KB
81202003-03-11 Kevin Buettner <kevinb@redhat.com>
8121
8122 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8123 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8124 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8125 Do range checks on register number obtained from debugging info.
8126 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8127 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8128 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8129 mapping function.
8130 (do_fp_register_row): Fix typo which caused double type to be
8131 used when attempting to unpack a float.
8132
552f4abf
JB
81332003-03-11 J. Brobecker <brobecker@gnat.com>
8134
8135 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8136
e0d2ae16
AC
81372003-03-11 Andrew Cagney <cagney@redhat.com>
8138
8139 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8140 frame. Problem found by Corinna Vinschen.
8141
ddbfdd06
PM
81422003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8143
8144 * doublest.c (floatformat_from_length): Accept also
8145 the real size of 'long double' type.
8146
088b2ddc 81472003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8148
088b2ddc 8149 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8150 * breakpoint.c (bpstat_copy): Copy the command lines as well
8151 as the old value, to match what is freed in bpstat_clear.
8152
f56f77c1
DC
81532003-03-10 David Carlton <carlton@math.stanford.edu>
8154
8155 * minsyms.c (add_minsym_to_hash_table): Replace
8156 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8157 (compare_minimal_symbols, compact_minimal_symbols)
8158 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8159 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8160 of DEPRECATED_SYMBOL_MATCHES_NAME.
8161 (lookup_minimal_symbol_solib_trampoline): Ditto.
8162
5602984a
AC
81632003-03-10 Andrew Cagney <cagney@redhat.com>
8164
8165 * regcache.h (regcache_cooked_read_ftype): Define.
8166 (regcache_save, regcache_restore): Add a cooked_read parameter.
8167 * regcache.c (regcache_save, regcache_restore): Update.
8168 (do_cooked_read): New function.
8169 (regcache_cpy): Pass do_cooked_read to regcache_save and
8170 regcache_restore.
8171
8bedc050
AC
81722003-03-10 Andrew Cagney <cagney@redhat.com>
8173
8174 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8175 * gdbarch.h, gdbarch.c: Re-generate.
8176 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8177 * x86-64-tdep.h: Update.
8178 * x86-64-tdep.c (x86_64_init_abi): Update.
8179 * v850-tdep.c (v850_gdbarch_init): Update.
8180 * sparc-tdep.c (sparc_gdbarch_init): Update.
8181 * sh-tdep.c (sh_gdbarch_init): Update.
8182 * s390-tdep.c (s390_gdbarch_init): Update.
8183 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8184 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8185 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8186 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8187 * mips-tdep.c (mips_gdbarch_init): Update.
8188 * mcore-tdep.c (mcore_gdbarch_init): Update.
8189 * m68k-tdep.c (m68k_gdbarch_init): Update.
8190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8191 * ia64-tdep.c (ia64_gdbarch_init): Update.
8192 * i386-tdep.c (i386_gdbarch_init): Update.
8193 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8194 * hppa-tdep.c (hppa_gdbarch_init): Update.
8195 * h8300-tdep.c (h8300_gdbarch_init): Update.
8196 * frv-tdep.c (frv_gdbarch_init): Update.
8197 * cris-tdep.c (cris_gdbarch_init): Update.
8198 * avr-tdep.c (avr_gdbarch_init): Update.
8199 * arm-tdep.c (arm_gdbarch_init): Update.
8200 * alpha-tdep.c (alpha_gdbarch_init): Update.
8201 * sh-tdep.c (sh_init_extra_frame_info): Update.
8202 (sh64_init_extra_frame_info): Update.
8203 * ns32knbsd-nat.c (frame_num_args): Update.
8204 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8205 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8206 (xstormy16_frame_chain_valid): Update.
8207 * vax-tdep.c (vax_saved_pc_after_call): Update.
8208 * v850-tdep.c (v850_frame_chain): Update.
8209 (v850_pop_frame): Update.
8210 (v850_init_extra_frame_info): Update.
8211 * sparc-tdep.c (setup_arbitrary_frame): Update.
8212 * ns32k-tdep.c (umax_frame_num_args): Update.
8213 * s390-tdep.c (s390_pop_frame_regular): Update.
8214 * mn10300-tdep.c (mn10300_frame_chain): Update.
8215 (mn10300_pop_frame_regular): Update.
8216 (mn10300_init_extra_frame_info): Update.
8217 * mips-tdep.c (mips_init_frame_pc_first): Update.
8218 (mips_frame_chain): Update.
8219 (mips_pop_frame): Update.
8220 * mcore-tdep.c (mcore_frame_chain): Update.
8221 (mcore_pop_frame): Update.
8222 (mcore_init_extra_frame_info): Update.
8223 * arch-utils.c (init_frame_pc_default): Update.
8224 * m68k-tdep.c (isi_frame_num_args): Update.
8225 (delta68_frame_num_args): Update.
8226 (news_frame_num_args): Update.
8227 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8228 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8229 (alpha_frame_chain): Update.
8230 (alpha_pop_frame): Update.
8231 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8232 (hppa_init_extra_frame_info): Update.
8233 (hppa_frame_chain): Update.
8234 (hppa_frame_chain_valid): Update.
8235 * cris-tdep.c (cris_init_extra_frame_info): Update.
8236 * avr-tdep.c (avr_init_extra_frame_info): Update.
8237 * arm-tdep.c (arm_frame_chain_valid): Update.
8238 (arm_init_extra_frame_info): Update.
8239 (arm_pop_frame): Update.
8240 * frame.c (frame_pc_unwind): Update.
8241 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8242 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8243 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8244 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8245 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8246 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8247
12cc2063
AC
82482003-03-10 Andrew Cagney <cagney@redhat.com>
8249
8250 * gdbarch.sh (gdbarch_unwind_pc): New method.
8251 * gdbarch.h, gdbarch.c: Regenerate.
8252 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8253 but use read_pc and FRAME_SAVED_PC as fall backs.
8254 (frame_saved_regs_pc_unwind): Delete function.
8255 (trad_frame_unwinder): Update.
8256 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8257 (struct frame_unwind): Update.
8258 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8259 (dummy_frame_unwind): Update.
8260 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8261 (sentinel_frame_unwinder): Update.
8262 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8263 (d10v_frame_unwind): Update.
8264 (d10v_unwind_pc): New function.
8265 (d10v_gdbarch_init): Set unwind_pc.
8266
ef840a37
AC
82672003-03-10 Andrew Cagney <cagney@redhat.com>
8268
a2ce2e56
AC
8269 * gdbarch.h: Re-generate.
8270
ef840a37
AC
8271 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8272 PC.
8273 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8274 the PC register.
8275
08f3424b
MK
82762003-03-08 Mark Kettenis <kettenis@gnu.org>
8277
8278 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8279
1248ede2
AC
82802003-03-08 Andrew Cagney <cagney@redhat.com>
8281
8282 * cli-out.c: Update copyright.
8283 (cli_out_data): Define typedef. Use instead of ui_out_data.
8284
f49bacc8
AC
82852003-03-08 Andrew Cagney <cagney@redhat.com>
8286
8287 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8288 the result.
8289
9b05f993
AC
82902003-03-07 Andrew Cagney <cagney@redhat.com>
8291
8292 * gdbarch.sh: Don't generate two macro definitions when an
8293 undefined macro taking no arguments.
8294 * gdbarch.h: Regenerate.
8ffd9b1b 8295
166f4c7b
ML
82962002-03-07 Michal Ludvig <mludvig@suse.cz>
8297
8298 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8299 (x86_64_unwind_dummy_id): New functions.
8300 (x86_64_init_abi): Register these two new functions.
8301
6d686a84
ML
83022003-03-07 Michal Ludvig <mludvig@suse.cz>
8303
8304 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8305 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8306 separate function.
8307 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8308
6314f104
AC
83092003-03-05 Andrew Cagney <cagney@redhat.com>
8310
8311 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8312 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8313 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8314 to use unwind_dummy_id when a dummy frame.
8315 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8316 predicate.
8317 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8318
ceea5145
AC
83192003-03-05 Andrew Cagney <cagney@redhat.com>
8320
8321 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8322 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8323 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8324 values.
8325
0d843116
AC
83262003-03-05 Andrew Cagney <cagney@redhat.com>
8327
8328 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8329 (struct d10v_unwind_cache): Delete field "frameless". Replace
8330 "next_addr" with "sp_offset". Add "r11_offset".
8331 (d10v_frame_unwind_cache): Update.
8332 (prologue_find_regs): Update. When "mv r11, sp", save the
8333 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8334 RN was saved in r11_offset.
8335
b2579786
AC
83362003-03-05 Andrew Cagney <cagney@redhat.com>
8337
8338 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8339 cached PC value in the next frame.
8340
218e5956
AC
83412003-03-05 Andrew Cagney <cagney@redhat.com>
8342
8343 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8344 "id_unwind_cache" with "id".
8345 (frame_id_unwind): Delete declaration.
8346 * frame.c (frame_id_unwind): Delete function.
8347 (get_prev_frame): Call the frame id unwind method directly. Store
8348 the returned next frame's ID value in NEXT_FRAME. Note that there
8349 is a problem with the wrong unwind ID being called with the wrong
8350 unwind cache.
8351
ed363b1b
DJ
83522003-03-05 Daniel Jacobowitz <drow@mvista.com>
8353
8354 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8355
fe1f4a5e
DJ
83562003-03-05 James Ingham <jingham@apple.com>
8357 Daniel Jacobowitz <drow@mvista.com>
8358
8359 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8360 (auto_cp_abi): New variable.
8361 (current_cp_abi, num_cp_abis): Make static.
8362 (CP_ABI_MAX): Define.
8363 (cp_abis): Turn into an array.
8364 (value_virtual_fn_field): Fix formatting.
8365 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8366 takes a pointer.
8367 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8368 (list_cp_abis, _initialize_cp_abi): New functions.
8369 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8370 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8371 switch_to_cp_abi. Update prototype for register_cp_abi.
8372 * Makefile.in (cp-abi.o): Update dependencies.
8373 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8374 instead of switch_to_cp_abi.
8375 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8376 register_cp_abi.
8377 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8378 register_cp_abi.
8379 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8380
e4adbba9
DJ
83812003-03-05 Daniel Jacobowitz <drow@mvista.com>
8382
8383 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8384 * dwarf2loc.c: Include "regcache.h".
8385 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8386 register_size.
8387 * Makefile.in (dwarf2loc.o): Update dependencies.
8388
91ccbfc1
TR
83892003-03-04 Theodore A. Roth <troth@openavr.org>
8390
8391 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8392 number of io registers reported by remote target is not a multiple of
8393 step.
8394
3d4e8fd2
DC
83952003-03-04 David Carlton <carlton@math.stanford.edu>
8396
8397 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8398 (lookup_symbol_aux_psymtabs): Update call to
8399 lookup_partial_symbol.
8400 (lookup_transparent_type, find_main_psymtab)
8401 (make_symbol_overload_list): Ditto.
8402
ed42d87b
KH
84032003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8404
8405 * MAINTAINERS (Write after approval): Update my email address.
8406
a0ed5532
AC
84072003-03-03 Andrew Cagney <cagney@redhat.com>
8408
8409 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8410 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8411 predicate. Replace MAX_REGISTER_RAW_SIZE.
8412 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8413 MAX_REGISTER_VIRTUAL_SIZE.
8414 * regcache.c (legacy_max_register_raw_size): New function.
8415 (legacy_max_register_virtual_size): New function.
8416 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8417 (MAX_REGISTER_RAW_SIZE): Define.
8418 (legacy_max_register_raw_size): Declare.
8419 (legacy_max_register_virtual_size): Declare.
8420 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8421 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8422 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8423 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8424 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8425 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8426 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8427 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8428 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8429 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8430 * vax-tdep.c (vax_gdbarch_init): Update.
8431 * v850-tdep.c (v850_gdbarch_init): Update.
8432 * sparc-tdep.c (sparc_gdbarch_init): Update.
8433 * sh-tdep.c (sh_gdbarch_init): Update.
8434 * s390-tdep.c (s390_gdbarch_init): Update.
8435 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8436 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8437 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8438 * mips-tdep.c (mips_gdbarch_init): Update.
8439 * mcore-tdep.c (mcore_gdbarch_init): Update.
8440 * m68k-tdep.c (m68k_gdbarch_init): Update.
8441 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8442 * ia64-tdep.c (ia64_gdbarch_init): Update.
8443 * i386-tdep.c (i386_gdbarch_init): Update.
8444 * hppa-tdep.c (hppa_gdbarch_init): Update.
8445 * h8300-tdep.c (h8300_gdbarch_init): Update.
8446 * frv-tdep.c (frv_gdbarch_init): Update.
8447 * cris-tdep.c (cris_gdbarch_init): Update.
8448 * avr-tdep.c (avr_gdbarch_init): Update.
8449 * arm-tdep.c (arm_gdbarch_init): Update.
8450 * alpha-tdep.c (alpha_gdbarch_init): Update.
8451 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8452 max_register_raw_size or max_register_virtual_size.
8453
8e437497
DC
84542003-03-03 David Carlton <carlton@math.stanford.edu>
8455
8456 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8457 SYMBOL_MATCHES_NAME, add comment.
8458 (SYMBOL_MATCHES_NATURAL_NAME): New.
8459 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8460 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8461 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8462 * symtab.c (lookup_partial_symbol): Use
8463 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8464 unhelpful comment.
8465 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8466 SYMBOL_MATCHES_NAME.
8467 Fix for PR c++/33.
8468
25120b0d
DC
84692003-03-03 David Carlton <carlton@math.stanford.edu>
8470
8471 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8472 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8473 by regexp matching against SYMBOL_NATURAL_NAME.
8474
78a11fb4
DC
84752003-03-03 David Carlton <carlton@math.stanford.edu>
8476
8477 * linespec.c (find_method): Extract code into collect_methods.
8478 (collect_methods): New.
8479
645dd519
MK
84802003-03-02 Mark Kettenis <kettenis@gnu.org>
8481
b4700d91
MK
8482 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8483 get_frame_base.
8484
645dd519
MK
8485 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8486 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8487
0aa7e1aa
SC
84882003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8489
8ffd9b1b 8490 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
8491 and not regnum when summing the size of all registers up to regnum.
8492
f30ee0bc
AC
84932003-03-01 Andrew Cagney <cagney@redhat.com>
8494
8495 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8496 FRAME_INIT_SAVED_REGS.
8497 * gdbarch.h, gdbarch.c: Regenerate.
8498 * stack.c (frame_info): Update.
8499 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8500 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8501 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8502 * ns32k-tdep.c (ns32k_pop_frame): Update.
8503 * mips-tdep.c (mips_pop_frame): Update.
8504 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8505 * ia64-tdep.c (ia64_frame_chain): Update.
8506 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8507 (ia64_frameless_function_invocation): Update.
8508 (ia64_init_extra_frame_info): Update.
8509 (ia64_pop_frame_regular): Update.
8510 * frame.h (struct frame_info): Update comment.
8511 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8512 * frame.c (frame_saved_regs_register_unwind): Update.
8513 (frame_saved_regs_register_unwind): Update.
8514 (deprecated_generic_get_saved_register): Update.
8515 * cris-tdep.c: Update comment.
8516 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8517 Rename macro.
8518 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8519 * x86-64-tdep.c (x86_64_init_abi): Update.
8520 * vax-tdep.c (vax_gdbarch_init): Update.
8521 * v850-tdep.c (v850_gdbarch_init): Update.
8522 * sparc-tdep.c (sparc_gdbarch_init): Update.
8523 * sh-tdep.c (sh_gdbarch_init): Update.
8524 * s390-tdep.c (s390_gdbarch_init): Update.
8525 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8526 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8527 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8528 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8529 * mips-tdep.c (mips_gdbarch_init): Update.
8530 * mcore-tdep.c (mcore_gdbarch_init): Update.
8531 * m68k-tdep.c (m68k_gdbarch_init): Update.
8532 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8533 * ia64-tdep.c (ia64_gdbarch_init): Update.
8534 * i386-tdep.c (i386_gdbarch_init): Update.
8535 * frv-tdep.c (frv_gdbarch_init): Update.
8536 * avr-tdep.c (avr_gdbarch_init): Update.
8537 * arm-tdep.c (arm_gdbarch_init): Update.
8538 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8539
42fa7c0f
AC
85402003-03-01 Andrew Cagney <cagney@redhat.com>
8541
8542 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8543 option enum and switch. When no windows, set the interpreter to
8544 INTERP_CONSOLE.
8ffd9b1b 8545
49c7e338
AC
85462003-03-01 Andrew Cagney <cagney@redhat.com>
8547
8548 * main.c (captured_main): Replace magic option characters with an
8549 enum.
8550
e9582e71
AC
85512003-03-01 Andrew Cagney <cagney@redhat.com>
8552
8553 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8554 INIT_EXTRA_FRAME_INFO.
8555 * gdbarch.h, gdbarch.c: Regenerate.
8556 * arm-tdep.c: Update comments.
8557 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8558 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8559 * frame.h, avr-tdep.c: Ditto.
8560 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8561 (create_new_frame, legacy_get_prev_frame): Ditto.
8562 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8563 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8564 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8565 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8566 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8567 * v850-tdep.c (v850_gdbarch_init): Ditto.
8568 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8569 * sh-tdep.c (sh_gdbarch_init): Ditto.
8570 * s390-tdep.c (s390_gdbarch_init): Ditto.
8571 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8572 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8573 * mips-tdep.c (mips_gdbarch_init): Ditto.
8574 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8575 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8576 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8577 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8578 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8579 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8580 * frv-tdep.c (frv_gdbarch_init): Ditto.
8581 * cris-tdep.c (cris_gdbarch_init): Ditto.
8582 * avr-tdep.c (avr_gdbarch_init): Ditto.
8583 * arm-tdep.c (arm_gdbarch_init): Ditto.
8584 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8585 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8586
35cac7cf
AC
85872003-03-01 Andrew Cagney <cagney@redhat.com>
8588
8589 * gdbarch.sh (register_type): New function with predicate.
8590 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8591 * gdbarch.h, gdbarch.c: Re-generate.
8592 * arch-utils.c (generic_register_byte): Use generic_register_size.
8593 (generic_register_size): When available, use
8594 gdbarch_register_type.
8595 * regcache.c (init_regcache_descr): When available, initialize the
8596 register type array using gdbarch_register_type. If the
8597 architecture supplies gdbarch_register_type, do not use the legacy
8598 regcache layout.
8599 * d10v-tdep.c (d10v_register_type): Replace
8600 d10v_register_virtual_type.
8601 (d10v_gdbarch_init): Set register_type instead of
8602 register_virtual_type.
8603
7b83296f
AC
86042003-03-01 Andrew Cagney <cagney@redhat.com>
8605
8606 * Makefile.in (ax-gdb.o): Update dependencies.
8607 * ax-gdb.c: Include "regcache.h".
8608 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8609 * findvar.c (value_of_register): Ditto.
8610 * infcmd.c (default_print_registers_info): Ditto.
8611
eadc1c87
MK
86122003-03-01 Mark Kettenis <kettenis@gnu.org>
8613
8614 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8615 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8616
14143612
MK
86172003-03-01 Mark Kettenis <kettenis@gnu.org>
8618
8619 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8620 of STREQ.
8621
a55cc764
DJ
86222003-02-28 Daniel Jacobowitz <drow@mvista.com>
8623
8624 * Makefile.in (dwarf2loc.o): Update dependencies.
8625 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8626 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8627 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8628 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8629 (locexpr_tracepoint_var_ref): New function.
8630 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8631
08a617da
AC
86322003-02-28 Andrew Cagney <cagney@redhat.com>
8633
8634 * regcache.c (register_size): New function.
8635 * regcache.h (register_size): Declare
8636 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8637 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8638
4224873a
DC
86392003-02-28 David Carlton <carlton@math.stanford.edu>
8640
8641 * linespec.c (decode_compound): Extract code into find_method.
8642 (find_method): New.
8643
ccdc5d7f
JB
86442003-02-28 J. Brobecker <brobecker@gnat.com>
8645
8646 * Makefile.in: Add rules to build and link in observer.o.
8647
974e8ced
JB
86482003-02-27 J. Brobecker <brobecker@gnat.com>
8649
8650 * observer.c: Minor comments edits.
8651
7a28f973
JB
86522003-02-27 J. Brobecker <brobecker@gnat.com>
8653
8654 * observer.h, observer.c: New file.
8655
27cddce2
AC
86562003-02-27 Andrew Cagney <cagney@redhat.com>
8657
8658 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8659
b94a41a1
SC
86602003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8661
8662 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8663 (M6812_OP_STS_EXT): Likewise.
8664 (m6811_prologue): Use the above to recognize prologue.
8665 (m6812_prologue): Likewise.
8666
c8be8951
DC
86672003-02-27 David Carlton <carlton@math.stanford.edu>
8668
8669 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8670 SYMBOL_PRINT_NAME.
8671 (compare_psymbols): Ditto.
8672 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8673
d05bb1fc
MS
86742003-02-27 Michael Snyder <msnyder@redhat.com>
8675
4e845cd3
MS
8676 * f-lang.c (build_fortran_types): New function.
8677 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
8678 * doublest.c (extract_floating): Fix warning text.
8679
f3824013
AC
86802003-02-27 Andrew Cagney <cagney@redhat.com>
8681
8682 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8683 predicate. Replaces PUSH_DUMMY_FRAME.
8684 * gdbarch.h, gdbarch.c: Regnerate.
8685 * valops.c (hand_function_call): Update. Call
8686 generic_push_dummy_frame directly.
8687 * vax-tdep.c (vax_gdbarch_init): Update.
8688 * sparc-tdep.c (sparc_gdbarch_init): Update.
8689 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8690 * m68k-tdep.c (m68k_gdbarch_init): Update.
8691 * hppa-tdep.c (hppa_gdbarch_init): Update.
8692 * alpha-tdep.c (alpha_gdbarch_init): Update.
8693 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8694 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8695 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8696 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8697 push_dummy_frame to generic_push_dummy_frame.
8698 * v850-tdep.c (v850_gdbarch_init): Ditto.
8699 * sh-tdep.c (sh_gdbarch_init): Ditto.
8700 * s390-tdep.c (s390_gdbarch_init): Ditto.
8701 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8702 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8703 * mips-tdep.c (mips_gdbarch_init): Ditto.
8704 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8705 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8706 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8707 * i386-tdep.c (i386_gdbarch_init): Ditto.
8708 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8709 * frv-tdep.c (frv_gdbarch_init): Ditto.
8710 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8711 * cris-tdep.c (cris_gdbarch_init): Ditto.
8712 * avr-tdep.c (avr_gdbarch_init): Ditto.
8713 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 8714
ad188201
KB
87152003-02-26 Kevin Buettner <kevinb@redhat.com>
8716
8717 * mips-tdep.c (show_mips_abi): New function.
8718 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8719 command ``show mips abi''.
8720
6b37567a 87212003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8722
6b37567a 8723 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 8724 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
8725 more sline entries have been seen for the function.
8726
d3e0a5bf
MC
87272003-02-26 Michael Chastain <mec@shout.net>
8728
8729 * configure: Regenerate with autoconf 000227.
8730
18972eea
MC
87312003-02-26 Michael Chastain <mec@shout.net>
8732
8733 Close PR build/660.
8734 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8735 for old libc5/glibc.
8736 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8737
0bbde931
KW
87382003-02-26 Kris Warkentin <kewarken@qnx.com>
8739
8740 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8741 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8742
27ca5dad
MC
87432003-02-26 Michael Chastain <mec@shout.net>
8744
8745 * configure.in: New variable HAVE_UINTPTR_T.
8746 * configure, config.in: Regenerated.
8747
6f88d630
DJ
87482003-02-26 Daniel Jacobowitz <drow@mvista.com>
8749
8750 Fix PR build/1097.
8751 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8752
b14185ce
AC
87532003-02-25 Andrew Cagney <cagney@redhat.com>
8754
8755 * frame.c (get_prev_frame): Add comment on check for
8756 inside_entry_func. Only check for inside_entry_file when not a
8757 dummy and not a sentinel. Check that the new frame is not inner
8758 to the old frame.
8759
ac2bd0a9
AC
87602003-02-25 Andrew Cagney <cagney@redhat.com>
8761
8762 * frame.c (frame_debug): New variable.
8763 (_initialize_frame): Add "set/show debug frame" command.
8764 (get_prev_frame): When frame_debug, print reason why unwind
8765 failed.
8766
b18a0fd2
MC
87672003-02-25 Michael Chastain <mec@shout.net>
8768
8769 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8770 to avoid uintptr_t definition problems.
8771
22abf04a
DC
87722003-02-25 David Carlton <carlton@math.stanford.edu>
8773
8774 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8775 (SYMBOL_LINKAGE_NAME): Ditto.
8776 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8777 SYMBOL_LINKAGE_NAME.
8778 (struct general_symbol_info): Expand comment.
8779 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8780 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8781 (SYMBOL_MATCHES_REGEXP): Ditto.
8782 * symtab.c (symbol_natural_name): New function.
8783 * objfiles.h: Replace all uses of SYMBOL_NAME by
8784 DEPRECATED_SYMBOL_NAME.
8785 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8786 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8787 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8788 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8789 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8790 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8791 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8792 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8793 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8794 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8795 * ada-exp.y: Ditto.
8796 * ada-exp.y: Update copyright.
8797 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8798 * cp-valprint.c: Ditto.
8799
1a5848f6
JJ
88002003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8801
8802 * infptrace.c (detach): Do not flag error if ptrace detach fails
8803 and errno is set to ESRCH.
8804
7343d46a
AC
88052003-02-24 Andrew Cagney <cagney@redhat.com>
8806
8807 * infptrace.c (udot_info): Change type of udot_off to long. Use
8808 paddr when printing udot_off's value.
8809
49fa1dc2
DC
88102003-02-24 David Carlton <carlton@math.stanford.edu>
8811
8812 * symtab.c (make_symbol_overload_list): Only read in partial
8813 symtabs containing a matching partial symbol.
8814
0fe19209
DC
88152003-02-24 David Carlton <carlton@math.stanford.edu>
8816
8817 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8818 do the comparison, not strcmp.
8819 * symfile.c (compare_psymbols): Ditto.
8820 * defs.h: Declare strcmp_iw_ordered.
8821 * utils.c (strcmp_iw_ordered): New function.
8822
8e3ee7b5
JB
88232003-02-24 Jim Blandy <jimb@redhat.com>
8824
8825 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8826 support, shared libs): Remove my name from here, to better reflect
8827 reality.
8828
7df1a324
KW
88292003-02-24 Kris Warkentin <kewarken@qnx.com>
8830
8831 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8832 (target_ops): Add to_have_continuable_watchpoint.
8833 * target.c (update_current_target): Add INHERIT line for
8834 to_have_continuable_watchpoint.
8835 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8836 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8837 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8838 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8839
d1c76907
EZ
88402003-02-24 Elena Zannoni <ezannoni@redhat.com>
8841
8842 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8843 maintainership.
8844
2610b0bf
KW
88452003-02-24 Kris Warkentin <kewarken@qnx.com>
8846
f46169db
KW
8847 * solib.c (solib_open): Call target defined search function after
8848 failing with solib-search-path.
8849 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8850 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 8851
9a3c34fe
KW
88522003-02-24 Kris Warkentin <kewarken@qnx.com>
8853
f46169db 8854 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 8855
2417dd25
SC
88562003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8857
8858 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8859
b631436b
SC
88602003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8861
8862 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8863 (m68hc11_add_reggroups): New function.
8864 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8865 (m68hc11_gdbarch_init): Install the reggroups.
8866 (_initialize_m68hc11_tdep): Initialize them.
8867
0aa8c1e4
JW
88682003-02-21 James E Wilson <wilson@tuliptree.org>
8869
8870 * MAINTAINERS: Update my email address.
8871
50ceaba5
DC
88722003-02-21 David Carlton <carlton@math.stanford.edu>
8873
8874 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8875
4c2df51b
DJ
88762003-02-21 Daniel Jacobowitz <drow@mvista.com>
8877
8878 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8879 * symtab.h: Add opaque declarations of struct axs_value and
8880 struct agent_expr.
8881 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8882 (struct location_funcs): New type.
8883 (struct symbol): Add "loc" to aux_value.
8884 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8885 * dwarf2read.c: Include "dwarf2expr.h".
8886 (dwarf2_symbol_mark_computed): New function.
8887 (read_func_scope): Use it.
8888 (var_decode_location): New function.
8889 (new_symbol): Use it.
8890 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8891
8892 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8893 (dwarf2expr_h, dwarf2loc_h): New variables.
8894 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8895 (dwarf2expr.o, dwarf2loc.o): New rules.
8896 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8897 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8898 LOC_COMPUTED_ARG.
8899 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8900 * m2-exp.y (yylex): Likewise.
8901 * printcmd.c (address_info, print_frame_args): Likewise.
8902 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8903 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8904 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8905 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8906 * symtab.c (lookup_block_symbol): Likewise.
8907
5784d15e
AF
89082003-02-20 Adam Fedor <fedor@gnu.org>
8909
8910 * symtab.h: Remove objc_specific struct
8911 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8912 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8913 Have language_objc use cplus_specific struct.
8914
d4cad8db
TT
89152003-02-20 Tom Tromey <tromey@redhat.com>
8916
8917 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8918 TYPE_NAME, when printing a String value. PR java/1075.
8919
2f9a90b4
AF
89202003-02-20 Adam Fedor <fedor@gnu.org>
8921
d38074a8 8922 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 8923 * objc-lang.c (find_methods): Make static.
2f9a90b4 8924
6f17862b
CF
89252003-02-20 Christopher Faylor <cgf@redhat.com>
8926
8927 * win32-nat.c (get_image_name): Check return value from
8928 ReadProcessMemory.
8929 (child_xfer_memory): Ditto.
8930
715d1656
AO
89312003-02-20 Alexandre Oliva <aoliva@redhat.com>
8932
8933 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8934 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8935 '${exec_prefix}' (in addition to the expansion thereof) as
8936 relocatable.
8937 * configure: Rebuilt.
8938
b1262a02
DC
89392003-02-20 David Carlton <carlton@math.stanford.edu>
8940
8941 * symtab.c (search_symbols): Revert the search_symbols part of my
8942 2002-12-23 patch. Add comment.
8943
7134143f
DJ
89442002-02-20 Daniel Jacobowitz <drow@mvista.com>
8945
8946 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8947 * dbxread.c (elfstab_build_psymtabs): Don't call
8948 install_minimal_symbols.
8949 (stabsect_build_psymtabs): Likewise.
8950 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8951 earlier.
8952 * somread.c (som_symfile_read): Call install_minimal_symbols
8953 and do_cleanups earlier.
8954 * nlmread.c (nlm_symfile_read): Likewise.
8955 * mdebugread.c (elfmdebug_build_psymtabs): Call
8956 install_minimal_symbols and make appropriate cleanups.
8957
cf466558
KB
89582003-02-20 Kevin Buettner <kevinb@redhat.com>
8959
8960 * solib.c (reload_shared_libraries): New function.
8961 (_initialize_solib): Add callbacks for ``set solib-search-path''
8962 and ``set solib-absolute-prefix''.
8963
de5ad195
DC
89642003-02-20 David Carlton <carlton@math.stanford.edu>
8965
8966 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8967 expand comment.
8968 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8969 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8970 * ada-typeprint.c (ada_typedef_print): Ditto.
8971 * ax-gdb.c (gen_var_ref): Ditto.
8972 * breakpoint.c (print_one_breakpoint): Ditto.
8973 * buildsym.c (finish_block): Ditto.
8974 * c-valprint.c (c_val_print): Ditto.
8975 * expprint.c (print_subexp): Ditto.
8976 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
8977 * infcmd.c (jump_command): Ditto.
8978 * linespec.c (decode_line_2, decode_compound): Ditto.
8979 * maint.c (maintenance_translate_address): Ditto.
8980 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
8981 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8982 Ditto.
8ffd9b1b
AJ
8983 * p-valprint.c (pascal_val_print): Ditto.
8984 * stabsread.c (define_symbol): Ditto.
de5ad195 8985 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
8986 (print_frame_arg_vars, return_command): Ditto.
8987 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8988 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
8989 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8990 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
8991 (rbreak_command): Ditto.
8992 * tracepoint.c (tracepoints_info): Ditto.
8993 * typeprint.c (typedef_print): Ditto.
8994 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
8995 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8996 * ada-typeprint.c: Update Copyright.
8997 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8998 * tracepoint.c, cli/cli-cmds.c: Ditto.
8999
f796e4be
KB
90002003-02-20 Kevin Buettner <kevinb@redhat.com>
9001
9002 * frame.c (generic_unwind_get_saved_register): Make non-static.
9003 * frame.h (generic_unwind_get_saved_register): Declare.
9004 * mips-tdep.c (read_next_frame_reg): Fetch register from
9005 current regcache when frame is NULL.
9006 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9007 that must be NULL.
9008 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9009 instead of frame_register_unwind().
9010
836cc9f4
AC
90112003-02-20 Andrew Cagney <ac131313@redhat.com>
9012
9013 * remote-sim.c (gdbsim_insert_breakpoint)
9014 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9015 code.
9016
501eef12
AC
90172003-02-20 Andrew Cagney <ac131313@redhat.com>
9018
9019 * remote.c (_initialize_remote): Add commands "set/show remote
9020 hardware-watchpoint-limit" and "set/show remote
9021 hardware-breakpoint-limit".
9022 (remote_hw_watchpoint_limit): Initialize to -1.
9023 (remote_hw_breakpoint_limit): Ditto.
9024 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9025
1b6bc7e0
CF
90262003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9027
9028 * coff-pe-read.c: New file - support reading of minimal symbols from a
9029 portable executable using the export table.
9030 * coff-pe-read.h: New file.
9031 * coffread.c: Include coff-pe-read.h.
9032 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9033 debugging symbols found.
9034 * Makefile.in (SFILES): Add coff-pe-read.o.
9035 (coff_pe_read_h): Define.
9036 (COMMON_OBS): Add coff-pe-read.o.
9037 (coffread.o): Add coff_pe_read_h dependency.
9038 (coff-pe-read.o): New target.
9039
fe898f56
DC
90402003-02-19 David Carlton <carlton@math.stanford.edu>
9041
9042 * Makefile.in (SFILES): Add block.c.
9043 (block_h): New.
9044 (COMMON_OBS): Add block.o.
9045 (block.o): New.
9046 (x86-64-tdep.o): Add $(block_h).
9047 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9048 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9049 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9050 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9051 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9052 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9053 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9054 * value.h: Add opaque declaration for struct block.
9055 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9056 * ada-lang.h: Ditto.
9057 * x86-64-tdep.c: #include "block.h"
9058 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9059 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9060 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9061 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9062 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9063 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9064 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9065 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9066 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9067 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9068 * symtab.c (block_function): Ditto.
9069 (contained_in): Ditto.
9070 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9071 block.h. Add opaque declaration for struct block.
9072 * symtab.h: Move block_function and contained_in declarations to
9073 block.h. Add opaque declarations for struct block, struct
9074 blockvector.
9075 (struct block): Move to block.h.
9076 (struct blockvector): Ditto.
9077 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9078 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9079 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9080 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9081 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9082 Ditto.
9083 * block.c: New file.
9084 * block.h: New file.
9085
173345b5
TR
90862003-02-19 Theodore A. Roth <troth@openavr.org>
9087
9088 * avr-tdep.c (avr_extract_return_value): Remove function.
9089 (avr_store_return_value): Remove function.
9090 (avr_extract_struct_value_address): Remove function.
9091 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9092
338ef23d
AC
90932003-02-19 Andrew Cagney <ac131313@redhat.com>
9094
9095 * rs6000-tdep.c: Include "gdb_assert.h".
9096 (registers_e500): Add "acc" and "spefscr".
9097 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9098 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9099 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9100 really is "r0".
9101 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9102
5412f5f3
KS
91032003-02-18 Keith Seitz <keiths@redhat.com>
9104
9105 * Makefile.in: Add gdbtk-interps.c.
9106
881324eb
KB
91072003-02-18 Kevin Buettner <kevinb@redhat.com>
9108
9109 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9110 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9111
6a2f5abf
AC
91122003-02-18 Andrew Cagney <cagney@redhat.com>
9113
9114 * symtab.h (struct objfile): Add opaque declaration.
9115
54c7009d
EZ
91162003-02-18 Elena Zannoni <ezannoni@redhat.com>
9117
9118 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9119 * dbxread.c (process_one_symbol): Use last_function_start rather
9120 than function_start_offset to find the real beginning of the
9121 current function. The latter is just the text section offset on
9122 some systems, the former is always the real function start.
54c7009d 9123
7ee6d7eb
AC
91242003-02-17 Andrew Cagney <cagney@redhat.com>
9125
9126 * configure.in: Revert ${target} != ${host}.
9127
2846da9b
AC
91282003-02-17 Andrew Cagney <ac131313@redhat.com>
9129
9130 * configure.in (Makefile): Use the test ${target} != ${host},
9131 instead of the absence of the "nm.h" file, to determine of the
9132 configuration non-native.
9133 * configure: Regenerate.
8ffd9b1b 9134
3b27aeea
EZ
91352003-02-14 Elena Zannoni <ezannoni@redhat.com>
9136
fbe586ae 9137 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9138
9139 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9140 conditionalize tui_active test.
9141 (lookup_cmd_1): Ditto.
9142
b0b1c2c0
MK
91432003-02-14 Mark Kettenis <kettenis@gnu.org>
9144
9145 * configure.in: Add check for _etext.
9146 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9147 available.
9148 * config.in, configure: regenerated.
9149
8f05cde5
DJ
91502003-02-14 Daniel Jacobowitz <drow@mvista.com>
9151
9152 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9153
021e7609
AC
91542003-02-14 Andrew Cagney <ac131313@redhat.com>
9155
9156 * main.c (tui_version): Delete variable.
9157 (captured_main): When --tui, set interpreter_p to "tui" instead of
9158 enabling tui_version.
9159 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9160 tui_version.
9161 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9162 * cli/cli-cmds.c (disassemble_command): Ditto.
9163 * defs.h (tui_version): Delete declaration.
9164 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9165 (tui-interp.o): Add rules.
9166 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9167
e325dcec
CF
91682003-02-14 Christopher Faylor <cgf@redhat.com>
9169
36ffb041 9170 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9171 just-loaded dll.
9172
c4f90d87
JM
91732003-02-12 Jason Molenda (jmolenda@apple.com)
9174
fbe586ae
RH
9175 * symmisc.c (print_objfile_statistics): Include information about
9176 the number of psymtabs and symtabs in each object file.
c4f90d87 9177
e46e5ccd
KS
91782003-02-13 Keith R Seitz <keiths@redhat.com>
9179
9180 * main.h (struct captured_main_args): Add interpreter_p.
9181 * main.c (captured_main): Initialize interpreter_p from context.
9182 * gdb.c (main): Set interpreter_p argument.
9183 * Makefile.in (gdb.o): Add dependency for interps.h.
9184
fe97fe9c
AC
91852003-02-12 Andrew Cagney <ac131313@redhat.com>
9186
9187 * event-top.c (cli_command_loop): Delete declaration.
9188 (_initialize_event_loop): Delete function setting event_loop_hook.
9189 * event-top.h (cli_command_loop): Declare. Update copyright.
9190 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9191 * interps.c (current_interp_command_loop): When event_loop_p, call
9192 cli_command_loop.
9193
1cdac4ef
AC
91942003-02-12 Andrew Cagney <ac131313@redhat.com>
9195
9196 * interps.h (interp_command_loop_ftype): Change return type to
9197 void.
9198
48037ead
ML
91992003-02-12 Michal Ludvig <mludvig@suse.cz>
9200
9201 * x86-64-tdep.c (x86_64_extract_return_value)
9202 (x86_64_store_return_value): Use regcache instead of regbuf.
9203 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9204 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9205
033afc63
AC
92062003-02-11 Andrew Cagney <ac131313@redhat.com>
9207
9208 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9209 * aclocal.m4: Regenerate.
9210 * configure: Regenerate.
9211
9212 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9213 TCL_LD_SEARCH_FLAGS.
9214
40d02bca
ML
92152003-02-10 Michal Ludvig <mludvig@suse.cz>
9216
9217 * dwarf2cfi.c: Reindented.
9218
11308a41
AC
92192003-02-09 Andrew Cagney <ac131313@redhat.com>
9220
9221 * interps.c (clear_interpreter_hooks): Convert function definition
9222 to ISO C.
9223
e1c1c0f6
DC
92242003-02-07 David Carlton <carlton@math.stanford.edu>
9225
9226 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9227
ab5d3da6
KB
92282003-02-07 Kevin Buettner <kevinb@redhat.com>
9229
9230 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9231 (struct type): ...to here.
9232 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9233 field.
9234 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9235 (replace_type): Set length on all type variants for a given type.
9236
b8a92b82
AC
92372003-02-07 Andrew Cagney <ac131313@redhat.com>
9238
9239 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9240 <sys/stat.h>.
9241 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9242
5cb316ef
AC
92432003-02-06 Andrew Cagney <ac131313@redhat.com>
9244
2555fe1a
AC
9245 * Makefile.in (symm-nat.o): Update dependencies.
9246 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9247 (lynx-nat.o, ia64-linux-nat.): Ditto.
9248 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9249 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9250 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9251
44270758
AC
9252 * Makefile.in (inflow_h): Define.
9253 (procfs.o, inflow.o, procfs.o): Update dependencies.
9254 * inftarg.c (child_stop): Delete extern declaration of
9255 inferior_process_group. Include "inflow.h".
9256 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9257 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9258 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9259 (our_process_group, inferior_process_group): Extern declarations.
9260
df8f7274
AC
9261 * procfs.c: Include "gdb_assert.h".
9262
5cb316ef
AC
9263 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9264 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9265 * jv-typeprint.c (java_type_print_base): Ditto.
9266 * typeprint.c (typedef_print): Eliminate STREQ.
9267 * cli/cli-script.c (define_command, define_command): Ditto.
9268 * main.c (captured_main): Ditto.
9269 * values.c (lookup_internalvar): Ditto.
9270 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9271 within `if' conditional.
9272 * linespec.c (decode_line_2): Ditto.
9273 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9274 (bfd_openw_with_cleanup): Ditto.
9275
2a28ccea
MK
92762003-02-07 Mark Kettenis <kettenis@gnu.org>
9277
9278 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9279 legacy_extract_return_value and store_return_value to
9280 legacy_return_value.
9281
786b8124
CF
92822003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9283
9284 * win32-nat.c (get_relocated_section_addrs): New function. Find
9285 section load addresses for symbol handling in relocated DLLs.
9286 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9287
b871e4ec
FF
92882003-02-05 Fred Fish <fnf@intrinsity.com>
9289
9290 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9291 '=' and '!='.
9292 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9293 with '&' and '=='.
9294 (angel_RDI_info): Ditto.
9295 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9296 with '&' and '!='.
9297 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9298
4389a95a 92992003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9300 Keith Seitz <keiths@redhat.com>
9301 Elena Zannoni <ezannoni@redhat.com>
9302 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9303
9304 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9305 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9306 (SUBDIR_MI_OBS): Add "mi-interp.o".
9307 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9308 (SFILES): Add "interps.c".
9309 (COMMON_OBS): Add "interps.o".
9310 (interps_h, mi_main_h): Define.
9311 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9312 (mi-main.o, main.o, event-top.o): Update dependencies.
9313 * cli/cli-interp.c: New file.
9314 * interps.h, interps.c: New files.
9315 * top.c: (gdb_init): Don't install the default interpreter, handed
9316 by captured_main.
9317 * main.c: Include "interps.h".
9318 (interpreter_p): Note that it should malloc'ed.
9319 (captured_command_loop): Call current_interp_command_loop.
9320 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9321 xfree and xstrdup when updating interpreter_p. Install the
9322 default interpreter. Add hack to stop mi1's copyright notice
9323 being encoded.
9324 * event-top.h (gdb_setup_readline): Declare.
9325 (gdb_disable_readline): Declare.
9326 * event-top.c: Include "interps.h".
9327 (display_gdb_prompt): Call current_interp_display_prompt_p.
9328 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9329 gdb_stdlog, and gdb_stdtarg.
9330 (_initialize_event_loop): Don't call gdb_setup_readline.
9331 * cli-out.c (cli_out_set_stream): New function.
9332 * cli-out.h (cli_out_set_stream): Declare.
9333
ff3b5810
MK
93342003-02-06 Mark Kettenis <kettenis@gnu.org>
9335
9336 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9337 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9338 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9339 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9340 config/i386/i386v42mp.mt: Removed.
9341
5b729aa5
MK
93422003-02-05 Mark Kettenis <kettenis@gnu.org>
9343
9344 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9345 GDB_OSABI_SOLARIS.
9346
8cc15142
MC
93472003-02-05 Michael Chastain <mec@shout.net>
9348
9349 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9350 2.12.1 and earlier versions.
9351
5aa5d4b9
AC
93522003-02-05 Andrew Cagney <ac131313@redhat.com>
9353
9354 Remove orphaned hosts, targets and files.
9355 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9356 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9357 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9358 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9359 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9360 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9361 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9362 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9363 * config/sparc/tm-sp64sim.h: Delete.
9364 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9365 hosts.
9366 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9367 mips*-dec-mach3* targets.
9368
b68767c1
MC
93692003-02-04 Michael Chastain <mec@shout.net>
9370
9371 * NEWS: Fix typo: sepcifying -> specifying.
9372
5ae7ca1d
MC
93732003-02-04 Michael Chastain <mec@shout.net>
9374
9375 * dwarfread.c: Add documentation on the state of dwarf-1,
9376 looking towards obsoletion.
9377
d08a4280
MC
93782003-02-03 Michael Chastain <mec@shout.net>
9379
9380 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9381 gdb/testsuite/gdb.c++/pr-1023.exp.
9382
e9be73e4
AC
93832003-02-04 Andrew Cagney <ac131313@redhat.com>
9384
9385 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9386 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9387
9388 * utils.c (init_page_info): Delete reference to MPW in comments.
9389 * main.c (captured_main): Delete #ifdef MPW.
9390
05d57f6f
AC
93912003-02-04 Andrew Cagney <ac131313@redhat.com>
9392
8ffd9b1b 9393 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9394 * monitor.c (monitor_expect): Obsolete reference to m32r.
9395 * configure.tgt: Mark m32r-*-elf* as obsolete.
9396 * MAINTAINERS: Mark m32k as obsolete.
9397 * m32r-rom.c: Obsolete file.
9398 * config/m32r/m32r.mt: Obsolete file.
9399 * config/m32r/tm-m32r.h: Obsolete file.
9400 * m32r-stub.c: Obsolete file.
9401 * m32r-tdep.c: Obsolete file.
9402
8b0e5691
AC
94032003-02-04 Andrew Cagney <ac131313@redhat.com>
9404
9405 * NEWS: Mention that the z8k-zilog-none is obsolete.
9406 * MAINTAINERS: Mark z8k as obsolete.
9407 * configure.tgt: Obsolete the z8k-*-coff* target.
9408 * config/z8k/z8k.mt: Obsolete file.
9409 * config/z8k/tm-z8k.h: Obsolete file.
9410 * z8k-tdep.c: Obsolete file.
9411
67f16606
AC
94122003-02-04 Andrew Cagney <ac131313@redhat.com>
9413
9414 * NEWS: Mention that the mn10200-elf is obsolete.
9415 * configure.tgt: Obsolete mn10200-*-* target.
9416 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9417 mention that the mn10200 is obsolete.
9418 * breakpoint.h: Ditto.
9419 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9420 * config/mn10200/mn10200.mt: Obsolete file.
9421 * config/mn10200/tm-mn10200.h: Obsolete file.
9422 * mn10200-tdep.c: Obsolete file.
9423
fd2299bd
AC
94242003-02-04 Andrew Cagney <ac131313@redhat.com>
9425
9426 * MAINTAINERS: Mark h8500 as obsolete.
9427 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9428 * findvar.c (value_from_register): Ditto.
9429 * h8500-tdep.c: Mark file as obsolete.
9430 * config/h8500/h8500.mt: Ditto.
9431 * config/h8500/tm-h8500.h: Ditto.
9432 * NEWS: Mention that h8500 is obsolete.
9433
eb9a305d
DC
94342003-02-04 David Carlton <carlton@math.stanford.edu>
9435
9436 * objfiles.c (allocate_objfile): Always set name. Add comment at
9437 start of function.
9438 * jv-lang.c (get_dynamics_objfile): Add comment.
9439
406fc7fb
DC
94402003-02-04 David Carlton <carlton@math.stanford.edu>
9441
9442 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9443 * printcmd.c (build_address_symbolic): Replace uses of
9444 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9445 SYMBOL_NAME, and asm_demangle.
9446 Update copyright.
9447
93d91629
DC
94482003-02-04 David Carlton <carlton@math.stanford.edu>
9449
9450 * linespec.c (decode_compound): Extract code into
9451 lookup_prefix_sym.
9452 (lookup_prefix_sym): New function.
9453
1c5cb38e
DC
94542003-02-04 David Carlton <carlton@math.stanford.edu>
9455
9456 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9457 FLOAT_COERCION_BADNESS.
9458 * gdbtypes.c (rank_one_type): Replace all uses of
9459 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9460
0cf824c9
JB
94612003-02-04 Jim Blandy <jimb@redhat.com>
9462
9463 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9464 section, let dwarf_macinfo_section point to it, not
9465 dwarf_loc_section.
9466
a2d356b0
DJ
94672003-02-04 Daniel Jacobowitz <drow@mvista.com>
9468
9469 Pointed out by Anton Blanchard <anton@samba.org>.
9470 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9471 (ppc_linux_at_sigtramp_return_path): Use it.
9472
2de7ced7
DJ
94732003-02-04 Daniel Jacobowitz <drow@mvista.com>
9474
9475 * defs.h (streq): Add prototype.
9476 * utils.c (streq): New function.
9477
9478 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9479 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9480 * mdebugread.c (new_symbol): Likewise.
9481 * stabsread.c (define_symbol): Likewise.
9482 * coffread.c (process_coff_symbol): Likewise.
9483 * dwarfread.c (new_symbol): Likewise.
9484
9485 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9486 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9487 here.
9488 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9489 SYMBOL_INIT_DEMANGLED_NAME.
9490 * objfiles.c: Include "hashtab.h".
9491 (allocate_objfile): Call htab_set_functions_ex for the
9492 demangled_names_hash.
9493 (free_objfile): Call htab_delete for the demangled_names_hash.
9494 * objfiles.h (struct htab): Add declaration.
9495 (struct objfile): Add demangled_names_hash.
9496 * symfile.c: Include "hashtab.h".
9497 (reread_symbols): Call htab_delete for the demangled_names_hash.
9498 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9499 SYMBOL_NAME in the bcache.
9500 * symtab.c: Include "hashtab.h". Update comments.
9501 (create_demangled_names_hash, symbol_set_names): New functions.
9502 (symbol_find_demangled_name): New function, broken out from
9503 symbol_init_demangled_names.
9504 (symbol_init_demangled_names): Use it.
9505 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9506 (SYMBOL_SET_NAMES): New macro.
9507 (symbol_set_names): Add prototype.
9508
15831452
JB
95092003-02-03 Jim Blandy <jimb@redhat.com>
9510
9511 Use a single, consistent representation for an empty minimal
9512 symbol table in an objfile.
9513 * objfiles.c (terminate_minimal_symbol_table): New function.
9514 (allocate_objfile): Call it.
9515 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9516 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 9517 non-NULL.
15831452
JB
9518 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9519 objfile has minimal symbols, compare minimal_symbol_count to zero,
9520 instead of comparing msymbols with NULL.
9521 * objfiles.c (have_minimal_symbols): Same.
9522 * solib-sunos.c (solib_add_common_symbols): Call
9523 terminate_minimal_symbol_table.
9524 * symfile.c (reread_symbols): Same.
8ffd9b1b 9525
ffc65945
KB
95262003-02-03 Kevin Buettner <kevinb@redhat.com>
9527
9528 * s390-tdep.c (s390_address_class_type_flags)
9529 (s390_address_class_type_flags_to_name)
9530 (s390_address_class_name_to_type_flags): New functions.
9531 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9532 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9533
f211c6d4
MS
95342003-02-03 Michael Snyder <msnyder@redhat.com>
9535
9536 * arm-tdep.c: Fix spell-o in comment.
9537
659b0389
ML
95382003-02-03 Michal Ludvig <mludvig@suse.cz>
9539
9540 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9541 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 9542 error messages to contain BFD filename.
659b0389 9543
3b31d625
EZ
95442003-02-02 Elena Zannoni <ezannoni@redhat.com>
9545
997b089a 9546 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
9547 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9548 (do_mixed_source_and_assembly): Use
9549 make_cleanup_ui_out_tuple_begin_end and
9550 make_cleanup_ui_out_tuple_begin_end.
9551 (do_mixed_source_and_assembly): Ditto.
9552 * thread.c (do_captured_list_thread_ids): Ditto.
9553 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9554 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9555 ui_out_tuple_end): Delete prototypes.
9556 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9557 ui_out_list_end, ui_out_tuple_end): Delete.
9558
9559 From Kevin Buettner <kevinb@redhat.com>:
9560 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
9561 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9562 (do_cleanup_table_end): New functions.
9563 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9564 Use cleanups to invoke_ui_out_tuple_end().
9565 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
9566 * cli/cli-setshow.c (cmd_show_list): Use
9567 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 9568
5b181d62
AC
95692003-02-02 Andrew Cagney <ac131313@redhat.com>
9570
9571 * frame.c (frame_unwind_register): New function.
9572 (frame_unwind_unsigned_register): Use.
9573 (frame_unwind_signed_register): Use.
9574 (frame_read_register): New function.
9575 * frame.h (frame_unwind_register): Declare.
9576 (frame_read_register): Declare.
9577
9578 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9579 and frame_unwind_register instead of read_memory, write_register
9580 and deprecated_write_register_bytes.
9581
5f601589
AC
95822003-02-02 Andrew Cagney <ac131313@redhat.com>
9583
9584 * frame.h: Note that namelen can be negative.
9585 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9586 NAME's length.
9587
9588 * NEWS: Mention that the d10v's `regs' command is deprecated.
9589 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9590 (d10v_print_registers_info): New function.
9591 (show_regs): Call d10v_print_registers_info.
9592 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9593
6a3fe0a4
MK
95942003-02-02 Mark Kettenis <kettenis@gnu.org>
9595
9596 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9597 lost in the previous patch.
9598
075559bc
AC
95992003-02-01 Andrew Cagney <ac131313@redhat.com>
9600
9601 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
9602 * stack.c (print_frame_info_base): Output complete FRAME tuple
9603 for synthesized frames.
075559bc 9604
6789195b
AC
96052003-02-02 Andrew Cagney <ac131313@redhat.com>
9606
9607 * mips-nat.c (zerobuf): Delete.
9608 (fetch_inferior_registers): Alloc local zerobuf.
9609 (fetch_core_registers): Alloc local zerobuf.
9610 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9611 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9612 * thread-db.c (thread_db_store_registers): Ditto.
9613 * sh-tdep.c (sh_do_register): Ditto.
9614 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9615 * remote-sim.c (gdbsim_store_register): Ditto.
9616 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9617 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9618 * monitor.c (monitor_supply_register): Ditto.
9619 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9620 * mips-nat.c (fetch_inferior_registers): Ditto.
9621 * m68klinux-nat.c (fetch_register): Ditto.
9622 * lynx-nat.c (fetch_inferior_registers): Ditto.
9623 (fetch_inferior_registers): Ditto.
9624 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9625 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9626 (hpux_thread_store_registers): Ditto.
9627 * hppah-nat.c (fetch_register): Ditto.
9628 * hppab-nat.c (fetch_register): Ditto.
9629 * hppa-tdep.c (pa_register_look_aside): Ditto.
9630 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9631 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9632
e669114a
AC
96332003-02-01 Andrew Cagney <ac131313@redhat.com>
9634
9635 * gdbarch.sh: Explictly specify all method levels. When a
9636 variable with an empty level, provide a non-multi-arch default.
9637 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9638 * gdbarch.h: Re-generate.
9639 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9640 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9641
9a043c1d
AC
96422003-02-01 Andrew Cagney <ac131313@redhat.com>
9643
9644 * defs.h (host_pointer_to_address): Delete declaration.
9645 (address_to_host_pointer): Delete declaration.
9646 * utils.c (host_pointer_to_address): Delete function.
9647 (address_to_host_pointer): Delete function.
9648 * procfs.c (procfs_address_to_host_pointer): New function.
9649 * procfs.c (proc_set_watchpoint): Use.
9650 (procfs_can_use_hw_breakpoint): Update comments.
9651 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9652 (som_solib_add): Use.
9653 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9654 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 9655
7ca9f392
AC
96562003-02-01 Andrew Cagney <ac131313@redhat.com>
9657
94bbfd30
AC
9658 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9659 strlen d_name.
9660
7ca9f392
AC
9661 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9662 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9663 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9664 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9665 (define_symbol): Update.
9666 * symfile.c (generic_load): Remove references to nindy.
9667 * symtab.c: Remove references to nindy.
9668
31a85ea2
AC
96692003-02-01 Andrew Cagney <ac131313@redhat.com>
9670
9671 * infcmd.c (print_float_info): Delete code conditional on
9672 FLOAT_INFO.
9673 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9674 * config/m68k/nm-apollo68b.h: Ditto.
9675 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9676 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9677 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9678
f6e85fc8
MK
96792003-02-01 Mark Kettenis <kettenis@gnu.org>
9680
6015b6a0
MK
9681 * config/i386/tm-i386os9k.h: Removed.
9682
f7a30bdf
MK
9683 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9684 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9685 they're identical to i[3456]86-*-sysv* now.
9686 * config/i386/i386v32.mh: Removed.
9687 * config/i386/xm-i386v32.h: Removed.
9688 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9689
28d52111
MK
9690 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9691
4d3f6bce
MK
9692 * config/i386/i386dgux.mh: Removed.
9693 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9694
f6e85fc8
MK
9695 * configure.in: Fix typo.
9696 * configure: Regenerated.
9697
53955967
DC
96982003-01-31 David Carlton <carlton@math.stanford.edu>
9699
9700 * dwarf2read.c (dwarf2_locate_sections): Set
9701 dwarf_ranges_section.
9702
b1364885
AC
97032003-01-31 Andrew Cagney <ac131313@redhat.com>
9704
8dbb1c65
AC
9705 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9706 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 9707
8731e58e
AC
9708 * utils.c: Re-indent.
9709
b1364885
AC
9710 * config/djgpp/fnchange.lst: Delete nindy files.
9711 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9712 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9713 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9714 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9715 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9716 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9717 * Makefile.in (init.c): Remove nindy references.
9718 (saber_gdb): Delete rule.
9719 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9720 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9721 and a68v-nat.c.
9722 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9723 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9724 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9725 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9726 nindy-share/stop.h.
9727 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9728 * saber.suppress: Delete file.
9729
086df311
DJ
97302003-01-31 Daniel Jacobowitz <drow@mvista.com>
9731
9732 * dbxread.c (stabs_data): New static variable.
9733 (fill_symbuf): Support an in-memory buffer for stabs data.
9734 (stabs_seek): New function.
9735 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9736 (read_ofile_symtab): Use stabs_seek.
9737 (elfstab_build_psymtabs): Take an asection* instead of
9738 an offset and size. Relocate the stabs data if necessary.
9739 Save the section* for dbx_psymtab_to_symtab.
9740 * dwarf2read.c: Add section variables for each debug section.
9741 (dwarf2_locate_sections): Fill them in.
9742 (dwarf2_read_section): Take an asection* argument.
9743 Relocate the section contents if necessary.
9744 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9745 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9746 it to dwarf2_read_section.
9747 (dwarf2_build_frame_info): Update callers.
9748 * elfread.c (elf_symfile_read): Update call to
9749 elfstab_build_psymtabs.
9750 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9751 (DBX_STAB_SECTION): New macro.
8ffd9b1b 9752 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
9753 * symfile.c (symfile_dummy_outputs): New function.
9754 (symfile_relocate_debug_section): New function.
9755 * symfile.h (symfile_relocate_debug_section): Add prototype.
9756
87d1b352
RH
97572003-01-31 Richard Henderson <rth@redhat.com>
9758
9759 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9760 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9761 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9762 * alpha-tdep.c (alpha_register_name): Add "unique".
9763 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9764 (ALPHA_UNIQUE_REGNUM): New.
9765 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9766
c48861fb
AC
97672003-01-31 Andrew Cagney <ac131313@redhat.com>
9768
9769 * README: Remove reference to Ericsson 1800 monitor.
9770 * Makefile.in (remote-es.o): Delete rule.
9771 (ALLDEPFILES): Delete remote-es.c.
9772 * remote-es.c: Delete file.
9773 * config/m68k/es1800.mt: Delete file.
9774 * config/djgpp/fnchange.lst: Update.
9775 * configure.tgt: Delete m68*-ericsson-* target.
9776
d764a824
AF
97772003-01-31 Adam Fedor <fedor@gnu.org>
9778
9779 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9780 Remove duplicate/shadowing variable of same name.
9781
fe36c4f4
JB
97822003-01-30 Jim Blandy <jimb@redhat.com>
9783
9784 * symfile.c (find_separate_debug_file): Assert that the objfile's
9785 directory name we compute ends with a slash, and then assume that
9786 that's so everywhere we use it.
9787
cb741690
DJ
97882003-01-30 Daniel Jacobowitz <drow@mvista.com>
9789
9790 * valops.c (value_assign): Flush frame cache after stores to memory
9791 also.
9792
96ee5227
AC
97932003-01-30 Andrew Cagney <ac131313@redhat.com>
9794
9795 * Makefile.in (mon960-rom.o): Delete rule.
9796 * mon960-rom.c: Delete file.
9797
7f6104a9
AC
97982003-01-30 Andrew Cagney <ac131313@redhat.com>
9799
9800 * d10v-tdep.c: Include "frame-unwind.h".
9801 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9802 list.
9803 (next_addr, uses_frame): Delete.
9804 (struct d10v_unwind_cache): Define.
9805 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9806 Use info instead of next_addr and uses_frame globals.
9807 (d10v_frame_init_saved_regs): Delete function.
9808 (d10v_init_extra_frame_info): Delete function.
9809 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9810 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9811 init_frame_pc or frame_saved_pc.
9812 (d10v_pop_frame): Delete function.
9813 (do_d10v_pop_frame): Delete function.
9814 (d10v_frame_chain): Delete function.
9815 (d10v_frame_chain_valid): Delete function.
9816 (d10v_frame_pc_unwind): New function.
9817 (d10v_frame_id_unwind): New function.
9818 (saved_regs_unwinder): New function.
9819 (d10v_frame_register_unwind): New function.
9820 (d10v_frame_pop): New function.
9821 (d10v_frame_unwind): New variable.
9822 (d10v_frame_p): New function.
9823 (d10v_frame_saved_pc): Delete function.
9824 * Makefile.in (d10v-tdep.o): Update dependencies.
9825
cad2e848
JB
98262003-01-30 J. Brobecker <brobecker@gnat.com>
9827
9828 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9829 causing some regressions due to a change in the default value
9830 for this macro.
9831
af34e669
DJ
98322003-01-29 Richard Henderson <rth@redhat.com>
9833 Elena Zannoni <ezannoni@redhat.com>
9834 Daniel Jacobowitz <drow@mvista.com>
9835
9836 Fix PR gdb/961.
8ffd9b1b 9837 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
9838 variables.
9839 (RANGES_SECTION): New.
9840 (dwarf_ranges_buffer): New variable.
9841 (struct comp_unit_head): Add member "die".
9842 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9843 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9844 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9845 (dwarf2_locate_sections): Likewise.
9846 (dwarf2_build_psymtabs): Read .debug_ranges.
9847 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9848 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9849 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9850 Look for DW_AT_ranges and return the bounding box.
9851
baa93fa6
CF
98522003-01-29 Brian Ford <ford@vss.fsi.com>
9853
9854 * win32-nat.c (cygwin_pid): Removed as unused.
9855 (child_attach): Try fall back to Cygwin pid.
9856
c63f977f
JB
98572003-01-29 Jim Blandy <jimb@redhat.com>
9858
9859 * objfiles.h (struct objfile): Doc fix.
9860
d62d1979
AC
98612003-01-29 Andrew Cagney <ac131313@redhat.com>
9862
9863 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9864 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9865 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9866 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9867 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9868 (FRAME_SAVED_PC): Change to a function with predicate.
9869 * gdbarch.h, gdbarch.c: Re-generate.
9870
1ae18a04
AC
98712003-01-28 Andrew Cagney <ac131313@redhat.com>
9872
52287340
AC
9873 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9874
1ae18a04
AC
9875 * complaints.c (complain): Delete function.
9876 * complaints.h (struct deprecated_complaint): Delete definition.
9877 (complain): Delete declaration.
9878
f2c16bd6
KB
98792003-01-28 Kevin Buettner <kevinb@redhat.com>
9880
9881 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9882 dummy frames.
9883
a94dd1fd
AC
98842003-01-27 Andrew Cagney <ac131313@redhat.com>
9885
9886 * sentinel-frame.h, sentinel-frame.c: New files.
9887 * Makefile.in (frame.o): Update dependencies.
9888 (SFILES): Add sentinel-frame.c.
9889 (sentinel_frame_h): Define.
9890 (COMMON_OBS): Add sentinel-frame.o.
9891 (sentinel-frame.o): Specify dependencies.
9892 * frame.c: Include "sentinel-frame.h".
9893 (frame_register_unwind): Rewrite assuming that there is always a a
9894 ->next frame.
9895 (frame_register, generic_unwind_get_saved_register): Ditto.
9896 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9897 (create_sentinel_frame, unwind_to_current_frame): New functions.
9898 (get_current_frame): Rewrite using create_sentinel_frame and
9899 unwind_to_current_frame. When possible, always create a frame.
9900 (create_new_frame): Set next to the sentinel frame.
9901 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9902 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9903 ID cache when necessary.
9904 (frame_saved_regs_id_unwind): Use frame_relative_level.
9905 (deprecated_generic_get_saved_register): Use frame_relative_level,
9906 get_frame_saved_regs, get_frame_pc, get_frame_base and
9907 get_next_frame.
9908 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9909 frame_register.
9910
5378adc4
DJ
99112003-01-27 Daniel Jacobowitz <drow@mvista.com>
9912
9913 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9914
51ee2ddc
DJ
99152003-01-27 Daniel Jacobowitz <drow@mvista.com>
9916
9917 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9918 (maintenance_set_profile_cmd): Use error () instead of warning ().
9919
d9feb4e7
DJ
99202003-01-27 Daniel Jacobowitz <drow@mvista.com>
9921
9922 * configure.in: Check that -pg works if using --enable-profiling.
9923 Check for monstartup and _mcleanup regardless of --enable-profiling.
9924 * maint.c: Check for monstartup and _mcleanup before using them.
9925 * config.in: Regenerated.
9926 * configure: Regenerated.
9927
2d188dd3
NC
99282003-01-24 Nick Clifton <nickc@redhat.com>
9929
9930 * Add sh2e support:
9931
9932 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9933
9934 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9935 (sh2e_show_regs): New.
9936 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9937 * config/sh/tm-sh.h: Added sh2e to comments.
9938
cb3c37b2
JB
99392003-01-23 Jim Blandy <jimb@redhat.com>
9940
9941 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9942 symbols found)" message here; we haven't checked for a separate
9943 debug info file yet, so we don't know yet.
9944 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9945 we've looked everywhere. Also, there's no need to print a special
9946 message when we're loading the separate debug info file: the one
9947 symbol_file_add prints is fine.
9948
5b5d99cf
JB
99492003-01-23 Alexander Larsson <alexl@redhat.com>
9950 Jim Blandy <jimb@redhat.com>
9951
9952 Add support for executables whose debug info has been separated
9953 out into a separate file, leaving only a link behind.
9954 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9955 and separate_debug_objfile_backlink.
9956 (put_objfile_before): New declaration.
9957 * symfile.c: #include "filenames.h".
9958 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9959 debug info in a separate file, read that, too. Save the addrs
9960 argument, so we can use it again to read the separated debug info;
9961 syms_from_objfile modifies the table we pass it.
9962 (reread_symbols): After re-reading an objfile, call
9963 reread_separate_symbols to refresh its separate debug info
9964 objfile, if it has one.
9965 (reread_separate_symbols, find_separate_debug_file,
9966 get_debug_link_info, separate_debug_file_exists): New functions.
9967 (debug_file_directory): New global var.
9968 (_initialize_symfile): Initialize debug_file_directory, and
9969 provide the new `set debug-file-directory' command to let the user
9970 change it.
9971 * objfiles.c (free_objfile): If this objfile has its debug info in
9972 a separate objfile, free that one too. If this is itself a
9973 separate debug info objfile, clear our parent's backlink.
9974 (put_objfile_before): New function.
9975 * utils.c (gnu_debuglink_crc32): New function.
9976 * defs.h (gnu_debuglink_crc32): New declaration.
9977 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9978 * configure.in: Handle --with-separate-debug-dir config option.
9979 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9980 * acconfig.h (DEBUGDIR): New macro.
9981 * configure, aclocal.m4, config.in: Regenerated.
9982
7e8580c1
JB
99832003-01-22 Jim Blandy <jimb@redhat.com>
9984
7904e09f
JB
9985 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9986 like the old symbol_file_add, but taking new arguments: you can
9987 now pass in either a `struct section_addr_info' list to say where
9988 each section is loaded, or a `struct section_offsets' table. Pass
9989 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 9990 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
9991 with the appropriate quiescent values for the new arguments.
9992
7e8580c1
JB
9993 * symfile.c: #include "gdb_assert.h".
9994 (syms_from_objfile): Add the ability to pass in a section offset
9995 table directly, as an alternative to the section_addr_info table.
9996 Document arguments better.
9997 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9998 * symfile.h (syms_from_objfile): Update declaration.
9999 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10000 syms_from_objfile.
10001 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10002
d28f9cdf
DJ
100032003-01-22 Daniel Jacobowitz <drow@mvista.com>
10004
10005 Original patch by Tom Tromey <tromey@cygnus.com> and
10006 Jason Molenda <jmolenda@apple.com>.
10007 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10008 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10009 * NEWS: Mention profiling.
10010 * configure.in (--enable-gdbtk): Fix typo.
10011 (--enable-profiling): New. Set PROFILE_CFLAGS.
10012 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10013 Fill in function.
10014 (profiling_state): New variable.
10015 (mcleanup_wrapper): New function.
10016 (_initialize_maint): Remove NOTYET, fix call to
10017 add_setshow_boolean_cmd for "maint set profile".
10018 * configure: Regenerated.
10019
df21e465
MH
100202003-01-21 Martin M. Hunt <hunt@redhat.com>
10021
10022 * Makefile.in (install-gdbtk): Install PNG images too.
10023
73c1f219
AC
100242003-01-21 Andrew Cagney <ac131313@redhat.com>
10025
10026 * exec.c (text_start): Delete global variable.
10027 (exec_file_attach): Make text_start local to the function.
10028 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10029 * valops.c (hand_function_call): Delete code that handles
10030 BEFORE_TEXT_END and AFTER_TEXT_END.
10031 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10032 of CALL_DUMMY_LOCATION.
10033 * gdbarch.c: Regenerate.
10034 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10035 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10036 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10037 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10038 (text_end): Delete extern declaration.
10039
eb4f72c5
AC
100402003-01-21 Andrew Cagney <ac131313@redhat.com>
10041
10042 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10043 * blockframe.c (backtrace_below_main): Move to "frame.c".
10044 (frame_chain_valid): Delete check for backtrace_below_main.
10045 (_initialize_blockframe): Delete initialization, move ``set
10046 backtrace-below-main'' command to "frame.c".
10047 (do_flush_frames_sfunc): Delete function.
10048 * frame.c: Include "command.h" and "gdbcmd.h".
10049 (frame_type_from_pc): New function.
10050 (create_new_frame): Use frame_type_from_pc.
10051 (legacy_get_prev_frame): New function.
10052 (get_prev_frame): Rewrite. When an old style frame, call
10053 legacy_get_prev_frame. Otherwize, unwind the PC first.
10054 (_initialize_frame): Add ``set backtrace-below-main'' command.
10055 * Makefile.in (frame.o): Update dependencies.
10056
778ce8cc
AC
100572003-01-19 Andrew Cagney <ac131313@redhat.com>
10058
10059 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10060 DEPRECATED_REGISTERS_INFO.
10061
01c193c8
AC
100622003-01-19 Andrew Cagney <ac131313@redhat.com>
10063
10064 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10065 Maintainers'. Update `Various Maintainers'.
10066
dedc2a2b
AC
100672003-01-19 Andrew Cagney <ac131313@redhat.com>
10068
10069 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10070 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10071 Suppress actual parameters when `-'.
10072 * gdbarch.h, gdbarch.c: Regenerate.
10073
b7261c70
AC
100742003-01-19 Andrew Cagney <ac131313@redhat.com>
10075
10076 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10077 code handling dummy frames.
10078
dbe9fe58
AC
100792003-01-19 Andrew Cagney <ac131313@redhat.com>
10080
10081 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10082 (struct frame_unwind): Add field pop.
10083 * frame.h (frame_pop): Declare.
10084 * frame.c (frame_saved_regs_pop): New function.
10085 (trad_frame_unwinder): Add frame_saved_regs_pop.
10086 (frame_pop): New function.
10087 * dummy-frame.c (dummy_frame_pop): New function.
10088 (discard_innermost_dummy): New function.
10089 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10090 (dummy_frame_unwind): Add dummy_frame_pop.
10091 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10092 * valops.c (hand_function_call): Ditto.
10093 * stack.c (return_command): Ditto.
10094
570b8f7c
AC
100952003-01-18 Andrew Cagney <ac131313@redhat.com>
10096
10097 * cris-tdep.c: Fix function declaration indentation.
10098 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10099 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10100 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10101 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10102 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10103 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10104
101052003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10106
10107 * README (Unpacking and Installation -- quick overview):
10108 Warn against ".../gdb-5.3/gdb/configure".
10109
494cca16
AC
101102003-01-18 Andrew Cagney <ac131313@redhat.com>
10111
10112 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10113 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10114 (struct frame_unwind): Declare opaque.
10115 (dummy_frame_p): Declare function.
10116 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10117 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10118 * dummy-frame.c: Include "frame-unwind.h".
10119 (dummy_frame_p): New function.
10120 (dummy_frame_unwind): New variable.
10121 * frame.c: Include "frame-unwind.h".
10122 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10123 to use the new unwind field.
10124 (set_unwind_by_pc): Delete function.
10125 (create_new_frame, get_prev_frame): Set unwind field using
10126 frame_unwind_find_by_pc.
10127 (trad_frame_unwind, trad_frame_unwinder): New variables.
10128 * frame.h (trad_frame_unwind): Declare variable.
10129 (frame_id_unwind_ftype): Delete declaration.
10130 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10131 (struct frame_unwind): Declare opaque.
10132 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10133 register_unwind with a single unwind pointer.
10134 * frame-unwind.h, frame-unwind.c: New files.
10135 * Makefile.in (SFILES): Add frame-unwind.c.
10136 (frame_unwind_h): Define.
10137 (COMMON_OBS): Add frame-unwind.o.
10138 (frame-unwind.o): Specify dependencies.
10139 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10140
4efb68b1
AC
101412003-01-18 Andrew Cagney <ac131313@redhat.com>
10142
10143 * ada-valprint.c: Eliminate PTR.
10144 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10145 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10146 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10147 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10148 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10149 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10150 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10151
a84d24ee
AC
101522003-01-17 Andrew Cagney <ac131313@redhat.com>
10153
762f08a3
AC
10154 * main.c (captured_main): Don't use PTR.
10155 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10156 * gdbtypes.c (lookup_primitive_typename): Ditto.
10157 (lookup_struct_elt_type): Ditto.
10158 * f-valprint.c (info_common_command): Ditto.
10159 (list_all_visible_commons): Ditto.
10160 * jv-typeprint.c (java_type_print_base): Ditto.
10161
a84d24ee
AC
10162 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10163 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10164 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10165 i386-interix-nat.c and i386-interix-tdep.c. Rename
10166 m68klinux-nat.c and m68klinux-tdep.c. Rename
10167 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10168 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10169 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10170 * main.c (captured_main): Use xfree, not free.
10171
c170fb60
AC
101722003-01-16 Andrew Cagney <ac131313@redhat.com>
10173
10174 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10175 ID back using a parameter.
10176 * frame.c (frame_id_unwind): Update call.
10177 (frame_saved_regs_id_unwind): Update.
10178 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10179 * dummy-frame.h (struct frame_id): Add opaque declaration.
10180 (dummy_frame_id_unwind): Update declaration.
10181
867f3898
AC
101822003-01-15 Andrew Cagney <ac131313@redhat.com>
10183
10184 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10185
40622be8 101862003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10187
40622be8 10188 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10189
ae66c1fc
EZ
101902003-01-14 Elena Zannoni <ezannoni@redhat.com>
10191
997b089a 10192 Fix PR gdb/898
ae66c1fc
EZ
10193 * breakpoint.c (until_break_command): Add new argument. Use it to
10194 decide whether to stop only at the current frame or not.
10195 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10196 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10197 call.
10198 (advance_command): New function.
10199 (_initialize_infcmd): Update help string for 'until' command.
10200 Add new 'advance' command.
10201
a04257e6
DC
102022003-01-14 David Carlton <carlton@math.stanford.edu>
10203
10204 * linespec.c (decode_line_1): Normalize comments.
10205 (set_flags): Ditto.
10206 (locate_first_half): Ditto.
10207 (decode_compound): Ditto.
10208 (symtab_from_filename): Ditto.
10209 (decode_all_digits): Ditto.
10210 (decode_dollar): Ditto.
10211 (find_methods): Ditto.
10212 (find_toplevel_char): Ditto.
10213
1bac305b
AC
102142003-01-13 Andrew Cagney <ac131313@redhat.com>
10215
10216 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10217 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10218 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10219 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10220 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10221 * language.c, language.h, m32r-tdep.c: Update copyright.
10222 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10223 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10224 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10225 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10226 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10227 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10228
25caa7a8
EZ
102292003-01-13 Elena Zannoni <ezannoni@redhat.com>
10230
10231 * stabsread.h (process_later, resolve_cfront_continuation):
10232 Obsolete.
10233 Update copyright years.
10234 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10235 Update copyright year.
10236 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10237 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10238 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10239 Update copyright year.
10240 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10241 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10242 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10243 (parse_partial_symbols): Obsolete cfront support.
10244 * stabsread.c
10245 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10246 macros.
10247 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10248 read_cfront_baseclasses, read_cfront_member_functions,
10249 resolve_cfront_continuation,read_cfront_static_fields,
10250 copy_cfront_struct_fields): Obsolete functions.
10251 (define_symbol, read_one_struct_field): Obsolete cfront support.
10252 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10253 Update Copyright year.
10254
7789c6f5
EZ
102552003-01-13 Elena Zannoni <ezannoni@redhat.com>
10256
10257 * stack.c (print_frame_info, print_stack_frame_base_stub,
10258 print_stack_frame_base, show_and_print_stack_frame_stub,
10259 show_and_print_stack_frame, print_only_stack_frame_stub,
10260 print_only_stack_frame): Delete functions.
10261 (print_stack_frame_stub): Call print_frame_info instead of
10262 print_frame_info_base.
10263 (print_frame_info_base): Rename to print_frame_info.
10264 (backtrace_command_1): Call print_frame_info, instead of
10265 print_frame_info_base.
10266 (current_frame_command): Call print_stack_frame, instead of
10267 print_only_stack_frame.
10268 (frame_command): Call print_stack_frame, instead of
10269 show_and_print_stack_frame.
10270 (up_command): Ditto.
10271 (down_command): Ditto.
10272 * frame.h (print_only_stack_frame): Delete prototype.
10273 * infrun.c (normal_stop): Call print_stack_frame, instead of
10274 show_and_print_stack_frame.
10275 * thread.c (info_threads_command): Call print_stack_frame, instead
10276 of print_only_stack_frame.
10277
3f5a3016
AC
102782003-01-13 Andrew Cagney <ac131313@redhat.com>
10279
d99ba314
AC
10280 * README (Graphical interface to GDB): Update URL. Point at
10281 gdb/links/.
10282
3f5a3016
AC
10283 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10284 version match.
10285
083ae935
DJ
102862003-01-13 Daniel Jacobowitz <drow@mvista.com>
10287
10288 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10289 lines.
10290
5365276c
DJ
102912003-01-13 Daniel Jacobowitz <drow@mvista.com>
10292
10293 * thread-db.c (attach_thread): Prototype.
10294 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10295 thread information (ti), and valid flags (th_valid, ti_valid).
10296 (attach_thread): Move target_pid_to_str call to after the thread
10297 is added to GDB's list. Initialize the cache.
10298 (thread_get_info_callback, thread_db_map_id2thr)
10299 (thread_db_get_info): New functions.
10300 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10301 (thread_db_store_registers, thread_db_thread_alive)
10302 (thread_db_get_thread_local_address): Use them.
10303 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10304 of calling error() for threads in unknown state.
10305
10306 (clear_lwpid_callback): New function.
10307 (thread_db_resume): Use it to clear the cache.
10308
9fc30b6b
DJ
103092003-01-13 Daniel Jacobowitz <drow@mvista.com>
10310
10311 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10312 (resume_callback): Remove dead code.
10313
8f871025
AC
103142003-01-13 Andrew Cagney <ac131313@redhat.com>
10315
10316 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10317 predicate.
10318 * gdbarch.h, gdbarch.c: Regenerate.
10319 * stack.c (frame_info): Only initialize the saved registers when
10320 FRAME_INIT_SAVED_REGS_P.
10321 * frame.c (frame_saved_regs_register_unwind): Assert
10322 FRAME_INIT_SAVED_REGS_P.
10323 (deprecated_generic_get_saved_register): Ditto.
10324
3f565f1e
DJ
103252003-01-13 Daniel Jacobowitz <drow@mvista.com>
10326
10327 * source.c (openp): Squelch warning about "filename".
10328
072b1022
DJ
103292003-01-13 Daniel Jacobowitz <drow@mvista.com>
10330
10331 * source.c (openp): If the file does not exist don't necessarily
10332 search the path.
10333
973ccf8b
DJ
103342003-01-13 Daniel Jacobowitz <drow@mvista.com>
10335
10336 Fix PR gdb/872.
10337 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10338 (integer_types_same_name_p): New function.
10339 (rank_one_type): Use it.
10340 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10341
030292b7
DJ
103422003-01-13 Daniel Jacobowitz <drow@mvista.com>
10343
10344 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10345 variables.
10346 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10347 * configure.in: Add --with-sysroot.
10348 * configure: Regenerated.
10349 * main.c (gdb_sysroot): New variable.
10350 (captured_main): Initialize gdb_sysroot.
10351 * defs.h (gdb_sysroot): New extern declaration.
10352 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10353
afb5d334
MC
103542003-01-12 Michael Chastain <mec@shout.net>
10355
10356 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10357
751ceeb4
MC
103582003-01-12 Michael Chastain <mec@shout.net>
10359
10360 * top.c (print_gdb_version): Bump copyright year to 2003.
10361
94cd26f8
DC
103622003-01-12 David Carlton <carlton@bactrian.org>
10363
10364 * linespec.c (symtab_from_filename): Rename variable 's' to
10365 'file_symtab'.
10366
1ce79225
AC
103672003-01-12 Andrew Cagney <ac131313@redhat.com>
10368
10369 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10370 dummy frame.
10371 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10372
fa1fd571
AC
103732003-01-12 Andrew Cagney <ac131313@redhat.com>
10374
10375 * d10v-tdep.c: Include "gdb_assert.h".
10376 (d10v_store_return_value): Rewrite to match current interface.
10377 (d10v_extract_struct_value_address): Ditto.
10378 (d10v_extract_return_value): Ditto.
10379 (d10v_gdbarch_init): Set store_restore_value,
10380 extract_struct_value_address and extract_return_value.
10381
68b8d23e
JB
103822003-01-12 J. Brobecker <brobecker@gnat.com>
10383
10384 * hpread.c (set_namestring): New procedure replacing the
10385 SET_NAMESTRING macro.
10386 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10387 by calls to set_namestring.
10388
103892003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
10390
10391 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10392 a compilation warning.
10393 (hpread_process_one_debug_symbol): Likewise.
10394
88d262ca
DC
103952003-01-10 David Carlton <carlton@math.stanford.edu>
10396
10397 * linespec.c (decode_line_1): Rename variable 's' to
10398 'file_symtab'.
10399 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10400 (decode_dollar): Ditto.
10401 (decode_variable): Ditto.
10402 (symbol_found): Ditto.
10403
86669319
MC
104042003-01-09 Michael Chastain <mec@shout.net>
10405
10406 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10407
616a9dc4
CV
104082003-01-07 Corinna Vinschen <vinschen@redhat.com>
10409
10410 * win32-nat.c (set_process_privilege): New function.
10411 (child_attach): Call set_process_privilege() to enable the
10412 SE_DEBUG_NAME user privilege if available in process token.
10413
3269bcfa
JB
104142003-01-10 J. Brobecker <brobecker@gnat.com>
10415
10416 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10417 compilation error in the previous revision.
10418
2b0ee454
DC
104192003-01-09 David Carlton <carlton@math.stanford.edu>
10420
10421 * linespec.c: Update copyright.
10422
b3ba1b44
DJ
104232003-01-09 Daniel Jacobowitz <drow@mvista.com>
10424
10425 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10426 than inferior_ptid.
10427 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10428
4ef3f3be
AC
104292003-01-09 Andrew Cagney <ac131313@redhat.com>
10430
479ab5a0
AC
10431 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10432 Update comments.
10433 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10434 (frame_saved_regs_zalloc): Update.
10435 (frame_saved_regs_register_unwind): Update.
10436 (create_new_frame): Update.
10437 (get_prev_frame): Update.
10438 (frame_extra_info_zalloc): Update.
10439 (deprecated_get_frame_saved_regs): Update.
10440 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10441 * cris-tdep.c: Update comment.
10442
bde58177
AC
10443 * somsolib.h: Fix function indentation.
10444 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10445 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10446 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10447 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10448 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10449
4ef3f3be
AC
10450 * infrun.c (follow_fork): Use ISO C definition.
10451 * expprint.c (print_subexp): Use xfree instead of free.
10452 * charset.c: Include "gdb_string.h" instead of <string.h>.
10453 (register_iconv_charsets): Use ISO C definition.
10454 (host_charset, target_charset): Ditto.
10455 * Makefile.in (charset.o): Update dependencies.
10456 (mi-cmd-env.o): Update dependencies.
10457
1c615f7a
AC
104582003-01-08 Andrew Cagney <cagney@redhat.com>
10459
10460 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10461 get_frame_base.
10462
c9a1dc08
AC
104632003-01-08 Andrew Cagney <ac131313@redhat.com>
10464
10465 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10466 build directories. Save edited gdb output in Mbuild.log. If a
10467 build fails, remove any final GDB executable.
10468
dbad9d94
AC
104692003-01-08 Andrew Cagney <ac131313@redhat.com>
10470
10471 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10472 replacing hex constants with function names and stripping leading
10473 file name directory prefixes.
10474
8d357cca
AC
104752003-01-08 Andrew Cagney <cagney@redhat.com>
10476
10477 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10478 get_frame_base.
10479
bca02a8a
DC
104802003-01-08 David Carlton <carlton@math.stanford.edu>
10481
10482 * linespec.c (decode_line_1): Move code into decode_variable.
10483 (decode_variable): New function.
10484
7f8ab3a0
AC
104852003-01-08 Andrew Cagney <ac131313@redhat.com>
10486
10487 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10488
7b5849cc
AC
104892003-01-08 Andrew Cagney <cagney@redhat.com>
10490
10491 * cris-tdep.c (cris_frame_init_saved_regs): Use
10492 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10493 saved_regs buffer.
10494 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10495 (sh64_nofp_frame_init_saved_regs): Ditto.
10496 (sh_fp_frame_init_saved_regs): Ditto.
10497 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10498 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10499 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10500 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10501
72a5efb3
DJ
105022003-01-08 Daniel Jacobowitz <drow@mvista.com>
10503
10504 * minsyms.c (lookup_minimal_symbol): Update comment.
10505 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10506 (lookup_minimal_symbol_solib_trampoline): Likewise.
10507
11c02a10
AC
105082003-01-08 Andrew Cagney <cagney@redhat.com>
10509
aab3ea25
AC
10510 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10511 frame_relative_level.
10512
da50a4b7
AC
10513 * alpha-tdep.c: Use get_frame_extra_info.
10514 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10515 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10516 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10517 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10518
11c02a10
AC
10519 * alpha-tdep.c: Use get_next_frame.
10520 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10521 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10522 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10523 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10524 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10525 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10526 * xstormy16-tdep.c: Ditto.
8ffd9b1b 10527
1e2330ba
AC
105282003-01-07 Andrew Cagney <cagney@redhat.com>
10529
10530 * alpha-tdep.c: Use get_frame_base.
10531 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10532 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10533 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10534 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10535 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10536 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10537 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10538 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 10539
2d75187b
AC
105402003-01-07 Andrew Cagney <cagney@redhat.com>
10541
10542 * frame.c (deprecated_get_frame_context): New function.
10543 (deprecated_set_frame_context): New function.
10544 * frame.h (deprecated_get_frame_context): Declare.
10545 (deprecated_set_frame_context): Declare.
10546 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10547 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 10548
483d36b2
AC
105492003-01-07 Andrew Cagney <cagney@redhat.com>
10550
10551 * frame.c (deprecated_set_frame_next_hack): New function.
10552 (deprecated_set_frame_prev_hack): New function.
10553 * frame.h (deprecated_set_frame_next_hack): Declare.
10554 (deprecated_set_frame_prev_hack): Declare.
10555 * mcore-tdep.c (analyze_dummy_frame): Use
10556 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10557 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10558
14e91ac5
DC
105592003-01-07 David Carlton <carlton@math.stanford.edu>
10560
10561 * linespec.c (decode_line_1): Move code into decode_dollar.
10562 (decode_dollar): New function.
10563
b0c6b05c
AC
105642003-01-07 Andrew Cagney <cagney@redhat.com>
10565
10566 * arm-tdep.c (arm_init_extra_frame_info): Use
10567 deprecated_update_frame_base_hack.
10568 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10569 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10570 (fix_frame_pointer): Ditto.
10571 (mn10300_analyze_prologue): Ditto.
10572
a00a19e9
AC
105732003-01-07 Andrew Cagney <cagney@redhat.com>
10574
10575 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10576 extra_info using frame_extra_info_zalloc.
10577 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10578 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10579 (sh64_init_extra_frame_info): Ditto.
10580 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10581 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10582 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10583 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10584 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10585 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10586 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10587 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10588 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10589 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10590 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10591 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10592
10593 * mn10300-tdep.c (analyze_dummy_frame): Use
10594 deprecated_set_frame_extra_info_hack.
10595 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10596
1fb4c65b
JB
105972003-01-07 J. Brobecker <brobecker@gnat.com>
10598
10599 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10600 class is not scText. These do not define "real" procedures.
10601 (parse_partial_symbols): Likewise.
10602
9fe7d6bf
MS
106032003-01-06 Michael Snyder <msnyder@redhat.com>
10604
10605 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10606
f6c609c4
AC
106072003-01-06 Andrew Cagney <ac131313@redhat.com>
10608
10609 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10610 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10611 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10612 deprecated_frame_xmalloc_with_cleanup.
10613 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10614 deprecated_frame_xmalloc.
10615 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10616 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10617
d995ff4b
AC
106182003-01-06 Andrew Cagney <cagney@redhat.com>
10619
84dc46cb
AC
10620 * x86-64-linux-tdep.c: Include "osabi.h".
10621 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10622
d995ff4b
AC
10623 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10624
66140c26
AC
106252003-01-06 Andrew Cagney <cagney@redhat.com>
10626
10627 * MAINTAINERS (Target Instruction Set Architectures): Update
10628 arm-elf. Can be built with -Werror, has been multiarched.
10629
10630 * value.h (unpack_long): Make buffer parameter constant.
10631 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10632 * scm-lang.h (scm_parse): Ditto.
10633 * defs.h (extract_typed_address, extract_address): Ditto.
10634 (extract_long_unsigned_integer): Ditto.
10635 * inferior.h (unsigned_pointer_to_address): Ditto.
10636 (signed_pointer_to_address): Ditto.
10637 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10638 * gdbarch.h, gdbarch.c: Regenerate.
10639 * findvar.c (extract_long_unsigned_integer): Update.
10640 (extract_address): Update.
10641 (extract_typed_address): Update.
10642 (unsigned_pointer_to_address): Update.
10643 * values.c (unpack_long): Update.
10644 (unpack_double): Update.
10645 (unpack_pointer): Update.
10646 (unpack_field_as_long): Update.
10647 * d10v-tdep.c (d10v_pointer_to_address): Update.
10648 * avr-tdep.c (avr_pointer_to_address): Update.
10649 * scm-lang.c (scm_unpack): Update.
10650 * findvar.c (signed_pointer_to_address): Update.
10651
b089b3da
ML
106522003-01-06 Michal Ludvig <mludvig@suse.cz>
10653
8ffd9b1b 10654 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
10655 since it is in i386-tdep.c.
10656
aff87235
JB
106572003-01-06 J. Brobecker <brobecker@gnat.com>
10658
10659 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10660 failure introduced in the previous change.
10661
34f5e845
MC
106622003-01-05 Michael Chastain <mec@shout.net>
10663
10664 * README: Remove references to deleted remote-*.c files:
10665 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10666 remote-nrom.c, remote-os9k.c, remote-udi.c.
10667
28bcfd30
MK
106682003-01-05 Mark Kettenis <kettenis@gnu.org>
10669
10670 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10671 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10672 i386_get_longjmp_target.
10673
15a5b3ee
AC
106742003-01-05 Andrew Cagney <ac131313@redhat.com>
10675
10676 * arm-tdep.c (prologue_cache): Change to a pointer.
10677 (_initialize_arm_tdep): Allocate prologue_cache.
10678 (check_prologue_cache): Update.
10679 (save_prologue_cache): Update.
10680 (arm_gdbarch_init): Update.
10681
c263362b
DJ
106822003-01-04 Daniel Jacobowitz <drow@mvista.com>
10683
10684 * stabsread.c (update_method_name_from_physname): Call complaint()
10685 instead of error.
10686
51603483
DJ
106872003-01-04 Daniel Jacobowitz <drow@mvista.com>
10688
10689 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10690 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10691 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10692
10693 * blockframe.c: Include "gdbcmd.h" and "command.h".
10694 (backtrace_below_main): New variable.
10695 (file_frame_chain_valid, func_frame_chain_valid)
10696 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10697 (generic_func_frame_chain_valid): Remove functions.
10698 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10699 (_initialize_blockframe): New function.
10700 * Makefile.in (blockframe.o): Update dependencies.
10701 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10702 comment. Call frame_chain_valid ().
10703 * frame.h: Remove old prototypes. Add prototype for
10704 frame_chain_valid and update comments to match.
10705 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10706 Remove old comment.
10707 * gdbarch.h: Regenerated.
10708 * gdbarch.c: Regenerated.
10709
10710 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10711 set_gdbarch_frame_chain_valid.
10712 * avr-tdep.c (avr_gdbarch_init): Likewise.
10713 * cris-tdep.c (cris_gdbarch_init): Likewise.
10714 * frv-tdep.c (frv_gdbarch_init): Likewise.
10715 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10716 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10717 (i386_nw_init_abi): Likewise.
10718 (i386_gdbarch_init): Likewise.
10719 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10720 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10721 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10722 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10723 * mips-tdep.c (mips_gdbarch_init): Likewise.
10724 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10725 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10726 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10727 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10728 * s390-tdep.c (s390_gdbarch_init): Likewise.
10729 * sh-tdep.c (sh_gdbarch_init): Likewise.
10730 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10731 * v850-tdep.c (v850_gdbarch_init): Likewise.
10732 * vax-tdep.c (vax_gdbarch_init): Likewise.
10733 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10734
10735 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10736 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10737 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10738 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10739 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10740 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10741 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10742 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10743
b00a8037
DJ
107442002-01-04 Daniel Jacobowitz <drow@mvista.com>
10745
10746 * Makefile.in (acconfig_h): Remove incorrect macro.
10747 (config_h): Define.
10748 (osabi.o): Update dependencies.
10749 * configure.tgt: Set gdb_osabi based on target triplet.
10750 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10751 * configure: Regenerated.
10752 * config.in: Regenerated.
10753 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10754 (GDB_OSABI_DEFAULT): Define if not already defined.
10755 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10756 (set_osabi_string): New variables.
10757 (gdbarch_register_osabi): Add new OS ABI to
10758 gdb_osabi_available_names.
10759 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10760 (set_osabi, show_osabi): New functions.
10761 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10762
4be87837
DJ
107632003-01-04 Daniel Jacobowitz <drow@mvista.com>
10764
10765 * arch-utils.c (gdbarch_info_init): Set osabi to
10766 GDB_OSABI_UNINITIALIZED.
10767 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10768 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10769 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10770 * gdbarch.c: Regenerated.
10771 * gdbarch.h: Regenerated.
10772 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10773 there's no BFD.
10774 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10775 * osabi.h (enum gdb_osabi): Move to defs.h.
10776 (gdbarch_init_osabi): Update prototype.
10777 * defs.h (enum gdb_osabi): Moved here.
10778 * Makefile.in: Update dependencies.
10779
10780 * alpha-tdep.h: Don't include "osabi.h".
10781 (struct gdbarch_tdep): Remove osabi member.
10782 * alpha-tdep.c: Include "osabi.h".
10783 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10784 iterate over arches. Update call to gdbarch_init_osabi.
10785 (alpha_dump_tdep): Don't dump osabi.
10786 * alpha-linux-tdep.c: Include "osabi.h".
10787 * alpha-osf1-tdep.c: Include "osabi.h".
10788 * alphafbsd-tdep.c: Include "osabi.h".
10789 * alphanbsd-tdep.c: Include "osabi.h".
10790
10791 * arm-tdep.h: Don't include "osabi.h".
10792 (struct gdbarch_tdep): Remove osabi member.
10793 * arm-tdep.c: Include "osabi.h".
10794 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10795 iterate over arches. Update call to gdbarch_init_osabi.
10796 (arm_dump_tdep): Don't dump osabi.
10797 * arm-linux-tdep.c: Include "osabi.h".
10798 * armnbsd-tdep.c: Include "osabi.h".
10799
10800 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10801 Update call to gdbarch_init_osabi.
10802
10803 * i386-tdep.h: Don't include "osabi.h".
10804 (struct gdbarch_tdep): Remove osabi member.
10805 * i386-tdep.c: Include "osabi.h".
10806 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10807 iterate over arches. Update call to gdbarch_init_osabi.
10808 (i386_dump_tdep): Don't dump osabi.
10809 * i386-linux-tdep.c: Include "osabi.h".
10810 * i386-sol2-tdep.c: Include "osabi.h".
10811 * i386bsd-tdep.c: Include "osabi.h".
10812 * i386gnu-tdep.c: Include "osabi.h".
10813 * i386ly-tdep.c: Include "osabi.h".
10814 * i386nbsd-tdep.c: Include "osabi.h".
10815 * i386obsd-tdep.c: Include "osabi.h".
10816
10817 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10818 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10819 check osabi when iterating over arches. Update call to
10820 gdbarch_init_osabi.
10821 (mips_dump_tdep): Don't dump osabi.
10822
10823 * ns32k-tdep.h: Don't include "osabi.h".
10824 (struct gdbarch_tdep): Remove.
10825 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10826 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10827 allocate tdep. Update call to gdbarch_init_osabi.
10828 (ns32k_dump_tdep): Remove.
10829 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10830 * ns32knbsd-tdep.c: Include "osabi.h".
10831
10832 * ppc-tdep.h: Don't include "osabi.h".
10833 (struct gdbarch_tdep): Remove osabi member.
10834 * rs6000-tdep.c: Include "osabi.h".
10835 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10836 osabi when iterating over arches. Update call to
10837 gdbarch_init_osabi.
10838 (rs6000_dump_tdep): Don't dump osabi.
10839 * ppc-linux-tdep.c: Include "osabi.h".
10840 * ppcnbsd-tdep.c: Include "osabi.h".
10841
10842 * sh-tdep.h: Don't include "osabi.h".
10843 (struct gdbarch_tdep): Remove osabi member.
10844 * sh-tdep.c: Include "osabi.h".
10845 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10846 iterate over arches. Update call to gdbarch_init_osabi.
10847 (sh_dump_tdep): Don't dump osabi.
10848 * shnbsd-tdep.c: Include "osabi.h".
10849
10850 * sparc-tdep.c: Include "osabi.h".
10851 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10852 iterate over arches. Update call to gdbarch_init_osabi.
10853 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10854 tdep structure.
10855
10856 * vax-tdep.h: Don't include "osabi.h".
10857 (struct gdbarch_tdep): Remove.
10858 * vax-tdep.c: Include "osabi.h".
10859 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10860 iterate over arches. Don't allocate tdep. Update call
10861 to gdbarch_init_osabi.
10862 (vax_dump_tdep): Remove.
10863 (_initialize_vax_tdep): Update call to gdbarch_register.
10864
a881cf8e
DJ
108652003-01-04 Daniel Jacobowitz <drow@mvista.com>
10866
10867 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10868 entirely.
10869 (breakpoint_re_set_one): Don't fetch the value for a disabled
10870 watchpoint.
10871
1e698235
DJ
108722003-01-04 Daniel Jacobowitz <drow@mvista.com>
10873
10874 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10875 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10876 (COERCE_FLOAT_TO_DOUBLE): Remove.
10877 * gdbarch.c: Regenerate.
10878 * gdbarch.h: Regenerate.
10879 * Makefile.in: Remove value_h from gdbarch_h.
10880 * valops.c (coerce_float_to_double): New variable.
10881 (default_coerce_float_to_double): Remove.
10882 (standard_coerce_float_to_double): Remove.
10883 (value_arg_coerce): Use coerce_float_to_double.
10884 (_initialize_valops): Add "set coerce-float-to-double".
10885 * value.h (default_coerce_float_to_double): Remove prototype.
10886 (standard_coerce_float_to_double): Remove prototype.
10887
10888 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10889 prototyped.
10890 * mdebugread.c (parse_symbol): Likewise.
10891 * stabsread.c (define_symbol): Mark all functions as prototyped.
10892
10893 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10894 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10895 set_gdbarch_coerce_float_to_double.
10896 * arm-tdep.c (arm_gdbarch_init): Likewise.
10897 * frv-tdep.c (frv_gdbarch_init): Likewise.
10898 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10899 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10900 * mips-tdep.c (mips_gdbarch_init): Likewise.
10901 (mips_coerce_float_to_double): Remove.
10902 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10903 (rs6000_coerce_float_to_double): Remove.
10904 * s390-tdep.c (s390_gdbarch_init): Likewise.
10905 * sh-tdep.c (sh_gdbarch_init): Likewise.
10906 (sh_coerce_float_to_double): Remove.
10907 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10908 (sparc_coerce_float_to_double): Remove.
10909 * v850-tdep.c (v850_gdbarch_init): Likewise.
10910 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10911 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10912 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10913 (hppa_coerce_float_to_double): Remove prototype.
10914 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10915
f436a26a
DJ
109162003-01-04 Daniel Jacobowitz <drow@mvista.com>
10917
10918 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10919
248f8055
DJ
109202003-01-04 Daniel Jacobowitz <drow@mvista.com>
10921
10922 Suggested by Stewart Brown <sb24@avaya.com>:
10923 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10924 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10925 (c_type_print_varspec_suffix): Likewise.
10926
72cfdc76
MK
109272003-01-04 Mark Kettenis <kettenis@gnu.org>
10928
bfd260bb
MK
10929 * configure.in: Don't set and AC_SUBST SUBDIRS.
10930 * configure: Regenerated.
10931
72cfdc76
MK
10932 * configure.in: Remove code dealing with shared libraries.
10933 * Makefile.in: Remove HLDFLAGS and HLDENV.
10934 * configure: Regenerated.
10935
c8b8a898
AC
109362003-01-04 Andrew Cagney <ac131313@redhat.com>
10937
10938 * frame.c (deprecated_frame_xmalloc): New function.
10939 (deprecated_set_frame_saved_regs_hack): New function.
10940 (deprecated_set_frame_extra_info_hack): New function.
10941 * frame.h (deprecated_frame_xmalloc): Declare.
10942 (deprecated_set_frame_saved_regs_hack): Declare.
10943 (deprecated_set_frame_extra_info_hack): Declare.
10944
14abd0fb
MK
109452003-01-04 Mark Kettenis <kettenis@gnu.org>
10946
8ee53726
MK
10947 * configure.in: Move code that provides the --enable-gdbtk option
10948 right after the code that handles the --enable-tui option, and
10949 polish it somewhat.
10950 * configure: Regenerated.
10951
14abd0fb
MK
10952 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10953 AC_CHECK_FUNCS and remove the old check for pread64.
10954 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10955 * acconfig.h (_GNU_SOURCE): Add.
10956 (HAVE_PREAD64): Remove.
10957 * configure, aclocal.m4, config.in: Regenerated.
10958
b2fb4676
AC
109592003-01-03 Andrew Cagney <ac131313@redhat.com>
10960
10961 * alpha-tdep.c: Use get_frame_saved_regs.
10962 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10963 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10964 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10965 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10966 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10967
8dcde887
MK
109682003-01-03 Mark Kettenis <kettenis@gnu.org>
10969
10970 * configure.in: Remove all use of the SUBDIRS variable; add
10971 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10972 code providing the --enable-multi-ice option, and move it right in
10973 front of the code that checks whether gdbserver is supported.
10974 Polish that too.
10975 * configure: Regenerated.
10976 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10977 @SUBDIRS@.
10978
8ccd593b
AC
109792003-01-03 Andrew Cagney <cagney@redhat.com>
10980
10981 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10982 * avr-tdep.c, cris-tdep.c: Ditto.
10983 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10984 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 10985
91151a06
MK
109862003-01-03 Mark Kettenis <kettenis@gnu.org>
10987
10988 * configure.in: Remove --enable-netrom option.
10989 * configure: Regenerated.
10990
8fe84d01
MK
109912003-01-03 Mark Kettenis <kettenis@gnu.org>
10992
10993 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10994 declaration for `struct re_pattern_buffer' instead.
10995 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10996
f0394be6
JB
109972003-01-03 J. Brobecker <brobecker@gnat.com>
10998
10999 * mdebugread.c (parse_symbol): Count until the stEnd matching
11000 the structure name.
11001
27e9bf90
MK
110022003-01-02 Mark Kettenis <kettenis@gnu.org>
11003
93d331ba
MK
11004 * configure.in: Remove --with-cpu option.
11005 subscripts. Remove evil changequotes here.
11006 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11007 * config.in, configure: Regenerated.
8ffd9b1b 11008
27e9bf90
MK
11009 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11010 * configure.in: Cleanup section that sources GDB and BFD configure
11011 subscripts. Remove evil changequotes here.
11012 * config.in, configure: Regenerated.
11013
50abf9e5
AC
110142003-01-02 Andrew Cagney <ac131313@redhat.com>
11015
11016 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11017 frame accessor methods.
11018 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11019 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11020 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11021 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11022 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11023 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11024 * z8k-tdep.c: Ditto.
8ffd9b1b 11025
287c1a40
MK
110262003-01-02 Mark Kettenis <kettenis@gnu.org>
11027
f5dbc56d
MK
11028 * configure.in: Remove UI_OUT configuration code.
11029 * ada-lang.c: Update assuming UI_OUT is always true.
11030 * Makefile.in (UIOUT_CFLAGS): Remove.
11031 * configure: Regenerated.
11032 * TODO: Remove blurb about elimination of -DUI_OUT.
11033
627af7ea
MK
11034 * configure.in: Move code that provides the --enable-gdbcli,
11035 --enable-gdbmi options right before the code that handles the
11036 --enable-tui option. Polish a bit.
11037 * configure: Regenerated.
11038
06825bd1
MK
11039 * configure.in: Rewrite check for GNU regex and the
11040 --without-included regex option, and move it into the "Checks for
11041 library functions" section. This makes us use the system regex
11042 again by default on systems with version 2 of the GNU C library.
11043 This was apparently broken.
11044 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11045 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11046 * config.in, configure: Regenerated.
11047
287c1a40
MK
11048 * configure.in: Move code that provides the --enable-tui option
11049 before the "Checks for libraries" section. Polish the code
11050 somewhat and set need_curses to yes if we build the TUI. Rewrite
11051 code that looks for a library providing termcap functionality to
11052 match more closely what's done in the Readline library, and move
11053 it into to the "Checks for libraries" section.
11054 * configure: Regenerated.
11055 * Makefile.in (TERMCAP): Remove variable.
11056 * config/i386/go32.mh (TERMCAP): Remove variable.
11057
684e56bf
AC
110582003-01-02 Andrew Cagney <ac131313@redhat.com>
11059
11060 * MAINTAINERS: Mention gdb_mbuild.sh.
11061 * gdb_mbuild.sh: Rewrite.
11062
e1ea1d75
MK
110632003-01-02 Mark Kettenis <kettenis@gnu.org>
11064
11065 * configure.in: Fix typo in last change.
11066 * config.in, configure: Regenerated.
11067
1b831c93
AC
110682003-01-02 Andrew Cagney <ac131313@redhat.com>
11069
11070 * valarith.c (value_binop): Delete obsolete code and comments.
11071 * configure.host: Ditto.
11072 * buildsym.h (make_blockvector): Ditto.
11073 * buildsym.c (make_blockvector): Ditto.
11074 * defs.h (enum language): Ditto.
11075 (chill_demangle): Ditto.
11076 * elfread.c (elf_symtab_read): Ditto.
11077 * dwarfread.c (CHILL_PRODUCER): Ditto.
11078 (set_cu_language): Ditto.
11079 (handle_producer): Ditto.
11080 * expprint.c (print_subexp): Ditto.
11081 * gdbtypes.c (chill_varying_type): Ditto.
11082 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11083 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11084 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11085 (chill_varying_type): Ditto.
11086 * language.h (_LANG_chill): Ditto.
11087 * language.c (binop_result_type, integral_type): Ditto.
11088 (character_type, string_type, structured_type): Ditto.
11089 (lang_bool_type, binop_type_check): Ditto.
11090 * stabsread.h (os9k_stabs): Ditto.
11091 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11092 (define_symbol, read_type, read_struct_fields): Ditto.
11093 (read_array_type, read_enum_type, read_huge_number): Ditto.
11094 (read_range_type, start_stabs): Ditto.
11095 * symfile.c (init_filename_language_table): Ditto.
11096 (add_psymbol_with_dem_name_to_list): Ditto.
11097 * symtab.c (symbol_init_language_specific): Ditto.
11098 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11099 * symtab.h (struct general_symbol_info): Ditto.
11100 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11101 * typeprint.c (typedef_print): Ditto.
11102 * utils.c (fprintf_symbol_filtered): Ditto.
11103 * valops.c (value_cast, search_struct_field, value_slice): Delete
11104 obsolete code.
11105 (varying_to_slice): Delete function.
11106 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11107 (varying_to_slice): Delete declaration.
11108 * MAINTAINERS: Update.
11109
8bb2c122
MK
111102003-01-02 Mark Kettenis <kettenis@gnu.org>
11111
97bf5e38
MK
11112 * configure.in: Reorganize "Checks for library functions section"
11113 a bit. Remove check for `btowc' and `isascii' functions.
11114 * configure: Regenerated.
11115
5ee754fc
MK
11116 * acconfig.h (_MSE_INT_H): Remove.
11117 * configure.in: Create "Checks for header files" section, and move
11118 appropriate tests there. Don't check for objlist.h, wchar.h,
11119 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11120 misdetection fix. Also add "Checks for types", "Checks for
11121 compiler characteristics" and "Checks for library functions"
11122 sections.
11123 * config.in, configure: Regenerated.
11124
8bb2c122
MK
11125 * configure.in: Create "Checks for programs" section, and move
11126 appropriate tests there.
11127
9a156167
MK
111282003-01-01 Mark Kettenis <kettenis@gnu.org>
11129
11130 * configure.in: Create "Checks for libraries" section, and move
11131 appropriate tests there. Cleanup check for wctype in libw. Use
11132 AC_SEARCH_LIBS to see whether we need libsocket.
11133 * configure: Regenerated.
11134
a80e2bcb 11135For older changes see ChangeLog-2002
c906108c
SS
11136\f
11137Local Variables:
11138mode: change-log
11139left-margin: 8
11140fill-column: 74
11141version-control: never
11142End:
This page took 0.953753 seconds and 4 git commands to generate.