* emulparams/elf32ip2k.sh (TEMPLATE_NAME): Define.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e94cc8fa
DJ
12003-08-28 Daniel Jacobowitz <drow@mvista.com>
2
3 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
4 by Nathan J. Williams.
5
c64bd0ce
DJ
62003-08-28 Daniel Jacobowitz <drow@mvista.com>
7
8 * lin-lwp.c (wait_lwp): New function, copied from
9 stop_wait_callback. Clean up.
10 (stop_wait_callback): Use wait_lwp.
11
e5ab0dce
AC
122003-08-28 Andrew Cagney <cagney@redhat.com>
13
14 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
15 flavour and disassembler options.
16 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
17 (mips_gdbarch_init): Set "print_insn". Delete initialization of
18 deprecated_tm_print_insn_info.
19
a788de9b
AC
202003-08-27 Andrew Cagney <cagney@redhat.com>
21
22 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
23 Use target_read_memory.
24 (s390_get_frame_info): Update. Do not reference
25 deprecated_tm_print_insn_info.
26 (s390_check_function_end, s390_is_sigreturn): Ditto.
27
36482093
AC
282003-08-27 Andrew Cagney <cagney@redhat.com>
29
30 * Makefile.in (cris-tdep.o): Update dependencies.
31 * cris-tdep.c: Include "gdb_assert.h".
32 (cris_gdbarch_init): Set print_insn.
33 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
34 (cris_delayed_get_disassembler): Simplify, directly call the
35 disassembler returned by cris_get_disassembler.
36 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
37 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
38 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
39 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
40 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
41 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
42 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
43 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
44 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
45 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
46 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
47 (gdb_print_insn_sparc): Delete function.
48 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
49 deprecated_tm_print_insn_info.
50 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
51 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
52 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
53 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
54 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
55 * s390-tdep.c (gdb_print_insn_s390): Delete function.
56 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
57 (s390_gdbarch_init): Set print_insn.
58
0285512f
AC
592003-08-27 Andrew Cagney <cagney@redhat.com>
60
61 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
62 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
63 * infcall.c (call_function_by_hand): Convert the entry point
64 address into a code address.
65
cdcd5552
AC
662003-08-27 Andrew Cagney <cagney@redhat.com>
67
68 * dsrec.c: Include "gdb_string.h".
69 * Makefile.in (dsrec.o): Update dependencies.
70
e85cddad
MC
712003-08-27 Michael Chastain <mec@shout.net>
72
73 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
74
8bbfbb23
AC
752003-08-27 Andrew Cagney <cagney@redhat.com>
76
77 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
78 (alpha_osf1_init_abi): Do not set call_dummy_address.
79
ba058b66
DC
802003-08-27 David Carlton <carlton@kealia.com>
81
82 From Randolph Chung <tausq@debian.org>:
83 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
84 compiles with -Wformat-nonliteral -Werror.
85
87f84c9d
JB
862003-08-26 Jim Blandy <jimb@redhat.com>
87
88 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
89 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
90 bfd_lookup_symbol, since we only want symbols in code sections.
91 (look_for_base): Pass zero as the SECT_FLAGS argument to
92 bfd_lookup_symbol, since we're not concerned about which section
93 the symbol is in.
94
102d615a
JJ
952003-08-26 Jeff Johnston <jjohnstn@redhat.com>
96
97 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
98 we are frameless or the return address register is already known.
99
cc7ad3ea
AC
1002003-08-26 Andrew Cagney <cagney@redhat.com>
101
102 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
103 in size. Add comments.
104
af8b88dd
JJ
1052003-08-26 Jeff Johnston <jjohnstn@redhat.com>
106
107 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
108 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
109
e0a4f5a1
JM
1102003-08-26 Jason Merrill <jason@redhat.com>
111
112 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
113 case out of #ifdef MIPS block.
114
4ae9ee8e
DJ
1152003-08-25 Daniel Jacobowitz <drow@mvista.com>
116
117 PR java/1322
118 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
119 available before calling SECT_OFF_TEXT.
3c164570 120 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 121
004d836a
JJ
1222003-08-25 Jeff Johnston <jjohnstn@redhat.com>
123
124 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
125 bof, and nat0-nat127 as pseudo-registers.
126 (ia64_frame_cache): New struct used to cache frame info.
127 (ia64_register_reggroup_p): New routine used to override default
128 register grouping so registers without names are still saved and
129 restored.
130 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
131 pseudo values.
132 (ia64_pseudo_register_read): New routine to read pseudo-registers.
133 (ia64_pseudo_register_write): New routine to write pseudo-registers.
134 (ia64_alloc_frame_cache): New routine to create a new
135 ia64_frame_cache.
136 (examine_prologue): Change prototype to add next_frame pointer.
137 Assume frameless until otherwise proven. Verify that the cfm for
138 current frame matches the cfm that should occur for the prologues
139 alloc insn and if equal, mark as not frameless. At end of routine,
140 if not frameless, calculate registers for the previous frame and store
141 in the cache, if a cache is provided.
142 (ia64_skip_prologue): Use new prototype when calling examine_prologue
143 and pass 0 for next_frame.
144 (ia64_store_return_value): Change to use convert_typed_floating()
145 instead of calling ia64_convert_to_raw().
146 (ia64_extract_return_value): Change to use convert_typed_floating()
147 instead of calling ia64_convert_to_virtual().
148 (ia64_frame_cache): New routine to support new frame model.
149 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
150 (ia64_frame_sniffer): Ditto.
151 (ia64_sigtramp_frame_init_saved_regs): Ditto.
152 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
153 (ia64_sigtramp_frame_prev_register): Ditto.
154 (ia64_sigtramp_frame_sniffer): Ditto.
155 (ia64_frame_base_address): Ditto.
156 (ia64_extract_struct_value_address): Change to issue error message.
157 (ia64_frame_align): New routine to align sp.
158 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
159 (ia64_push_arguments): Removed. Logic moved to
160 ia64_push_dummy_call().
161 (ia64_push_return_address): Ditto.
162 (ia64_unwind_dummy_id): New function.
163 (ia64_unwind_pc): Ditto.
164 (ia64_convert_register_p): Ditto.
165 (ia64_register_to_value): Ditto.
166 (ia64_value_to_register): Ditto.
167 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
168 (ia64_register_byte, ia64_register_raw_size): Ditto.
169 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
170 (ia64_saved_pc_after_call): Ditto.
171 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
172 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
173 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
174 (ia64_register_convert_to_raw): Ditto.
175 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
176 (ia64_init_extra_frame_info): Ditto.
177 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
178 (ia64_gdbarch_init): Remove registering of deprecated functions that
179 are no longer used. Add registration of new gdbarch functions.
180 Remove registering deprecated_write_sp. Replace
181 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
182 Delete set_gdbarch_deprecated_register_convertible(),
183 set_gdbarch_deprecated_register_convert_to_virtual(), and
184 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
185 set_gdbarch_deprecated_register_size(),
186 set_gdbarch_deprecated_register_bytes(),
187 set_gdbarch_pcregnum(),
188 set_gdbarch_deprecated_register_byte(),
189 set_gdbarch_deprecated_register_raw_size(),
190 set_gdbarch_deprecated_max_register_raw_size(),
191 set_gdbarch_deprecated_register_virtual_size(),
192 and set_gdbarch_deprecated_max_register_virtual_size() calls.
193 Replace set_gdbarch_deprecated_extract_return_value() with
194 set_gdbarch_extract_return_value(). Remove calls to:
195 set_gdbarch_deprecated_saved_pc_after_call();
196 set_gdbarch_deprecated_frame_chain(),
197 set_gdbarch_deprecated_frame_saved_pc(),
198 set_gdbarch_deprecated_frame_init_saved_regs(),
199 set_gdbarch_deprecated_get_saved_register(),
200 set_gdbarch_deprecated_call_dummy_words(),
201 set_gdbarch_deprecated_sizeof_call_dummy_words(),
202 set_gdbarch_deprecated_init_extra_frame_info(),
203 set_gdbarch_deprecated_frame_args_address(),
204 set_gdbarch_deprecated_frame_locals_address(),
205 and set_gdbarch_deprecated_dummy_write_sp().
206 Add set_gdbarch_convert_register_p(),
207 set_gdbarch_register_to_value(),
208 set_gdbarch_value_to_register(),
209 set_gdbarch_push_dummy_call(),
210 set_gdbarch_frame_align(),
211 set_gdbarch_unwind_dummy_id(),
212 set_gdbarch_unwind_pc(),
213 frame_unwind_append_sniffer(),
214 frame_unwind_append_sniffer(),
215 and frame_base_set_default().
216
aede7613
CD
2172003-08-25 Chris Demetriou <cgd@broadcom.com>
218
219 * configure.tgt: Document need for special "mipsisa64" handling.
220 (mipsisa64*-*-linux64): Handle as target linux64.
221 (mipsisa64*-*-*): Handle as target embed64.
222
43c3a82e
MC
2232003-08-18 Michael Chastain <mec@shout.net>
224
225 * PROBLEMS: Document pr gdb/1322, the Java anonymous
226 objfile bug.
227
6564f77d
MK
2282003-08-24 Mark Kettenis <kettenis@gnu.org>
229
2de139ba
MK
230 * i387-tdep.h: Update copyright date.
231 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
232
6564f77d
MK
233 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
234 CFLAGS games to reflect reality.
235
42cf1509
AC
2362003-08-24 Andrew Cagney <cagney@redhat.com>
237
238 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
239 GDB_MULTI_ARCH is always non-zero.
240 * osabi.c (_initialize_gdb_osabi): Ditto.
241 (gdbarch_init_osabi): Ditto.
242 * sparc-tdep.c: Ditto for #if code.
243
0485f6ad
MK
2442003-08-23 Mark Kettenis <kettenis@gnu.org>
245
246 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
247 Update comments.
248 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
249 comments.
250 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
251 x86_64_supply_fxsave.
252 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
253 x86_64_supply_fxsave.
254 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
255 x86_64_supply_fxsave.
256
c7716133
AJ
2572003-08-23 Andreas Jaeger <aj@suse.de>
258
259 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
260 i387_supply_fxsave.
261
ed504bdf
MK
2622003-08-23 Mark Kettenis <kettenis@gnu.org>
263
264 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
265 i387_supply_register.
266 (go32_fetch_registers): Adjust call to i387_supply_fsave.
267 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
268 i387_supply_fsave.
269 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
270 i387_supply_fxsave.
271 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
272 i387_supply_fsave.
273 * i386bsd-nat.c (supply_fpregset): Adjust call to
274 i387_supply_fsave.
275 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
276 call to i387_supply_fxsave. Call i387_supply_fsave instead of
277 supply_fpregset.
278 (store_inferior_registers): Remove extraneous whitespace. Call
279 i387_fill_fsave instead of fill_fpregset.
280 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
281 (supply_fpregset): Likewise.
282 * i386v4-nat.c (supply_fpregset): Adjust call to
283 i387_supply_fsave.
284 * i386-interix-nat.c (supply_fpregset): Adjust call to
285 i387_supply_fsave.
286 * i386-linux-nat.c (supply_fpregset): Adjust call to
287 i387_supply_fsave.
288 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
289 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
290 i387supply_fsave and i387_supply_fxsave.
291 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
292 Incorporate code from `i387_supply_register.
293 (i387_supply_register): Remove.
294 (i387_supply_fxsave): Add `regnum' argument.
295 Update comments.
296 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
297 prototype.
298 (i387_supply_register): remove prototype.
299 Update comments.
300
4be5d520
MC
3012003-08-22 Michael Chastain <mec@shout.net>
302
303 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
304 Add lines for files in gdb/testsuite/gdb.cp/* that are
305 still not 8.3 unique.
306
7ed85d26
DJ
3072003-08-22 Daniel Jacobowitz <drow@mvista.com>
308
309 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
310 TYPE_VPTR_FIELDNO is valid.
311
eb0d3137
MK
3122003-08-19 Mark Kettenis <kettenis@gnu.org>
313
314 * utils.c (set_width_command): Remove prototypes.
315 (set_screen_size): New prototype.
316 (init_page_info): Simplify by fetching the screen size from
317 Readline. Call set_screen_size.
318 (set_screen_size): New function.
319 (set_width): Add missing whitespace in comment.
320 (set_width_command): Call set_screen_size.
321 (set_height_command): New function.
322 (initialize_utils): Fix formatting. Make "set height" command
323 call set_height_command. Remove redundant code that turns off
324 pagination if output isn't a terminal. Remove redundant call to
325 set_width_command.
326
7e6d0ac8
MK
3272003-08-22 Mark Kettenis <kettenis@gnu.org>
328
3567a8ea
MK
329 * sparc64-tdep.h (sparc64_regnum): Fix comment.
330 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
331 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
332 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
333 `case' keyword.
334 (sparc64_register_info): Give the reister with number
335 SPARC64_STATE_REGNUM a name.
336 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
337 %asi and %ccr.
338 (sparc64_push_dummy_call): Take BIAS into account when checking
339 stcak alignment.
340 (sparc_software_single_step): Remove assertions that check whether
341 NPC and NNPC were zero.
342 (sparc_supply_rwindow): Make public. Merge functionality with
343 sparc64_supply_rwindow.
344 (sparc_fill_rwindow): Make public. Merge functionality with
345 sparc64_fill_rwindow.
346 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
347 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
348 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
349 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
350 sparc_supply_rwindow instead of sparc64_supply_rwindow.
351
7e6d0ac8
MK
352 * reggroups.c: Add whitespace after declarations of local
353 variables in functions.
354
72e5f484
MC
3552003-08-21 Michael Chastain <mec@shout.net>
356
357 * gdbtypes.h: Change array bound type from an int to enum.
358
435ac228
AC
3592003-08-21 Andrew Cagney <cagney@redhat.com>
360
361 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
362 * config/sparc/tm-sparc.h: Ditto.
363 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
364 unconditionally.
365 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
366
0d0e1a63
MK
3672003-07-13 Mark Kettenis <kettenis@gnu.org>
368
369 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
370 (register_objfile_data, set_objfile_data, objfile_data): New
371 prototypes.
372 * objfiles.c (objfile_alloc_data, objfile_free_data): New
373 prototypes.
374 (allocate_objfile): Call objfile_alloc_data.
375 (free_objfile): Call objfile_free_data.
376 (struct objfile_data): New.
377 (struct objfile_data_registration): New.
378 (struct objfile_data_registry): New.
379 (objfile_data_registry): New variable.
380 (register_objfile_data): New function.
381 (objfile_alloc_data, objfile_free_data): New functions.
382 (set_objfile_data, objfile_data): New functions.
383 * dwarf2-frame.c (dwarf2_frame_data): New variable.
384 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
385 (_initialize_dwarf2_frame): New function and prototype.
386
d90cf509
AC
3872003-08-21 Andrew Cagney <cagney@redhat.com>
388
389 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
390 a specific architecture.
391 * arch-utils.h (set_architecture_from_arch_mach): Delete
392 declaration.
393 (target_architecture_hook): Delete declaration.
394 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
395 (default_float_format): Assume GDB_MULTI_ARCH.
396 (default_double_format): Assume GDB_MULTI_ARCH.
397 (set_endian_from_file): Delete function.
398 (arch_ok): Delete function.
399 (set_arch): Delete function.
400 (set_architecture_from_arch_mach): Delete function.
401 (set_architecture_from_file): Delete function.
402 (set_architecture): Assume GDB_MULTI_ARCH.
403 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
404
8b39fe56
MK
4052003-08-21 Mark Kettenis <kettenis@gnu.org>
406
407 Rewrite FreeBSD/sparc64 native configuration.
408 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
409 * sparc64fbsd-nat.c: New file.
410 * sparc64fbsd-tdep.c: New file.
411 * sparc64-tdep.c sparc64-tdep.h: New files.
412 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
413 sparc64fbsd-tdep.o): New dependencies.
414 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
415 and sparc64fbsd-tdep.c.
416 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
417 * config/sparc/fbsd.mh: Remove copyright notice.
418 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
419 sparcbsd-nat.o.
420 * config/sparc/fbsd.mt: Remove copyright notice.
421 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
422 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
423 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
424 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
425 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
426 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
427 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
428 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
429 "sparc/tm-sp64.h".
430 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
431 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
432
a7f19c79
MC
4332003-08-21 Michael Chastain <mec@shout.net>
434
435 * symtab.h: Add doco on the space critical structures and
436 some measurements of space usage.
437
da08ea5b
MS
4382003-08-21 Michael Snyder <msnyder@redhat.com>
439
440 * tracepoint.c (trace_dump_command): Trace break address
441 is subject to DECR_PC_AFTER_BREAK.
442 (set_traceframe_context): Make "trace_line" an int.
443 Fixes suggested by Mark Newman <mark.newman@lmco.com>
444
6df2bf50
MS
4452003-08-20 Michael Snyder <msnyder@redhat.com>
446
447 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
448 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
449 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
450 argument passing.
451 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
452 functions, replace sh_push_dummy_call.
453 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
454
0955bbf0
MC
4552003-08-20 Michael Chastain <mec@shout.net>
456
457 * gdbtypes.h (struct main_type): Rearrange to save space.
458
260a4188
MS
4592003-08-20 Michael Snyder <msnyder@redhat.com>
460
461 * trad-frame.c: Comment typo fix.
462
8baa6f92
KB
4632003-08-20 Michael Snyder <msnyder@redhat.com>
464 Kevin Buettner <kevinb@redhat.com>
465
466 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
467 (frv_frame_init_saved_regs): Add declaration.
468 (frame_extra_info): Add new field ``saved_regs''.
469 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
470 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
471 Update frame related code.
472 (frv_extract_struct_value_address): Adjust formatting.
473 * Makefile.in (frv-tdep.o): Update dependencies.
474 * config/frv/tm-frv.h (target_insert_watchpoint)
475 (target_remove_watchpoint, target_insert_hw_breakpoint)
476 (target_remove_hw_breakpoint): Delete these macros.
477 (remote_insert_watchpoint, remote_remove_watchpoint)
478 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
479 these declarations.
480
87193939
MC
4812003-08-20 Michael Chastain <mec@shout.net>
482
483 * defs.h (ENUM_BITFIELD): New macro.
484 * symtab.h (ENUM_BITFIELD): Use it.
485 (BYTE_BITFIELD): Remove old macro, which was already disabled.
486
062103ba
SA
4872003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
488
489 * MAINTAINERS (write after approval): Add myself.
490
8b148df9
AC
4912003-08-18 Andrew Cagney <cagney@redhat.com>
492
493 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
494 * gdbarch.h, gdbarch.c: Re-generate.
495 * infcall.c (call_function_by_hand): Adjust the SP by
496 frame_red_zone_size before allocating any stack space.
497 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
498 * x86-64-tdep.c (x86_64_frame_align): New function.
499 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
500
501 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
502 Remove code adjusting SP so that it skips over the Red Zone.
503
954a4db8
MK
5042003-08-18 Mark Kettenis <kettenis@gnu.org>
505
506 * NEWS (New native configurations): Mention FreeBSD/amd64.
507
1a241548
AC
5082003-08-18 Andrew Cagney <cagney@redhat.com>
509
510 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
511 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
512 "m68k_frame_p".
513 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
514
f82b2acd
MK
5152003-08-18 Mark Kettenis <kettenis@gnu.org>
516
517 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
518
4056d258
ML
5192003-08-18 Michal Ludvig <mludvig@suse.cz>
520
521 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
522 Define.
523 * i386-linux-nat.c: Include "linux-nat.h".
524 (child_post_startup_inferior): New function.
525
99ab4326
MK
5262003-08-18 Mark Kettenis <kettenis@gnu.org>
527
528 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
529 at the start of a frameless function. This probably fixes PR
530 backtrace/1338.
531
c8d5f0d6
MC
5322003-08-17 Michael Chastain <mec@shout.net>
533
534 * symfile.c (find_sym_fns): Remove special case for apollo target.
535
9016a515
DJ
5362003-08-17 Daniel Jacobowitz <drow@mvista.com>
537
538 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
539 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
540 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
541 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
542 (linux_supports_tracevforkdone): New function.
543 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
544 TRACEVFORKDONE.
545 (child_follow_fork): Handle vfork.
546 (linux_handle_extended_wait): Likewise. Also handle exec.
547 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
548 * NEWS: Mention fork tracing.
549
c538c11c
DJ
5502003-08-17 Daniel Jacobowitz <drow@mvista.com>
551
552 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
553
4de4c07c
DJ
5542003-08-17 Daniel Jacobowitz <drow@mvista.com>
555
556 * Makefile.in (i386-linux-nat.o): Update dependencies.
557 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
558 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
559 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
560 * i386-linux-nat.c: Include "linux-nat.h".
561 (child_post_startup_inferior): New function.
562 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
563 * infptrace.c (kill_inferior): Wrap in #ifdef.
564 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
565 attaching to each LWP.
566 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
567 (init_lin_lwp_ops): Fill in some more operations.
568 * linux-nat.h (linux_enable_event_reporting)
569 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
570 prototypes.
571 * linux-nat.c (linux_enable_event_reporting): New function.
572 (child_post_attach, linux_child_post_startup_inferior)
573 (child_post_startup_inferior, child_follow_fork)
574 (linux_handle_extended_wait, kill_inferior): New functions.
575
7996bcec
AC
5762003-08-16 Andrew Cagney <cagney@redhat.com>
577
578 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
579 * gdbarch.h, gdbarch.c: Re-generate.
580
3d48a7a0
MK
5812003-08-16 Mark Kettenis <kettenis@gnu.org>
582
583 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
584
7989c619
AC
5852003-08-16 Andrew Cagney <cagney@redhat.com>
586
587 * NEWS: Mention that "set prompt-escape-char" was deleted.
588 * top.c (get_prompt_1): Delete function.
589 (gdb_prompt_escape):
590 (init_main): Do not clear "gdb_prompt_escape". Delete "set
591 prompt-escape-char" command.
592 (MAX_PROMPT_SIZE): Delete macro.
593 (get_prompt): Simplify, do not call get_prompt_1.
594
07978cd8
AC
5952003-08-16 Andrew Cagney <cagney@redhat.com>
596
597 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
598 -Werror. -Wformat-nonliteral problems.
599
3ff7cf9e
JB
6002003-08-15 J. Brobecker <brobecker@gnat.com>
601
602 Further multiarching work mostly for hppa64-*-hpux11:
603 * hppa-tdep.h: New file.
604 * hppa-tdep.c: #include hppa-tdep.c.
605 (hppa32_num_regs): Renamed from hppa_num_regs.
606 (hppa64_num_regs): New constant.
607 (hppa64_call_dummy_breakpoint_offset): New constant.
608 (hppa32_call_dummy_length): New constant.
609 (hppa64_call_dummy_length): New constant.
610 (hppa32_stack_align): Make name 32bit explicit.
611 (hppa32_register_virtual_type): Likewise.
612 (hppa32_extract_return_value): Likewise.
613 (hppa32_use_struct_convention): Likewise.
614 (hppa32_store_return_value): Likewise.
615 (hppa64_register_virtual_type): New function.
616 (hppa64_extract_return_value): New function.
617 (hppa64_use_struct_convention): New function.
618 (hppa64_store_return_value): New function.
619 (hppa_frame_locals_address): Remove declaration, function does
620 not exist anymore.
621 (hppa_register_byte): Add support for PA64 ABI.
622 (hppa_gdbarch_init): Add support for PA64 ABI.
623 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
624 Make name 32bit explicit.
625 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
626 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
627 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
628 (hppa64_hpux_frame_base_before_sigtramp): New function.
629 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
630 * config/pa/tm-hppa64.h: Remove macros that are no longer
631 necessary now that the gdbarch vector is properly setup.
632 Transform some macros into function calls. Some minor cleanup.
633 * config/pa/tm-hppah.h: Update function calls in macros
634 following the function renaming in hppa-hpux-tdep.c.
635 * Makefile.in (hppa_tdep_h): New variable.
636 (hppa-tdep.o): Add dependency over hppa_tdep_h.
637
5d05ca6d
MS
6382003-08-14 Michael Snyder <msnyder@redhat.com>
639
640 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
641
37ba2569
JB
6422003-08-13 J. Brobecker <brobecker@gnat.com>
643
644 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
645 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
646 routine.
647
aed7f26a
MS
6482003-08-13 Michael Snyder <msnyder@redhat.com>
649
650 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
651 (frv_saved_pc_after_call): Use deprecated ftype.
652 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
653 (frv_remote_translate_xfer_address): Remove.
654 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
655
752d4ac1
JB
6562003-08-13 J. Brobecker <brobecker@gnat.com>
657
658 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
659 initialization after the common gdbarch initialization, not before.
660
1426ac1d
JB
6612003-08-13 J. Brobecker <brobecker@gnat.com>
662
663 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
664 (ADDR_BITS_REMOVE): Remove, redundant.
665
b6fbdd1d
JB
6662003-08-13 J. Brobecker <brobecker@gnat.com>
667
668 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
669 gdbarch method to clear the 2 low bits of text addresses.
670
44160db3
AC
6712003-08-12 Andrew Cagney <cagney@redhat.com>
672
673 * Makefile.in (dsrec.o): Update dependencies.
674 * dsrec.c: Include "gdb_assert.h".
675 (make_srec): Use snprintf instead of sprintf, use a literal format
676 string.
677
bcf7d3ca
AC
6782003-08-12 Andrew Cagney <cagney@redhat.com>
679
680 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
681 FRAME_OBSTACK_ZALLOC.
682
49ed40de
KB
6832003-08-12 Kevin Buettner <kevinb@redhat.com>
684
685 * i386-tdep.c (i386_gdbarch_init): Enable default support for
686 SSE registers.
687
b246147c
MK
6882003-08-10 Mark Kettenis <kettenis@gnu.org>
689
690 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
691 amd64fbsd_sc_reg_offset): Add extern declarations.
692 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
693 declarations.
694
d95fdc0d
BE
6952003-08-11 Ben Elliston <bje@wasabisystems.com>
696
697 * MAINTAINERS (write after approval): Update my mail address.
698
cf6a0e73
AC
6992003-08-10 Andrew Cagney <cagney@redhat.com>
700
701 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
702
f837910f
MK
7032003-08-10 Mark Kettenis <kettenis@gnu.org>
704
e2dbbd2d
MK
705 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
706 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
707 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
708 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
709 i386bsd_sc_reg_offset): Add extern declarations.
710 * i386obsd-nat.c: Include "i386-tdep.h"
711 (_initialize_i386obsd_nat): Remove extern declarations.
712 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
713 declarations.
714 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
715 declarations.
716
f837910f
MK
717 * i386-tdep.c (i386_register_to_value): Use get_frame_register
718 instead of frame_read_register.
719 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
720 instead of frame_read_register. Use I386_ESP_REGNUM instead of
721 SP_REGNUM.
722 (i386_frame_prev_register): Use frame_unwind_register_unsigned
723 instead of frame_unwind_unsigned_register. Use
724 I386_EFLAGS_REGISTER instead of PS_REGNUM.
725 (i386_get_longjmp_target): Use regcache_read_unsigned_register
726 instead of read_register. Use builtin_type_void_data_ptr instead
727 of builtin_type_void_func_ptr when extracting the address of the
728 jmp_buf.
729 (i386_extract_return_value, i386_store_return_value,
730 i386_pseudo_register_read, i386_pseudo_register_write): Use
731 register_size instead REGISTER_RAW_SIZE.
732
edcf254d
AC
7332003-08-10 Andrew Cagney <cagney@redhat.com>
734
735 * infcall.c (call_function_by_hand): Use xstrprintf instead of
736 sprintf. Make "name" constant.
737
26604a34
MK
7382003-08-10 Mark Kettenis <kettenis@gnu.org>
739
192285c6
MK
740 * i387-tdep.c (i387_register_to_value): Use get_frame_register
741 instead of frame_read_register.
f837910f
MK
742 (i387_print_float_info): Use get_frame_register and
743 get_frame_register_unsigned instead of frame_register_read.
192285c6 744
f0925262
MK
745 * i386fbsd-nat.c: Include "i386-tdep.h".
746 (child_resume): Make `eflags' an ULONGEST. Use
747 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
748 instead of register_read and register_write.
749
a144416f
MK
750 * i386bsd-nat.c (fetch_inferior_registers,
751 store_inferior_registers): Don't use && at the end of a line.
752 (_initialize_i386bsd_nat): Fix typo.
753
fec74868
MK
754 * frame.c (_initialize_frame): Add missing backslash.
755
87232496
MK
756 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
757 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
758 and supply_register instead of manipulating the register buffer
759 directly.
760
c9b9de0b
MK
761 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
762 * config/i386/nm-i386sol2.h
763 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
764
26604a34
MK
765 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
766 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
767 instructions that GCC likes to mingle into the prologue. Fixes
768 gdb/1253 and gdb/1255.
769
25d29d70
AC
7702003-08-09 Andrew Cagney <cagney@redhat.com>
771
772 Fix GDB PR cli/926.
773 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
774 * command.h (add_setshow_uinteger_cmd): Declare.
775 * frame.c (set_backtrace_cmd): New function.
776 (show_backtrace_cmd): New function.
777 * frame.c (_initialize_frame): Replace "set/show
778 backtrace-below-main" with "set/show backtrace past-main". Add
779 command "set/show backtrace limit".
780 (backtrace_past_main): Rename "backtrace_below_main".
781 (backtrace_limit): New variable.
782 (get_prev_frame): Update. Check the backtrace_limit.
783
9ebf4acf
AC
7842003-08-09 Andrew Cagney <cagney@redhat.com>
785
786 * defs.h (xstrprintf): Declare.
787 * utils.c (xstrprintf): New function.
788 * breakpoint.c (insert_breakpoints): Replace sprintf and
789 non-literal format strings, with xstrprintf and cleanups.
790 (delete_breakpoint,breakpoint_re_set): Ditto.
791 (commands_command, insert_breakpoints): Ditto.
792 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
793 (break_at_finish_command_1): Ditto.
794
3771659b
AC
7952003-08-09 Andrew Cagney <cagney@redhat.com>
796
797 * MAINTAINERS (language support): List Adam Fedor as Objective C
798 maintainer.
799
b4263afa
JB
8002003-08-08 J. Brobecker <brobecker@gnat.com>
801
802 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
803 are now multiarched.
804
d84defb1
JB
8052003-08-08 J. Brobecker <brobecker@gnat.com>
806
807 * config/pa/tm-hppa64.h: Remove lots of macros that are no
808 longer necessary now that hppa64 is partially multiarch'ed.
809
f786f615
AC
8102003-08-08 Andrew Cagney <cagney@redhat.com>
811
812 * interps.c (interp_set): Check for a NULL "old_interp".
813
c938e9b0
L
8142003-08-08 H.J. Lu <hongjiu.lu@intel.com>
815
816 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
817 (install-only): Support DESTDIR.
818 (uninstall): Likewise.
819 (install-gdbtk): Likewise.
820
9a146a11
EZ
8212003-08-08 Elena Zannoni <ezannoni@redhat.com>
822
823 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
824 contains something meaningful at all times.
825
826Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 827
62599e99 828 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 829
56296155
BC
830Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
831
62599e99 832 * MAINTAINERS (write after approval): Added self.
56296155 833
9710e734
AC
8342003-08-07 Andrew Cagney <cagney@redhat.com>
835
836 * inferior.h (AT_SYMBOL): Define.
837 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
838 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
839 * mips-tdep.c (mips_call_dummy_address): Delete function.
840 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
841 set call_dummy_address.
842
98b3ab73
AC
8432003-08-07 Andrew Cagney <cagney@redhat.com>
844
845 * language.c (op_error): Delete function.
846 (binop_type_check): Delete function.
847 * language.h (type_op_error, range_op_error): Delete macros.
848 (op_error): Delete declaration.
849
2fcf52f0
AC
8502003-08-07 Andrew Cagney <cagney@redhat.com>
851
852 * interps.h (INTERP_MI2, INTERP_MI3): Define.
853
abd4220e 8542003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 855
abd4220e 856 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 857 (x86_64_push_arguments): Skip the red zone.
abd4220e 858
9dd5f34f
AC
8592003-08-05 Andrew Cagney <cagney@redhat.com>
860
861 * reggroups.c (reggroup_next): Check for the final entry.
862
e5e78edc
AC
8632003-08-04 Andrew Cagney <cagney@redhat.com>
864
ab4e3d93
AC
865 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
866 * cli/cli-script.c (define_command): Call query directly, instead
867 of passing it a buffer.
868 * ocd.c (ocd_error): Pass error a constant format string.
869 * remote-mips.c (mips_error): Use fputs_filtered.
870
1062ca82
AC
871 * solib-svr4.c (_initialize_svr4_solib): Update
872 register_gdbarch_data call.
873 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
874
fcc1c85c
AC
875 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
876 (register_gdbarch_data): Delete "free" parameter. Update
877 comments.
878 * gdbarch.h, gdbarch.c: Re-generate.
879 * reggroups.c (_initialize_reggroup): Update.
880 * gnu-v3-abi.c (init_gnuv3_ops): Update.
881 * frame-base.c (_initialize_frame_base): Update.
882 * frame-unwind.c (_initialize_frame_unwind): Update.
883 * user-regs.c (_initialize_user_regs): Update.
884 * remote.c (_initialize_remote): Update.
885 * regcache.c (_initialize_regcache): Update.
886
116f06ea
AC
887 * regcache.c (xfree_regcache_descr): Delete function.
888 (_initialize_regcache): Update call to register_gdbarch_data.
889 (init_regcache_descr, init_legacy_regcache_descr): Use
890 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
891
e5e78edc
AC
892 * remote.c (free_remote_state): Delete function.
893 (_initialize_remote): Update register_gdbarch_data.
894 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
895 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
896
6c7d17ba
AC
8972003-08-04 Andrew Cagney <cagney@redhat.com>
898
899 * reggroups.c (struct reggroup_el): Define.
900 (struct reggroups): Delete field "nr_group". Replace array
901 "group" with a "first" to "last" linked list.
902 (reggroups_init): Update. Allocate using gdbarch's obstack.
903 (reggroups_free): Delete function.
904 (add_group): Update. Add "el" parameter.
905 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
906 (default_groups): Update.
907 (reggroup_next): Replace reggroups.
908 (reggroups_dump): Update.
909 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
910 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
911 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
912
89b7795b
DJ
9132003-08-04 Daniel Jacobowitz <drow@mvista.com>
914
915 * Makefile.in (tui-interp.o): Update dependencies.
916
306d9ac5
DC
9172003-08-04 David Carlton <carlton@kealia.com>
918
919 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
920 to internal_error call.
921 * source.c (forward_search_command): Add "%s" format argument.
922 (reverse_search_command): Ditto.
923 * top.c (quit_confirm): Ditto.
924 * cli/cli-setshow.c (do_setshow_command): Ditto.
925 * cp-valprint.c (cp_print_class_method): Replace
926 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
927 (cp_print_class_member): Ditto.
928 * event-top.c (command_line_handler): Ditto.
929 * linux-proc.c (linux_info_proc_cmd): Ditto.
930 * p-typeprint.c (pascal_type_print_base): Ditto.
931 * p-valprint.c (pascal_object_print_class_method): Ditto.
932 (pascal_object_print_class_member): Ditto.
933 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
934 * remote.c (remote_cisco_section_offsets): Ditto.
935 * top.c (command_line_input): Ditto.
936 * utils.c (vwarning,error_stream,quit): Ditto.
937 * valprint.c (print_floating,print_binary_chars)
938 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
939
57bfe177
AC
9402003-08-04 Andrew Cagney <cagney@redhat.com>
941
942 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
943
e546b999
AC
9442003-08-02 Andrew Cagney <cagney@redhat.com>
945
946 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
947 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
948 amd64fbsd-nat.c.
949
91092ee5
AC
9502003-08-02 Andrew Cagney <cagney@redhat.com>
951
952 * Makefile.in: Update all dependencies and definitions.
953
889f28e2
AF
9542003-08-02 Adam Fedor <fedor@gnu.org>
955
956 * linespec.c (is_objc_method_format): New function
957 (decode_line_1, locate_first_half): Use it.
958 Fixes PR objc/1298
959
880bc914
AC
9602003-08-01 Andrew Cagney <cagney@redhat.com>
961
962 * NEWS: Mention that m32r is multi-arch.
963 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
964 * configure.tgt: Recognize m32r-*-*.
965 * config/m32r/tm-m32r.h: Delete file.
966 * config/m32r/m32r.mt: New file.
967 * m32r-rom.c (m32r_upload_command): Use hostent only when
968 gethostname succeeds, in order to avoid a compilation
969 warning.
970 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
971 compiler warning.
972
19f59343
MS
9732003-08-01 Michael Snyder <msnyder@redhat.com>
974
975 * sh-tdep.c (sh_frame_align): New gdbarch method.
976 (sh_gdbarch_init): Set up frame_align method.
977
4e7d7511
MS
9782003-07-31 Michael Snyder <msnyder@redhat.com>
979
980 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
981 which is already covered by the new frames infrastructure.
982
63022984
AC
9832003-07-31 Andrew Cagney <cagney@redhat.com>
984
985 * user-regs.c (struct user_reg): Add "next" link.
986 (struct user_regs): Replace "user" with "first" and "last" links.
987 (append_user_reg): Add pre-allocated "reg" parameter.
988 (builtin_user_regs): Provide initial value for "last".
989 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
990 (user_regs_init): Allocate memory from the gdbarch obstack.
991 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
992 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
993 linked list.
994 (usernum_to_user_reg): New function.
995 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
996 (value_of_user_reg): Use usernum_to_user_reg.
997 (user_regs_free): Delete function.
998 (_initialize_user_regs): Update register_gdbarch_data call.
999
7cf6e574
DJ
10002003-07-31 Daniel Jacobowitz <drow@mvista.com>
1001
1002 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1003
c48a845b
MS
10042003-07-30 Michael Snyder <msnyder@redhat.com>
1005
4e7d7511 1006 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1007 * infcall.c (call_function_by_hand): Pass struct_addr to
1008 value_being_returned.
1009 * infcmd.c (print_return_value): Pass zero as struct_addr.
1010 * values.c (value_being_returned): If struct_addr is passed,
1011 use it instead of trying to recover it from the inferior.
1012
f0d8db19
KB
10132003-07-30 Kevin Buettner <kevinb@redhat.com>
1014
1015 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1016 the prologue analyzer won't need to attempt to extract the pc
1017 value from the woefully incomplete dummy frame.
1018 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1019 possible. Disable code which modifies the frame.
1020
e5c113a1
AC
10212003-07-28 Andrew Cagney <cagney@redhat.com>
1022
1023 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1024 to level 2.
1025 (annotate_breakpoints_table, annotate_record): Ditto.
1026 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1027 (annotate_field_name_end, annotate_field_value): Ditto.
1028 (annotate_field_end, annotate_frame_source_begin): Ditto.
1029 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1030 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1031 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1032 (annotate_frame_address_end, annotate_frame_address): Ditto.
1033 (annotate_frame_args, annotate_frame_end): Ditto.
1034 (annotate_frame_where, annotate_arg_begin): Ditto.
1035 (annotate_arg_name_end, annotate_arg_value): Ditto.
1036 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1037 (annotate_function_call, annotate_signal_name): Ditto.
1038 (annotate_signal_string, annotate_signal_name_end): Ditto.
1039 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1040 (annotate_value_begin, annotate_value_history_value): Ditto.
1041 (annotate_value_history_end, annotate_value_end): Ditto.
1042 (annotate_display_begin, annotate_display_number_end): Ditto.
1043 (annotate_display_format, annotate_display_expression): Ditto.
1044 (annotate_display_expression_end, annotate_display_value): Ditto.
1045 (annotate_display_end, annotate_array_section_begin): Ditto.
1046 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1047 (annotate_elt, annotate_array_section_end): Ditto.
1048
bb1db049
AC
10492003-07-28 Andrew Cagney <cagney@redhat.com>
1050
1051 * regcache.c (struct regcache_descr): Update comments on
1052 nr_raw_registers.
1053 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1054 sizeof_raw_register_valid_p.
1055 (init_regcache_descr): Set nr_raw_registers and
1056 sizeof_raw_register_valid_p before calling
1057 init_legacy_regcache_descr.
1058
20e6603c
AC
10592003-07-28 Andrew Cagney <cagney@redhat.com>
1060
1061 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1062 MOD NUM_REGS.
1063
db742940
DJ
10642003-07-28 Daniel Jacobowitz <drow@mvista.com>
1065
1066 * thread.c (info_threads_command): Use get_selected_frame ().
1067 Check that there is at least one non-sentinel frame.
1068
ce7f4371
SC
10692003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1070
1071 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1072 (m68hc11_pop_frame): Remove.
1073 (m68hc11_frame_saved_pc): Remove.
1074 (m68hc11_frame_chain): Remove.
1075 (m68hc11_frame_init_saved_regs): Remove.
1076 (m68hc11_init_extra_frame_info): Remove.
1077 (m68hc11_store_struct_return): Remove.
1078 (m68hc11_saved_pc_after_call): Remove.
1079
1ea653ae
SC
10802003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1081
1082 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1083 frame unwind information.
1084 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1085 and adapted for frame unwinding.
1086 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1087 (m68hc11_unwind_pc): New function.
1088 (m68hc11_frame_unwind_cache): New function to analyze frames.
1089 (m68hc11_frame_this_id): New function to create new frame struct.
1090 (m68hc11_frame_prev_register): New function to unwind a register from
1091 the frame.
1092 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1093 (m68hc11_frame_p): New function for the above.
1094 (m68hc11_frame_base_address): New function to return fp of frame.
1095 (m68hc11_frame_args_address): Update for frame.
1096 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1097 (m68hc11_unwind_sp): New function.
1098 (m68hc11_unwind_dummy_id): New function.
1099 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1100 calls.
1101
c8a7f6ac
SC
11022003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1103
1104 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1105 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1106 when we are beyond the current pc.
1107
3dc990bf
SC
11082003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1109
1110 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1111 from m68hc11_push_arguments.
1112 (m68hc11_push_arguments): Remove.
1113 (m68hc11_push_return_address): Remove.
1114 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1115 handlers; remove deprecated_extra_stack_alignment_needed.
1116
222e5d1d
AC
11172003-07-27 Andrew Cagney <cagney@redhat.com>
1118
1119 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1120 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1121 REAL_PC and not the pointer.
1122 * hppa-hpux-tdep.c: Include frame.h
1123
a7e9a47e
AC
11242003-07-27 Andrew Cagney <cagney@redhat.com>
1125
1126 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1127 GDB_MULTI_ACH_PARTIAL.
1128
7e3dd49e
AC
11292003-07-27 Andrew Cagney <cagney@redhat.com>
1130
1131 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1132 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1133 operator at start and not end of line.
1134 (decode_prologue): Ditto.
1135 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1136 frame_unwind_register_unsigned instead of
1137 frame_unwind_unsigned_register.
1138 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1139 read_register.
1140 (m32r_push_dummy_call): Use register_size instead of
1141 REGISTER_RAW_SIZE.
1142 (m32r_frame_sniffer): Replace m32r_frame_p.
1143 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1144 * m32r-rom.c (report_transfer_performance): Delete extern
1145 declaration.
1146 (m32r_load, m32r_upload_command): Use print_transfer_performance
1147 instead of report_transfer_performance.
1148 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1149 / add_show_from_set.
1150
0880807f
AC
11512003-07-26 Andrew Cagney <cagney@redhat.com>
1152
1153 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1154 store_return_value and extract_struct_value_address.
1155
64ae9269
DJ
11562003-07-26 Daniel Jacobowitz <drow@mvista.com>
1157
1158 PR c++/1267
1159 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1160 NULL, default to the section containing PC.
1161
e286caf2
SC
11622003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1163
1164 * NEWS: Mention "regs" deprecated for m68hc11 too.
1165
1166 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1167 (m68hc11_print_register): New function to print out one register.
1168 (m68hc11_print_registers_info): New function to print registers.
1169 (show_regs): Deprecate and use the above.
1170 (m68hc11_gdbarch_init): Install the print_registers_info.
1171
705b278b
JJ
11722003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1173
1174 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1175 that we have a SIGTRAP before returning non-zero.
1176
63cd4198
EZ
11772003-07-23 Michal Ludvig <mludvig@suse.cz>
1178 Elena Zannoni <ezannoni@redhat.com>
1179
1180 * linespec.c (decode_line_2): Avoid crash if
1181 find_function_start_sal() returns empty record.
1182
6926787d
AS
11832003-07-23 Andreas Schwab <schwab@suse.de>
1184
1185 * ia64-tdep.c (ia64_print_insn): New function.
1186 (ia64_gdbarch_init): Set print_insn to it.
1187 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1188 deprecated_tm_print_insn_info.
1189
708cc1b6
MS
11902003-07-22 Michael Snyder <msnyder@redhat.com>
1191
1192 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1193 handle 8-bit returns (long long).
1194 (h8300h_extract_return_value): Ditto.
1195 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1196
aebd7893
AC
11972003-07-22 Andrew Cagney <cagney@redhat.com>
1198
1199 * gdbarch.c Include "gdb_obstack.h".
1200 (struct gdbarch): Add an "obstack".
1201 (alloc_gdbarch_data): Allocate the gdbarch data using
1202 GDBARCH_OBSTACK_CALLOC.
1203 (free_gdbarch_data): Delete function.
1204 (gdbarch_obstack_zalloc): New function.
1205 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1206 Assert that the architecture is not initialized.
1207 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1208 vector from the obstack.
1209 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1210 architecture obstack.
1211 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1212 (set_gdbarch_data): Assert that the data is not initialized.
1213 (struct gdbarch_data): Delete member "free".
1214 (register_gdbarch_data): Do not initialize "free".
1215 * gdbarch.h, gdbarch.c: Re-generate.
1216
153721e6
AC
12172003-07-22 Andrew Cagney <cagney@redhat.com>
1218
1219 * configure.in (build_warnings): Add -Wformat-nonliteral.
1220 * configure: Re-generate.
1221
c193f044 12222003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1223
1224 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1225
c3228f12
EZ
12262003-07-22 Elena Zannoni <ezannoni@redhat.com>
1227
1228 * findvar.c (read_var_value): Remove case for thread local storage
1229 variables. It is now entirely handled by the dwarf2 location
1230 expression code.
1231 * printcmd.c (address_info): Ditto.
1232 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1233 enumeration value.
1234 (struct symbol): Remove objfile field, which was used by
1235 LOC_THREAD_LOCAL_STATIC only.
1236 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1237 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1238 usage of objfile pointer.
1239 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1240 thread local variables.
1241 Add include of objfiles.h.
1242 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1243 storage variables.
1244 * Makefile.in (dwarf2loc.o): Update dependencies.
1245
aef9bcd2
AC
12462003-07-22 Andrew Cagney <cagney@redhat.com>
1247
1248 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1249 get_frame_base.
1250 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1251 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1252 (struct value): Add opaque declaration.
1253 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1254
d95a8903
AC
12552003-07-21 Andrew Cagney <cagney@redhat.com>
1256
1257 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1258 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1259
4db73d49
SC
12602003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1261
1262 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1263 regcache_cooked_read_unsigned instead of read_register.
1264 (m68hc11_saved_pc_after_call): Likewise.
1265 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1266 instead of write_register.
1267 (m68hc11_register_type): New function.
1268 (m68hc11_register_virtual_type): Remove.
1269 (m68hc11_store_return_value): Convert to use the regcache.
1270 (m68hc11_extract_struct_value_address): Likewise.
1271 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1272 m68hc11_register_type; undeprecate store_return_value and
1273 extract_struct_value_address.
1274
ef2b8fcd
SC
12752003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1276
1277 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1278 and translate to use regcache.
1279 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1280
625b0b97
AC
12812003-07-18 Andrew Cagney <cagney@redhat.com>
1282
1283 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1284 * gdbarch.h, gdbarch.c: Re-generate.
1285 * i386-tdep.c (i386_gdbarch_init): Do not set
1286 DWARF2_BUILD_FRAME_INFO.
1287 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1288 unconditionally.
1289 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1290 DWARF2_BUILD_FRAME_INFO.
1291
22b0d388
AC
12922003-07-18 Andrew Cagney <cagney@redhat.com>
1293
1294 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1295 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1296
1ce5d6dd
AC
12972003-07-18 Andrew Cagney <cagney@redhat.com>
1298
1299 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1300 frame_unwind_address_in_block, instead of frame_pc_unwind.
1301 (dwarf2_frame_cache): Ditto.
1302
e6e5e94c
AC
13032003-07-18 Andrew Cagney <cagney@redhat.com>
1304
1305 * user-regs.h (struct gdbarch): Declare opaque.
1306 * ui-out.h (struct ui_file): Declare opaque.
1307 * dwarf2-frame.h (struct frame_info): Declare opaque.
1308
5483d879
KW
13092003-07-18 Kris Warkentin <kewarken@qnx.com>
1310
1311 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1312 #include "...".
1313 (procfs_meminfo): Change strerror to safe_strerror.
1314 (procfs_can_run): Remove K&R badness.
1315
278a7cf7
MS
13162003-07-17 Michael Snyder <msnyder@redhat.com>
1317
1318 * remote-sim.c: Comment typo fix.
1319
606e3b82
AC
13202003-07-17 Andrew Cagney <cagney@redhat.com>
1321
1322 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1323 configure.
1324 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1325 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1326 GDB_MULTI_ARCH_PARTIAL.
1327
c43af07c
EZ
13282003-07-17 Elena Zannoni <ezannoni@redhat.com>
1329
1330 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1331 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1332 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1333
3b85b0f1
TR
13342003-07-16 Theodore A. Roth <troth@openavr.org>
1335
1336 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1337 found.
1338 (avr_frame_unwind_cache): Don't unwind FP for main.
1339 Update a comment.
1340 Save the computed prev_sp.
1341 (avr_saved_regs_unwinder): Remove function.
1342 (avr_frame_prev_register): Use PC unwind logic from
1343 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1344
336d1bba
AC
13452003-07-16 Andrew Cagney <cagney@redhat.com>
1346
1347 * frame-base.h (frame_base_p_ftype): Delete definition.
1348 (frame_base_append_predicate): Delete declaration.
1349 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1350 (frame_unwind_append_predicate): Delete declaration.
1351 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1352 (append_predicate): Delete parameter "p".
1353 (frame_unwind_append_predicate): Delete function.
1354 (frame_unwind_append_sniffer): Update call to append_predicate.
1355 (frame_unwind_free): Delete function.
1356 (_initialize_frame_unwind): Pass NULL as "free" to
1357 register_gdbarch_data.
1358 (frame_unwind_init): Append the dummy_frame_sniffer.
1359 (frame_unwind_find_by_frame): Simplify.
1360 * frame-base.c (struct frame_base_table): Delete field "p".
1361 (append_predicate): Delete parameter "p".
1362 (frame_base_append_predicate): Delete function.
1363 (frame_base_append_sniffer): Update call to append_predicate.
1364 (frame_base_free): Delete function.
1365 (frame_base_find_by_frame): Simplify.
1366 (_initialize_frame_base): Pass NULL as "free" to
1367 register_gdbarch_data.
1368 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1369 (x86_64_sigtramp_frame_sniffer): Replace
1370 "x86_64_sigtramp_frame_p".
1371 (x86_64_init_abi): Set the frame unwind sniffers.
1372 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1373 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1374 (m68k_gdbarch_init): Set the frame unwind sniffers.
1375 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1376 "i386_sigtramp_frame_p".
1377 (i386_frame_sniffer): Replace "i386_frame_p".
1378 (i386_gdbarch_init): Set the frame unwind sniffers.
1379 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1380 (avr_gdbarch_init): Set the frame unwind sniffers.
1381 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1382 "alpha_sigtramp_frame_p"
1383 (alpha_heuristic_frame_sniffer): Replace
1384 "alpha_heuristic_frame_p".
1385 (alpha_gdbarch_init): Set the frame unwind sniffers.
1386 (alpha_dwarf2_init_abi): Ditto.
1387 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1388 "alpha_debug_frame_p".
1389 (alpha_mdebug_frame_base_sniffer): Replace
1390 "alpha_mdebug_frame_base_p".
1391 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1392 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1393 (d10v_gdbarch_init): Set the frame unwind sniffer.
1394 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1395 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1396 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1397 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1398 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1399 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1400
48db5a3c
CV
14012003-07-16 Michael Snyder <msnyder@redhat.com>
1402
1403 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1404 should go thru sh_dsp_register_sim_regno, else the dsp regs
1405 will not get the right values.
1406
14072003-07-16 Corinna Vinschen <vinschen@redhat.com>
1408
1409 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1410 deprecated_store_floating by call to store_typed_floating.
1411 (sh_sh4_register_convert_to_raw): Substitute call to
1412 deprecated_extract_floating by call to extract_typed_floating.
1413
14142003-07-16 Corinna Vinschen <vinschen@redhat.com>
1415
1416 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1417
14182003-07-16 Corinna Vinschen <vinschen@redhat.com>
1419
1420 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1421 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1422 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1423 as possible.
1424 (do_pseudo_register): Remove.
1425 (sh_push_dummy_code): New function.
1426 (sh64_store_struct_return): Rename from sh_store_struct_return.
1427 Only called for sh64 now.
1428 (sh_extract_struct_value_address): Regcache'ify.
1429 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1430 and accomodate new tasks.
1431 (sh64_push_return_address): Rename from sh_push_return_address.
1432 Only called for sh64 now.
1433 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1434 Regcache'ify.
1435 (sh3e_sh4_extract_return_value): Regcache'ify.
1436 (sh_default_store_return_value): Ditto.
1437 (sh3e_sh4_store_return_value): Ditto.
1438 (sh_default_register_byte): Remove.
1439 (sh_sh4_register_byte): Remove.
1440 (sh_default_register_raw_size): Remove.
1441 (sh_sh4_register_raw_size): Remove.
1442 (sh_register_virtual_size): Remove.
1443 (sh_sh3e_register_virtual_type): Remove.
1444 (sh_sh3e_register_type): New function.
1445 (sh_sh4_register_virtual_type): Remove.
1446 (sh_sh4_register_type): New function.
1447 (sh_default_register_virtual_type): Remove.
1448 (sh_default_register_type): New function.
1449 (do_fv_register_info): Add parameters to accomodate call from
1450 sh_print_registers_info.
1451 (do_dr_register_info): Ditto.
1452 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1453 Add parameters to accomodate call from sh_print_registers_info.
1454 (sh_do_fp_register): Ditto.
1455 (sh64_do_pseudo_register): Call do_dr_register_info,
1456 do_fv_register_info and sh_do_fp_register with default parameters.
1457 (sh_do_register): Add parameters to accomodate call from
1458 sh_print_registers_info.
1459 (sh_print_register): Ditto.
1460 (sh_print_registers_info): Rename from sh_do_registers_info.
1461 Add parameters to be used as gdbarch_print_registers_info
1462 implementation. Accomodate removed do_pseudo_register function
1463 pointer.
1464 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1465 function pointer. Call sh_print_register with default parameters.
1466 (sh64_do_registers_info): Call sh_print_registers_info instead of
1467 sh_do_registers_info.
1468 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1469 detection of deprecated vs. non-deprecated functionality.
1470 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1471 function pointer assignments by direct function calls.
1472
e8a89fe2
AC
14732003-07-15 Andrew Cagney <cagney@redhat.com>
1474
1475 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1476 (frame_register_unwind, create_new_frame): Ditto.
1477 (legacy_get_prev_frame, get_frame_type): Ditto.
1478 (get_frame_base_address): Use frame_base_find_by_frame.
1479 (get_frame_locals_address): Use frame_base_find_by_frame.
1480 (get_frame_args_address): Use frame_base_find_by_frame.
1481 * frame-base.h (frame_base_sniffer_ftype): Declare.
1482 (frame_base_append_sniffer): Declare.
1483 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1484 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1485 (frame_base_append_sniffer): New function.
1486 (frame_base_append_predicate): Add a NULL sniffer.
1487 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1488 (struct frame_base_table): Add "sniffer".
1489 (frame_base_free): Free the "sniffer" table.
1490 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1491 (frame_unwind_append_sniffer): Declare.
1492 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1493 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1494 (struct frame_unwind_table): Add "sniffer", delete "middle".
1495 (append_predicate): Add "sniffer" parameter, append the sniffer.
1496 (frame_unwind_init): Update append_predicate call.
1497 (frame_unwind_append_sniffer): New function.
1498 (frame_unwind_append_predicate): Update append_predicate call.
1499 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1500
0714963c
AC
15012003-07-15 Andrew Cagney <cagney@redhat.com>
1502
1503 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1504 before code inhibiting repeated unwind attempts. Add to
1505 commentary on that test's problems.
1506 * blockframe.c (inside_main_func): Look for "main" in the minimal
1507 symbol table.
1508 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1509 identical.
1510
d9170e22
AC
15112003-07-15 Andrew Cagney <cagney@redhat.com>
1512
1513 * complaints.c (struct explanation): Define.
1514 (struct complaints): Change type of "explanation" to "struct
1515 explanation".
1516 (symfile_explanations): Convert to a "struct explanation" table.
1517 (vcomplaint): Update.
1518
eba29c8c
ML
15192003-07-15 Michal Ludvig <mludvig@suse.cz>
1520
1521 * x86-64-linux-nat.c (regmap): Removed.
1522 (supply_gregset, fill_gregset): Call
1523 x86_64_linux_(fill,supply)_gregset functions.
1524 * x86-64-linux-tdep.c (USER_*): New defines.
1525 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1526 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1527 New functions.
1528 (fetch_core_registers): Ditto.
1529 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1530 * x86-64-linux-tdep.h: New file.
1531 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1532 and core-regset.o.
1533 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1534
68cc0bfb
MK
15352003-07-13 Mark Kettenis <kettenis@gnu.org>
1536
88a115f7
MK
1537 * x86-64-tdep.c (x86_64_store_return_value): Use
1538 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 1539
68cc0bfb
MK
1540 * configure.host: Add x86_64-*-freebsd*.
1541 * configure.tgt: Add x86_64-*-freebsd*.
1542 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1543 * amd64fbsd-nat.c: New file.
1544 * amd64fbsd-tdep.c: New file.
1545 * config/i386/nm-fbsd64.h: New file.
1546 * config/i386/fbsd64.mh: New file.
1547 * config/i386/fbsd64.mt: New file.
1548
138e7be5
MK
15492003-07-11 Mark Kettenis <kettenis@gnu.org>
1550
1551 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1552 `sc_regs_offset' and `sc_fpregs_offset'.
1553 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1554 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1555 (alpha_sigtramp_register_address): Rewrite to use new members of
1556 `struct gdbarch_tdep'.
1557 (alpha_gdbarch_init): Initialize new members of struct
1558 gdbarch_tdep'.
1559 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1560 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1561 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1562 (alphafbsd_pc_in_sigtramp): Implement.
1563 (alphafbsd_sigtramp_offset): New function.
1564 (alphafbsd_sigcontext_addr): New function.
1565 (alphafbsd_init_abi): Initialize signal trampoline related members
1566 of `struct gdbarch_tdep'.
1567 (_initialize_alphafbsd_tdep): Add prototype.
1568
95303a68
TR
15692003-07-11 Theodore A. Roth <troth@openavr.org>
1570
ba292e4c
TR
1571 * Makefile.in (install-only): Quote sed expression when generating
1572 transformed_name.
95303a68 1573
6896c0c7
RH
15742003-07-11 Richard Henderson <rth@redhat.com>
1575
1576 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1577 * dwarf2-frame.c: Include complaints.h.
1578 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1579 variable initialization; return NULL on error.
1580 (decode_frame_entry): New.
1581
8edd5d01
AC
15822003-07-11 Andrew Cagney <cagney@redhat.com>
1583
c4a09524
AC
1584 * frame.h (frame_address_in_block): Delete declaration.
1585 * blockframe.c (frame_address_in_block): Delete function.
1586 (get_frame_block): Use get_frame_address_in_block.
1587 (block_innermost_frame): Ditto.
1588 * stack.c (print_frame, backtrace_command_1): Ditto.
1589
8edd5d01
AC
1590 * frame.h (get_frame_address_in_block): Declare.
1591 (frame_unwind_address_in_block): Declare.
1592 * frame.c (frame_unwind_address_in_block): New function.
1593 (get_frame_address_in_block): New function.
1594
f7968451
AC
15952003-07-10 Andrew Cagney <cagney@redhat.com>
1596
1597 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1598 pre-default. Note: re-generate has no effect.
1599
ae99b398
AC
16002003-07-10 Andrew Cagney <cagney@redhat.com>
1601
1602 * gdbarch.sh: When a variable, but not a function, compare against
1603 0. Fix problem in previous patch.
1604 * gdbarch.c: Re-generate.
1605
956ac328
AC
16062003-07-10 Andrew Cagney <cagney@redhat.com>
1607
1608 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1609 functions against NULL, not 0.
1610 * gdbarch.c: Re-generate.
1611
287c3240
FF
16122003-07-10 Fred Fish <fnf@ninemoons.com>
1613
1614 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1615 null string instead of a null pointer.
1616 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1617
32f63c4b
MS
16182003-07-09 Michael Snyder <msnyder@redhat.com>
1619
1620 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1621
402ecd56
MK
16222003-07-09 Mark Kettenis <kettenis@gnu.org>
1623
1624 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1625 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1626 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1627 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1628 * x86-64-tdep.c: ... from here.
1629
c481dac7
AS
16302003-07-09 Andreas Schwab <schwab@suse.de>
1631
1632 * m68k-tdep.h (enum struct_return): Define.
1633 (struct gdbarch_tdep): Add struct_return.
1634 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1635 bytes are padded to the right, not to the left. Pass struct value
1636 address in register %a1, not on stack.
1637 (m68k_use_struct_convention): New function.
1638 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1639 struct_return in tdep to pcc_struct_return.
1640 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1641 reg_struct_return.
1642
64176fa3
JB
16432003-07-09 Joel Brobecker <brobecker@gnat.com>
1644
1645 * somread.c (som_symfile_offsets): Fix compilation error.
1646
96a4ee76
AC
16472003-07-09 Andrew Cagney <cagney@redhat.com>
1648
1649 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1650 Add comments about the checks.
1651
1517c6d1
AC
16522003-07-08 Andrew Cagney <cagney@redhat.com>
1653
1654 * Makefile.in: Make dependency section headers consistent.
1655 (config_h): Move to $BUILD headers section.
1656 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1657 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1658 (ada-exp.tab.c): Move to YACC/LEX section.
1659 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1660 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1661
dc5dd1eb
KW
16622003-07-08 Kris Warkentin <kewarken@qnx.com>
1663
1664 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
1665 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1666 of strerror with safe_strerror, use ISO C function definitions,
1667 and replace instances of sprintf with snprintf.
dc5dd1eb 1668
612dde91
AC
16692003-07-07 Andrew Cagney <cagney@redhat.com>
1670
1671 * frame.c (get_prev_frame): Enable check for identical frames.
1672 Update comments. Update error messages.
1673
492c11d3
JB
16742003-07-07 Joel Brobecker <brobecker@gnat.com>
1675
1676 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1677
376a5a49
JB
16782003-07-07 Joel Brobecker <brobecker@gnat.com>
1679
1680 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1681 sort_symtab_syms, no longer necessary.
1682
22b4a9ad
JB
16832003-07-07 Joel Brobecker <brobecker@gnat.com>
1684
1685 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1686
5bbcb741
JB
16872003-07-07 Joel Brobecker <brobecker@gnat.com>
1688
1689 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1690 (mips_register_byte): Likewise.
1691
c139e7d9
DJ
16922003-07-07 Daniel Jacobowitz <drow@mvista.com>
1693
1694 * Makefile.in (sparc_tdep_h): New.
1695 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1696 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1697 * sparc-linux-nat.c: Include "sparc-tdep.h".
1698 * sparc-nat.c: Likewise.
1699 * sparc-tdep.c: Likewise.
1700 * sparc64nbsd-nat.c: Likewise.
1701 * sparcnbsd-nat.c: Likewise.
1702 * sparcnbsd-tdep.c: Likewise.
1703 * sparc-tdep.h: New file.
1704 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1705 and sparc_npc_regnum.
1706
fd8f87c5
DJ
17072003-07-07 Daniel Jacobowitz <drow@mvista.com>
1708
1709 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1710 (mips_linux_cannot_store_register): List supported instead of
1711 unsupported registers.
1712
13adf674
DJ
17132003-07-07 Daniel Jacobowitz <drow@mvista.com>
1714
1715 * disasm.c (dump_insns): Separate instructions from addresses.
1716
8de307e0
AS
17172003-07-07 Andreas Schwab <schwab@suse.de>
1718
1719 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1720 dependencies.
1721 * m68k-tdep.c (NUM_FREGS): Delete.
1722 (SIG_PC_FP_OFFSET): Delete.
1723 (TARGET_M68K): Delete.
1724 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1725 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1726 P_MOVEL_SP, P_MOVEML_SP): Define.
1727 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1728 P_TRAP): Delete.
1729 (m68k_register_raw_size): Delete.
1730 (m68k_register_virtual_size): Delete.
1731 (m68k_register_type): Renamed from m68k_register_virtual_type and
1732 add gdbarch argument.
1733 (m68k_store_struct_return): Delete.
1734 (m68k_deprecated_extract_return_value): Delete.
1735 (m68k_deprecated_extract_struct_value_address): Delete.
1736 (m68k_frame_chain): Delete.
1737 (m68k_frame_saved_pc): Delete.
1738 (m68k_fix_call_dummy): Delete.
1739 (m68k_push_dummy_frame): Delete.
1740 (m68k_pop_frame): Delete.
1741 (m68k_extract_return_value): New function.
1742 (m68k_store_return_value): Rewrite using regcache.
1743 (m68k_extract_struct_value_address): Rewrite using regcache.
1744 (m68k_push_dummy_call): New function.
1745 (struct m68k_frame_cache): Define.
1746 (m68k_alloc_frame_cache): New function.
1747 (m68k_analyze_frame_setup): New function.
1748 (m68k_analyze_register_saves): New function.
1749 (m68k_analyze_prologue): New function.
1750 (m68k_skip_prologue): Rewrite using above functions.
1751 (m68k_unwind_pc): New function.
1752 (m68k_frame_cache): New function.
1753 (m68k_frame_this_id): New function.
1754 (m68k_frame_prev_register): New function.
1755 (m68k_frame_unwind): New variable.
1756 (m68k_frame_p): New function.
1757 (m68k_sigtramp_frame_cache): New function.
1758 (m68k_sigtramp_frame_this_id): New function.
1759 (m68k_sigtramp_frame_prev_register): New function.
1760 (m68k_sigtramp_frame_unwind): New variable.
1761 (m68k_sigtramp_frame_p): New function.
1762 (m68k_frame_base_address): New function.
1763 (m68k_frame_base): New function.
1764 (m68k_unwind_dummy_id): New function.
1765 (fill_gregset): Use regcache_collect.
1766 (fill_fpregset): Likewise.
1767 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1768 defined.
1769 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1770 deprecated_init_frame_pc, deprecated_store_struct_return,
1771 deprecated_extract_return_value, deprecated_store_return_value,
1772 deprecated_frame_chain, deprecated_frame_saved_pc,
1773 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1774 deprecated_register_virtual_size,
1775 deprecated_max_register_raw_size,
1776 deprecated_max_register_virtual_size,
1777 deprecated_register_virtual_type, deprecated_register_size,
1778 deprecated_register_byte, deprecated_register_bytes,
1779 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1780 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1781 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1782 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1783 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1784 deprecated_push_dummy_frame, deprecated_pop_frame,
1785 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1786 only if SYSCALL_TRAP is defined. Set extract_return_value,
1787 store_return_value, extract_struct_value_address, register_type,
1788 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1789 predicates.
1790 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1791 M68K_MAX_REGISTER_SIZE): Define.
1792 (struct m68k_sigtramp_info): Define.
1793 (struct gdbarch_tdep): Add get_sigtramp_info.
1794 * m68klinux-nat.c (fetch_register): Use register_size instead of
1795 REGISTER_RAW_SIZE. Don't put assignment in if.
1796 (store_register): Likewise.
1797 (fetch_inferior_registers): Likewise.
1798 (store_inferior_registers): Likewise.
1799 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1800 (m68k_linux_frame_saved_pc): Delete.
1801 (m68k_linux_sigcontext_reg_offset,
1802 m68k_linux_ucontext_reg_offset): Define.
1803 (m68k_linux_get_sigtramp_info): New function.
1804 (m68k_linux_extract_return_value): Rewrite using regcache.
1805 (m68k_linux_store_return_value): Likewise.
1806 (m68k_linux_extract_struct_value_address): Likewise.
1807 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1808 Don't set deprecated_frame_saved_pc,
1809 deprecated_extract_return_value, deprecated_store_return_value,
1810 deprecated_extract_struct_value_address. Set
1811 extract_return_value, store_return_value,
1812 extract_struct_value_address.
1813
eb8bc282
AC
18142003-07-07 Andrew Cagney <cagney@redhat.com>
1815
1816 * expprint.c: Include "user-regs.h" instead of "frame.h".
1817 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1818 frame_map_regnum_to_name.
1819 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1820 (frame_map_name_to_regnum): Simplify, call
1821 user_reg_map_name_to_regnum.
1822 (frame_map_regnum_to_name): Simplify, call
1823 user_reg_map_regnum_to_name.
1824 (frame_register_unwind): Update.
1825 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1826 (_initialize_frame_reg): Call user_reg_add_builtin.
1827 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1828 (value_of_register): Use value_of_user_reg.
1829 * eval.c (evaluate_subexp_standard): Update.
1830 * parse.c (write_dollar_variable): Update.
1831 * d10v-tdep.c (d10v_print_registers_info): Update.
1832 * infcmd.c (registers_info): Update.
1833 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1834 (builtin_regs_h): Delete macro.
1835 (user_regs_h): Define.
1836 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1837 (builtin-regs.o): Delete target.
1838 (user-regs.o): Specify dependencies.
1839 (expprint.o): Update dependencies.
1840 (findvar.o): Update dependencies.
1841 (frame.o): Update dependencies.
1842 (std-regs.o): Update dependencies.
1843
9f476a01
CF
18442003-07-06 Christopher Faylor <cgf@redhat.com>
1845
1846 * win32-nat.c (solib_symbols_add): Use one variable for all section
1847 address stuff. Pass variable rather than address of variable to
1848 safe_symbol_file_add.
1849
a731b831
AS
18502003-07-06 Andreas Schwab <schwab@suse.de>
1851
1852 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1853
9f83329d
JB
18542003-07-04 Joel Brobecker <brobecker@gnat.com>
1855
1856 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1857
27e28cc5
KW
18582003-07-04 Kris Warkentin <kewarken@qnx.com>
1859
1860 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1861
18622003-07-04 Kris Warkentin <kewarken@qnx.com>
1863
1864 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1865 * config/i386/nto.mh: New file.
1866 * config/i386/nm-nto.h: New file.
1867 * configure.host: Add i[3456]86-*-nto*.
1868
100f2e98
JB
18692003-07-03 Joel Brobecker <brobecker@gnat.com>
1870
1871 * remote-vx.c (vx_add_symbols): Fix compilation error.
1872
e23457df
AC
18732003-07-03 Andrew Cagney <cagney@redhat.com>
1874
1875 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1876 * gdbarch.h, gdbarch.c: Re-generate.
1877 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1878 (legacy_register_name): Declare.
1879 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1880 (REGISTER_NAME): Define.
1881 * sparc-tdep.c (legacy_register_name): New function.
1882 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1883 (REGISTER_NAME): Define.
1884 (hppa64_register_name): Declare.
1885 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1886 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1887 (hppa64_register_name): New function.
1888 (hppa_register_name): New function.
1889 * arch-utils.c (legacy_register_name): Delete.
1890 * arch-utils.h (legacy_register_name): Delete.
1891
38caaeec
DJ
18922003-07-03 Daniel Jacobowitz <drow@mvista.com>
1893
1894 * cli/cli-interp.c (cli_interpreter_resume): Update the
1895 cli_uiout's stream to gdb_stdout.
1896
dadd712e
AC
18972003-07-03 Andrew Cagney <cagney@redhat.com>
1898
1899 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1900 predicate.
1901 * gdbarch.h, gdbarch.c: Re-generate.
1902 * regcache.c (init_regcache_descr): Use legacy code when either
1903 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1904
c7f1390e
DJ
19052003-07-02 Daniel Jacobowitz <drow@mvista.com>
1906
1907 * NEWS: Move "set logging" entry into GDB 6.0 section.
1908
4bc8c588
JB
19092003-07-02 Jim Blandy <jimb@redhat.com>
1910
a9dd42f1
JB
1911 * s390-tdep.c (struct frame_extra_info): new member:
1912 'stack_bought_valid'.
1913 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1914 initialize fextra_info->stack_bought.
1915 (s390_frameless_function_invocation): Don't trust the value of
1916 fextra_info_ptr->stack_bought unless
1917 fextra_info->stack_bought_valid is set.
1918
4bc8c588
JB
1919 New S390 prologue analyzer.
1920 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1921 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1922 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1923 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1924 compute_x_addr, s390_on_stack, s390_store,
1925 s390_get_signal_frame_info): New functions.
1926 (S390_NUM_SPILL_SLOTS): New macro.
1927 (s390_get_frame_info): Rewritten.
1928 (is_arg_reg): Deleted.
1929
1930 Break out the decoding of S/390 instructions into separate
1931 functions, to make it more legible, and easier to check
1932 against the spec.
1933 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1934 is_rx, is_rxe): New functions.
1935 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1936 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1937 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1938 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1939 enums for opcode values. (Is this an improvement?)
1940
fd13a04a
AC
19412003-07-02 Andrew Cagney <cagney@redhat.com>
1942
1943 * i386-tdep.c: Revert change committed as part of trad-frame code
1944 below.
1945
3f8091c1
DJ
19462003-07-02 Daniel Jacobowitz <drow@mvista.com>
1947
1948 * breakpoint.c (insert_catchpoint): Make static.
1949
8dd5115e
AS
19502003-07-02 Andreas Schwab <schwab@suse.de>
1951
1952 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1953 former ia64_push_arguments and ia64_push_return_address, and use
1954 regcache functions instead of read/write_register.
1955 (ia64_gdbarch_init): Set push_dummy_call instead of
1956 deprecated_push_arguments and deprecated_push_return_address.
1957
a2229c23
AJ
19582003-07-01 Andreas Jaeger <aj@suse.de>
1959
1960 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1961 before the call.
1962 Set %rax only to number of SSE registers used.
1963
3b3850e8
AC
19642003-07-01 Andrew Cagney <cagney@redhat.com>
1965
1966 * trad-frame.h: Update comments, a -1 .addr is reserved.
1967 (trad_frame_value_p, trad_frame_addr_p): Declare.
1968 (trad_frame_reg_p): Declare.
1969 (trad_frame_set_value): Rename trad_frame_register_value.
1970 (trad_frame_set_unknown): Declare.
1971 * trad-frame.c (trad_frame_realreg_p): New function.
1972 (trad_frame_addr_p, trad_frame_value_p): New function.
1973 (trad_frame_set_unknown): New function.
1974 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1975 (trad_frame_prev_register): Use trad_frame_realreg_p,
1976 trad_frame_addr_p and trad_frame_value_p.
1977 (trad_frame_set_value): Rename trad_frame_register_value.
1978 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1979 and trad_frame_set_value.
a2229c23 1980
4d819d0e
JB
19812003-06-30 Jim Blandy <jimb@redhat.com>
1982
1983 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1984 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1985 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1986 for 16 registers, and then 32 more bytes.
1987 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1988 New macros.
1989 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1990 Move up in the file, since it's now used by is_simple_arg.
1991 (is_simple_arg): Don't assume registers are four bytes long.
1992 Exclude all double arguments. Extended floats are not simple
1993 args.
1994 (is_power_of_two): New function.
1995 (pass_by_copy_ref): Call is_power_of_two, and check that the
1996 length fits in a register, rather than listing all the acceptable
1997 sizes. Extended floats are not passed by reference.
1998 (s390_push_arguments): Don't assume registers are four bytes long.
1999 Reserve an argument register to point to the buffer for structures
2000 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2001 S390_STACK_FRAME_OVERHEAD.
2002
1ad828f1
AS
20032003-06-30 Andreas Schwab <schwab@suse.de>
2004
2005 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2006 format error message.
2007
39b00981
JB
20082003-06-30 Joel Brobecker <brobecker@gnat.com>
2009
2010 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2011
b2a7f303
DC
20122003-06-30 David Carlton <carlton@kealia.com>
2013
2014 Band-aid for PR c++/1245.
2015 * Makefile.in (cp-support.o): Depend on complaints_h.
2016 * cp-support.c: Include complaints.h. Add declaration for
2017 find_last_component.
2018 (cp_find_first_component): Separate code into
2019 cp_find_first_component_aux.
2020 (cp_find_first_component_aux): Call demangled_name_complaint.
2021 (demangled_name_complaint): New.
2022
a257b5bb
AC
20232003-06-30 Andrew Cagney <cagney@redhat.com>
2024
2025 * remote.c (remote_write_bytes): Explicitly compute and then use
2026 the payload size. Update comments to reflect. Fixes problem of
2027 GDB not sending small packets as found by Fred Fish.
2028
0a2cfde4
AC
20292003-06-30 Andrew Cagney <cagney@redhat.com>
2030
2031 * remote.c (remote_async_wait): Fix -Wformat problem.
2032
3fcb8548
AC
20332003-06-29 Andrew Cagney <cagney@redhat.com>
2034
2035 * remote.c (remote_wait): Call error, and not warning, when the
2036 packet is corrupt.
2037 (remote_async_wait): Ditto.
2038
9f9970a3
DJ
20392003-06-29 Daniel Jacobowitz <drow@mvista.com>
2040
2041 * sparc-tdep.c (sparc_y_regnum): Make external again.
2042
83a8ccca
DJ
20432003-06-29 Daniel Jacobowitz <drow@mvista.com>
2044
2045 * cli/cli-logging.c (pop_output_files): Add void to function
2046 definition.
2047
d2cf594a
AC
20482003-06-29 Andrew Cagney <cagney@redhat.com>
2049
2050 * frame.c (frame_register_unwind): Use unsigned char when dumping
2051 the buffer contents.
2052
0fac0b41
DJ
20532003-06-28 Daniel Jacobowitz <drow@mvista.com>
2054
2055 * cli/cli-logging.c: New file.
2056 * cli-out.c (struct ui_out_data): Add original_stream.
2057 (cli_redirect): New function.
2058 (cli_ui_out_impl): Add cli_redirect.
2059 (cli_out_new): Initialize original_stream.
2060 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2061 (uo_redirect, ui_out_redirect): New.
2062 * ui-out.h (struct ui_out_impl): Add redirect member.
2063 (redirect_ftype): New.
2064 (ui_out_redirect): Add prototype.
2065 * Makefile.in: Add rules for cli-logging.c.
2066 * NEWS: Mention "set logging".
2067
88a07d7c
EZ
20682003-06-27 Elena Zannoni <ezannoni@redhat.com>
2069
2070 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2071
4eb58876
AC
20722003-06-27 Andrew Cagney <cagney@redhat.com>
2073
2074 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2075 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2076 * avr-tdep.c (avr_call_dummy_address): Delete function.
2077 (avr_gdbarch_init): Do not set call_dummy_address.
2078
1549f619
EZ
20792003-06-27 Elena Zannoni <ezannoni@redhat.com>
2080
2081 * symfile.c (syms_from_objfile): Move variables to inner block.
2082 Move the checks for the non-mainline case a bit earlier to avoid
2083 doing some useless computations.
2084
3cb3398d
EZ
20852003-06-27 Elena Zannoni <ezannoni@redhat.com>
2086
2087 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2088
3799ccc6
EZ
20892003-06-26 Elena Zannoni <ezannoni@redhat.com>
2090
2091 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2092 sections.
2093
ce1f6491
MC
20942003-06-26 Michael Chastain <mec@shout.net>
2095
2096 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2097 gdb/testsuite/gdb.c++/pr-1210.exp.
2098
d958dfd0
AC
20992003-06-26 Andrew Cagney <cagney@redhat.com>
2100
2101 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2102 altivec_expression.h and altivec_registers.h.
2103
d31431ed
AC
21042003-06-26 Andrew Cagney <cagney@redhat.com>
2105
2106 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2107 info->mach when MIPS16. Patch suggested by Fred Fish.
2108
714b1282
AC
21092003-06-26 Andrew Cagney <cagney@redhat.com>
2110
2111 * utils.c (internal_vproblem): Print the problem to a reason
2112 buffer and then pass to query. Make the msg variable more local.
2113
42efa47a
AC
21142003-06-26 Andrew Cagney <cagney@redhat.com>
2115
2116 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2117 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2118 * gdbarch.h, gdbarch.c: Re-generate.
2119 * frame-base.c (default_frame_args_address): Update. Use
2120 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2121 not available.
2122 (default_frame_locals_address): Ditto for
2123 DEPRECATED_FRAME_LOCALS_ADDRESS.
2124 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2125 (vax_frame_num_args): Update.
2126 (vax_gdbarch_init): Update.
2127 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2128 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2129 * mcore-tdep.c (mcore_gdbarch_init): Update.
2130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2131 * ia64-tdep.c (ia64_gdbarch_init): Update.
2132 * symtab.h (address_class): Update comments.
2133 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2134 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2135 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2136 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2137 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2138 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2139 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2140 * alpha-mdebug-tdep.c: Update.
2141 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2142
8ffd9b1b
AJ
21432003-06-26 Andreas Jaeger <aj@suse.de>
2144
2145 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2146 of SSE registers so that varargs functions work. Rework handling
2147 of passing arguments on the stack.
2148 (x86_64_store_return_value): Return double and float values in SSE
2149 register.
2150
e8ac10a6
MC
21512003-06-24 Michael Chastain <mec@shout.net>
2152
2153 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2154 the "constructor breakpoints ignored" bug.
2155
986af8e6
DC
21562003-06-25 David Carlton <carlton@kealia.com>
2157
2158 * MAINTAINERS: Update e-mail address.
2159
d64558a5
JB
21602003-06-24 Jim Blandy <jimb@redhat.com>
2161
e538d2d7
JB
2162 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2163
02631ec0
JB
2164 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2165 function.
2166 (ppc_linux_init_abi): Register it as the
2167 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2168
e716d87a
JB
2169 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2170 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2171 method.
2172
d64558a5
JB
2173 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2174 (ppc64_standard_linkage_target): Use it.
2175
449a5da4
AC
21762003-06-23 Andrew Cagney <cagney@redhat.com>
2177
2178 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2179 for 0 "int0" and 4 "int32" sized registers.
2180 * gdbtypes.c (builtin_type_int0): Define.
2181 (build_gdbtypes): Initialize builtin_type_int0.
2182 * gdbtypes.h (builtin_type_int0): Declare.
2183
b2a02dda
SC
21842003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2185
2186 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2187 as characters are unsigned.
2188
fba3138e
DJ
21892003-06-22 Daniel Jacobowitz <drow@mvista.com>
2190
2191 PR gdb/1179
2192 * dwarfread.c (struct_type): Skip static fields without crashing.
2193
f6c8180b
AC
21942003-06-22 Andrew Cagney <cagney@redhat.com>
2195
2196 GDB 6.0 branch created.
f2c06f52
AC
2197 * README: Update.
2198 * PROBLEMS: Update. Empty.
2199 * NEWS: Update.
f6c8180b 2200
ae822768
DJ
22012003-06-22 Daniel Jacobowitz <drow@mvista.com>
2202
2203 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2204 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2205
261de166
AC
22062003-06-22 Andrew Cagney <cagney@redhat.com>
2207
2208 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2209 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2210 Velikov.
2211
30e94205
DJ
22122003-06-22 Daniel Jacobowitz <drow@mvista.com>
2213
2214 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2215 compilers.
2216
9e14d721
DJ
22172003-06-21 Daniel Jacobowitz <drow@mvista.com>
2218
2219 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2220 argument of val_print.
2221 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2222 to the address argument of baseclass_offset or target_read_memory.
2223 Do add it to the argument of cp_print_value_fields.
2224
a4b8ebc8
AC
22252003-06-21 Andrew Cagney <cagney@redhat.com>
2226
2227 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2228 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2229 instead of 0..NUM_REGS.
2230 (mips_register_reggroup_p): New function.
2231 (mips_pseudo_register_write): New function.
2232 (mips_pseudo_register_read): New function.
2233 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2234 based on the register's type.
2235 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2236 cooked.
2237 (mips_get_saved_register): Simplify. Assert that REGNO is a
2238 pseudo / cooked.
2239 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2240 (mips_register_type): Replace mips_register_virtual_type. Map
2241 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2242 when available.
2243 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2244 that the register is cooked / virtual.
2245 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2246 Only get the extra info when needed.
2247 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2248 (mips32_heuristic_proc_desc): Fetch the cooked register.
2249 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2250 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2251 (mips_print_register): Use gdbarch_register_type, instead of
2252 REGISTER_VIRTUAL_TYPE.
2253 (print_gp_register_row): Use gdbarch_register_type, instead of
2254 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2255 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2256 Print the pseudo / cooked registers.
2257 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2258 Print the pseudo / cooked registers.
2259 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2260 REG_NUM is pseudo / cooked.
2261 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2262 (mips_n32n64_xfer_return_value): Ditto.
2263 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2264 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2265 (mips_register_sim_regno): New function.
2266 (mips_gdbarch_init): Set deprecated_register_byte,
2267 register_group_p, pseudo_register_write, pseudo_register_read,
2268 register_sim_regno, and num_pseudo_regs. Set register_type,
2269 instead of register_virtual_type.
2270 * Makefile.in (mips-tdep.o): Update dependencies.
2271 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2272 REGISTER_VIRTUAL_TYPE.
2273 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2274 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2275 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2276 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2277 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2278
325ed089
DJ
22792003-06-21 Daniel Jacobowitz <drow@mvista.com>
2280
2281 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2282 * cli/cli-cmds.c: Include "gdb_vfork.h".
2283 (shell_escape): Use vfork.
2284
f0e7d0e8
AC
22852003-06-21 Andrew Cagney <cagney@redhat.com>
2286
c57bb9fa
AC
2287 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2288 32 bit floating-point register saves.
2289
6e51443a
AC
2290 * frame.h (deprecated_unwind_get_saved_register): Delete.
2291 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2292 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2293 and deprecated_get_next_frame_hack instead of
2294 deprecated_unwind_get_saved_register.
2295
ed183c7c
AC
2296 * mips-tdep.c (mips_dump_tdep): Do not print
2297 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2298
f0e7d0e8
AC
2299 * frame.c (get_frame_register): New function.
2300 (frame_unwind_register_signed): New function.
2301 (get_frame_register_signed): New function.
2302 (frame_unwind_register_unsigned): New function.
2303 (get_frame_register_unsigned): New function.
2304 * frame.h: Add comments on naming schema.
2305 (get_frame_register, frame_unwind_register_signed): Declare.
2306 (get_frame_register_signed, get_frame_register_signed): Declare.
2307 (frame_unwind_register_unsigned): Declare.
2308 (get_frame_register_unsigned): Declare.
2309
2224d941
TR
23102003-06-20 Theodore A. Roth <troth@openavr.org>
2311
2312 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2313
8619218d
TR
23142003-06-20 Theodore A. Roth <troth@openavr.org>
2315
2316 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2317 (avr_read_sp): Ditto.
2318
0b1b50c0
DJ
23192003-06-20 Daniel Jacobowitz <drow@mvista.com>
2320
2321 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2322 * config/arm/nm-linux.h: Likewise.
2323 * config/arm/tm-linux.h: Likewise.
2324 * config/ia64/nm-linux.h: Likewise.
2325 * config/ia64/tm-ia64.h: Likewise.
2326 * config/s390/tm-linux.h: Likewise.
2327 * config/s390/tm-s390.h: Likewise.
2328 * s390-nat.c: Likewise.
2329 * s390-tdep.c: Likewise.
2330
2331 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2332 * config/ia64/linux.mt: Likewise.
2333 * config/m68k/linux.mh: Likewise.
2334 * config/mips/linux.mt: Likewise.
2335 * config/powerpc/linux.mh: Likewise.
2336 * config/sh/linux.mt: Likewise.
2337
c8c18e65
KW
23382003-06-19 Kris Warkentin <kewarken@qnx.com>
2339
2340 * solib.c (solib_open): Change tests for whether to search
2341 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2342 comments.
2343
dcccef2e
TR
23442003-06-19 Theodore A. Roth <troth@openavr.org>
2345
2346 * avr-tdep.c (avr_frame_address): Delete function.
2347 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2348 set_gdbarch_frame_args_address.
2349
5861a190
AC
23502003-06-19 Andrew Cagney <cagney@redhat.com>
2351
2352 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2353 (REGISTER_CONVERT_FROM_TYPE): Delete.
2354 (mips_register_convert_to_type): Delete declaration.
2355 (mips_register_convert_from_type): Delete declaration.
2356 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2357 kernel/.
2358
0274a8ce
MS
23592003-06-19 Michael Snyder <msnyder@redhat.com>
2360
2361 * linux-nat.h: New file.
2362 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2363 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2364 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2365 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2366 (linux_make_note_section): Iterate over lwps instead of threads.
2367 (linux_do_thread_registers): Use lwp instead of merged pid.
2368 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2369 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2370 Add dependency on linux_nat_h.
2371
adf5f719
TR
23722003-06-19 Theodore A. Roth <troth@openavr.org>
2373
2374 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2375
6766a268
DJ
23762003-06-19 Daniel Jacobowitz <drow@mvista.com>
2377
2378 * varobj.c (get_type, get_target_type): Use check_typedef.
2379
1171114a
DJ
23802003-06-19 Daniel Jacobowitz <drow@mvista.com>
2381
2382 * breakpoint.c (insert_catchpoint): Call internal_error.
2383
adcf68a2
TR
23842003-06-19 Theodore A. Roth <troth@openavr.org>
2385
2386 * avr-tdep.c (avr_push_dummy_code): Delete function.
2387 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2388
ea67f13b
DJ
23892003-06-19 Daniel Jacobowitz <drow@mvista.com>
2390
2391 * arch-utils.c (default_prepare_to_proceed): Remove.
2392 (generic_prepare_to_proceed): Remove.
2393 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2394 (generic_prepare_to_proceed): Remove prototype.
2395 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2396 * gdbarch.c: Regenerate.
2397 * gdbarch.h: Regenerate.
2398 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2399 * hppah-nat.c (hppa_switched_threads): Remove.
2400 * infrun.c (prepare_to_proceed): New static function, copied from
2401 generic_prepare_to_proceed. Remove select_it argument.
2402 (proceed): Call prepare_to_proceed.
2403 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2404 variables.
2405 (ptrace_wait): Don't set the removed variables.
2406 (hppa_switched_threads): Remove.
2407 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2408 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2409 (lin_lwp_prepare_to_proceed): Remove prototype.
2410 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2411 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2412
4add8633
TR
24132003-06-18 Theodore A. Roth <troth@openavr.org>
2414
2415 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2416 trad-frame.h.
2417 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2418 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2419 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2420 (AVR_PROLOGUE_*): Enumerate prologue types.
2421 (struct frame_extra_info): Remove.
2422 (struct avr_unwind_cache): Define.
2423 (avr_write_sp): Delete function.
2424 (avr_read_fp): Ditto.
2425 (avr_init_extra_frame_info): Ditto.
2426 (avr_pop_frame): Ditto.
2427 (avr_frame_saved_pc): Ditto.
2428 (avr_saved_pc_after_call): Ditto.
2429 (avr_push_return_address): Ditto.
2430 (avr_frame_chain): Ditto.
2431 (avr_store_struct_return): Ditto.
2432 (avr_push_arguments): Ditto.
2433 (avr_scan_prologue): Update comments. Changed to set up the info for
2434 cache unwinding. Now returns end of prologue PC.
2435 (avr_skip_prologue): Better handling of functions lacking a prologue
2436 by using avr_scan_prologue.
2437 (avr_scan_arg_moves): New function.
2438 (avr_saved_regs_unwinder): Ditto.
2439 (avr_frame_unwind_cache): Ditto.
2440 (avr_unwind_pc): Ditto.
2441 (avr_frame_this_id): Ditto.
2442 (avr_frame_prev_register): Ditto.
2443 (avr_frame_p): Ditto.
2444 (avr_frame_base_address ): Ditto.
2445 (avr_unwind_dummy_id): Ditto.
2446 (avr_push_dummy_code): Ditto.
2447 (push_stack_item): Ditto.
2448 (pop_stack_item): Ditto.
2449 (avr_push_dummy_call): Ditto.
2450 (struct stack_item): Define.
2451 (avr_frame_unwind): Declare structure.
2452 (avr_frame_base): Ditto.
2453 (avr_gdbarch_init): Remove calls to
2454 set_gdbarch_deprecated_init_frame_pc,
2455 set_gdbarch_deprecated_target_read_fp,
2456 set_gdbarch_deprecated_dummy_write_sp,
2457 set_gdbarch_deprecated_fp_regnum,
2458 set_gdbarch_deprecated_push_arguments,
2459 set_gdbarch_deprecated_push_return_address,
2460 set_gdbarch_deprecated_pop_frame,
2461 set_gdbarch_deprecated_store_struct_return,
2462 set_gdbarch_deprecated_frame_init_saved_regs,
2463 set_gdbarch_deprecated_init_extra_frame_info,
2464 set_gdbarch_deprecated_frame_chain,
2465 set_gdbarch_deprecated_frame_saved_pc,
2466 set_gdbarch_deprecated_saved_pc_after_call.
2467 Add calls to set_gdbarch_push_dummy_call,
2468 set_gdbarch_push_dummy_code,
2469 frame_unwind_append_predicate,
2470 frame_base_set_default,
2471 set_gdbarch_unwind_dummy_id,
2472 set_gdbarch_unwind_pc.
2473 Wrap a long line.
2474
7be04a68
MS
24752003-06-18 Corinna Vinschen <vinschen@redhat.com>
2476
2477 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2478 registers for H8/300S.
2479 (h8300_print_registers_info): Ditto.
8ffd9b1b 2480 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 2481
ae087d01
DJ
24822003-06-18 Daniel Jacobowitz <drow@mvista.com>
2483
2484 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2485 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2486 (lin_lwp_wait): Likewise. Update comments.
2487 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2488 (pull_pid_from_list, linux_record_stopped_pid): New.
2489
07d8f827
SC
24902003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2491
2492 * ada-lang.c (scan_discrim_bound): Name first argument.
2493 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2494 declared by ALL_BLOCK_SYMBOLS.
2495
7cb47b14
SC
24962003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2497
2498 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2499 ("regcache.h"): Include it.
2500 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2501
6ad8ae5c
DJ
25022003-06-17 Daniel Jacobowitz <drow@mvista.com>
2503
2504 * NEWS: Mention gdbserver detach change and "disconnect" command.
2505 * infcmd.c (disconnect_command): New function.
2506 (_initialize_infcmd): Add ``disconnect'' command.
2507 * remote.c (remote_async_detach): Delete.
2508 (remote_detach): Merge remote_async_detach.
2509 (remote_disconnect): New.
2510 (init_remote_ops): Set to_disconnect.
2511 (init_remote_cisco_ops): Likewise.
2512 (init_remote_async_ops): Likewise. Use remote_detach.
2513 * target.c (cleanup_target): Default to_disconnect.
2514 (update_current_target): Inherit to_disconnect.
2515 (target_disconnect, debug_to_disconnect): New functions.
2516 (setup_target_debug): Set to_disconnect.
2517 * target.h (struct target_ops): Add to_disconnect.
2518 (target_disconnect): Add prototype.
2519
687595f9
DJ
25202003-06-17 Daniel Jacobowitz <drow@mvista.com>
2521
2522 * breakpoint.c (insert_catchpoint): New function.
2523 (insert_breakpoints): Use catch_exceptions to call
2524 insert_catchpoint. Disable catchpoints if they fail to insert.
2525
29239a8f
DJ
25262003-06-17 Daniel Jacobowitz <drow@mvista.com>
2527
2528 * symfile.c (reread_symbols): Clear sym_private.
2529
2cdf3c63
AC
25302003-06-17 Andrew Cagney <cagney@redhat.com>
2531
2532 * trad-frame.h (struct frame_info): Add opaque declaration.
2533 * remote-fileio.h (struct cmd_list_element): Add opaque
2534 declaration.
2535 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2536 comments.
2537
cf0e1e0d
DJ
25382003-06-17 Daniel Jacobowitz <drow@mvista.com>
2539
2540 * remote.c (remote_prepare_to_store): Replace call to
2541 deprecated_read_register_bytes with multiple regcache_raw_read
2542 calls.
2543
192cdb19
KW
25442003-06-17 Kris Warkentin <kewarken@qnx.com>
2545
2546 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2547 (nto_find_and_open_solib): Likewise.
2548 (nto_init_solib_absolute_prefix): Likewise.
2549 (_initialize_nto_tdep): Fix indentation.
2550
89929b45
KW
25512003-06-17 Kris Warkentin <kewarken@qnx.com>
2552
2553 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2554
46019f27
KW
25552003-06-17 Kris Warkentin <kewarken@qnx.com>
2556
2557 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2558
1a38736e
JB
25592003-06-17 Jim Blandy <jimb@redhat.com>
2560
2561 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2562
3605c34a
TR
25632003-06-16 Theodore A. Roth <troth@openavr.org>
2564
2565 * avr-tdep.c (avr_extract_return_value): New function.
2566 (avr_gdbarch_init): Set extract_return_value method.
2567
870b3035
AC
25682003-06-16 Andrew Cagney <cagney@redhat.com>
2569
2570 * frame.h (deprecated_get_next_frame_hack): Declare.
2571 * frame.c (legacy_saved_regs_prev_register): Only require
2572 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2573 there are always saved regs.
2574 (deprecated_generic_get_saved_register): Do not require
2575 DEPRECATED_FRAME_INIT_SAVED_REGS.
2576 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2577 use frame ID unwind instead.
2578 (deprecated_get_next_frame_hack): New function.
2579
63d47a7d
CV
25802003-06-16 Corinna Vinschen <vinschen@redhat.com>
2581
2582 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2583 (h8300_push_dummy_call): ...this function. Some minor optimization.
2584 (h8300_push_return_address): Remove.
2585 (h8300_gdbarch_init): Remove calls to
2586 set_gdbarch_deprecated_dummy_write_sp,
2587 set_gdbarch_deprecated_push_arguments and
2588 set_gdbarch_deprecated_push_return_address.
2589 Add call to set_gdbarch_push_dummy_call.
2590
4bb1dc5e
CV
25912003-06-16 Corinna Vinschen <vinschen@redhat.com>
2592
2593 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2594 (E_PSEUDO_EXR_REGNUM): Ditto.
2595 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 2596 registers into safe registers.
4bb1dc5e
CV
2597 (h8300_skip_prologue): Check for stm instruction to push registers
2598 used for register variables onto stack.
2599 (gdb_print_insn_h8300): Remove.
2600 (h8300_examine_prologue): Add a comment.
2601 (h8300_register_name): Take pseudo registers into account.
2602 (h8300s_register_name): Ditto.
2603 (h8300sx_register_name): Ditto.
2604 (h8300_print_register): Ditto.
2605 (h8300_print_registers_info): Define "nice" printing order.
2606 (h8300_saved_pc_after_call): Take pseudo registers into account.
2607 (h8300_register_type): Ditto. Return type used for remote connection
2608 when requesting real CCR or EXR register, return actual type when
2609 requesting pseudo CCR or EXR.
2610 (h8300_pseudo_register_read): New function.
2611 (h8300_pseudo_register_write): Ditto.
2612 (h8300_dbg_reg_to_regnum): Ditto.
2613 (h8300s_dbg_reg_to_regnum): Ditto.
2614 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2615 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2616 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2617 set_gdbarch_print_insn architecture dependent.
2618 Call set_gdbarch_pseudo_register_read and
2619 set_gdbarch_pseudo_register_write.
2620 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2621
a59fe496
AC
26222003-06-16 Andrew Cagney <cagney@redhat.com>
2623
2624 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2625 * gdbarch.h, gdbarch.c: Re-generate.
2626 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2627 * s390-tdep.c (s390_gdbarch_init): Update.
2628 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2629 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2630 * mips-tdep.c (mips_gdbarch_init): Update.
2631 * mcore-tdep.c (mcore_gdbarch_init): Update.
2632 * cris-tdep.c (cris_gdbarch_init): Update.
2633 * infcall.c (call_function_by_hand): Update.
2634 * ia64-tdep.c (ia64_push_arguments): Update comment.
2635 * frame.c (legacy_get_prev_frame): Do not assume
2636 SAVE_DUMMY_FRAME_TOS_P.
2637 * dummy-frame.c (find_dummy_frame): Update comment.
2638
6f4e5a41
AC
26392003-06-16 Andrew Cagney <cagney@redhat.com>
2640
2641 * regcache.c (do_cooked_read): Do not use register_valid_p.
2642
72fab697
TR
26432003-06-15 Theodore A. Roth <troth@openavr.org>
2644
2645 * avr-tdep.c (avr_register_type): Remove a blank line.
2646 (avr_scan_prologue): Correct some comments.
2647
e3d8b004
TR
26482003-06-15 Theodore A. Roth <troth@openavr.org>
2649
2650 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2651 prologue types.
8ffd9b1b 2652 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
2653 option.
2654 Add code to scan -mcall-prologues for mega devices.
2655
866b76ea
TR
26562003-06-15 Theodore A. Roth <troth@openavr.org>
2657
2658 * avr-tdep.c (avr_register_byte): Delete function.
2659 (avr_register_raw_size): Delete function.
2660 (avr_register_virtual_size): Delete function.
2661 (avr_register_virtual_type): Delete function.
2662 (avr_register_type): New function.
2663 (avr_address_to_pointer): Remove unused code.
2664 (avr_read_fp): Need to read FP as two separate bytes due to change to
2665 avr_register_type() usage.
2666 (avr_gdbarch_init): Don't set deprecated_register_size.
2667 Don't set deprecated_register_bytes.
2668 Don't set deprecated_register_byte.
2669 Don't set deprecated_register_raw_size.
2670 Don't set deprecated_max_register_raw_size.
2671 Don't set deprecated_register_virtual_size.
2672 Don't set deprecated_max_register_virtual_size.
2673 Don't set deprecated_register_virtual_type.
2674 Set register_type method.
2675
3993f6b1
DJ
26762003-06-15 Daniel Jacobowitz <drow@mvista.com>
2677
2678 * Makefile.in (linux-nat.o): Add rule.
2679 * linux-nat.c: New file.
2680 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2681 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2682 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2683 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2684 * config/arm/linux.mh (NATDEPFILES): Likewise.
2685 * config/i386/linux.mh (NATDEPFILES): Likewise.
2686 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2687 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2688 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2689 * config/mips/linux.mh (NATDEPFILES): Likewise.
2690 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2691 * config/s390/s390.mh (NATDEPFILES): Likewise.
2692 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2693
786a90bb
MK
26942003-06-15 Mark Kettenis <kettenis@gnu.org>
2695
2696 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2697 replace out-of-date comment.
2698
3bd3f01e
AC
26992003-06-15 Andrew Cagney <cagney@redhat.com>
2700
2701 * rdi-share/host.h (Fail): Change to a varargs function.
2702 * remote-rdi.c (Fail): Update.
8ffd9b1b 2703
de5b9bb9
MK
27042003-06-15 Mark Kettenis <kettenis@gnu.org>
2705
2706 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2707 (i386_convert_register_p, i386_register_to_value,
2708 i386_register_from_value): Handle types longer than 8 bytes.
2709
d532c08f
MK
27102003-06-15 Mark Kettenis <kettenis@gnu.org>
2711
2712 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2713 Move floating-point code to new function in i387-tdep.c.
2714 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2715 New functions containing code moved here from i386-tdep.c.
2716 * i387-tdep.h: Add opaque declaration for `struct type'.
2717 (i387_register_to_value, i387_value_to_register): New prototypes.
2718 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2719 (x86_64_init_abi): Set convert_register_p, register_to_value and
2720 value_to_register here.
8ffd9b1b 2721
42c466d7
AC
27222003-06-14 Andrew Cagney <cagney@redhat.com>
2723
2724 * mips-tdep.c (mips_register_to_value): Make static.
2725 (mips_value_to_register): Make static.
2726 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2727 * ia64-tdep.c (ia64_register_raw_size): Make static.
2728 (ia64_register_virtual_size): Make static.
2729 (ia64_register_byte): Make static.
2730 * i387-tdep.c: Include "i387-tdep.h".
2731 (print_387_control_word): Delete function.
2732 (print_387_status_word): Delete function.
2733 (print_387_status_bits): Delete function.
2734 (print_387_control_bits): Delete function.
2735 * Makefile.in (i387-tdep.o): Update dependencies.
2736 * rdi-share/host.h (Fail): Declare.
2737 * remote-rdi.c (Fail): Update to match declaration.
2738
2a9cda49
AC
27392003-06-14 Andrew Cagney <cagney@redhat.com>
2740
2741 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2742 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2743 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2744 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2745 * README: Delete reference to remote-array.
2746 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2747 (remote-array.o): Delete target.
2748 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2749 * remote-array.c: Delete file.
2750
ff2e87ac
AC
27512003-06-14 Andrew Cagney <cagney@redhat.com>
2752 Mark Kettenis <kettenis@gnu.org>
2753
2754 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2755 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2756 parameter with "frame".
2757 * gdbarch.h, gdbarch.c: Re-generate.
2758 * frame.h (put_frame_register): Declare.
2759 * frame.c (put_frame_register): New function.
2760 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2761 (legacy_register_to_value): Rewrite, use "frame" to get the
2762 register value.
2763 (legacy_value_to_register): Rewrite, use "frame" to find the
2764 register's location before storing.
2765 * arch-utils.h (legacy_convert_register_p): Update.
2766 (legacy_register_to_value, legacy_value_to_register): Update.
2767 * findvar.c (value_from_register): Rewrite, eliminate use of
2768 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2769 "frame" to REGISTER_TO_VALUE.
2770 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2771 lval_reg_frame_relative + lval_register branch of the switch. Do
2772 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2773 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2774 I386_EDI_REGNUM): New defines.
2775 (i386_next_regnum, i386_convert_register_p,
2776 i386_register_to_value, i386_value_to_register): New functions.
2777 (i386_register_convertible, i386_register_convert_to_virtual,
2778 i386_convert_to_raw): Remove functions.
2779 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2780 value_to_register instead of register_convertible,
2781 register_convert_to_virtual and register_convert_to_raw.
2782 * mips-tdep.c (mips_convert_register_p): New function.
2783 (mips_value_to_register): Replace mips_register_convert_from_type.
2784 (mips_register_to_value): Replace mips_register_convert_to_type.
2785 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2786 register_to_value.
2787 * alpha-tdep.c (alpha_convert_register_p): Update.
2788 (alpha_value_to_register): Update, store the register.
2789 (alpha_register_to_value): Update, fetch the register.
2790
98be1e77
TR
27912003-06-14 Theodore A. Roth <troth@openavr.org>
2792
2793 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2794 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2795 Don't set deprecated_call_dummy_words.
2796 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2797 Don't set remote_translate_xfer_address.
2798 (avr_io_reg_read_command): Remove commented out debug printf.
2799 Wrap a long line.
2800
57bc6122
TR
28012003-06-14 Theodore A. Roth <troth@openavr.org>
2802
2803 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2804 causes gdb to seg fault.
2805
eb01fc62
DJ
28062003-06-14 Daniel Jacobowitz <drow@mvista.com>
2807
2808 * sparc-nat.c (fetch_inferior_registers): Correct
2809 a reference to "registers".
2810
3b3e6bee
DJ
28112003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2812
2813 * Makefile.in (exc_request_U_h): Define
2814 (exc_request_S_h): Likewise.
2815 (msg_reply_S_h): Likewise.
2816 (msg_U_h): Likewise.
2817 (notify_S_h): Likewise.
2818 (process_reply_S_h): Likewise.
2819 (gnu-nat.o): Depend on gdb_obstack_h
2820 * gnu-nat.c: Include "gdb_obstack.h".
2821
b8de8283
AC
28222003-06-13 Andrew Cagney <cagney@redhat.com>
2823
2824 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2825 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 2826
f3be58bc
AC
28272003-06-13 Andrew Cagney <cagney@redhat.com>
2828
2829 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2830 when deprecated REGISTER macros can be deleted.
2831 * gdbarch.h, gdbarch.c: Re-generate.
2832
4c0122c8
JB
28332003-06-13 Jim Blandy <jimb@redhat.com>
2834
2835 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2836 Linux entry point symbols for _dl_debug_state, too.
2837
3e210248
AC
28382003-06-13 Andrew Cagney <cagney@redhat.com>
2839
2840 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2841 available, do not use the FP register, and always save the TOS.
2842 * dummy-frame.c (dummy_frame_this_id): Do not assert
2843 SAVE_DUMMY_FRAME_TOS.
2844 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2845 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2846 (i386_push_dummy_call): Add 8 to the returned SP.
2847 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2848 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2849 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2850 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2851 (x86_64_push_dummy_call): Return "sp + 16".
2852 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2853 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2854 save_dummy_frame_tos.
2855
0b65af49
JB
28562003-06-13 Jim Blandy <jimb@redhat.com>
2857
2858 * frv-tdep.c (frv_use_struct_convention): Delete static
2859 declaration for function deleted in my change of 2003-06-12.
2860
4ea2465e
TR
28612003-06-13 Theodore A. Roth <troth@openavr.org>
2862
2863 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2864 (avr_pointer_to_address): Shift code addrs left 1 bit.
2865 (avr_convert_from_func_ptr_addr): Delete function since operation is
2866 better handled by avr_address_to_pointer and avr_pointer_to_address.
2867 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2868
1581182a
MK
28692003-06-13 Mark Kettenis <kettenis@gnu.org>
2870
2871 From Kelley Cook <kelleycook@wideopenwest.com>:
2872 * configure.host: Accept i[34567]86 variants.
2873 * configure.tgt: Likewise.
2874 * nlm/configure.in: Likewise.
2875 * nlm/configure: Regenerated.
2876
7aa1783e
RE
28772003-06-13 Richard Earnshaw <rearnsha@arm.com>
2878
2879 * arm-tdep.c (solib-svr4.h): Dont' include it.
2880 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2881 * arm-linux-tdep.c: ... here. Make static.
2882 (arm_linux_init_abi): Register it.
2883 (solib-svr4.h): Include it.
2884 * Makefile.in: Update dependencies.
2885 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2886 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2887
0261a0d0
CV
28882003-06-13 Corinna Vinschen <vinschen@redhat.com>
2889
2890 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2891 indicate registers used for return values.
2892 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2893 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2894 members.
2895 (h8300_init_extra_frame_info): Ditto.
2896 (h8300_frame_locals_address): Removed.
2897 (h8300_frame_args_address): Removed.
2898 (h8300_extract_return_value): Use new regcache structure. Only care
2899 for 16 bit CPUs.
2900 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2901 (h8300_store_return_value): Use new regcache structure. Only care
2902 for 16 bit CPUs.
2903 (h8300h_store_return_value): Same function for 32 bit CPUs.
2904 (h8300_store_struct_return): Removed.
2905 (h8300_extract_struct_value_address): Use new regcache structure.
2906 (h8300h_extract_struct_value_address): Removed.
2907 (h8300_push_dummy_code): New function.
2908 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2909 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2910 set_gdbarch_store_return_value architecture dependent.
2911 Call set_gdbarch_push_dummy_code and
2912 set_gdbarch_extract_struct_value_address.
2913 Remove calls to set_gdbarch_frame_args_address,
2914 set_gdbarch_frame_locals_address,
2915 set_gdbarch_deprecated_store_struct_return,
2916 set_gdbarch_deprecated_extract_return_value,
2917 set_gdbarch_deprecated_extract_struct_value_address,
2918 set_gdbarch_deprecated_call_dummy_words and
2919 set_gdbarch_deprecated_sizeof_call_dummy_words.
2920
055c394a
CV
29212003-06-13 Corinna Vinschen <vinschen@redhat.com>
2922
2923 * h8300-tdep.c (h8300_register_byte): Remove.
2924 (h8300h_register_byte): Remove.
2925 (h8300_register_virtual_type): Remove. Substitute by...
2926 (h8300_register_type): New function.
2927 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2928 (h8300h_extract_struct_value_address): Ditto.
2929 (h8300_gdbarch_init): Drop calls to
2930 set_gdbarch_deprecated_register_byte and
2931 set_gdbarch_deprecated_register_virtual_type.
2932 Add call to set_gdbarch_register_type.
2933
9c04cab7
AC
29342003-06-13 Andrew Cagney <cagney@redhat.com>
2935
2936 * gdbarch.sh: Update comments on registers.
2937 (deprecated_register_byte): Rename register_byte.
2938 (deprecated_register_raw_size): Rename register_raw_size.
2939 (deprecated_register_virtual_size): Rename register_virtual_size.
2940 (deprecated_register_virtual_type): Rename register_virtual_type.
2941 * gdbarch.h, gdbarch.c: Re-generate.
2942 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2943 * vax-tdep.c (vax_gdbarch_init): Update.
2944 * v850-tdep.c (v850_gdbarch_init): Update.
2945 * sparc-tdep.c (sparc_gdbarch_init): Update.
2946 * sh-tdep.c (sh_gdbarch_init): Update.
2947 * s390-tdep.c (s390_gdbarch_init): Update.
2948 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2949 * ns32k-tdep.c: Update.
2950 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2951 * mips-tdep.c (mips_gdbarch_init): Update.
2952 * mcore-tdep.c (mcore_gdbarch_init): Update.
2953 * m68k-tdep.c (m68k_gdbarch_init): Update.
2954 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2955 * ia64-tdep.c (ia64_gdbarch_init): Update.
2956 * hppa-tdep.c (hppa_gdbarch_init): Update.
2957 * h8300-tdep.c (h8300_gdbarch_init): Update.
2958 * frv-tdep.c (frv_gdbarch_init): Update.
2959 * cris-tdep.c (cris_gdbarch_init): Update.
2960 * avr-tdep.c (avr_gdbarch_init): Update.
2961 * alpha-tdep.c (alpha_gdbarch_init): Update.
2962 * arm-tdep.c (arm_gdbarch_init): Update.
2963
b060cbea
AC
29642003-06-13 Andrew Cagney <cagney@redhat.com>
2965
2966 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2967 mips_o32_use_struct_convention with always_use_struct_convention.
2968
0fc9922a
DC
29692003-06-12 David Carlton <carlton@kealia.com>
2970
2971 * cp-namespace.c (cp_set_block_scope): Comment out
2972 processing_has_namespace_info branch.
2973
1fd35568
JB
29742003-06-12 Jim Blandy <jimb@redhat.com>
2975
f470a70a
JB
2976 Recognize and skip 64-bit PowerPC Linux linkage functions.
2977 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2978 insn_pattern, insns_match_pattern, d_field, ds_field): New
2979 functions, macros, and types for working with PPC instructions.
2980 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2981 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2982 ppc64_skip_trampoline_code): New functions, variables, and macros
2983 for recognizing and skipping linkage functions.
2984 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2985 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2986
49ff75ad
JB
2987 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2988 register offsets for both the 32- and 64-bit interfaces.
2989
bd918c83
JB
2990 Actually finish the job started by my change of 2003-05-29.
2991 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2992 other #definition of this.
2993 (ppc_linux_skip_trampoline_code): Remove declaration.
2994 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2995 static.
2996 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2997 method for GDBARCH.
2998
2999 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3000 'long' on ppc64-*-linux*.
3001
f8c59253
JB
3002 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3003 isn't #defined, assume the register doesn't exist: act as if
3004 tdep->ppc_mq_regnum were -1.
3005
8fbb30b1
JB
3006 * configure.host, configure.tgt: Add entries for
3007 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3008 powerpc/linux.mt.
3009 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3010 New files.
3011
1fd35568
JB
3012 * arch-utils.c (always_use_struct_convention): New function.
3013 * arch-utils.h (always_use_struct_convention): New prototype.
3014 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3015 (alpha_gdbarch_init): Register always_use_struct_convention,
3016 instead of alpha_use_struct_convention.
3017 * cris-tdep.c (cris_use_struct_convention): Delete.
3018 (cris_gdbarch_init): Register always_use_struct_convention,
3019 instead of cris_use_struct_convention.
3020 * frv-tdep.c (frv_use_struct_convention): Delete.
3021 (frv_gdbarch_init): Register always_use_struct_convention,
3022 instead of frv_use_struct_convention.
3023 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3024 (h8300_gdbarch_init): Register always_use_struct_convention,
3025 instead of h8300_use_struct_convention.
e3305dd9 3026 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3027 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3028 instead of mips_o32_use_struct_convention.
3029
e14e6e9c
AC
30302003-06-12 Andrew Cagney <cagney@redhat.com>
3031
3032 * wince.c: Include "mips-tdep.h".
3033 * mips-tdep.h (mips_next_pc): Declare.
3034 * mcore-tdep.c: Make more local functions static.
3035 * Makefile.in (wince.o): Update dependencies.
3036
2335f48e
DC
30372003-06-12 David Carlton <carlton@kealia.com>
3038
3039 * symtab.c (lookup_symbol_aux_minsyms): Replace
3040 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3041 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3042 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3043 SYMBOL_NATURAL_NAME.
3044
f70a7d61
AS
30452003-06-12 Andreas Schwab <schwab@suse.de>
3046
3047 * Makefile.in (tuiDisassem.o): Update dependencies.
3048
b6429628
DC
30492003-06-12 David Carlton <carlton@bactrian.org>
3050
3051 * symtab.h: Delete declaration of make_symbol_overload_list.
3052 Add declaration of lookup_partial_symbol.
3053 * symtab.c (remove_params): Move to cp-support.c.
3054 (overload_list_add_symbol, make_symbol_overload_list)
3055 (sym_return_val_size, sym_return_val_index): Ditto.
3056 (lookup_partial_symbol): Make extern.
3057 * cp-support.h: Add declaration of make_symbol_overload_list.
3058 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3059 symtab.h, and block.h.
3060 (remove_params): Move here from symtab.c.
3061 (overload_list_add_symbol, make_symbol_overload_list)
3062 (sym_return_val_size, sym_return_val_index): Ditto.
3063 * valops.c: Include cp-support.h.
3064 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3065 frame_h, and block_h.
3066 (valops.o): Depend on cp_support_h.
3067
084edea5
CV
30682003-06-12 Corinna Vinschen <vinschen@redhat.com>
3069
3070 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3071 substitute by NUM_REGS throughout.
3072 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3073 (h8300s_register_name): New function for H8S registers.
3074 (h8300sx_register_name): Ditto for H8SX registers.
3075 (h8300_print_register): Revise register printing, avoid depending
3076 on 32 bit long.
0261a0d0 3077 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3078 (h8300h_register_byte): New function for any other architecture.
3079 (h8300_register_raw_size): Remove.
3080 (h8300_register_virtual_type): Revise to return actually useful
3081 type.
3082 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3083 (h8300h_extract_struct_value_address): New function for any other
3084 architecture.
3085 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3086 set_gdbarch_register_name, set_gdbarch_register_byte,
3087 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3088 Remove calls to set_gdbarch_deprecated_register_size,
3089 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3090 set_gdbarch_deprecated_max_register_raw_size,
3091 set_gdbarch_register_virtual_size and
3092 set_gdbarch_deprecated_max_register_virtual_size entirely.
3093 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3094 set_gdbarch_long_double_bit.
3095
06194148
JJ
30962003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3097
8ffd9b1b
AJ
3098 * doublest.c (convert_doublest_to_floatformat): When dealing
3099 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3100 processing a full 32 bits of mantissa.
3101
de4f826b
DC
31022003-06-11 David Carlton <carlton@bactrian.org>
3103
3104 * dictionary.h: New.
3105 * dictionary.c: New.
3106 * block.h: Add opaque declaration for struct dictionary.
3107 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3108 'sym' members.
3109 (BLOCK_DICT): New macro.
3110 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3111 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3112 BLOCK_SHOULD_SORT.
3113 (ALL_BLOCK_SYMBOLS): Update definition.
3114 * Makefile.in (SFILES): Add dictionary.c.
3115 (dictionary_h): New.
3116 (COMMON_OBS): Add dictionary.o.
3117 (dictionary.o): New.
3118 (ada-lang.o): Depend on dictionary_h.
3119 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3120 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3121 (mi-cmd-stack.o): Ditto.
3122 (gdbtk-cmds.o): Update dependencies.
3123 (gdbtk-stack.o): Ditto.
3124 * ada-lang.c: Include dictionary.h.
3125 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3126 (fill_in_ada_prototype, debug_print_block): Ditto.
3127 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3128 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3129 'is_sorted'.
3130 * mdebugread.c: Include dictionary.h.
3131 (struct parse_stack): Delete 'maxsyms' member.
3132 (parse_symbol): Update calls to new_block. Delete calls to
3133 shrink_block. Use dictionary methods.
3134 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3135 Update calls to new_symtab. Don't maintain maxsyms data.
3136 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3137 (add_symbol): Just call dict_add_symbol.
3138 (new_symtab): Delete 'maxsyms' argument.
3139 (new_symtab): Update calls to new_block.
3140 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3141 (shrink_block): Delete function.
3142 (fixup_sigtramp): Update call to new_block. Add symbol via
3143 dict_add_symbol.
3144 * jv-lang.c: Include dictionary.h.
3145 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3146 appropriately. Set class_symtab->free_func. Make sure the
3147 blockvector is big enough to hold two blocks.
3148 (add_class_symtab_symbol): Use dictionary methods.
3149 (free_class_block): New function.
3150 (type_from_class): Replace explicit iteration by
3151 ALL_BLOCK_SYMBOLS.
3152 * symtab.h (struct symtab): Replace 'free_ptr' method by
3153 'free_func'.
3154 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3155 sort_symtab_syms.
3156 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3157 sort_symtab_syms.
3158 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3159 Include dictionary.h.
3160 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3161 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3162 sort_symtab_syms.
3163 * objfiles.c: Include dictionary.h.
3164 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3165 * buildsym.c: Include dictionary.h.
3166 (finish_block): Use dictionary methods.
3167 (end_symtab): Set free_func to NULL, not free_ptr.
3168 * tracepoint.c: Include dictionary.h.
3169 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3170 (scope_info): Ditto.
3171 * stack.c: Include dictionary.h.
3172 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3173 (print_block_frame_labels, print_frame_arg_vars)
3174 (print_frame_args): Ditto.
3175 * symmisc.c (free_symtab_block): Use dictionary methods.
3176 (dump_symtab): Ditto.
3177 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3178 Include dictionary.h.
3179 * symfile.h: Delete declarations of sort_block_syms,
3180 sort_symtab_syms.
3181 * symfile.c (sort_block_syms): Delete.
3182 (sort_symtab_syms): Delete.
3183 * symtab.c: Include dictionary.h.
3184 (lookup_block_symbol): Use dictionary iterators.
3185 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3186 (search_symbols, make_symbol_completion_list): Ditto.
3187 (make_symbol_overload_list): Ditto.
3188 * valops.c (value_of_local): Use dict_empty.
3189 Include dictionary.h.
3190
a31f978c
JB
31912003-06-11 J. Brobecker <brobecker@gnat.com>
3192
3193 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3194
526e70c0
DC
31952003-06-11 David Carlton <carlton@bactrian.org>
3196
3197 * block.h (BLOCK_SHOULD_SORT): Delete.
3198 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3199 blocks.
3200 * ada-lang.c (ada_add_block_symbols): Ditto.
3201 * symfile.c (sort_block_syms): Delete.
3202 (sort_symtab_syms): Ditto.
3203 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3204 declarations.
3205 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3206 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3207 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3208 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3209 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3210 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3211 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3212
33c08150
JJ
32132003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3214
8ffd9b1b 3215 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3216 bits to 128.
3217
781a750d
AC
32182003-06-11 Andrew Cagney <cagney@redhat.com>
3219
3220 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3221 REGISTER_CONVERTIBLE.
3222 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3223 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3224 * gdbarch.h, gdbarch.c: Re-generate.
3225 * arch-utils.h (deprecated_register_convertible_not): Rename
3226 generic_register_convertible_not.
3227 * arch-utils.c (deprecated_register_convertible_not): Rename
3228 generic_register_convertible.
3229 (legacy_convert_register_p, legacy_register_to_value): Update.
3230 * sh-tdep.c (sh64_push_arguments): Update.
3231 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3232 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3233 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3234 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3235 * arch-utils.c (legacy_value_to_register): Update.
3236 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3237 (rs6000_register_convert_to_raw): Make parameter "from" const.
3238 * mips-tdep.c (mips_gdbarch_init): Update.
3239 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3240 * infcmd.c (default_print_registers_info): Update.
3241 * ia64-tdep.c (ia64_gdbarch_init): Update.
3242 (ia64_register_convert_to_raw): Make parameter "from" const.
3243 * i386-tdep.c (i386_gdbarch_init): Update.
3244 (i386_register_convert_to_raw): Update.
3245
cd90e54f
AC
32462003-06-11 Andrew Cagney <cagney@redhat.com>
3247
3248 * remote-fileio.c: Include "remote-fileio.h".
3249 * Makefile.in (remote-fileio.o): Update dependencies.
3250 (remote_fileio_h): Fix typo.
3251
a78f21af
AC
32522003-06-11 Andrew Cagney <cagney@redhat.com>
3253
3254 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3255 (xstormy16_save_dummy_frame_tos): Make static.
3256 (_initialize_xstormy16_tdep): Add declaration.
3257 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3258 * v850-tdep.c: Make local functions static.
3259 (_initialize_v850_tdep): Add declaration.
3260 * sparc-tdep.c: Make local functions static.
3261 (_initialize_sparc_tdep): Add declaration.
3262 * sh-tdep.c: Make local functions static.
3263 (_initialize_sh_tdep): Add declaration.
3264 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3265 * s390-tdep.c: Make local functions static.
3266 (_initialize_s390_tdep): Add declaration.
3267 * dbxread.c (find_stab_function_addr): Make static.
3268 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3269 * ocd.c (_initialize_remote_ocd): Add declaration.
3270 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3271 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3272 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3273 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3274 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3275 * remote-array.c (_initialize_array): Add declaration.
3276 (_initialize_remote_monitors): Add declaration.
3277 * remote-mips.c: Make local functions static.
3278 (_initialize_remote_mips): Add declaration.
3279 * mcore-tdep.c: Make all local functions static.
3280 (_initialize_mcore_tdep): Add declaration.
3281 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3282 * abug-rom.c (_initialize_abug_rom): Add declaration.
3283 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3284 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3285 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3286 * remote-est.c (_initialize_est): Add declaration.
3287 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3288 (m68hc11_call_dummy_address): Make static.
3289 * ia64-tdep.c: Make local functions static.
3290 (_initialize_ia64_tdep): Add declaration.
3291 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3292 * monitor.c (monitor_wait_filter): Make static.
3293 (_initialize_remote_monitors): Add declaration.
3294 * remote-hms.c (_initialize_remote_hms): Add declaration.
3295 * remote-e7000.c (fetch_regs_from_dump): Make static.
3296 (expect_n): Make static.
3297 (_initialize_remote_e7000): Add declaration.
3298 * ser-e7kpc.c: Always include "defs.h".
3299 (_initialize_ser_e7000pc): Add declaration.
3300 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3301 * cris-tdep.c: Make all but one function static.
3302 (_initialize_cris_tdep): Add declaration.
3303 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3304 * solib.c (update_solib_list): Make static.
3305 (_initialize_solib): Add declaration.
3306 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3307 (_initialize_avr_tdep): Add declaration.
3308 * remote-rdi.c (voiddummy): Make static.
3309 (_initialize_remote_rdi): Add declaration.
3310 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3311 * remote-rdp.c (send_rdp): Make static.
3312 (_initialize_remote_rdp): Add declaration.
3313 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3314
cbcdb1f5
CV
33152003-06-11 Corinna Vinschen <vinschen@redhat.com>
3316
3317 * remote-fileio.c: Make ari happy.
3318
a191ea8d
JB
33192003-06-10 J. Brobecker <brobecker@gnat.com>
3320
3321 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3322 fetching the trailing bytes of the buffer we are about to write.
3323
0ef75e11
AC
33242003-06-10 Andrew Cagney <cagney@redhat.com>
3325
3326 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3327 * Makefile.in (remote-fileio.o): Update dependencies.
3328 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3329 include <setjmp.h>, or <sys/types.h> conditional on USG.
3330 (remote_fio_jmp_buf): Delete global variable.
3331
449092f6 33322003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3333 Martin M. Hunt <hunt@redhat.com>
449092f6 3334
559fa028
AC
3335 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3336 (SFILES): Add remote-fileio.c.
3337 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3338 dependencies for building remote.o.
449092f6
CV
3339 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3340 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3341 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3342 static storage class.
3343 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3344 'F' packet.
3345 (_initialize_remote): Call initialize_remote_fileio().
3346 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3347 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3348 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3349 (captured_main): Initialize new ui_files.
3350 * ui-file.c: Add read and fgets input functions.
3351 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3352 (null_file_read): New function.
3353 (ui_file_read): New function.
3354 (set_ui_file_read): New function.
3355 (stdio_file_read): New function.
3356 * ui-file.h: New type ui_file_read_ftype.
3357 (set_ui_file_read): Declare.
3358 (ui_file_read): Declare.
3359
248de703
AC
33602003-06-09 Andrew Cagney <cagney@redhat.com>
3361
3362 * frame.h (deprecated_unwind_get_saved_register): Rename
3363 generic_unwind_get_saved_register, update comments.
3364 * mips-tdep.c (mips_get_saved_register): Update.
3365 * frame.c (deprecated_unwind_get_saved_register): Update.
3366
0ed8aa57
AC
33672003-06-09 Andrew Cagney <cagney@redhat.com>
3368
3369 * vax-tdep.c (vax_frame_locals_address): Delete function.
3370 (vax_gdbarch_init): Do not set frame_locals_address.
3371 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3372 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3373 * s390-tdep.c (s390_frame_args_address): Delete function.
3374 (s390_gdbarch_init): Do not set frame_args_address or
3375 frame_locals_address.
3376 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3377 (ns32k_gdbarch_init): Do not set frame_locals_address.
3378 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3379 (hppa_frame_locals_address): Delete function.
3380 (hppa_gdbarch_init): Do not set frame_args_address, or
3381 frame_locals_address.
3382 * arm-tdep.c (arm_frame_args_address): Delete.
3383 (arm_frame_locals_address): Delete.
3384 (arm_gdbarch_init): Do not set frame_args_address, or
3385 frame_locals_address.
3386
983a287a
AC
33872003-06-09 Andrew Cagney <cagney@redhat.com>
3388
3389 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3390 * gdbarch.h, gdbarch.c: Re-generate.
3391 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3392 * arch-utils.c (frame_num_args_unknown): Delete function.
3393 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3394 (frame_info): Use FRAME_NUM_ARGS_P.
3395 * arm-tdep.c (arm_frame_num_args): Delete function.
3396 (arm_gdbarch_init): Do not set frame_num_args.
3397 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3398 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3399 (hppa_gdbarch_init): Do not set frame_num_args.
3400 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3401 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3402 frame_num_args to default frame_num_args_unknown.
3403 * v850-tdep.c (v850_gdbarch_init): Ditto.
3404 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3405 * sh-tdep.c (sh_gdbarch_init): Ditto.
3406 * s390-tdep.c (s390_gdbarch_init): Ditto.
3407 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3408 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3409 * mips-tdep.c (mips_gdbarch_init): Ditto.
3410 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3411 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3412 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3413 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3414 * i386-tdep.c (i386_gdbarch_init): Ditto.
3415 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3416 * frv-tdep.c (frv_gdbarch_init): Ditto.
3417 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3418 * cris-tdep.c (cris_gdbarch_init): Ditto.
3419 * avr-tdep.c (avr_gdbarch_init): Ditto.
3420 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3421
8d3b0994
AC
34222003-06-09 Andrew Cagney <cagney@redhat.com>
3423
3424 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3425 (print_frame_args): Moved to "stack.c".
3426 * stack.c: Include "gdb_assert.h".
3427 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3428 (print_frame_args): Moved from "printcmd.c".
3429 * frame.h (print_frame_args): Delete declaration.
3430 * Makefile.in (stack.o): Update dependencies.
3431
25e3a86b
AC
34322003-06-08 Andrew Cagney <cagney@redhat.com>
3433
3434 * frame.c (get_prev_frame): Remove reference to
3435 frame_args_address_correct in comments.
3436 * frame-base.c (default_frame_args_address): Delete code
3437 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3438 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3439 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3440 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3441 (vax_frame_args_address_correct): Delete declaration.
3442
a9e5fdc2
AC
34432003-06-08 Andrew Cagney <cagney@redhat.com>
3444
3445 * gdbarch.sh (UNWIND_SP): Add.
3446 * gdbarch.h, gdbarch.c: Re-generate.
3447 * frame.c (frame_sp_unwind): New function.
3448 (get_frame_sp): New function.
3449 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3450 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3451 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3452 value.
3453 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3454 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3455
8983bd83
AC
34562003-06-08 Andrew Cagney <cagney@redhat.com>
3457
7fec2c59
AC
3458 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3459 REMOTE_BREAKPOINT.
3460 * remote.c: Update.
3461 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3462 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3463 * config/m68k/tm-sun3.h: Update.
3464 * config/m68k/tm-m68klynx.h: Update.
3465 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3466
8983bd83
AC
3467 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3468 trad_frame". Update comments.
3469 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3470 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3471 (trad_frame_register_value, trad_frame_prev_register): Update.
3472
b9362cc7
AC
34732003-06-08 Andrew Cagney <cagney@redhat.com>
3474
3475 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3476 from GCC's acinclude.m4.
3477 * configure.in: Check for getopt's delcaration.
8ffd9b1b 3478 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
3479 * main.c (error_init): Delete declaration.
3480 * defs.h (error_init): Declare.
3481 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3482 (rs6000_convert_from_func_ptr_addr): Make static.
3483 (_initialize_rs6000_tdep): Add declaration.
3484 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3485 (show_commands, set_verbose, show_history): Delete declaration.
3486 * top.h (set_verbose): Add declaration.
3487 (show_history, set_history, show_commands): Add declaration.
3488 (do_restore_instream_cleanup): Add declaration.
3489 * objc-lang.c (specialcmp): Make static.
3490 (print_object_command): Make static.
3491 (find_objc_msgsend): Make static.
3492 (find_objc_msgcall_submethod_helper): Make static.
3493 (find_objc_msgcall_submethod): Make static.
3494 (_initialize_objc_language): Add declaration.
3495 (find_implementation_from_class): Make static.
3496 (find_implementation): Make static.
3497 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3498 * objc-lang.h (lookup_struct_typedef): Add declaration.
3499 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3500 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3501 (do_restore_user_call_depth): Make static.
3502 (do_restore_instream_cleanup): Delete declaration.
3503 (dont_repeat): Delete declaration.
3504 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3505 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3506 * reggroups.c (_initialize_reggroup): Add declaration.
3507 * cp-support.c (_initialize_cp_support): Add declaration.
3508 * cp-abi.c (_initialize_cp_abi): Add declaration.
3509 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3510 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3511 (_initialize_gnu_v3_abi): Add declaration.
3512 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3513 (_initialize_gnu_v2_abi): Add declaration.
3514 * frame-base.c (_initialize_frame_base): Add declaration.
3515 * doublest.c (floatformat_from_length): Make static.
3516 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3517 * frame.c (create_sentinel_frame): Make static.
3518 (_initialize_frame): Add declaration.
3519 * top.c (do_catch_errors): Make static.
3520 (gdb_rl_operate_and_get_next_completion): Make static.
3521 * typeprint.c: Include "typeprint.h".
3522 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3523 (sentinel_frame_this_id): Make static.
3524 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3525 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3526 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3527 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3528 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3529 * maint.c (maintenance_print_architecture): Make static.
3530 * signals/signals.c (_initialize_signals): Add declaration.
3531 * std-regs.c (_initialize_frame_reg): Add declaration.
3532 * jv-exp.y (push_variable): ISO C definition.
3533 (push_qualified_expression_name): Ditto.
3534 * memattr.c (_initialize_mem): Add declaration.
3535 * remote.c (remote_check_watch_resources): Make static.
3536 (remote_stopped_by_watchpoint): Make static.
3537 (remote_stopped_data_address): Make static.
3538 * d10v-tdep.c (nr_dmap_regs): Make static.
3539 (a0_regnum): Make static.
3540 (d10v_frame_unwind_cache): Make static.
3541 (d10v_frame_p): Make static.
3542 * osabi.c (show_osabi): Make static.
3543 (_initialize_gdb_osabi): Add extern declaration.
3544 * gdbtypes.c (make_qualified_type): Make static.
3545 (safe_parse_type): Make static.
3546 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3547 * macrotab.c (macro_bcache_free): Make static.
3548 * interps.c (interp_set_quiet): Make static.
3549 (interpreter_exec_cmd): Make static.
3550 * stack.h (select_frame_command): New file.
3551 * stack.c: Include "stack.h".
3552 (select_frame_command_wrapper): Delete function.
3553 (select_frame_command): Make global.
3554 * infcall.c: Include "infcall.h".
3555 * linespec.c: Include "linespec.h".
3556 * symfile.c (sections_overlap): Make static.
3557 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3558 * charset.c (_initialize_charset): Add missing prototype.
3559 * regcache.c (init_legacy_regcache_descr): Make static.
3560 (do_regcache_xfree): Make static.
3561 (regcache_xfer_part): Make static.
3562 (_initialize_regcache): Add missing prototype.
3563 * breakpoint.c (parse_breakpoint_sals): Make static.
3564 (breakpoint_sals_to_pc): Make static.
3565 * interps.h (clear_interpreter_hooks): ISO C declaration.
3566 * Makefile.in (stack_h): Define.
3567 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3568 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3569
a0f267c7
AC
35702003-06-08 Andrew Cagney <cagney@redhat.com>
3571
3572 * Makefile.in (d10v-tdep.o): Update dependencies.
3573 (SFILES): Add trad-frame.c.
3574 (trad_frame_h): Define.
3575 (COMMON_OBS): Add trad-frame.o.
3576 (trad-frame.o): Specify dependencies.
3577 * d10v-tdep.c: Include "trad-frame.h".
3578 (saved_regs_unwinder): Delete function.
3579 (d10v_frame_prev_register): Use trad_frame_prev_register.
3580 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3581 trad_frame", delete "regs" and "prev_sp".
3582 (prologue_find_regs): Use trad-frame.
3583 * trad-frame.h, trad-frame.c: New files.
3584
4538b4f4
MK
35852003-06-08 Mark Kettenis <kettenis@gnu.org>
3586
3587 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3588
a0273b2f
AF
35892003-06-07 Adam Fedor <fedor@gnu.org>
3590
3591 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3592 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3593 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3594 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 3595 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
3596 Use it.
3597
3a6c3343
AC
35982003-06-07 Andrew Cagney <cagney@redhat.com>
3599
3600 * symfile.h: Re-indent, clean up comments.
3601
b46e02f6
AC
36022003-06-07 Andrew Cagney <cagney@redhat.com>
3603
3604 * inferior.h (deprecated_write_sp): Replace
3605 generic_target_write_sp.
3606 * regcache.c (deprecated_write_sp): Replace
3607 generic_target_write_sp.
3608 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3609 * vax-tdep.c (vax_gdbarch_init): Update.
3610 * v850-tdep.c (v850_gdbarch_init): Update.
3611 * sparc-tdep.c (sparc_gdbarch_init): Update.
3612 * sh-tdep.c (sh_gdbarch_init): Update.
3613 * s390-tdep.c (s390_gdbarch_init): Update.
3614 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3615 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3616 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3617 * mcore-tdep.c (mcore_gdbarch_init): Update.
3618 * m68k-tdep.c (m68k_gdbarch_init): Update.
3619 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3620 * ia64-tdep.c (ia64_gdbarch_init): Update.
3621 * h8300-tdep.c (h8300_gdbarch_init): Update.
3622 * frv-tdep.c (frv_gdbarch_init): Update.
3623 * cris-tdep.c (cris_gdbarch_init): Update.
3624 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3625
a42e117c
AC
36262003-06-07 Andrew Cagney <cagney@redhat.com>
3627
3628 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3629 Assert that PC_REGNUM is valid.
3630 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3631
bd1ce8ba
AC
36322003-06-07 Andrew Cagney <cagney@redhat.com>
3633
3634 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3635 * gdbarch.h, gdbarch.c: Regenerate.
3636 * mn10300-tdep.c: Include "gdb_assert.h".
3637 (mn10300_read_fp): New function.
3638 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3639 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3640 * ia64-tdep.c: Include "gdb_assert.h".
3641 (ia64_read_fp): New function.
3642 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3643 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3644 * regcache.c (generic_target_read_sp): Delete function.
3645 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3646 * inferior.h (generic_target_read_sp): Delete declaration.
3647 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3648 generic_target_read_sp.
3649 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3650 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3651 * sh-tdep.c (sh_gdbarch_init): Ditto.
3652 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3653 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3654
ec5cbaec
AC
36552003-06-07 Andrew Cagney <cagney@redhat.com>
3656
3657 * gdbarch.sh: Comment each field of startup_gdbarch.
3658 * gdbarch.h, gdbarch.c: Re-generate.
3659
cde9ea48
AC
36602003-06-07 Andrew Cagney <cagney@redhat.com>
3661
3662 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3663 * gdbarch.h, gdbarch.c: Re-generate.
3664 * regcache.c: Update comments on read_pc et.al.
3665 (generic_target_read_pc): Delete function.
3666 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3667 * inferior.h (generic_target_read_pc): Delete declaration.
3668 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3669 generic_target_read_pc.
3670 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3671 * sh-tdep.c (sh_gdbarch_init): Ditto.
3672 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3673 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 3674
9a90a780
AC
36752003-06-07 Andrew Cagney <cagney@redhat.com>
3676
3677 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3678 "index" with "special_local_sect". Use strcmp instead of STREQ.
3679 Append period to coments.
3680
a39a16c4
MM
36812003-06-06 Mark Mitchell <mark@codesourcery.com>
3682
3683 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3684 (elfstab_offset_sections): Likewise.
3685 * gdb-stabs.h (stab_section_info): Likewise.
3686 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3687 * objfiles.c (objfile_relocate): Likewise.
3688 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3689 * remote.c (get_offsets): Likewise.
3690 (remote_cisco_objfile_relocate): Likewise.
3691 * somread.c (som_symfile_offsets): Likewise.
3692 * symfile.c (alloc_section_addr_info): New function.
3693 (build_section_addr_info_from_section_tab): Use it.
3694 (free_section_addr_info): Adjust.
3695 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3696 (syms_from_objfile): Allocate local_addr dynamically.
3697 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3698 dynamically.
3699 (add_symbol_file_command): Allocate sect_opts dynamically.
3700 (reread_symbols): Avoid use of SECT_OFF_MAX.
3701 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3702 (alloc_section_addr_info): Declare it.
3703 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3704 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3705 dynamically.
3706 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 3707
20c6c2f8
AC
37082003-06-06 Andrew Cagney <cagney@redhat.com>
3709
3710 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3711 (d10v_frame_unwind_cache): Do not set "return_pc".
3712
884a26c8
MS
37132003-06-06 Michael Snyder <msnyder@redhat.com>
3714
3715 * h8300-tdep.c: Make tidy (long lines).
3716
088ce440
ML
37172003-06-06 Michal Ludvig <mludvig@suse.cz>
3718
8ffd9b1b 3719 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
3720 to regcache_collect().
3721
7d773d96
JB
37222003-06-05 J. Brobecker <brobecker@gnat.com>
3723
3724 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3725 pc_in_sigtramp multiarch method.
3726 (hppa_hpux_som_init_abi): Use it.
3727 (hppa_hpux_elf_init_abi): Likewise.
3728 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3729 macro has been multiarched.
3730 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3731 macro here, as hppa64 isn't multiarched yet.
3732
1df6926e
AC
37332003-06-05 Andrew Cagney <cagney@redhat.com>
3734
3735 * Makefile.in (value_h): Add $(frame_h).
3736 * value.h: Include "frame.h".
3737 (struct value): Replace "frame_addr" with "frame_id".
3738 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3739 * values.c (allocate_value): Use VALUE_FRAME_ID.
3740 (value_copy): Use VALUE_FRAME_ID.
3741 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3742 * valops.c (value_assign): Update. Use frame_find_by_id.
3743
6b53acc6
ML
37442003-06-05 Michal Ludvig <mludvig@suse.cz>
3745
3746 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3747 in each pass.
3748
4d9850d3
JJ
37492003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3750
3751 * thread-db.c (check_event): For create/death event breakpoints,
3752 loop through all messages to ensure that we read the message
3753 corresponding to the breakpoint we are at.
3754
8efca6ba
MS
37552003-06-04 Michael Snyder <msnyder@redhat.com>
3756
3757 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3758
0912c7f2
MK
37592003-06-04 Mark Kettenis <kettenis@gnu.org>
3760
3761 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3762 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3763 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3764 when handling .eh_frame sections.
3765
4e370325
JB
37662003-06-04 J. Brobecker <brobecker@gnat.com>
3767
3768 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3769 prepare_to_proceed procedure instead of the hppa-specific one.
3770 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3771
b757528f 37722003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 3773
b757528f
JJ
3774 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3775 * config.in: Regenerated.
3776 * configure.in: Add test for syscall function and check for
3777 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3778 * configure: Regenerated.
3779 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3780 <sys/syscall.h>.
3781 (kill_lwp): New function that uses tkill syscall or
3782 uses kill, depending on whether threading model is nptl or not.
3783 All callers of kill() changed to use kill_lwp().
3784 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3785 see if all threads have already exited in the nptl model.
3786 (stop_and_resume_callback): New callback function used by the
3787 lin_lwp_wait thread exit handling code.
3788 (stop_wait_callback): Check for threads already having exited and
3789 delete such threads fromt the lwp list when discovered.
3790 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 3791
b757528f
JJ
3792 Roland McGrath <roland@redhat.com>
3793 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3794 nptl libthread_db.
3795
087779b1
RH
37962003-06-03 Richard Henderson <rth@redhat.com>
3797
b21fd293
RH
3798 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3799 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3800 (alpha_sigtramp_frame_prev_register): Likewise.
3801 (alpha_heuristic_frame_prev_register): Likewise.
3802 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3803
8ffd9b1b 3804 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
3805 alpha-specific register id names.
3806 (alpha_mdebug_frame_unwind_cache): Likewise.
3807 (alpha_mdebug_frame_prev_register): Likewise.
3808
baa490c4
RH
38092003-06-03 Richard Henderson <rth@redhat.com>
3810
3811 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3812 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3813 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3814 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3815 unwind routines.
3816 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3817 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3818 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3819
3820 * alpha-linux-tdep.c: Remove unnecessary includes.
3821 * Makefile.in (alpha-linux-tdep.o): Update.
3822
38232003-06-03 Richard Henderson <rth@redhat.com>
3824
3825 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3826 (alphabsd_fill_fpreg): Likewise.
3827
f534e522
JB
38282003-06-03 J. Brobecker <brobecker@gnat.com>
3829
3830 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3831 references to struct frame_info fields by calls to the equivalent
3832 accessors. Necessary now that frame_info is opaque.
3833
4035536b
JB
38342003-06-03 J. Brobecker <brobecker@gnat.com>
3835
3836 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3837 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3838 structure, field no longer exists.
3839
0bd79c5c
JB
38402003-06-03 J. Brobecker <brobecker@gnat.com>
3841
3842 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3843 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3844
37bb6d9f
JB
38452003-06-03 J. Brobecker <brobecker@gnat.com>
3846
3847 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3848 references to struct frame_info fields by calls to the equivalent
3849 accessors. Necessary now that frame_info is opaque.
3850
852ee05c
JB
38512003-06-03 J. Brobecker <brobecker@gnat.com>
3852
3853 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3854 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3855 structure, field no longer exists.
3856
7d58c67d
TR
38572003-06-03 Theodore A. Roth <troth@openavr.org>
3858
8ffd9b1b 3859 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
3860 accumulation of the size of all registers instead of blindly using
3861 DEPRECATED_REGISTER_BYTES.
3862
0a48e7e8
MS
38632003-06-03 Michael Snyder <msnyder@redhat.com>
3864
3865 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3866 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3867 for h8300sx.
3868
9798ab0d
JB
38692003-06-03 J. Brobecker <brobecker@gnat.com>
3870
3871 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3872 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3873
00b037e2
AC
38742003-06-03 Andrew Cagney <cagney@redhat.com>
3875
3876 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3877 (sparc_convert_to_raw): Delete function.
3878 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3879 register_convert_to_virtual.
3880
043b2f77
JJ
38812003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3882
3883 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3884 layer if not dealing with a statically-linked threaded program.
3885
f43caff8
KW
38862003-06-03 Kris Warkentin <kewarken@qnx.com>
3887
3888 * solib.c (solib_open): Update comment to reflect actual search order.
3889
ae1e7417
AC
38902003-06-03 Andrew Cagney <cagney@redhat.com>
3891
3892 * frame.c (get_frame_memory_signed): New function.
3893 (get_frame_memory, get_frame_memory_unsigned): New function.
3894 (get_frame_arch): New function.
3895 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3896 (get_frame_memory, get_frame_unsigned_memory): Declare.
3897 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3898 get_frame_memory_unsigned and get_frame_arch.
3899 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3900
cb123844
RG
39012003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3902
3903 * MAINTAINERS (write after approval): Add myself.
3904
1bb792e9
JB
39052003-06-03 Jim Blandy <jimb@redhat.com>
3906
3907 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3908 elements of gregset_t are 64 bits each, but access registers
3909 are still 32 bits, so they're packed two per gregset_t
3910 element. Unpack/pack them properly.
3911
aee8d8ba
DC
39122003-06-02 David Carlton <carlton@bactrian.org>
3913
3914 * linespec.c (find_methods): Break out code into
3915 add_matching_methods and add_constructors.
3916 (add_matching_methods): New.
3917 (add_constructors): Ditto.
3918
bf7488d2
AC
39192003-06-02 Andrew Cagney <cagney@redhat.com>
3920
bf7488d2
AC
3921 * sparc-tdep.c (sparc_print_registers): Delete call to
3922 REGISTER_CONVERTIBLE.
3923 (sparc_gdbarch_init): Do not set register_convertible.
3924 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3925 * frv-tdep.c (frv_gdbarch_init): Ditto.
3926 * cris-tdep.c (cris_gdbarch_init): Ditto.
3927
adedef68
EZ
39282003-06-02 Elena Zannoni <ezannoni@redhat.com>
3929
8ffd9b1b 3930 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
3931 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3932 (syms_from_objfile): Ditto.
3933
650fcc91
AS
39342003-06-03 Andreas Schwab <schwab@suse.de>
3935
3936 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3937 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3938
df4a182b
RH
39392003-06-02 Richard Henderson <rth@redhat.com>
3940
3941 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3942 a member of all_reggroup.
3943
c483c494
RH
39442003-06-02 Richard Henderson <rth@redhat.com>
3945
3946 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3947 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3948 (alpha_lds, alpha_sts): New.
3949 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 3950 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
3951 restructure and fail for type sizes other than 4 or 8.
3952 (alpha_value_to_register): Similarly.
3953 (alpha_extract_return_value): Use alpha_sts.
3954 (alpha_store_return_value): Use alpha_lds.
3955 (alpha_gdbarch_init): Update hooks.
3956
b38b6be2
RH
39572003-06-02 Richard Henderson <rth@redhat.com>
3958
3959 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3960 regnum identifiers.
3961 (alpha_sigtramp_register_address): Likewise.
3962
98a8e1e5
RH
39632003-06-02 Richard Henderson <rth@redhat.com>
3964
3965 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3966 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3967 * alpha-tdep.h: Declare them.
3968
3969 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3970 Remove zerobuf. Don't error on UNIQUE.
3971 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3972 (ALPHA_REGSET_UNIQUE): Provide default.
3973 (supply_gregset): Use alpha_supply_int_regs.
3974 (fill_gregset): Use alpha_fill_int_regs.
3975 (supply_fpregset): Use alpha_supply_fp_regs.
3976 (fill_fpregset): Use alpha_fill_fp_regs.
3977 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3978 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3979 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3980 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3981 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3982 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3983
67dfac52
RH
39842003-06-02 Richard Henderson <rth@redhat.com>
3985
f75d70cc
RH
3986 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3987
67dfac52
RH
3988 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3989 (alpha_store_return_value): Likewise.
3990
0cf566ec
DC
39912003-06-02 David Carlton <carlton@math.stanford.edu>
3992
3993 * block.c (contained_in): Add 'const' to arguments.
3994 (block_function): Ditto.
3995 * block.h: Update declarations for block_function and
3996 contained_in.
3997
cdef89d0
DC
39982003-06-02 David Carlton <carlton@math.stanford.edu>
3999
4000 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4001 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4002 * p-valprint.c (pascal_val_print): Ditto.
4003 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4004
72667056
RH
40052003-06-02 Richard Henderson <rth@redhat.com>
4006
98a8e1e5
RH
4007 * alpha-tdep.c (alpha_push_dummy_call): Use
4008 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4009
8ffd9b1b 4010 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4011 sign-extension of 32-bit values.
4012 (alpha_store_return_value): Similarly.
0ede8eca 4013
98a8e1e5
RH
4014 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4015 (alpha_extract_return_value): Likewise.
4016 (alpha_store_return_value): Likewise.
7b5e1cb3 4017
98a8e1e5
RH
4018 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4019 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4020
98a8e1e5
RH
4021 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4022 (alpha_extract_struct_value_address): Likewise.
4023 (alpha_store_return_value): Likewise.
4024 (alpha_store_struct_return): Remove.
4025 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4026
98a8e1e5
RH
4027 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4028 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4029 macros where appropriate.
4030 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4031 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4032
98a8e1e5
RH
4033 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4034 for SP, GP; void_func_ptr for PC; non-language-specific types
4035 for all others.
4036 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4037
6dd77b81
RH
40382003-06-02 Richard Henderson <rth@redhat.com>
4039
4040 * top.h (lim_at_start): Declare.
4041 * main.c (captured_main): Set it.
4042 * top.c (lim_at_start): Define.
4043 (command_loop): Use it instead of &environ.
4044 * event-top.c (command_handler): Likewise.
4045
f4dbdb54
JT
40462003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4047
4048 * mipsnbsd-tdep.c: Update copyright years.
4049 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4050
8f285956
RH
40512003-06-01 Richard Henderson <rth@redhat.com>
4052
98a8e1e5
RH
4053 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4054 (alpha-linux-tdep.o): Update dependencies.
4055 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4056 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4057
615967cb
RH
40582003-06-01 Richard Henderson <rth@redhat.com>
4059
98a8e1e5
RH
4060 * alpha-tdep.c (alpha_register_reggroup_p): New.
4061 (alpha_gdbarch_init): Register it.
615967cb 4062
b59661bd
AC
40632003-06-02 Andrew Cagney <cagney@redhat.com>
4064
4065 * dwarfread.c: Eliminate "register"
4066 (decode_die_type): Eliminate assignment within "if".
4067 (struct_type, decode_array_element_type): Ditto.
4068 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4069 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4070 (decode_modified_type, completedieinfo): Ditto.
4071 * block.c: Eliminate "register".
4072 (blockvector_for_pc_sect): Eliminate assignment within "if".
4073 * cp-support.h (struct symbol): Opaque declaration.
4074 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4075
5ef165c2
RH
40762003-06-01 Richard Henderson <rth@redhat.com>
4077
98a8e1e5
RH
4078 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4079 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4080
143985b7
AF
40812003-06-01 Adam Fedor <fedor@gnu.org>
4082
4083 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4084 * gdbarch.[ch]: Regenerate.
4085 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4086 (hppa_gdbarch_init): Set it in the gdbarch vector.
4087 * i386-tdep.c (i386_fetch_pointer_argument): New
4088 (i386_gdbarch_init): Set it into gdbarch.
4089 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4090 (rs6000_gdbarch_init): Set it in gdbarch.
4091 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4092 (sparc_gdbarch_init): Set it in gdbarch.
4093
ae0167b9
AC
40942003-06-01 Andrew Cagney <cagney@redhat.com>
4095
7c0b4a20
AC
4096 * defs.h (extract_address): Delete declaration.
4097 * findvar.c (extract_address): Delete function.
4098 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4099 extract_address with the inline equivalent,
4100 extract_unsigned_integer.
4101 (xstormy16_extract_struct_value_address): Ditto.
4102 (xstormy16_pointer_to_address): Ditto.
4103 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4104 * v850-tdep.c (v850_push_arguments): Ditto.
4105 (v850_extract_return_value): Ditto.
4106 (v850_extract_struct_value_address): Ditto.
4107 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4108 (sparcnbsd_get_longjmp_target_64): Ditto.
4109 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4110 (get_longjmp_target): Ditto.
4111 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4112 (sh64_extract_struct_value_address): Ditto.
4113 (sh_push_arguments): Ditto.
4114 (sh64_push_arguments): Ditto.
4115 * remote-vxsparc.c (vx_read_register): Ditto.
4116 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4117 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4118 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4119 * mipsv4-nat.c (get_longjmp_target): Ditto.
4120 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4121 * mips-nat.c (get_longjmp_target): Ditto.
4122 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4123 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4124 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4125 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4126 * irix5-nat.c (get_longjmp_target): Ditto.
4127 * irix4-nat.c (get_longjmp_target): Ditto.
4128 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4129 (ia64_push_arguments): Ditto.
4130 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4131 * h8300-tdep.c (h8300_push_arguments): Ditto.
4132 (h8300_store_return_value): Ditto.
4133 (h8300_extract_struct_value_address): Ditto.
4134 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4135 (frv_push_arguments): Ditto.
4136 * avr-tdep.c (avr_pointer_to_address): Ditto.
4137 (avr_push_arguments): Ditto.
4138 * arm-tdep.c (arm_push_dummy_call): Ditto.
4139 (arm_get_longjmp_target): Ditto.
4140 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4141 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4142 (alpha_get_longjmp_target): Ditto.
4143
ae0167b9
AC
4144 * solib-irix.c (extract_mips_address): Inline extract_address,
4145 replacing it with extract_signed_integer.
4146 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4147 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4148 (first_link_map_member, open_symbol_file_object): Ditto.
4149 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4150 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4151 (LM_NEXT, LM_NAME): Ditto.
4152
44d88583
RH
41532003-06-01 Richard Henderson <rth@redhat.com>
4154
98a8e1e5
RH
4155 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4156 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4157 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4158 (alpha_cannot_store_register): Likewise.
4159 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4160 * alpha-nat.c (supply_gregset): Likewise.
4161 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4162
310e9b6a
AC
41632003-06-01 Andrew Cagney <cagney@redhat.com>
4164
4165 * infcall.c (call_function_by_hand): Update comment on
4166 DEPRECATED_DUMMY_WRITE_SP.
4167
4168 * mips-tdep.c (mips_gdbarch_init): Do not set
4169 deprecated_dummy_write_sp.
4170 (mips_eabi_push_dummy_call): Set the SP register.
4171 (mips_o64_push_dummy_call): Set the SP register.
4172 (mips_o32_push_dummy_call): Set the SP register.
4173 (mips_n32n64_push_dummy_call): Set the SP register.
4174
5ab84872
RH
41752003-06-01 Richard Henderson <rth@redhat.com>
4176
98a8e1e5
RH
4177 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4178 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4179 (supply_gregset): Likewise.
4180 * alpha-tdep.c (alpha_store_return_value): Likewise.
4181 (alpha_get_longjmp_target): Likewise.
4182 (alpha_register_name): Constify array.
4183 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4184 deprecated_register_size, deprecated_register_bytes,
4185 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4186 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4187 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4188
09cc52fd
RH
41892003-06-01 Richard Henderson <rth@redhat.com>
4190
4191 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4192 from arg_reg_buffer to regcache to avoid double conversion.
4193
c7f16359
MK
41942003-06-01 Mark Kettenis <kettenis@gnu.org>
4195
4196 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4197 SP_REGNUM.
4198 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4199 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4200
7131cb6e
RH
42012003-06-01 Richard Henderson <rth@redhat.com>
4202
98a8e1e5
RH
4203 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4204 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4205
f3e0f90b
RH
42062003-06-01 Richard Henderson <rth@redhat.com>
4207
98a8e1e5
RH
4208 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4209 not overlapping PC_REGNUM.
f3e0f90b 4210
c88e30c0
RH
42112003-06-01 Richard Henderson <rth@redhat.com>
4212
98a8e1e5
RH
4213 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4214 alpha_push_arguments. Don't dump argument register data to
4215 the target stack. Fix float and 128-bit long double semantics.
4216 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4217 (alpha_fix_call_dummy): Remove.
4218 (alpha_call_dummy_words): Remove.
4219 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4220
f1a559ae
RH
42212003-06-01 Richard Henderson <rth@redhat.com>
4222
4223 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4224
5e045346
AC
42252003-06-01 Andrew Cagney <cagney@redhat.com>
4226
95404a3e
AC
4227 * mips-tdep.c (is_mips16_addr): New function.
4228 (make_mips16_addr, unmake_mips16_addr): New functions.
4229 (pc_is_mips16, mips_fetch_instruction): Use.
4230 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4231 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4232 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4233 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4234 TARGET_MIPS.
4235 * config/mips/tm-mips.h: Update copyright.
4236 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4237 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4238 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4239 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4240 (TM_PRINT_INSN_MACH): Delete.
4241 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4242
5e045346
AC
4243 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4244 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4245 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4246 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4247 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4248 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4249 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4250 mips*-*-riscos* and mips*-*-sysv* onto mips.
4251 * config/mips/mips64.mt: New file.
4252 * config/mips/mips.mt: New file.
4253 * config/mips/littlemips.mt: Delete file.
4254 * config/mips/decstation.mt: Delete file.
4255 * config/mips/vr4300el.mt: Delete file.
4256 * config/mips/vr5000el.mt: Delete file.
4257 * config/mips/vr5000.mt: Delete file.
4258 * config/mips/vr4100.mt: Delete file.
4259 * config/mips/vr4xxxel.mt: Delete file.
4260 * config/mips/vr4300.mt: Delete file.
4261 * config/mips/vr4xxx.mt: Delete file.
4262 * config/mips/bigmips.mt: Delete file.
4263 * config/mips/bigmips64.mt: Delete file.
4264 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4265 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4266 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4267 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4268 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4269 "tm-bigmips.h".
4270 * config/mips/tm-irix3.h: Ditto.
4271 * config/mips/tm-mipsv4.h: Ditto.
4272 * config/mips/tm-embed.h: Ditto.
4273 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4274 "tm-bigmips64.h".
4275 * config/mips/tm-vr5000el.h: Delete file.
4276 * config/mips/tm-tx39l.h: Delete file.
4277 * config/mips/tm-vr4300el.h: Delete file.
4278 * config/mips/tm-vr4xxxel.h: Delete file.
4279 * config/mips/tm-vr4300.h: Delete file.
4280 * config/mips/tm-vr4100.h: Delete file.
4281 * config/mips/tm-vr4xxx.h: Delete file.
4282 * config/mips/tm-vr5000.h: Delete file.
4283 * config/mips/tm-embedl64.h: Delete file.
4284 * config/mips/tm-embedl.h: Delete file.
4285 * config/mips/tm-embed64.h: Delete file.
4286 * config/mips/tm-bigmips64.h: Delete file.
4287 * config/mips/tm-bigmips.h: Delete file.
4288
2473a4a9
MK
42892003-06-01 Mark Kettenis <kettenis@gnu.org>
4290
97a5b208
MK
4291 Fix gdb/1216.
4292 * shnbsd-nat.c: Include "sh-tdep.h".
4293
2473a4a9
MK
4294 From Richard Henderson <rth@redhat.com>:
4295 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4296
e0f7ec59
AC
42972003-05-31 Andrew Cagney <cagney@redhat.com>
4298
4299 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4300 forward declaration.
4301 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4302 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4303 (mips_find_saved_regs): Use set_reg_offset.
4304 (mips_frame_init_saved_regs): Delete function.
4305 (mips_pop_frame): Call mips_find_saved_regs instead of
4306 DEPRECATED_FRAME_INIT_SAVED_REGS.
4307
68dcc709
AC
43082003-05-31 Andrew Cagney <cagney@redhat.com>
4309
4310 * mips-tdep.c (mips_gdbarch_init): Do not set
4311 deprecated_max_register_raw_size, register_virtual_size, and
4312 deprecated_max_register_virtual_size.
4313
cfc14b3a
MK
43142003-05-31 Mark Kettenis <kettenis@gnu.org>
4315
6405b0a6
MK
4316 * i386-tdep.c: Include "dwarf2-frame.h".
4317 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4318 * Makefile.in (i386-tdep.o): Update dependencies.
4319
cfc14b3a
MK
4320 * dwarf2-frame.c, dwarf2-frame.h: New files.
4321 * Makefile.in (SFILES): Add dwarf2-frame.c.
4322 (dwarf2_frame_h): Define.
4323 (COMMON_OBS): Add dwarf2-frame.o.
4324 (dwarf2-frame.o): Add dependencies.
4325
6a2751d2
AJ
43262003-05-31 Andreas Jaeger <aj@suse.de>
4327
4328 * x86-64-linux-nat.c: Fix comment.
4329
1c3545ae
MK
43302003-05-31 Mark Kettenis <kettenis@gnu.org>
4331
10f93086
MK
4332 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4333 function signature.
4334
1c3545ae
MK
4335 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4336 have a sigcontext_addr handler.
4337 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4338 sigcontext_addr handler.
4339
e11c53d2
AC
43402003-05-31 Andrew Cagney <cagney@redhat.com>
4341
4342 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4343 (print_fp_register_row): Replace do_fp_register_row.
4344 (mips_print_fp_register): Add "file" and "frame" parameters.
4345 (mips_print_register): Add "file" and "frame" parameters.
4346 (mips_print_registers_info): Replace mips_do_registers_info.
4347 (mips_gdbarch_init): Set print_registers_info instead of
4348 deprecated_do_registers_info.
4349 (mips_read_fp_register_single): Add "frame" parameter.
4350 (mips_read_fp_register_double): Add "frame" parameter.
4351
a3386186
MK
43522003-05-31 Mark Kettenis <kettenis@gnu.org>
4353
70913449
MK
4354 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4355 Fixes a bug where GDB would print the wrong register names for
4356 targets without SSE.
4357
2b5e0749
MK
4358 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4359 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4360 registers.
4361
4362 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4363 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4364 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4365 TDEP->sc_sp_offset.
4366
a3386186
MK
4367 From Michal Ludvig <mludvig@suse.cz>:
4368 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4369 and `sc_num_regs'.
4370 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4371 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4372 I386_ST0_REGNUM): Move here from...
4373 * i386-tdep.c: ... here.
4374 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4375 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4376 registers if possible.
4377 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4378 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4379 Remove variables.
4380 (i386bsd_sc_reg_offset): New variable.
4381 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4382 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4383 TDEP->sc_sp_offset.
4384 (i386fbsd_sc_reg_offset): New variable.
4385 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4386 TDEP->sc_num_regs.
4387 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4388 variables.
4389 (i386fbsd4_sc_reg_offset): New variable.
4390 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4391 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4392 TDEP->sc_sp_offset.
4393 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4394 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4395 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4396 Remove variables.
4397 (i386nbsd_sc_reg_offset): New variable.
4398 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4399 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4400 TDEP->sc_sp_offset.
4401 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4402 Remove variables.
4403 (i386obsd_sc_reg_offset): New variable.
4404 (i386obsd_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 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4408 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4409 for frame pointer offset in `struct sigcontext'.
4410
25ab4790
AC
44112003-05-31 Andrew Cagney <cagney@redhat.com>
4412
4413 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4414 architecture methods call_dummy_words, sizeof_call_dummy_words,
4415 push_return_address, store_struct_return, and fix_call_dummy. Set
4416 push_dummy_call instead of deprecated_push_arguments.
4417 (mips_store_struct_return): Delete function.
4418 (mips_fix_call_dummy): Delete function.
4419 (mips_push_return_address): Delete function.
4420 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4421 RA_REGNUM and T9_REGNUM.
4422 (mips_n32n64_push_dummy_call): Ditto for
4423 mips_n32n64_push_arguments.
4424 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4425 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4426
6a65450a
AC
44272003-05-31 Andrew Cagney <cagney@redhat.com>
4428
4429 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4430 "dummy_addr" to "bp_addr".
4431 * infcall.c (call_function_by_hand): Pass "funaddr" to
4432 gdbarch_push_dummy_call.
4433 * gdbarch.h, gdbarch.c: Re-generate.
4434 * i386-tdep.c (i386_push_dummy_call): Update.
4435 * arm-tdep.c (arm_push_dummy_call): Update.
4436 * d10v-tdep.c (d10v_push_dummy_call): Update.
4437
c4f35dd8
MK
44382003-05-31 Mark Kettenis <kettenis@gnu.org>
4439
4440 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4441 variable declarations.
4442 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4443 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4444 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4445 x86_64_init_frame_pc, x86_64_init_frame_pc,
4446 x86_64_function_has_prologue): Remove prototypes.
4447 (X86_64_NUM_GREGS): New define.
4448 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4449 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4450 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4451 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4452 XMM1_REGNUM): Remove defines.
4453 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4454 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4455 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4456 X86_64_XMM1_REGNUM): New defines.
4457 (struct x86_64_register_info): Renamed from `struct
4458 register_info'. Remove `size' member.
4459 (x86_64_register_info_table): Remove variable.
4460 (x86_64_register_info): New variable.
4461 (X86_64_NUM_REGS): New define.
4462 (X86_64_NUM_GREGS): Remove define.
4463 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4464 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4465 Remove variables.
4466 (x86_54_dwarf2_reg_to_regnum): Remove function.
4467 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4468 (x86_64_dwarf_reg_to_regnum): New function.
4469 (x86_64_register_name): Rewrite.
4470 (x86_64_register_raw_size): Remove function.
4471 (x86_64_register_byte_table): Remove variable.
4472 (x86_64_register_byte): Remove function.
4473 (x86_64_register_virtual_type): Remove function.
4474 (x86_64_register_type): New function.
4475 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4476 x86_64_register_convert_to_raw): Remove functions.
4477 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4478 (x86_64_use_struct_convention): Make static. Adjust for renamed
4479 defines.
4480 (x86_64_frame_init_saved_regs): Remove function.
4481 (x86_64_push_arguments): Make static. Change to accept a regcache
4482 as argument.
4483 (x86_64_store_return_value, x86_64_extract_return_value): Make
4484 static. Rewrite based on i386 counterparts.
4485 (x86_64_push_dummy_call): New function.
4486 (X86_64_NUM_SAVED_REGS): New define.
4487 (x86_64_register_number): Remove function.
4488 (x86_64_store_struct_return): Remove function.
4489 (x86_64_frameless_function_invocation,
4490 x86_64_function_has_prologue): Remove functions.
4491 (PROLOG_BUFSIZE): Remove define.
4492 (struct x86_64_frame_cache): New structure.
4493 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4494 x86_64_frame_cache, x86_64_frame_this_id,
4495 x86_64_frame_prev_register, x86_64_frame_p,
4496 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4497 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4498 functions.
4499 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4500 variables.
4501 (x86_64_skip_prologue): Rewrite in terms of
4502 x86_64_analyze_prologue.
4503 (x86_64_frame_base_address): New function.
4504 (x86_64_frame_base): New variable.
4505 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4506 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4507 set deprecated_fp_regnum, deprecated_register_size,
4508 deprecated_register_bytes, register_raw_size, register_byte,
4509 register_virtual_type, register_convertiable,
4510 register_convert_to_virtual, convert_to_raw,
4511 deprecated_get_saved_register, deprecated_target_read_fp,
4512 deprecated_push_arguments, deprecated_push_return_address,
4513 deprecated_pop_frame, deprecated_store_struct_return,
4514 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4515 frameless_function_invocation, deprecated_frame_saved_pc,
4516 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4517 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4518 deprecated_init_frame_pc and virtual_frame_pointer. Call
4519 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4520 and x86_64_frame_p. Call frame_base_set_default to register
4521 x86_64_frame_base.
4522 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4523 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4524 (_initialize_x86_64_tdep): Remove function.
4525 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4526 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4527 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4528 define.
4529 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4530 (x86_64_linux_sigcontext_addr): Rewrite.
4531 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4532 x86_64_linux_frame_saved_pc): Remove functions.
4533 (x86_64_linux_pc_in_sigtramp): Renamed from
4534 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4535 trampoline.
4536 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4537 Remove_functions.
4538 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4539 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4540 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4541 (x86_64_regmap): Rename to regmap.
4542 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4543 x86_64_num_gregs.
4544 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4545 x86_64_regmap.
4546 (x86_64_fxsave_offset): Remove function.
4547 (supply_fpregset): Simply call x86_64_supply_fxsave.
4548 (fill_fpregset): Simply call x86_64_fill_fxsave.
4549 (fetch_inferior_registers, store_inferior_registers): Avoid
4550 asignment in if-statement.
4551 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4552 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4553 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4554 (fetch_core_registers): Remove function.
4555 (linux_elf_core_fns): Remove.
4556 (offsetoff): Don't define.
4557 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4558 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4559 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4560 add core-regset.o.
4561 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4562 protection against multiple includes instead of NM_X86_64_h. Add
4563 various comments. Include "config/nm-linux.h". Don't include
4564 <signal.h>.
4565 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4566 GET_THREAD_SIGNALS): Remove defines.
4567 (x86_64_register_u_addr, kernel_u_size,
4568 lin_thread_get_thread_signals): Remove prototypes.
4569 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4570 [HAVE_LINK_H]: Don't include "solib.h".
4571 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4572 * config/i386/tm-x86-64linux.h: Fix comments.
4573 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4574 x86-64-tdep.o): Update dependencies.
4575
c25083af
AC
45762003-05-30 Andrew Cagney <cagney@redhat.com>
4577
c8f55a7b
AC
4578 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4579 Change parameter type to a "struct regcache *".
4580
c25083af
AC
4581 * gdbarch.sh: Regardless of the multi-arch level, always define
4582 the macro when not already defined.
4583 * gdbarch.h, gdbarch.c: Re-generate.
4584
fbe586ae
RH
45852003-05-30 Richard Henderson <rth@redhat.com>
4586
4587 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4588 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4589 (alpha_mdebug_frame_this_id): Likewise.
4590 (alpha_mdebug_frame_prev_register): Likewise.
4591 (alpha_mdebug_frame_base_address): Likewise.
4592 (alpha_mdebug_frame_locals_address): Likewise.
4593 (alpha_mdebug_frame_args_address): Likewise.
4594 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4595 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4596 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4597 loop increment.
4598 (alpha_heuristic_frame_this_id): Make static.
4599 (alpha_heuristic_frame_prev_register): Likewise.
4600 (alpha_heuristic_frame_base_address): Likewise.
4601 * alpha-tdep.h: Update.
4602
acd5c798
MK
46032003-05-30 Mark Kettenis <kettenis@gnu.org>
4604
4605 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4606 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4607 defenitions.
4608 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4609 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4610 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4611 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4612 I386_ST0_REGNUM): New defines.
4613 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4614 codestream_get): Remove define.
4615 (codestream_next_addr, condestream_addr, condestream_buf,
4616 codestream_off, codestream_cnt): Remove variables.
4617 (codestream_fill, codestream_seek, codestream_read): Remove
4618 functions.
4619 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4620 functionality.
4621 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4622 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4623 i386_frame_saved_pc, i386_saved_pc_after_call,
4624 i386_frame_num_args, i386_frame_init_saved_regs,
4625 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4626 i386_push_arguments): Remove functions.
4627 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4628 functionality. Use i386_analyze_prologue instead of
4629 i386_get_frame_setup.
4630 (I386_NUM_SAVED_REGS): New define.
4631 (struct i386_frame_cache): New structure.
4632 (i386_alloc_frame_cache, i386_analyze_struct_return,
4633 i386_skip_probe, i386_analyze_frame_setup,
4634 i386_analyze_register_saves, i386_analyze_prologue,
4635 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4636 i386_frame_prev_register, i386_sigtramp_frame_cache,
4637 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4638 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4639 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4640 New functions.
4641 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4642 New variables.
4643 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4644 I386_EAX_REGNUM and I386_EDX_REGNUM.
4645 (i386_extract_return_value, i386_store_return_value): Use
4646 I386_ST0_REGNUM where appropriate.
4647 (i386_extract_struct_value_address): Rewrite to use extract_address.
4648 (i386_svr4_pc_in_sigtramp): Add comment.
4649 (i386_svr4_sigcontext_addr): Rewrite.
4650 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4651 TDEP->sc_sp_offset.
4652 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4653 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4654 of new defines. Set push_dummy_call, don't set
4655 deprecated_push_arguments, deprecated_push_return_address,
4656 deprecated_pop_frame. Don't set parm_boundary. Don't set
4657 deprecated_frame_chain, deprecated_frame_saved_pc,
4658 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4659 save_dummy_frame_tos, unwind_pc. Call
4660 frame_unwind_append_predicate and frame_base_set_default. Don't
4661 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4662 Don't set frameless_function_invocation. Don't set
4663 deprecated_register_bytes, deprecated_register_size,
4664 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4665 * i386-linux-tdep.c: Fix formatting in some comments.
4666 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4667 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4668 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4669 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4670 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4671 redundant parentheses.
4672 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4673 (i386_linux_sigcontext_addr): Use it. Rewrite.
4674 (find_minsym_and_objfile): Change name of second argument.
4675 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4676 changed. Use frame_pc_unwind instead of
4677 DEPRECATED_SAVED_PC_AFTER_CALL.
4678 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4679 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4680 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4681 unwinder.
4682 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4683 "dummy-frame.h".
4684 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4685 (_initialize_i386_cygwin_tdep): New prototype.
4686 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4687 deprecated_frame_chain_valid.
4688 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4689 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4690 Rely on the SVR4 defaults.
4691 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4692 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4693
c89b70f1
AC
46942003-05-30 Andrew Cagney <cagney@redhat.com>
4695
4696 * infcall.c (call_function_by_hand): Always call
4697 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4698
85b32d22
RH
46992003-05-30 Richard Henderson <rth@redhat.com>
4700
c89b70f1
AC
4701 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4702 increment.
85b32d22 4703
bfe51b1e
JB
47042003-05-29 Jim Blandy <jimb@redhat.com>
4705
4706 Use gdbarch methods for solib stuff on PowerPC Linux.
4707 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4708 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4709 show through.
4710 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4711 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4712 giving the same effect as the #definitions above.
4713
1abf022c
AF
47142003-05-29 Adam Fedor <fedor@gnu.org>
4715
4716 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4717 (find_implementation_from_class): Replace it with the standard
4718 case i.e. do nothing.
4719
d2427a71
RH
47202003-05-29 Richard Henderson <rth@redhat.com>
4721
4722 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4723 (alpha_linux_sigtramp_offset): Use it. Make static.
4724 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4725 update for new frame model.
4726 * alpha-mdebug-tdep.c: New file.
4727 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4728 (alpha_osf1_init_abi): Install it.
4729 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4730 (linked_proc_desc_table): Remove.
4731 (alpha_frame_past_sigtramp_frame): Remove.
4732 (alpha_dynamic_sigtramp_offset): Remove.
4733 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4734 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4735 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4736 (push_sigtramp_desc): Remove.
4737 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4738 (alpha_cannot_store_register): Likewise.
4739 (alpha_sigcontext_addr): Remove.
4740 (alpha_find_saved_regs): Remove.
4741 (alpha_frame_init_saved_regs): Remove.
4742 (alpha_init_frame_pc_first): Remove.
4743 (read_next_frame_reg): Remove.
4744 (alpha_frame_saved_pc): Remove.
4745 (alpha_saved_pc_after_call): Remove.
4746 (temp_proc_desc, temp_saved_regs): Remove.
4747 (alpha_about_to_return): Remove.
4748 (cached_proc_desc): Remove.
4749 (alpha_frame_chain): Remove.
4750 (alpha_print_extra_frame_info): Remove.
4751 (alpha_init_extra_frame_info): Remove.
4752 (alpha_frame_locals_address): Remove.
4753 (alpha_frame_args_address): Remove.
4754 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4755 (alpha_push_dummy_frame): Remove.
4756 (alpha_pop_frame): Remove.
4757 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4758 (alpha_read_insn): New.
4759 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4760 for different insn encodings.
4761 (alpha_in_lenient_prologue): Remove.
4762 (struct alpha_sigtramp_unwind_cache): New.
4763 (alpha_sigtramp_frame_unwind_cache): New.
4764 (alpha_sigtramp_register_address): New.
4765 (alpha_sigtramp_frame_this_id): New.
4766 (alpha_sigtramp_frame_prev_register): New.
4767 (alpha_sigtramp_frame_unwind): New.
4768 (alpha_sigtramp_frame_p): New.
4769 (struct alpha_heuristic_unwind_cache): New.
4770 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4771 don't count nop insns that occur between functions.
4772 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4773 heuristic_proc_desc, but without the mdebug wrapping.
4774 (alpha_heuristic_frame_this_id): New.
4775 (alpha_heuristic_frame_prev_register): New.
4776 (alpha_heuristic_frame_unwind): New.
4777 (alpha_heuristic_frame_p): New.
4778 (alpha_heuristic_frame_base_address): New.
4779 (alpha_heuristic_frame_base): New.
4780 (alpha_unwind_dummy_id): New.
4781 (alpha_unwind_pc): New.
4782 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4783 frame related deprecated initializations; install replacements.
4784 (alpha_dump_tdep): Remove.
4785 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4786 (alpha_read_insn, alpha_after_prologue,
4787 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4788 alpha_heuristic_frame_prev_register,
4789 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4790 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4791 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4792 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4793
93ec1121
AC
47942003-05-29 Andrew Cagney <cagney@redhat.com>
4795
4796 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4797 dependant on the availability of ASSERT_FUNCTION.
4798 (ASSERT_FUNCTION): Do not define when there is no function name.
4799
98f08d3d
KB
48002003-05-29 Kevin Buettner <kevinb@redhat.com>
4801
4802 From Jimi X <jimix@watson.ibm.com>:
4803 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4804
0897f59b
JB
48052003-05-28 Jim Blandy <jimb@redhat.com>
4806
4807 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4808 argument to ptrace to int; the system headers should give it the
4809 right type, and pointers don't fit in ints on powerpc64-*-*.
4810
14898363
L
48112003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4812
4813 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4814 DW_TAG_catch_block.
4815
a7a48797
EZ
48162003-05-26 Elena Zannoni <ezannoni@redhat.com>
4817
4818 * stabsread.c (dbx_lookup_type): Make static.
4819 (read_type): Ditto.
4820 (add_undefined_type): Ditto.
4821 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4822 not export.
4823
f5479e9c
EZ
48242003-05-26 Elena Zannoni <ezannoni@redhat.com>
4825
4826 * hpread.c (hpread_has_name): Make static.
4827 (hpread_psymtab_to_symtab): Ditto.
4828 (file_exists): Ditto.
4829 (hpread_call_pxdb): Ditto.
4830 (hpread_pxdb_needed): Ditto.
4831 (hpread_quick_traverse): Ditto.
4832 (hpread_get_header): Ditto.
4833 (hpread_get_lntt): Ditto.
4834 (hpread_get_slt): Ditto.
4835 (class_of): Ditto.
4836
eb2e12d7
AS
48372003-05-25 Andreas Schwab <schwab@suse.de>
4838
78bf922a
AS
4839 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4840 stack_align and deprecated_extra_stack_alignment_needed.
4841 (m68k_stack_align): Delete.
4842
eb2e12d7
AS
4843 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4844 (m68k_register_virtual_size): Likewise.
4845 (altos_skip_prologue): Remove obsolete function.
4846 (isi_frame_num_args): Likewise.
4847 (news_frame_num_args): Likewise.
4848 (m68k_fix_call_dummy): Make static.
4849 (m68k_push_dummy_frame): Likewise.
4850 (m68k_pop_frame): Likewise.
4851 (m68k_skip_prologue): Likewise.
4852 (m68k_frame_init_saved_regs): Likewise.
4853 (m68k_saved_pc_after_call): Likewise.
4854 (m68k_get_longjmp_target): Make multi-arch.
4855 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4856 structure. Register m68k_get_longjmp_target if enabled.
4857 * m68k-tdep.h (struct gdbarch_tdep): Define.
4858 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4859
4860 * Makefile.in (config.status): Also depend on configure.tgt
4861 and configure.host.
4862 (m68klinux-tdep.o): Update dependencies.
4863 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4864 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4865 (M68K_LINUX_JB_PC): Define.
4866 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4867 and take additional parameter.
4868 (m68k_linux_sigtramp_saved_pc): Update.
4869 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4870 m68k_linux_pc_in_sigtramp, in_plt_section,
4871 find_solib_trampoline_target.
4872 * config/m68k/tm-linux.h: Don't include any tm headers.
4873 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4874 (JB_ELEMENT_SIZE): Likewise.
4875 (JB_PC): Likewise.
4876 (GET_LONGJMP_TARGET): Likewise.
4877 (IN_SIGTRAMP): Likewise.
4878 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4879
eb2c22dc
MK
48802003-05-25 Mark Kettenis <kettenis@gnu.org>
4881
4882 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4883 (sparc32_push_arguments): Re-implement by calling
4884 sparc32_do_push_arguments.
4885
44b7b84e
MK
48862003-05-25 Mark Kettenis <kettenis@gnu.org>
4887
4888 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4889 SPARC_O1_REGNUM): New defines.
4890 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4891 (sparc32_store_return_value): New function.
4892 (sparc_extract_struct_value_address): Rewrite to operate on a
4893 regcache.
4894 (sparc_gdbarch_init): Don't set
4895 deprecated_extract_struct_value_address. Set
4896 extract_struct_value_address instead. Don't set
4897 deprecated_extract_return_value and deprecated_store_return_value
4898 for 32-bit targets. Set extract_return_value and
4899 store_return_value instead.
4900 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4901 DEPRECTAED_EXTRACT_RETURN_VALUE,
4902 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4903 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4904 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4905 (sparc_store_return_value): Remove prototype.
4906 (sparc32_store_return_value): New prototype.
4907 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4908 Adjust prototypes.
4909
f6ad61e3
MK
49102003-05-24 Mark Kettenis <kettenis@gnu.org>
4911
4912 * sparcnbsd-tdep.c: Include "gdb_string.h".
4913
b276f1bb
AC
49142003-05-23 Andrew Cagney <cagney@redhat.com>
4915
4916 * p-valprint.c (pascal_val_print): Replace extract_address with
4917 the inline equivalent extract_unsigned_integer.
4918 * jv-valprint.c (java_value_print): Ditto.
4919 * ada-valprint.c (ada_val_print_1): Ditto.
4920 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4921
e76c5fcc
TR
49222003-05-23 Theodore A. Roth <troth@openavr.org>
4923
4924 * blockframe.c (frameless_look_for_prologue): Remove unused
4925 after_prologue variable.
4926
2cdd89cb
MK
49272003-05-23 Mark Kettenis <kettenis@gnu.org>
4928
4929 * blockframe.c (get_pc_function_start): Rewrite to avoid
4930 asignments in if-statements.
4931
182d43bc
EZ
49322003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4933
4934 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 4935 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
4936 files, don't relocate absolute symbols (and do use mst_abs).
4937
e8f3fcdd
AC
49382003-05-23 Andrew Cagney <cagney@redhat.com>
4939
4940 * objc-lang.c: Include "gdb_assert.h".
4941 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4942 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4943 (gdb_check, gdb_check_fatal): Delete functions.
4944 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4945 gdb_assert.
4946 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4947 * Makefile.in (objc-lang.o): Update dependencies.
4948
3c23e6fb
ILT
49492003-05-22 Ian Lance Taylor <ian@airs.com>
4950
4951 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4952 with fprintf_filtered, not fprintf_unfiltered.
4953
af1342ab
AC
49542003-05-22 Andrew Cagney <cagney@redhat.com>
4955
4956 * stack.c (frame_info): Inline extract_address, replacing it with
4957 extract_unsigned_integer.
4958 * findvar.c (unsigned_pointer_to_address): Ditto.
4959 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4960 * dwarf2expr.c (dwarf2_read_address): Ditto.
4961 * frame.c (frame_pc_unwind): Update comment.
4962 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4963
47e242ec
JJ
49642003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4965
4966 * infptrace.c (detach): Call print_sys_errmsg rather than
4967 perror_with_name to issue warning message when errno is non-zero
4968 after calling ptrace detach.
4969
e2ac8128
JB
49702003-05-21 J. Brobecker <brobecker@gnat.com>
4971
4972 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4973 macro definitions from here...
4974 * hppa-tdep.c: ...to there.
4975
92b3541e
KB
49762003-05-20 Kevin Buettner <kevinb@redhat.com>
4977
4978 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4979 register_ptrace_addr(). Fix all callers.
4980
55809acb
AS
49812003-05-21 Andreas Schwab <schwab@suse.de>
4982
4983 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4984 dependencies.
4985 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4986 end.
4987 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4988 (_initialize_m68k_linux_tdep): New function.
4989 (m68k_linux_frame_saved_pc): Make static.
4990 (m68k_linux_extract_return_value): Likewise.
4991 (m68k_linux_store_return_value): Likewise.
4992 (m68k_linux_extract_struct_value_address): Likewise.
4993 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4994 Remove.
4995 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4996 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4997 (DEPRECATED_FRAME_SAVED_PC): Remove.
4998
0fbc10f7
KW
49992003-05-20 Kris Warkentin <kewarken@qnx.com>
5000
5001 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5002 regset numbering rather than our own.
5003
58da2eb2
DC
50042003-05-19 David Carlton <carlton@bactrian.org>
5005
5006 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5007
1fcb5155
DC
50082003-05-19 David Carlton <carlton@bactrian.org>
5009
5010 Partial fix for PR c++/827.
5011 * cp-support.h: Include symtab.h.
5012 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5013 * cp-namespace.c: Update contributors.
5014 (cp_lookup_symbol_nonlocal): New.
5015 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5016 (lookup_symbol_file): Ditto.
5017 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5018 * block.h: Declare block_scope, block_using, block_global_block.
5019 * block.c (block_scope): New.
5020 (block_using, block_global_block): Ditto.
5021 * Makefile.in (cp_support_h): Depend on symtab_h.
5022 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5023
5f9a71c3
DC
50242003-05-19 David Carlton <carlton@bactrian.org>
5025
5026 * language.h (struct language_defn): Add 'la_value_of_this'
5027 and 'la_lookup_symbol_nonlocal' members.
5028 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5029 lookup_symbol_static, lookup_symbol_global,
5030 lookup_symbol_aux_block.
5031 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5032 if we should search fields of this and how to do static/global
5033 lookup.
5034 (lookup_symbol_aux_block): Make extern.
5035 (basic_lookup_symbol_nonlocal): New.
5036 (lookup_symbol_static, lookup_symbol_global): Ditto.
5037 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5038 'la_lookup_symbol_nonlocal' members.
5039 * c-lang.c (c_language_defn, cplus_language_defn)
5040 (asm_language_defn, minimal_language_defn): Ditto.
5041 * jv-lang.c (java_language_defn): Ditto.
5042 * language.c (unknown_language_defn, auto_language_defn)
5043 (local_language_defn): Ditto.
5044 * m2-lang.c (m2_language_defn): Ditto.
5045 * objc-lang.c (objc_language_defn): Ditto.
5046 * scm-lang.c (scm_language_defn): Ditto.
5047 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5048 * p-lang.c (pascal_language_defn): Ditto for both.
5049 * Makefile.in (f-lang.o): Depend on value_h.
5050 (p-lang.o): Ditto.
5051
89a9d1b1
DC
50522003-05-19 David Carlton <carlton@bactrian.org>
5053
5054 * block.h: Declare block_static_block.
5055 * block.c (block_static_block): New.
5056 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5057 lookup_symbol_aux_local, calling block_static_block instead.
5058 (lookup_symbol_aux_local): Delete 'static_block' argument.
5059
eed3f8ab
DC
50602003-05-19 David Carlton <carlton@bactrian.org>
5061
5062 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5063
a09d8bda
ML
50642003-05-19 Michal Ludvig <mludvig@suse.cz>
5065
5066 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5067 register numbers mapping.
5068
69636828
AF
50692003-05-18 Adam Fedor <fedor@gnu.org>
5070
5071 * symtab.c (completion_list_objc_symbol): New function.
5072 (make_symbol_completion_list): Use it to add ObjC symbols
5073 when looking though the list.
5074 (language_search_unquoted_string): New function.
5075 (make_file_symbol_completion_list): Use it.
5076
55baeb84
AS
50772003-05-18 Andreas Schwab <schwab@suse.de>
5078
d0b45d99
AS
5079 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5080 dependencies.
5081 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5082 as m68k_linux_extract_return_value.
5083 (DEPRECATED_STORE_RETURN_VALUE): Define as
5084 m68k_linux_store_return_value.
5085 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5086 m68k_linux_extract_struct_value_address.
5087 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5088 get_next_frame, get_frame_base, get_frame_pc.
5089 (m68k_linux_frame_saved_pc): Use get_frame_base.
5090 (m68k_linux_extract_return_value): New function.
5091 (m68k_linux_store_return_value): New function.
5092 (m68k_linux_extract_struct_value_address): New function.
5093 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5094
55baeb84
AS
5095 * c-exp.y (typebase): Remove duplicate occurence of
5096 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5097 of lookup_signed_typename.
55baeb84 5098
b6b08ebf
MK
50992003-05-18 Mark Kettenis <kettenis@gnu.org>
5100
5101 * dwarf2loc.c (find_location_expression): Change type of second
5102 argument to `size_t *'.
5103 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5104 for size variable.
5105
5ad1c190
DC
51062003-05-18 David Carlton <carlton@bactrian.org>
5107
5108 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5109 'linkage_name'. Add comment.
5110 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5111 'linkage_name'.
5112 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5113 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5114 (lookup_block_symbol): Ditto.
5115
b8b527c5
AC
51162003-05-16 Andrew Cagney <cagney@redhat.com>
5117
5118 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5119 * gdbarch.h, gdbarch.c: Re-generate.
5120 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5121 * TODO (REGISTER_BYTES): Delete reference.
5122 * alpha-tdep.c (alpha_gdbarch_init): Update.
5123 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5124 * x86-64-tdep.c (x86_64_init_abi): Update.
5125 * vax-tdep.c (vax_gdbarch_init): Update.
5126 * v850-tdep.c (v850_gdbarch_init): Update.
5127 * sparc-tdep.c (sparc_gdbarch_init): Update.
5128 * sh-tdep.c (sh_gdbarch_init): Update.
5129 * s390-tdep.c (s390_gdbarch_init): Update.
5130 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5131 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5132 (ns32k_gdbarch_init_32382): Update.
5133 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5134 * mcore-tdep.c (mcore_gdbarch_init): Update.
5135 * m68k-tdep.c (m68k_gdbarch_init): Update.
5136 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5137 * ia64-tdep.c (ia64_gdbarch_init): Update.
5138 * i386-tdep.c (i386_gdbarch_init): Update.
5139 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5140 * hppa-tdep.c (hppa_gdbarch_init): Update.
5141 * h8300-tdep.c (h8300_gdbarch_init): Update.
5142 * frv-tdep.c (frv_gdbarch_init): Update.
5143 * cris-tdep.c (cris_gdbarch_init): Update.
5144 * avr-tdep.c (avr_gdbarch_init): Update.
5145 * arm-tdep.c (arm_gdbarch_init): Update.
5146 * sparc-tdep.c (sparc_pop_frame): Update.
5147 * rs6000-tdep.c (rs6000_pop_frame): Update.
5148 * remote.c (init_remote_state): Update.
5149 (remote_prepare_to_store): Update.
5150 * remote-vx.c (vx_prepare_to_store): Update.
5151 * remote-sds.c (sds_fetch_registers): Update.
5152 (sds_prepare_to_store): Update.
5153 * remote-array.c: Update.
5154 * regcache.c (init_legacy_regcache_descr): Update.
5155 (init_regcache_descr): Update.
5156 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5157 (mips_o64_extract_return_value): Update.
5158 * irix5-nat.c (fetch_core_registers): Update.
5159 * irix4-nat.c (fetch_core_registers): Update.
5160 * i386-tdep.h: Update.
5161 * hppa-tdep.c (pa_do_registers_info): Update.
5162 (pa_do_strcat_registers_info): Update.
5163 * cris-tdep.c (cris_register_bytes_ok): Update.
5164 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5165 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5166 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5167 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5168 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5169 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5170 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5171 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5172 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5173 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5174 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5175 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5176 (REGISTER_BYTES_OK): Update.
5177 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5178 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5179
ee2842e2
ILT
51802003-05-16 Ian Lance Taylor <ian@airs.com>
5181
5182 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5183 (vax_print_insn, print_insn_arg): Remove static functions.
5184 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5185 print_insn_vax from opcodes library.
5186 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5187
973177d3
AC
51882003-05-15 Andrew Cagney <cagney@redhat.com>
5189
aaab4dba
AC
5190 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5191 * target.h (memory_breakpoint_from_pc): Delete declaration.
5192 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5193 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5194 * monitor.c (monitor_insert_breakpoint): Use
5195 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5196 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5197 * gdbarch.h, gdbarch.c: Re-generate.
5198 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5199 (sparc_gdbarch_init): Set breakpoint_from_pc to
5200 sparc_breakpoint_from_pc.
5201 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5202 (BREAKPOINT_FROM_PC): Define.
5203 (sparc_breakpoint_from_pc): Declare.
5204 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5205 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5206 (BREAKPOINT_FROM_PC): Define.
5207 (BREAKPOINT): Delete macro.
5208 * target.h: Update comment.
5209 * s390-tdep.c (s390_gdbarch_init): Update comments.
5210 * remote.c: Update comments.
5211 * remote-mips.c: Update comments.
5212 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5213 * mem-break.c: Update comment.
5214 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5215 (ia64_memory_insert_breakpoint): Update.
5216 * config/sparc/tm-sparc.h: Update comment.
5217 * config/pa/tm-hppa64.h: Update comment.
5218 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5219 (rs6000_breakpoint_from_pc): Update.
5220 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5221 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5222 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5223 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5224 (mips_breakpoint_from_pc): Update.
5225 (mips_dump_tdep): Update.
5226
e06963ff
AC
5227 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5228 * minsyms.c (lookup_minimal_symbol): Inline
5229 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5230
973177d3
AC
5231 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5232 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5233 * p-lang.c (pascal_printstr): Ditto.
5234 * objc-lang.c (objc_printstr): Ditto.
5235 * m2-lang.c (m2_printstr): Ditto.
5236 * jv-valprint.c (java_print_value_fields): Ditto.
5237 * f-lang.c (f_printstr): Ditto.
5238 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5239 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5240 for repeat_count_threshold.
5241 * Makefile.in (cp-valprint.o): Update dependencies.
5242
5ea2bd7f 52432003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5244
5ea2bd7f
JJ
5245 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5246 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5247 they start with mov r2,r12. Support skipping over indirect stores
5248 of the input registers. Upon hitting a non-nop branch instruction
5249 or predicated instruction, bail out by setting lim_pc to the current
5250 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5251 beyond our calculated value and we have trust_limit set,
5252 use the lim_pc value.
5253
cc8c88f3
AC
52542003-05-15 Andrew Cagney <cagney@redhat.com>
5255
5256 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5257 generic_find_dummy_frame.
5258 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5259 (deprecated_generic_find_dummy_frame): Update.
5260 (deprecated_read_register_dummy): Update.
5261 * frame.c (deprecated_generic_get_saved_register): Update.
5262
909cd28e
TR
52632003-05-15 Theodore A. Roth <troth@openavr.org>
5264
5265 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5266 (avr_gdbarch_init): Set breakpoint_from_pc method.
5267
b923b08d
AC
52682003-05-15 Andrew Cagney <cagney@redhat.com>
5269
5270 * regcache.c (build_regcache): Set deprecated_register_valid
5271 directly.
5272 (deprecated_grub_regcache_for_register_valid): Delete function.
5273 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5274 declaration.
5275
ae2f03ac 52762003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5277
5278 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5279 * symtab.c (lookup_symbol_aux): Delete calls to
5280 lookup_symbol_aux_minsyms.
5281 (lookup_symbol_aux_minsyms): Comment out function and
5282 prototype. Delete lookup by mangled name.
ae2f03ac 5283
18ec9831
KB
52842003-05-14 Kevin Buettner <kevinb@redhat.com>
5285
5286 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5287 correctly indicate an empty stack and ``stack_allocated'' to the
5288 indicate the number of elements initially allocated.
5289 (dwarf_expr_grow_stack): Simplify method for computing new
5290 stack size. Don't loop infinitely if ``stack_len'' is zero.
5291 (execute_stack_op): Move ``ctx->in_reg'' initialization
5292 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5293 be used in conjuction with DW_OP_piece. Revise error message
5294 accordingly.
5295
de18ac1f
TR
52962003-05-14 Theodore A. Roth <troth@openavr.org>
5297
5298 * MAINTAINERS: Update my email address.
5299 * avr-tdep.c: Ditto.
5300
176620f1
EZ
53012003-05-14 Elena Zannoni <ezannoni@redhat.com>
5302
5303 * symtab.h (enum domain_enum): Rename from namespace_enum.
5304 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5305 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5306 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5307 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5308 TYPES_NAMESPACE, METHODS_NAMESPACE.
5309 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5310 (struct symbol, struct partial_symbol): Rename field
5311 'namespace_enum namespace' to 'domain_enum domain'.
5312 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5313 Delete old define kludge for namespace.
5314
5315 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5316 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5317 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5318 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5319 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5320 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5321 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5322 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5323 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5324 occurrences of the above.
5325
b7f31508
ILT
53262003-05-14 Ian Lance Taylor <ian@airs.com>
5327
5328 * Makefile.in (install-only): Use $(SHELL) when running
5329 mkinstalldirs.
5330
2fdbdd39
ILT
53312003-05-13 Ian Lance Taylor <ian@airs.com>
5332
a208d82c
ILT
5333 * MAINTAINERS (write after approval): Add myself.
5334
2fdbdd39
ILT
5335 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5336 second and third arguments.
5337 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5338 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5339
fbd9dcd3
AC
53402003-05-13 Andrew Cagney <cagney@redhat.com>
5341
5342 * defs.h (store_address): Delete declaration.
5343 findvar.c (store_address): Delete function.
5344 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5345 store_unsigned_integer.
5346 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5347 * v850-tdep.c (v850_push_arguments): Ditto.
5348 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5349 * sh-tdep.c (sh64_get_saved_register): Ditto.
5350 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5351 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5352 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5353 (mips_get_saved_register): Ditto.
5354 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5355 (find_func_descr, ia64_push_arguments): Ditto.
5356 * i386-tdep.c (i386_push_arguments): Ditto.
5357 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5358 * frv-tdep.c (frv_push_arguments): Ditto.
5359 * frame.c (legacy_saved_regs_prev_register): Ditto.
5360 (deprecated_generic_get_saved_register): Ditto.
5361 * findvar.c (unsigned_address_to_pointer): Ditto.
5362 * dwarf2read.c (dwarf2_const_value): Ditto.
5363 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5364 * alpha-tdep.c (alpha_push_arguments): Ditto.
5365
6760f9e6
JB
53662003-05-12 J. Brobecker <brobecker@gnat.com>
5367
5368 * NEWS: Mention that the hppa-hpux port has been partially
5369 multiarched (32bit ABIT only, so far).
5370
30e221b4
AC
53712003-05-11 Andrew Cagney <cagney@redhat.com>
5372
5373 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5374 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5375 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5376 sim/testsuite/sim/arm/misaligned2.ms, and
5377 sim/testsuite/sim/arm/misaligned3.ms.
5378 * disasm.h (struct ui_file): Add opaque struct declaration.
5379 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5380 * frame.h (struct ui_file): Ditto.
5381
dea7f9ba
MK
53822003-05-11 Mark Kettenis <kettenis@gnu.org>
5383
5384 * value.h: Pretty print.
5385
01986c48
MK
53862003-05-10 Mark Kettenis <kettenis@gnu.org>
5387
5388 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5389
123a958e
AC
53902003-05-08 Andrew Cagney <cagney@redhat.com>
5391
5392 * regcache.h (max_register_size): Delete declaration.
5393 * regcache.c (max_register_size): Delete function.
5394 (struct regcache_descr): Delete field "max_register_size".
5395 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5396 registers fit in MAX_REGISTER_SIZE.
5397 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5398 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5399 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5400 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5401 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5402 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5403 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5404 * dve3900-rom.c, hppa-tdep.c: Ditto.
5405
eb294659
DC
54062003-05-08 David Carlton <carlton@math.stanford.edu>
5407
5408 * valops.c (push_word): Fix typo.
5409
d9d9c31f
AC
54102003-05-08 Andrew Cagney <cagney@redhat.com>
5411
5412 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5413 * gdbarch.h: Re-generate.
5414 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5415 (legacy_max_register_raw_size): Delete declaration.
5416 * regcache.c (legacy_max_register_raw_size): Delete function.
5417 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5418 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5419 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5420 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5421 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5422 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5423 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5424 * findvar.c, dwarf2cfi.c: Ditto.
5425
22540ece
AC
54262003-05-08 Andrew Cagney <cagney@redhat.com>
5427
5428 * mips-tdep.c (read_signed_register): New function, moved to here
5429 from "regcache.c".
5430 (read_signed_register_pid): Ditto.
5431 * regcache.c (read_signed_register_pid): Delete function, moved to
5432 "mips-tdep.c".
5433 (read_signed_register): Ditto.
5434 * regcache.h (read_signed_register): Delete declaration.
5435 (read_signed_register_pid): Delete declaration.
5436
0c92afe8
AC
54372003-05-08 Andrew Cagney <cagney@redhat.com>
5438
5439 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5440 * gdbarch.h: Re-generate.
5441 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5442 (legacy_max_register_virtual_size): Delete declaration.
5443 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5444 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5445 * tracepoint.c (memrange_sortmerge): Ditto.
5446 * sparc-tdep.c (sparc_print_registers): Ditto.
5447 * regcache.c (legacy_max_register_virtual_size): Delete function.
5448
6037b830
JB
54492002-05-08 J. Brobecker <brobecker@gnat.com>
5450
5451 * fork-child.c (escape_bang_in_quoted_argument): New function.
5452 (fork_inferior): Escape '!' characters in quoted arguments
5453 only when needed.
5454
5d62c8b1
JB
54552003-05-08 J. Brobecker <brobecker@gnat.com>
5456
5457 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5458 the language of the CU is not currently supported by GDB.
5459
20a0e81d
JB
54602003-05-08 J. Brobecker <brobecker@gnat.com>
5461
5462 * defs.h (language): Add language_minimal enum value.
5463 * c-lang.c (minimal_language_defn): New language definition.
5464 (_initialize_c_language): Add the new minimal language to the list
5465 of languages known to GDB.
5466
710ee10a
KB
54672003-05-08 Kevin Buettner <kevinb@redhat.com>
5468
5469 * frame.c (get_frame_type): Don't attempt to lazily initialize
5470 frame's unwinder for legacy frames.
5471
1750fa04
AC
54722003-05-07 Andrew Cagney <cagney@redhat.com>
5473
5474 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5475 and "regcache" parameters.
5476 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5477
ddf9f258 54782003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5479
5480 * dwarf2read.c (dwarf_decode_lines): Only use output of
5481 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
5482 the current address.
5483
87767c29
AC
54842003-05-07 Andrew Cagney <cagney@redhat.com>
5485
5486 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5487 code.
5488
5e7b2f39
JB
54892003-05-07 Jim Blandy <jimb@redhat.com>
5490
5491 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5492 'maint info symtabs' and 'maint info psymtabs'.
5493 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5494 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5495 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5496 Declarations updated.
5497 * maint.c (maintenance_list_command): Delete.
5498 (_initialize_maint_cmds): Update calls to add_cmd.
5499 * gdbcmd.h (maintenancelistlist): Delete declaration.
5500 * cli/cli-cmds.c (maintenancelistlist): Delete.
5501 (init_cmd_lists): Don't initialize it.
5502 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5503
f6684c31
AC
55042003-05-07 Andrew Cagney <cagney@redhat.com>
5505
5506 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5507 "regcache".
5508 (d10v_print_registers_info): Update.
5509 (d10v_dmap_register, d10v_imap_register): Delete functions.
5510 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5511 and "imap_register".
5512 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5513 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5514 * arch-utils.c (generic_remote_translate_xfer_address): Add
5515 "regcache" and "gdbarch" parameters.
5516 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5517 parameter. Change class to multi-arch.
5518 * gdbarch.h, gdbarch.c: Re-generate.
5519 * remote.c (remote_xfer_memory): Use
5520 gdbarch_remote_translate_xfer_address.
8ffd9b1b 5521
e4846b08
JJ
55222003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5523
5524 * infrun.c (prev_pc): Move declaration ahead of proceed().
5525 (proceed): Refresh prev_pc value before resuming.
5526 (stop_stepping): Remove code to refresh prev_pc.
5527
6b71b8ac
KW
55282003-05-06 Kris Warkentin <kewarken@qnx.com>
5529
5530 * nto-tdep.c: Removed stray comment.
5531
47979a4b
KW
55322003-05-06 Kris Warkentin <kewarken@qnx.com>
5533
5534 * i386-nto-tdep.c: Fix old K&R function definitions.
5535 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5536 Also change add_show_from_set() call to add_setshow_cmd().
5537 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5538
00905d52
AC
55392003-05-05 Andrew Cagney <cagney@redhat.com>
5540
5541 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5542 (fprint_dummy_frames): New function.
5543 (maintenance_print_dummy_frames): New function.
5544 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5545 * frame.c (fprint_frame_id): Make global.
5546 * frame.h (fprint_frame_id): Declare.
5547 * Makefile.in (dummy-frame.o): Update dependencies.
5548
b1e29e33
AC
55492003-05-05 Andrew Cagney <cagney@redhat.com>
5550
5551 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5552 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5553 SIZEOF_CALL_DUMMY_WORDS.
5554 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5555 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5556 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5557 CALL_DUMMY_BREAKPOINT_OFFSET.
5558 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5559 CALL_DUMMY_START_OFFSET.
5560 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5561 * gdbarch.h, gdbarch.c: Re-generate.
5562 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5563 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5564 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5565 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5566 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5567 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5568 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5569 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5570 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5571 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5572 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5573 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5574 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5575 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5576 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
5577
55782003-05-05 Kris Warkentin <kewarken@qnx.com>
5579
5580 * configure.tgt: Add i[3456]86-*-nto*.
5581 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5582 * nto-tdep.c: New file. Neutrino target support routines.
5583 * nto-tdep.h: New file. Neutrino target header.
5584 * config/tm-qnxnto.h: New file.
5585 * config/i386/i386nto.mt: New file.
5586 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 5587
0ce3d317
AC
55882003-05-04 Andrew Cagney <cagney@redhat.com>
5589
5590 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5591 (load_infrun_state): Ditto.
5592 (struct thread_info): Drop "prev_func_name" field.
5593 * thread.c (load_infrun_state): Update.
5594 (save_infrun_state): Update.
5595 * infrun.c (prev_func_name): Delete variable.
5596 (init_wait_for_inferior): Do not clear prev_func_name.
5597 (stop_stepping, keep_going, context_switch): Do not swap
5598 prev_func_name.
5599 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5600 instead of PC_IN_SIGTRAMP.
5601
46654a5b
AC
56022003-05-04 Andrew Cagney <cagney@redhat.com>
5603
5604 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5605 REGISTER_BYTE with register_offset_hack.
5606 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5607 that REGISTER_BYTE is consistent with the regcache.
5608 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5609 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 5610
14b08c1b
MK
56112003-05-04 Mark Kettenis <kettenis@gnu.org>
5612
04c8243f
MK
5613 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5614 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5615
14b08c1b
MK
5616 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5617
c7a11e01
JB
56182003-05-03 J. Brobecker <brobecker@gnat.com>
5619
5620 From Thierry Schneider <tpschneider1@yahoo.com>
5621 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5622 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5623 (mi-cmd-symbol.o): Add rule.
5624
7043d8dc
AC
56252003-05-03 Andrew Cagney <cagney@redhat.com>
5626
5627 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5628 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5629 * gdbarch.h, gdbarch.c: Re-generate.
5630 * d10v-tdep.c (d10v_push_dummy_code): New function.
5631 (d10v_gdbarch_init): Set push_dummy_code.
5632 * infcall.c (legacy_push_dummy_code): New function.
5633 (generic_push_dummy_code): New function.
5634 (push_dummy_code): New function.
5635 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5636 instead of dummy_addr, to push_dummy_call. Move call to
5637 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5638 switch.
5639 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5640
92bf2b80
AC
56412003-05-03 Andrew Cagney <cagney@redhat.com>
5642
5643 * disasm.h (print_insn): Declare.
5644 * disasm.c (init_gdb_disassemble_info): New function.
5645 (gdb_disassembly): Call init_gdb_disassemble_info.
5646 (gdb_print_insn): New function.
5647 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5648 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5649 * mcore-tdep.c: Include "disasm.h"
5650 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5651 * d10v-tdep.c: Include "disasm.h".
5652 (display_trace): Call gdb_print_insn, instead of print_insn.
5653 (print_insn): Delete function.
5654 * printcmd.c: Include "disasm.h".
5655 (print_insn): Delete function.
5656 (print_formatted): Call gdb_print_insn, instead of print_insn.
5657 * Makefile.in (printcmd.o): Update dependencies.
5658 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 5659
27d94c49
AC
56602003-05-02 Andrew Cagney <cagney@redhat.com>
5661
82de1e5b
AC
5662 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5663 PC_REGNUM, re-indent.
5664 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5665 PC_REGNUM isn't set.
5666
27d94c49
AC
5667 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5668 * gdbarch.h, gdbarch.c: Re-generate.
5669 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5670 register_virtual_size, pc_regnum, or register_bytes.
5671 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5672 (d10v_register_type): Use D10V_PC_REGNUM.
5673 (d10v_print_registers_info, d10v_read_pc): Ditto.
5674 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5675 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5676
a9c0dc7f
DC
56772003-05-02 David Carlton <carlton@bactrian.org>
5678
5679 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5680 the name with mstrsave.
5681
e33d66ec
EZ
56822003-05-02 Elena Zannoni <ezannoni@redhat.com>
5683
5684 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5685 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5686 (host_charset_name, target_charset_name): New vars for use by
5687 set/show commands.
5688 (host_charset_enum, target_charset_enum): New enums for set/show
5689 commands.
5690 (set_charset_sfunc, set_host_charset_sfunc,
5691 set_target_charset_sfunc): New functions.
5692 (set_host_charset, set_target_charset): Make static.
5693 (list_charsets, set_host_charset_command,
5694 set_target_charset_command): Delete functions.
5695 (show_charset_command): Rewrite as....
5696 (show_charset): Hook this up with the set/show command mechanism.
5697 (_initialize_charset): Change names of charsets to match the
5698 set/show enums. Use host_charset_name and target_charset_name.
5699 Use set/show mechanism for charset, host-charset, target-charset
5700 commands. Do not make 'show host-charset' and 'show
5701 target-charset' be aliases of 'show charset'.
5702
5703 * charset.h (set_host_charset, set_target_charset): Don't export,
5704 they are not used outside the file.
5705
2b6fd0d8
AC
57062003-05-01 Andrew Cagney <cagney@redhat.com>
5707
5708 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5709 (gdb_disassembly): Make "di" non static, always initialize and
5710 cleanup. Always use dis_asm_read_memory.
5711 (gdb_dis_asm_read_memory): Delete function.
5712
6ae2f580
AC
57132003-05-01 Andrew Cagney <cagney@redhat.com>
5714
5715 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5716 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5717
810ecf9f
AC
57182003-04-30 Andrew Cagney <cagney@redhat.com>
5719
5720 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5721 "tm_print_insn_info".
5722 (TARGET_PRINT_INSN_INFO): Delete macro.
5723 (dis_asm_read_memory): Delete function declaration.
5724 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5725 (tm_print_insn_info): Delete variable definition.
5726 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5727 * gdbarch.h, gdbarch.c: Re-generate.
5728 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5729 "deprecated_tm_print_insn_info".
5730 * mcore-tdep.c (mcore_dump_insn): Ditto.
5731 * mips-tdep.c (mips_gdbarch_init): Ditto.
5732 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5733 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5734 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5735 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5736 instead of TARGET_PRINT_INSN_INFO, add comment.
5737 * s390-tdep.c (s390_get_frame_info): Instead of
5738 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5739 (s390_check_function_end, s390_is_sigreturn): Ditto.
5740 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5741 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5742 * disasm.c: Include "gdbcore.h".
5743 (_initialize_disasm): New function, initialize
5744 "deprecated_tm_print_insn_info".
5745 (deprecated_tm_print_insn_info): New variable.
5746 (dis_asm_read_memory): Moved from "corefile.c", made static.
5747 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5748 * Makefile.in (disasm.o): Update dependencies.
5749
07020390
AC
57502003-04-30 Andrew Cagney <cagney@redhat.com>
5751
5752 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5753
a9fa03de
AF
57542003-04-29 Adam Fedor <fedor@gnu.org>
5755
5756 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5757 * infcall.c (find_function_addr): Make non-static.
5758 * infcall.h (find_function_addr): Declare.
5759 * Makefile.in (eval.o): Update dependencies.
5760
1bae87b9
AF
57612003-04-28 Adam Fedor <fedor@gnu.org>
5762
5763 * symtab.c (symbol_find_demangled_name): Check for and demangle
5764 ObjC symbols.
5765 (symbol_init_demangled_name): Init for language_objc as well.
5766
0ba6dca9
AC
57672003-04-28 Andrew Cagney <cagney@redhat.com>
5768
5769 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5770 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5771 * gdbarch.h, gdbarch.c: Re-generate.
5772 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5773 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5774 * inferior.h (deprecated_read_fp): Rename read_fp.
5775 (generic_target_read_fp): Delete declaration.
5776 * regcache.c (generic_target_read_fp): Delete function.
5777 (deprecated_read_fp): Replace read_fp, use
5778 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5779 * d10v-tdep.c (d10v_read_fp): Delete function.
5780 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5781
5782 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5783 deprecated_target_read_fp to generic_target_read_fp.
5784 * sh-tdep.c (sh_gdbarch_init): Ditto.
5785 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5786 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5787 * frv-tdep.c (frv_gdbarch_init): Ditto.
5788
5789 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5790 deprecated_fp_regnum.
5791 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5792 * vax-tdep.c (vax_gdbarch_init): Ditto.
5793 * v850-tdep.c (v850_gdbarch_init): Ditto.
5794 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5795 * sh-tdep.c (sh_gdbarch_init): Ditto.
5796 * s390-tdep.c (s390_gdbarch_init): Ditto.
5797 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5798 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5799 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5800 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5801 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5802 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5803 * i386-tdep.c (i386_gdbarch_init): Ditto.
5804 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5805 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5806 * frv-tdep.c (frv_gdbarch_init): Ditto.
5807 * cris-tdep.c (cris_gdbarch_init): Ditto.
5808 * avr-tdep.c (avr_gdbarch_init): Ditto.
5809 * arm-tdep.c (arm_gdbarch_init): Ditto.
5810 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5811
5812 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5813 * v850-tdep.c (v850_gdbarch_init): Ditto.
5814 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5815 * sh-tdep.c (sh_gdbarch_init): Ditto.
5816 * s390-tdep.c (s390_gdbarch_init): Ditto.
5817 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5818 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5819 * mips-tdep.c (mips_gdbarch_init): Ditto.
5820 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5821 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5822 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5823 * frv-tdep.c (frv_gdbarch_init): Ditto.
5824 * avr-tdep.c (avr_gdbarch_init): Ditto.
5825 * arm-tdep.c (arm_gdbarch_init): Ditto.
5826
5827 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5828 DEPRECATED_FP_REGNUM.
5829 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5830 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5831 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5832 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5833 (sparc32_register_virtual_type): Ditto.
5834 * sh-tdep.c (sh64_frame_chain): Ditto.
5835 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5836 (sh_nofp_frame_init_saved_regs): Ditto.
5837 (sh64_nofp_frame_init_saved_regs): Ditto.
5838 (sh_fp_frame_init_saved_regs): Ditto.
5839 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5840 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5841 * procfs.c (procfs_fetch_registers): Ditto.
5842 (procfs_store_registers): Ditto.
5843 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5844 (store_inferior_registers, fetch_core_registers): Ditto.
5845 (fetch_kcore_registers, clear_regs): Ditto.
5846 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5847 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5848 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5849 * nlm/i386.c (do_status): Ditto.
5850 * mipsv4-nat.c (supply_gregset): Ditto.
5851 * mips-tdep.c: Ditto for comments.
5852 * mips-nat.c (fetch_inferior_registers): Ditto.
5853 (store_inferior_registers, fetch_core_registers): Ditto.
5854 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5855 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5856 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5857 (i386_do_pop_frame, i386_register_type): Ditto.
5858 * hppa-tdep.c (hppa_frame_chain): Ditto.
5859 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5860 (hppa_pop_frame, hppa_read_fp): Ditto.
5861 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5862 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5863 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5864 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5865 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5866 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5867 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5868 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5869 * blockframe.c: Ditto for comments.
5870 * arch-utils.h: Ditto for comments.
5871 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5872 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5873 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5874 * alpha-tdep.h: Ditto for comments.
5875 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5876 (alpha_cannot_store_register): Ditto.
5877 (alpha_push_dummy_frame): Ditto.
5878 * alpha-nat.c (supply_gregset): Ditto.
5879
5880 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5881 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5882 * config/sparc/tm-sparc.h: Update comment.
5883
5884 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5885 deprecated_read_fp instead of TARGET_READ_FP.
5886 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5887 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5888 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5889 deprecated_read_fp instead of read_fp.
5890 * s390-tdep.c (s390_push_arguments): Ditto.
5891 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5892 * frame.h: Ditto in comments.
5893 * frame.c (legacy_get_prev_frame): Ditto.
5894 * dummy-frame.c (dummy_frame_this_id): Ditto.
5895 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5896
d7a27068
AC
58972003-04-28 Andrew Cagney <cagney@redhat.com>
5898
5899 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5900 * gdbarch.h, gdbarch.c: Re-generate.
5901 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5902 * vax-tdep.c (_initialize_vax_tdep): Update.
5903 * v850-tdep.c (_initialize_v850_tdep): Update.
5904 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5905 * s390-tdep.c (_initialize_s390_tdep): Update.
5906 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5907 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5908 * mips-tdep.c (_initialize_mips_tdep): Update.
5909 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5910 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5911 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5912 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5913 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5914 * frv-tdep.c (_initialize_frv_tdep): Update.
5915 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5916 (_initialize_cris_tdep): Update.
5917 * arch-utils.c (legacy_print_insn): Update.
5918 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5919
d2630e69
AF
59202003-04-26 Adam Fedor <fedor@gnu.org>
5921
5922 * linespec.c (decode_objc): New function to decode ObjC calls
5923 (decode_line_1): Check for ObjC calls (using decode_objc)
5924 * Makefile (linespec.o): Update dependencies.
5925
3086aeae
DJ
59262003-04-26 Daniel Jacobowitz <drow@mvista.com>
5927
5928 * breakpoint.h (struct breakpoint_ops): New.
5929 (struct breakpoint): Add ops member.
5930
5931 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5932 (mention): Use new breakpoint ops member.
5933 (set_raw_breakpoint): Initialize ops field to NULL.
5934 (print_exception_catchpoint, print_one_exception_catchpoint)
5935 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5936 (gnu_v3_exception_catchpoint_ops): New.
5937 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5938
1fbec6c3
AF
59392003-04-25 Adam Fedor <fedor@gnu.org>
5940
5941 * Makefile.in (COMMON_OBS): Add objc-lang.o
5942
0ef21242
AC
59432003-04-25 Andrew Cagney <cagney@redhat.com>
5944
5945 * d10v-tdep.c (print_insn): Delete function.
5946 (display_trace): Use TARGET_PRINT_INSN.
5947 (_initialize_d10v_tdep): Do not set tm_print_insn.
5948 (d10v_gdbarch_init): Set print_insn.
5949
f75493ed
AC
59502003-04-25 Andrew Cagney <cagney@redhat.com>
5951
5952 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5953 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5954 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5955 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5956 (nr_dmap_regs, a0_regnum): ... new functions.
5957 (d10v_print_registers_info): Use a0_regnum, use register_size.
5958 (d10v_register_byte): Delete function.
5959 (d10v_register_raw_size): Delete function.
5960 (d10v_register_type): Use a0_regnum.
5961 (d10v_print_registers_info): Use a0_regnum.
5962 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5963 (d10v_gdbarch_init): Do not set register_byte or
5964 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5965 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5966 extract_address.
5967 (trace_command): Use XCALLOC.
5968 (print_insn): Delete reference to tm_print_insn.
5969 (saved_regs_unwinder): Use store_unsigned_integer instead of
5970 store_address.
5971 * frame.h (FRAME_OBSTACK_CALLOC): Define
5972
2202b100
DC
59732003-04-25 David Carlton <carlton@bactrian.org>
5974
5975 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5976
4e45ca2e
AF
59772003-04-24 Adam Fedor <fedor@gnu.org>
5978
5979 * objc-lang.c: Include "valprint.h"
5980 * Makefile.in (objc-lang.o): Update dependencies.
5981
93de3e7f
AF
59822003-04-24 Adam Fedor <fedor@gnu.org>
5983
8ffd9b1b 5984 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
5985 architecture dependant compilation and mark as unimplemented
5986 (until they get put in the gdbarch vector).
5987
0f20eeea
DC
59882003-04-23 David Carlton <carlton@bactrian.org>
5989
5990 * cp-support.c (cp_find_first_component): Accept 'operator' in
5991 more locations.
5992
74cfe982
AC
59932003-04-23 Andrew Cagney <cagney@redhat.com>
5994
5995 * infcall.c (call_function_by_hand): Eliminate redundant
5996 indentation. Move "saved_async" and "old_cleanups" to where they
5997 are needed.
8ffd9b1b 5998
52557533
AC
59992003-04-23 Andrew Cagney <cagney@redhat.com>
6000
6001 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6002 and "buffer". Move the "name" code to where it is needed.
6003
158775de
AC
60042003-04-23 Andrew Cagney <cagney@redhat.com>
6005
6006 * infcall.c (call_function_by_hand): Move variables "start_sp",
6007 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6008 code to ON_STACK switch branch.
8ffd9b1b 6009
ebc7896c
AC
60102003-04-23 Andrew Cagney <cagney@redhat.com>
6011
6012 * infcall.c (call_function_by_hand): Make declaration of "i",
6013 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6014 lint.
6015
d727590f
AC
60162003-04-23 Andrew Cagney <cagney@redhat.com>
6017
6018 * infcall.c (call_function_by_hand): Delete variable
6019 "n_method_args". Localize "param_type"'s declaration to the loop
6020 that it is used. Reinstate code assigning to said variable -
6021 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6022 Rationalize code using "param_type".
6023
d585e13a
AC
60242003-04-22 Andrew Cagney <cagney@redhat.com>
6025
6026 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6027 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6028 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6029 to DEPRECATED_PUSH_RETURN_ADDRESS.
6030
051caad9
KB
60312003-04-22 Kevin Buettner <kevinb@redhat.com>
6032
6033 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6034 on the DWARF2 register number prior to fetching a register.
6035
77296879
JB
60362003-04-22 J. Brobecker <brobecker@gnat.com>
6037
6038 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6039 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6040 this macro was always set to 0.
77296879
JB
6041 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6042 considering the fact that this macro was always set to 0.
6043 * hppa-tdep.h (hppa_store_return_value): Likewise.
6044 (hppa_extract_return_value): Likewise.
6045
4252f1df
JB
60462003-04-22 J. Brobecker <brobecker@gnat.com>
6047
6048 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6049 the hppa-pro target only.
6050
14604c6b
JB
60512003-04-21 J. Brobecker <brobecker@gnat.com>
6052
6053 Ongoing multi-arch conversion effort for HP/UX:
6054 * config/pa/tm-hppa.h: Move all macro that are no longer
6055 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6056 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6057
77eb01d1
JB
60582003-04-21 J. Brobecker <brobecker@gnat.com>
6059
6060 * config/pa/tm-hppa.h: Obsolete a section that was only used
6061 for hppa-pro.
6062
61995b3b
JB
60632003-04-21 J. Brobecker <brobecker@gnat.com>
6064
6065 Ongoing multi-arch conversion for HP/UX.
6066 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6067 if already defined (allows hppa64 to stay non-multiarched for now).
6068 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6069
4aa79dcc
AC
60702003-04-21 Andrew Cagney <cagney@redhat.com>
6071
6072 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6073
0f751ff2
AC
60742003-04-21 Andrew Cagney <cagney@redhat.com>
6075
6076 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6077 "i386_num_mmx_regs".
6078
04714b91
AC
60792003-04-21 Andrew Cagney <cagney@redhat.com>
6080
6081 * infcall.c: New file.
6082 * infcall.h: New file.
6083 * valarith.c: Include "infcall.h".
6084 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6085 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6086 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6087 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6088 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6089 (SFILES): Add "infcall.c"
6090 (COMMON_OBS): Add "infcall.o".
6091 (infcall.o): Specify dependencies.
6092 * value.h (call_function_by_hand): Delete declaration.
6093 * inferior.h (run_stack_dummy): Delete declaration.
6094 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6095 (run_stack_dummy): Move to "infcall.c", merged into
6096 call_function_by_hand.
6097 * valops.c (call_function_by_hand): Moved to "infcall.c".
6098 (find_function_addr, value_arg_coerce): Ditto.
6099 (unwindonsignal_p, coerce_float_to_double): Ditto.
6100 (_initialize_valops): Move "set/show coerce-float-to-double", and
6101 "set/show unwindonsignal" commands to "infcall.c".
6102 * v850-tdep.c, target.h: Update comments.
6103 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6104 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6105 (sh64_init_extra_frame_info): Update comments.
6106 * mn10300-tdep.c: Update comments.
6107 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6108 * config/sparc/tm-sparc.h: Update comments.
6109 * breakpoint.h: Update comments.
6110 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6111 * arm-tdep.c: Update comment.
6112
f9d3c2a8
MK
61132003-04-19 Mark Kettenis <kettenis@gnu.org>
6114
c40e1eab
MK
6115 * i386-tdep.c (i386_num_register_names): New variable.
6116 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6117 (MM0_REGNUM): Remove redundant parentheses in define.
6118 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6119 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6120 i386_mxcsr_regnum_p): Remove redundant parentheses.
6121 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6122
94ea66b3
MK
6123 * i386-tdep.c (i386_extract_return_value,
6124 i386_store_return_value): Correct check for availability of
6125 floating-point registers.
6126
54299a1d
MK
6127 * i386-tdep.c (i386_frame_num_args): Remove function.
6128 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6129
c86c27af
MK
6130 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6131 mmx_regnum_to_fp_regnum. Adjust all callers.
6132
f9d3c2a8
MK
6133 * i386-tdep.c (i386_get_longjmp_target): Use
6134 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6135 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6136 extract_address.
6137
94ba74a9
MK
61382003-04-19 Mark Kettenis <kettenis@gnu.org>
6139
6140 * core-regset.c: Update comments to reflect reality. Re-order
6141 includes.
6142 (fetch_core_registers): Use switch instead of if. Remove
6143 redundant prototype.
6144
4074e13c
JB
61452003-04-18 Jim Blandy <jimb@redhat.com>
6146
6147 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6148 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6149
e3ab4aba
RH
61502003-04-17 Richard Henderson <rth@redhat.com>
6151
6152 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6153
627bf7c1
EZ
61542003-04-17 Michael Snyder <msnyder@redhat.com>
6155 Karen Bennet <bennet@redhat.com>
6156
6157 Committed by Elena Zannoni <ezannoni@redhat.com>
6158 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6159
514621a9
EZ
61602003-04-17 Elena Zannoni <ezannoni@redhat.com>
6161
6162 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6163 value if the return type is void.
514621a9 6164
b4acd559
JJ
61652003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6166
6167 * thread-db.c: Reindented.
8ffd9b1b 6168
530b167e 61692003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6170
6171 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6172 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6173 as types.
6174
0a48e7e8
MS
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
8ffd9b1b 6198
ab9fe00e
KB
61992003-04-16 Kevin Buettner <kevinb@redhat.com>
6200
610a3745 6201 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6202 the size of ``long double'' to 16, instead of 8.
6203
e64a344c
MK
62042003-04-16 Mark Kettenis <kettenis@gnu.org>
6205
6206 * i386-linux-nat.c: Add some whitespace to make things more
6207 readable.
6208 (fetch_register, store_register, fetch_inferior_registers,
6209 store_inferior_registers): Get rid of assignment in if-statement.
6210 (store_register): Fix typo in error message.
6211
25d41031
AC
62122003-04-16 Andrew Cagney <cagney@redhat.com>
6213
6214 * utils.c (xmmalloc): Always allocate something, matches
6215 libiberty/xmalloc's semantics.
6216 (xmrealloc, xmcalloc): Ditto.
6217
c50901fd
AC
62182003-04-16 Andrew Cagney <cagney@redhat.com>
6219
6220 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6221 update comments.
6222 (get_frame_type): Initialize unwind and type when needed.
6223 (get_frame_id, frame_register_unwind): Ditto.
6224
f81824a9
AC
62252003-04-16 Andrew Cagney <cagney@redhat.com>
6226
6227 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6228 obsolete.
6229 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6230 * sparcl-stub.c: Obsolete file.
6231 * config/sparc/tm-sparclet.h: Obsolete file.
6232 * sparclet-stub.c: Obsolete file.
6233 * sparclet-rom.c: Obsolete file.
6234 * sparcl-tdep.c: Obsolete file.
6235 * config/sparc/tm-sparclite.h: Obsolete file.
6236 * config/sparc/sparclite.mt: Obsolete file.
6237 * config/sparc/sparclet.mt: Obsolete file.
6238 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6239 sparc86x-*-* obsolete.
6240
9219021c
DC
62412003-04-15 David Carlton <carlton@math.stanford.edu>
6242
6243 * Makefile.in (SFILES): Add cp-namespace.c.
6244 (COMMON_OBS): Add cp-namespace.o.
6245 (block.o): Depend on gdb_obstack_h and cp_support_h.
6246 (buildsym.o): Depend on cp_support_h.
6247 (cp-namespace.o): New.
6248 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6249 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6250 (dwarf2read.o): Depend on cp_support_h.
6251 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6252 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6253 processing_current_namespace.
6254 (read_namespace): Update processing_current_namespace; check for
6255 anonymous namespaces.
6256 (dwarf2_name): New function.
6257 (dwarf2_extension): Ditto.
6258 * cp-support.h: Update copyright, contributors.
6259 Add inclusion guards.
6260 Add opaque declaration for structs obstack, block, symbol.
6261 (struct using_direct): New struct.
6262 Add declarations for cp_find_first_component,
6263 cp_entire_prefix_len, processing_has_namespace_info,
6264 processing_current_namespace, cp_is_anonymous,
6265 cp_add_using_directive, cp_initialize_namespace,
6266 cp_finalize_namespace, cp_set_block_scope,
6267 cp_scan_for_anonymous_namespaces.
6268 * cp-namespace.c: New file.
6269 * cp-support.c: Update copyright.
6270 Include ctype.h, gdb_assert.h, gdbcmd.h.
6271 New variable maint_cplus_cmd_list.
6272 (cp_find_first_component): New function.
6273 (cp_entire_prefix_len, maint_cplus_command)
6274 (first_component_command, _initialize_cp_support): Ditto.
6275 * buildsym.c: Include cp-support.h.
6276 New variable using_list.
6277 (add_symbol_to_list): Check for anonymous namespaces.
6278 (finish_block): Set block's scope.
6279 (start_symtab): Initialize C++ namespace support.
6280 (end_symtab): Finalize C++ namespace support.
6281 * block.h: Add opaque declarations for structs
6282 block_namespace_info, using_direct, and obstack.
6283 Add declarations for block_set_scope and block_set_using.
6284 (struct block): Add 'language_specific' member.
6285 (BLOCK_NAMESPACE): New macro.
6286 * block.c: Include gdb_obstack.h and cp-support.h.
6287 (struct block_namespace_info): New struct.
6288 (block_set_scope): New function.
6289 (block_set_using, block_initialize_namespace): Ditto.
6290
d5a921c9
KB
62912003-04-14 Kevin Buettner <kevinb@redhat.com>
6292
6293 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6294 (locate_base): Return early if there aren't any link map offsets.
6295 (svr4_solib_create_inferior_hook): Warn if shared library support
6296 is unavailable.
6297
d2a52b27
DC
62982003-04-14 David Carlton <carlton@math.stanford.edu>
6299
6300 * symtab.c (symbol_set_names): Add prefix when storing Java names
6301 in hash table. Fix for PR java/1039.
6302
980cae7a
DC
63032003-04-14 David Carlton <carlton@math.stanford.edu>
6304
6305 * symtab.c (symbol_set_names): Rename 'name' arg to
6306 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6307 * symtab.h: Change 'name' argument in declaration of
6308 symbol_set_names to 'linkage_name'.
6309 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6310
e227b13c
AC
63112003-04-14 Andrew Cagney <cagney@redhat.com>
6312
6313 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6314 return the fully sign-extended register value.
6315 (get_frame_pointer): Ditto.
6316 (mips_pop_frame): Initialize "proc_desc" after checking for a
6317 dummy frame.
6318
36712a20
AC
63192003-04-14 Andrew Cagney <cagney@redhat.com>
6320
6321 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6322 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6323 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6324 (mips_push_register): Delete function.
6325 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6326 PUSH_FP_REGNUM.
6327
44ea7b70
JB
63282003-04-14 Jim Blandy <jimb@redhat.com>
6329
6330 * symmisc.c: #include "gdb_regex.h".
6331 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6332 functions.
6333 * maint.c (maintenance_list_command): New function.
6334 (_initialize_maint_cmds): Register the above as commands.
6335 * symtab.h (maintenance_list_symtabs,
6336 maintenance_list_psymtabs): New declarations.
6337 * cli/cli-cmds.c (maintenancelistlist): New variable.
6338 (init_cmd_lists): Initialize it.
6339 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6340 * gdbcmd.h (maintenancelistlist): New declaration.
6341 * Makefile.in (symmisc.o): Update dependencies.
6342
2d0c7962
EZ
63432003-04-14 Elena Zannoni <ezannoni@redhat.com>
6344
6345 * s390-nat.c: Include asm/types.h for addr_t.
6346
1947a811
CV
63472003-04-14 Corinna Vinschen <vinschen@redhat.com>
6348
6349 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6350 actually incoming type.
6351
adb616d7
AC
63522003-04-13 Andrew Cagney <cagney@redhat.com>
6353
6354 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6355 get_next_frame and get_frame_saved_regs.
6356
9b5e151c
AC
63572003-04-13 Andrew Cagney <cagney@redhat.com>
6358
6359 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6360 of gdbarch_num_regs.
6361
ef6e7e13
AC
63622003-04-13 Andrew Cagney <cagney@redhat.com>
6363
6364 * frame.h: Mention what replaced what in "struct frame_info".
6365 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6366 deprecated_update_frame_base_hack and
6367 deprecated_update_frame_pc_hack.
6368 * hppa-tdep.c: Ditto.
6369
61fbb938
DJ
63702003-04-13 Daniel Jacobowitz <drow@mvista.com>
6371
6372 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6373 to read_reg and update its comment. Remove regnum member.
6374 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6375 Don't call read_reg when setting in_reg. Call read_reg to get
6376 the frame base if it's in a register. Return the register number
6377 on the stack instead of in the context. Remove extra arguments
6378 to read_reg.
6379 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6380 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6381 the register number on the expression stack.
6382 (needs_frame_read_reg): Remove extra arguments.
6383
0d53c4c4
DJ
63842003-04-13 Daniel Jacobowitz <drow@mvista.com>
6385
6386 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6387 made non-static.
6388 (execute_stack_op): All callers updated.
6389 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6390 * dwarf2loc.c (find_location_expression): New function.
6391 (dwarf_expr_frame_base): Call it.
6392 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6393 (dwarf2_tracepoint_var_ref): New function, broken out from
6394 locexpr_tracepoint_var_ref.
6395 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6396 Make static.
6397 (loclist_read_variable, loclist_read_needs_frame): New functions.
6398 (loclist_describe_location, loclist_tracepoint_var_ref): New
6399 functions.
6400 (dwarf2_loclist_funcs): New struct location_funcs.
6401 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6402 (struct dwarf2_locexpr_baton): Add comments.
6403 (dwarf2_loclist_funcs): New extern.
6404 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6405 base_address and base_known.
6406 (dwarf_loc_buffer): New variable.
6407 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6408 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6409 (dwarf2_has_info): Initialize dwarf_loc_offset.
6410 (dwarf2_build_psymtabs): Read in .debug_loc.
6411 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6412 DWARF_LOC_SIZE.
6413 (psymtab_to_symtab_1): Likewise. Move base address calculation
6414 here, from...
6415 (dwarf2_get_pc_bounds): ... here. Use the base address from
6416 cu_header.
6417 (dwarf2_symbol_mark_computed): Handle location lists.
6418
6aca59a3
DJ
64192003-04-13 Daniel Jacobowitz <drow@mvista.com>
6420
6421 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6422 if the linkage name demangled successfully.
6423
aca1fcd0
MK
64242003-04-13 Mark Kettenis <kettenis@gnu.org>
6425
97095916
MK
6426 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6427 disassmbly_flavour): Removed.
6428
aca1fcd0
MK
6429 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6430
562a961f
MK
64312003-04-13 Mark Kettenis <kettenis@gnu.org>
6432
6433 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6434
bd013d54
AC
64352003-04-12 Andrew Cagney <cagney@redhat.com>
6436
6437 * frame.h (struct frame_info): Move definition from here ...
6438 * frame.c (struct frame_info): ... to here.
6439
167ef8b1
AC
64402003-04-12 Andrew Cagney <cagney@redhat.com>
6441
6442 * gdbthread.h (save_infrun_state): Delete parameter
6443 "prev_func_start".
6444 (struct thread_info): Delete field "prev_func_start".
6445 (load_infrun_state): Ditto.
6446 * thread.c (load_infrun_state, save_infrun_state): Update.
6447 * infrun.c (prev_func_start): Delete variable.
6448 (context_switch, init_wait_for_inferior): Update.
6449 (stop_stepping, keep_going): Update.
6450
da3331ec
AC
64512003-04-12 Andrew Cagney <cagney@redhat.com>
6452
6453 * gdbarch.sh: Add missing opaque declarations.
6454 * gdbarch.h: Regnerate.
6455 * symtab.h: Add missing opaque declarations.
6456 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6457 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6458 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6459 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6460 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6461 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6462 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6463 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6464 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6465 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6466 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6467 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6468 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6469
18adea3f
AC
64702003-04-11 Andrew Cagney <cagney@redhat.com>
6471
6472 * frame.c (get_frame_id): Return this frame's "id".
6473 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6474 function start.
6475 (legacy_saved_regs_this_id): Replace function body with
6476 internal-error.
6477 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6478 FRAME_OBSTACK_ZALLOC.
6479 (create_new_frame): Mark the frame ID as valid.
6480
2252e863
AO
64812003-04-11 Alexandre Oliva <aoliva@redhat.com>
6482
6483 * Makefile.in (libbfd_h): Added missing setting.
6484 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6485 according to the selected ABI.
6486
a8245ab8
JJ
64872003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6488
6489 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6490
6913c89a
AC
64912003-04-11 Andrew Cagney <cagney@redhat.com>
6492
6493 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6494 SAVED_PC_AFTER_CALL.
6495 * gdbarch.h, gdbarch.c: Regenerate.
6496 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6497 * x86-64-tdep.c (x86_64_init_abi): Update.
6498 * vax-tdep.c (vax_gdbarch_init): Update.
6499 * v850-tdep.c (v850_gdbarch_init): Update.
6500 * sparc-tdep.c (sparc_gdbarch_init): Update.
6501 * sh-tdep.c (sh_gdbarch_init): Update.
6502 * s390-tdep.c (s390_gdbarch_init): Update.
6503 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6504 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6505 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6506 * mips-tdep.c (mips_gdbarch_init): Update.
6507 * mcore-tdep.c (mcore_gdbarch_init): Update.
6508 * m68k-tdep.c (m68k_gdbarch_init): Update.
6509 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6510 * ia64-tdep.c (ia64_gdbarch_init): Update.
6511 (ia64_saved_pc_after_call): Update declaration.
6512 * i386ly-tdep.c (i386lynx_init_abi): Update.
6513 * i386-tdep.c (i386_gdbarch_init): Update.
6514 * hppa-tdep.c (hppa_gdbarch_init): Update.
6515 * h8300-tdep.c (h8300_gdbarch_init): Update.
6516 * frv-tdep.c (frv_gdbarch_init): Update.
6517 * cris-tdep.c (cris_gdbarch_init): Update.
6518 * avr-tdep.c (avr_gdbarch_init): Update.
6519 * arm-tdep.c (arm_gdbarch_init): Update.
6520 * alpha-tdep.c (alpha_gdbarch_init): Update.
6521 * ns32knbsd-nat.c (frame_num_args): Update.
6522 * ns32k-tdep.c (umax_frame_num_args): Update.
6523 * mips-tdep.c (mips_init_frame_pc_first): Update.
6524 * infrun.c (step_over_function): Update.
6525 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6526 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6527 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6528 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6529 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6530 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6531 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6532 * arch-utils.c (init_frame_pc_default): Update.
6533 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6534 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6535 declaration.
8ffd9b1b 6536
38edeab8
AC
65372003-04-11 Andrew Cagney <cagney@redhat.com>
6538
6539 * i387-tdep.c: Update copyright.
6540 (i387_to_double): Delete function.
6541 (double_to_i387): Delete function.
6542
81f8a206
AC
65432003-04-10 Andrew Cagney <cagney@redhat.com>
6544
6545 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6546 frame's function's address. Simplify.
6547 (d10v_frame_unwind_cache): Check that the frame's function is
6548 non-zero.
6549
6e691f7a
JB
65502003-04-10 Jim Blandy <jimb@redhat.com>
6551
6552 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6553 call to set_gdbarch_deprecated_push_arguments.
6554
7f78e237
AC
65552003-04-10 Andrew Cagney <cagney@redhat.com>
6556
6557 * frame.c (fprint_frame_id): New function.
6558 (fprint_frame_type, fprint_frame): New function.
6559 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6560 (create_sentinel_frame, get_frame_id): Ditto.
6561 (frame_id_p, frame_id_eq): Ditto.
6562 (frame_id_inner, create_new_frame): Ditto.
6563 (legacy_get_prev_frame, get_prev_frame): Ditto.
6564 (deprecated_update_frame_pc_hack): Ditto.
6565 (frame_register_unwind): Ditto.
6566 (deprecated_update_frame_base_hack): Ditto.
6567
f870b49b
CV
65682003-04-10 Corinna Vinschen <vinschen@redhat.com>
6569
6570 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6571 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6572 frame_chain function.
6573 * Makefile.in: Add dependencies due to above change.
6574
7c86889b
CV
65752003-04-10 Corinna Vinschen <vinschen@redhat.com>
6576
6577 * blockframe.c (legacy_frame_chain_valid): Move call to
6578 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6579 inside_entry_file.
6580
d0a55772
AC
65812003-04-09 Andrew Cagney <cagney@redhat.com>
6582
6583 * frame.h (struct frame_id): Replace "pc" and "base" with
6584 "stack_addr" and "code_addr". Update comments.
6585 (frame_id_build): Update parameter names and comment.
6586 (struct frame_info): Replace "id_p" and "id" with "this_id".
6587 * dummy-frame.c (dummy_frame_this_id): Update.
6588 * breakpoint.c (print_one_breakpoint): Update.
6589 * frame.c (get_frame_id): Update.
6590 (get_frame_base, frame_id_build): Update.
6591 (create_sentinel_frame, legacy_get_prev_frame): Update.
6592 (deprecated_update_frame_base_hack): Update.
6593 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6594 (frame_id_inner): Ditto.
6595
ac16bf07
AC
65962003-04-09 Andrew Cagney <cagney@redhat.com>
6597
6598 * defs.h (gdb_print_host_address): Make "addr" parameter a
6599 pointer constant.
6600 * utils.c (gdb_print_host_address): Update.
6601
366cfc9e
KB
66022003-04-09 Kevin Buettner <kevinb@redhat.com>
6603
6604 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6605 register number for R0 is 0.
6606
cd983b5c
JB
66072003-04-09 J. Brobecker <brobecker@gnat.com>
6608
6609 * frame.h (struct gdbarch): Add opaque structure definition
6610 to avoid a compilation warning on LynxOS 4.0.
6611
d1340264
AC
66122003-04-09 Andrew Cagney <cagney@redhat.com>
6613
6614 * frame.h (struct frame_info): Delete field "pc". Replace
6615 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6616 structure.
6617 * frame.c (frame_pc_unwind): Update.
6618 (create_sentinel_frame): Do not set "pc".
6619 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6620 (get_frame_pc): Call frame_pc_unwind.
6621 (deprecated_update_frame_pc_hack): Update.
6622 (create_new_frame): Use "pc" not "->pc".
6623
90a6fffb
AC
66242003-04-09 Andrew Cagney <cagney@redhat.com>
6625
6626 * frame.c (get_frame_id): Eliminate code updating "frame".
6627 (legacy_get_prev_frame): Ditto.
6628 (get_frame_base): Return id.base directly.
6629 (deprecated_update_frame_base_hack): Update "id.base".
6630 * frame.h (struct frame_info): Delete field "frame".
6631
2fbce691
AC
66322003-04-09 Andrew Cagney <cagney@redhat.com>
6633
6634 * NEWS: Mention that the "Sequent family" is obsolete.
6635 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6636 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6637 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6638 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6639 * config/i386/tm-ptx4.h: Obsolete file.
6640 * config/i386/tm-ptx.h: Obsolete file.
6641 * symm-tdep.c: Obsolete file.
6642 * config/i386/symmetry.mt: Obsolete file.
6643 * config/i386/tm-symmetry.h: Obsolete file.
6644 * symm-nat.c: Obsolete file.
6645 * config/i386/nm-symmetry.h: Obsolete file.
6646 * config/i386/xm-symmetry.h: Obsolete file.
6647 * config/i386/symmetry.mh: Obsolete file.
6648 * config/i386/nm-ptx4.h: Obsolete file.
6649 * config/i386/ptx4.mh: Obsolete file.
6650 * config/i386/ptx.mt: Obsolete file.
6651 * config/i386/ptx.mh: Obsolete file.
6652 * config/i386/xm-ptx4.h: Obsolete file.
6653 * config/i386/xm-ptx.h: Obsolete file.
6654
78c43945
AC
66552003-04-09 Andrew Cagney <cagney@redhat.com>
6656
6657 Obsolete mips*-*-mach3*.
6658 * NEWS: Mention that mips*-*-mach3* is obsolete.
6659 * m3-nat.c: Obsolete file.
6660 * config/nm-m3.h: Obsolete file.
6661 * config/mips/tm-mipsm3.h: Obsolete file.
6662 * config/mips/mipsm3.mt: Obsolete file.
6663 * config/mips/mipsm3.mh: Obsolete file.
6664 * config/mips/xm-mipsm3.h: Obsolete file.
6665 * mipsm3-nat.c: Obsolete file.
6666 * configure.host: Obsolete mips-dec-mach3*.
6667 * configure.tgt: Obsolete mips*-*-mach3*.
6668
f1908289
AC
66692003-04-09 Andrew Cagney <cagney@redhat.com>
6670
6671 * doublest.h: Update copyright.
6672 (deprecated_store_floating, deprecated_extract_floating): Rename
6673 store_floating and extract_floating. Update comments.
6674 * doublest.c: Update copyright.
6675 (extract_floating_by_length): Replace extract_floating.
6676 (store_floating_by_length): Replace store_floating.
6677 (deprecated_extract_floating): New function.
6678 (deprecated_store_floating): New function.
6679 (extract_typed_floating): Call extract_floating_by_length.
6680 (store_typed_floating): Call store_floating_by_length.
6681 * x86-64-tdep.c (x86_64_store_return_value): Update.
6682 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6683 (sh64_extract_return_value): Update.
6684 (sh_sh4_register_convert_to_virtual): Update.
6685 (sh_sh64_register_convert_to_virtual): Update.
6686 (sh_sh4_register_convert_to_raw): Update.
6687 (sh_sh64_register_convert_to_raw): Update.
6688 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6689 (rs6000_register_convert_to_raw): Update.
6690 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6691 (ia64_register_convert_to_raw): Update.
6692 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6693 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6694 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6695 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6696 (alpha_register_convert_to_raw): Update.
6697
4443bd83
AC
66982003-04-08 Andrew Cagney <cagney@redhat.com>
6699
6700 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6701 * gdbarch.h, gdbarch.c: Re-generate.
6702 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6703 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6704 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6705 conditionally, use frame_pc_unwind as an alternative. Add
6706 comments.
6707 * arch-utils.c (init_frame_pc_default): Only call
6708 SAVED_PC_AFTER_CALL when available.
6709
c0236d92
EZ
67102003-04-08 Elena Zannoni <ezannoni@redhat.com>
6711
fbe586ae 6712 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6713 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6714 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6715 (start_remote): Ditto.
6716 (handle_inferior_event): Ditto.
6717 (save_inferior_status): Ditto.
6718 (restore_inferior_status): Ditto.
6719 * infcmd.c (attach_command): Ditto.
6720 * fork-child.c (startup_inferior): Ditto.
fbe586ae 6721 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6722 * alpha-tdep.c (heuristic_proc_start): Ditto.
6723 * mips-tdep.c (heuristic_proc_start): Ditto.
6724 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6725 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6726 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6727 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6728 * remote-vx.c (vx_create_inferior): Ditto.
6729
67302003-04-08 Elena Zannoni <ezannoni@redhat.com>
6731
6732 * infrun.c (stop_soon_quietly): Make it an enum, to better
6733 override the default behavior of handle_inferior_event.
6734 (clear_proceed_status): Update uses of stop_soon_quietly to
6735 reflect that it is now an enum.
6736 (start_remote): Ditto.
6737 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6738 is set to handle the new GNU/Linux kernel behavior for
6739 attach/sigstop. Update uses of stop_soon_quietly.
6740 * inferior.h (enum stop_kind): New enum.
6741 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6742 Reset normal handle_inferior_event behavior, afterwards.
6743 * fork-child.c (startup_inferior): Update.
6744 * alpha-tdep.c (heuristic_proc_start): Update.
6745 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6746 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6747 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6748 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6749 * remote-vx.c (vx_create_inferior): Update.
6750 * mips-tdep.c (heuristic_proc_start): Update.
6751
1211bce3
EZ
67522003-04-07 Elena Zannoni <ezannoni@redhat.com>
6753
6754 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 6755 be freed more than once, causing wild memory corruptions.
1211bce3 6756 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 6757 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 6758 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 6759 with the "core" target.
1211bce3 6760
f0ef6b29
KB
67612003-04-07 Kevin Buettner <kevinb@redhat.com>
6762
6763 * mips-tdep.c (mips_print_fp_register): New function, created from
6764 do_fp_register_row(). Registers are now (also) printed as hex.
6765 Only one register is printed per row.
6766 (mips_print_register, do_fp_register_row): Print floating point
6767 registers with mips_print_fp_register().
6768
8cf71652
AC
67692003-04-06 Andrew Cagney <cagney@redhat.com>
6770
5e488a7b
AC
6771 * valprint.h (inspect_it): Add extern declaration.
6772 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6773 (selectors_info, classes_info): Ditto.
6774 (find_objc_msgcall): Fix indentation.
6775 (objc_printstr): Delete extern declarations.
6776
8cf71652
AC
6777 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6778
e6ba3bc9
AC
67792003-04-06 Andrew Cagney <cagney@redhat.com>
6780
6781 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6782 Update comment.
6783 * frame.c (legacy_saved_regs_this_id): Update.
6784 (legacy_get_prev_frame): Update.
6785 * xstormy16-tdep.c: Update comment.
6786 * sparc-tdep.c (sparc_frame_chain): Update comment.
6787 * blockframe.c (legacy_frame_chain_valid): Update.
6788
55e1d7e7
AC
67892003-04-06 Andrew Cagney <cagney@redhat.com>
6790
996179ee
AC
6791 * valprint.c (val_print_type_code_int): Delete #ifdef
6792 PRINT_TYPELESS_INTEGER code.
6793
55e1d7e7
AC
6794 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6795 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6796 multi-arch definition.
6797 * gdbarch.h: Re-generate.
6798
43bd9a9e
AC
67992003-04-05 Andrew Cagney <cagney@redhat.com>
6800
6801 Eliminate FRAME_FIND_SAVED_REGS.
6802 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6803 Change FSR parameter to a pointer.
6804 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6805 Assume FSR parameter is a pointer.
6806 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6807 Make fsr a pointer.
6808 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6809 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6810 saved_regs a pointer.
6811 (hppa_frame_saved_pc): Ditto.
6812 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6813 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6814 pointer.
6815 (restore_pc_queue): Make fsr a pointer.
6816 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6817 (hppa_frame_chain): Make saved_regs a pointer, call
6818 hppa_frame_init_saved_regs.
6819 * sparc-tdep.c: Include "gdb_assert.h".
6820 (sparc_frame_find_saved_regs): Replace internal_error with
6821 gdb_assert.
6822 * remote-vxsparc.c (vx_read_register): Delete reference to
6823 FRAME_FIND_SAVED_REGS.
6824 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6825 * gdbarch.h: Regenerate.
6826 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6827 (deprecated_get_frame_saved_regs): Delete declaration.
6828 (struct frame_saved_regs): Delete definition.
6829 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6830 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6831 (hppa_frame_find_saved_regs): Delete declaration.
6832 (FRAME_FIND_SAVED_REGS): Delete macro.
6833 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6834 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6835 FRAME_FIND_SAVED_REGS in comment.
6836
be41e9f4
AC
68372003-04-05 Andrew Cagney <cagney@redhat.com>
6838
6839 * frame.c (frame_func_unwind, get_frame_func): New functions.
6840 * frame.h (get_frame_func, frame_func_unwind): Declare.
6841 (struct frame_info): Add field "prev_func" for caching the
6842 previous frame's function address.
6843 * arm-tdep.c (arm_frameless_function_invocation): Combine
6844 get_pc_function_start and get_frame_pc into get_frame_func.
6845 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6846 (sh64_nofp_frame_init_saved_regs): Ditto.
6847 * s390-tdep.c (s390_function_start): Ditto.
6848 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6849 (rs6000_frameless_function_invocation): Ditto.
6850 (rs6000_frame_saved_pc): Ditto.
6851 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6852 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6853 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6854 (i386_frame_init_saved_regs): Ditto.
6855 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6856 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6857 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6858 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6859 * blockframe.c (frameless_look_for_prologue): Ditto.
6860
a01dd7cc
AC
68612003-04-05 Andrew Cagney <cagney@redhat.com>
6862
6863 * frame.c (legacy_get_prev_frame): Link prev to next at the
6864 function start. Update comments.
6865
5e5592e6
AC
68662003-04-05 Andrew Cagney <cagney@redhat.com>
6867
6868 * frame.c (get_frame_id): Update comment.
6869 (legacy_get_prev_frame): Update comment.
6870 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6871 * gdbarch.h: Regenerate.
6872 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6873 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6874
6fba5002
AC
68752003-04-05 Andrew Cagney <cagney@redhat.com>
6876
6877 * stack.c (print_frame_info): Use get_frame_pc.
6878
7df05f2b
AC
68792003-04-04 Andrew Cagney <cagney@redhat.com>
6880
6881 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6882 the frame's type from the unwinder.
6883 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6884 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6885 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6886 (get_frame_base_address): Use get_frame_type.
6887 (get_frame_locals_address, get_frame_args_address): Ditto.
6888 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6889 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6890 (struct frame_info): Add comment explaining why the frame contains
6891 a "type" field.
6892 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6893 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6894 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6895 NORMAL_FRAME.
6896 * frame-unwind.h: Include "frame.h".
6897 (struct frame_unwind): Add "type" field.
6898 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 6899
11889732
AC
69002003-04-04 Andrew Cagney <cagney@redhat.com>
6901
6902 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6903 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6904 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6905 get_frame_base.
6906 (d10v_unwind_dummy_id): Use frame_id_build.
6907 * frame.c (find_frame_sal): Use get_frame_pc.
6908 (create_new_frame): Use deprecated_update_frame_pc_hack and
6909 deprecated_update_frame_base_hack.
6910 (create_sentinel_frame): Add comment about ->pc going away.
6911 (get_prev_frame): Add comment about ->pc going away.
6912 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6913 frame_id_build, deprecated_update_frame_pc_hack and
6914 deprecated_update_frame_base_hack.
6915 (select_frame): Use get_frame_pc.
6916 (legacy_saved_regs_this_id): Use frame_id_build.
6917
50c46a0d
EZ
69182003-04-04 Elena Zannoni <ezannoni@redhat.com>
6919
fbe586ae
RH
6920 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6921 signed integer case.
6922 (classify_argument): Handle enumerations and references.
50c46a0d 6923
50bbdbd9
AC
69242003-04-04 Andrew Cagney <cagney@redhat.com>
6925
6926 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6927 ID to NULL.
6928
36018d2e
AF
69292003-04-01 Adam Fedor <fedor@gnu.org>
6930
6931 * gdb/objc-lang.c (selectors_info): Replace calls to
6932 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6933 SYMBOL_NATURAL_NAME.
6934 (classes_info, find_methods): Likewise.
6935
35cec841
KB
69362003-04-03 Kevin Buettner <kevinb@redhat.com>
6937
6938 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6939 ``mach'' to the value determined by bfd_default_set_arch_mach().
6940
43136899
BR
69412003-04-02 Bob Rossi <bob_rossi@cox.net>
6942
6943 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6944 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6945 (mi-cmd-file.o): Update dependencies.
6946
040b99fd
KB
69472003-04-01 Kevin Buettner <kevinb@redhat.com>
6948
6949 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6950 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6951
9a3d7dfd
AF
69522003-04-01 Adam Fedor <fedor@gnu.org>
6953
6954 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6955 * language.h (struct language_defn): Add la_demangle.
6956 (language_demangle): Declare.
6957 * language.c (language_demangle): New function.
6958 (unk_lang_demangle): Likewise.
6959 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 6960 Add ukn_lang_demangle.
9a3d7dfd 6961 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 6962 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
6963 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6964 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6965 * jv-lang.c (java_demangle): New function
6966 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
6967 * objc-lang.c (objc_demangle): Add options argument
6968 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
6969 * maint.c (maintenance_demangle): Replace switch with
6970 call to language_demangle.
6971 * utils.c (fprintf_symbol_filtered): Likewise.
6972
5e074003
AC
69732003-04-01 Andrew Cagney <cagney@redhat.com>
6974
6975 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6976 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6977 PRINT_TYPELESS_INTEGER.
6978 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6979 PUSH_RETURN_ADDRESS.
6980
270cb5d6
AC
69812003-04-01 Andrew Cagney <cagney@redhat.com>
6982
6983 * Makefile.in (d10v-tdep.o): Update dependencies.
6984 * d10v-tdep.c: Include "frame-base.h".
6985 (d10v_frame_unwind): Make constant.
6986 (d10v_frame_base_address): New function.
6987 (d10v_frame_base): New variable.
6988 (d10v_gdbarch_init): Set frame_base default.
6989 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6990 comment for base.
6991 (d10v_frame_unwind_cache): Set and use "prev_sp".
6992 (d10v_frame_this_id): Use the previous frame's inner most stack
6993 address and this frame's func address for the frame ID. Use
6994 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 6995
6bfb3e36
AC
69962003-04-01 Andrew Cagney <cagney@redhat.com>
6997
6998 * frame.h (get_frame_locals_address, get_frame_args_address):
6999 Refer to the base address, instead of the address of the first
7000 local or parameter.
8ffd9b1b 7001
da62e633
AC
70022003-04-01 Andrew Cagney <cagney@redhat.com>
7003
7004 Add frame debug info addresses:
7005 * frame-base.c: New file.
7006 * frame-base.h: New file.
7007 * frame.h (struct frame_base): Add opaque declaration.
7008 (get_frame_base): Update comment.
7009 (get_frame_base_address): Declare.
7010 (get_frame_locals_address): Declare.
7011 (get_frame_args_address): Declare.
7012 (struct frame_info): Add "base" and "base_cache". Update
7013 comments on the unwinder.
7014 * frame.c: Include "frame-base.h".
7015 (get_frame_locals_address): New function.
7016 (get_frame_base_address): New function.
7017 (get_frame_args_address): New function.
7018 * findvar.c (read_var_value): Use get_frame_locals_address and
7019 get_frame_args_address.
7020 * stack.c (frame_info): Use get_frame_locals_address and
7021 get_frame_args_address.
7022 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7023 moved to "frame-base.c".
7024 * printcmd.c (print_frame_nameless_args): Ditto.
7025 * symtab.h (address_class): Update comments.
7026 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7027 get_frame_base_address.
7028 * dwarf2expr.c (execute_stack_op): Ditto.
7029 * Makefile.in (frame_base_h): Define.
7030 (frame.o): Update dependencies.
7031 (frame-base.o): Add dependencies.
7032 (SFILES): Add frame-base.c.
7033 (COMMON_OBS): Add frame-base.o.
7034
3d30e9c2
AC
70352003-04-01 Andrew Cagney <cagney@redhat.com>
7036
7037 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7038 CALL_DUMMY_LENGTH): Ditto.
7039 * gdbarch.c: Re-generate.
7040 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7041 (CALL_DUMMY_LENGTH): Delete macro.
7042 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7043 * arm-tdep.c (arm_gdbarch_init): Ditto.
7044 * avr-tdep.c (avr_gdbarch_init): Ditto.
7045 * cris-tdep.c (cris_gdbarch_init): Ditto.
7046 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7047 * frv-tdep.c (frv_gdbarch_init): Ditto.
7048 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7049 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7050 * i386-tdep.c (i386_gdbarch_init): Ditto.
7051 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7052 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7053 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7054 * mips-tdep.c (mips_gdbarch_init): Ditto.
7055 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7056 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7057 * s390-tdep.c (s390_gdbarch_init): Ditto.
7058 * sh-tdep.c (sh_gdbarch_init): Ditto.
7059 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7060 * v850-tdep.c (v850_gdbarch_init): Ditto.
7061 * vax-tdep.c (vax_gdbarch_init): Ditto.
7062 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7063
ce0c7262
CV
70642003-04-01 Corinna Vinschen <vinschen@redhat.com>
7065
7066 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7067
73dd234f
AC
70682003-04-01 Andrew Cagney <cagney@redhat.com>
7069
7070 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7071 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7072 * gdbarch.h, gdbarch.c: Re-generate.
7073 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7074 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7075 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7076 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7077 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7078 * infcmd.c (run_stack_dummy): Simplify assuming
7079 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7080 * infrun.c (handle_inferior_event): Ditto.
7081 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7082 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7083 * arm-tdep.c (arm_gdbarch_init): Ditto.
7084 * avr-tdep.c (avr_gdbarch_init): Ditto.
7085 * cris-tdep.c (cris_gdbarch_init): Ditto.
7086 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7087 * frv-tdep.c (frv_gdbarch_init): Ditto.
7088 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7089 * i386-tdep.c (i386_gdbarch_init): Ditto.
7090 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7091 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7092 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7093 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7094 * mips-tdep.c (mips_gdbarch_init): Ditto.
7095 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7096 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7097 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7098 * s390-tdep.c (s390_gdbarch_init): Ditto.
7099 * sh-tdep.c (sh_gdbarch_init): Ditto.
7100 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7101 * v850-tdep.c (v850_gdbarch_init): Ditto.
7102 * vax-tdep.c (vax_gdbarch_init): Ditto.
7103 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7104
97606a13
DJ
71052003-04-01 Daniel Jacobowitz <drow@mvista.com>
7106
7107 * symfile.c (symfile_relocate_debug_section): Update call to
7108 bfd_simple_get_relocated_section_contents.
7109
e8ab51f7
AC
71102003-03-31 Andrew Cagney <cagney@redhat.com>
7111
7112 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7113 * gdbarch.h, gdbarch.c: Regenerate.
7114 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7115 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7116 available.
7117 * frame.h (generic_fix_call_dummy): Delete declaration.
7118 * dummy-frame.h: Update comment.
7119 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7120 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7121 fix_call_dummy.
7122 * sh-tdep.c (sh_gdbarch_init): Ditto.
7123 * s390-tdep.c (s390_gdbarch_init): Ditto.
7124 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7125 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7126 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7127 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7128 * i386-tdep.c (i386_gdbarch_init): Ditto.
7129 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7130 * frv-tdep.c (frv_gdbarch_init): Ditto.
7131 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7132 * cris-tdep.c (cris_gdbarch_init): Ditto.
7133 * avr-tdep.c (avr_gdbarch_init): Ditto.
7134 * arm-tdep.c (arm_gdbarch_init): Ditto.
7135
018d1b48
JB
71362003-03-31 J. Brobecker <brobecker@gnat.com>
7137
7138 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7139 (INIT_FRAME_AP): Likewise.
7140 (EXTRA_FRAME_INFO): Likewise.
7141
e9a2674e
AC
71422003-03-31 Andrew Cagney <cagney@redhat.com>
7143
7144 * gdbarch.sh: Include "symfile.h".
7145 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7146 * gdbarch.h, gdbarch.c: Re-generate.
7147 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7148 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7149 call_dummy_address, the default is at entry_point_address.
7150 * v850-tdep.c (v850_gdbarch_init): Ditto.
7151 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7152 * sh-tdep.c (sh_gdbarch_init): Ditto.
7153 * s390-tdep.c (s390_gdbarch_init): Ditto.
7154 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7155 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7156 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7157 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7158 * i386-tdep.c (i386_gdbarch_init): Ditto.
7159 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7160 * frv-tdep.c (frv_gdbarch_init): Ditto.
7161 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7162 * cris-tdep.c (cris_gdbarch_init): Ditto.
7163 * arm-tdep.c (arm_gdbarch_init): Ditto.
7164
e8a8712a
AC
71652003-03-31 Andrew Cagney <cagney@redhat.com>
7166
7167 * gdbarch.sh (CALL_DUMMY_P): Delete.
7168 * gdbarch.h, gdbarch.c: Re-generate.
7169 * inferior.h (CALL_DUMMY_P): Delete macro.
7170 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7171 * vax-tdep.c (vax_gdbarch_init): Update.
7172 * v850-tdep.c (v850_gdbarch_init): Update.
7173 * sparc-tdep.c (sparc_gdbarch_init): Update.
7174 * sh-tdep.c (sh_gdbarch_init): Update.
7175 * s390-tdep.c (s390_gdbarch_init): Update.
7176 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7177 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7178 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7179 * mips-tdep.c (mips_gdbarch_init): Update.
7180 * mcore-tdep.c (mcore_gdbarch_init): Update.
7181 * m68k-tdep.c (m68k_gdbarch_init): Update.
7182 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7183 * ia64-tdep.c (ia64_gdbarch_init): Update.
7184 * i386-tdep.c (i386_gdbarch_init): Update.
7185 * h8300-tdep.c (h8300_gdbarch_init): Update.
7186 * frv-tdep.c (frv_gdbarch_init): Update.
7187 * d10v-tdep.c (d10v_gdbarch_init): Update.
7188 * cris-tdep.c (cris_gdbarch_init): Update.
7189 * breakpoint.c (deprecated_frame_in_dummy): Update.
7190 * avr-tdep.c (avr_gdbarch_init): Update.
7191 * alpha-tdep.c (alpha_gdbarch_init): Update.
7192 * arm-tdep.c (arm_gdbarch_init): Update.
7193 * dummy-frame.c (dummy_frame_this_id): Update comments.
7194 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7195 * frame.c (legacy_get_prev_frame): Ditto.
7196 * valops.c (call_function_by_hand): Delete function.
7197 (hand_function_call): Rename to call_function_by_hand
7198
ed234cf8
AC
71992003-03-30 Andrew Cagney <cagney@redhat.com>
7200
7201 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7202 * value.h (struct value): Update comment.
ed234cf8 7203
06c77151
AC
72042003-03-30 Andrew Cagney <cagney@redhat.com>
7205
6c2b5168
AC
7206 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7207 D10V_FP_REGNUM.
7208 (d10v_gdbarch_init): Do not set fp_regnum.
7209
06c77151
AC
7210 * frame.c (get_frame_base): Force ID initialization.
7211 (get_prev_frame): Move computation of the frame ID from here ...
7212 (get_frame_id): ... to here.
7213 (legacy_get_prev_frame): Mark the frame ID as valid.
7214 * frame.h (struct frame_info): Add field "id_p".
7215
97a1a11c
MK
72162003-03-30 Mark Kettenis <kettenis@gnu.org>
7217
7218 * i386-tdep.c (i386_store_struct_return): Removed.
7219 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7220
6c0e89ed
AC
72212003-03-30 Andrew Cagney <cagney@redhat.com>
7222
7223 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7224 * gdbarch.h, gdbarch.c: Regenerate.
7225 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7226 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7227 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7228 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7229 * i386-tdep.c (i386_gdbarch_init): Ditto.
7230 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7231 * cris-tdep.c (cris_gdbarch_init): Ditto.
7232 * vax-tdep.c (vax_gdbarch_init): Ditto.
7233 * s390-tdep.c (s390_gdbarch_init): Ditto.
7234 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7235 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7236 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7237 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7238 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7239 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7240 * sparc-tdep.c (sparc_gdbarch_init): Update.
7241 * sh-tdep.c (sh_gdbarch_init): Update.
7242 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7243 * mips-tdep.c (mips_gdbarch_init): Update.
7244 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7245 * ia64-tdep.c (ia64_gdbarch_init): Update.
7246 * frv-tdep.c (frv_gdbarch_init): Update.
7247 * avr-tdep.c (avr_gdbarch_init): Update.
7248 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7249 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7250 instead of when push_dummy_call is not available.
8ffd9b1b 7251
f7dd6af2
AC
72522003-03-30 Andrew Cagney <cagney@redhat.com>
7253
7254 * infttrace.c: Include "gdbthread.h".
7255 (parent_attach_all): Fix function signature.
7256 (call_ptrace): Update call.
7257 * Makefile.in (infttrace.o): Update dependencies.
7258
28f617b3
AC
72592003-03-30 Andrew Cagney <cagney@redhat.com>
7260
7261 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7262 PUSH_RETURN_ADDRESS.
7263 * gdbarch.h, gdbarch.c: Regenerate.
7264 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7265 * x86-64-tdep.c (x86_64_init_abi): Update.
7266 * v850-tdep.c (v850_gdbarch_init): Update.
7267 * sparc-tdep.c (sparc_gdbarch_init): Update.
7268 * sh-tdep.c (sh_gdbarch_init): Update.
7269 * s390-tdep.c (s390_gdbarch_init): Update.
7270 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7271 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7272 * mips-tdep.c (mips_gdbarch_init): Update.
7273 * mcore-tdep.c (mcore_gdbarch_init): Update.
7274 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7275 * ia64-tdep.c (ia64_gdbarch_init): Update.
7276 * i386-tdep.c (i386_gdbarch_init): Update.
7277 * h8300-tdep.c (h8300_gdbarch_init): Update.
7278 * frv-tdep.c (frv_gdbarch_init): Update.
7279 * cris-tdep.c (cris_gdbarch_init): Update.
7280 * avr-tdep.c (avr_gdbarch_init): Update.
7281 * arm-tdep.c (arm_gdbarch_init): Update.
7282 * valops.c (hand_function_call): Update.
7283
4d628cd7
AC
72842003-03-29 Andrew Cagney <cagney@redhat.com>
7285
7286 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7287 sizeof_call_dummy_words.
7288 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7289 define.
7290 * gdbarch.h: Regenerate.
8ffd9b1b 7291
65e82032
AC
72922003-03-29 Andrew Cagney <cagney@redhat.com>
7293
7294 * infttrace.h: New file.
7295 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7296 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7297 (hpread_read_doc_function_type): Detect an initialized type1.
7298 (hpread_quick_traverse): Initialize mod_name_string.
7299 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7300 (som_solib_get_solib_by_pc): Declare.
7301 (so_lib_thread_start_addr): Declare.
7302 (no_shared_libraries): Declare.
7303 * somread.c (init_import_symbols): Make static. Add forward
7304 declaration.
7305 * config/pa/nm-hppah.h: Include "infttrace.h" for
7306 parent_attach_all.
7307 (hppa_insert_hw_watchpoint): Declare.
7308 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7309 * hppah-nat.c: Include "gdb_string.h".
7310 (parent_attach_all): Delete extern declaration, moved to
7311 "infttrace.h".
7312 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7313 int.
7314 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7315 * Makefile.in (infttrace_h): Define.
7316 (hpread.o): Update dependencies.
7317 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7318 * hppa-hpux-tdep.c: Include "gdb_string.h".
7319 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7320 * infrun.c (handle_inferior_event): Always initialize
7321 stepped_after_stopped_by_watchpoint. Add default and remove
7322 fallthrough in switch statement.
7323 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7324 parameter to int.
7325 (hppa_remove_hw_watchpoint): Ditto.
7326
2c3bbe77
AC
73272003-03-29 Andrew Cagney <cagney@redhat.com>
7328
7329 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7330 offset.
7331
2dd604e7
RE
73322003-03-29 Richard Earnshaw <rearnsha@arm.com>
7333
7334 * arm-tdep.c (arm_push_arguments): Delete.
7335 (struct stack_item): New type.
7336 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7337 (arm_store_struct_return): Delte.
7338 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7339 arm_push_arguments or arm_store_struct_return.
7340
e8933a55
AC
73412003-03-28 Andrew Cagney <cagney@redhat.com>
7342
7343 * Makefile.in (d10v-tdep.o): Update dependencies.
7344 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7345 * d10v-tdep.c: Include "remote.h".
7346 (target_resume_hook): Delete extern declaration.
7347 (target_wait_loop_hook): Ditto.
7348 (tdisassemble_command): Eliminate assignment in "if" conditional.
7349 (d10v_ts2_register_sim_regno): Eliminate call to
7350 legacy_register_sim_regno.
7351 (d10v_ts3_register_sim_regno): Ditto.
7352
6949171e
JJ
73532003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7354
7355 * thread.c: Reindented.
7356 * lin-lwp.c: Ditto.
7357 * linux-proc.c: Ditto.
7358
98c7071f
BR
73592003-03-28 Bob Rossi <bob_rossi@cox.net>
7360
fbe586ae 7361 * MAINTAINERS (write after approval): Add myself.
98c7071f 7362
5edc9ca6
TR
73632003-03-27 Theodore A. Roth <troth@openavr.org>
7364
7365 * objc-exp.y: Add missing semi-colons.
7366
378bfd1b
AC
73672003-03-27 Andrew Cagney <cagney@redhat.com>
7368
7369 * regcache.c (write_sp): Delete function and references.
7370 * inferior.h (write_sp): Delete declaration.
7371 * valops.c (hand_function_call): Replace write_sp with
7372 TARGET_WRITE_SP.
7373 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7374 (sparc_pop_frame): Ditto.
8ffd9b1b 7375
56056df7
AC
73762003-03-27 Andrew Cagney <cagney@redhat.com>
7377
7378 * NEWS: Mention removal of support for hppa*-*-bsd* and
7379 hppa*-*-osf* natives, and hppa*-*-pro* target.
7380 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7381 * config/pa/xm-pa.h: Obsolete file.
7382 * config/pa/xm-hppab.h: Obsolete file.
7383 * config/pa/nm-hppab.h: Obsolete file.
7384 * config/pa/tm-hppab.h: Obsolete file.
7385 * config/pa/tm-hppao.h: Obsolete file.
7386 * config/pa/nm-hppao.h: Obsolete file.
7387 * config/pa/tm-pro.h: Obsolete file.
7388 * config/pa/hppaosf.mt: Obsolete file.
7389 * config/pa/hppaosf.mh: Obsolete file.
7390 * config/pa/hppapro.mt: Obsolete file.
7391 * config/pa/hppabsd.mt: Obsolete file.
7392 * config/pa/hppabsd.mh: Obsolete file.
7393 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7394 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7395 hppa*-*-osf*.
7396
5873a88d
AC
73972003-03-27 Andrew Cagney <cagney@redhat.com>
7398
7399 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7400 push_arguments. Don't set push_return_address or write_sp.
7401 (d10v_push_dummy_call): Replace d10v_push_arguments.
7402 (d10v_push_return_address, d10v_write_sp): Delete function,
7403 handled by push_dummy_call.
7404
b81774d8
AC
74052003-03-26 Andrew Cagney <cagney@redhat.com>
7406
7407 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7408 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7409 regcache and dummy_addr parameters.
7410 * gdbarch.h, gdbarch.c: Re-generate.
7411 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7412 available; assume it will handle stack alignment and return
7413 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7414 legacy_push_arguments.
7415 (legacy_push_arguments): Rename default_push_arguments.
7416 * value.h (legacy_push_arguments): Rename default_push_arguments.
7417 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7418 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7419 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7420 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7421 * config/i386/tm-symmetry.h: Update.
7422 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7423 * x86-64-tdep.c (x86_64_init_abi): Update.
7424 * v850-tdep.c (v850_gdbarch_init): Update.
7425 * sparc-tdep.c (sparc_gdbarch_init): Update.
7426 * sh-tdep.c (sh_gdbarch_init): Update.
7427 * s390-tdep.c (s390_gdbarch_init): Update.
7428 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7429 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7430 * mips-tdep.c (mips_gdbarch_init): Update.
7431 * mcore-tdep.c (mcore_gdbarch_init): Update.
7432 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7433 * ia64-tdep.c (ia64_gdbarch_init): Update.
7434 * i386-tdep.c (i386_gdbarch_init): Update.
7435 * hppa-tdep.c (hppa_gdbarch_init): Update.
7436 * h8300-tdep.c (h8300_gdbarch_init): Update.
7437 * frv-tdep.c (frv_gdbarch_init): Update.
7438 * d10v-tdep.c (d10v_gdbarch_init): Update.
7439 * cris-tdep.c (cris_gdbarch_init): Update.
7440 * avr-tdep.c (avr_gdbarch_init): Update.
7441 * arm-tdep.c (arm_gdbarch_init): Update.
7442 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7443 * alpha-tdep.c (alpha_gdbarch_init): Update.
7444
f541410f
DJ
74452003-03-26 Daniel Jacobowitz <drow@mvista.com>
7446
7447 * signals/signals.c (do_target_signal_to_host): Correct realtime
7448 signal range test.
7449
69f567ae
DJ
74502003-03-26 Daniel Jacobowitz <drow@mvista.com>
7451
7452 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7453 (struct sal_chain, map_catch_names): Remove.
7454 (catch_exception_command_1): Don't call
7455 handle_gnu_4_16_catch_command.
7456
d5d14a5a
DJ
74572003-03-26 Daniel Jacobowitz <drow@mvista.com>
7458
7459 From Mark Dettinger <dettinge@de.ibm.com>:
7460 * dwarf2cfi.c (read_2u): Increment pointer by two.
7461
bdd73e22
DJ
74622003-03-26 Daniel Jacobowitz <drow@mvista.com>
7463
7464 * signals/signals.c: Fix typos in last change.
7465
960cb555
DJ
74662003-03-26 Daniel Jacobowitz <drow@mvista.com>
7467
7468 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7469 not already defined. Use __SIGRTMIN if available.
7470 (target_signal_from_host): Remove SIGRTMIN block.
7471 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7472 the signal is within the realtime range.
7473
f636b87d
AF
74742003-03-25 Adam Fedor <fedor@gnu.org>
7475
7476 * Makefile.in (infrun.o): Add $(language_h)
7477 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7478 for language specific trampolines.
7479 * language.h (struct language_defn): Add skip_trampoline.
7480 (skip_language_trampoline): Declare.
7481 * language.c (unk_lang_trampoline, skip_language_trampoline):
7482 New functions.
7483 (unknown_language_defn, auto_language_defn, local_language_defn):
7484 Add ukn_lang_trampoline.
7485 * ada-lang.c (ada_language_defn): Add NULL for language
7486 specific skip_trampoline.
7487 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7488 scm-lang.c: Likewise.
7489 * objc-lang.c (objc_skip_trampoline): New function.
7490 (objc_language_defn): Add objc_skip_trampoline.
7491
28f617b3 74922003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
7493
7494 * frame.c (get_prev_frame): Delay validating a frame's ID -
7495 non-NULL, didn't go backwards - until an attempt to unwind it to
7496 the previous frame.
7497
f933a9c5
AC
74982003-03-25 Andrew Cagney <cagney@redhat.com>
7499
7500 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7501 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7502 * gdbarch.h, gdbarch.c: Re-generate.
7503 * config/sparc/tm-sparc.h
7504 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7505 * sparc-tdep.c (sparc_gdbarch_init): Set
7506 deprecated_extra_stack_alignment_needed.
7507 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7508 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7509 extra_stack_alignment_needed.
7510 * v850-tdep.c (v850_gdbarch_init): Ditto.
7511 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7512 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7513 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7514 * cris-tdep.c (cris_gdbarch_init): Ditto.
7515 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7516 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7517
4183d812
AC
75182003-03-25 Andrew Cagney <cagney@redhat.com>
7519
7520 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7521 STORE_STRUCT_RETURN.
7522 * gdbarch.h, gdbarch.c: Regenerate.
7523 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7524 (d10v_push_arguments): Set the struct return register.
7525 (d10v_gdbarch_init): Update.
7526 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7527 * x86-64-tdep.c (x86_64_init_abi): Update.
7528 * vax-tdep.c (vax_gdbarch_init): Update.
7529 * v850-tdep.c (v850_gdbarch_init): Update.
7530 * sparc-tdep.c (sparc_gdbarch_init): Update.
7531 * sh-tdep.c (sh_gdbarch_init): Update.
7532 * s390-tdep.c (s390_gdbarch_init): Update.
7533 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7534 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7535 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7536 * mips-tdep.c (mips_gdbarch_init): Update.
7537 * mcore-tdep.c (mcore_gdbarch_init): Update.
7538 * m68k-tdep.c (m68k_gdbarch_init): Update.
7539 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7540 * ia64-tdep.c (ia64_gdbarch_init): Update.
7541 * i386-tdep.c (i386_gdbarch_init): Update.
7542 * hppa-tdep.c (hppa_gdbarch_init): Update.
7543 * h8300-tdep.c (h8300_gdbarch_init): Update.
7544 * frv-tdep.c (frv_gdbarch_init): Update.
7545 * cris-tdep.c (cris_gdbarch_init): Update.
7546 * avr-tdep.c (avr_gdbarch_init): Update.
7547 * arm-tdep.c (arm_gdbarch_init): Update.
7548 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7549
1bf6d5cc
AC
75502003-03-25 Andrew Cagney <cagney@redhat.com>
7551
7552 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7553 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7554 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7555 * gdbarch.h, gdbarch.c: Regenerate.
7556 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7557 call_dummy_stack_adjust_p.
7558 * vax-tdep.c (vax_gdbarch_init): Ditto.
7559 * v850-tdep.c (v850_gdbarch_init): Ditto.
7560 * sh-tdep.c (sh_gdbarch_init): Ditto.
7561 * s390-tdep.c (s390_gdbarch_init): Ditto.
7562 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7563 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7564 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7565 * mips-tdep.c (mips_gdbarch_init): Ditto.
7566 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7567 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7568 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7569 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7570 * i386-tdep.c (i386_gdbarch_init): Ditto.
7571 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7572 * frv-tdep.c (frv_gdbarch_init): Ditto.
7573 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7574 * cris-tdep.c (cris_gdbarch_init): Ditto.
7575 * avr-tdep.c (avr_gdbarch_init): Ditto.
7576 * arm-tdep.c (arm_gdbarch_init): Ditto.
7577 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7578 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7579 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7580 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7581 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7582 call_dummy_stack_adjust_p.
7583 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7584 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7585 * sparc-tdep.c (sparc32_push_arguments): Update.
7586 * valops.c (hand_function_call): Update.
7587
71c08af0
CV
75882003-03-25 Corinna Vinschen <vinschen@redhat.com>
7589
7590 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7591 set_gdbarch_char_signed.
7592
30757f90
RE
75932003-03-25 Richard Earnshaw <rearnsha@arm.com>
7594
7595 PR cli/548
7596 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7597
03d48a7d
RE
75982003-03-25 Richard Earnshaw <rearnsha@arm.com>
7599
7600 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7601 (_initialize_arm_tdep): Don't set tm_print_insn.
7602
2cf6873c
AF
76032003-03-24 Adam Fedor <fedor@gnu.org>
7604
7605 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7606 * objc-lang.h: Add multiple inclusion protection.
7607 (start_msglist, add_msglist, end_msglist): Additional declarations.
7608
17c0759e
RE
76092003-03-24 Richard Earnshaw <rearnsha@arm.com>
7610
7611 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7612 value was renamed to ARM_FLOAT_SOFT_FPA.
7613
618ce49f
AC
76142003-03-23 Andrew Cagney <cagney@redhat.com>
7615
7616 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7617 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7618 * gdbarch.h, gdbarch.c: Regenerate.
7619 * valops.c (hand_function_call): Update.
7620 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7621 * frame.c (legacy_saved_regs_this_id): Update.
7622 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7623 * dummy-frame.h: Update.
7624 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7625 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7626 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7627 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7628 * config/m68k/tm-sun3.h: Update.
7629 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7630 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7631 * x86-64-tdep.c (x86_64_init_abi): Update.
7632 * vax-tdep.c (vax_gdbarch_init): Update.
7633 * v850-tdep.c (v850_gdbarch_init): Update.
7634 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7635 * sh-tdep.c (sh_gdbarch_init): Update.
7636 * s390-tdep.c (s390_gdbarch_init): Update.
7637 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7638 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7639 (frame_get_saved_regs): Update.
7640 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7641 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7642 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7643 * mips-tdep.c (mips_gdbarch_init): Update.
7644 * mcore-tdep.c (mcore_gdbarch_init): Update.
7645 * m68k-tdep.c (m68k_gdbarch_init): Update.
7646 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7647 * ia64-tdep.c (ia64_gdbarch_init): Update.
7648 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7649 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7650 (i386_interix_back_one_frame): Update.
7651 * hppa-tdep.c (hppa_gdbarch_init): Update.
7652 (hppa_init_extra_frame_info): Update.
7653 * h8300-tdep.c (h8300_gdbarch_init): Update.
7654 * frv-tdep.c (frv_gdbarch_init): Update.
7655 * cris-tdep.c (cris_gdbarch_init): Update.
7656 * avr-tdep.c (avr_gdbarch_init): Update.
7657 * arm-tdep.c (arm_gdbarch_init): Update.
7658 * alpha-tdep.c (alpha_gdbarch_init): Update.
7659
fd50bc42
RE
76602003-03-22 Richard Earnshaw <rearnsha@arm.com>
7661
7662 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7663 (arm_get_fp_model): Declare.
7664 * arm-tdep.c (fp_model_strings): New string array.
7665 (arm_fp_model, current_fp_model): New variables.
7666 (arm_get_fp_model): New function.
7667 (arm_set_fp): New function.
7668 (set_fp_model_sfunc): New function.
7669 (show_fp_model): New function.
7670 (_initialize_arm_tdep): Add new command to set/show the FPU.
7671 (arm_extract_return_value): Use arm_get_fp_model.
7672 (arm_store_return_value): Likewise.
7673 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7674 to initialize the floating-point data types.
7675 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7676 model is FPA.
7677
26304000
RE
76782003-03-22 Richard Earnshaw <rearnsha@arm.com>
7679
7680 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7681 the current setting of each value.
7682 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 7683 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
7684 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7685 commands and add new version as subcommands of "set/show arm".
7686
afd7eef0
RE
76872003-03-22 Richard Earnshaw <rearnsha@arm.com>
7688
7689 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7690 (set_arm_command, show_arm_command): New functions.
7691 (_initialize_arm_tdep): Add them.
7692 (num_disassembly_options): Renamed from num_flavor_options.
7693 (valid_disassembly_styles): Renamed from valid_flavors.
7694 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 7695 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
7696 set_disassembly_flavor_sfunc.
7697 (set_disassembly_style): Renamed from set_disassembly_flavor.
7698 (arm_othernames): Updated.
7699 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7700 command. Add "set/show arm disassembly" commands. Deprecate
7701 "othernames" command.
7702
299a7944
RE
77032003-03-22 Richard Earnshaw <rearnsha@arm.com>
7704
7705 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7706 (arm-tdep.o): Depend on elf_arm_h.
7707
c1dac9e6
RE
77082003-03-22 Richard Earnshaw <rearnsha@arm.com>
7709
7710 * Makefile.in (coff_internal_h): Define.
7711 (arm-tdep.o): Update dependencies.
7712
2702d96c
RE
77132003-03-22 Richard Earnshaw <rearnsha@arm.com>
7714
7715 * arm-tdep.c (prologue_cache): Delete.
7716 (check_prologue_cache, save_prologue_cache): Delete.
7717 (arm_scan_prologue): Don't check or update the prologue_cache.
7718 (arm_gdb_arch_init): Don't initialize it.
7719 (_initialize_arm_tdep): Likewise.
7720
27d5d74b
SC
77212003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7722
7723 * MAINTAINERS (tui): Maintainer of tui code.
7724
1762d96d
CV
77252003-03-21 Corinna Vinschen <vinschen@redhat.com>
7726
7727 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7728 (i386-cygwin-tdep.o): Add dependencies.
7729 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7730 * i386-cygwin-tdep.c: New file.
7731 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7732 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7733
4c2e2391
AC
77342003-03-20 Andrew Cagney <cagney@redhat.com>
7735
f20d38b7
AC
7736 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7737 (handle_inferior_event): Remove code calling
7738 DYNAMIC_TRAMPOLINE_NEXTPC.
7739
0022b738
AC
7740 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7741 already has a full path.
7742
864dbc90
AC
7743 * main.c (gdb_main): Return 1.
7744 (captured_main): Call error to report an invalid interpreter.
7745
4c2e2391
AC
7746 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7747 * alpha-osf1-tdep.c: Include "gdb_string.h".
7748
5ef7553b
JB
77492003-03-19 J. Brobecker <brobecker@gnat.com>
7750
7751 Continuing work to convert the hppa targets to multiarch partial.
7752
7753 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7754 method, now that hppa_push_dummy_frame has a conformant prototype.
7755 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7756 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7757 for the switch to multiarch partial.
7758
7bde8967
KB
77592003-03-19 Kevin Buettner <kevinb@redhat.com>
7760
7761 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7762 when iss is issNull.
7763
b006a9e9
KB
77642003-03-18 Kevin Buettner <kevinb@redhat.com>
7765
7766 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7767 NUM_REGS bounds check.
7768
5e2e9765
KB
77692003-03-18 Kevin Buettner <kevinb@redhat.com>
7770
7771 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7772 * mips-tdep.c (gdb_assert.h): Include.
7773 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7774 (mips_register_name): Handle integer registers explicitly. Add
7775 bounds checking.
7776 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7777 (mips_lsi33k_reg_names): Don't list integer registers; they're
7778 handled by mips_register_name() now.
7779 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7780 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7781 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7782 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7783 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7784
a2867626
AC
77852003-03-18 Andrew Cagney <cagney@redhat.com>
7786
7787 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7788 a void pointer.
7789 * gdbtypes.h (print_scalar_formatted): Update declaration.
7790 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7791
06600e06
JB
77922003-03-18 J. Brobecker <brobecker@gnat.com>
7793
7794 * infrun.c (observer.h): Add #include.
7795 (normal_stop): Add call to observer_notify_normal_stop.
7796 * Makefile.in (infrun.o): Add dependency on observer.h.
7797
7daf4f5b
JB
77982003-03-18 J. Brobecker <brobecker@gnat.com>
7799
7800 Continuing work to convert the hppa targets to multiarch partial.
7801 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7802 parameter. Reformat comment.
7803 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7804 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7805 to match new profile.
7806
3371ccc0
JB
78072003-03-18 J. Brobecker <brobecker@gnat.com>
7808
7809 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7810 appear to be working in any case.
7811
4fbe891e
JB
78122003-03-18 J. Brobecker <brobecker@gnat.com>
7813
7814 * observer.c (observer_test_first_observer): New static variable.
7815 (observer_test_second_observer): Likewise.
7816 (observer_test_third_observer): Likewise.
7817 (observer_test_first_notification_function): New static function.
7818 (observer_test_second_notification_function): Likewise.
7819 (observer_test_third_notification_function): Likewise.
7820
a7ff40e7
JB
78212003-03-17 J. Brobecker <brobecker@gnat.com>
7822
7823 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7824 * somsolib.c (gdb_assert.h): Likewise.
7825 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7826 (somsolib.o): Likewise.
7827
26ca4152
AC
78282003-03-17 Andrew Cagney <cagney@redhat.com>
7829
7830 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7831 BFD. Simplify setting of di.endian.
7832
0a613259
AC
78332003-03-17 Andrew Cagney <cagney@redhat.com>
7834
7835 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7836 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7837
7838 From Elena Zannoni <ezannoni@redhat.com>
7839 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7840 vector and floating-point parameters.
7841 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7842 convention.
7843 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7844
1132738f
FN
78452003-03-17 Fernando Nasser <fnasser@redhat.com>
7846
7847 * MAINTAINERS: Remove my name from several maintainership roles.
7848
6dc42492
AC
78492003-03-17 Andrew Cagney <cagney@redhat.com>
7850
7851 Fix frame off-by-one bug.
7852 * frame-unwind.h (frame_this_id_ftype): Replace
7853 frame_unwind_id_ftype.
7854 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7855 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7856 with "prev_register".
7857 * frame-unwind.c (frame_unwind_find_by_pc): Return
7858 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7859 comment.
7860 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7861 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7862 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7863 (dummy_frame_unwind): Update.
7864 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7865 sentinel_frame_register_unwind.
7866 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7867 (sentinel_frame_unwinder): Update.
7868 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7869 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7870 * frame.c (create_sentinel_frame): Update. Initialize
7871 "prologue_cache" instead of "unwind_cache".
7872 (frame_register_unwind): Call this frame's prev_register with the
7873 next frame and this frame's prologue cache.
7874 (get_prev_frame): Simplify. Always call prev frame's this_id with
7875 this frame and prev frame's prologue cache. Document that this
7876 call is shifted one to the left when compared to the
7877 frame_register_unwind call.
7878 (legacy_saved_regs_prev_register): Replace
7879 frame_saved_regs_register_unwind.
7880 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7881 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7882 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7883 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7884 (d10v_frame_unwind): Update.
7885 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7886 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7887 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7888 "saved_regs" with "this_saved_regs".
7889
efd710d6
AC
78902003-03-16 Andrew Cagney <cagney@redhat.com>
7891
7892 * frame.c (frame_pop): Don't call target_store_registers. Fix
7893 problem reported by Mark Kettenis.
7894
4e259f09
MK
78952003-03-16 Mark Kettenis <kettenis@gnu.org>
7896
7897 * i386-tdep.c (i386_register_type): Renamed from
7898 i386_register_virtual_type. Adjust function signature.
7899 (i386_gdbarch_init): Set register_type instead of
7900 deprecated_max_register_raw_size,
7901 deprecated_max_register_virtual_size and register_virtual_type.
7902
055bb976
AC
79032003-03-14 Andrew Cagney <cagney@redhat.com>
7904
7905 * frame.c (get_prev_frame): When a legacy frame, always call
7906 legacy_get_prev_frame. Simplify unwind code using assumption that
7907 the unwinder is new.
7908 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7909 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7910 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7911
ac2adee5
AC
79122003-03-14 Andrew Cagney <cagney@redhat.com>
7913
7914 * frame.c (get_saved_register): Delete function.
7915 * frame.h (get_saved_register): Delete declaration.
7916 * xstormy16-tdep.c: Update comment.
7917 * regcache.h: Update comments.
7918 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7919 get_saved_register and extract_address, use
7920 frame_read_unsigned_register.
7921 (sparc_frame_saved_pc): Ditto.
7922 (sparc_get_saved_register): Instead of get_saved_register, use
7923 frame_register.
7924 (sparc_pop_frame): Ditto.
7925 * findvar.c: Update comments.
7926 (value_of_register): Call frame_register instead of
7927 get_saved_register.
7928 (value_from_register): Ditto.
7929 * config/sparc/tm-sparc.h: Update comment.
7930 * breakpoint.c: Update comment.
7931
129c1cd6
AC
79322003-03-14 Andrew Cagney <cagney@redhat.com>
7933
7934 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7935 GET_SAVED_REGISTER.
7936 * gdbarch.h, gdbarch.c: Re-generate.
7937 * frame.h: Update comments.
7938 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7939 * x86-64-tdep.c (x86_64_init_abi): Update.
7940 * sparc-tdep.c (sparc_gdbarch_init): Update.
7941 * sh-tdep.c (sh_gdbarch_init): Update.
7942 * mips-tdep.c (mips_gdbarch_init): Update.
7943 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7944 * cris-tdep.c (cris_gdbarch_init): Update.
7945 * ia64-tdep.c (ia64_gdbarch_init): Update.
7946 * frame.c (frame_register): Update.
7947 (get_saved_register): Update.
7948 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 7949
749b82f6
AC
79502003-03-13 Andrew Cagney <cagney@redhat.com>
7951
7952 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7953 * gdbarch.h, gdbarch.c: Regenerate.
7954 * valops.c (hand_function_call): Update comment.
7955 * stack.c (return_command): Update comment.
7956 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7957 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7958 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7959 * x86-64-tdep.c (x86_64_init_abi): Update.
7960 * vax-tdep.c (vax_gdbarch_init): Update.
7961 * v850-tdep.c (v850_gdbarch_init): Update.
7962 * sparc-tdep.c (sparc_gdbarch_init): Update.
7963 * sh-tdep.c (sh_gdbarch_init): Update.
7964 * s390-tdep.c (s390_gdbarch_init): Update.
7965 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7966 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7967 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7968 * mips-tdep.c (mips_gdbarch_init): Update.
7969 * mcore-tdep.c (mcore_gdbarch_init): Update.
7970 * m68k-tdep.c (m68k_gdbarch_init): Update.
7971 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7972 * ia64-tdep.c (ia64_gdbarch_init): Update.
7973 * i386-tdep.c (i386_gdbarch_init): Update.
7974 * hppa-tdep.c (hppa_gdbarch_init): Update.
7975 * h8300-tdep.c (h8300_gdbarch_init): Update.
7976 * frv-tdep.c (frv_gdbarch_init): Update.
7977 * cris-tdep.c (cris_gdbarch_init): Update.
7978 * avr-tdep.c (avr_gdbarch_init): Update.
7979 * arm-tdep.c (arm_gdbarch_init): Update.
7980 * alpha-tdep.c (alpha_gdbarch_init): Update.
7981
1594fa56
AC
79822003-03-13 Andrew Cagney <cagney@redhat.com>
7983
7984 * frame.c (legacy_frame_p): New function.
7985 (get_prev_frame): Use legacy_frame_p.
7986 * frame.h (legacy_frame_p): Declare.
7987
7717fda3
V
79882003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7989
fbe586ae 7990 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
7991 listing corrected.
7992
0c67cbe9
V
79932003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7994
fbe586ae 7995 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 7996
03febf99
AC
79972003-03-12 Andrew Cagney <cagney@redhat.com>
7998
7999 * frame.c (get_prev_frame): Rename the frame parameter to
8000 "this_frame".
8001 (get_next_frame, legacy_get_prev_frame): Ditto.
8002
0a1e1ca1
AC
80032003-03-12 Andrew Cagney <cagney@redhat.com>
8004
8005 * frame.c (get_current_frame): Check target_has_registers before
8006 checking target_has_stack.
8007 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8008 instead of deprecated_selected_frame.
8009 * findvar.c (value_of_register): Pass "frame", not
8010 deprecated_selected_frame, to value_of_builtin_reg.
8011
a66a9c23
AC
80122003-03-12 Andrew Cagney <cagney@redhat.com>
8013
8014 * regcache.c (regcache_cooked_write_signed): New function.
8015 (regcache_cooked_write_unsigned): New function.
8016 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8017 (regcache_cooked_read_signed): Fix regnum in range assertion.
8018 * regcache.h (regcache_cooked_write_signed): Declare.
8019 (regcache_cooked_write_unsigned): Declare.
8020
8bedc050
AC
80212003-03-12 Andrew Cagney <cagney@redhat.com>
8022
8023 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8024 * gdbarch.h, gdbarch.c: Re-generate.
8025 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8026 * x86-64-tdep.h: Update.
8027 * x86-64-tdep.c (x86_64_init_abi): Update.
8028 * v850-tdep.c (v850_gdbarch_init): Update.
8029 * sparc-tdep.c (sparc_gdbarch_init): Update.
8030 * sh-tdep.c (sh_gdbarch_init): Update.
8031 * s390-tdep.c (s390_gdbarch_init): Update.
8032 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8033 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8034 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8035 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8036 * mips-tdep.c (mips_gdbarch_init): Update.
8037 * mcore-tdep.c (mcore_gdbarch_init): Update.
8038 * m68k-tdep.c (m68k_gdbarch_init): Update.
8039 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8040 * ia64-tdep.c (ia64_gdbarch_init): Update.
8041 * i386-tdep.c (i386_gdbarch_init): Update.
8042 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8043 * hppa-tdep.c (hppa_gdbarch_init): Update.
8044 * h8300-tdep.c (h8300_gdbarch_init): Update.
8045 * frv-tdep.c (frv_gdbarch_init): Update.
8046 * cris-tdep.c (cris_gdbarch_init): Update.
8047 * avr-tdep.c (avr_gdbarch_init): Update.
8048 * arm-tdep.c (arm_gdbarch_init): Update.
8049 * alpha-tdep.c (alpha_gdbarch_init): Update.
8050 * sh-tdep.c (sh_init_extra_frame_info): Update.
8051 (sh64_init_extra_frame_info): Update.
8052 * ns32knbsd-nat.c (frame_num_args): Update.
8053 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8054 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8055 (xstormy16_frame_chain_valid): Update.
8056 * vax-tdep.c (vax_saved_pc_after_call): Update.
8057 * v850-tdep.c (v850_frame_chain): Update.
8058 (v850_pop_frame): Update.
8059 (v850_init_extra_frame_info): Update.
8060 * sparc-tdep.c (setup_arbitrary_frame): Update.
8061 * ns32k-tdep.c (umax_frame_num_args): Update.
8062 * s390-tdep.c (s390_pop_frame_regular): Update.
8063 * mn10300-tdep.c (mn10300_frame_chain): Update.
8064 (mn10300_pop_frame_regular): Update.
8065 (mn10300_init_extra_frame_info): Update.
8066 * mips-tdep.c (mips_init_frame_pc_first): Update.
8067 (mips_frame_chain): Update.
8068 (mips_pop_frame): Update.
8069 * mcore-tdep.c (mcore_frame_chain): Update.
8070 (mcore_pop_frame): Update.
8071 (mcore_init_extra_frame_info): Update.
8072 * arch-utils.c (init_frame_pc_default): Update.
8073 * m68k-tdep.c (isi_frame_num_args): Update.
8074 (delta68_frame_num_args): Update.
8075 (news_frame_num_args): Update.
8076 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8077 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8078 (alpha_frame_chain): Update.
8079 (alpha_pop_frame): Update.
8080 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8081 (hppa_init_extra_frame_info): Update.
8082 (hppa_frame_chain): Update.
8083 (hppa_frame_chain_valid): Update.
8084 * cris-tdep.c (cris_init_extra_frame_info): Update.
8085 * avr-tdep.c (avr_init_extra_frame_info): Update.
8086 * arm-tdep.c (arm_frame_chain_valid): Update.
8087 (arm_init_extra_frame_info): Update.
8088 (arm_pop_frame): Update.
8089 * frame.c (frame_pc_unwind): Update.
8090 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8091 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8092 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8093 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8094 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8095 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8096
7a25a7c1
AC
80972003-03-12 Andrew Cagney <cagney@redhat.com>
8098
8099 Eliminate the need for POP_FRAME.
8100 * frame.c (do_frame_unwind_register): New function.
8101 (frame_pop): When no POP_FRAME, pop the frame using register
8102 unwind and a scratch regcache.
8103 (frame_saved_regs_pop): Delete function.
8104 (trad_frame_unwinder): Update.
8105 * d10v-tdep.c (d10v_frame_pop): Delete function.
8106 (d10v_frame_unwind): Update.
8107 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8108 (sentinel_frame_unwinder): Update.
8109 * dummy-frame.c (dummy_frame_pop): Delete function.
8110 (dummy_frame_unwind): Update.
8111 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8112 (struct frame_unwind): Update.
8113
2f38ef89
KB
81142003-03-11 Kevin Buettner <kevinb@redhat.com>
8115
8116 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8117 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8118 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8119 Do range checks on register number obtained from debugging info.
8120 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8121 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8122 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8123 mapping function.
8124 (do_fp_register_row): Fix typo which caused double type to be
8125 used when attempting to unpack a float.
8126
552f4abf
JB
81272003-03-11 J. Brobecker <brobecker@gnat.com>
8128
8129 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8130
e0d2ae16
AC
81312003-03-11 Andrew Cagney <cagney@redhat.com>
8132
8133 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8134 frame. Problem found by Corinna Vinschen.
8135
ddbfdd06
PM
81362003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8137
8138 * doublest.c (floatformat_from_length): Accept also
8139 the real size of 'long double' type.
8140
088b2ddc 81412003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8142
088b2ddc 8143 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8144 * breakpoint.c (bpstat_copy): Copy the command lines as well
8145 as the old value, to match what is freed in bpstat_clear.
8146
f56f77c1
DC
81472003-03-10 David Carlton <carlton@math.stanford.edu>
8148
8149 * minsyms.c (add_minsym_to_hash_table): Replace
8150 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8151 (compare_minimal_symbols, compact_minimal_symbols)
8152 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8153 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8154 of DEPRECATED_SYMBOL_MATCHES_NAME.
8155 (lookup_minimal_symbol_solib_trampoline): Ditto.
8156
5602984a
AC
81572003-03-10 Andrew Cagney <cagney@redhat.com>
8158
8159 * regcache.h (regcache_cooked_read_ftype): Define.
8160 (regcache_save, regcache_restore): Add a cooked_read parameter.
8161 * regcache.c (regcache_save, regcache_restore): Update.
8162 (do_cooked_read): New function.
8163 (regcache_cpy): Pass do_cooked_read to regcache_save and
8164 regcache_restore.
8165
8bedc050
AC
81662003-03-10 Andrew Cagney <cagney@redhat.com>
8167
8168 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8169 * gdbarch.h, gdbarch.c: Re-generate.
8170 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8171 * x86-64-tdep.h: Update.
8172 * x86-64-tdep.c (x86_64_init_abi): Update.
8173 * v850-tdep.c (v850_gdbarch_init): Update.
8174 * sparc-tdep.c (sparc_gdbarch_init): Update.
8175 * sh-tdep.c (sh_gdbarch_init): Update.
8176 * s390-tdep.c (s390_gdbarch_init): Update.
8177 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8178 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8179 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8180 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8181 * mips-tdep.c (mips_gdbarch_init): Update.
8182 * mcore-tdep.c (mcore_gdbarch_init): Update.
8183 * m68k-tdep.c (m68k_gdbarch_init): Update.
8184 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8185 * ia64-tdep.c (ia64_gdbarch_init): Update.
8186 * i386-tdep.c (i386_gdbarch_init): Update.
8187 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8188 * hppa-tdep.c (hppa_gdbarch_init): Update.
8189 * h8300-tdep.c (h8300_gdbarch_init): Update.
8190 * frv-tdep.c (frv_gdbarch_init): Update.
8191 * cris-tdep.c (cris_gdbarch_init): Update.
8192 * avr-tdep.c (avr_gdbarch_init): Update.
8193 * arm-tdep.c (arm_gdbarch_init): Update.
8194 * alpha-tdep.c (alpha_gdbarch_init): Update.
8195 * sh-tdep.c (sh_init_extra_frame_info): Update.
8196 (sh64_init_extra_frame_info): Update.
8197 * ns32knbsd-nat.c (frame_num_args): Update.
8198 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8199 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8200 (xstormy16_frame_chain_valid): Update.
8201 * vax-tdep.c (vax_saved_pc_after_call): Update.
8202 * v850-tdep.c (v850_frame_chain): Update.
8203 (v850_pop_frame): Update.
8204 (v850_init_extra_frame_info): Update.
8205 * sparc-tdep.c (setup_arbitrary_frame): Update.
8206 * ns32k-tdep.c (umax_frame_num_args): Update.
8207 * s390-tdep.c (s390_pop_frame_regular): Update.
8208 * mn10300-tdep.c (mn10300_frame_chain): Update.
8209 (mn10300_pop_frame_regular): Update.
8210 (mn10300_init_extra_frame_info): Update.
8211 * mips-tdep.c (mips_init_frame_pc_first): Update.
8212 (mips_frame_chain): Update.
8213 (mips_pop_frame): Update.
8214 * mcore-tdep.c (mcore_frame_chain): Update.
8215 (mcore_pop_frame): Update.
8216 (mcore_init_extra_frame_info): Update.
8217 * arch-utils.c (init_frame_pc_default): Update.
8218 * m68k-tdep.c (isi_frame_num_args): Update.
8219 (delta68_frame_num_args): Update.
8220 (news_frame_num_args): Update.
8221 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8222 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8223 (alpha_frame_chain): Update.
8224 (alpha_pop_frame): Update.
8225 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8226 (hppa_init_extra_frame_info): Update.
8227 (hppa_frame_chain): Update.
8228 (hppa_frame_chain_valid): Update.
8229 * cris-tdep.c (cris_init_extra_frame_info): Update.
8230 * avr-tdep.c (avr_init_extra_frame_info): Update.
8231 * arm-tdep.c (arm_frame_chain_valid): Update.
8232 (arm_init_extra_frame_info): Update.
8233 (arm_pop_frame): Update.
8234 * frame.c (frame_pc_unwind): Update.
8235 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8236 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8237 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8238 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8239 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8240 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8241
12cc2063
AC
82422003-03-10 Andrew Cagney <cagney@redhat.com>
8243
8244 * gdbarch.sh (gdbarch_unwind_pc): New method.
8245 * gdbarch.h, gdbarch.c: Regenerate.
8246 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8247 but use read_pc and FRAME_SAVED_PC as fall backs.
8248 (frame_saved_regs_pc_unwind): Delete function.
8249 (trad_frame_unwinder): Update.
8250 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8251 (struct frame_unwind): Update.
8252 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8253 (dummy_frame_unwind): Update.
8254 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8255 (sentinel_frame_unwinder): Update.
8256 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8257 (d10v_frame_unwind): Update.
8258 (d10v_unwind_pc): New function.
8259 (d10v_gdbarch_init): Set unwind_pc.
8260
ef840a37
AC
82612003-03-10 Andrew Cagney <cagney@redhat.com>
8262
a2ce2e56
AC
8263 * gdbarch.h: Re-generate.
8264
ef840a37
AC
8265 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8266 PC.
8267 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8268 the PC register.
8269
08f3424b
MK
82702003-03-08 Mark Kettenis <kettenis@gnu.org>
8271
8272 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8273
1248ede2
AC
82742003-03-08 Andrew Cagney <cagney@redhat.com>
8275
8276 * cli-out.c: Update copyright.
8277 (cli_out_data): Define typedef. Use instead of ui_out_data.
8278
f49bacc8
AC
82792003-03-08 Andrew Cagney <cagney@redhat.com>
8280
8281 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8282 the result.
8283
9b05f993
AC
82842003-03-07 Andrew Cagney <cagney@redhat.com>
8285
8286 * gdbarch.sh: Don't generate two macro definitions when an
8287 undefined macro taking no arguments.
8288 * gdbarch.h: Regenerate.
8ffd9b1b 8289
166f4c7b
ML
82902002-03-07 Michal Ludvig <mludvig@suse.cz>
8291
8292 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8293 (x86_64_unwind_dummy_id): New functions.
8294 (x86_64_init_abi): Register these two new functions.
8295
6d686a84
ML
82962003-03-07 Michal Ludvig <mludvig@suse.cz>
8297
8298 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8299 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8300 separate function.
8301 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8302
6314f104
AC
83032003-03-05 Andrew Cagney <cagney@redhat.com>
8304
8305 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8306 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8307 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8308 to use unwind_dummy_id when a dummy frame.
8309 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8310 predicate.
8311 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8312
ceea5145
AC
83132003-03-05 Andrew Cagney <cagney@redhat.com>
8314
8315 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8316 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8317 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8318 values.
8319
0d843116
AC
83202003-03-05 Andrew Cagney <cagney@redhat.com>
8321
8322 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8323 (struct d10v_unwind_cache): Delete field "frameless". Replace
8324 "next_addr" with "sp_offset". Add "r11_offset".
8325 (d10v_frame_unwind_cache): Update.
8326 (prologue_find_regs): Update. When "mv r11, sp", save the
8327 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8328 RN was saved in r11_offset.
8329
b2579786
AC
83302003-03-05 Andrew Cagney <cagney@redhat.com>
8331
8332 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8333 cached PC value in the next frame.
8334
218e5956
AC
83352003-03-05 Andrew Cagney <cagney@redhat.com>
8336
8337 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8338 "id_unwind_cache" with "id".
8339 (frame_id_unwind): Delete declaration.
8340 * frame.c (frame_id_unwind): Delete function.
8341 (get_prev_frame): Call the frame id unwind method directly. Store
8342 the returned next frame's ID value in NEXT_FRAME. Note that there
8343 is a problem with the wrong unwind ID being called with the wrong
8344 unwind cache.
8345
ed363b1b
DJ
83462003-03-05 Daniel Jacobowitz <drow@mvista.com>
8347
8348 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8349
fe1f4a5e
DJ
83502003-03-05 James Ingham <jingham@apple.com>
8351 Daniel Jacobowitz <drow@mvista.com>
8352
8353 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8354 (auto_cp_abi): New variable.
8355 (current_cp_abi, num_cp_abis): Make static.
8356 (CP_ABI_MAX): Define.
8357 (cp_abis): Turn into an array.
8358 (value_virtual_fn_field): Fix formatting.
8359 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8360 takes a pointer.
8361 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8362 (list_cp_abis, _initialize_cp_abi): New functions.
8363 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8364 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8365 switch_to_cp_abi. Update prototype for register_cp_abi.
8366 * Makefile.in (cp-abi.o): Update dependencies.
8367 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8368 instead of switch_to_cp_abi.
8369 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8370 register_cp_abi.
8371 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8372 register_cp_abi.
8373 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8374
e4adbba9
DJ
83752003-03-05 Daniel Jacobowitz <drow@mvista.com>
8376
8377 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8378 * dwarf2loc.c: Include "regcache.h".
8379 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8380 register_size.
8381 * Makefile.in (dwarf2loc.o): Update dependencies.
8382
91ccbfc1
TR
83832003-03-04 Theodore A. Roth <troth@openavr.org>
8384
8385 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8386 number of io registers reported by remote target is not a multiple of
8387 step.
8388
3d4e8fd2
DC
83892003-03-04 David Carlton <carlton@math.stanford.edu>
8390
8391 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8392 (lookup_symbol_aux_psymtabs): Update call to
8393 lookup_partial_symbol.
8394 (lookup_transparent_type, find_main_psymtab)
8395 (make_symbol_overload_list): Ditto.
8396
ed42d87b
KH
83972003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8398
8399 * MAINTAINERS (Write after approval): Update my email address.
8400
a0ed5532
AC
84012003-03-03 Andrew Cagney <cagney@redhat.com>
8402
8403 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8404 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8405 predicate. Replace MAX_REGISTER_RAW_SIZE.
8406 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8407 MAX_REGISTER_VIRTUAL_SIZE.
8408 * regcache.c (legacy_max_register_raw_size): New function.
8409 (legacy_max_register_virtual_size): New function.
8410 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8411 (MAX_REGISTER_RAW_SIZE): Define.
8412 (legacy_max_register_raw_size): Declare.
8413 (legacy_max_register_virtual_size): Declare.
8414 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8415 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8416 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8417 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8418 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8419 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8420 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8421 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8422 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8423 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8424 * vax-tdep.c (vax_gdbarch_init): Update.
8425 * v850-tdep.c (v850_gdbarch_init): Update.
8426 * sparc-tdep.c (sparc_gdbarch_init): Update.
8427 * sh-tdep.c (sh_gdbarch_init): Update.
8428 * s390-tdep.c (s390_gdbarch_init): Update.
8429 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8430 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8431 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8432 * mips-tdep.c (mips_gdbarch_init): Update.
8433 * mcore-tdep.c (mcore_gdbarch_init): Update.
8434 * m68k-tdep.c (m68k_gdbarch_init): Update.
8435 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8436 * ia64-tdep.c (ia64_gdbarch_init): Update.
8437 * i386-tdep.c (i386_gdbarch_init): Update.
8438 * hppa-tdep.c (hppa_gdbarch_init): Update.
8439 * h8300-tdep.c (h8300_gdbarch_init): Update.
8440 * frv-tdep.c (frv_gdbarch_init): Update.
8441 * cris-tdep.c (cris_gdbarch_init): Update.
8442 * avr-tdep.c (avr_gdbarch_init): Update.
8443 * arm-tdep.c (arm_gdbarch_init): Update.
8444 * alpha-tdep.c (alpha_gdbarch_init): Update.
8445 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8446 max_register_raw_size or max_register_virtual_size.
8447
8e437497
DC
84482003-03-03 David Carlton <carlton@math.stanford.edu>
8449
8450 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8451 SYMBOL_MATCHES_NAME, add comment.
8452 (SYMBOL_MATCHES_NATURAL_NAME): New.
8453 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8454 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8455 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8456 * symtab.c (lookup_partial_symbol): Use
8457 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8458 unhelpful comment.
8459 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8460 SYMBOL_MATCHES_NAME.
8461 Fix for PR c++/33.
8462
25120b0d
DC
84632003-03-03 David Carlton <carlton@math.stanford.edu>
8464
8465 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8466 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8467 by regexp matching against SYMBOL_NATURAL_NAME.
8468
78a11fb4
DC
84692003-03-03 David Carlton <carlton@math.stanford.edu>
8470
8471 * linespec.c (find_method): Extract code into collect_methods.
8472 (collect_methods): New.
8473
645dd519
MK
84742003-03-02 Mark Kettenis <kettenis@gnu.org>
8475
b4700d91
MK
8476 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8477 get_frame_base.
8478
645dd519
MK
8479 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8480 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8481
0aa7e1aa
SC
84822003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8483
8ffd9b1b 8484 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
8485 and not regnum when summing the size of all registers up to regnum.
8486
f30ee0bc
AC
84872003-03-01 Andrew Cagney <cagney@redhat.com>
8488
8489 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8490 FRAME_INIT_SAVED_REGS.
8491 * gdbarch.h, gdbarch.c: Regenerate.
8492 * stack.c (frame_info): Update.
8493 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8494 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8495 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8496 * ns32k-tdep.c (ns32k_pop_frame): Update.
8497 * mips-tdep.c (mips_pop_frame): Update.
8498 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8499 * ia64-tdep.c (ia64_frame_chain): Update.
8500 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8501 (ia64_frameless_function_invocation): Update.
8502 (ia64_init_extra_frame_info): Update.
8503 (ia64_pop_frame_regular): Update.
8504 * frame.h (struct frame_info): Update comment.
8505 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8506 * frame.c (frame_saved_regs_register_unwind): Update.
8507 (frame_saved_regs_register_unwind): Update.
8508 (deprecated_generic_get_saved_register): Update.
8509 * cris-tdep.c: Update comment.
8510 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8511 Rename macro.
8512 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8513 * x86-64-tdep.c (x86_64_init_abi): Update.
8514 * vax-tdep.c (vax_gdbarch_init): Update.
8515 * v850-tdep.c (v850_gdbarch_init): Update.
8516 * sparc-tdep.c (sparc_gdbarch_init): Update.
8517 * sh-tdep.c (sh_gdbarch_init): Update.
8518 * s390-tdep.c (s390_gdbarch_init): Update.
8519 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8520 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8521 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8522 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8523 * mips-tdep.c (mips_gdbarch_init): Update.
8524 * mcore-tdep.c (mcore_gdbarch_init): Update.
8525 * m68k-tdep.c (m68k_gdbarch_init): Update.
8526 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8527 * ia64-tdep.c (ia64_gdbarch_init): Update.
8528 * i386-tdep.c (i386_gdbarch_init): Update.
8529 * frv-tdep.c (frv_gdbarch_init): Update.
8530 * avr-tdep.c (avr_gdbarch_init): Update.
8531 * arm-tdep.c (arm_gdbarch_init): Update.
8532 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8533
42fa7c0f
AC
85342003-03-01 Andrew Cagney <cagney@redhat.com>
8535
8536 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8537 option enum and switch. When no windows, set the interpreter to
8538 INTERP_CONSOLE.
8ffd9b1b 8539
49c7e338
AC
85402003-03-01 Andrew Cagney <cagney@redhat.com>
8541
8542 * main.c (captured_main): Replace magic option characters with an
8543 enum.
8544
e9582e71
AC
85452003-03-01 Andrew Cagney <cagney@redhat.com>
8546
8547 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8548 INIT_EXTRA_FRAME_INFO.
8549 * gdbarch.h, gdbarch.c: Regenerate.
8550 * arm-tdep.c: Update comments.
8551 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8552 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8553 * frame.h, avr-tdep.c: Ditto.
8554 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8555 (create_new_frame, legacy_get_prev_frame): Ditto.
8556 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8557 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8558 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8559 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8560 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8561 * v850-tdep.c (v850_gdbarch_init): Ditto.
8562 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8563 * sh-tdep.c (sh_gdbarch_init): Ditto.
8564 * s390-tdep.c (s390_gdbarch_init): Ditto.
8565 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8566 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8567 * mips-tdep.c (mips_gdbarch_init): Ditto.
8568 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8569 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8570 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8571 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8572 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8573 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8574 * frv-tdep.c (frv_gdbarch_init): Ditto.
8575 * cris-tdep.c (cris_gdbarch_init): Ditto.
8576 * avr-tdep.c (avr_gdbarch_init): Ditto.
8577 * arm-tdep.c (arm_gdbarch_init): Ditto.
8578 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8579 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8580
35cac7cf
AC
85812003-03-01 Andrew Cagney <cagney@redhat.com>
8582
8583 * gdbarch.sh (register_type): New function with predicate.
8584 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8585 * gdbarch.h, gdbarch.c: Re-generate.
8586 * arch-utils.c (generic_register_byte): Use generic_register_size.
8587 (generic_register_size): When available, use
8588 gdbarch_register_type.
8589 * regcache.c (init_regcache_descr): When available, initialize the
8590 register type array using gdbarch_register_type. If the
8591 architecture supplies gdbarch_register_type, do not use the legacy
8592 regcache layout.
8593 * d10v-tdep.c (d10v_register_type): Replace
8594 d10v_register_virtual_type.
8595 (d10v_gdbarch_init): Set register_type instead of
8596 register_virtual_type.
8597
7b83296f
AC
85982003-03-01 Andrew Cagney <cagney@redhat.com>
8599
8600 * Makefile.in (ax-gdb.o): Update dependencies.
8601 * ax-gdb.c: Include "regcache.h".
8602 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8603 * findvar.c (value_of_register): Ditto.
8604 * infcmd.c (default_print_registers_info): Ditto.
8605
eadc1c87
MK
86062003-03-01 Mark Kettenis <kettenis@gnu.org>
8607
8608 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8609 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8610
14143612
MK
86112003-03-01 Mark Kettenis <kettenis@gnu.org>
8612
8613 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8614 of STREQ.
8615
a55cc764
DJ
86162003-02-28 Daniel Jacobowitz <drow@mvista.com>
8617
8618 * Makefile.in (dwarf2loc.o): Update dependencies.
8619 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8620 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8621 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8622 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8623 (locexpr_tracepoint_var_ref): New function.
8624 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8625
08a617da
AC
86262003-02-28 Andrew Cagney <cagney@redhat.com>
8627
8628 * regcache.c (register_size): New function.
8629 * regcache.h (register_size): Declare
8630 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8631 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8632
4224873a
DC
86332003-02-28 David Carlton <carlton@math.stanford.edu>
8634
8635 * linespec.c (decode_compound): Extract code into find_method.
8636 (find_method): New.
8637
ccdc5d7f
JB
86382003-02-28 J. Brobecker <brobecker@gnat.com>
8639
8640 * Makefile.in: Add rules to build and link in observer.o.
8641
974e8ced
JB
86422003-02-27 J. Brobecker <brobecker@gnat.com>
8643
8644 * observer.c: Minor comments edits.
8645
7a28f973
JB
86462003-02-27 J. Brobecker <brobecker@gnat.com>
8647
8648 * observer.h, observer.c: New file.
8649
27cddce2
AC
86502003-02-27 Andrew Cagney <cagney@redhat.com>
8651
8652 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8653
b94a41a1
SC
86542003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8655
8656 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8657 (M6812_OP_STS_EXT): Likewise.
8658 (m6811_prologue): Use the above to recognize prologue.
8659 (m6812_prologue): Likewise.
8660
c8be8951
DC
86612003-02-27 David Carlton <carlton@math.stanford.edu>
8662
8663 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8664 SYMBOL_PRINT_NAME.
8665 (compare_psymbols): Ditto.
8666 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8667
d05bb1fc
MS
86682003-02-27 Michael Snyder <msnyder@redhat.com>
8669
4e845cd3
MS
8670 * f-lang.c (build_fortran_types): New function.
8671 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
8672 * doublest.c (extract_floating): Fix warning text.
8673
f3824013
AC
86742003-02-27 Andrew Cagney <cagney@redhat.com>
8675
8676 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8677 predicate. Replaces PUSH_DUMMY_FRAME.
8678 * gdbarch.h, gdbarch.c: Regnerate.
8679 * valops.c (hand_function_call): Update. Call
8680 generic_push_dummy_frame directly.
8681 * vax-tdep.c (vax_gdbarch_init): Update.
8682 * sparc-tdep.c (sparc_gdbarch_init): Update.
8683 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8684 * m68k-tdep.c (m68k_gdbarch_init): Update.
8685 * hppa-tdep.c (hppa_gdbarch_init): Update.
8686 * alpha-tdep.c (alpha_gdbarch_init): Update.
8687 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8688 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8689 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8690 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8691 push_dummy_frame to generic_push_dummy_frame.
8692 * v850-tdep.c (v850_gdbarch_init): Ditto.
8693 * sh-tdep.c (sh_gdbarch_init): Ditto.
8694 * s390-tdep.c (s390_gdbarch_init): Ditto.
8695 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8696 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8697 * mips-tdep.c (mips_gdbarch_init): Ditto.
8698 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8699 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8700 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8701 * i386-tdep.c (i386_gdbarch_init): Ditto.
8702 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8703 * frv-tdep.c (frv_gdbarch_init): Ditto.
8704 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8705 * cris-tdep.c (cris_gdbarch_init): Ditto.
8706 * avr-tdep.c (avr_gdbarch_init): Ditto.
8707 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 8708
ad188201
KB
87092003-02-26 Kevin Buettner <kevinb@redhat.com>
8710
8711 * mips-tdep.c (show_mips_abi): New function.
8712 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8713 command ``show mips abi''.
8714
6b37567a 87152003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8716
6b37567a 8717 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 8718 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
8719 more sline entries have been seen for the function.
8720
d3e0a5bf
MC
87212003-02-26 Michael Chastain <mec@shout.net>
8722
8723 * configure: Regenerate with autoconf 000227.
8724
18972eea
MC
87252003-02-26 Michael Chastain <mec@shout.net>
8726
8727 Close PR build/660.
8728 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8729 for old libc5/glibc.
8730 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8731
0bbde931
KW
87322003-02-26 Kris Warkentin <kewarken@qnx.com>
8733
8734 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8735 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8736
27ca5dad
MC
87372003-02-26 Michael Chastain <mec@shout.net>
8738
8739 * configure.in: New variable HAVE_UINTPTR_T.
8740 * configure, config.in: Regenerated.
8741
6f88d630
DJ
87422003-02-26 Daniel Jacobowitz <drow@mvista.com>
8743
8744 Fix PR build/1097.
8745 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8746
b14185ce
AC
87472003-02-25 Andrew Cagney <cagney@redhat.com>
8748
8749 * frame.c (get_prev_frame): Add comment on check for
8750 inside_entry_func. Only check for inside_entry_file when not a
8751 dummy and not a sentinel. Check that the new frame is not inner
8752 to the old frame.
8753
ac2bd0a9
AC
87542003-02-25 Andrew Cagney <cagney@redhat.com>
8755
8756 * frame.c (frame_debug): New variable.
8757 (_initialize_frame): Add "set/show debug frame" command.
8758 (get_prev_frame): When frame_debug, print reason why unwind
8759 failed.
8760
b18a0fd2
MC
87612003-02-25 Michael Chastain <mec@shout.net>
8762
8763 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8764 to avoid uintptr_t definition problems.
8765
22abf04a
DC
87662003-02-25 David Carlton <carlton@math.stanford.edu>
8767
8768 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8769 (SYMBOL_LINKAGE_NAME): Ditto.
8770 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8771 SYMBOL_LINKAGE_NAME.
8772 (struct general_symbol_info): Expand comment.
8773 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8774 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8775 (SYMBOL_MATCHES_REGEXP): Ditto.
8776 * symtab.c (symbol_natural_name): New function.
8777 * objfiles.h: Replace all uses of SYMBOL_NAME by
8778 DEPRECATED_SYMBOL_NAME.
8779 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8780 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8781 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8782 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8783 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8784 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8785 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8786 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8787 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8788 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8789 * ada-exp.y: Ditto.
8790 * ada-exp.y: Update copyright.
8791 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8792 * cp-valprint.c: Ditto.
8793
1a5848f6
JJ
87942003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8795
8796 * infptrace.c (detach): Do not flag error if ptrace detach fails
8797 and errno is set to ESRCH.
8798
7343d46a
AC
87992003-02-24 Andrew Cagney <cagney@redhat.com>
8800
8801 * infptrace.c (udot_info): Change type of udot_off to long. Use
8802 paddr when printing udot_off's value.
8803
49fa1dc2
DC
88042003-02-24 David Carlton <carlton@math.stanford.edu>
8805
8806 * symtab.c (make_symbol_overload_list): Only read in partial
8807 symtabs containing a matching partial symbol.
8808
0fe19209
DC
88092003-02-24 David Carlton <carlton@math.stanford.edu>
8810
8811 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8812 do the comparison, not strcmp.
8813 * symfile.c (compare_psymbols): Ditto.
8814 * defs.h: Declare strcmp_iw_ordered.
8815 * utils.c (strcmp_iw_ordered): New function.
8816
8e3ee7b5
JB
88172003-02-24 Jim Blandy <jimb@redhat.com>
8818
8819 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8820 support, shared libs): Remove my name from here, to better reflect
8821 reality.
8822
7df1a324
KW
88232003-02-24 Kris Warkentin <kewarken@qnx.com>
8824
8825 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8826 (target_ops): Add to_have_continuable_watchpoint.
8827 * target.c (update_current_target): Add INHERIT line for
8828 to_have_continuable_watchpoint.
8829 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8830 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8831 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8832 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8833
d1c76907
EZ
88342003-02-24 Elena Zannoni <ezannoni@redhat.com>
8835
8836 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8837 maintainership.
8838
2610b0bf
KW
88392003-02-24 Kris Warkentin <kewarken@qnx.com>
8840
f46169db
KW
8841 * solib.c (solib_open): Call target defined search function after
8842 failing with solib-search-path.
8843 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8844 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 8845
9a3c34fe
KW
88462003-02-24 Kris Warkentin <kewarken@qnx.com>
8847
f46169db 8848 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 8849
2417dd25
SC
88502003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8851
8852 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8853
b631436b
SC
88542003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8855
8856 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8857 (m68hc11_add_reggroups): New function.
8858 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8859 (m68hc11_gdbarch_init): Install the reggroups.
8860 (_initialize_m68hc11_tdep): Initialize them.
8861
0aa8c1e4
JW
88622003-02-21 James E Wilson <wilson@tuliptree.org>
8863
8864 * MAINTAINERS: Update my email address.
8865
50ceaba5
DC
88662003-02-21 David Carlton <carlton@math.stanford.edu>
8867
8868 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8869
4c2df51b
DJ
88702003-02-21 Daniel Jacobowitz <drow@mvista.com>
8871
8872 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8873 * symtab.h: Add opaque declarations of struct axs_value and
8874 struct agent_expr.
8875 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8876 (struct location_funcs): New type.
8877 (struct symbol): Add "loc" to aux_value.
8878 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8879 * dwarf2read.c: Include "dwarf2expr.h".
8880 (dwarf2_symbol_mark_computed): New function.
8881 (read_func_scope): Use it.
8882 (var_decode_location): New function.
8883 (new_symbol): Use it.
8884 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8885
8886 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8887 (dwarf2expr_h, dwarf2loc_h): New variables.
8888 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8889 (dwarf2expr.o, dwarf2loc.o): New rules.
8890 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8891 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8892 LOC_COMPUTED_ARG.
8893 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8894 * m2-exp.y (yylex): Likewise.
8895 * printcmd.c (address_info, print_frame_args): Likewise.
8896 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8897 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8898 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8899 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8900 * symtab.c (lookup_block_symbol): Likewise.
8901
5784d15e
AF
89022003-02-20 Adam Fedor <fedor@gnu.org>
8903
8904 * symtab.h: Remove objc_specific struct
8905 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8906 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8907 Have language_objc use cplus_specific struct.
8908
d4cad8db
TT
89092003-02-20 Tom Tromey <tromey@redhat.com>
8910
8911 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8912 TYPE_NAME, when printing a String value. PR java/1075.
8913
2f9a90b4
AF
89142003-02-20 Adam Fedor <fedor@gnu.org>
8915
d38074a8 8916 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 8917 * objc-lang.c (find_methods): Make static.
2f9a90b4 8918
6f17862b
CF
89192003-02-20 Christopher Faylor <cgf@redhat.com>
8920
8921 * win32-nat.c (get_image_name): Check return value from
8922 ReadProcessMemory.
8923 (child_xfer_memory): Ditto.
8924
715d1656
AO
89252003-02-20 Alexandre Oliva <aoliva@redhat.com>
8926
8927 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8928 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8929 '${exec_prefix}' (in addition to the expansion thereof) as
8930 relocatable.
8931 * configure: Rebuilt.
8932
b1262a02
DC
89332003-02-20 David Carlton <carlton@math.stanford.edu>
8934
8935 * symtab.c (search_symbols): Revert the search_symbols part of my
8936 2002-12-23 patch. Add comment.
8937
7134143f
DJ
89382002-02-20 Daniel Jacobowitz <drow@mvista.com>
8939
8940 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8941 * dbxread.c (elfstab_build_psymtabs): Don't call
8942 install_minimal_symbols.
8943 (stabsect_build_psymtabs): Likewise.
8944 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8945 earlier.
8946 * somread.c (som_symfile_read): Call install_minimal_symbols
8947 and do_cleanups earlier.
8948 * nlmread.c (nlm_symfile_read): Likewise.
8949 * mdebugread.c (elfmdebug_build_psymtabs): Call
8950 install_minimal_symbols and make appropriate cleanups.
8951
cf466558
KB
89522003-02-20 Kevin Buettner <kevinb@redhat.com>
8953
8954 * solib.c (reload_shared_libraries): New function.
8955 (_initialize_solib): Add callbacks for ``set solib-search-path''
8956 and ``set solib-absolute-prefix''.
8957
de5ad195
DC
89582003-02-20 David Carlton <carlton@math.stanford.edu>
8959
8960 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8961 expand comment.
8962 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8963 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8964 * ada-typeprint.c (ada_typedef_print): Ditto.
8965 * ax-gdb.c (gen_var_ref): Ditto.
8966 * breakpoint.c (print_one_breakpoint): Ditto.
8967 * buildsym.c (finish_block): Ditto.
8968 * c-valprint.c (c_val_print): Ditto.
8969 * expprint.c (print_subexp): Ditto.
8970 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
8971 * infcmd.c (jump_command): Ditto.
8972 * linespec.c (decode_line_2, decode_compound): Ditto.
8973 * maint.c (maintenance_translate_address): Ditto.
8974 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
8975 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8976 Ditto.
8ffd9b1b
AJ
8977 * p-valprint.c (pascal_val_print): Ditto.
8978 * stabsread.c (define_symbol): Ditto.
de5ad195 8979 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
8980 (print_frame_arg_vars, return_command): Ditto.
8981 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8982 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
8983 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8984 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
8985 (rbreak_command): Ditto.
8986 * tracepoint.c (tracepoints_info): Ditto.
8987 * typeprint.c (typedef_print): Ditto.
8988 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
8989 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8990 * ada-typeprint.c: Update Copyright.
8991 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8992 * tracepoint.c, cli/cli-cmds.c: Ditto.
8993
f796e4be
KB
89942003-02-20 Kevin Buettner <kevinb@redhat.com>
8995
8996 * frame.c (generic_unwind_get_saved_register): Make non-static.
8997 * frame.h (generic_unwind_get_saved_register): Declare.
8998 * mips-tdep.c (read_next_frame_reg): Fetch register from
8999 current regcache when frame is NULL.
9000 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9001 that must be NULL.
9002 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9003 instead of frame_register_unwind().
9004
836cc9f4
AC
90052003-02-20 Andrew Cagney <ac131313@redhat.com>
9006
9007 * remote-sim.c (gdbsim_insert_breakpoint)
9008 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9009 code.
9010
501eef12
AC
90112003-02-20 Andrew Cagney <ac131313@redhat.com>
9012
9013 * remote.c (_initialize_remote): Add commands "set/show remote
9014 hardware-watchpoint-limit" and "set/show remote
9015 hardware-breakpoint-limit".
9016 (remote_hw_watchpoint_limit): Initialize to -1.
9017 (remote_hw_breakpoint_limit): Ditto.
9018 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9019
1b6bc7e0
CF
90202003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9021
9022 * coff-pe-read.c: New file - support reading of minimal symbols from a
9023 portable executable using the export table.
9024 * coff-pe-read.h: New file.
9025 * coffread.c: Include coff-pe-read.h.
9026 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9027 debugging symbols found.
9028 * Makefile.in (SFILES): Add coff-pe-read.o.
9029 (coff_pe_read_h): Define.
9030 (COMMON_OBS): Add coff-pe-read.o.
9031 (coffread.o): Add coff_pe_read_h dependency.
9032 (coff-pe-read.o): New target.
9033
fe898f56
DC
90342003-02-19 David Carlton <carlton@math.stanford.edu>
9035
9036 * Makefile.in (SFILES): Add block.c.
9037 (block_h): New.
9038 (COMMON_OBS): Add block.o.
9039 (block.o): New.
9040 (x86-64-tdep.o): Add $(block_h).
9041 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9042 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9043 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9044 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9045 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9046 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9047 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9048 * value.h: Add opaque declaration for struct block.
9049 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9050 * ada-lang.h: Ditto.
9051 * x86-64-tdep.c: #include "block.h"
9052 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9053 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9054 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9055 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9056 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9057 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9058 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9059 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9060 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9061 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9062 * symtab.c (block_function): Ditto.
9063 (contained_in): Ditto.
9064 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9065 block.h. Add opaque declaration for struct block.
9066 * symtab.h: Move block_function and contained_in declarations to
9067 block.h. Add opaque declarations for struct block, struct
9068 blockvector.
9069 (struct block): Move to block.h.
9070 (struct blockvector): Ditto.
9071 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9072 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9073 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9074 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9075 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9076 Ditto.
9077 * block.c: New file.
9078 * block.h: New file.
9079
173345b5
TR
90802003-02-19 Theodore A. Roth <troth@openavr.org>
9081
9082 * avr-tdep.c (avr_extract_return_value): Remove function.
9083 (avr_store_return_value): Remove function.
9084 (avr_extract_struct_value_address): Remove function.
9085 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9086
338ef23d
AC
90872003-02-19 Andrew Cagney <ac131313@redhat.com>
9088
9089 * rs6000-tdep.c: Include "gdb_assert.h".
9090 (registers_e500): Add "acc" and "spefscr".
9091 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9092 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9093 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9094 really is "r0".
9095 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9096
5412f5f3
KS
90972003-02-18 Keith Seitz <keiths@redhat.com>
9098
9099 * Makefile.in: Add gdbtk-interps.c.
9100
881324eb
KB
91012003-02-18 Kevin Buettner <kevinb@redhat.com>
9102
9103 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9104 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9105
6a2f5abf
AC
91062003-02-18 Andrew Cagney <cagney@redhat.com>
9107
9108 * symtab.h (struct objfile): Add opaque declaration.
9109
54c7009d
EZ
91102003-02-18 Elena Zannoni <ezannoni@redhat.com>
9111
9112 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9113 * dbxread.c (process_one_symbol): Use last_function_start rather
9114 than function_start_offset to find the real beginning of the
9115 current function. The latter is just the text section offset on
9116 some systems, the former is always the real function start.
54c7009d 9117
7ee6d7eb
AC
91182003-02-17 Andrew Cagney <cagney@redhat.com>
9119
9120 * configure.in: Revert ${target} != ${host}.
9121
2846da9b
AC
91222003-02-17 Andrew Cagney <ac131313@redhat.com>
9123
9124 * configure.in (Makefile): Use the test ${target} != ${host},
9125 instead of the absence of the "nm.h" file, to determine of the
9126 configuration non-native.
9127 * configure: Regenerate.
8ffd9b1b 9128
3b27aeea
EZ
91292003-02-14 Elena Zannoni <ezannoni@redhat.com>
9130
fbe586ae 9131 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9132
9133 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9134 conditionalize tui_active test.
9135 (lookup_cmd_1): Ditto.
9136
b0b1c2c0
MK
91372003-02-14 Mark Kettenis <kettenis@gnu.org>
9138
9139 * configure.in: Add check for _etext.
9140 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9141 available.
9142 * config.in, configure: regenerated.
9143
8f05cde5
DJ
91442003-02-14 Daniel Jacobowitz <drow@mvista.com>
9145
9146 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9147
021e7609
AC
91482003-02-14 Andrew Cagney <ac131313@redhat.com>
9149
9150 * main.c (tui_version): Delete variable.
9151 (captured_main): When --tui, set interpreter_p to "tui" instead of
9152 enabling tui_version.
9153 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9154 tui_version.
9155 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9156 * cli/cli-cmds.c (disassemble_command): Ditto.
9157 * defs.h (tui_version): Delete declaration.
9158 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9159 (tui-interp.o): Add rules.
9160 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9161
e325dcec
CF
91622003-02-14 Christopher Faylor <cgf@redhat.com>
9163
36ffb041 9164 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9165 just-loaded dll.
9166
c4f90d87
JM
91672003-02-12 Jason Molenda (jmolenda@apple.com)
9168
fbe586ae
RH
9169 * symmisc.c (print_objfile_statistics): Include information about
9170 the number of psymtabs and symtabs in each object file.
c4f90d87 9171
e46e5ccd
KS
91722003-02-13 Keith R Seitz <keiths@redhat.com>
9173
9174 * main.h (struct captured_main_args): Add interpreter_p.
9175 * main.c (captured_main): Initialize interpreter_p from context.
9176 * gdb.c (main): Set interpreter_p argument.
9177 * Makefile.in (gdb.o): Add dependency for interps.h.
9178
fe97fe9c
AC
91792003-02-12 Andrew Cagney <ac131313@redhat.com>
9180
9181 * event-top.c (cli_command_loop): Delete declaration.
9182 (_initialize_event_loop): Delete function setting event_loop_hook.
9183 * event-top.h (cli_command_loop): Declare. Update copyright.
9184 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9185 * interps.c (current_interp_command_loop): When event_loop_p, call
9186 cli_command_loop.
9187
1cdac4ef
AC
91882003-02-12 Andrew Cagney <ac131313@redhat.com>
9189
9190 * interps.h (interp_command_loop_ftype): Change return type to
9191 void.
9192
48037ead
ML
91932003-02-12 Michal Ludvig <mludvig@suse.cz>
9194
9195 * x86-64-tdep.c (x86_64_extract_return_value)
9196 (x86_64_store_return_value): Use regcache instead of regbuf.
9197 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9198 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9199
033afc63
AC
92002003-02-11 Andrew Cagney <ac131313@redhat.com>
9201
9202 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9203 * aclocal.m4: Regenerate.
9204 * configure: Regenerate.
9205
9206 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9207 TCL_LD_SEARCH_FLAGS.
9208
40d02bca
ML
92092003-02-10 Michal Ludvig <mludvig@suse.cz>
9210
9211 * dwarf2cfi.c: Reindented.
9212
11308a41
AC
92132003-02-09 Andrew Cagney <ac131313@redhat.com>
9214
9215 * interps.c (clear_interpreter_hooks): Convert function definition
9216 to ISO C.
9217
e1c1c0f6
DC
92182003-02-07 David Carlton <carlton@math.stanford.edu>
9219
9220 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9221
ab5d3da6
KB
92222003-02-07 Kevin Buettner <kevinb@redhat.com>
9223
9224 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9225 (struct type): ...to here.
9226 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9227 field.
9228 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9229 (replace_type): Set length on all type variants for a given type.
9230
b8a92b82
AC
92312003-02-07 Andrew Cagney <ac131313@redhat.com>
9232
9233 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9234 <sys/stat.h>.
9235 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9236
5cb316ef
AC
92372003-02-06 Andrew Cagney <ac131313@redhat.com>
9238
2555fe1a
AC
9239 * Makefile.in (symm-nat.o): Update dependencies.
9240 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9241 (lynx-nat.o, ia64-linux-nat.): Ditto.
9242 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9243 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9244 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9245
44270758
AC
9246 * Makefile.in (inflow_h): Define.
9247 (procfs.o, inflow.o, procfs.o): Update dependencies.
9248 * inftarg.c (child_stop): Delete extern declaration of
9249 inferior_process_group. Include "inflow.h".
9250 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9251 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9252 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9253 (our_process_group, inferior_process_group): Extern declarations.
9254
df8f7274
AC
9255 * procfs.c: Include "gdb_assert.h".
9256
5cb316ef
AC
9257 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9258 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9259 * jv-typeprint.c (java_type_print_base): Ditto.
9260 * typeprint.c (typedef_print): Eliminate STREQ.
9261 * cli/cli-script.c (define_command, define_command): Ditto.
9262 * main.c (captured_main): Ditto.
9263 * values.c (lookup_internalvar): Ditto.
9264 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9265 within `if' conditional.
9266 * linespec.c (decode_line_2): Ditto.
9267 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9268 (bfd_openw_with_cleanup): Ditto.
9269
2a28ccea
MK
92702003-02-07 Mark Kettenis <kettenis@gnu.org>
9271
9272 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9273 legacy_extract_return_value and store_return_value to
9274 legacy_return_value.
9275
786b8124
CF
92762003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9277
9278 * win32-nat.c (get_relocated_section_addrs): New function. Find
9279 section load addresses for symbol handling in relocated DLLs.
9280 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9281
b871e4ec
FF
92822003-02-05 Fred Fish <fnf@intrinsity.com>
9283
9284 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9285 '=' and '!='.
9286 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9287 with '&' and '=='.
9288 (angel_RDI_info): Ditto.
9289 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9290 with '&' and '!='.
9291 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9292
4389a95a 92932003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9294 Keith Seitz <keiths@redhat.com>
9295 Elena Zannoni <ezannoni@redhat.com>
9296 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9297
9298 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9299 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9300 (SUBDIR_MI_OBS): Add "mi-interp.o".
9301 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9302 (SFILES): Add "interps.c".
9303 (COMMON_OBS): Add "interps.o".
9304 (interps_h, mi_main_h): Define.
9305 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9306 (mi-main.o, main.o, event-top.o): Update dependencies.
9307 * cli/cli-interp.c: New file.
9308 * interps.h, interps.c: New files.
9309 * top.c: (gdb_init): Don't install the default interpreter, handed
9310 by captured_main.
9311 * main.c: Include "interps.h".
9312 (interpreter_p): Note that it should malloc'ed.
9313 (captured_command_loop): Call current_interp_command_loop.
9314 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9315 xfree and xstrdup when updating interpreter_p. Install the
9316 default interpreter. Add hack to stop mi1's copyright notice
9317 being encoded.
9318 * event-top.h (gdb_setup_readline): Declare.
9319 (gdb_disable_readline): Declare.
9320 * event-top.c: Include "interps.h".
9321 (display_gdb_prompt): Call current_interp_display_prompt_p.
9322 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9323 gdb_stdlog, and gdb_stdtarg.
9324 (_initialize_event_loop): Don't call gdb_setup_readline.
9325 * cli-out.c (cli_out_set_stream): New function.
9326 * cli-out.h (cli_out_set_stream): Declare.
9327
ff3b5810
MK
93282003-02-06 Mark Kettenis <kettenis@gnu.org>
9329
9330 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9331 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9332 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9333 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9334 config/i386/i386v42mp.mt: Removed.
9335
5b729aa5
MK
93362003-02-05 Mark Kettenis <kettenis@gnu.org>
9337
9338 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9339 GDB_OSABI_SOLARIS.
9340
8cc15142
MC
93412003-02-05 Michael Chastain <mec@shout.net>
9342
9343 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9344 2.12.1 and earlier versions.
9345
5aa5d4b9
AC
93462003-02-05 Andrew Cagney <ac131313@redhat.com>
9347
9348 Remove orphaned hosts, targets and files.
9349 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9350 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9351 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9352 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9353 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9354 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9355 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9356 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9357 * config/sparc/tm-sp64sim.h: Delete.
9358 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9359 hosts.
9360 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9361 mips*-dec-mach3* targets.
9362
b68767c1
MC
93632003-02-04 Michael Chastain <mec@shout.net>
9364
9365 * NEWS: Fix typo: sepcifying -> specifying.
9366
5ae7ca1d
MC
93672003-02-04 Michael Chastain <mec@shout.net>
9368
9369 * dwarfread.c: Add documentation on the state of dwarf-1,
9370 looking towards obsoletion.
9371
d08a4280
MC
93722003-02-03 Michael Chastain <mec@shout.net>
9373
9374 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9375 gdb/testsuite/gdb.c++/pr-1023.exp.
9376
e9be73e4
AC
93772003-02-04 Andrew Cagney <ac131313@redhat.com>
9378
9379 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9380 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9381
9382 * utils.c (init_page_info): Delete reference to MPW in comments.
9383 * main.c (captured_main): Delete #ifdef MPW.
9384
05d57f6f
AC
93852003-02-04 Andrew Cagney <ac131313@redhat.com>
9386
8ffd9b1b 9387 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9388 * monitor.c (monitor_expect): Obsolete reference to m32r.
9389 * configure.tgt: Mark m32r-*-elf* as obsolete.
9390 * MAINTAINERS: Mark m32k as obsolete.
9391 * m32r-rom.c: Obsolete file.
9392 * config/m32r/m32r.mt: Obsolete file.
9393 * config/m32r/tm-m32r.h: Obsolete file.
9394 * m32r-stub.c: Obsolete file.
9395 * m32r-tdep.c: Obsolete file.
9396
8b0e5691
AC
93972003-02-04 Andrew Cagney <ac131313@redhat.com>
9398
9399 * NEWS: Mention that the z8k-zilog-none is obsolete.
9400 * MAINTAINERS: Mark z8k as obsolete.
9401 * configure.tgt: Obsolete the z8k-*-coff* target.
9402 * config/z8k/z8k.mt: Obsolete file.
9403 * config/z8k/tm-z8k.h: Obsolete file.
9404 * z8k-tdep.c: Obsolete file.
9405
67f16606
AC
94062003-02-04 Andrew Cagney <ac131313@redhat.com>
9407
9408 * NEWS: Mention that the mn10200-elf is obsolete.
9409 * configure.tgt: Obsolete mn10200-*-* target.
9410 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9411 mention that the mn10200 is obsolete.
9412 * breakpoint.h: Ditto.
9413 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9414 * config/mn10200/mn10200.mt: Obsolete file.
9415 * config/mn10200/tm-mn10200.h: Obsolete file.
9416 * mn10200-tdep.c: Obsolete file.
9417
fd2299bd
AC
94182003-02-04 Andrew Cagney <ac131313@redhat.com>
9419
9420 * MAINTAINERS: Mark h8500 as obsolete.
9421 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9422 * findvar.c (value_from_register): Ditto.
9423 * h8500-tdep.c: Mark file as obsolete.
9424 * config/h8500/h8500.mt: Ditto.
9425 * config/h8500/tm-h8500.h: Ditto.
9426 * NEWS: Mention that h8500 is obsolete.
9427
eb9a305d
DC
94282003-02-04 David Carlton <carlton@math.stanford.edu>
9429
9430 * objfiles.c (allocate_objfile): Always set name. Add comment at
9431 start of function.
9432 * jv-lang.c (get_dynamics_objfile): Add comment.
9433
406fc7fb
DC
94342003-02-04 David Carlton <carlton@math.stanford.edu>
9435
9436 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9437 * printcmd.c (build_address_symbolic): Replace uses of
9438 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9439 SYMBOL_NAME, and asm_demangle.
9440 Update copyright.
9441
93d91629
DC
94422003-02-04 David Carlton <carlton@math.stanford.edu>
9443
9444 * linespec.c (decode_compound): Extract code into
9445 lookup_prefix_sym.
9446 (lookup_prefix_sym): New function.
9447
1c5cb38e
DC
94482003-02-04 David Carlton <carlton@math.stanford.edu>
9449
9450 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9451 FLOAT_COERCION_BADNESS.
9452 * gdbtypes.c (rank_one_type): Replace all uses of
9453 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9454
0cf824c9
JB
94552003-02-04 Jim Blandy <jimb@redhat.com>
9456
9457 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9458 section, let dwarf_macinfo_section point to it, not
9459 dwarf_loc_section.
9460
a2d356b0
DJ
94612003-02-04 Daniel Jacobowitz <drow@mvista.com>
9462
9463 Pointed out by Anton Blanchard <anton@samba.org>.
9464 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9465 (ppc_linux_at_sigtramp_return_path): Use it.
9466
2de7ced7
DJ
94672003-02-04 Daniel Jacobowitz <drow@mvista.com>
9468
9469 * defs.h (streq): Add prototype.
9470 * utils.c (streq): New function.
9471
9472 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9473 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9474 * mdebugread.c (new_symbol): Likewise.
9475 * stabsread.c (define_symbol): Likewise.
9476 * coffread.c (process_coff_symbol): Likewise.
9477 * dwarfread.c (new_symbol): Likewise.
9478
9479 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9480 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9481 here.
9482 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9483 SYMBOL_INIT_DEMANGLED_NAME.
9484 * objfiles.c: Include "hashtab.h".
9485 (allocate_objfile): Call htab_set_functions_ex for the
9486 demangled_names_hash.
9487 (free_objfile): Call htab_delete for the demangled_names_hash.
9488 * objfiles.h (struct htab): Add declaration.
9489 (struct objfile): Add demangled_names_hash.
9490 * symfile.c: Include "hashtab.h".
9491 (reread_symbols): Call htab_delete for the demangled_names_hash.
9492 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9493 SYMBOL_NAME in the bcache.
9494 * symtab.c: Include "hashtab.h". Update comments.
9495 (create_demangled_names_hash, symbol_set_names): New functions.
9496 (symbol_find_demangled_name): New function, broken out from
9497 symbol_init_demangled_names.
9498 (symbol_init_demangled_names): Use it.
9499 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9500 (SYMBOL_SET_NAMES): New macro.
9501 (symbol_set_names): Add prototype.
9502
15831452
JB
95032003-02-03 Jim Blandy <jimb@redhat.com>
9504
9505 Use a single, consistent representation for an empty minimal
9506 symbol table in an objfile.
9507 * objfiles.c (terminate_minimal_symbol_table): New function.
9508 (allocate_objfile): Call it.
9509 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9510 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 9511 non-NULL.
15831452
JB
9512 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9513 objfile has minimal symbols, compare minimal_symbol_count to zero,
9514 instead of comparing msymbols with NULL.
9515 * objfiles.c (have_minimal_symbols): Same.
9516 * solib-sunos.c (solib_add_common_symbols): Call
9517 terminate_minimal_symbol_table.
9518 * symfile.c (reread_symbols): Same.
8ffd9b1b 9519
ffc65945
KB
95202003-02-03 Kevin Buettner <kevinb@redhat.com>
9521
9522 * s390-tdep.c (s390_address_class_type_flags)
9523 (s390_address_class_type_flags_to_name)
9524 (s390_address_class_name_to_type_flags): New functions.
9525 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9526 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9527
f211c6d4
MS
95282003-02-03 Michael Snyder <msnyder@redhat.com>
9529
9530 * arm-tdep.c: Fix spell-o in comment.
9531
659b0389
ML
95322003-02-03 Michal Ludvig <mludvig@suse.cz>
9533
9534 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9535 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 9536 error messages to contain BFD filename.
659b0389 9537
3b31d625
EZ
95382003-02-02 Elena Zannoni <ezannoni@redhat.com>
9539
997b089a 9540 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
9541 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9542 (do_mixed_source_and_assembly): Use
9543 make_cleanup_ui_out_tuple_begin_end and
9544 make_cleanup_ui_out_tuple_begin_end.
9545 (do_mixed_source_and_assembly): Ditto.
9546 * thread.c (do_captured_list_thread_ids): Ditto.
9547 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9548 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9549 ui_out_tuple_end): Delete prototypes.
9550 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9551 ui_out_list_end, ui_out_tuple_end): Delete.
9552
9553 From Kevin Buettner <kevinb@redhat.com>:
9554 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
9555 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9556 (do_cleanup_table_end): New functions.
9557 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9558 Use cleanups to invoke_ui_out_tuple_end().
9559 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
9560 * cli/cli-setshow.c (cmd_show_list): Use
9561 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 9562
5b181d62
AC
95632003-02-02 Andrew Cagney <ac131313@redhat.com>
9564
9565 * frame.c (frame_unwind_register): New function.
9566 (frame_unwind_unsigned_register): Use.
9567 (frame_unwind_signed_register): Use.
9568 (frame_read_register): New function.
9569 * frame.h (frame_unwind_register): Declare.
9570 (frame_read_register): Declare.
9571
9572 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9573 and frame_unwind_register instead of read_memory, write_register
9574 and deprecated_write_register_bytes.
9575
5f601589
AC
95762003-02-02 Andrew Cagney <ac131313@redhat.com>
9577
9578 * frame.h: Note that namelen can be negative.
9579 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9580 NAME's length.
9581
9582 * NEWS: Mention that the d10v's `regs' command is deprecated.
9583 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9584 (d10v_print_registers_info): New function.
9585 (show_regs): Call d10v_print_registers_info.
9586 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9587
6a3fe0a4
MK
95882003-02-02 Mark Kettenis <kettenis@gnu.org>
9589
9590 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9591 lost in the previous patch.
9592
075559bc
AC
95932003-02-01 Andrew Cagney <ac131313@redhat.com>
9594
9595 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
9596 * stack.c (print_frame_info_base): Output complete FRAME tuple
9597 for synthesized frames.
075559bc 9598
6789195b
AC
95992003-02-02 Andrew Cagney <ac131313@redhat.com>
9600
9601 * mips-nat.c (zerobuf): Delete.
9602 (fetch_inferior_registers): Alloc local zerobuf.
9603 (fetch_core_registers): Alloc local zerobuf.
9604 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9605 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9606 * thread-db.c (thread_db_store_registers): Ditto.
9607 * sh-tdep.c (sh_do_register): Ditto.
9608 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9609 * remote-sim.c (gdbsim_store_register): Ditto.
9610 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9611 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9612 * monitor.c (monitor_supply_register): Ditto.
9613 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9614 * mips-nat.c (fetch_inferior_registers): Ditto.
9615 * m68klinux-nat.c (fetch_register): Ditto.
9616 * lynx-nat.c (fetch_inferior_registers): Ditto.
9617 (fetch_inferior_registers): Ditto.
9618 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9619 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9620 (hpux_thread_store_registers): Ditto.
9621 * hppah-nat.c (fetch_register): Ditto.
9622 * hppab-nat.c (fetch_register): Ditto.
9623 * hppa-tdep.c (pa_register_look_aside): Ditto.
9624 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9625 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9626
e669114a
AC
96272003-02-01 Andrew Cagney <ac131313@redhat.com>
9628
9629 * gdbarch.sh: Explictly specify all method levels. When a
9630 variable with an empty level, provide a non-multi-arch default.
9631 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9632 * gdbarch.h: Re-generate.
9633 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9634 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9635
9a043c1d
AC
96362003-02-01 Andrew Cagney <ac131313@redhat.com>
9637
9638 * defs.h (host_pointer_to_address): Delete declaration.
9639 (address_to_host_pointer): Delete declaration.
9640 * utils.c (host_pointer_to_address): Delete function.
9641 (address_to_host_pointer): Delete function.
9642 * procfs.c (procfs_address_to_host_pointer): New function.
9643 * procfs.c (proc_set_watchpoint): Use.
9644 (procfs_can_use_hw_breakpoint): Update comments.
9645 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9646 (som_solib_add): Use.
9647 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9648 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 9649
7ca9f392
AC
96502003-02-01 Andrew Cagney <ac131313@redhat.com>
9651
94bbfd30
AC
9652 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9653 strlen d_name.
9654
7ca9f392
AC
9655 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9656 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9657 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9658 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9659 (define_symbol): Update.
9660 * symfile.c (generic_load): Remove references to nindy.
9661 * symtab.c: Remove references to nindy.
9662
31a85ea2
AC
96632003-02-01 Andrew Cagney <ac131313@redhat.com>
9664
9665 * infcmd.c (print_float_info): Delete code conditional on
9666 FLOAT_INFO.
9667 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9668 * config/m68k/nm-apollo68b.h: Ditto.
9669 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9670 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9671 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9672
f6e85fc8
MK
96732003-02-01 Mark Kettenis <kettenis@gnu.org>
9674
6015b6a0
MK
9675 * config/i386/tm-i386os9k.h: Removed.
9676
f7a30bdf
MK
9677 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9678 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9679 they're identical to i[3456]86-*-sysv* now.
9680 * config/i386/i386v32.mh: Removed.
9681 * config/i386/xm-i386v32.h: Removed.
9682 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9683
28d52111
MK
9684 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9685
4d3f6bce
MK
9686 * config/i386/i386dgux.mh: Removed.
9687 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9688
f6e85fc8
MK
9689 * configure.in: Fix typo.
9690 * configure: Regenerated.
9691
53955967
DC
96922003-01-31 David Carlton <carlton@math.stanford.edu>
9693
9694 * dwarf2read.c (dwarf2_locate_sections): Set
9695 dwarf_ranges_section.
9696
b1364885
AC
96972003-01-31 Andrew Cagney <ac131313@redhat.com>
9698
8dbb1c65
AC
9699 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9700 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 9701
8731e58e
AC
9702 * utils.c: Re-indent.
9703
b1364885
AC
9704 * config/djgpp/fnchange.lst: Delete nindy files.
9705 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9706 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9707 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9708 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9709 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9710 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9711 * Makefile.in (init.c): Remove nindy references.
9712 (saber_gdb): Delete rule.
9713 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9714 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9715 and a68v-nat.c.
9716 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9717 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9718 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9719 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9720 nindy-share/stop.h.
9721 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9722 * saber.suppress: Delete file.
9723
086df311
DJ
97242003-01-31 Daniel Jacobowitz <drow@mvista.com>
9725
9726 * dbxread.c (stabs_data): New static variable.
9727 (fill_symbuf): Support an in-memory buffer for stabs data.
9728 (stabs_seek): New function.
9729 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9730 (read_ofile_symtab): Use stabs_seek.
9731 (elfstab_build_psymtabs): Take an asection* instead of
9732 an offset and size. Relocate the stabs data if necessary.
9733 Save the section* for dbx_psymtab_to_symtab.
9734 * dwarf2read.c: Add section variables for each debug section.
9735 (dwarf2_locate_sections): Fill them in.
9736 (dwarf2_read_section): Take an asection* argument.
9737 Relocate the section contents if necessary.
9738 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9739 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9740 it to dwarf2_read_section.
9741 (dwarf2_build_frame_info): Update callers.
9742 * elfread.c (elf_symfile_read): Update call to
9743 elfstab_build_psymtabs.
9744 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9745 (DBX_STAB_SECTION): New macro.
8ffd9b1b 9746 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
9747 * symfile.c (symfile_dummy_outputs): New function.
9748 (symfile_relocate_debug_section): New function.
9749 * symfile.h (symfile_relocate_debug_section): Add prototype.
9750
87d1b352
RH
97512003-01-31 Richard Henderson <rth@redhat.com>
9752
9753 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9754 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9755 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9756 * alpha-tdep.c (alpha_register_name): Add "unique".
9757 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9758 (ALPHA_UNIQUE_REGNUM): New.
9759 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9760
c48861fb
AC
97612003-01-31 Andrew Cagney <ac131313@redhat.com>
9762
9763 * README: Remove reference to Ericsson 1800 monitor.
9764 * Makefile.in (remote-es.o): Delete rule.
9765 (ALLDEPFILES): Delete remote-es.c.
9766 * remote-es.c: Delete file.
9767 * config/m68k/es1800.mt: Delete file.
9768 * config/djgpp/fnchange.lst: Update.
9769 * configure.tgt: Delete m68*-ericsson-* target.
9770
d764a824
AF
97712003-01-31 Adam Fedor <fedor@gnu.org>
9772
9773 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9774 Remove duplicate/shadowing variable of same name.
9775
fe36c4f4
JB
97762003-01-30 Jim Blandy <jimb@redhat.com>
9777
9778 * symfile.c (find_separate_debug_file): Assert that the objfile's
9779 directory name we compute ends with a slash, and then assume that
9780 that's so everywhere we use it.
9781
cb741690
DJ
97822003-01-30 Daniel Jacobowitz <drow@mvista.com>
9783
9784 * valops.c (value_assign): Flush frame cache after stores to memory
9785 also.
9786
96ee5227
AC
97872003-01-30 Andrew Cagney <ac131313@redhat.com>
9788
9789 * Makefile.in (mon960-rom.o): Delete rule.
9790 * mon960-rom.c: Delete file.
9791
7f6104a9
AC
97922003-01-30 Andrew Cagney <ac131313@redhat.com>
9793
9794 * d10v-tdep.c: Include "frame-unwind.h".
9795 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9796 list.
9797 (next_addr, uses_frame): Delete.
9798 (struct d10v_unwind_cache): Define.
9799 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9800 Use info instead of next_addr and uses_frame globals.
9801 (d10v_frame_init_saved_regs): Delete function.
9802 (d10v_init_extra_frame_info): Delete function.
9803 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9804 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9805 init_frame_pc or frame_saved_pc.
9806 (d10v_pop_frame): Delete function.
9807 (do_d10v_pop_frame): Delete function.
9808 (d10v_frame_chain): Delete function.
9809 (d10v_frame_chain_valid): Delete function.
9810 (d10v_frame_pc_unwind): New function.
9811 (d10v_frame_id_unwind): New function.
9812 (saved_regs_unwinder): New function.
9813 (d10v_frame_register_unwind): New function.
9814 (d10v_frame_pop): New function.
9815 (d10v_frame_unwind): New variable.
9816 (d10v_frame_p): New function.
9817 (d10v_frame_saved_pc): Delete function.
9818 * Makefile.in (d10v-tdep.o): Update dependencies.
9819
cad2e848
JB
98202003-01-30 J. Brobecker <brobecker@gnat.com>
9821
9822 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9823 causing some regressions due to a change in the default value
9824 for this macro.
9825
af34e669
DJ
98262003-01-29 Richard Henderson <rth@redhat.com>
9827 Elena Zannoni <ezannoni@redhat.com>
9828 Daniel Jacobowitz <drow@mvista.com>
9829
9830 Fix PR gdb/961.
8ffd9b1b 9831 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
9832 variables.
9833 (RANGES_SECTION): New.
9834 (dwarf_ranges_buffer): New variable.
9835 (struct comp_unit_head): Add member "die".
9836 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9837 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9838 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9839 (dwarf2_locate_sections): Likewise.
9840 (dwarf2_build_psymtabs): Read .debug_ranges.
9841 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9842 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9843 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9844 Look for DW_AT_ranges and return the bounding box.
9845
baa93fa6
CF
98462003-01-29 Brian Ford <ford@vss.fsi.com>
9847
9848 * win32-nat.c (cygwin_pid): Removed as unused.
9849 (child_attach): Try fall back to Cygwin pid.
9850
c63f977f
JB
98512003-01-29 Jim Blandy <jimb@redhat.com>
9852
9853 * objfiles.h (struct objfile): Doc fix.
9854
d62d1979
AC
98552003-01-29 Andrew Cagney <ac131313@redhat.com>
9856
9857 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9858 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9859 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9860 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9861 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9862 (FRAME_SAVED_PC): Change to a function with predicate.
9863 * gdbarch.h, gdbarch.c: Re-generate.
9864
1ae18a04
AC
98652003-01-28 Andrew Cagney <ac131313@redhat.com>
9866
52287340
AC
9867 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9868
1ae18a04
AC
9869 * complaints.c (complain): Delete function.
9870 * complaints.h (struct deprecated_complaint): Delete definition.
9871 (complain): Delete declaration.
9872
f2c16bd6
KB
98732003-01-28 Kevin Buettner <kevinb@redhat.com>
9874
9875 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9876 dummy frames.
9877
a94dd1fd
AC
98782003-01-27 Andrew Cagney <ac131313@redhat.com>
9879
9880 * sentinel-frame.h, sentinel-frame.c: New files.
9881 * Makefile.in (frame.o): Update dependencies.
9882 (SFILES): Add sentinel-frame.c.
9883 (sentinel_frame_h): Define.
9884 (COMMON_OBS): Add sentinel-frame.o.
9885 (sentinel-frame.o): Specify dependencies.
9886 * frame.c: Include "sentinel-frame.h".
9887 (frame_register_unwind): Rewrite assuming that there is always a a
9888 ->next frame.
9889 (frame_register, generic_unwind_get_saved_register): Ditto.
9890 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9891 (create_sentinel_frame, unwind_to_current_frame): New functions.
9892 (get_current_frame): Rewrite using create_sentinel_frame and
9893 unwind_to_current_frame. When possible, always create a frame.
9894 (create_new_frame): Set next to the sentinel frame.
9895 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9896 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9897 ID cache when necessary.
9898 (frame_saved_regs_id_unwind): Use frame_relative_level.
9899 (deprecated_generic_get_saved_register): Use frame_relative_level,
9900 get_frame_saved_regs, get_frame_pc, get_frame_base and
9901 get_next_frame.
9902 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9903 frame_register.
9904
5378adc4
DJ
99052003-01-27 Daniel Jacobowitz <drow@mvista.com>
9906
9907 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9908
51ee2ddc
DJ
99092003-01-27 Daniel Jacobowitz <drow@mvista.com>
9910
9911 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9912 (maintenance_set_profile_cmd): Use error () instead of warning ().
9913
d9feb4e7
DJ
99142003-01-27 Daniel Jacobowitz <drow@mvista.com>
9915
9916 * configure.in: Check that -pg works if using --enable-profiling.
9917 Check for monstartup and _mcleanup regardless of --enable-profiling.
9918 * maint.c: Check for monstartup and _mcleanup before using them.
9919 * config.in: Regenerated.
9920 * configure: Regenerated.
9921
2d188dd3
NC
99222003-01-24 Nick Clifton <nickc@redhat.com>
9923
9924 * Add sh2e support:
9925
9926 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9927
9928 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9929 (sh2e_show_regs): New.
9930 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9931 * config/sh/tm-sh.h: Added sh2e to comments.
9932
cb3c37b2
JB
99332003-01-23 Jim Blandy <jimb@redhat.com>
9934
9935 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9936 symbols found)" message here; we haven't checked for a separate
9937 debug info file yet, so we don't know yet.
9938 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9939 we've looked everywhere. Also, there's no need to print a special
9940 message when we're loading the separate debug info file: the one
9941 symbol_file_add prints is fine.
9942
5b5d99cf
JB
99432003-01-23 Alexander Larsson <alexl@redhat.com>
9944 Jim Blandy <jimb@redhat.com>
9945
9946 Add support for executables whose debug info has been separated
9947 out into a separate file, leaving only a link behind.
9948 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9949 and separate_debug_objfile_backlink.
9950 (put_objfile_before): New declaration.
9951 * symfile.c: #include "filenames.h".
9952 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9953 debug info in a separate file, read that, too. Save the addrs
9954 argument, so we can use it again to read the separated debug info;
9955 syms_from_objfile modifies the table we pass it.
9956 (reread_symbols): After re-reading an objfile, call
9957 reread_separate_symbols to refresh its separate debug info
9958 objfile, if it has one.
9959 (reread_separate_symbols, find_separate_debug_file,
9960 get_debug_link_info, separate_debug_file_exists): New functions.
9961 (debug_file_directory): New global var.
9962 (_initialize_symfile): Initialize debug_file_directory, and
9963 provide the new `set debug-file-directory' command to let the user
9964 change it.
9965 * objfiles.c (free_objfile): If this objfile has its debug info in
9966 a separate objfile, free that one too. If this is itself a
9967 separate debug info objfile, clear our parent's backlink.
9968 (put_objfile_before): New function.
9969 * utils.c (gnu_debuglink_crc32): New function.
9970 * defs.h (gnu_debuglink_crc32): New declaration.
9971 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9972 * configure.in: Handle --with-separate-debug-dir config option.
9973 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9974 * acconfig.h (DEBUGDIR): New macro.
9975 * configure, aclocal.m4, config.in: Regenerated.
9976
7e8580c1
JB
99772003-01-22 Jim Blandy <jimb@redhat.com>
9978
7904e09f
JB
9979 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9980 like the old symbol_file_add, but taking new arguments: you can
9981 now pass in either a `struct section_addr_info' list to say where
9982 each section is loaded, or a `struct section_offsets' table. Pass
9983 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 9984 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
9985 with the appropriate quiescent values for the new arguments.
9986
7e8580c1
JB
9987 * symfile.c: #include "gdb_assert.h".
9988 (syms_from_objfile): Add the ability to pass in a section offset
9989 table directly, as an alternative to the section_addr_info table.
9990 Document arguments better.
9991 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9992 * symfile.h (syms_from_objfile): Update declaration.
9993 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9994 syms_from_objfile.
9995 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9996
d28f9cdf
DJ
99972003-01-22 Daniel Jacobowitz <drow@mvista.com>
9998
9999 Original patch by Tom Tromey <tromey@cygnus.com> and
10000 Jason Molenda <jmolenda@apple.com>.
10001 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10002 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10003 * NEWS: Mention profiling.
10004 * configure.in (--enable-gdbtk): Fix typo.
10005 (--enable-profiling): New. Set PROFILE_CFLAGS.
10006 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10007 Fill in function.
10008 (profiling_state): New variable.
10009 (mcleanup_wrapper): New function.
10010 (_initialize_maint): Remove NOTYET, fix call to
10011 add_setshow_boolean_cmd for "maint set profile".
10012 * configure: Regenerated.
10013
df21e465
MH
100142003-01-21 Martin M. Hunt <hunt@redhat.com>
10015
10016 * Makefile.in (install-gdbtk): Install PNG images too.
10017
73c1f219
AC
100182003-01-21 Andrew Cagney <ac131313@redhat.com>
10019
10020 * exec.c (text_start): Delete global variable.
10021 (exec_file_attach): Make text_start local to the function.
10022 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10023 * valops.c (hand_function_call): Delete code that handles
10024 BEFORE_TEXT_END and AFTER_TEXT_END.
10025 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10026 of CALL_DUMMY_LOCATION.
10027 * gdbarch.c: Regenerate.
10028 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10029 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10030 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10031 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10032 (text_end): Delete extern declaration.
10033
eb4f72c5
AC
100342003-01-21 Andrew Cagney <ac131313@redhat.com>
10035
10036 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10037 * blockframe.c (backtrace_below_main): Move to "frame.c".
10038 (frame_chain_valid): Delete check for backtrace_below_main.
10039 (_initialize_blockframe): Delete initialization, move ``set
10040 backtrace-below-main'' command to "frame.c".
10041 (do_flush_frames_sfunc): Delete function.
10042 * frame.c: Include "command.h" and "gdbcmd.h".
10043 (frame_type_from_pc): New function.
10044 (create_new_frame): Use frame_type_from_pc.
10045 (legacy_get_prev_frame): New function.
10046 (get_prev_frame): Rewrite. When an old style frame, call
10047 legacy_get_prev_frame. Otherwize, unwind the PC first.
10048 (_initialize_frame): Add ``set backtrace-below-main'' command.
10049 * Makefile.in (frame.o): Update dependencies.
10050
778ce8cc
AC
100512003-01-19 Andrew Cagney <ac131313@redhat.com>
10052
10053 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10054 DEPRECATED_REGISTERS_INFO.
10055
01c193c8
AC
100562003-01-19 Andrew Cagney <ac131313@redhat.com>
10057
10058 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10059 Maintainers'. Update `Various Maintainers'.
10060
dedc2a2b
AC
100612003-01-19 Andrew Cagney <ac131313@redhat.com>
10062
10063 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10064 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10065 Suppress actual parameters when `-'.
10066 * gdbarch.h, gdbarch.c: Regenerate.
10067
b7261c70
AC
100682003-01-19 Andrew Cagney <ac131313@redhat.com>
10069
10070 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10071 code handling dummy frames.
10072
dbe9fe58
AC
100732003-01-19 Andrew Cagney <ac131313@redhat.com>
10074
10075 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10076 (struct frame_unwind): Add field pop.
10077 * frame.h (frame_pop): Declare.
10078 * frame.c (frame_saved_regs_pop): New function.
10079 (trad_frame_unwinder): Add frame_saved_regs_pop.
10080 (frame_pop): New function.
10081 * dummy-frame.c (dummy_frame_pop): New function.
10082 (discard_innermost_dummy): New function.
10083 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10084 (dummy_frame_unwind): Add dummy_frame_pop.
10085 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10086 * valops.c (hand_function_call): Ditto.
10087 * stack.c (return_command): Ditto.
10088
570b8f7c
AC
100892003-01-18 Andrew Cagney <ac131313@redhat.com>
10090
10091 * cris-tdep.c: Fix function declaration indentation.
10092 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10093 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10094 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10095 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10096 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10097 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10098
100992003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10100
10101 * README (Unpacking and Installation -- quick overview):
10102 Warn against ".../gdb-5.3/gdb/configure".
10103
494cca16
AC
101042003-01-18 Andrew Cagney <ac131313@redhat.com>
10105
10106 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10107 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10108 (struct frame_unwind): Declare opaque.
10109 (dummy_frame_p): Declare function.
10110 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10111 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10112 * dummy-frame.c: Include "frame-unwind.h".
10113 (dummy_frame_p): New function.
10114 (dummy_frame_unwind): New variable.
10115 * frame.c: Include "frame-unwind.h".
10116 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10117 to use the new unwind field.
10118 (set_unwind_by_pc): Delete function.
10119 (create_new_frame, get_prev_frame): Set unwind field using
10120 frame_unwind_find_by_pc.
10121 (trad_frame_unwind, trad_frame_unwinder): New variables.
10122 * frame.h (trad_frame_unwind): Declare variable.
10123 (frame_id_unwind_ftype): Delete declaration.
10124 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10125 (struct frame_unwind): Declare opaque.
10126 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10127 register_unwind with a single unwind pointer.
10128 * frame-unwind.h, frame-unwind.c: New files.
10129 * Makefile.in (SFILES): Add frame-unwind.c.
10130 (frame_unwind_h): Define.
10131 (COMMON_OBS): Add frame-unwind.o.
10132 (frame-unwind.o): Specify dependencies.
10133 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10134
4efb68b1
AC
101352003-01-18 Andrew Cagney <ac131313@redhat.com>
10136
10137 * ada-valprint.c: Eliminate PTR.
10138 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10139 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10140 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10141 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10142 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10143 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10144 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10145
a84d24ee
AC
101462003-01-17 Andrew Cagney <ac131313@redhat.com>
10147
762f08a3
AC
10148 * main.c (captured_main): Don't use PTR.
10149 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10150 * gdbtypes.c (lookup_primitive_typename): Ditto.
10151 (lookup_struct_elt_type): Ditto.
10152 * f-valprint.c (info_common_command): Ditto.
10153 (list_all_visible_commons): Ditto.
10154 * jv-typeprint.c (java_type_print_base): Ditto.
10155
a84d24ee
AC
10156 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10157 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10158 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10159 i386-interix-nat.c and i386-interix-tdep.c. Rename
10160 m68klinux-nat.c and m68klinux-tdep.c. Rename
10161 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10162 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10163 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10164 * main.c (captured_main): Use xfree, not free.
10165
c170fb60
AC
101662003-01-16 Andrew Cagney <ac131313@redhat.com>
10167
10168 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10169 ID back using a parameter.
10170 * frame.c (frame_id_unwind): Update call.
10171 (frame_saved_regs_id_unwind): Update.
10172 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10173 * dummy-frame.h (struct frame_id): Add opaque declaration.
10174 (dummy_frame_id_unwind): Update declaration.
10175
867f3898
AC
101762003-01-15 Andrew Cagney <ac131313@redhat.com>
10177
10178 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10179
40622be8 101802003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10181
40622be8 10182 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10183
ae66c1fc
EZ
101842003-01-14 Elena Zannoni <ezannoni@redhat.com>
10185
997b089a 10186 Fix PR gdb/898
ae66c1fc
EZ
10187 * breakpoint.c (until_break_command): Add new argument. Use it to
10188 decide whether to stop only at the current frame or not.
10189 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10190 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10191 call.
10192 (advance_command): New function.
10193 (_initialize_infcmd): Update help string for 'until' command.
10194 Add new 'advance' command.
10195
a04257e6
DC
101962003-01-14 David Carlton <carlton@math.stanford.edu>
10197
10198 * linespec.c (decode_line_1): Normalize comments.
10199 (set_flags): Ditto.
10200 (locate_first_half): Ditto.
10201 (decode_compound): Ditto.
10202 (symtab_from_filename): Ditto.
10203 (decode_all_digits): Ditto.
10204 (decode_dollar): Ditto.
10205 (find_methods): Ditto.
10206 (find_toplevel_char): Ditto.
10207
1bac305b
AC
102082003-01-13 Andrew Cagney <ac131313@redhat.com>
10209
10210 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10211 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10212 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10213 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10214 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10215 * language.c, language.h, m32r-tdep.c: Update copyright.
10216 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10217 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10218 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10219 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10220 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10221 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10222
25caa7a8
EZ
102232003-01-13 Elena Zannoni <ezannoni@redhat.com>
10224
10225 * stabsread.h (process_later, resolve_cfront_continuation):
10226 Obsolete.
10227 Update copyright years.
10228 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10229 Update copyright year.
10230 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10231 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10232 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10233 Update copyright year.
10234 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10235 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10236 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10237 (parse_partial_symbols): Obsolete cfront support.
10238 * stabsread.c
10239 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10240 macros.
10241 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10242 read_cfront_baseclasses, read_cfront_member_functions,
10243 resolve_cfront_continuation,read_cfront_static_fields,
10244 copy_cfront_struct_fields): Obsolete functions.
10245 (define_symbol, read_one_struct_field): Obsolete cfront support.
10246 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10247 Update Copyright year.
10248
7789c6f5
EZ
102492003-01-13 Elena Zannoni <ezannoni@redhat.com>
10250
10251 * stack.c (print_frame_info, print_stack_frame_base_stub,
10252 print_stack_frame_base, show_and_print_stack_frame_stub,
10253 show_and_print_stack_frame, print_only_stack_frame_stub,
10254 print_only_stack_frame): Delete functions.
10255 (print_stack_frame_stub): Call print_frame_info instead of
10256 print_frame_info_base.
10257 (print_frame_info_base): Rename to print_frame_info.
10258 (backtrace_command_1): Call print_frame_info, instead of
10259 print_frame_info_base.
10260 (current_frame_command): Call print_stack_frame, instead of
10261 print_only_stack_frame.
10262 (frame_command): Call print_stack_frame, instead of
10263 show_and_print_stack_frame.
10264 (up_command): Ditto.
10265 (down_command): Ditto.
10266 * frame.h (print_only_stack_frame): Delete prototype.
10267 * infrun.c (normal_stop): Call print_stack_frame, instead of
10268 show_and_print_stack_frame.
10269 * thread.c (info_threads_command): Call print_stack_frame, instead
10270 of print_only_stack_frame.
10271
3f5a3016
AC
102722003-01-13 Andrew Cagney <ac131313@redhat.com>
10273
d99ba314
AC
10274 * README (Graphical interface to GDB): Update URL. Point at
10275 gdb/links/.
10276
3f5a3016
AC
10277 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10278 version match.
10279
083ae935
DJ
102802003-01-13 Daniel Jacobowitz <drow@mvista.com>
10281
10282 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10283 lines.
10284
5365276c
DJ
102852003-01-13 Daniel Jacobowitz <drow@mvista.com>
10286
10287 * thread-db.c (attach_thread): Prototype.
10288 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10289 thread information (ti), and valid flags (th_valid, ti_valid).
10290 (attach_thread): Move target_pid_to_str call to after the thread
10291 is added to GDB's list. Initialize the cache.
10292 (thread_get_info_callback, thread_db_map_id2thr)
10293 (thread_db_get_info): New functions.
10294 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10295 (thread_db_store_registers, thread_db_thread_alive)
10296 (thread_db_get_thread_local_address): Use them.
10297 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10298 of calling error() for threads in unknown state.
10299
10300 (clear_lwpid_callback): New function.
10301 (thread_db_resume): Use it to clear the cache.
10302
9fc30b6b
DJ
103032003-01-13 Daniel Jacobowitz <drow@mvista.com>
10304
10305 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10306 (resume_callback): Remove dead code.
10307
8f871025
AC
103082003-01-13 Andrew Cagney <ac131313@redhat.com>
10309
10310 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10311 predicate.
10312 * gdbarch.h, gdbarch.c: Regenerate.
10313 * stack.c (frame_info): Only initialize the saved registers when
10314 FRAME_INIT_SAVED_REGS_P.
10315 * frame.c (frame_saved_regs_register_unwind): Assert
10316 FRAME_INIT_SAVED_REGS_P.
10317 (deprecated_generic_get_saved_register): Ditto.
10318
3f565f1e
DJ
103192003-01-13 Daniel Jacobowitz <drow@mvista.com>
10320
10321 * source.c (openp): Squelch warning about "filename".
10322
072b1022
DJ
103232003-01-13 Daniel Jacobowitz <drow@mvista.com>
10324
10325 * source.c (openp): If the file does not exist don't necessarily
10326 search the path.
10327
973ccf8b
DJ
103282003-01-13 Daniel Jacobowitz <drow@mvista.com>
10329
10330 Fix PR gdb/872.
10331 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10332 (integer_types_same_name_p): New function.
10333 (rank_one_type): Use it.
10334 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10335
030292b7
DJ
103362003-01-13 Daniel Jacobowitz <drow@mvista.com>
10337
10338 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10339 variables.
10340 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10341 * configure.in: Add --with-sysroot.
10342 * configure: Regenerated.
10343 * main.c (gdb_sysroot): New variable.
10344 (captured_main): Initialize gdb_sysroot.
10345 * defs.h (gdb_sysroot): New extern declaration.
10346 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10347
afb5d334
MC
103482003-01-12 Michael Chastain <mec@shout.net>
10349
10350 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10351
751ceeb4
MC
103522003-01-12 Michael Chastain <mec@shout.net>
10353
10354 * top.c (print_gdb_version): Bump copyright year to 2003.
10355
94cd26f8
DC
103562003-01-12 David Carlton <carlton@bactrian.org>
10357
10358 * linespec.c (symtab_from_filename): Rename variable 's' to
10359 'file_symtab'.
10360
1ce79225
AC
103612003-01-12 Andrew Cagney <ac131313@redhat.com>
10362
10363 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10364 dummy frame.
10365 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10366
fa1fd571
AC
103672003-01-12 Andrew Cagney <ac131313@redhat.com>
10368
10369 * d10v-tdep.c: Include "gdb_assert.h".
10370 (d10v_store_return_value): Rewrite to match current interface.
10371 (d10v_extract_struct_value_address): Ditto.
10372 (d10v_extract_return_value): Ditto.
10373 (d10v_gdbarch_init): Set store_restore_value,
10374 extract_struct_value_address and extract_return_value.
10375
68b8d23e
JB
103762003-01-12 J. Brobecker <brobecker@gnat.com>
10377
10378 * hpread.c (set_namestring): New procedure replacing the
10379 SET_NAMESTRING macro.
10380 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10381 by calls to set_namestring.
10382
103832003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
10384
10385 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10386 a compilation warning.
10387 (hpread_process_one_debug_symbol): Likewise.
10388
88d262ca
DC
103892003-01-10 David Carlton <carlton@math.stanford.edu>
10390
10391 * linespec.c (decode_line_1): Rename variable 's' to
10392 'file_symtab'.
10393 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10394 (decode_dollar): Ditto.
10395 (decode_variable): Ditto.
10396 (symbol_found): Ditto.
10397
86669319
MC
103982003-01-09 Michael Chastain <mec@shout.net>
10399
10400 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10401
616a9dc4
CV
104022003-01-07 Corinna Vinschen <vinschen@redhat.com>
10403
10404 * win32-nat.c (set_process_privilege): New function.
10405 (child_attach): Call set_process_privilege() to enable the
10406 SE_DEBUG_NAME user privilege if available in process token.
10407
3269bcfa
JB
104082003-01-10 J. Brobecker <brobecker@gnat.com>
10409
10410 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10411 compilation error in the previous revision.
10412
2b0ee454
DC
104132003-01-09 David Carlton <carlton@math.stanford.edu>
10414
10415 * linespec.c: Update copyright.
10416
b3ba1b44
DJ
104172003-01-09 Daniel Jacobowitz <drow@mvista.com>
10418
10419 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10420 than inferior_ptid.
10421 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10422
4ef3f3be
AC
104232003-01-09 Andrew Cagney <ac131313@redhat.com>
10424
479ab5a0
AC
10425 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10426 Update comments.
10427 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10428 (frame_saved_regs_zalloc): Update.
10429 (frame_saved_regs_register_unwind): Update.
10430 (create_new_frame): Update.
10431 (get_prev_frame): Update.
10432 (frame_extra_info_zalloc): Update.
10433 (deprecated_get_frame_saved_regs): Update.
10434 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10435 * cris-tdep.c: Update comment.
10436
bde58177
AC
10437 * somsolib.h: Fix function indentation.
10438 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10439 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10440 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10441 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10442 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10443
4ef3f3be
AC
10444 * infrun.c (follow_fork): Use ISO C definition.
10445 * expprint.c (print_subexp): Use xfree instead of free.
10446 * charset.c: Include "gdb_string.h" instead of <string.h>.
10447 (register_iconv_charsets): Use ISO C definition.
10448 (host_charset, target_charset): Ditto.
10449 * Makefile.in (charset.o): Update dependencies.
10450 (mi-cmd-env.o): Update dependencies.
10451
1c615f7a
AC
104522003-01-08 Andrew Cagney <cagney@redhat.com>
10453
10454 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10455 get_frame_base.
10456
c9a1dc08
AC
104572003-01-08 Andrew Cagney <ac131313@redhat.com>
10458
10459 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10460 build directories. Save edited gdb output in Mbuild.log. If a
10461 build fails, remove any final GDB executable.
10462
dbad9d94
AC
104632003-01-08 Andrew Cagney <ac131313@redhat.com>
10464
10465 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10466 replacing hex constants with function names and stripping leading
10467 file name directory prefixes.
10468
8d357cca
AC
104692003-01-08 Andrew Cagney <cagney@redhat.com>
10470
10471 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10472 get_frame_base.
10473
bca02a8a
DC
104742003-01-08 David Carlton <carlton@math.stanford.edu>
10475
10476 * linespec.c (decode_line_1): Move code into decode_variable.
10477 (decode_variable): New function.
10478
7f8ab3a0
AC
104792003-01-08 Andrew Cagney <ac131313@redhat.com>
10480
10481 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10482
7b5849cc
AC
104832003-01-08 Andrew Cagney <cagney@redhat.com>
10484
10485 * cris-tdep.c (cris_frame_init_saved_regs): Use
10486 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10487 saved_regs buffer.
10488 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10489 (sh64_nofp_frame_init_saved_regs): Ditto.
10490 (sh_fp_frame_init_saved_regs): Ditto.
10491 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10492 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10493 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10494 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10495
72a5efb3
DJ
104962003-01-08 Daniel Jacobowitz <drow@mvista.com>
10497
10498 * minsyms.c (lookup_minimal_symbol): Update comment.
10499 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10500 (lookup_minimal_symbol_solib_trampoline): Likewise.
10501
11c02a10
AC
105022003-01-08 Andrew Cagney <cagney@redhat.com>
10503
aab3ea25
AC
10504 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10505 frame_relative_level.
10506
da50a4b7
AC
10507 * alpha-tdep.c: Use get_frame_extra_info.
10508 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10509 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10510 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10511 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10512
11c02a10
AC
10513 * alpha-tdep.c: Use get_next_frame.
10514 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10515 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10516 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10517 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10518 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10519 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10520 * xstormy16-tdep.c: Ditto.
8ffd9b1b 10521
1e2330ba
AC
105222003-01-07 Andrew Cagney <cagney@redhat.com>
10523
10524 * alpha-tdep.c: Use get_frame_base.
10525 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10526 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10527 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10528 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10529 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10530 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10531 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10532 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 10533
2d75187b
AC
105342003-01-07 Andrew Cagney <cagney@redhat.com>
10535
10536 * frame.c (deprecated_get_frame_context): New function.
10537 (deprecated_set_frame_context): New function.
10538 * frame.h (deprecated_get_frame_context): Declare.
10539 (deprecated_set_frame_context): Declare.
10540 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10541 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 10542
483d36b2
AC
105432003-01-07 Andrew Cagney <cagney@redhat.com>
10544
10545 * frame.c (deprecated_set_frame_next_hack): New function.
10546 (deprecated_set_frame_prev_hack): New function.
10547 * frame.h (deprecated_set_frame_next_hack): Declare.
10548 (deprecated_set_frame_prev_hack): Declare.
10549 * mcore-tdep.c (analyze_dummy_frame): Use
10550 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10551 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10552
14e91ac5
DC
105532003-01-07 David Carlton <carlton@math.stanford.edu>
10554
10555 * linespec.c (decode_line_1): Move code into decode_dollar.
10556 (decode_dollar): New function.
10557
b0c6b05c
AC
105582003-01-07 Andrew Cagney <cagney@redhat.com>
10559
10560 * arm-tdep.c (arm_init_extra_frame_info): Use
10561 deprecated_update_frame_base_hack.
10562 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10563 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10564 (fix_frame_pointer): Ditto.
10565 (mn10300_analyze_prologue): Ditto.
10566
a00a19e9
AC
105672003-01-07 Andrew Cagney <cagney@redhat.com>
10568
10569 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10570 extra_info using frame_extra_info_zalloc.
10571 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10572 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10573 (sh64_init_extra_frame_info): Ditto.
10574 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10575 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10576 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10577 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10578 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10579 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10580 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10581 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10582 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10583 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10584 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10585 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10586
10587 * mn10300-tdep.c (analyze_dummy_frame): Use
10588 deprecated_set_frame_extra_info_hack.
10589 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10590
1fb4c65b
JB
105912003-01-07 J. Brobecker <brobecker@gnat.com>
10592
10593 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10594 class is not scText. These do not define "real" procedures.
10595 (parse_partial_symbols): Likewise.
10596
9fe7d6bf
MS
105972003-01-06 Michael Snyder <msnyder@redhat.com>
10598
10599 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10600
f6c609c4
AC
106012003-01-06 Andrew Cagney <ac131313@redhat.com>
10602
10603 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10604 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10605 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10606 deprecated_frame_xmalloc_with_cleanup.
10607 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10608 deprecated_frame_xmalloc.
10609 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10610 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10611
d995ff4b
AC
106122003-01-06 Andrew Cagney <cagney@redhat.com>
10613
84dc46cb
AC
10614 * x86-64-linux-tdep.c: Include "osabi.h".
10615 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10616
d995ff4b
AC
10617 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10618
66140c26
AC
106192003-01-06 Andrew Cagney <cagney@redhat.com>
10620
10621 * MAINTAINERS (Target Instruction Set Architectures): Update
10622 arm-elf. Can be built with -Werror, has been multiarched.
10623
10624 * value.h (unpack_long): Make buffer parameter constant.
10625 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10626 * scm-lang.h (scm_parse): Ditto.
10627 * defs.h (extract_typed_address, extract_address): Ditto.
10628 (extract_long_unsigned_integer): Ditto.
10629 * inferior.h (unsigned_pointer_to_address): Ditto.
10630 (signed_pointer_to_address): Ditto.
10631 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10632 * gdbarch.h, gdbarch.c: Regenerate.
10633 * findvar.c (extract_long_unsigned_integer): Update.
10634 (extract_address): Update.
10635 (extract_typed_address): Update.
10636 (unsigned_pointer_to_address): Update.
10637 * values.c (unpack_long): Update.
10638 (unpack_double): Update.
10639 (unpack_pointer): Update.
10640 (unpack_field_as_long): Update.
10641 * d10v-tdep.c (d10v_pointer_to_address): Update.
10642 * avr-tdep.c (avr_pointer_to_address): Update.
10643 * scm-lang.c (scm_unpack): Update.
10644 * findvar.c (signed_pointer_to_address): Update.
10645
b089b3da
ML
106462003-01-06 Michal Ludvig <mludvig@suse.cz>
10647
8ffd9b1b 10648 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
10649 since it is in i386-tdep.c.
10650
aff87235
JB
106512003-01-06 J. Brobecker <brobecker@gnat.com>
10652
10653 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10654 failure introduced in the previous change.
10655
34f5e845
MC
106562003-01-05 Michael Chastain <mec@shout.net>
10657
10658 * README: Remove references to deleted remote-*.c files:
10659 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10660 remote-nrom.c, remote-os9k.c, remote-udi.c.
10661
28bcfd30
MK
106622003-01-05 Mark Kettenis <kettenis@gnu.org>
10663
10664 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10665 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10666 i386_get_longjmp_target.
10667
15a5b3ee
AC
106682003-01-05 Andrew Cagney <ac131313@redhat.com>
10669
10670 * arm-tdep.c (prologue_cache): Change to a pointer.
10671 (_initialize_arm_tdep): Allocate prologue_cache.
10672 (check_prologue_cache): Update.
10673 (save_prologue_cache): Update.
10674 (arm_gdbarch_init): Update.
10675
c263362b
DJ
106762003-01-04 Daniel Jacobowitz <drow@mvista.com>
10677
10678 * stabsread.c (update_method_name_from_physname): Call complaint()
10679 instead of error.
10680
51603483
DJ
106812003-01-04 Daniel Jacobowitz <drow@mvista.com>
10682
10683 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10684 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10685 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10686
10687 * blockframe.c: Include "gdbcmd.h" and "command.h".
10688 (backtrace_below_main): New variable.
10689 (file_frame_chain_valid, func_frame_chain_valid)
10690 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10691 (generic_func_frame_chain_valid): Remove functions.
10692 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10693 (_initialize_blockframe): New function.
10694 * Makefile.in (blockframe.o): Update dependencies.
10695 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10696 comment. Call frame_chain_valid ().
10697 * frame.h: Remove old prototypes. Add prototype for
10698 frame_chain_valid and update comments to match.
10699 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10700 Remove old comment.
10701 * gdbarch.h: Regenerated.
10702 * gdbarch.c: Regenerated.
10703
10704 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10705 set_gdbarch_frame_chain_valid.
10706 * avr-tdep.c (avr_gdbarch_init): Likewise.
10707 * cris-tdep.c (cris_gdbarch_init): Likewise.
10708 * frv-tdep.c (frv_gdbarch_init): Likewise.
10709 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10710 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10711 (i386_nw_init_abi): Likewise.
10712 (i386_gdbarch_init): Likewise.
10713 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10714 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10715 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10716 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10717 * mips-tdep.c (mips_gdbarch_init): Likewise.
10718 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10719 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10720 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10721 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10722 * s390-tdep.c (s390_gdbarch_init): Likewise.
10723 * sh-tdep.c (sh_gdbarch_init): Likewise.
10724 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10725 * v850-tdep.c (v850_gdbarch_init): Likewise.
10726 * vax-tdep.c (vax_gdbarch_init): Likewise.
10727 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10728
10729 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10730 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10731 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10732 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10733 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10734 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10735 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10736 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10737
b00a8037
DJ
107382002-01-04 Daniel Jacobowitz <drow@mvista.com>
10739
10740 * Makefile.in (acconfig_h): Remove incorrect macro.
10741 (config_h): Define.
10742 (osabi.o): Update dependencies.
10743 * configure.tgt: Set gdb_osabi based on target triplet.
10744 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10745 * configure: Regenerated.
10746 * config.in: Regenerated.
10747 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10748 (GDB_OSABI_DEFAULT): Define if not already defined.
10749 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10750 (set_osabi_string): New variables.
10751 (gdbarch_register_osabi): Add new OS ABI to
10752 gdb_osabi_available_names.
10753 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10754 (set_osabi, show_osabi): New functions.
10755 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10756
4be87837
DJ
107572003-01-04 Daniel Jacobowitz <drow@mvista.com>
10758
10759 * arch-utils.c (gdbarch_info_init): Set osabi to
10760 GDB_OSABI_UNINITIALIZED.
10761 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10762 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10763 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10764 * gdbarch.c: Regenerated.
10765 * gdbarch.h: Regenerated.
10766 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10767 there's no BFD.
10768 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10769 * osabi.h (enum gdb_osabi): Move to defs.h.
10770 (gdbarch_init_osabi): Update prototype.
10771 * defs.h (enum gdb_osabi): Moved here.
10772 * Makefile.in: Update dependencies.
10773
10774 * alpha-tdep.h: Don't include "osabi.h".
10775 (struct gdbarch_tdep): Remove osabi member.
10776 * alpha-tdep.c: Include "osabi.h".
10777 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10778 iterate over arches. Update call to gdbarch_init_osabi.
10779 (alpha_dump_tdep): Don't dump osabi.
10780 * alpha-linux-tdep.c: Include "osabi.h".
10781 * alpha-osf1-tdep.c: Include "osabi.h".
10782 * alphafbsd-tdep.c: Include "osabi.h".
10783 * alphanbsd-tdep.c: Include "osabi.h".
10784
10785 * arm-tdep.h: Don't include "osabi.h".
10786 (struct gdbarch_tdep): Remove osabi member.
10787 * arm-tdep.c: Include "osabi.h".
10788 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10789 iterate over arches. Update call to gdbarch_init_osabi.
10790 (arm_dump_tdep): Don't dump osabi.
10791 * arm-linux-tdep.c: Include "osabi.h".
10792 * armnbsd-tdep.c: Include "osabi.h".
10793
10794 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10795 Update call to gdbarch_init_osabi.
10796
10797 * i386-tdep.h: Don't include "osabi.h".
10798 (struct gdbarch_tdep): Remove osabi member.
10799 * i386-tdep.c: Include "osabi.h".
10800 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10801 iterate over arches. Update call to gdbarch_init_osabi.
10802 (i386_dump_tdep): Don't dump osabi.
10803 * i386-linux-tdep.c: Include "osabi.h".
10804 * i386-sol2-tdep.c: Include "osabi.h".
10805 * i386bsd-tdep.c: Include "osabi.h".
10806 * i386gnu-tdep.c: Include "osabi.h".
10807 * i386ly-tdep.c: Include "osabi.h".
10808 * i386nbsd-tdep.c: Include "osabi.h".
10809 * i386obsd-tdep.c: Include "osabi.h".
10810
10811 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10812 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10813 check osabi when iterating over arches. Update call to
10814 gdbarch_init_osabi.
10815 (mips_dump_tdep): Don't dump osabi.
10816
10817 * ns32k-tdep.h: Don't include "osabi.h".
10818 (struct gdbarch_tdep): Remove.
10819 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10820 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10821 allocate tdep. Update call to gdbarch_init_osabi.
10822 (ns32k_dump_tdep): Remove.
10823 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10824 * ns32knbsd-tdep.c: Include "osabi.h".
10825
10826 * ppc-tdep.h: Don't include "osabi.h".
10827 (struct gdbarch_tdep): Remove osabi member.
10828 * rs6000-tdep.c: Include "osabi.h".
10829 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10830 osabi when iterating over arches. Update call to
10831 gdbarch_init_osabi.
10832 (rs6000_dump_tdep): Don't dump osabi.
10833 * ppc-linux-tdep.c: Include "osabi.h".
10834 * ppcnbsd-tdep.c: Include "osabi.h".
10835
10836 * sh-tdep.h: Don't include "osabi.h".
10837 (struct gdbarch_tdep): Remove osabi member.
10838 * sh-tdep.c: Include "osabi.h".
10839 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10840 iterate over arches. Update call to gdbarch_init_osabi.
10841 (sh_dump_tdep): Don't dump osabi.
10842 * shnbsd-tdep.c: Include "osabi.h".
10843
10844 * sparc-tdep.c: Include "osabi.h".
10845 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10846 iterate over arches. Update call to gdbarch_init_osabi.
10847 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10848 tdep structure.
10849
10850 * vax-tdep.h: Don't include "osabi.h".
10851 (struct gdbarch_tdep): Remove.
10852 * vax-tdep.c: Include "osabi.h".
10853 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10854 iterate over arches. Don't allocate tdep. Update call
10855 to gdbarch_init_osabi.
10856 (vax_dump_tdep): Remove.
10857 (_initialize_vax_tdep): Update call to gdbarch_register.
10858
a881cf8e
DJ
108592003-01-04 Daniel Jacobowitz <drow@mvista.com>
10860
10861 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10862 entirely.
10863 (breakpoint_re_set_one): Don't fetch the value for a disabled
10864 watchpoint.
10865
1e698235
DJ
108662003-01-04 Daniel Jacobowitz <drow@mvista.com>
10867
10868 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10869 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10870 (COERCE_FLOAT_TO_DOUBLE): Remove.
10871 * gdbarch.c: Regenerate.
10872 * gdbarch.h: Regenerate.
10873 * Makefile.in: Remove value_h from gdbarch_h.
10874 * valops.c (coerce_float_to_double): New variable.
10875 (default_coerce_float_to_double): Remove.
10876 (standard_coerce_float_to_double): Remove.
10877 (value_arg_coerce): Use coerce_float_to_double.
10878 (_initialize_valops): Add "set coerce-float-to-double".
10879 * value.h (default_coerce_float_to_double): Remove prototype.
10880 (standard_coerce_float_to_double): Remove prototype.
10881
10882 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10883 prototyped.
10884 * mdebugread.c (parse_symbol): Likewise.
10885 * stabsread.c (define_symbol): Mark all functions as prototyped.
10886
10887 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10888 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10889 set_gdbarch_coerce_float_to_double.
10890 * arm-tdep.c (arm_gdbarch_init): Likewise.
10891 * frv-tdep.c (frv_gdbarch_init): Likewise.
10892 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10893 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10894 * mips-tdep.c (mips_gdbarch_init): Likewise.
10895 (mips_coerce_float_to_double): Remove.
10896 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10897 (rs6000_coerce_float_to_double): Remove.
10898 * s390-tdep.c (s390_gdbarch_init): Likewise.
10899 * sh-tdep.c (sh_gdbarch_init): Likewise.
10900 (sh_coerce_float_to_double): Remove.
10901 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10902 (sparc_coerce_float_to_double): Remove.
10903 * v850-tdep.c (v850_gdbarch_init): Likewise.
10904 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10905 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10906 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10907 (hppa_coerce_float_to_double): Remove prototype.
10908 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10909
f436a26a
DJ
109102003-01-04 Daniel Jacobowitz <drow@mvista.com>
10911
10912 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10913
248f8055
DJ
109142003-01-04 Daniel Jacobowitz <drow@mvista.com>
10915
10916 Suggested by Stewart Brown <sb24@avaya.com>:
10917 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10918 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10919 (c_type_print_varspec_suffix): Likewise.
10920
72cfdc76
MK
109212003-01-04 Mark Kettenis <kettenis@gnu.org>
10922
bfd260bb
MK
10923 * configure.in: Don't set and AC_SUBST SUBDIRS.
10924 * configure: Regenerated.
10925
72cfdc76
MK
10926 * configure.in: Remove code dealing with shared libraries.
10927 * Makefile.in: Remove HLDFLAGS and HLDENV.
10928 * configure: Regenerated.
10929
c8b8a898
AC
109302003-01-04 Andrew Cagney <ac131313@redhat.com>
10931
10932 * frame.c (deprecated_frame_xmalloc): New function.
10933 (deprecated_set_frame_saved_regs_hack): New function.
10934 (deprecated_set_frame_extra_info_hack): New function.
10935 * frame.h (deprecated_frame_xmalloc): Declare.
10936 (deprecated_set_frame_saved_regs_hack): Declare.
10937 (deprecated_set_frame_extra_info_hack): Declare.
10938
14abd0fb
MK
109392003-01-04 Mark Kettenis <kettenis@gnu.org>
10940
8ee53726
MK
10941 * configure.in: Move code that provides the --enable-gdbtk option
10942 right after the code that handles the --enable-tui option, and
10943 polish it somewhat.
10944 * configure: Regenerated.
10945
14abd0fb
MK
10946 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10947 AC_CHECK_FUNCS and remove the old check for pread64.
10948 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10949 * acconfig.h (_GNU_SOURCE): Add.
10950 (HAVE_PREAD64): Remove.
10951 * configure, aclocal.m4, config.in: Regenerated.
10952
b2fb4676
AC
109532003-01-03 Andrew Cagney <ac131313@redhat.com>
10954
10955 * alpha-tdep.c: Use get_frame_saved_regs.
10956 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10957 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10958 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10959 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10960 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10961
8dcde887
MK
109622003-01-03 Mark Kettenis <kettenis@gnu.org>
10963
10964 * configure.in: Remove all use of the SUBDIRS variable; add
10965 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10966 code providing the --enable-multi-ice option, and move it right in
10967 front of the code that checks whether gdbserver is supported.
10968 Polish that too.
10969 * configure: Regenerated.
10970 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10971 @SUBDIRS@.
10972
8ccd593b
AC
109732003-01-03 Andrew Cagney <cagney@redhat.com>
10974
10975 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10976 * avr-tdep.c, cris-tdep.c: Ditto.
10977 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10978 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 10979
91151a06
MK
109802003-01-03 Mark Kettenis <kettenis@gnu.org>
10981
10982 * configure.in: Remove --enable-netrom option.
10983 * configure: Regenerated.
10984
8fe84d01
MK
109852003-01-03 Mark Kettenis <kettenis@gnu.org>
10986
10987 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10988 declaration for `struct re_pattern_buffer' instead.
10989 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10990
f0394be6
JB
109912003-01-03 J. Brobecker <brobecker@gnat.com>
10992
10993 * mdebugread.c (parse_symbol): Count until the stEnd matching
10994 the structure name.
10995
27e9bf90
MK
109962003-01-02 Mark Kettenis <kettenis@gnu.org>
10997
93d331ba
MK
10998 * configure.in: Remove --with-cpu option.
10999 subscripts. Remove evil changequotes here.
11000 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11001 * config.in, configure: Regenerated.
8ffd9b1b 11002
27e9bf90
MK
11003 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11004 * configure.in: Cleanup section that sources GDB and BFD configure
11005 subscripts. Remove evil changequotes here.
11006 * config.in, configure: Regenerated.
11007
50abf9e5
AC
110082003-01-02 Andrew Cagney <ac131313@redhat.com>
11009
11010 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11011 frame accessor methods.
11012 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11013 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11014 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11015 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11016 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11017 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11018 * z8k-tdep.c: Ditto.
8ffd9b1b 11019
287c1a40
MK
110202003-01-02 Mark Kettenis <kettenis@gnu.org>
11021
f5dbc56d
MK
11022 * configure.in: Remove UI_OUT configuration code.
11023 * ada-lang.c: Update assuming UI_OUT is always true.
11024 * Makefile.in (UIOUT_CFLAGS): Remove.
11025 * configure: Regenerated.
11026 * TODO: Remove blurb about elimination of -DUI_OUT.
11027
627af7ea
MK
11028 * configure.in: Move code that provides the --enable-gdbcli,
11029 --enable-gdbmi options right before the code that handles the
11030 --enable-tui option. Polish a bit.
11031 * configure: Regenerated.
11032
06825bd1
MK
11033 * configure.in: Rewrite check for GNU regex and the
11034 --without-included regex option, and move it into the "Checks for
11035 library functions" section. This makes us use the system regex
11036 again by default on systems with version 2 of the GNU C library.
11037 This was apparently broken.
11038 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11039 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11040 * config.in, configure: Regenerated.
11041
287c1a40
MK
11042 * configure.in: Move code that provides the --enable-tui option
11043 before the "Checks for libraries" section. Polish the code
11044 somewhat and set need_curses to yes if we build the TUI. Rewrite
11045 code that looks for a library providing termcap functionality to
11046 match more closely what's done in the Readline library, and move
11047 it into to the "Checks for libraries" section.
11048 * configure: Regenerated.
11049 * Makefile.in (TERMCAP): Remove variable.
11050 * config/i386/go32.mh (TERMCAP): Remove variable.
11051
684e56bf
AC
110522003-01-02 Andrew Cagney <ac131313@redhat.com>
11053
11054 * MAINTAINERS: Mention gdb_mbuild.sh.
11055 * gdb_mbuild.sh: Rewrite.
11056
e1ea1d75
MK
110572003-01-02 Mark Kettenis <kettenis@gnu.org>
11058
11059 * configure.in: Fix typo in last change.
11060 * config.in, configure: Regenerated.
11061
1b831c93
AC
110622003-01-02 Andrew Cagney <ac131313@redhat.com>
11063
11064 * valarith.c (value_binop): Delete obsolete code and comments.
11065 * configure.host: Ditto.
11066 * buildsym.h (make_blockvector): Ditto.
11067 * buildsym.c (make_blockvector): Ditto.
11068 * defs.h (enum language): Ditto.
11069 (chill_demangle): Ditto.
11070 * elfread.c (elf_symtab_read): Ditto.
11071 * dwarfread.c (CHILL_PRODUCER): Ditto.
11072 (set_cu_language): Ditto.
11073 (handle_producer): Ditto.
11074 * expprint.c (print_subexp): Ditto.
11075 * gdbtypes.c (chill_varying_type): Ditto.
11076 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11077 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11078 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11079 (chill_varying_type): Ditto.
11080 * language.h (_LANG_chill): Ditto.
11081 * language.c (binop_result_type, integral_type): Ditto.
11082 (character_type, string_type, structured_type): Ditto.
11083 (lang_bool_type, binop_type_check): Ditto.
11084 * stabsread.h (os9k_stabs): Ditto.
11085 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11086 (define_symbol, read_type, read_struct_fields): Ditto.
11087 (read_array_type, read_enum_type, read_huge_number): Ditto.
11088 (read_range_type, start_stabs): Ditto.
11089 * symfile.c (init_filename_language_table): Ditto.
11090 (add_psymbol_with_dem_name_to_list): Ditto.
11091 * symtab.c (symbol_init_language_specific): Ditto.
11092 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11093 * symtab.h (struct general_symbol_info): Ditto.
11094 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11095 * typeprint.c (typedef_print): Ditto.
11096 * utils.c (fprintf_symbol_filtered): Ditto.
11097 * valops.c (value_cast, search_struct_field, value_slice): Delete
11098 obsolete code.
11099 (varying_to_slice): Delete function.
11100 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11101 (varying_to_slice): Delete declaration.
11102 * MAINTAINERS: Update.
11103
8bb2c122
MK
111042003-01-02 Mark Kettenis <kettenis@gnu.org>
11105
97bf5e38
MK
11106 * configure.in: Reorganize "Checks for library functions section"
11107 a bit. Remove check for `btowc' and `isascii' functions.
11108 * configure: Regenerated.
11109
5ee754fc
MK
11110 * acconfig.h (_MSE_INT_H): Remove.
11111 * configure.in: Create "Checks for header files" section, and move
11112 appropriate tests there. Don't check for objlist.h, wchar.h,
11113 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11114 misdetection fix. Also add "Checks for types", "Checks for
11115 compiler characteristics" and "Checks for library functions"
11116 sections.
11117 * config.in, configure: Regenerated.
11118
8bb2c122
MK
11119 * configure.in: Create "Checks for programs" section, and move
11120 appropriate tests there.
11121
9a156167
MK
111222003-01-01 Mark Kettenis <kettenis@gnu.org>
11123
11124 * configure.in: Create "Checks for libraries" section, and move
11125 appropriate tests there. Cleanup check for wctype in libw. Use
11126 AC_SEARCH_LIBS to see whether we need libsocket.
11127 * configure: Regenerated.
11128
a80e2bcb 11129For older changes see ChangeLog-2002
c906108c
SS
11130\f
11131Local Variables:
11132mode: change-log
11133left-margin: 8
11134fill-column: 74
11135version-control: never
11136End:
This page took 1.622532 seconds and 4 git commands to generate.