2004-10-30 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d37cca3d
AC
12004-10-30 Andrew Cagney <cagney@gnu.org>
2
0bb57b31
AC
3 Suggested by Mark Kettenis.
4 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
5 fields frame_adjust and high_addr.
6 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
7 (non_heuristic_proc_desc): Delete references.
8
a5c9623c
AC
9 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
10 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
11 * mips-tdep.c: Update.
12
607fc93c
AC
13 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
14 (MIPS_LAST_EMBED_REGNUM): Add.
15 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
16 (LAST_EMBED_REGNUM): Delete.
17 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
18
24e05951
AC
19 * config/mips/tm-mips.h (PS_REGNUM): Delete.
20 * mips-tdep.h (MIPS_PS_REGNUM): Add.
21 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
22 * mips-linux-nat.c: Update.
23
613e114f
AC
24 * mips-tdep.h: Add comments on registers.
25 (MIPS_UNUSED_REGNUM): Define.
26 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
27 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
28 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
29 * mips-linux-nat.c, remote-mips.c: Update.
30
d37cca3d
AC
31 * config/mips/tm-mips.h (t_insn): Delete.
32 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
33 Replace t_insn with ULONGEST.
34
ceb41096
MK
352004-10-30 Mark Kettenis <kettenis@gnu.org>
36
d1180b0f
MK
37 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
38 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
39 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
40 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
41 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
42 (mipsnbsd_core_osabi_sniffer): New function.
43 (mipsnbsd_init_abi): Set regset_from_core_section.
44 (_initialize_mipsnbsd_tdep): Remove calls to
45 deprecated_add_core_fns.
46 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
47 (mipsnbsd_regset_from_core_section): New functions.
48 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
49 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
50
ceb41096
MK
51 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
52 Remove optimization for DEPRECATED_FP_REGNUM.
53
ec4045ea
AC
542004-10-30 Andrew Cagney <cagney@gnu.org>
55
cd65c8f6
AC
56 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
57 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
58 (alpha_setup_arbitrary_frame): Delete.
59 * mips-tdep.c (setup_arbitrary_frame): Delete.
60 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
61 (setup_arbitrary_frame): Delete.
62 * stack.c (parse_frame_specification_1): When specified, call
63 create_new_frame with two parameters. Delete #ifdef
64 SETUP_ARBITRARY_FRAME.
65
95ac2dcf
AC
66 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
67 (MIPS_INSTLEN): Delete.
68 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
69 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
70 * remote-mips.c, mips-tdep.c: Update.
71
1a8da44d
AC
72 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
73 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
74 * mips-tdep.c (mips_mdebug_frame_cache)
75 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
76 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
77 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
78 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
79 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
80 (mips_gdbarch_init): Do not append mdebug sniffers.
81 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
82 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
83 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
84 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
85 * Makefile.in: Update dependencies.
86
e6bc2e8a
AC
87 * mips-tdep.h (mips_abi_regsize): Declare.
88 * mips-tdep.c (mips_abi_regsize): Make non-static.
89
ec4045ea
AC
90 * mips-tdep.c (gdb_print_insn_mips): Simplify.
91 (make_mips16_addr): Delete.
e6bc2e8a 92
6b16acab
MK
932004-10-30 Mark Kettenis <kettenis@gnu.org>
94
95 * i386-sol2-nat.c: New file.
96 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
97 i386-sol2-tdep.c.
98 (i386-sol2-nat.o): Update dependencies.
99 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
100 i386-sol2-nat.o.
101
8b622e6a
AC
1022004-10-30 Andrew Cagney <cagney@gnu.org>
103
104 Total breakage identified by Joel Brobecker.
105 * mips-tdep.c (after_prologue): Delete.
106 (mips_skip_prologue): Use skip_prologue_using_sal.
107 (heuristic_proc_desc): Delete, unused.
108
772cf8be
MK
1092004-10-30 Mark Kettenis <kettenis@gnu.org>
110
111 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
112 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
113 Cleanup coding style.
114
9c8fdbfa
AC
1152004-10-30 Andrew Cagney <cagney@gnu.org>
116
0fe7e7c8
AC
117 * mips-tdep.h (mips_pc_is_mips16): Declare.
118 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
119 non-static. Update calls.
120
1b295c3d
AC
121 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
122 * command.h (add_setshow_enum_cmd): Declare.
123 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
124
6bcadd06
AC
125 * mips-tdep.c (_initialize_mips_tdep): Use
126 add_setshow_zinteger_cmd.
127
9c8fdbfa
AC
128 * mips-tdep.c (mips_eabi_extract_return_value)
129 (mips_o64_extract_return_value, mips_o64_store_return_value)
130 (return_value_location, mips_eabi_reg_struct_has_addr)
131 (mips_eabi_use_struct_convention)
132 (mips_eabi_store_return_value): Delete.
133 (mips_eabi_store_return_value): New function.
134 (mips_eabi_return_value): New function.
135 (mips_gdbarch_init): For O64 and EABI, delete
136 extract_return_value, store_return_value, use_struct_convention
137 and reg_struct_has_addr, add return_value.
138
1d93fe1a
AC
139 * mips-tdep.c (read_signed_register): Use
140 regcache_cooked_read_signed.
141
303d2914
MK
1422004-10-30 Mark Kettenis <kettenis@gnu.org>
143
144 * mipsread.c: Cleanup coding style.
145 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
146 (mipscoff_symfile_finish): Remove prototypes.
147
1482004-10-29 Mark Kettenis <kettenis@gnu.org>
149
150 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
151 (mips_mdebug_frame_cache, mips16_scan_prologue)
152 (mips32_scan_prologue, mips_stub_frame_cache)
153 (heuristic_proc_start, heuristic_proc_desc)
154 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
155 (mips_n32n64_return_value, mips_o32_push_dummy_call)
156 (mips_o32_return_value, mips_o64_push_dummy_call)
157 (mips_step_skips_delay, mips_skip_trampoline_code)
158 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
159 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
160 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
161 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
162 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
163 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
164 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
165 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
166 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
167 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
168 ZERO_REGNUM.
169 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
170 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
171 ZERO_REGNUM.
172 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
173 A0_REGNUM.
174 * mipsnbsd-nat.c: Include "mips-tdep.h".
175 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
176 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
177
1c8831c5
AC
1782004-10-29 Andrew Cagney <cagney@gnu.org>
179
180 * stack.c (parse_frame_specification_1): New function based on
181 parse_frame_specification. Add message and selected_frame_p
182 paramters. Truely always return non-NULL.
183 (parse_frame_specification): Call parse_frame_specification_1.
184 (frame_info): Update. Eliminate target_has_stack check.
185 (select_frame_command): Update.
186
b04f3ab4
AC
1872004-10-29 Andrew Cagney <cagney@gnu.org>
188
189 * frame.h (get_selected_frame): Add message parameter.
190 * frame.c (get_selected_frame): Add and use message parameter.
191 * stack.c (current_frame_command, return_command, locals_info)
192 (catch_info, args_info, up_silently_base, down_silently_base): Use
193 get_selected_frame with an explicit message.
194 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
195 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
196 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
197 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
198 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
199 * breakpoint.c: Update.
200
2012004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
202
203 * trad-frame.c (trad_frame_get_prev_register): Use
204 frame_unwind_register instead of frame_register_unwind, do not
205 recurse the register's location.
206 * xstormy16-tdep.c (xstormy16_frame_prev_register):
207 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
208 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
209 * sh-tdep.c (sh_frame_prev_register): Ditto.
210 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
211 * i386-tdep.c (i386_frame_prev_register): Ditto.
212 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
213 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
214
7a952542
MK
2152004-10-28 Mark Kettenis <kettenis@jive.nl>
216
c18c06be
MK
217 * proc-events.c: Fix several coding-style issues. Consistently
218 use #ifdef instead of #if defined().
219 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
220 ARRAY_SIZE.
221 (_initialize_proc_events): New prototype.
222
7a952542
MK
223 * proc-why.c: Fix several coding-style issues.
224 (proc_prettyfprint_why): Use ARRAY_SIZE.
225
fcad0fa4
JB
2262004-10-27 Jim Blandy <jimb@redhat.com>
227
228 * remote.c (fetch_register_using_p): Construct 'p' packet in a
229 manner independent of the host byte order.
230
c163184f
MK
2312004-10-27 Mark Kettenis <kettenis@gnu.org>
232
233 * mips-tdep.c (id_delayed): Remove prototype.
234
9c46b6f0
MK
2352004-10-26 Mark Kettenis <kettenis@gnu.org>
236
237 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
238 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
239 to enum with register numbers.
240 (enum mips_insn_size): New enum.
241
0d0266c6
AC
2422004-10-26 Andrew Cagney <cagney@gnu.org>
243
e7d6a6d2
AC
244 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
245 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
246 (mips_gdbarch_init): Update.
247 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
248
c5115f39
AC
249 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
250 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
251 IN_SOLIB_RETURN_TRAMPOLINE.
252 * mips-tdep.c (mips_dump_tdep): Do not print
253 IN_SOLIB_RETURN_TRAMPOLINE.
254 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
255 (mips_gdbarch_init): Update.
256
0d0266c6
AC
257 * mips-tdep.h (mips_software_single_step): Move to here ...
258 * config/mips/tm-mips.h: ... from here.
259 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
260 (SOFTWARE_SINGLE_STEP): Delete.
261 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
262
156a53ca
AC
2632004-10-25 Andrew Cagney <cagney@gnu.org>
264
265 * NEWS: Add Changes since GDB 6.3 section.
266
f27cf670
AS
2672004-10-23 Andreas Schwab <schwab@suse.de>
268
156a53ca
AC
269 * ada-lang.c (grow_vect): Return the new array instead of
270 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
271 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
272
121d8485
UW
2732004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
274
275 * s390-tdep.c (enum pv_boolean): Remove.
276 (pv_is_array_ref): Remove.
277 (s390_on_stack): Remove.
278 (S390_NUM_SPILL_SLOTS): Remove.
279 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
280 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
281 (s390_store): Track all stores of orginal incoming registers to the
282 stack constant offsets relative to the CFA, instead of only tracking
283 stores into specific spill slots.
284 (s390_load): Likewise.
285 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
286 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
287 defined as call-saved by the ABI.
288 (s390_push_dummy_call): Use bottom of dummy call argument save area
289 as return value, not the top. Do not store to the called function's
290 register save area.
291 (s390_unwind_dummy_id): Adapt accordingly.
292
0a6ddd08
AC
2932004-10-23 Andrew Cagney <cagney@gnu.org>
294
295 * objfiles.h (struct objfile): Rename obj_private to
296 deprecated_obj_private, sym_private to deprecated_sym_private, and
297 sym_stab_info to deprecated_sym_stab_info.
298 * gdb-stabs.h: Update.
299 * elfread.c: Update.
300 * dbxread.c: Update.
301 * coffread.c: Update.
302 * xcoffread.c: Update.
303 * symfile.c: Update.
304 * somread.c: Update.
305 * nlmread.c: Update.
306 * mdebugread.c: Update.
307 * hpread.c: Update.
308 * coffread.c: Update.
309
abc08782
MK
3102004-10-23 Mark Kettenis <kettenis@gnu.org>
311
312 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
313 * configure.host: Add mips64*-*-openbsd*.
314 * configure.tgt: Add mips64*-*-openbsd*.
315 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
316 mips64obsd-tdep.c.
317 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
318 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
319
fc062ac6
JB
3202004-10-21 Joel Brobecker <brobecker@gnat.com>
321
322 * symtab.c (symbol_search_name): Minor reformatting.
323
5bccb4d1
JB
3242004-10-20 Joel Brobecker <brobecker@gnat.com>
325
326 * symtab.h: Fix typo in comment.
327
a738430d
MK
3282004-10-19 Mark Kettenis <kettenis@gnu.org>
329
330 * dwarf2read.c (struct comp_unit_head): Fix coding style.
331 (dwarf_decode_line_header): Likewise.
332
f2cb65ca
MC
3332004-10-19 Michael Chastain <mec.gnu@mindspring.com>
334
335 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
336
09e55376
AC
3372004-10-19 Andrew Cagney <cagney@gnu.org>
338
339 GDB 6.3 branch created.
340 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
341
bc5f45f8
JB
3422004-10-15 Joel Brobecker <brobecker@gnat.com>
343
344 * dwarf2read.c (set_cu_language): Set language to Ada for
345 DW_LANG_Ada83 and DW_LANG_Ada95.
346
2941da8c
MC
3472004-10-15 Michael Chastain <mec.gnu@mindspring.com>
348
349 From Andreas Schwab <schwab@suse.de>:
350 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
351 for xmalloc and xrealloc.
352
34a17005
AC
3532004-10-15 Andrew Cagney <cagney@gnu.org>
354
355 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
356 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
357 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
358 Update dependencies.
359
714e53ab
PH
3602004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
361
362 * ada-lang.c (ada_lookup_symbol): Correct comment.
363 (ada_evaluate_subexp): Change error message for
364 OP_FUNCALL case so as not to indicate an internal error.
365
3662004-10-15 Joel Brobecker <brobecker@gnat.com>
367
368 Committed by Paul Hilfinger.
369 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
370 type sizes in XVE/XVU types, and emit a warning when that happens,
371 instead of rounding up the size of the resulting type.
372 Some minor reformatting.
373 (ada_is_aligner_type): Do not consider a type as an aligner type
374 if there is a corresponding XVS type as well.
375 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
376 have several levels of pointer indirection to the array.
377
3782004-10-15 Jerome Guitton <guitton@gnat.com>
379
380 Committed by Paul Hilfinger.
381 * ada-lang.c (check_size): New function.
382 (coerce_unspec_val_to_type): call check_size to make sure
383 that the object size is reasonable.
384 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
385 Implements the case when we get a reference when we evaluate
386 the expression of one of the bounds of the slice.
387 (ada_value_struct_elt): when a packed array field is
388 a reference, use ada_coerce_ref to dereference it; use
389 ada_value_ind only if it is a pointer.
390
29639122
JB
3912004-10-15 Joel Brobecker <brobecker@gnat.com>
392
393 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
394 a bit to avoid the necessity of an advance declaration. Remove
395 declaration.
396 (set_reg_offset): Move implemenation up.
397 (mips16_get_imm): Likewise.
398 (mips16_scan_prologue): Likewise.
399 (reset_saved_regs): Likewise.
400 (mips32_scan_prologue): Likewise.
401
a65bbe44
JB
4022004-10-14 Joel Brobecker <brobecker@gnat.com>
403
404 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
405 Remove sp as a parameter, compute it internally instead. Move
406 prologue scanning limit from heuristic_proc_desc to here.
407 (mips16_scan_prologue): Likewise.
408 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
409 by call to mips16_scan_prologue.
410 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
411 by call to mips32_scan_prologue.
412 (heuristic_proc_desc): Remove code that's no longer necessary.
413 Update calls to mips16_scan_prologue and mips32_scan_prologue.
414 (mips_skip_prologue): Update calls to mips16_scan_prologue
415 and mips32_scan_prologue.
416
1c645fec
JB
4172004-10-14 Joel Brobecker <brobecker@gnat.com>
418
419 * mips-tdep.c (mips16_scan_prologue): Merge code from
420 mips16_skip_prologue. Now return the address of the first
421 instruction past the function prologue.
422 (mips16_skip_prologue): Remove, no longer necessary.
423 (mips_skip_prologue): Replace call to mips16_skip_prologue
424 by call to mips16_scan_prologue.
425
98b4dd94
JB
4262004-10-14 Joel Brobecker <brobecker@gnat.com>
427
428 * mips-tdep.c (mips32_scan_prologue): Merge code from
429 mips32_skip_prologue. Now return the address of the first
430 instruction past the function prologue.
431 (mips32_skip_prologue): Remove. No longer necessary.
432 (mips16_skip_prologue): Add parameter end_pc instead of
433 computing it.
434 (mips_skip_prologue): Compute the upper limit for the
435 prologue scanning. Update call to mips16_skip_prologue.
436 Replace call to mips32_skip_prologue by call to
437 mips32_scan_prologue.
438
ad4c72d2
MK
4392004-10-14 Mark Kettenis <kettenis@gnu.org>
440
dfaf8edb
MK
441 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
442 NetBSD system call stubs that store %rp in the ERP slot of the
443 stack frame.
444
3e3a28f1
MK
445 * source.c: Always define O_BINARY to 0 if not defined already.
446 (openp): Unconditionally use O_BINARY.
447
ad4c72d2
MK
448 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
449 * event-top.c (gdb_readline2): Likewise.
450
52bd1401
OF
4512004-10-14 Orjan Friberg <orjanf@axis.com>
452
453 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
454 deprecated_add_core_fns which was removed by mistake.
455
e0e25c6c
KB
4562004-10-13 Kevin Buettner <kevinb@redhat.com>
457
458 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
459 references to deprecated_registers[] with equivalent code.
460
9f335945
KB
4612004-10-13 Kevin Buettner <kevinb@redhat.com>
462
463 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
464 ``deprecated_registers'' with equivalent code. Use gdb_assert()
465 instead of explicit test and print statement.
466
06c2338d
MK
4672004-10-12 Mark Kettenis <kettenis@gnu.org>
468
1b9445c2
MK
469 * sparc-nat.c: Include "inf-ptrace.h".
470 (sparc_target): New function.
471 * sparc-nat.h: Update copyright year.
472 (sparc_target): New prototype.
473 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
474 (_initialize_sparcnbsd_nat): Construct and add target vector.
475 * sparc64nbsd-nat.c: Include "target.h".
476 (_initialize_sparc64nbsd_nat): Construct and add target vector.
477 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
478 Update dependencies.
479 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
480 inftarg.o, add inf-ptrace.o.
481 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
482 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
483 (NAT_FILE): Set to nm-bsd.h.
484 (LOADLIBES): New variable.
485 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
486 infarg.o, add inf-ptrace.o.
487 * config/sparc/nm-nbsdaout.h: Remove file.
488 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
489 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
490 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
491
06c2338d
MK
492 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
493 "fopen-same.h". Update comment.
494
3303a276
MK
4952004-10-11 Mark Kettenis <kettenis@gnu.org>
496
497 * i386gnu-nat.c: Include "gdb_string.h".
498 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
499 registers when the floating-point state isn't initialized.
500 * Makefile.in (i386gnu-nat.o): Update dependencies.
501
04c663e3
DA
5022004-10-11 David Anderson <davea@sgi.com>
503
504 * regcache.c (regcache_raw_read): Comment was missing "to".
505 Extraneous ' removed.
506 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
507 comment now describes use.
508
a5f6c8f5
OF
5092004-10-11 Orjan Friberg <orjanf@axis.com>
510
511 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
512 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
513 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
514 (cris_sigtramp_frame_sniffer): New functions.
515 (cris_gdbarch_init): Hook in signal trampoline unwinder.
516 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
517 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
518 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
519 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
520 command.
521 (cris_version_update): Remove, replace with ...
522 (set_cris_version): New function.
523 (struct gdbarch_tdep, cris_mode, cris_mode_update)
524 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
525 (_initialize_cris_tdep): Remove CRIS mode command.
526 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
527 cris-fpless-backtrace command.
528 (cris_scan_prologue): Fix prologue scanning limit.
529 (cris_register_type): Update to reflect actual registers.
530 (cris_register_bytes_ok) Remove.
531 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
532 Remove set_gdbarch_deprecated_register_size,
533 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
534
77109804
AC
5352004-10-10 Andrew Cagney <cagney@gnu.org>
536
537 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
538 comment.
539
25652d4f
JB
5402004-10-10 Joel Brobecker <brobecker@gnat.com>
541
542 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
543
1e05a7bf
JB
5442004-10-10 Joel Brobecker <brobecker@gnat.com>
545
546 * mips-tdep.c (mips16_scan_prologue): Renames
547 mips16_heuristic_proc_desc. Update comment.
548 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
549 (heuristic_proc_desc): Update calls to the 2 functions above.
550
c68a4142
JB
5512004-10-10 Joel Brobecker <brobecker@gnat.com>
552
553 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
554 Update comments. Also immediately return empty cache when the start
555 address of our function could not be found.
556 (mips_insn32_frame_cache): Likewise.
557
0fce0821
JB
5582004-10-10 Joel Brobecker <brobecker@gnat.com>
559
560 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
561 (mips_insn16_frame_cache): Pass frame cache in call to
562 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
563 Remove code that became redundant as a consequence.
564 (mips32_heuristic_proc_desc): No longer compute a fake
565 procedure descriptor. Compute the full frame cache instead.
566 Some minor comment reformatting.
567
b672553e
JB
5682004-10-10 Jim Blandy <jimb@redhat.com>
569
570 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
571 reader, tracing bytecode stuff): Remove self.
572
9cc52bde
MK
5732004-10-10 Mark Kettenis <kettenis@gnu.org>
574
cc9784b6
MK
575 * sparc64-linux-tdep.c: Update copyright year. Don't include
576 "solib-svr4.h".
577 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
578 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
579 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
580
ee8aef23
MK
581 * sparc-linux-tdep.c: Update copyright year.
582 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
583 to struct frame_info *. Use safe_frame_unwind_memory instead of
584 deprecated_read_memory_nobpt.
585 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
586 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
587 changed signature of sparc_linux_sigtramp_start.
588 (sparc32_linux_pc_in_sigtramp): Remove function.
589 (sparc32_linux_sigtramp_p): New function.
590 (sparc32_linux_sigtramp_frame_sniffer): Use
591 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
592
bc73f8cc
MK
593 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
594 Remove function.
595 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
596
a2249542
MK
597 * ada-lang.c (lim_warning): Re-implement as a varargs function.
598 (decode_packed_array_type, value_subscript_packed)
599 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
600 argument in call to lim_warning.
601
9cc52bde
MK
602 * configure.in: Really disable the TUI if an enhanced curses
603 library isn't found.
604 * configure: Regenerate.
605
151fc45b
MK
6062004-10-09 Mark Kettenis <kettenis@gnu.org>
607
608 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
609 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
610 * config/i386/nm-nbsdaout.h: Remove file.
611 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
612 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
613 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
614 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
615 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
616 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
617 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
618 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
619 (ldd, ld_un, ld_2): Remove defines.
620 * config/i386/nm-obsd.h: Likewise.
621
375c0479
PH
6222004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
623
624 * ada-lex.l: Remove useless rule whose right-context clause
625 causes unreferenced static function warning for yyrealloc.
626 (ada_flex_use): Remove the artificial reference to yyrealloc.
627
c8e73a31
AC
6282004-10-08 Andrew Cagney <cagney@gnu.org>
629
630 * target.h (struct target_ops): Rename to_xfer_memory to
631 deprecated_xfer_memory.
632 * target.c: Update.
633 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
634 * wince.c: Update.
635 * win32-nat.c: Update.
636 * v850ice.c: Update.
637 * uw-thread.c: Update.
638 * thread-db.c: Update.
639 * sol-thread.c: Update.
640 * remote.c: Update.
641 * remote-vx.c: Update.
642 * remote-st.c: Update.
643 * remote-sim.c: Update.
644 * remote-sds.c: Update.
645 * remote-rdp.c: Update.
646 * remote-rdi.c: Update.
647 * remote-mips.c: Update.
648 * remote-m32r-sdi.c: Update.
649 * remote-e7000.c: Update.
650 * procfs.c: Update.
651 * ppc-bdm.c: Update.
652 * nto-procfs.c: Update.
653 * monitor.c: Update.
654 * linux-nat.c: Update.
655 * inftarg.c: Update.
656 * hpux-thread.c: Update.
657 * go32-nat.c: Update.
658 * gnu-nat.c: Update.
659 * exec.c: Update.
660 * corelow.c: Update.
661 * bsd-kvm.c: Update.
662 * aix-thread.c: Update.
663
aa869812
AC
6642004-10-08 Andrew Cagney <cagney@gnu.org>
665
666 * target.c (debug_target): Move to near start of file.
667 (target_stopped_data_address_p): Re-org logic, add casts.
668
8dcef9cf
MK
6692004-10-02 Mark Kettenis <kettenis@gnu.org>
670
671 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
672 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
673 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
674 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
675 New defines.
676
4aa7a7f5
JJ
6772004-10-08 Jeff Johnston <jjohnstn@redhat.com>
678
679 * target.h (to_stopped_data_address): Change prototype to
680 take a CORE_ADDR pointer and return an int.
681 * target.c (update_current_target): Change to_stopped_data_address
682 to match new prototype.
683 (debug_to_stopped_data_address): Change appropriately.
684 * breakpoint.c (bpstat_stop_status): Change call to
685 target_stopped_data_address to use new prototype.
686 * frv-tdep.c (frv_have_stopped_data_address): New function.
687 (frv_stopped_data_address): Change to new prototype and
688 functionality.
689 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
690 prototype and functionality.
691 (ia64_stopped_by_watchpoint): New function.
692 * i386-nat.c (i386_stopped_data_address): Change to new
693 prototype and functionality.
694 (i386_stopped_by_watchpoint): New function.
695 * remote.c (remote_stopped_data_address): Change to new prototype
696 and functionality.
697 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
698 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
699 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
700 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
701 new i386_stopped_by_watchpoint function.
702 (i386_stopped_by_watchpoint): New prototype.
703 (i386_stoppped_data_address): Change to new prototype.
704 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
705 new ia64_stopped_by_watchpoint function.
706 (ia64_stopped_by_watchpoint): New prototype.
707 (ia64_stopped_data_address): Ditto.
708
61ee279c
PH
7092004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
710
711 * ada-typeprint.c (ada_print_type): Use int_string for printing
712 modulus of modular type.
713 * ada-lang.h (ada_modulus): Change return type to unsigned.
714 * ada-lang.c (ada_language_arch_info): Correct type of
715 string_char_type.
716 (ada_modulus): Return unsigned result.
717 (ada_lookup_symbol): Remove user disambiguation and modify comment
718 accordingly.
719
7202004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
721
722 Committed by Paul Hilfinger.
723 * ada-lang.c (decode_packed_array): On big-endian targets,
724 left-justify the value if it comes with a modular type.
725
7262004-10-08 Joel Brobecker <brobecker@gnat.com>
727
728 Committed by Paul Hilfinger.
729 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
730 (is_name_suffix): Add support for "___JM" suffixes.
731 (ada_check_typedef): Renames ada_completed_type.
732 Update all users of CHECK_TYPEDEF, check_typedef, and
733 ada_complete_type to call ada_check_typedef.
734 * ada-typeprint.c: Likewise.
735 * ada-valprint.c: Likewise.
736
b6c25a56
CV
7372004-10-08 Corinna Vinschen <vinschen@redhat.com>
738
739 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
740
83ca6a46
NR
7412004-10-08 Nick Roberts <nickrob@snap.net.nz>
742
743 * MAINTAINERS: Update e-mail address.
744
1fd8cd20
DJ
7452004-10-07 Daniel Jacobowitz <dan@debian.org>
746
747 From Maciej W. Rozycki <macro@mips.com>:
748 * mips-tdep.c (mips32_next_pc): Check the register's contents,
749 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
750
cea15572
KI
7512004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
752
753 * m32r-tdep.c (decode_prologue): Support functions written
754 in assembler language. Recognize trap instructions as the
755 end of prologue.
756 (m32r_frame_unwind_cache): Ditto.
757 (m32r_skip_prologue): Extend search limit. Quit analyzing
758 prologue if pc's location is not readable.
759
23485554
PH
7602004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
761
762 * Makefile.in (.l.c): Do conversions of names of alloc and free
763 functions that are done for .y.c files, plus special one
764 for yy_flex_realloc. Also, correct missing-file tests here.
765 * ada-lex.l (malloc, free): Remove macros.
766 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
767 xrealloc.
768 (ada_flex_use): Dummy definition to remove warnings about unused
769 functions.
770 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
771 to suppress warning.
772
c0409442
CV
7732004-10-06 Corinna Vinschen <vinschen@redhat.com>
774
775 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
776 RETURN_VALUE.
777 (sh_return_value_fpu): Ditto for CPUs with FPU.
778 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
779 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
780 Install sh_return_value_nofpu resp. sh_return_value_fpu as
781 RETURN_VALUE functions.
782
9bed62d7
CV
7832004-10-06 Corinna Vinschen <vinschen@redhat.com>
784
785 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
786 (sh_pseudo_register_write): Ditto.
787
03131d99
CV
7882004-10-06 Corinna Vinschen <vinschen@redhat.com>
789
790 * sh-tdep.c (IS_MACL_STS): New define.
791 (IS_MOVI20): Ditto.
792 (IS_MACL_LDS): Ditto.
793 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
794 instructions in prologue.
795 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
796 instructions in epilogue.
797
da962468
CV
7982004-10-06 Corinna Vinschen <vinschen@redhat.com>
799
800 * sh-tdep.c (SH_NUM_REGS): Define as 67.
801 (sh_sh_register_name): Add eight empty register names.
802 (sh_sh3_register_name): Ditto.
803 (sh_sh3e_register_name): Ditto.
804 (sh_sh2e_register_name): Ditto.
805 (sh_sh2a_register_name): New function, defining SH2A register set.
806 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
807 in nofpu case.
808 (sh_sh_dsp_register_name): Add eight empty register names.
809 (sh_sh3_dsp_register_name): Ditto.
810 (sh_sh4_register_name): Ditto.
811 (sh_sh4_nofpu_register_name): Ditto.
812 (sh_sh4al_dsp_register_name): Ditto.
813 (sh2a_show_regs): New function.
814 (sh2a_nofpu_show_regs): New function.
815 (sh_sh2a_register_type): New function.
816 (do_bank_register_info): New function.
817 (sh_print_pseudo_register): Call do_bank_register_info.
818 Call sh_print_pseudo_register for valid "bank" register.
819 (sh_sh2a_register_sim_regno): New function.
820 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
821 Increment pseudo register count by one for all sh variants with
822 pseudo registers to accomodate pseudo bank register.
823 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
824 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
825 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
826 Increment pseudo register numbers.
827
1326e61b
CV
8282004-10-06 Corinna Vinschen <vinschen@redhat.com>
829
830 * dwarf2read.c (read_subroutine_type): Call make_function_type
831 instead of lookup_function_type.
832
146c42e3
JB
8332004-10-05 Jim Blandy <jimb@redhat.com>
834
835 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
836 (Previous change missed some uses.)
837
1df84f13
AC
8382004-10-05 Andrew Cagney <cagney@gnu.org>
839
840 * target.h (deprecated_child_ops): Rename child_ops.
841 * wince.c: Update copyright. Rename child_ops.
842 * win32-nat.c: Rename child_ops.
843 * target.c: Rename child_ops.
844 * rs6000-nat.c: Rename child_ops.
845 * linux-nat.c: Rename child_ops.
846 * infttrace.c: Rename child_ops.
847 * inftarg.c: Rename child_ops.
848 * infptrace.c: Rename child_ops.
849 * hppah-nat.c: Update copyright. Rename child_ops.
850 * hpux-thread.c: Update copyright. Rename child_ops.
851
21e3b9b9
DJ
8522004-10-05 Daniel Jacobowitz <dan@debian.org>
853
854 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
855
de83afe7
AC
8562004-10-05 Andrew Cagney <cagney@gnu.org>
857
858 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
859
10b3939b
DJ
8602004-10-05 Daniel Jacobowitz <dan@debian.org>
861
862 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
863 (die_ref_table): Remove.
864 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
865 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
866 the usage of this type.
867 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
868 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
869 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
870 (dwarf2_create_include_psymtab): Update comment.
871 (find_partial_die): Remove third argument. Remove unreachable call
872 to error ().
873 (dwarf2_find_containing_comp_unit): Update comments. Change one
874 assertion to an error. Remove an unreachable error.
875 (dwarf2_find_comp_unit): Update comments.
876 (type_at_offset): Remove dead code.
877 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
878 (store_in_ref_table): Add CU argument.
879 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
880 inter-compilation-unit references.
881 (load_full_comp_unit, process_full_comp_unit): New functions, based
882 on psymtab_to_symtab_1.
883 (psymtab_to_symtab_1): Use them.
884 (dwarf2_add_dependence): New function.
885 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
886 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
887 (partial_die_parent_scope, guess_structure_name): Update for changes
888 to find_partial_die.
889 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
890 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
891 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
892 (read_die_and_children): Update call to store_in_ref_table.
893 (do_free_die_list_cleanup): Remove.
894 (fixup_partial_die): Update for changes to find_partial_die.
895 (read_full_die): Handle queueing absolute references.
896 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
897 (dwarf2_attr, die_specification, die_type)
898 (die_containing_type, dwarf2_extension): Update calls to
899 follow_die_ref.
900 (dump_die): Update DW_FORM_ref* handling.
901 (dwarf2_get_ref_die_offset): Likewise.
902 (free_one_comp_unit): Release the dies list.
903 (dwarf2_mark_helper): New function.
904 (dwarf2_mark): Use it.
905
998bdd68
MK
9062004-10-05 Mark Kettenis <kettenis@jive.nl>
907
908 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
909 when writing to memory.
910
14588880
KI
9112004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
912
913 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
914 (m32r_extract_struct_value_address): Delete function.
915 (m32r_return_value): New function.
916 (m32r_gdbarch_init): Instead of store_return_value,
917 extract_return_value, deprecated_extract_struct_value_address
918 and deprecated_use_struct_convention, set return_value.
919
dd5e6932
DJ
9202004-10-03 Daniel Jacobowitz <dan@debian.org>
921
922 * dwarf2read.c (read_subrange_type): Add comment for variable
923 sized arrays.
924
7dc1ef8d
PH
9252004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
926
927 * Makefile.in (.l.c): Modify rule for compatibility with recent
928 versions of flex, and remove most command-line options.
929 * ada-lex.l: Add %options line in place of -I -i and -s command-line
930 options.
931
1f8173e6
PH
9322004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
933
934 Turn on initial Ada support (mainly expression evaluation).
935
936 * Makefile.in (SFILES): Remove ada-tasks.c.
937 (HFILES_NO_SRCDIR): Add ada-lang.h.
938 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
939 (YYOBJ): Add ada-exp.o.
940 (rule .l.c): Generalize to not mention ada.
941 * symtab.c: Include ada-lang.h.
942 (symbol_natural_name, symbol_demangled_name)
943 (symbol_search_name): Add Ada case.
944
cb85a953
AC
9452004-10-01 Andrew Cagney <cagney@gnu.org>
946
3f3db248
AC
947 * Makefile.in (COMMON_OBS): Add inf-child.o.
948 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
949 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
950 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
951 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
952 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
953 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
954 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
955 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
956 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
957 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
958 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
959 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
960 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
961
cb85a953
AC
962 * target.c (xfer_using_stratum): Change return type to LONGEST.
963 On each iteration offset, readbuf and writebuf.
964 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
965 partial_length, and read/modify/write predicate, update comments.
966 Pass buffer.word to ptrace write.
967
963a6417
PH
9682004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
969
970 * symfile.c (init_filename_language_table): Add extensions for
971 Ada.
972 * defs.h (enum language): Add language_ada.
973 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
974 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
975 (add_symbols_from_enclosing_procs): Make a no-op for now.
976 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
977 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
978 (find_line_in_linetable, find_next_line_in_linetable)
979 (read_all_symtabs, is_plausible_func_for_line)
980 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
981 (is_runtime_sym_defined, check_size): Remove declaration.
982 (function_name_from_pc, ada_translate_error_message)
983 (ada_lookup_minimal_symbol): Remove definition.
984 (ada_add_block_symbols): Remove useless label.
985 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
986 useless declaration.
987 (ada_is_exception_sym): Likewise.
988
9b32d526
KI
9892004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
990
991 Add m32r-linux support.
992 * configure.tgt: Add m32r*-*-linux*.
993 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
994 and m32r-linux-tdep.c.
995 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
996 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
997 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
998 m32r-linux-tdep.c.
999 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1000 config/m32r/linux.mh, config/m32r/linux.mt,
1001 config/m32r/nm-linux.h: New files.
1002
2de118d3
JB
10032004-09-30 Joel Brobecker <brobecker@gnat.com>
1004
1005 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1006 (mips32_fetch_instruction): Remove, unused.
1007
a9fe69d1
JB
10082004-09-30 Joel Brobecker <brobecker@gnat.com>
1009
1010 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1011 conditions that will always be true.
1012
bc8ffc12
MK
10132004-09-30 Mark Kettenis <kettenis@gnu.org>
1014
ba0cd111
MK
1015 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1016 (vaxbsd_fetch_inferior_registers): Rename from
1017 fetch_inferior_registers. Make static.
1018 (vaxbsd_store_inferior_registers): Rename from
1019 store_inferior_registers. Make static.
1020 (_initialize_vaxbsd_nat): Construct and add target vector.
1021 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1022 inftarg.o. Add inf-child.o and inf-ptrace.o.
1023 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1024 inftarg.o. Add inf-child.o and inf-ptrace.o.
1025 (NAT_FILE): Remove.
1026 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1027 inftarg.o. Add inf-child.o and inf-ptrace.o.
1028 (NAT_FILE): Remove.
1029 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1030
bc8ffc12
MK
1031 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1032 (m88kbsd_fetch_inferior_registers): Rename from
1033 fetch_inferior_registers. Make static.
1034 (m88kbsd_store_inferior_registers): Rename from
1035 store_inferior_registers. Make static.
1036 (_initialize_m88kbsd_nat): New prototype and function.
1037 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1038 inftarg.o. Add inf-child.o and inf-ptrace.o.
1039 (NAT_FILE): Remove.
1040 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1041
27394598
AC
10422004-09-30 Andrew Cagney <cagney@gnu.org>
1043
1044 * target.c (target_xfer_partial): New function.
1045 (target_read_memory_partial, target_write_memory_partial)
1046 (default_xfer_partial, target_read_partial, target_write_partial)
1047 (xfer_using_stratum): Use.
1048 (debug_to_xfer_partial): Delete function.
1049 (setup_target_debug): Do not override to_xfer_partial.
1050
74a4fe32
MK
10512004-09-30 Mark Kettenis <kettenis@chello.nl>
1052
1053 * fork-child.c: Update copyright year. Fix coding style.
1054
982526a1
MK
10552004-09-29 Mark Kettenis <kettenis@gnu.org>
1056
1057 * defs.h (msavestring, mstrsave): Remove prototypes.
1058 * utils.c (msavestring, mstrsave): Remove functions.
1059 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1060 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1061 of mstrsave.
1062 * source.c (find_and_open_source): Use xstrdup instead of
1063 mstrsave.
1064
b8eb5af0
AC
10652004-09-30 Andrew Cagney <cagney@gnu.org>
1066
0779438d
AC
1067 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1068 (inf_ptrace_xfer_memory): Delete.
1069 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1070 (target_read_memory, target_write_memory): Use xfer_using_stratum
1071 when target_xfer_partial_p.
1072 (debug_target): Move to start of file.
1073 (target_read_memory_partial, target_write_memory_partial): Use
1074 to_xfer_partial when target_xfer_partial_p.
1075
f929a579
AC
1076 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1077 inf_ptrace_xfer_memory with equivalent code.
1078 * inftarg.c (child_xfer_partial): When performing a write, pass
1079 writebuf to child_xfer_memory.
1080
b8eb5af0
AC
1081 * target.c (target_read_string): Use target_read_memory instead of
1082 target_xfer_memory.
1083
ee21b650
AC
10842004-09-29 Andrew Cagney <cagney@gnu.org>
1085
d3e05d0d
AC
1086 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1087 the address of status.
1088
ee21b650
AC
1089 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1090 (kill_inferior): Inline ptrace_wait call.
1091 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1092 * inftarg.c (child_wait): Inline ptrace_wait call.
1093
a182eed6
AC
1094 * target.h (struct target_ops): Delete field to_post_wait.
1095 (target_post_wait): Delete macro.
1096 (child_post_wait): Delete declaration.
1097 * target.c (update_current_target, update_current_target)
1098 (debug_to_post_wait, setup_target_debug): Delete functions and
1099 references.
1100 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1101 * inftarg.c (child_post_wait): Delete.
1102 (init_child_ops): Do not set to_post_wait.
1103 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1104 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1105 * inf-child.c (inf_child_post_wait): Delete.
1106 (inf_child_target): Do not set to_post_wait.
1107 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1108 (inf_ptrace_target): Do not set to_post_wait.
1109
ba0c540b
AC
1110 * wince.c (child_ops): Delete.
1111 * win32-nat.c (child_ops): Delete.
1112
81977402
AC
1113 * inftarg.c (inftarg_set_find_memory_regions)
1114 (inftarg_set_make_corefile_notes): Delete functions.
1115 (_initialize_linux_nat): Inline calls.
1116
5ac10fd1
AC
1117 * target.h (child_ops): Declare.
1118 * inftarg.c (child_ops): Move from here ...
1119 * target.c (child_ops): ... to here.
1120 * wince.c (child_ops): Delete extern declaration.
1121 * win32-nat.c (child_ops): Delete extern declaration.
1122 * linux-nat.c (child_ops): Delete extern declaration.
1123 * hpux-thread.c (child_ops): Delete extern declaration.
1124
663408c2 11252004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
1126
1127 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1128
0dad8a66
MK
11292004-09-28 Mark Kettenis <kettenis@gnu.org>
1130
1131 * configure.in: Only set host_makefile_frag when building a native
1132 debugger.
1133 * configure: Regenerate.
e8d74ed3
MK
1134
1135 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1136 for OpenBSD ELF.
1137
dba24537
AC
11382004-09-28 Andrew Cagney <cagney@gnu.org>
1139
e979516b
AC
1140 Problem identified by Paul Hilfinger.
1141 * Makefile.in (ada_lex_c): Define.
1142 (ada-lex.o): Delete rule.
1143
dba24537
AC
1144 * linux-proc.c: Delete file.
1145 * Makefile.in: Update.
1146 * config/sparc/linux64.mh (NATDEPFILES):
1147 * config/sparc/linux.mh (NATDEPFILES): Update.
1148 * config/s390/s390.mh (NATDEPFILES): Update.
1149 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1150 * config/powerpc/linux.mh (NATDEPFILES): Update.
1151 * config/pa/linux.mh (NATDEPFILES): Update.
1152 * config/mips/linux.mh (NATDEPFILES): Update.
1153 * config/m68k/linux.mh (NATDEPFILES): Update.
1154 * config/ia64/linux.mh (NATDEPFILES): Update.
1155 * config/i386/linux64.mh (NATDEPFILES): Update.
1156 * config/i386/linux.mh (NATDEPFILES): Update.
1157 * config/arm/linux.mh (NATDEPFILES): Update.
1158 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1159 * linux-nat.c: Update copyright. Include <sys/param.h>,
1160 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1161 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1162 (O_LARGEFILE): Possibly define.
1163 (_initialize_linux_nat, linux_proc_pending_signals)
1164 (add_line_to_sigset, linux_proc_xfer_memory)
1165 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1166 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1167 (struct linux_corefile_thread_data)
1168 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1169 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1170
d6b0e80f
AC
11712004-09-16 Andrew Cagney <cagney@gnu.org>
1172
1173 * lin-lwp.c: Delete file.
1174 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1175 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1176 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1177 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1178 (linux_nat_attach, detach_callback, linux_nat_detach)
1179 (resume_callback, resume_clear_callback, linux_nat_resume)
1180 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1181 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1182 (status_callback, running_callback, count_events_callback)
1183 (select_singlestep_lwp_callback, select_event_lwp_callback)
1184 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1185 (child_wait, stop_and_resume_callback, linux_nat_wait)
1186 (kill_callback, kill_wait_callback, linux_nat_kill)
1187 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1188 (linux_nat_xfer_memory, linux_nat_thread_alive)
1189 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1190 (_initialize_linux_nat): New functions.
1191 * Makefile.in: Update all dependencies.
1192 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1193 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1194 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1195 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1196 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1197 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1198 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1199 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1200 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1201 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1202 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1203 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1204 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1205
5a174d79
MK
12062004-09-27 Mark Kettenis <kettenis@gnu.org>
1207
2f604c28
MK
1208 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1209 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1210
5a174d79
MK
1211 * configure.in: Don't comment out NATDEPFILES in the generated
1212 Makefile if NAT_FILE is unset.
1213 * configure: Regenerate.
1214
b2ed1746
AC
12152004-09-27 Andrew Cagney <cagney@gnu.org>
1216
44cbf7b5
AC
1217 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1218 (insert_step_resume_breakpoint): Delete.
1219 (insert_step_resume_breakpoint_at_frame): New function.
1220 (insert_step_resume_breakpoint_at_sal): New function.
1221 (handle_inferior_event, step_into_function)
1222 (insert_step_resume_breakpoint): Simplify by using same.
1223
b2ed1746
AC
1224 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1225
3691b3be
MK
12262004-09-26 Mark Kettenis <kettenis@gnu.org>
1227
36f391e8
MK
1228 * fbsd-proc.c: Remove file.
1229 * Makefile.in (fbsd-proc.o): Remove dependency.
1230
771e236c
MK
1231 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1232 code together.
1233
3691b3be
MK
1234 * config/i386/nm-fbsd64.h: Remove file.
1235 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1236
6a5c78a3
MK
12372004-09-26 Mark Kettenis <kettenis@gnu.org>
1238
1239 * amd64-nat.h: Update copyright year.
1240 (amd64bsd_target): New prototype.
1241 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1242 (amd64bsd_target): New function.
1243 (amd64bsd_fetch_inferior_registers): Rename from
1244 fetch_inferior_registers. Make static.
1245 (amd64bsd_store_inferior_registers): Rename from
1246 store_inferior_registers. Make static.
1247 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1248 (_initialize_amd64fbsd_nat): Construct and add target vector.
1249 * amd64nbsd-nat.o: Include "target.h".
1250 (_initialize_amd64nbsd_nat): Construct and add target vector.
1251 * amd64obsd-nat.c: Include "target.h".
1252 (_initialize_amd64obsd_nat): Construct and add target vector.
1253 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1254 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1255 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1256 fbsd-nat.o.
1257 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1258 Remove infptrace.o and inftarg.o. Add inf-child.o and
1259 inf-ptrace.o.
1260 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1261 (amd64obsd-nat.o): Update dependencies.
1262
27acbe61
MK
12632004-09-25 Mark Kettenis <kettenis@gnu.org>
1264
509a5e7d
MK
1265 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1266 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1267 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1268 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1269 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1270
6e1e94ea
MK
1271 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1272 Inline attach call.
1273 (inf_ptrace_detach): Inline detach call.
1274
8b9cf735
MK
1275 * configure.in: Check for waddstr instead of mvwaddstr when
1276 searching for curses library. Check for wborder.
1277 * configure, config.in: Regenerate.
1278 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1279 available.
1280
27acbe61
MK
1281 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1282
b96ec7ac
AC
12832004-09-24 Robert Picco <Robert.Picco@hp.com>
1284
1285 Committed by Andrew Cagney.
1286 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1287 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1288 configuration.
1289 (fetch_register_using_p): Implement 'p' packet. Based on code by
1290 Fernando Nasser.
1291 (remote_fetch_registers): Call fetch_register_using_p.
1292 (init_all_packet_configs, show_remote_cmd)
1293 (_initialize_remote): Add p-packet.
1294
62ece330
MK
12952004-09-24 Mark Kettenis <kettenis@gnu.org>
1296
1297 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1298 instead of call_ptrace. Call wait directly instead of
1299 ptrace_wait.
1300 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1301 (inf_ptrace_wait): Inline ptrace_wait call.
1302
00937274
PH
13032004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1304
1305 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1306 rolled back instead.
1307
3f2c7a45
PH
13082004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1309
1310 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1311 the new argument order.
1312
b6fcb393
CV
13132004-09-23 Corinna Vinschen <vinschen@redhat.com>
1314
1315 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1316 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1317 (struct gdbarch_tdep): Remove.
1318 (struct xstormy16_frame_cache): New frame cache structure.
1319 (xstormy16_register_byte, xstormy16_register_raw_size)
1320 (xstormy16_reg_virtual_type, xstormy16_register_type)
1321 (xstormy16_push_arguments, xstormy16_push_return_address)
1322 (xstormy16_pop_frame, xstormy16_store_struct_return)
1323 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1324 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1325 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1326 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1327 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1328 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1329 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1330 (xstormy16_extract_return_value, xstormy16_store_return_value):
1331 Regcachify. Drop useless struct convention handling.
1332 (xstormy16_register_type, xstormy16_return_value)
1333 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1334 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1335 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1336 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1337 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1338 (xstormy16_unwind_dummy_id) : New functions.
1339 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1340 of xstormy16_scan_prologue.
1341 (xstormy16_frame_unwind): New frame_unwind structure.
1342 (xstormy16_frame_base): New frame_base structure.
1343 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1344 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1345
1285b746
MK
13462004-09-22 Mark Kettenis <kettenis@gnu.org>
1347
1348 * language.c (language_gdbarch_post_init): Fix off-by one error.
1349
1c379e20
DJ
13502004-09-21 Daniel Jacobowitz <dan@debian.org>
1351
1352 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1353 (struct dwarf2_offset_and_type): New.
1354 (set_die_type, reset_die_and_siblings_types, get_die_type)
1355 (offset_and_type_hash, offset_and_type_eq): New functions.
1356 (read_structure_type, read_enumeration_type, read_array_type)
1357 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1358 (read_tag_reference_type, read_tag_const_type)
1359 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1360 (read_typedef, read_base_type, read_subrange_type): Use
1361 set_die_type.
1362
ae038cb0
DJ
13632004-09-20 Daniel Jacobowitz <dan@debian.org>
1364
1365 * Makefile.in (dwarf2read.o): Update dependencies.
1366 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1367 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1368 and read_in_chain.
1369 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1370 mark, and has_form_ref_addr.
1371 (struct dwarf2_per_cu_data): New.
1372 (dwarf2_max_cache_age): New.
1373 (dwarf2_build_psymtabs_hard): Free cached compilation units
1374 after loading. Create and manage the list of compilation units.
1375 Remove unnecessary NULL initialization. Fix indentation.
1376 (psymtab_to_symtab_1): Initialize all of CU.
1377 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1378 (find_partial_die): Use dwarf2_find_containing_comp_unit
1379 and load_comp_unit.
1380 (free_stack_comp_unit): Update comments. Clear the per-cu
1381 pointer. Handle aging.
1382 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1383 (age_cached_comp_units, free_one_cached_comp_unit)
1384 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1385 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1386 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1387 (show_dwarf2_cmd): New.
1388 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1389 and "maint show dwarf2 max-cache-age".
1390 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1391 externs.
1392 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1393 global.
1394
987504bb
JJ
13952004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1396
1397 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1398 and dwarf2_cu struct pointer as arguments. Change function to use
1399 obstack if provided and use dwarf2_cu to determine language-specific
1400 separator.
1401 (partial_die_parent_scope): Change comment to include java. Use
1402 new version of typename_concat instead of obconcat.
1403 (partial_die_full_name): Use typename_concat.
1404 (read_namespace): Ditto.
1405 (read_enumeration_type): Use typename_concat instead of obconcat.
1406 (new_symbol): Ditto.
1407 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1408 (guess_structure_name): Ditto.
1409 (read_subroutine_type): Ditto.
1410 (read_structure_type): Ditto.
1411 (is_vtable_name): Add Java support.
1412 (determine_class_name): Switch to new typename_concat call.
1413 (determine_prefix): Switch to new typename_concat call.
1414 * jv-exp.y (FuncStart): New pattern.
1415 (MethodInvocation): Add support for simple function calls. Change
1416 warning message for other forms of inferior call currently not
1417 supported.
1418 * valarith.c (value_subscript): Treat an array with upper-bound
1419 of -1 as unknown size.
1420
d9c8471e
DJ
14212004-09-20 Daniel Jacobowitz <dan@debian.org>
1422
1423 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1424 (lookup_partial_symtab): Use symtab_to_fullname.
1425
d73f140a
JB
14262004-09-19 Jim Blandy <jimb@redhat.com>
1427
1428 * minsyms.c (lookup_minimal_symbol): Doc fix.
1429
adbef1f0
AC
14302004-09-20 Andrew Cagney <cagney@gnu.org>
1431
1432 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1433 CHILD_RESUME.
1434 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1435 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1436 KILL_INFERIOR.
1437 * infptrace.c: Update.
1438
d092d1a2
DJ
14392004-09-19 Daniel Jacobowitz <dan@debian.org>
1440
1441 * symtab.c (output_source_filename): Mark first argument as const.
1442 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1443 for "info sources" output.
1444
86d9e1d7
MK
14452004-09-20 Mark Kettenis <kettenis@gnu.org>
1446
1447 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1448 <machine/vmparam.h>.
1449 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1450 (register_u_addr): Remove prototype.
1451
9a6c8ef4
MK
14522004-09-19 Mark Kettenis <kettenis@gnu.org>
1453
9692934b
MK
1454 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1455 (i386bsd_fetch_inferior_registers): Rename from
1456 fetch_inferior_registers. Make static.
1457 (i386bsd_store_inferior_registers): Rename from
1458 store_inferior_registers. Make static.
1459 (i386bsd_target): New function.
1460 * i386bsd-nat.h: New file.
1461 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1462 "i386bsd-nat.h".
1463 (i386fbsd_resume): Rename from child_resume. Make static.
1464 (_initialize_i386fbsd_nat): Construct and add target vector.
1465 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1466 (_initialize_i386nbsd_nat): Construct and add target vector.
1467 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1468 Remove defines.
1469 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1470 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1471 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1472 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1473 (LOADLIBES): New variable.
1474 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1475 inf-ptrace.o. Remove inftarg.o.
1476 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1477 inf-ptrace.o. Remove inftarg.o.
1478 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1479 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1480 (LOADLIBES): New variable.
1481 * Makefile.in (i386bsd_nat_h): New variable.
1482 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1483 dependencies.
1484
3510d1f2
MK
1485 * sparc64nbsd-tdep.c: Include "objfiles.h".
1486 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1487 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1488 svr4_lp64_fetch_link_map_offsets.
1489 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1490 "nbsd-tdep.h".
1491 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1492 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1493 svr4_lp64_fetch_link_map_offsets.
1494 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1495 dependencies.
1496
578c1c03
MK
1497 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1498 * fbsd-nat.h: New file.
1499 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1500 (fbsd_nat_h): New variable.
1501 (fbsd-nat.o): New dependency.
1502
7a7b73b7
MK
1503 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1504 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1505
9a6c8ef4
MK
1506 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1507 comment.
1508
72d5681a
PH
15092004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1510
1511 * ada-exp.y (type_int): New function to add layer of abstraction
1512 around references to expression types.
1513 (type_long): Ditto.
1514 (type_long_long): Ditto.
1515 (type_float): Ditto.
1516 (type_double): Ditto.
1517 (type_long_double): Ditto.
1518 (type_char): Ditto.
1519 (type_system_address): Ditto.
1520 (simple_exp): Use type_* functions in place of builtin_*
1521 variables.
1522 (exp): Ditto.
1523 (write_var_from_name): Ditto.
1524 (write_object_renaming): Ditto.
1525 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1526 declaration.
1527 (build_ada_types): Remove, replacing with...
1528 (ada_language_arch_info): New function to initialize primitive
1529 type vector in language_arch_info.
1530 (ada_array_length): Remove use of builtin_type_ada_int.
1531 (value_pos_atr): Ditto.
1532 (ada_evaluate_subexp): Ditto.
1533 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1534 builtin_type_ada_long_long, builtin_type_ada_char,
1535 builtin_type_ada_float, builtin_type_ada_double,
1536 builtin_type_ada_long_double, builtin_type_ada_natural,
1537 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1538 (ada_builtin_types): Remove.
1539 (ada_language_defn): Remove entries for la_builtin_type_vector and
1540 string_char_type and use ada_language_arch_info.
1541 (_initialize_ada_language): Do type-vector initialization along
1542 the lines of c-lang.c.
1543 (ada_create_fundamental_type): Break up line.
1544 (ada_dump_symtab): Remove unused function.
1545 (enum ada_primitive_types): Define.
1546 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1547 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1548 builtin_type_ada_float, builtin_type_ada_double,
1549 builtin_type_ada_long_double, builtin_type_ada_natural,
1550 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1551 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1552 (processInt): Ditto.
1553 (processReal): Ditto.
1554 (name_lookup): Ditto.
1555 * ada-typeprint.c (print_range): Use builtin_type_int, not
1556 builtin_type_ada_int.
1557
4f0be353
MK
15582004-09-18 Mark Kettenis <kettenis@gnu.org>
1559
30b0e2d8
MK
1560 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1561
4f0be353
MK
1562 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1563 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1564 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1565 * configure.in: Improve checks for curses library by checking for
1566 mvwaddstr instead of initscr. Drop HP curses in favour of
1567 standard curses on HP-UX.
1568 * configure: Regenerated.
1569
72d5681a 15702004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
1571
1572 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1573 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1574 Minor formatting changes.
1575 (empty_array): Slight rewrite for formatting.
1576 (emit_char,parse,ada_language_defn,build_ada_types,
1577 ada_is_exception_sym, _initialize_ada_language): Move
1578 definitions around.
1579 (ada_dump_symtab): Remove unused definition.
1580 (ada_maybe_exception_partial_symbol): Remove unused definition.
1581
1c8c7407
AC
15822004-09-16 Andrew Cagney <cagney@gnu.org>
1583
7681f339
AC
1584 * inf-child.c: Include "gdb_string.h".
1585 (inf_child_core_file_to_sym_file): Delete.
1586 (inf_child_target): Set to_fetch_registers and to_store_registers.
1587 * inf-ptrace.c: Include "gdb_string.h".
1588 * Makefile.in: Update all dependencies.
1589
1c8c7407
AC
1590 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1591 problem.
1592
65596487
JB
15932004-09-14 Joel Brobecker <brobecker@gnat.com>
1594
1595 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1596 call to heuristic_proc_desc. Remove code that became redundant
1597 as a consequence.
1598 (read_next_frame_reg): Remove special case for SP_REGNUM.
1599 (set_reg_offset): Fix small typo.
1600 (reset_saved_regs): New procedure.
1601 (mips32_heuristic_proc_desc): No longer compute a fake
1602 procedure descriptor. Compute the full frame cache instead.
1603 Some minor comment reformatting.
1604
95575b2e
AC
16052004-09-14 Andrew Cagney <cagney@gnu.org>
1606
f200c492
AC
1607 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1608 maintainer.
1609
95575b2e
AC
1610 * thread-db.c (thread_db_new_objfile): Assume that there is a
1611 child process.
1612
69657671
JB
16132004-09-13 Jim Blandy <jimb@redhat.com>
1614
1615 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1616 so that its storage isn't referenced after its lifetime ends.
1617
6c4182dd
JB
1618 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1619 and never assigned to. Delete it, and the 'if (use_buffer)'
1620 clauses. Delete 'raw_buffer', since it is now unused.
1621
ee31a58d
AC
16222004-09-13 Andrew Cagney <cagney@gnu.org>
1623
2c0fc042
AC
1624 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1625 * configure: Re-generate.
1626 * nlm/Makefile.in (TAGS): Update.
1627 * Makefile.in (TAGS): Update.
1628 * config/vax/nbsd.mt (TM_FILE): Update.
1629 * config/sparc/vxworks.mt (TM_FILE): Update.
1630 * config/sparc/sol2.mt (TM_FILE): Update.
1631 * config/sparc/sol2-64.mt (TM_FILE): Update.
1632 * config/sparc/obsd64.mt (TM_FILE): Update.
1633 * config/sparc/obsd.mt (TM_FILE): Update.
1634 * config/sparc/nbsd64.mt (TM_FILE): Update.
1635 * config/sparc/nbsd.mt (TM_FILE): Update.
1636 * config/sparc/linux64.mt (TM_FILE): Update.
1637 * config/sparc/linux.mt (TM_FILE): Update.
1638 * config/sparc/fbsd.mt (TM_FILE): Update.
1639 * config/sh/wince.mt (TM_FILE): Update.
1640 * config/sh/nbsd.mt (TM_FILE): Update.
1641 * config/sh/linux.mt (TM_FILE): Update.
1642 * config/sh/embed.mt (TM_FILE): Update.
1643 * config/s390/s390.mt (TM_FILE): Update.
1644 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1645 * config/rs6000/rs6000.mt (TM_FILE): Update.
1646 * config/rs6000/aix4.mt (TM_FILE): Update.
1647 * config/powerpc/vxworks.mt (TM_FILE): Update.
1648 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1649 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1650 * config/powerpc/obsd.mt (TM_FILE): Update.
1651 * config/powerpc/nbsd.mt (TM_FILE): Update.
1652 * config/powerpc/linux.mt (TM_FILE): Update.
1653 * config/powerpc/aix.mt (TM_FILE): Update.
1654 * config/pa/obsd.mt (TM_FILE): Update.
1655 * config/pa/linux.mt (TM_FILE): Update.
1656 * config/pa/hppahpux.mt (TM_FILE): Update.
1657 * config/pa/hppa64.mt (TM_FILE): Update.
1658 * config/pa/hppa.mt (TM_FILE): Update.
1659 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1660 * config/mips/wince.mt (TM_FILE): Update.
1661 * config/mips/vxmips.mt (TM_FILE): Update.
1662 * config/mips/nbsd.mt (TM_FILE): Update.
1663 * config/mips/linux.mt (TM_FILE): Update.
1664 * config/mips/irix6.mt (TM_FILE): Update.
1665 * config/mips/irix5.mt (TM_FILE): Update.
1666 * config/mips/embed.mt (TM_FILE): Update.
1667 * config/m68k/vxworks68.mt (TM_FILE): Update.
1668 * config/m68k/st2000.mt (TM_FILE): Update.
1669 * config/m68k/os68k.mt (TM_FILE): Update.
1670 * config/m68k/obsd.mt (TM_FILE): Update.
1671 * config/m68k/nbsd.mt (TM_FILE): Update.
1672 * config/m68k/monitor.mt (TM_FILE): Update.
1673 * config/m68k/linux.mt (TM_FILE): Update.
1674 * config/m68k/cisco.mt (TM_FILE): Update.
1675 * config/ia64/linux.mt (TM_FILE): Update.
1676 * config/ia64/aix.mt (TM_FILE): Update.
1677 * config/ia64/ia64.mt (TM_FILE): Update.
1678 * config/i386/vxworks.mt (TM_FILE): Update.
1679 * config/i386/obsd64.mt (TM_FILE): Update.
1680 * config/i386/obsd.mt (TM_FILE): Update.
1681 * config/i386/nto.mt (TM_FILE): Update.
1682 * config/i386/nbsd64.mt (TM_FILE): Update.
1683 * config/i386/nbsd.mt (TM_FILE): Update.
1684 * config/i386/linux64.mt (TM_FILE): Update.
1685 * config/i386/linux.mt (TM_FILE): Update.
1686 * config/i386/i386sol2.mt (TM_FILE): Update.
1687 * config/i386/i386lynx.mt (TM_FILE): Update.
1688 * config/i386/fbsd64.mt (TM_FILE): Update.
1689 * config/i386/fbsd.mt (TM_FILE): Update.
1690 * config/i386/cygwin.mt (TM_FILE): Update.
1691 * config/h8300/h8300.mt (TM_FILE): Update.
1692 * config/frv/frv.mt (TM_FILE): Update.
1693 * config/cris/cris.mt (TM_FILE): Update.
1694 * config/arm/wince.mt (TM_FILE): Update.
1695 * config/arm/nbsd.mt (TM_FILE): Update.
1696 * config/arm/linux.mt (TM_FILE): Update.
1697 * config/arm/embed.mt (TM_FILE): Update.
1698 * config/alpha/nbsd.mt (TM_FILE): Update.
1699 * config/alpha/fbsd.mt (TM_FILE): Update.
1700 * config/alpha/alpha.mt (TM_FILE): Update.
1701 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1702 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1703
362646f5
AC
1704 Eliminate event_loop_p, always has the value 1.
1705 * defs.h (event_loop_p): Delete macro.
1706 * breakpoint.c (until_break_command): Simplify.
1707 * utils.c (prompt_for_continue): Simplify.
1708 * tracepoint.c (read_actions): Simplify.
1709 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1710 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1711 (set_prompt, init_main): Simplify.
1712 (init_signals, disconnect): Delete, unused.
1713 * remote.c (remote_async_resume)
1714 (extended_remote_async_create_inferior): Simplify.
1715 * mi/mi-interp.c (mi_input): Delete, unused.
1716 (mi_interpreter_resume, mi_command_loop): Simplify.
1717 * interps.c (current_interp_command_loop): Simplify.
1718 * infrun.c (proceed): Simplify.
1719 * infcmd.c (run_command, continue_command, step_1, jump_command)
1720 (until_command, advance_command, finish_command)
1721 (interrupt_target_command): Simplify.
1722 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1723
ee31a58d
AC
1724 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1725 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1726 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1727 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1728 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1729 * mips-tdep.c (mips_dump_tdep): Do not print same.
1730
b7ffc4a8
AC
17312004-09-12 Andrew Cagney <cagney@gnu.org>
1732
2bfb72ee
AC
1733 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1734 const.
1735 * Makefile.in (valprint.o): Delete explict rule.
1736
4f17c3c1
AC
1737 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1738 reported by Dave Anderson.
1739
f810308b
AC
1740 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1741
b7ffc4a8
AC
1742 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1743
28b41c52
AC
17442004-09-12 Salvador E. Tropea <set@users.sf.net>
1745 Andrew Cagney <cagney@gnu.org>
1746
1747 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1748 (mi_cmd_data_list_register_values)
1749 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1750 the register number computation.
1751
5bf970f9
AC
17522004-09-12 Andrew Cagney <cagney@gnu.org>
1753
1754 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1755 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1756 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1757 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1758 target.
1759 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1760 inf-ptrace.o and inf-child.o.
1761 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1762 * Makefile.in: Update dependencies.
1763
0759e0bf
AC
17642004-09-11 Andrew Cagney <cagney@gnu.org>
1765
1766 * language.c (hex_string, hex_string_custom): Move from here ...
1767 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1768 (CELLSIZE): Increase to 50.
1769 * language.h (hex_string, hex_string_custom): Move from here ...
1770 * defs.h: ... to here.
1771 * Makefile.in: Update all dependencies.
1772
bb599908
PH
17732004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1774
1775 * language.c (local_hex_format_custom): Remove.
1776 (local_hex_string): Rename to hex_string, use C format, and move to
1777 utils.c
1778 (local_hex_string_custom): Rename to hex_string_custom and change
1779 interface. Now uses C format. Move to utils.c
1780 (local_octal_format_custom): Remove.
1781 (local_decimal_format_custom): Remove.
1782 (unknown_language_defn): Remove language-specific number
1783 formatting entries.
1784 (auto_language_defn): Ditto.
1785 (local_language_defn): Ditto.
1786 * language.h (struct language_format_info): Delete declaration.
1787 (struct language_defn): Remove language_format_info fields
1788 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1789 (local_binary_format): Remove macro.
1790 (local_binary_format_prefix): Remove macro.
1791 (local_binary_format_specifier): Remove macro.
1792 (local_binary_format_suffix): Remove macro.
1793 (local_octal_format): Remove macro.
1794 (local_octal_format_prefix): Remove macro.
1795 (local_octal_format_specifier): Remove macro.
1796 (local_octal_format_suffix): Remove macro.
1797 (local_decimal_format): Remove macro.
1798 (local_decimal_format_prefix): Remove macro.
1799 (local_decimal_format_specifier): Remove macro.
1800 (local_decimal_format_suffix): Remove macro.
1801 (local_hex_format): Remove macro.
1802 (local_hex_format_prefix): Remove macro.
1803 (local_hex_format_specifier): Remove macro.
1804 (local_hex_format_suffix): Remove macro.
1805 (local_decimal_format_custom): Remove.
1806 (local_octal_format_custom): Remove.
1807 (local_hex_format_custom): Remove.
1808 (local_hex_string): Rename to hex_string and move to defs.h.
1809 (local_hex_string_custom): Rename to hex_string_custom, change
1810 interface, and move to defs.h.
1811 * utils.c: (int_string): New function.
1812 (hex_string): New function (from language.c).
1813 (hex_string_custom): New function (from language.c).
1814 (octal2str): New function.
1815 (decimal2str): Add width parameter.
1816 (paddr_u): Use new decimal2str interface.
1817 (paddr_d): Ditto.
1818 * defs.h (hex_string): Declare.
1819 (hex_string_custom): Declare.
1820 (int_string): Declare.
1821 * printcmd.c (print_scalar_formatted): Remove localized binary
1822 formatting.
1823 * valprint.c (print_longest): Use int_string.
1824 (print_floating): Use C hex format.
1825 (print_hex_chars): Ditto.
1826 (print_binary_chars): Remove language-specific formatting.
1827 (print_octal_chars): Use C octal format.
1828 (print_decimal_chars): Delocalize format.
1829 (print_decimal): Remove.
1830 * ada-lang.c (ada_language_defn): Remove language-specific number
1831 formatting entries.
1832 * p-lang.c (pascal_language_defn): Ditto.
1833 * c-lang.c (c_language_defn): Ditto.
1834 (cplus_language_defn): Ditto.
1835 (asm_language_defn): Ditto.
1836 (minimal_language_defn): Ditto.
1837 * f-lang.c (f_language_defn): Ditto.
1838 * jv-lang.c (java_language_defn): Ditto.
1839 * m2-lang.c (m2_language_defn): Ditto.
1840 * scm-lang.c (scm_language_defn): Ditto.
1841 * objc-lang.c (objc_language_defn): Ditto.
1842 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1843 new interface.
1844 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1845 * ui-out.c (ui_out_field_core_addr): Ditto.
1846 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1847 * exec.c (print_section_info): Ditto.
1848 * i387-tdep.c (print_i387_status_word): Ditto.
1849 (print_i387_control_word): Ditto.
1850 (i387_print_float_info): Ditto.
1851 * maint.c (maint_print_section_info): Ditto.
1852 * solib.c (info_sharedlibrary_command): Ditto.
1853 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1854 * symtab.c (print_msymbol_info): Ditto.
1855 * tracepoint.c (tracepoints_info): Ditto.
1856 * solib-frv.c (lm_base): Ditto.
1857 (frv_current_sos): Ditto.
1858 (enable_break2): Ditto.
1859 (enable_break): Ditto.
1860 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1861 (process_one_symbol): Ditto.
1862 * infcmd.c (program_info): Ditto.
1863 * mdebugread.c (parse_partial_symbols): Ditto.
1864 * symfile.c (add_symbol_file_command): Ditto.
1865 * cli/cli-cmds.c (edit_command): Ditto.
1866 (list_command): Ditto.
1867 * infcall.c (call_function_by_hand): Ditto.
1868 * remote-vx.c (vx_run_files_info): Ditto.
1869 (vx_wait): Ditto.
1870 (vx_attach): Ditto.
1871 (vx_detach): Ditto.
1872 (vx_kill): Ditto.
1873 * aix-thread.c (pdc_symbol_addrs): Ditto.
1874 (pdc_read_regs): Ditto.
1875 (pdc_write_regs): Ditto.
1876 (pdc_read_data): Ditto.
1877 (pdc_write_data): Ditto.
1878 * d10v-tdep.c (display_trace): Ditto.
1879 * rs6000-nat.c (find_toc_address): Ditto.
1880 * aix-thread.c: Don't include language.h.
1881 * buildsym.c: Ditto.
1882 * dbxread.c: Ditto.
1883 * mdebugread.c: Ditto.
1884 * rs6000-nat.c: Ditto.
1885 * buildsym.c (make_blockvector): Use renamed hex_string.
1886
33f2d567
JM
18872004-09-10 Jason Molenda (jmolenda@apple.com)
1888
1889 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1890 chars after 'if' or 'while' commands in user-defined commands.
1891
7b90c3f9
JB
18922004-09-08 Jim Blandy <jimb@redhat.com>
1893
1894 Fix bug reported and analyzed by Olivier Crete:
1895 * symfile.c (copy_section_addr_info): New function.
1896 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1897 original set of address arguments, instead of handwritten code
1898 that uses one length to allocate and a different length to
1899 initialize. Use make_cleanup_free_section_addr_info.
1900 * symfile.h (copy_section_addr_info): New declaration.
1901 * utils.c: #include "symfile.h".
1902 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1903 New functions.
1904 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1905 * Makefile.in (utils.o): Update dependencies.
1906
b26a6851
AC
19072004-09-08 Andrew Cagney <cagney@gnu.org>
1908
1909 * thread-db.c (keep_thread_db): Delete.
1910 (thread_db_new_objfile, thread_db_create_inferior)
1911 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1912
be24b061
MK
19132004-09-08 Mark Kettenis <kettenis@gnu.org>
1914
f6792ef4
MK
1915 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1916 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1917 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1918 (i386_frameless_signal_p): Remove prototype.
1919 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1920 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1921 I386_SSE_NUM_REGS.
1922 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1923 instead of FP0_REGNUM.
1924 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1925 of FP0_REGNUM and FPC_REGNUM.
1926
eeefdaa7
MK
1927 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1928 (sunos_solib_create_inferior_hook): Don't call
1929 sunos_relocate_main_executable.
1930
be24b061
MK
1931 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1932 solib_svr4_fetch_link_map_offsets to
1933 svr4_ilp32_fetch_link_map_offsets.
1934 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1935 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1936 svr4_ilp32_fetch_link_map_offsets.
1937 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1938
7c679d16
JB
19392004-09-07 Jim Blandy <jimb@redhat.com>
1940
1941 * frame.h (frame_register): Doc fix.
1942
1f04aa62
AC
19432004-09-07 Andrew Cagney <cagney@gnu.org>
1944
1945 * vx-share/wait.h: Delete #ifdef USG.
1946 * utils.c (request_quit): Ditto.
1947 * tui/tui.c (tui_reset): Ditto.
1948 * remote.c: Ditto.
1949 * remote-sds.c: Ditto.
1950 * remote-rdi.c: Ditto.
1951 * mdebugread.c: Ditto.
1952 * m68klinux-nat.c: Ditto.
1953 * infttrace.c: Ditto.
1954 * infptrace.c: Ditto.
1955 * i386v-nat.c: Ditto.
1956 * exec.c: Ditto.
1957 * dbxread.c: Ditto.
1958 * core-aout.c: Ditto.
1959
90edbfbc
JB
19602004-09-05 Joel Brobecker <brobecker@gnat.com>
1961
1962 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1963 heuristic_proc_desc.
1964 (mips_insn32_frame_cache): Likewise.
1965
01f4bf2b
JB
19662004-09-04 Joel Brobecker <brobecker@gnat.com>
1967
1968 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1969 left behind by error.
1970
8511a048
JB
19712004-09-04 Joel Brobecker <brobecker@gnat.com>
1972
1973 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1974 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1975
649dfe9f
JB
19762004-09-04 Joel Brobecker <brobecker@gnat.com>
1977
1978 * config/rs6000/xm-aix4.h: Remove this file.
1979 * config/rs6000/aix4.mh (XM_FILE): Delete.
1980
6e50f889
JB
19812004-09-04 Joel Brobecker <brobecker@gnat.com>
1982
1983 * config/rs6000/xm-rs6000.h: Remove this file.
1984 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1985
b8c4aece
AC
19862004-09-03 Andrew Cagney <cagney@gnu.org>
1987
fb603883
AC
1988 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1989 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1990 only use.
1991
c9343fd1
AC
1992 * mips-tdep.c (temp_saved_regs): Delete.
1993 (set_reg_offset): Replace saved_regs parameter with this_cache.
1994 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1995 (mips32_heuristic_proc_desc): Add this_cache parameter.
1996 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1997 (after_prologue): Pass a NULL this_cache.
1998
9733cfe1
AC
1999 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2000 non-kernel trap prologues.
2001
0d5febcc
AC
2002 * mips-tdep.c (find_proc_desc): Delete function.
2003 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2004 simplify.
2005 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2006 mips_insn32_frame_cache.
2007
9733cfe1 2008 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
2009 Simplify as NEXT_FRAME is NULL.
2010 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2011
177f84a3
AC
2012 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2013 local variable.
2014 (mips_skip_prologue): Update.
2015
465f7520
AC
2016 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2017 "cur_frame" parameter.
177f84a3
AC
2018 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2019 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 2020
e38b8658
AC
2021 * config/vax/nm-obsd.h: Delete file.
2022 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2023 * config/vax/nm-nbsd.h: Delete file.
2024 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2025 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2026 * config/sh/nm-nbsd.h: Delete file.
2027 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2028 * config/rs6000/nm-rs6000ly.h: Delete file.
2029 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2030 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2031 * config/powerpc/nm-obsd.h: Delete file.
2032 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2033 * config/powerpc/nm-nbsd.h: Delete file.
2034 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2035 * config/pa/nm-obsd.h: Delete file.
2036 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2037 * config/mips/nm-nbsd.h: Delete file.
2038 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2039 * config/m88k/nm-obsd.h: Delete file.
2040 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2041 * config/m68k/nm-nbsd.h: Delete file.
2042 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2043 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2044 * config/i386/nm-nbsd.h: Delete file.
2045 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2046 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2047 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2048 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2049 * config/i386/nm-i386lynx.h: Delete file.
2050 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2051 * config/arm/nm-nbsd.h: Delete file.
2052 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2053 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2054
be1ed680
AC
2055 * config/i386/tm-fbsd.h: Delete file.
2056 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2057 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2058
4b392b26
AC
2059 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2060 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2061 * config/rs6000/aix4.mt (TM_FILE): Set to
2062 config/rs6000/tm-rs6000.h.
2063 * config/powerpc/tm-ppc-aix.h: Delete file.
2064 * config/powerpc/aix.mt (TM_FILE): Set to
2065 config/rs6000/tm-rs6000.h.
2066 * config/m68k/tm-linux.h: Delete file.
2067 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2068 * config/i386/tm-linux64.h: Delete file.
2069 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2070 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2071
f3219c75
AC
2072 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2073 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2074 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2075 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2076 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2077 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2078 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2079 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2080 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2081
b8c4aece
AC
2082 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2083 gdb_host_cpu.
2084
8ac2e020
JB
20852004-09-02 Joel Brobecker <brobecker@gnat.com>
2086
2087 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2088 Minor reformatting. Some code factoring.
2089
c185a355
AC
20902004-09-02 Andrew Cagney <cagney@gnu.org>
2091
63f22f0d
AC
2092 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2093 * config/vax/tm-nbsd.h: Delete file.
2094 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2095 * config/sparc/tm-vxworks.h: Delete file.
2096 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2097 * config/sparc/tm-nbsd.h: Delete file.
2098 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2099 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2100 * config/sparc/tm-linux.h: Delete file.
2101 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2102 * config/s390/tm-linux.h: Delete file.
2103 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2104 * config/pa/tm-bsd.h: Delete file.
2105 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2106 * config/m68k/tm-obsd.h: Delete file.
2107 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2108 * config/m68k/tm-nbsd.h: Delete file.
2109 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2110 * config/i386/tm-vxworks.h: Delete file.
2111 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2112 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2113 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2114 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2115 * config/i386/tm-nbsd.h: Delete file.
2116 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2117 * config/i386/tm-i386lynx.h: Delete file.
2118 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2119 * config/cris/tm-cris.h: Delete file.
2120
0f475e27
AC
2121 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2122 * configure: Re-generate.
2123 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2124 * config/arm/tm-nbsd.h: Delete file.
2125
458ed000
AC
2126 * config/powerpc/tm-ppcle-sim.h: Delete.
2127 * config/powerpc/tm-ppcle-eabi.h: Delete.
2128 * config/powerpc/tm-nbsd.h: Delete.
2129 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2130 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2131 tm-ppcle-eabi.h.
2132
f14375f3
AC
2133 * config/i386/nto.mh (NAT_FILE): Delete.
2134 * config/i386/nm-nto.h: Delete.
2135
c34d127c
AC
2136 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2137 * config/m68k/tm-os68k.h: Ditto.
2138 * config/m68k/tm-monitor.h: Ditto.
2139 * config/m68k/tm-cisco.h: Ditto.
2140 * config/m68k/st2000.mt (TM_FILE): Delete.
2141 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2142 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2143 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2144 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2145
f7f0fe03
AC
2146 * config/m68k/tm-st2000.h: Delete.
2147 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2148 * config/sparc/fbsd.mt (TM_FILE): Delete.
2149 * config/sparc/tm-fbsd.h: Delete.
2150
a2558533
AC
2151 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2152 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2153 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2154
b78960be
AC
2155 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2156 GDB_TM_FILE and GDB_XM_FILE.
2157 * gdbarch.c: Re-generate.
2158 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2159 quotes in macro definition.
2160 * configure.in: Re-generate.
2161
4d60522e
AC
2162 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2163 validating architecture methods.
2164 * gdbarch.c: Re-generate.
2165
5010d38b
AC
2166 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2167 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2168 GDB_MULTI_ARCH_PARTIAL.
2169 * gdbarch.h: Re-generate.
2170
c185a355
AC
2171 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2172 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2173 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2174 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2175 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2176 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2177 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2178 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2179 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2180 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2181 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2182 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2183
14aaa6ab
AC
21842004-09-01 Andrew Cagney <cagney@gnu.org>
2185
2186 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2187 and main_func_highpc.
2188 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2189 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2190 * nlmread.c (nlm_symfile_read): Update.
2191
a343eb3c
JB
21922004-09-01 Joel Brobecker <brobecker@gnat.com>
2193
2194 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2195 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2196 (find_proc_desc): Remove dead code.
2197
4fbbbd07
JB
21982004-09-01 Joel Brobecker <brobecker@gnat.com>
2199
2200 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2201
84acb35a
JJ
22022004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2203
2204 * observer.sh: Add struct so_list declaration.
2205 * Makefile.in: Add dependencies on observer.h for solib.c and
2206 breakpoint.c.
2207 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2208 function.
2209 (_initialize_breakpoint): Register
2210 disable_breakpoints_in_unloaded_shlib as an observer of the
2211 "solib unloaded" observation event.
2212 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2213 call decode_line_1 so unfound breakpoint errors are silent.
2214 * solib.c (update_solib_list): When a solib is discovered to have
2215 been unloaded by the program, notify all observers of the
2216 "solib unloaded" observation event.
2217
c8cd9f6c
AC
22182004-09-01 Andrew Cagney <cagney@gnu.org>
2219
2220 * frame.c: Include "objfiles.h".
2221 (inside_main_func): New function.
2222 (get_prev_frame): Use new inside_main_func.
2223 * Makefile.in (frame.o): Update dependencies.
2224 * defs.h (inside_main_func): Delete declaration.
2225 * blockframe.c (inside_main_func): Delete function.
2226
1168df01
JB
22272004-08-31 Jim Blandy <jimb@redhat.com>
2228
2229 * dwarf2read.c (is_vtable_name): New function, based on logic from
2230 read_structure_type, but passing the correct length to strncmp,
2231 and using 'sizeof' instead of 'strlen'.
2232 (read_structure_type): Call it.
2233
f14f9744
JB
22342004-08-31 Joel Brobecker <brobecker@gnat.com>
2235
2236 * config/powerpc/aix.mh: Add comment.
2237
386d4518
PG
22382004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2239
2240 * MAINTAINERS: Add self to Write-After-Approval.
2241
7d97d5e2
MI
22422004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2243
2244 * MAINTAINERS: Add self to Write-After-Approval.
2245
68f53502
AC
22462004-08-30 Andrew Cagney <cagney@gnu.org>
2247
2248 Fix PR breakpoints/1757.
2249 * infrun.c (struct execution_control_state): Replace
2250 remove_breakpoints_on_following_step with
2251 step_after_step_resume_breakpoint.
2252 (init_execution_control_state): Update.
2253 (handle_inferior_event): For signals, when stepping off a
2254 breakpoint, set step_after_step_resume_breakpoint. When
2255 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2256 (keep_going): Delete code handling
2257 remove_breakpoints_on_following_step.
2258
7ca2d3a3
DL
22592004-08-29 David Lecomber <david@streamline-computing.com>
2260
2261 Fix PR gdb/648
2262 * language.h (enum array_ordering): New enum.
2263 * language.h (struct language_defn): New la_array_ordering
2264 attribute.
2265 * language.c (unknown_language_defn, auto_language_defn)
2266 (local_language_defn): Ditto.
2267 * ada-lang.c (ada_language_defn): Ditto.
2268 * c-lang.c (c_language_defn, cplus_language_defn)
2269 (asm_language_defn, minimal_language_defn): Ditto.
2270 * f-lang.c (f_language_defn): Ditto.
2271 * jv-lang.c (java_language_defn): Ditto.
2272 * m2-lang.c (f_language_defn): Ditto.
2273 * objc-lang.c (objc_language_defn): Ditto.
2274 * p-lang.c (pascal_language_defn): Ditto.
2275 * scm-lang.c (scm_language_defn): Ditto.
2276 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2277 oriented large to small in type structure.
2278 * dwarf2read.c (read_array_order): New function.
2279 (read_array_type): Use read_array_order to check row/column
2280 major ordering.
2281
e354df01
NW
22822004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2283
2284 * target.c (target_resize_to_sections): Check
2285 current_target.to_sections for an old value when updating.
2286
9185ddce
JB
22872004-08-27 Joel Brobecker <brobecker@gnat.com>
2288
2289 * procfs.c (dbx_link_bpt_addr): New static global variable.
2290 (dbx_link_shadow_contents): New static global variable.
2291 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2292 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2293 if we just hit it.
2294 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2295 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2296 from run to run.
2297 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2298 after the inferior has been forked.
2299 (remove_dbx_link_breakpoint): New function.
2300 (dbx_link_addr): New function.
2301 (insert_dbx_link_bpt_in_file): New function.
2302 (insert_dbx_link_bpt_in_region): New function.
2303 (insert_dbx_link_breakpoint): New function.
2304 (proc_trace_syscalls_1): New function, extracted from
2305 proc_trace_syscalls.
2306 (proc_trace_syscalls): Replace extract code by call to
2307 proc_trace_syscalls_1.
2308 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2309 is no longer valid.
2310
e6742ace
JB
23112004-08-25 Jim Blandy <jimb@redhat.com>
2312
2313 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2314
8fb3e588
AC
23152004-08-25 Andrew Cagney <cagney@gnu.org>
2316
629a41ee
AC
2317 * infrun.c (struct execution_control_state): Delete field
2318 "stepping_through_sigtramp".
2319 (init_execution_control_state): Do not set same.
2320 (context_switch): Do not pass same to save_infrun_state and
2321 load_infrun_state.
2322 * gdbthread.h (struct thread_info): Delete field
2323 stepping_through_sigtramp.
2324 (save_infrun_state, load_infrun_state): Delete parameter
2325 stepping_through_sigtramp.
2326 * thread.c (load_infrun_state, save_infrun_state): Update.
2327
8fb3e588
AC
2328 * infrun.c: Re-indent. Move expression operators to the beginning
2329 of the line. Remove long disabled #if 0 code.
2330
49c54768
AC
23312004-08-24 Andrew Cagney <cagney@gnu.org>
2332
2333 * doublest.h (floatformat_ieee_quad): Rename
2334 floatformat_ia64_quad.
2335 * doublest.c (floatformat_ieee_quad): Rename
2336 floatformat_ia64_quad.
2337 (_initialize_doublest): Update.
2338
5ca2e327
JB
23392004-08-24 Jim Blandy <jimb@redhat.com>
2340
87808bd6
JB
2341 * dwarf2expr.h (struct dwarf_expr_context): New members
2342 'num_pieces' and 'pieces', for returning the result of an
2343 expression that uses DW_OP_piece.
2344 (struct dwarf_expr_piece): New struct type.
2345 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2346 pieces.
2347 (free_dwarf_expr_context): Free pieces, if any.
2348 (add_piece): New function.
2349 (execute_stack_op): Implement DW_OP_piece.
2350 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2351 expression is a list of pieces, print an error message.
2352 (dwarf2_loc_desc_needs_frame): If the expression yields
2353 pieces, and any piece is in a register, then we need a frame.
2354
5ca2e327
JB
2355 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2356 the stack until we've decided what sort of result the evaluation
2357 has produced. Use separate variables, with more specific names.
2358
2afeb6b8
RE
23592004-08-23 Richard Earnshaw <rearnsha@arm.com>
2360
2361 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2362 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2363 (arm_netbsd_init_abi_common): Register them.
2364
5885ab49
MK
23652004-08-22 Mark Kettenis <kettenis@gnu.org>
2366
fda820a6
MK
2367 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2368
1c5bf419
MK
2369 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2370 safe_frame_unwind_memory instead of target_read_memory.
2371
8cbba7c8
MK
2372 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2373 Reorder includes.
2374 (fetch_register, store_register): Remove prototypes.
2375 (child_resume): Reorganize code and comments such that it is
2376 grouped a bit more logically.
2377 (attach): Explicitly compare errno against 0.
2378 (detach): Likewise. Use perror_with_name instead of
2379 print_sys_errmsg.
2380 * Makefile.in (infptrace.o): Update dependencies.
2381
c5fa4245
MK
2382 * ia64-linux-nat.c: Update copyright year.
2383 (fetch_debug_register, store_debug_register)
2384 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2385 PTRACE_TYPE_ARG3.
2386 * config/ia64/nm-linux.h: Update copyright year.
2387 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2388
387c058c
MK
2389 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2390 from CORE_ADDR to struct frame_info *. Use
2391 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2392 (amd64_linux_sigtramp_p): Adjust for changed signature of
2393 and64_linux_sigtramp_start
2394
277215a6
MK
2395 * gdb_ptrace.h: GNU/Linux.
2396
25f6178e
MK
2397 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2398 Remove defines.
2399
652fc137
MK
2400 * infptrace.c: Include "gdb_assert.h".
2401 (PTRACE_XFER_TYPE): Remove define.
2402 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2403 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2404 Tweak comment.
2405 (fetch_inferior_registers, store_inferior_registers): Remove
2406 redundant culry braces. Tweak comment. s/regno/regnum.
2407 * Makefile.in (infptrace.o): Update dependencies.
2408
5885ab49
MK
2409 * configure.in: Change test for return type of ptrace to default
2410 to `long' instead of `int'.
2411 * configure: Regenerate.
2412
11003ae3
MK
24132004-08-21 Mark Kettenis <kettenis@gnu.org>
2414
6b95110c
MK
2415 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2416
bcb3dc3d
MK
2417 * configure.in: Check for ttrace function.
2418 * configure, config.in: Regenerate.
2419
11003ae3
MK
2420 * gdb_ptrace.h: New file.
2421 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2422 <sys/ptrace.h>.
2423 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2424 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2425 (attach): Don't define PT_ATTACH.
2426 (detach): Don't define PT_DETACH.
2427 * Makefile.in (gdb_ptrace_h): New variable.
2428 (infptrace.o): Update dependencies.
2429
f8707cac
MK
24302004-08-16 Mark Kettenis <kettenis@gnu.org>
2431
2432 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2433 instead of `int' if not already defined.
2434 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2435 PTRACE_TYPE_ARG3.
2436 * infptrace.c (call_ptrace): Revert change that replaced
2437 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2438
655c5466
MK
24392004-08-15 Mark Kettenis <kettenis@gnu.org>
2440
156e5ba7
MK
2441 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2442 Remove defines.
2443
de9a9e51
MK
2444 * linux-nat.c (kill_inferior): Add missing third and fourth
2445 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2446
88800403
MK
2447 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2448 PTRACE_TYPE_RET.
2449
849a1d7c
MK
2450 * proc-why.c (proc_prettyfprint_why): Fix format string.
2451
61ad16d1
MK
2452 * solib-osf.c (osf_current_sos): Remove unsused label.
2453
a6ed5501
MK
2454 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2455 curses headers.
2456 * configure, config.in: Regenerate.
2457 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2458 <ncurses/ncurses.h>.
2459
016ddeca
MK
2460 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2461 * config/nm-nbsd.h: Update copyright year.
2462 (PTRACE_ARG3_TYPE): Remove define.
2463
49ec097f
MK
2464 * sparc-nat.c (fetch_inferior_registers)
2465 (store_inferior_registers, sparc_xfer_wcookie):
2466 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2467
9f8e0089
MK
2468 * alphabsd-nat.c (fetch_inferior_registers):
2469 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2470 PTRACE_TYPE_ARG3.
2471 * amd64bsd-nat.c (fetch_inferior_registers)
2472 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2473 PTRACE_TYPE_ARG3.
2474 * armnbsd-nat.c: Update copyright year.
2475 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2476 (store_register, store_regs, store_fp_register, store_fp_regs):
2477 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2478 * hppabsd-nat.c (fetch_inferior_registers)
2479 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2480 PTRACE_TYPE_ARG3.
2481 * i386bsd-nat.c (fetch_inferior_registers)
2482 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2483 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2484 * m68kbsd-nat.c (fetch_inferior_registers)
2485 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2486 PTRACE_TYPE_ARG3.
2487 * m88kbsd-nat.c (fetch_inferior_registers)
2488 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2489 PTRACE_TYPE_ARG3.
2490 * mipsnbsd-nat.c: Update copyright year.
2491 (fetch_inferior_registers, store_inferior_registers):
2492 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2493 * ns32knbsd-nat.c: Update copyright year.
2494 (fetch_inferior_registers, store_inferior_registers):
2495 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2496 * ppcnbsd-nat.c (fetch_inferior_registers):
2497 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2498 PTRACE_TYPE_ARG3.
2499 * ppcobsd-nat.c (fetch_inferior_registers):
2500 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2501 PTRACE_TYPE_ARG3.
2502 * shnbsd-nat.c: Update copyright year.
2503 (fetch_inferior_registers, store_inferior_registers):
2504 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2505 * vaxbsd-nat.c (fetch_inferior_registers)
2506 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2507 PTRACE_TYPE_ARG3.
2508
655c5466
MK
2509 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2510 PTRACE_TYPE_ARG3.
2511 * infptrace.c (call_ptrace, child_resume, attach, detach)
2512 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2513 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2514 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2515 PTRACE_TYPE_ARG3.
2516
c40d0d10
MK
25172004-08-14 Mark Kettenis <kettenis@gnu.org>
2518
5cb0ff31
MK
2519 * defs.h: Remove out-of-date comment.
2520 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2521 [!GETENV_PROVIDED] (getenv): Remove prototype.
2522
5f0f34cb
MK
2523 * standalone.c: Remove file.
2524 * Makefile.in (standalone.o): Remove dependency.
2525
7532965f
MK
2526 * i386-linux-nat.c (dummy_sse_values): Remove function and
2527 prototype.
2528 (i386_linux_dr_get): Fix typo in comment.
2529 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2530
1bdc6c53
MK
2531 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2532
c40d0d10
MK
2533 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2534 from declaration.
2535 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2536 from definition.
2537
64218d3e
MK
25382004-08-13 Mark Kettenis <kettenis@gnu.org>
2539
2540 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2541 parenthesis in definition.
2542 * configure: Regenerated.
2543
926c94e7
MC
25442004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2545
2546 * PROBLEMS: Mention build/1411.
2547
69489883
NN
25482004-08-09 Robert Millan <robertmh@gnu.org>
2549
2550 Committed by Nathanael Nerode.
2551 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2552 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2553
ebb7c577
AC
25542004-08-12 Andrew Cagney <cagney@gnu.org>
2555
2556 * NEWS: Mention fixes in GDB 6.2.1.
2557 * PROBLEMS: Remove mention of mips-irix.
2558
232d697c
JB
25592004-08-11 Joel Brobecker <brobecker@gnat.com>
2560
2561 * config/powerpc/xm-aix.h: Delete.
2562 * config/powerpc/aix.mh (MH_FILE): Remove.
2563 * config/powerpc/aix432.mh (MH_FILE): Remove.
2564
72f4e82b
JB
25652004-08-11 Joel Brobecker <brobecker@gnat.com>
2566
2567 * config/powerpc/aix.mh: Remove obsolete comment.
2568 * config/powerpc/aix432.mh: Likewise.
2569
0687ccb2
JB
25702004-08-11 Joel Brobecker <brobecker@gnat.com>
2571
2572 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2573
dbf3ada7
JB
25742004-08-11 Joel Brobecker <brobecker@gnat.com>
2575
e08e1886
JB
2576 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2577 this file is now empty.
2578 * config/xm-aix4.h: Remove, this file is no longer included
2579 anywhere.
2580
25812004-08-11 Joel Brobecker <brobecker@gnat.com>
2582
2583 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2584 that file is now empty.
dbf3ada7
JB
2585 (termdef): Remove prototype, function no longer used.
2586
4c525ef6
JB
25872004-08-11 Joel Brobecker <brobecker@gnat.com>
2588
2589 * doc/gdbint.texinfo (Host Definition): Remove documentation
2590 for USE_O_NOCTTY, no longer used.
2591 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2592 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2593
82e0b968
JB
25942004-08-11 Joel Brobecker <brobecker@gnat.com>
2595
2596 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2597 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2598 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2599
f2acbe1c
MK
26002004-08-11 Mark Kettenis <kettenis@gnu.org>
2601
daa98270
MK
2602 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2603 instead of FIVE_ARG_PTRACE.
2604
f2acbe1c
MK
2605 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2606 (new_tty): Use O_NOCTTY unconditionally.
2607
cc377e6b
MK
26082004-08-10 Mark Kettenis <kettenis@gnu.org>
2609
2610 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2611 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2612 fflush on stdout.
2613
3bcc18fa
JB
26142004-08-10 Joel Brobecker <brobecker@gnat.com>
2615
2616 * xcoff_symfile_finish: Replace last call to xmfree by call
2617 to xfree.
2618
7936743b
AC
26192004-08-10 Andrew Cagney <cagney@gnu.org>
2620
cc503c8a
AC
2621 * main.c (captured_main): Delete call to init_malloc.
2622 * defs.h (init_malloc): Delete declaration.
2623 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2624 (init_malloc): Delete functions.
2625
2dc74dc1
AC
2626 * defs.h (xmfree): Delete.
2627 * utils.c (xmfree): Delete function.
2628 (xfree): Inline calls to xmfree and mfree.
2629 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2630 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2631 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2632 * somread.c (som_symfile_finish): Ditto.
2633 * objfiles.c (allocate_objfile, free_objfile):
2634 * nlmread.c (nlm_symfile_finish): Ditto.
2635 * hpread.c (hpread_symfile_finish): Ditto.
2636 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2637 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2638 * coffread.c (coff_symfile_finish): Ditto.
2639
aa2ee5f6
AC
2640 * defs.h (xmcalloc): Delete declaration.
2641 * utils.c (xmcalloc): Delete.
2642 (xcalloc): Inline calls to xmcalloc and mcalloc.
2643 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2644 xcalloc and xfree.
2645 * symtab.c (create_demangled_names_hash): Ditto.
2646
0efffb96
AC
2647 * defs.h (xmrealloc): Delete.
2648 * utils.c (xmrealloc): Delete.
2649 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2650 * symmisc.c (extend_psymbol_list): Use xrealloc.
2651 * source.c (find_source_lines): Ditto.
2652 * hpread.c (hpread_lookup_type): Ditto.
2653 * dbxread.c (add_bincl_to_list): Ditto.
2654
7936743b
AC
2655 * utils.c (xmmalloc): Delete.
2656 (xmalloc): Inline xmmalloc and mmalloc calls.
2657 (msavestring): Use xmalloc.
2658 * defs.h (xmmalloc): Delete declaration.
2659 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2660 xmmalloc.
2661 * symmisc.c (extend_psymbol_list): Ditto.
2662 * symfile.c (init_psymbol_list): Ditto.
2663 * source.c (find_source_lines): Ditto.
2664 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2665 * elfread.c (elf_symtab_read): Ditto.
2666 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2667 * coffread.c (coff_symfile_init): Ditto.
2668
252ab814
DC
26692004-08-10 David Carlton <carlton@bactrian.org>
2670
2671 * MAINTAINERS: Remove David Carlton from c++ testsuite
2672 maintainers.
2673
8f5ba92b
JG
26742004-08-10 Jerome Guitton <guitton@gnat.com>
2675
2676 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2677 print a line feed before the prompt.
2678
21749010
MK
26792004-08-10 Mark Kettenis <kettenis@gnu.org>
2680
2681 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2682
1f011ce2
JB
26832004-08-09 Joel Brobecker <brobecker@gnat.com>
2684
2685 General cleanup of the AIX xm include file:
2686 * config/xm-aix4.h (fd_set): Remove undefine.
2687 Remove include of <sys/select.h>.
2688 (HAVE_TERMIO): Remove define.
2689 (USG): Likewise.
2690 (NULL): Remove redefine.
2691 (alloca): Remove #pragma.
2692 (vfork): Remove define.
2693 (termdef): Remove.
2694 (SIGWINCH_HANDLER): Remove.
2695 (SIGWINCH_HANDLER_BODY): Remove.
2696
cf4e7692
MK
26972004-08-09 Mark Kettenis <kettenis@gnu.org>
2698
2699 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2700 GDB_OSABI_OPENBSD_ELF.
2701
ac5754fa
MK
27022004-08-07 Robert Millan <robertmh@gnu.org>
2703
2704 * bsd-kvm.c: Check for nlist.h before including it.
2705
086ec9eb
MK
27062004-08-09 Mark Kettenis <kettenis@gnu.org>
2707
bbe06c74
MK
2708 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2709 sigcontext' offset consistency checks for ancient BSD.
2710
3aa7b3b3
MK
2711 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2712
086ec9eb
MK
2713 * configure.in: Check for <sys/types.h>. Check return and
2714 argument types of ptrace.
2715 * configure, config.in: Regenerate.
2716
09991fa0
JB
27172004-08-09 Jim Blandy <jimb@redhat.com>
2718
2719 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2720 rs6000_register_sim_regno): Doc fixes.
2721
fed7ba43
JB
27222004-08-08 Joel Brobecker <brobecker@gnat.com>
2723
2724 * mips-tdep.c: Include "floatformat.h".
2725 (n32n64_floatformat_always_valid): New function.
2726 (floatformat_n32n64_long_double_big): New constant.
2727 (mips_gdbarch_init): Set size and format of long double
2728 for N32 and N64 ABIs.
2729 * Makefile.in (mips-tdep.o): Update dependencies.
2730
456fcf94
AC
27312004-08-08 Andrew Cagney <cagney@gnu.org>
2732
2f9b146e
AC
2733 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2734 print. Improve script's error messages.
2735 * gdbarch.h: Re-generate.
2736
456fcf94
AC
2737 * gdbarch.sh (pformat): New function.
2738 (float_format, double_format, long_double_format): List with bit
2739 members. Use pformat when printing.
2740 * gdbarch.c, gdbarch.h: Re-generate.
2741
69e9e646
NW
27422004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2743
2744 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2745 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2746 (ppcnbsd_supply_pcb): New function.
2747 (_initialize_ppcnbsd_nat): New prototype and function.
2748 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2749 (LOADLIBES): New variable.
2750 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2751
5ef2d0aa
AC
27522004-08-08 Andrew Cagney <cagney@gnu.org>
2753
2754 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2755 (builtin_type_ieee_double, builtin_type_ia64_quad)
2756 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2757 BE/LE floating-point types.
2758 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2759 (builtin_type_ieee_double, builtin_type_ia64_quad)
2760 (builtin_type_ia64_spill): Declare.
2761 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2762 (floatformat_ieee_double, floatformat_arm_ext)
2763 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2764 of LE/BE floatformats.
2765 * doublest.h: (struct floatformat, floatformat_ieee_single)
2766 (floatformat_ieee_double, floatformat_arm_ext)
2767 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2768
5c7f2947
MK
27692004-08-08 Mark Kettenis <kettenis@gnu.org>
2770
ecac404d
MK
2771 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2772
9b8607ce
MK
2773 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2774 instead of regcache_raw_supply when storing the registers.
2775
f6052080
MK
2776 * i386gnu-nat.c: Update copyright year.
2777 (gnu_store_registers): Don't use deprecated_registers and
2778 deprecated_registers_valid. Use regcache_valid_p and
2779 regcache_raw_supply instead.
2780
17777823
MK
2781 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2782 frame_pc_unwind.
2783
5240ceac
MK
2784 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2785 variables. Incapitalized "process".
2786
5c7f2947
MK
2787 * configure.in: Add cursesX to the list of possible curses libs.
2788 Add cursesX.h to the list of possible curses headers.
2789 * configure, config.in: Regenerate.
2790
da7d81e3
NW
27912004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2792
2793 * configure.in: Test for struct lwp in <sys/lwp.h>.
2794 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2795 the offset of l_addr in struct lwp.
2796
7f245d65
NW
27972004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2798
2799 * bsd-kvm.c: Include "gdbcore.h"
2800 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2801
47b3f456
AC
28022004-08-07 Andrew Cagney <cagney@gnu.org>
2803
70bd8e24
AC
2804 * gdbtypes.c (build_flt, build_complex): New functions.
2805 (gdbtypes_post_init): Use.
2806
9b0dea39
AC
2807 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2808
5cf7abac
AC
2809 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2810 through to builtin_type_uint128.
2811
64d2b26d
AC
2812 * c-exp.y: Use builtin_type function to obtain builtin types.
2813
7ad6570d
AC
2814 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2815 builtin_uint128.
2816 * gdbtypes.c (gdbtypes_post_init): Update.
2817 (build_gdbtypes): Move initialization of builtin_type_int0
2818 through to builtin_type_uint128 from here ...
2819 (_initialize_gdbtypes): ... to here.
2820 * d10v-tdep.c (d10v_register_type): Update.
2821
47b3f456
AC
2822 * doublest.c: Update copyright.
2823 (floatformat_from_length): Call error when floatformat is NULL.
2824 (extract_floating_by_length): Remove NULL fmt check.
2825 (store_floating_by_length): Ditto.
2826
0a8146bf
AC
28272004-08-07 Andrew Cagney <cagney@gnu.org>
2828
2829 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2830 that the register is valid.
2831
c0ccb908
MK
28322004-08-05 Mark Kettenis <kettenis@chello.nl>
2833
8e6bed05
MK
2834 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2835 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2836 struct frame_info *. Use safe_frame_unwind_memory instead of
2837 deprecated_read_memory_nobpt.
2838 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2839 changed signature of i386_linux_sigtramp_start and
2840 i386_linux_rt_sigtramp_start.
2841
24f9f5e3
MK
2842 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2843 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2844 instead of deprecated_read_memory_nobpt.
2845 (i386nbsd_sigtramp_p): Adjust for changed signature of
2846 i386nbsd_sigtramp_offset.
2847
c822af0c
MK
2848 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2849 safe_frame_unwind_memory instead of target_read_memory.
2850
c0ccb908
MK
2851 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2852 !NO_SYS_FILE.
2853 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2854 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2855 (_initialize_kernel_u_addr): Remove prototype and function.
2856 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2857 !NO_SYS_FILE.
2858 * xcoffread.c: Likewise.
2859
b9e1c0d6
MK
28602004-08-06 Mark Kettenis <kettenis@gnu.org>
2861
2862 * vax-nat.c: New file.
2863 * vaxbsd-nat.c: Tweak comment.
2864 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2865 vaxnbsd-tdep.c.
2866 (vax-nat.o): New dependency.
2867 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2868 (vax-*-ultrix2*): Remove.
2869 * config/vax/vax.mh: New file.
2870 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2871 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2872 (vax_register_u_addr): New prototype.
2873 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2874 * config/vax/vaxult2.mh: Remove file.
2875 * config/vax/vaxult.mh: Remove file.
2876 * config/vax/vaxbsd.mh: Remove file.
2877 * config/vax/vax.mt (TM_FILE): Remove.
2878 * config/vax/tm-vaxbsd.h: Remove file.
2879
9ad7bec7
JB
28802004-08-06 Joel Brobecker <brobecker@gnat.com>
2881
2882 * aix-thread.c (get_signaled_thread): New function.
2883 (iter_trap): Delete, no longer used.
2884 (iter_tid): New function.
2885 (pd_update): Find the thread that received the SIGTRAP signal
2886 by first locating the kernel thread, and then finding its
2887 associated thread.
2888
bf0d233d
UW
28892004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2890
2891 * lin-lwp.c (child_wait): Continue inferior after processing
2892 PTRACE_EVENT_CLONE event.
2893
d0f853e1
NN
28942004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2895
2896 * MAINTAINERS: Add self to Write-After-Approval.
2897
ab14aeb0
JJ
28982004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2899
2900 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2901 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2902
9c8dbfa9
AC
29032004-08-05 Andrew Cagney <cagney@gnu.org>
2904
c8f3ca46
AC
2905 * config/xm-sysv4.h: Delete file.
2906 * config/mips/xm-irix5.h: Delete file.
2907 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2908 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2909 * config/ia64/xm-aix.h: Delete file.
2910 * config/ia64/aix.mh (XM_FILE): Delete.
2911 * config/pa/xm-hppah.h: Delete file.
2912 * config/pa/hpux11w.mh (XM_FILE): Delete.
2913 * config/pa/hpux11.mh (XM_FILE): Delete.
2914 * config/pa/hpux1020.mh (XM_FILE): Delete.
2915 * config/pa/hppahpux.mh (XM_FILE): Delete.
2916
5f7daaff
AC
2917 * config/alpha/xm-alphalinux.h: Delete file.
2918 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2919 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2920 * config/alpha/xm-alphaosf.h: Delete file.
2921 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2922 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2923 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2924 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2925
69babf95
AC
2926 * config/i386/xm-i386v.h: Delete file.
2927 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2928 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2929 * config/i386/xm-i386sco.h: Delete file.
2930 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2931 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2932 * config/i386/xm-i386v4.h: Delete file.
2933 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2934 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2935 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2936 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2937
6f009c8a
AC
2938 * config/vax/xm-vax.h: Delete file.
2939 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2940 * config/vax/xm-vaxult2.h: Delete file.
2941 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2942 * config/vax/vaxult2.mh (XM_FILE): Delete.
2943 * config/vax/xm-vaxult.h: Delete file.
2944 * config/vax/vaxult.mh (XM_FILE): Delete.
2945 * config/vax/xm-vaxbsd.h: Delete file.
2946 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2947
9c8dbfa9
AC
2948 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2949 * gdbarch.h, gdbarch.c: Re-generate.
2950 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2951 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2952 * frame.h: Delete deprecated_read_fp from comments.
2953 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2954 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2955
84367a3e
MK
29562004-08-04 Mark Kettenis <kettenis@gnu.org>
2957
9c8e3411
MK
2958 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2959 trampoline in OpenBSD 3.5-current.
2960
b87bc0d8
MK
2961 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2962 SSE registers.
2963
84367a3e
MK
2964 * Makefile.in: Remove embedded page breaks.
2965
a44bddec
JB
29662004-08-04 Jim Blandy <jimb@redhat.com>
2967
7ab3286f
JB
2968 * regcache.c (regcache_raw_read): Assert that, after calling
2969 target_fetch_registers, the register we're reading is cached.
2970
a44bddec
JB
2971 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2972 a call to 'internal_error', with a more helpful error message.
2973 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 2974 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 2975
35124113
AC
29762004-08-04 Andrew Cagney <cagney@gnu.org>
2977
2978 * Makefile.in: Update dependencies.
2979
9f643768
JB
29802004-08-04 Jim Blandy <jimb@redhat.com>
2981
6ced10dd
JB
2982 Change the layout of the PowerPC E500 raw register cache to allow
2983 the lower 32-bit halves of the GPRS to be their own raw registers,
2984 not pseudoregisters.
2985 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2986 add ppc_ev0_upper_regnum flag.
2987 * rs6000-tdep.c: #include "reggroups.h".
2988 (spe_register_p): Recognize the ev upper half registers as SPE
2989 registers.
2990 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2991 registers.
2992 (e500_move_ev_register): New function.
2993 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2994 vector registers are the pseudo-registers now, formed by splicing
2995 together the gprs and the upper-half registers.
2996 (e500_register_reggroup_p): New function.
2997 (P): Macro deleted.
2998 (P8, A4): New macro.
2999 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3000 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3001 macros.
3002 (registers_e500): Rearrange register set so that the raw register
3003 set contains 32-bit GPRs and upper-half registers, and the SPE
3004 vector registers become pseudo-registers.
3005 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3006 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3007 register numbers are now the same for the E500 as they are for
3008 other PowerPC variants. Register e500_register_reggroup_p as the
3009 register group function for the E500.
3010 * Makefile.in (rs6000-tdep.o): Update dependencies.
3011
3012 Adapt PPC E500 native support to the new raw regcache layout.
3013 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3014 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3015 (fetch_spe_register, store_spe_register): Handle fetching/storing
3016 all the SPE registers at once, if regno == -1. These now take
3017 over the job of fetch_spe_registers and store_spe_registers.
3018 (fetch_spe_registers, store_spe_registers): Deleted.
3019 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3020 unconditionally; they're always raw. Fetch/store SPE upper half
3021 registers, if present, instead of ev registers.
3022 (fetch_register, store_register): Remove sanity checks: gprs are
3023 never pseudo-registers now, so we never need to even mention any
3024 registers that are ever pseudoregisters.
3025
9f643768
JB
3026 Use a fixed register numbering when communicating with the PowerPC
3027 simulator.
3028 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3029 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3030 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3031 New functions.
3032 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3033 init_sim_regno_table.
3034 * Makefile.in (gdb_sim_ppc_h): New variable.
3035 (rs6000-tdep.o): Update dependencies.
3036
1e2279c8
AC
30372004-08-02 Andrew Cagney <cagney@gnu.org>
3038
1d94326f
AC
3039 * cris-tdep.c (cris_register_size): Restore function, still used
3040 locally.
3041
331ae7ed
AC
3042 * gdbarch.sh (deprecated_target_read_fp)
3043 (deprecated_frame_locals_address, deprecated_frame_args_address)
3044 (deprecated_frame_chain_valid, deprecated_frame_chain)
3045 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3046 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3047 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3048 * gdbarch.h, gdbarch.c: Re-generate.
3049 * regcache.c (deprecated_read_fp): Do not call
3050 DEPRECATED_TARGET_READ_FP_P.
3051 * infcmd.c (default_print_registers_info): Do not call
3052 DEPRECATED_DO_REGISTERS_INFO.
3053 * frame-base.c (default_frame_locals_address): Do not call
3054 DEPRECATED_FRAME_LOCALS_ADDRESS.
3055 (default_frame_args_address): Do not call
3056 DEPRECATED_FRAME_ARGS_ADDRESS.
3057
1e2279c8
AC
3058 * gdbarch.sh (deprecated_register_raw_size)
3059 (deprecated_register_virtual_size:int): Delete.
3060 * gdbarch.h, gdbarch.c: Re-generate.
3061 * cris-tdep.c (cris_register_size): Delete.
3062 (cris_gdbarch_init): Update.
3063 * alpha-tdep.c (alpha_register_raw_size)
3064 (alpha_register_virtual_size): Delete.
3065 (alpha_gdbarch_init): Update.
3066
a90c06b4
AC
3067 * gdbarch.sh (deprecated_register_virtual_type)
3068 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3069 (deprecated_dummy_write_sp): Delete.
3070 * gdbarch.h, gdbarch.c: Re-generate.
3071
f42accbe
AC
3072 * gdbarch.sh (deprecated_register_bytes): Delete.
3073 * gdbarch.h, gdbarch.c: Re-generate.
3074 * regcache.c (deprecated_register_bytes): New function.
3075 * regcache.h (deprecated_register_bytes): Declare.
3076 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3077 * v850-tdep.c (v850_gdbarch_init): Update.
3078 * sh64-tdep.c (sh64_gdbarch_init): Update.
3079 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3080 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3081 * mcore-tdep.c (mcore_gdbarch_init): Update.
3082 * cris-tdep.c (cris_gdbarch_init): Update.
3083 * arm-tdep.c (arm_gdbarch_init): Update.
3084 * remote.c (init_remote_state): Update.
3085 * remote-vx.c (vx_prepare_to_store): Update.
3086 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3087 * irix5-nat.c (fetch_core_registers): Update.
3088 * cris-tdep.c (cris_register_bytes_ok): Update.
3089 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3090
45c9dd44
AC
3091 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3092 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3093 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3094 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3095 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3096 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3097 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3098 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3099 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3100 with mips_insn16 and mips_insn32.
3101
3acba339
AC
3102 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3103 * rs6000-tdep.c (rs6000_push_dummy_call)
3104 (rs6000_extract_return_value): Use register_size.
3105 * xstormy16-tdep.c (xstormy16_get_saved_register)
3106 (xstormy16_extract_return_value): Ditto.
3107 * valops.c (value_assign): Ditto.
3108 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3109 * v850-tdep.c (v850_extract_return_value): Ditto.
3110 * tracepoint.c (collect_symbol): Ditto.
3111 * target.c (debug_print_register): Ditto.
3112 * stack.c (frame_info): Ditto.
3113 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3114 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3115 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3116 (store_register_using_P): Ditto.
3117 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3118 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3119 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3120 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3121 * regcache.c (deprecated_read_register_bytes)
3122 (deprecated_write_register_bytes, read_register)
3123 (write_register): Ditto.
3124 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3125 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3126 * monitor.c (monitor_supply_register, monitor_fetch_register)
3127 (monitor_store_register): Ditto.
3128 * mn10300-tdep.c (mn10300_pop_frame_regular)
3129 (mn10300_print_register): Ditto.
3130 * mipsv4-nat.c (fill_fpregset): Ditto.
3131 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3132 (mips64_fill_fpregset): Ditto.
3133 * mi/mi-main.c (register_changed_p, get_register)
3134 (mi_cmd_data_write_register_values): Ditto.
3135 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3136 * irix5-nat.c (fill_gregset, fetch_core_registers):
3137 * infrun.c (write_inferior_status_register): Ditto.
3138 * infptrace.c (fetch_register, store_register): Ditto.
3139 * infcmd.c (default_print_registers_info): Ditto.
3140 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3141 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3142 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3143 * hpux-thread.c (hpux_thread_fetch_registers)
3144 (hpux_thread_store_registers): Ditto.
3145 * hppah-nat.c (store_inferior_registers, fetch_register):
3146 * findvar.c (value_from_register): Ditto.
3147 * dve3900-rom.c (fetch_bitmapped_register):
3148 * cris-tdep.c (cris_gdbarch_init): Ditto.
3149 * alpha-tdep.h: Ditto.
3150 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3151
01e1877c
AC
3152 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3153 DEPRECATED_REGISTER_RAW_SIZE from comments.
3154 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3155 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3156 DEPRECATED_REGISTER_RAW_SIZE.
3157 * findvar.c (value_of_register): Simplify by assuming that the
3158 registers raw and virtual sizes are identical.
3159 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3160 comment.
3161 * arch-utils.c (generic_register_size): Simplify by assuming
3162 register_type.
3163
73f458fb
AC
3164 * regcache.c (legacy_read_register_gen, real_register)
3165 (legacy_write_register_gen): Delete, not used.
3166
336a3131
AC
3167 * regcache.c (struct regcache_descr): Delete legacy_p.
3168 (init_legacy_regcache_descr): Delete function.
3169 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3170 Do not use deprecated register functions.
3171 (regcache_raw_read, deprecated_write_register_gen):
3172 (deprecated_read_register_gen, regcache_raw_write): Delete code
3173 predicated on legacy_p.
3174 (register_size): Delete check against register raw size.
3175
c1d546cd
AC
3176 * cris-tdep.c (cris_register_type): Replace
3177 cris_register_virtual_type.
3178 (cris_gdbarch_init): Update, set register_type.
3179
48c2c0a6
AC
3180 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3181 * gdbarch.h, gdbarch.c: Re-generate.
3182 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3183 (arm_gdbarch_init) Do not set frameless function invocation.
3184 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3185 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3186 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3187 (frv_gdbarch_init): Do not set frameless function invocation.
3188 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3189 * sh-tdep.c (sh_gdbarch_init): Ditto.
3190 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3191 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3192 * avr-tdep.c (avr_gdbarch_init): Ditto.
3193
474093a6
AC
3194 * blockframe.c (legacy_frame_chain_valid): Delete function.
3195
3c109c8b
AC
3196 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3197 and pc. Update comments.
3198 (pc_in_dummy_frame): Delete function.
3199 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3200 use the "id".
3201 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3202 call_hi, top and pc, use the id.
3203 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3204
96860204
AC
3205 * dummy-frame.c: Include "gdb_string.h".
3206 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3207 (generic_save_dummy_frame_tos): Delete.
3208 (dummy_frame_push): New function, replaces above.
3209 * dummy-frame.h: Update copyright.
3210 (dummy_frame_push): Declare.
3211 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3212 (generic_save_call_dummy_addr): Delete declarations.
3213 * infcall.c: Include "dummy-frame.h".
3214 (call_function_by_hand): Add locals caller_regcache,
3215 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3216 with call to frame_save_as_regcache plus cleanup. Delete calls to
3217 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3218 Move clear_proceed_status to just before the resume, add call to
3219 dummy_frame_push (discard cleanup).
3220 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3221 (dummy-frame.o): Add $(gdb_string_h).
3222
d67ec5db
AC
32232004-08-01 Andrew Cagney <cagney@gnu.org>
3224
3225 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3226 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3227 * dummy-frame.c (find_dummy_frame): Delete.
3228 (struct dummy_frame_cache, dummy_frame_sniffer)
3229 (dummy_frame_prev_register, dummy_frame_this_id)
3230 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3231 frame unwinder using a dummy_frame_cache.
3232
a81dcb05
AC
32332004-08-01 Andrew Cagney <cagney@gnu.org>
3234
3235 * frame.h (frame_save_as_regcache): Declare.
3236 * frame.c (frame_save_as_regcache): New function.
3237 (do_frame_read_register): Replace do_frame_unwind_register.
3238 (frame_pop): Use frame_save_as_regcache.
3239 * dummy-frame.c (generic_push_dummy_frame): Use
3240 frame_save_as_regcache.
3241
aa495d11
JB
32422004-08-01 Joel Brobecker <brobecker@gnat.com>
3243
3244 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3245 file as included until we record the first line in the linetable.
3246
ff65ac78
AC
32472004-08-01 Andrew Cagney <cagney@gnu.org>
3248
3249 * frame.h (deprecated_pop_dummy_frame)
3250 (deprecated_read_register_dummy)
3251 (deprecated_generic_find_dummy_frame): Delete.
3252 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3253 (deprecated_read_register_dummy)
3254 (deprecated_find_dummy_frame_regcache)
3255 (discard_innermost_dummy)
3256 (deprecated_pop_dummy_frame): Delete.
3257 (dummy_frame_this_id): Simplify.
3258 (struct dummy_frame): Delete "fp" and "sp".
3259 (find_dummy_frame): Simplify.
3260 (generic_push_dummy_frame): Do not set "fp" or "sp".
3261 (fprint_dummy_frames): Do not print "fp" and "sp"
3262
37bdc87e
MK
32632004-08-01 Mark Kettenis <kettenis@gnu.org>
3264
3265 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3266 (struct i386_insn): New structure.
3267 (i386_match_insn): New function.
3268 (i386_frame_setup_skip_insns): New variable.
3269 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3270 array i386_frame_setup_insns of instructions that should be
3271 skipped inside the frame setup sequence.
3272
8241eaa6
AC
32732004-08-01 Andrew Cagney <cagney@gnu.org>
3274
5bc602c7
AC
3275 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3276 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3277 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3278 * stack.c (frame_info): Delete references to
3279 DEPRECATED_FRAME_INIT_SAVED_REGS and
3280 deprecated_get_frame_saved_regs.
3281 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3282 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3283 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3284 (frame_unwind_register_signed)
3285 (frame_unwind_register_unsigned)
3286 (frame_unwind_unsigned_register): Use register_size.
3287 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3288 (deprecated_frame_xmalloc_with_cleanup)
3289 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3290 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3291
03d363a1
AC
3292 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3293 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3294 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3295 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3296
8241eaa6
AC
3297 * infcall.c (call_function_by_hand): Do not use
3298 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3299 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3300 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3301 DEPRECATED_STACK_ALIGN.
3302
f00df8b7
AC
33032004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3304
3305 Committed by Andrew Cagney.
3306 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3307
eec63939
AC
33082004-08-01 Andrew Cagney <cagney@gnu.org>
3309
3310 * mips-tdep.c (mips16_frame_cache)
3311 (mips16_frame_this_id, mips16_frame_prev_register)
3312 (mips16_frame_unwind, mips16_frame_sniffer)
3313 (mips16_frame_base_address, mips16_frame_base)
3314 (mips16_frame_base_sniffer, mips32_frame_cache)
3315 (mips32_frame_this_id, mips32_frame_prev_register)
3316 (mips32_frame_unwind, mips32_frame_sniffer)
3317 (mips32_frame_base_address, mips32_frame_base)
3318 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3319 separate heuristic mips16 and mips32 unwinders.
3320 (mips_stub_frame_cache, mips_stub_frame_this_id)
3321 (mips_stub_frame_prev_register)
3322 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3323 (mips_stub_frame_base_address, mips_stub_frame_base)
3324 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3325 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3326 match true mdebug frames.
3327 (non_heuristic_proc_desc): Add forward declaration.
3328
e66299b3
AC
33292004-08-01 Andrew Cagney <cagney@gnu.org>
3330
83cbbf3e
AC
3331 * config/mips/tm-irix6.h: Delete file.
3332 * config/mips/tm-irix5.h: Delete file.
3333 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3334 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3335
22d41b37
AC
3336 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3337 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3338 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3339 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3340 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3341 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3342 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3343 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3344 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3345 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3346 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3347 (TARGET_SIGNAL_RAW_VALUES): Delete.
3348 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3349 Delete.
3350 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3351 (TARGET_HW_WATCH_LIMIT): Delete.
3352 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3353 * minimon.h: Delete file.
3354
e66299b3
AC
3355 * trad-frame.c (trad_frame_get_this_base)
3356 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3357 functions.
3358 * trad-frame.h (trad_frame_set_this_base)
3359 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3360
1f67027d
AC
33612004-07-31 Andrew Cagney <cagney@gnu.org>
3362
3363 * trad-frame.c (trad_frame_get_prev_register): Rename
3364 trad_frame_get_prev_register.
3365 * vax-tdep.c (vax_frame_prev_register): Update.
3366 * trad-frame.h: Update.
3367 * trad-frame.c (trad_frame_get_register): Update.
3368 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3369 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3370 Update.
3371 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3372 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3373 Update.
3374 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3375 Update.
3376 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3377 Update.
3378 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3379 Update.
3380 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3381 Update.
3382 * s390-tdep.c (s390_frame_prev_register)
3383 (s390_stub_frame_prev_register)
3384 (s390_sigtramp_frame_prev_register): Update.
3385 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3386 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3387 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3388 * m88k-tdep.c (m88k_frame_prev_register)
3389 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3390 * m32r-tdep.c (m32r_frame_prev_register): Update.
3391 * hppa-tdep.c (hppa_frame_prev_register_helper)
3392 * frv-tdep.c (frv_frame_prev_register): Update.
3393 * d10v-tdep.c (d10v_frame_prev_register): Update.
3394 * cris-tdep.c (cris_frame_prev_register): Update.
3395 * avr-tdep.c (avr_frame_prev_register): Update.
3396 * arm-tdep.c (arm_prologue_prev_register)
3397 (arm_sigtramp_prev_register): Update.
3398
c1bf6f65
AC
33992004-07-31 Andrew Cagney <cagney@gnu.org>
3400
3401 * frame.h (legacy_saved_regs_unwind)
3402 (legacy_frame_chain_valid, legacy_frame_p)
3403 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
3404 * dummy-frame.c (dummy_frame_this_id): Simplify.
3405 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
3406 * frame.c (struct frame_info): Delete the field "type".
3407 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3408 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3409 (legacy_saved_regs_unwind, legacy_frame_p)
3410 (frame_type_from_pc): Delete.
3411 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3412 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3413
dc856692
MK
34142004-07-31 Mark Kettenis <kettenis@gnu.org>
3415
5a5effe1
MK
3416 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3417 indentation.
3418
d4fd50a6
MK
3419 * mips-nat.c: Remove file.
3420 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3421 (mips-nat.o): Remove dependency.
3422
2689df5a
MK
3423 * infptrace.c: Update copyright year.
3424 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3425 explicitly setting the buffer to all zeroes.
3426
dc856692
MK
3427 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3428 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3429
763910e0
AC
34302004-07-30 Andrew Cagney <cagney@gnu.org>
3431
3432 * GDB 6.2 released from gdb_6_2-branch.
3433
0b66e38c
EZ
34342004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3435
3436 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3437
3438 * exec.c (exec_file_attach):
3439 * nto-tdep.c (nto_find_and_open_solib):
3440 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3441 * solib.c (solib_open):
3442 * somsolib.c (som_solib_sizeof_symbol_table):
3443 * source.c (is_regular_file, openp, open_source_file):
3444 * symfile.c (symfile_bfd_open):
3445 * wince.c (upload_to_device): Differentiate between the search for
3446 binary and source files.
3447
be7d7357
AC
34482004-07-30 Andrew Cagney <cagney@gnu.org>
3449
3450 * complaints.c (_initialize_complaints): Pass NULL to
3451 add_setshow_zinteger_cmd for help_doc.
3452 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3453
ddc9cd0f
AC
34542004-07-30 Andrew Cagney <cagney@gnu.org>
3455
3456 Fix PR i18n/761.
3457 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3458 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3459 $(PACKAGE).pot and update-po.
3460 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3461 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3462 (update-po): New rules.
3463 (localedir): Define using autoconf.
3464 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3465 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3466 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3467 * configure.in: Generate CATALOGS and LINGUAS from contents of
3468 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3469 * configure: Re-generate.
3470 * po/gdbtext: New file
3471
e92f3704
JG
34722004-07-30 Jerome Guitton <guitton@gnat.com>
3473
3474 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3475 order.
3476
b0f35d58
DL
34772004-07-30 David Lecomber <dsl@sources.redhat.com>
3478
3479 * dwarf2read.c (read_file_scope): Set producer if attribute
3480 present.
3481 (struct dwarf2_cu): Added new member producer.
3482
ce7d4522
JG
34832004-07-30 Jerome Guitton <guitton@gnat.com>
3484
3485 * inflow.c (kill_command): release file handles in BFD.
3486 * exec.c (exec_file_attach): Ditto.
3487 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3488
05ee07c7
AC
34892004-07-29 Andrew Cagney <cagney@gnu.org>
3490
3491 * PROBLEMS (mips-irix): Note that it is broken.
3492
62eceb47
AC
34932004-07-29 Andrew Cagney <cagney@gnu.org>
3494
e57b8d41
AC
3495 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3496 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3497
d334389b
AC
3498 * config/xm-nbsd.h: Delete file.
3499 * config/arm/xm-nbsd.h: Delete file.
3500 * config/i386/xm-nbsd.h: Delete file.
3501 * config/ns32k/xm-nbsd.h: Delete file.
3502 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3503 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3504 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3505 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3506 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3507
e910f676
AC
3508 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3509 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3510 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3511 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3512 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3513 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3514
6fa856b9
AC
3515 * config/powerpc/xm-linux.h: Delete empty file.
3516 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3517 * config/powerpc/linux.mh (XM_FILE): Delete.
3518 * config/m68k/xm-linux.h: Delete empty file.
3519 * config/m68k/linux.mh (XM_FILE): Delete.
3520 * config/ia64/xm-linux.h: Delete empty file.
3521 * config/ia64/linux.mh (XM_FILE): Delete.
3522 * config/arm/xm-linux.h: Delete empty file.
3523 * config/arm/linux.mh (XM_FILE): Delete.
3524
471ae5ae
AC
3525 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3526 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3527 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3528 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3529 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3530 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3531 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3532 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3533
62eceb47
AC
3534 * config/m68k/xm-m68k.h: Delete file.
3535 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3536 copyright.
3537 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3538 * config/pa/xm-linux.h: Delete empty file.
3539 * config/pa/linux.mh (XM_FILE): Delete.
3540 * config/i386/xm-i386.h: Delete empty file.
3541 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3542 "i386/xm-i386.h".
3543 * config/i386/obsdaout.mh (XM_FILE): Delete.
3544 * config/i386/obsd64.mh (XM_FILE): Delete.
3545 * config/i386/fbsd64.mh (XM_FILE): Delete.
3546 * config/i386/nto.mh (XM_FILE): Delete.
3547 * config/i386/obsd.mh (XM_FILE): Delete.
3548 * config/i386/linux64.mh (XM_FILE): Delete.
3549 * config/i386/linux.mh (XM_FILE): Delete.
3550 * config/i386/i386sol2.mh (XM_FILE): Delete.
3551 * config/i386/i386gnu.mh (XM_FILE): Delete.
3552 * config/i386/fbsd.mh (XM_FILE): Delete.
3553 * config/i386/nbsd64.mh (XM_FILE): Delete.
3554
c35f4ffc
AC
35552004-07-29 Andrew Cagney <cagney@gnu.org>
3556
3557 * config/pa/xm-linux.h: Do not include "floatformat.h".
3558 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3559 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3560 * config/i386/xm-i386.h: Do not include "floatformat.h".
3561 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3562 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3563 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3564 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3565 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3566 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3567 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3568 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3569 * configure, config.in: Regenerate.
3570 * configure.host (gdb_host_float_format, gdb_host_double_format)
3571 (gdb_host_long_double_format): Set according to the host.
3572
624a44a3
AC
35732004-07-29 Andrew Cagney <cagney@gnu.org>
3574
3575 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3576
0dea2468
AC
35772004-07-28 Andrew Cagney <cagney@gnu.org>
3578
3579 * PROBLEMS: Mention threads/1650.
3580 * NEWS: Mention the NPTL fix.
3581
b3f42336
AC
35822004-07-28 Andrew Cagney <cagney@gnu.org>
3583
3584 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3585 (add_setshow_cmd_full): Make static.
3586 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3587 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3588 * cli/cli-decode.c (add_setshow_filename_cmd)
3589 (add_setshow_string_cmd): New functions.
3590 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3591 * mips-tdep.c (_initialize_mips_tdep): Update.
3592 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3593 * cli/cli-logging.c (_initialize_cli_logging): Update.
3594 * complaints.c (_initialize_complaints): Update.
3595 * remote.c (_initialize_remote): Update.
3596
3b64bf98
AC
35972004-07-28 Andrew Cagney <cagney@gnu.org>
3598
3599 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3600 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3601 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3602 print parameters. Make string parameters constant.
3603 * command.h: Update. Update copyright.
3604 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3605 * observer.c (_initialize_observer): Ditto.
3606 * frame.c (_initialize_frame): Ditto.
3607 * complaints.c (_initialize_complaints): Ditto.
3608 * maint.c (_initialize_maint_cmds): Ditto.
3609 * target.c (initialize_targets): Ditto.
3610 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3611 * infcall.c (_initialize_infcall): Ditto.
3612 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3613 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3614 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3615 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3616 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3617
e9667a65
AC
36182004-07-28 Andrew Cagney <cagney@gnu.org>
3619
54a5b07d
AC
3620 * gdbtypes.c (lookup_primitive_typename): Delete function.
3621 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3622 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3623 * gdbtypes.c (lookup_typename): Ditto.
3624 * f-exp.y (yylex): Ditto.
3625 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3626
e9667a65
AC
3627 * scm-lang.c (c_builtin_types): Delete extern declaration.
3628 (scm_language_defn): Replace
3629 string_char_type and primitive_type_vector with
3630 la_language_arch_info.
3631 * jv-lang.c (java_language_defn): Replace
3632 string_char_type and primitive_type_vector with
3633 la_language_arch_info.
3634 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3635 c_builtin_types in comment.
3636 * c-lang.h (struct language_arch_info): Declare opaque.
3637 (c_language_arch_info): Declare.
3638 (c_builtin_types): Delete declaration.
3639 * c-lang.c (c_language_arch_info): Set string_char_type to
3640 builtin_char, not builtin_true_char. Make global.
3641 (c_builtin_types): Delete array.
3642 (asm_language_defn, minimal_language_defn): Replace
3643 string_char_type and primitive_type_vector with
3644 la_language_arch_info.
3645
685419e2
AC
36462004-07-28 Andrew Cagney <cagney@gnu.org>
3647
3648 * gdbtypes.h (struct builtin_type): Rename true_char to
3649 builtin_true_char.
3650 * gdbtypes.c (gdbtypes_post_init): Update.
3651 * c-lang.c (arch_info): New function.
3652 (enum c_primitive_types): New enum.
3653 (c_language_defn): Instead of string_char_type and
3654 primitive_type_vector set la_language_arch_info.
3655
5a44ea29
AC
36562004-07-28 Andrew Cagney <cagney@gnu.org>
3657
3658 * language.h (struct language_arch_info): Fix typo
3659 s/primative/primitive/.
3660 * gdbtypes.c (lookup_primitive_typename): Ditto.
3661 * language.c (language_lookup_primitive_type_by_name)
3662 (unknown_language_arch_info): Ditto.
3663
f290d38e
AC
36642004-07-27 Andrew Cagney <cagney@gnu.org>
3665
3666 * defs.h (enum language): Add nr_languages.
3667 * language.h (struct language_arch_info): Define.
3668 (struct language_defn): Add la_language_arch_info.
3669 (language_lookup_primative_type_by_name): Declare.
3670 (language_string_char_type): Declare.
3671 * language.c (_initialize_language, language_gdbarch_post_init)
3672 (struct language_gdbarch, language_gdbarch_data): Implement
3673 per-architecture language information.
3674 (unknown_language_arch_info, language_string_char_type)
3675 (language_lookup_primative_type_by_name): New functions.
3676 (unknown_language_defn, auto_language_defn)
3677 (local_language_defn): Set la_language_arch_info to
3678 unknown_language_arch_info.
3679 (unknown_builtin_types): Delete.
3680 * gdbtypes.c (lookup_primitive_typename): Use
3681 language_lookup_primative_type_by_name.
3682 (create_string_type): Use language_string_char_type.
3683 * values.c (value_from_string): Use language_string_char_type.
3684 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3685 * p-lang.c (pascal_language_defn): Ditto.
3686 * m2-lang.c (m2_language_defn): Ditto.
3687 * jv-lang.c (java_language_defn): Ditto.
3688 * objc-lang.c (objc_language_defn): Ditto.
3689 * f-lang.c (f_language_defn): Ditto.
3690 * c-lang.c (c_language_defn, cplus_language_defn)
3691 (asm_language_defn, minimal_language_defn): Ditto.
3692
000177f0
AC
36932004-07-27 Andrew Cagney <cagney@gnu.org>
3694
3695 * gdbtypes.h (struct builtin_type): Declare.
3696 (builtin_type): Declare.
3697 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3698 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3699 (gdbtypes_post_init): New function.
3700 (builtin_type): New function.
3701
e22f895c
KI
37022004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3703
3704 * remote-m32r-sdi.c: Fix breakpoint bug.
3705 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3706 recv_char_data, recv_long_data): New functions to replace communication
3707 sequences.
3708
536517dd
MC
37092004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3710
3711 Document PR threads/1650.
3712 * PROBLEMS (Threads): Document problem with many threads
3713
a0a44d18
AC
37142004-07-26 Andrew Cagney <cagney@gnu.org>
3715
3716 * gdb-mi.el: Move from here ...
3717 * mi/gdb-mi.el: ... to here.
3718
7ac4ac06
AC
37192004-07-26 Andrew Cagney <cagney@gnu.org>
3720
3721 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3722 * main.c (captured_main): When in batch mode always detach.
3723
a1b461bf
AC
37242004-07-26 Andrew Cagney <cagney@gnu.org>
3725
3726 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3727 and h8300 as broken.
3728 * NEWS: END-OF-LIFE frame compatibility module.
3729 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3730 specific comments.
3731
cb1a6d5f
AC
37322004-07-26 Andrew Cagney <cagney@gnu.org>
3733
3734 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3735 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3736 * wince.c (_initialize_wince): Update.
3737 * win32-nat.c (_initialize_win32_nat): Update.
3738 * varobj.c (_initialize_varobj): Update.
3739 * valops.c (_initialize_valops): Update.
3740 * utils.c (initialize_utils, initialize_utils): Update.
3741 * tui/tui-win.c (_initialize_tui_win): Update.
3742 * top.c (init_main): Update.
3743 * symfile.c (_initialize_symfile): Update.
3744 * source.c (_initialize_source): Update.
3745 * somsolib.c (_initialize_som_solib): Update.
3746 * solib.c (_initialize_solib): Update.
3747 * solib-frv.c (_initialize_frv_solib): Update.
3748 * serial.c (_initialize_serial): Update.
3749 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3750 * remote.c (_initialize_remote, _initialize_remote): Update.
3751 * remote-vx.c (_initialize_vx): Update.
3752 * remote-utils.c (_initialize_sr_support): Update.
3753 * remote-sds.c (_initialize_remote_sds): Update.
3754 * remote-mips.c (_initialize_remote_mips): Update.
3755 * remote-e7000.c (_initialize_remote_e7000): Update.
3756 * proc-api.c (_initialize_proc_api): Update.
3757 * printcmd.c: Update.
3758 * parse.c (_initialize_parse): Update.
3759 * pa64solib.c (_initialize_pa64_solib): Update.
3760 * p-valprint.c (_initialize_pascal_valprint): Update.
3761 * monitor.c (_initialize_remote_monitors): Update.
3762 * mips-tdep.c (_initialize_mips_tdep): Update.
3763 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3764 * maint.c (_initialize_maint_cmds): Update.
3765 * lin-lwp.c (_initialize_lin_lwp): Update.
3766 * language.c (_initialize_language): Update.
3767 * kod.c (_initialize_kod): Update.
3768 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3769 * i386-tdep.c (_initialize_i386_tdep): Update.
3770 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3771 * gdbarch.sh: Update.
3772 * gdbarch.c: Re-generate.
3773 * gdb-events.sh: Update.
3774 * gdb-events.c: Re-generate.
3775 * frame.c (_initialize_frame): Update.
3776 * exec.c: Update.
3777 * demangle.c (_initialize_demangler): Update.
3778 * dcache.c (_initialize_dcache): Update.
3779 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3780 * cp-valprint.c (_initialize_cp_valprint): Update.
3781 * corefile.c (_initialize_core): Update.
3782 * command.h: Update.
3783 * cli/cli-decode.h: Update.
3784 * cli/cli-cmds.c (init_cli_cmds): Update.
3785 * charset.c (_initialize_charset): Update.
3786 * breakpoint.c (_initialize_breakpoint): Update.
3787 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3788 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3789 * aix-thread.c (_initialize_aix_thread): Update.
3790
b4632131
MK
37912004-07-24 Mark Kettenis <kettenis@gnu.org>
3792
3793 Partial fix for PR backtrace/1718.
3794 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3795 that GCC migrates into the prolugue. Don't handle any
3796 instructions that clobber %ebx.
3797
822c9732
AC
37982004-07-23 Andrew Cagney <cagney@gnu.org>
3799
3800 Use regcache_raw_collect instead of regcache_collect.
3801 * regcache.h (regcache_collect): Delete declaration.
3802 * regcache.c (regcache_colect): Delete function.
3803 * win32-nat.c (do_child_store_inferior_registers): Update.
3804 * sol-thread.c (sol_thread_store_registers): Update.
3805 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3806 * rs6000-nat.c (store_register): Update.
3807 * remote.c (store_register_using_P, remote_store_registers): Update.
3808 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3809 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3810 (fill_vrregset, store_spe_registers, fill_gregset)
3811 (fill_gregset): Update.
3812 * nto-procfs.c (procfs_store_registers): Update.
3813 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3814 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3815 * m68klinux-nat.c (store_register, fill_gregset): Update.
3816 * m68k-tdep.c (fill_gregset): Update.
3817 * infptrace.c (store_register): Update.
3818 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3819 * i386-linux-nat.c (store_register, fill_gregset): Update.
3820 * hppa-linux-nat.c (fill_gregset): Update.
3821 * go32-nat.c (store_register): Update.
3822 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3823 (store_fp_regs): Update.
3824 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3825 (store_nwfpe_extended, store_fpregister, store_fpregs)
3826 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3827 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3828 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3829 (store_regs_user_thread, store_regs_kernel_thread): Update.
3830
32b05c07
MK
38312004-07-24 Mark Kettenis <kettenis@gnu.org>
3832
3833 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3834 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3835 encoding.
3836 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3837 member of `struct comp_unit'.
3838
8567c30f
AC
38392004-07-23 Andrew Cagney <cagney@gnu.org>
3840
3841 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3842 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3843
f6da8dd8
MH
38442004-07-23 Martin Hunt <hunt@redhat.com>
3845 Kevin Buettner <kevinb@redhat.com>
3846
3847 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3848 alignment was being added to the offset instead of multiplied.
3849
bd921882
MK
38502004-07-23 Mark Kettenis <kettenis@gnu.org>
3851
24f033e8
MK
3852 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3853 changed signal trampoline in OpenBSD 3.5-current.
3854
90f3cecd
MK
3855 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3856 <machine/pcb.h> and "bsd-kvm.h".
3857 (sparc64nbsd_supply_pcb): New function.
3858 (_initialize_sparc64nbsd_nat): Renamed from
3859 _initialize_sparcnbsd_nat. Enable libkvm interface.
3860 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3861 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3862 (LOADLIBES): New variable.
3863
a4954a62
MK
3864 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3865
bd921882
MK
3866 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3867
23a6d369
AC
38682004-07-21 Andrew Cagney <cagney@gnu.org>
3869
3870 Use regcache_raw_supply instead of supply_register.
3871 * regcache.h (supply_register): Delete declaration.
3872 * regcache.c (supply_register): Delete function.
3873 * wince.c (do_child_fetch_inferior_registers): Update.
3874 * win32-nat.c (do_child_fetch_inferior_registers)
3875 (fetch_elf_core_registers): Update.
3876 * v850ice.c (v850ice_fetch_registers): Update.
3877 * thread-db.c (thread_db_store_registers): Update.
3878 * sol-thread.c (sol_thread_store_registers): Update.
3879 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3880 * rs6000-nat.c (fetch_register): Update.
3881 * rom68k-rom.c (rom68k_supply_one_register): Update.
3882 * remote.c (remote_wait, remote_async_wait): Update.
3883 * remote-st.c (get_hex_regs): Update.
3884 * remote-sim.c (gdbsim_fetch_register): Update.
3885 * remote-sds.c (sds_fetch_registers): Update.
3886 * remote-rdp.c (remote_rdp_fetch_register): Update.
3887 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3888 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3889 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3890 * remote-hms.c (init_hms_cmds): Update.
3891 * remote-est.c (init_est_cmds): Update.
3892 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3893 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3894 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3895 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3896 (fetch_register, supply_vrregset, supply_vrregset)
3897 (fetch_spe_registers): Update.
3898 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3899 * monitor.c (monitor_supply_register): Update.
3900 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3901 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3902 (mipsnbsd_supply_fpreg): Update.
3903 * mips-nat.c (fetch_inferior_registers)
3904 (fetch_core_registers): Update.
3905 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3906 (supply_fpregset, mips64_supply_gregset)
3907 (mips64_supply_fpregset): Update.
3908 * m68klinux-nat.c (fetch_register, supply_gregset)
3909 (supply_fpregset): Update.
3910 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3911 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3912 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3913 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3914 * infptrace.c (fetch_register): Update.
3915 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3916 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3917 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3918 (gnu_fetch_registers, gnu_store_registers): Update.
3919 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3920 * i386-linux-nat.c (fetch_register, supply_gregset)
3921 (dummy_sse_values): Update.
3922 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3923 * hppah-nat.c (fetch_register): Update.
3924 * hppa-linux-nat.c (fetch_register, supply_gregset)
3925 (supply_fpregset): Update.
3926 * go32-nat.c (fetch_register): Update.
3927 * dve3900-rom.c (fetch_bitmapped_register)
3928 (_initialize_r3900_rom): Update.
3929 * cris-tdep.c (supply_gregset): Update.
3930 * abug-rom.c (init_abug_cmds): Update.
3931 * core-aout.c (fetch_core_registers): Update.
3932 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3933 (fetch_register, fetch_fp_register): Update.
3934 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3935 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3936 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3937 * alphanbsd-tdep.c (fetch_core_registers): Update.
3938 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3939 * alpha-nat.c (fetch_osf_core_registers)
3940 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3941 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3942 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3943
73cc75f3
AC
39442004-07-21 Andrew Cagney <cagney@gnu.org>
3945
3946 * PROBLEMS: Mention breakpoints/1702.
3947 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3948 that is known to work.
3949
a53c66de
AC
39502004-07-21 Andrew Cagney <cagney@gnu.org>
3951
3952 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3953 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3954 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3955 (handle_inferior_event): Wrap call to deprecated
3956 IGNORE_HELPER_CALL in #ifdef.
3957 * config/mips/tm-nbsd.h: Update.
3958
708ff411
JB
39592004-07-20 Jim Blandy <jimb@redhat.com>
3960
412b3060
JB
3961 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3962 bfd_mach_ppc has no segment registers.
3963
13ac140c
JB
3964 Include PowerPC SPR numbers for special-purpose registers.
3965 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3966 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3967 new member in initializer.
3968 (S, S4, SN4, S64): New macros for defining special-purpose
3969 registers.
3970 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3971 registers_403, registers_403GC, registers_505, registers_860,
3972 registers_601, registers_602, registers_603, registers_604,
3973 registers_750, registers_e500): Use them.
3974
708ff411
JB
3975 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3976 replace references with expression used to initialize variable.
3977
1f602b35
AC
39782004-07-20 Andrew Cagney <cagney@gnu.org>
3979
3980 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3981 read_memory_nobpt.
3982 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3983 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3984 (s390_sigtramp_frame_sniffer): Update.
3985 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3986 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3987 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3988 (mips32_fetch_instruction): Update.
3989 * mcore-tdep.c (get_insn): Update.
3990 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3991 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3992 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3993 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3994 (i386_linux_rt_sigtramp_start): Update.
3995 * i386-linux-nat.c (child_resume): Update.
3996 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3997 * hppa-linux-tdep.c (insns_match_pattern): Update.
3998 * gdbcore.h: Update.
3999 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4000 * frame.c (safe_frame_unwind_memory): Update.
4001 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4002 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4003 * alpha-tdep.c (alpha_read_insn): Update.
4004
2cd8546d
AC
40052004-07-20 Andrew Cagney <cagney@gnu.org>
4006
4007 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4008 containing both bytes and mask. Add "frame_type".
4009 * tramp-frame.c (tramp_frame_start): Update.
4010 (tramp_frame_prepend_unwinder): Update.
4011 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4012 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4013 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4014 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4015
f928dd62
EZ
40162004-07-19 Eli Zaretskii <eliz@gnu.org>
4017
4018 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4019 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4020 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4021 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4022
d5c560f7
AC
40232004-07-17 Andrew Cagney <cagney@gnu.org>
4024
860660cb
AC
4025 * NEWS, PROBLEMS: Update for 6.2.
4026
8c266f54
AC
4027 * README: Update to 6.2.
4028
a552edd9
AC
4029 * utils.c (xvasprintf): Call xstrvprintf.
4030
c4a172b5
AC
4031 * parse.c: Update copyright.
4032 (null_post_parser): Eliminate ARGSUSED.
4033
da745b36
AC
4034 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4035 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4036 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4037
9cbc6ef0
AC
4038 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4039 * ppc-linux-nat.c: Use "Linux kernel".
4040 * hppa-linux-tdep.c: Use GNU/Linux.
4041 * hppa-linux-nat.c: Use GNU/Linux.
4042 * dwarfread.c: Add [sic] to use of Linux.
4043
1b89295f
AC
4044 * hppa-linux-nat.c: Do not include <string.h>.
4045 (supply_fpregset): Remove "register" attribute.
4046
d5c560f7
AC
4047 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4048
7ddd7709
MK
40492004-07-17 Mark Kettenis <kettenis@gnu.org>
4050
b1d19a62
MK
4051 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4052 * configure, config.in: Regenerated.
4053
7ddd7709
MK
4054 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4055 "bsd-kvm.h".
4056 (vaxbsd_supply_pcb): New function.
4057 (_initialize_vaxbsd_nat): New prototype and function.
4058 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4059 solib-sunos.o.
4060 (LOADLIBES): New variable.
4061 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4062 (LOADLIBES): New variable.
4063 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4064 (LOADLIBES): New variable.
4065 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4066
2c07db7a
AC
40672004-07-16 Andrew Cagney <cagney@gnu.org>
4068
4069 * defs.h (event_loop_p): Replace variable declaration with macro,
4070 always 1.
4071 * main.c (captured_main): Delete options "-async" and "-noasync".
4072 (event_loop_p): Delete variable.
4073 * NEWS: Mention that "-async" and "-noasync" were removed.
4074
717eb1cf
AC
40752004-07-16 Andrew Cagney <cagney@gnu.org>
4076
4077 * remote-m32r-sdi.c: Re-indent.
4078
c101bc14
JB
40792004-07-16 Jim Blandy <jimb@redhat.com>
4080
5109a438
JB
4081 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4082 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4083 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4084 missing MPC823 SPRs.
4085 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4086 incorrect. (This was corrected in GDB's register name tables on
4087 2004-07-14.)
4088
c101bc14
JB
4089 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4090 should be "esasrr" ("ESA Save and Restore Register").
4091
7ce450bd
AC
40922004-07-16 Andrew Cagney <cagney@gnu.org>
4093
4094 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4095 calls, no longer applicable. Update comments and rename parameter
4096 "step_frame" to "return_frame".
4097
ca73dd9d
AC
40982004-07-16 Andrew Cagney <cagney@gnu.org>
4099
4100 * frame.c (fprint_field): New function.
4101 (fprint_frame_id): Use fprint_field.
4102
31941f6d
JB
41032004-07-15 Joel Brobecker <brobecker@gnat.com>
4104
4105 * ada-lang.c (ada_language_defn): Remove commented out code.
4106
f86a7158
JB
41072004-07-15 Jim Blandy <jimb@redhat.com>
4108
4109 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4110 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4111
c24791ec
JB
41122004-07-14 Jim Blandy <jimb@redhat.com>
4113
29bb1356
JB
4114 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4115
cc98b5cc
JB
4116 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4117
8f088af7
JB
4118 * ppc-tdep.h (ppc_num_srs): New enum constant.
4119
0ea0ec5f
JB
4120 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4121 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4122 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4123 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4124 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4125 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4126 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4127 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4128 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4129 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4130 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4131 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4132 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4133 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4134 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4135 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4136 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4137 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4138 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4139 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4140 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4141 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4142 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4143 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4144 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4145 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4146 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4147 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4148 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4149 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4150 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4151 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4152 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4153 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4154 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4155 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4156 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4157 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4158 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4159 special-purpose register numbers.
4160
c24791ec
JB
4161 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4162 manual mentions 'md_twb', but many mention 'm_twb', and at that
4163 point in the register list.)
4164
d833db3b
AC
41652004-07-14 Andrew Cagney <cagney@gnu.org>
4166
4167 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4168 instead of "internal-error".
4169
080228b2
JB
41702004-07-10 Joel Brobecker <brobecker@gnat.com>
4171
4172 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4173 that was inserted inside a comment.
4174
c268433a
RC
41752004-07-10 Randolph Chung <tausq@debian.org>
4176
4177 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4178 function.
4179 (hppa_hpux_push_dummy_code): New function.
4180 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4181 Set find_global_pointer method.
4182
71009278
MK
41832004-07-10 Mark Kettenis <kettenis@gnu.org>
4184
4185 * NEWS: Mention BSD libkvm interface.
4186
b2fa5097
MS
41872004-07-10 Michael Snyder <msnyder@redhat.com>
4188
4189 * symfile.c (generic_load): Comment typo.
4190 * stack.c (get_selected_block): Ditto.
4191 * regcache.c (regcache_cooked_read): Ditto.
4192 * monitor.c (monitor_debug): Ditto.
4193 * mips-tdep.c (mips_read_pc): Ditto.
4194 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4195 * gdb_mbuild.sh: Ditto.
4196 * gdbarch.sh: Ditto.
4197 * gdbarch.h: Ditto.
4198
c3e5cd34
PH
41992004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4200
8a2225b2
PH
4201 * ada-tasks.c: Remove file.
4202
c3e5cd34
PH
4203 Remove ARI problems:
4204
4205 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4206 beginning of line.
4207
4208 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4209 Add comment.
4210 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4211 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4212 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4213 (UMIN_OF_SIZE): Remove.
4214 (max_of_type): New function to replace orphan macro in gdbtypes.h
4215 (min_of_type): Ditto.
4216 (discrete_type_high_bound): Use max_of_type.
4217 (discrete_type_low_bound): Use min_of_type.
4218 (possible_user_operator_p): Move operator to beginning of line.
4219 (ada_is_variant_part): Ditto.
4220 (ensure_lval): Rewrite to avoid deprecated operations.
4221 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4222 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4223 (ada_enum_name): Remove assignments in 'if' statements.
4224 (build_ada_types): Add gdbarch parameter.
4225 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4226 with gdbarch_data_register_post_init.
4227 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4228 add_show_from_set.
4229
4230 * ada-valprint.c (inspect_it): Remove declaration.
4231 (repeat_count_threshold): Remove declaration.
4232 (ada_print_floating): Remove assignments in 'if' statements.
4233 (print_str): Move operator to beginning of line.
4234
61ce229a
JB
42352004-07-08 Jim Blandy <jimb@redhat.com>
4236
4237 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4238
09bcec80
BR
42392004-07-08 Bob Rossi <bob@brasko.net>
4240
4241 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4242
31c27f77
JJ
42432004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4244
4245 * language.h (struct_language_defn): Add new function pointer:
4246 la_class_name_from_physname. Also add new prototype for
4247 language_class_name_from_physname.
4248 * language.c (language_class_name_from_physname): New function.
4249 (unk_lang_class_name): Ditto.
4250 (unknown_language_defn, auto_language_defn): Change
4251 to add unk_lang_class_name function pointer for
4252 la_class_name_from_physname.
4253 (local_language_defn): Ditto.
4254 * dwarf2read.c (guess_structure_name): Change to call
4255 language_class_name_from_physname.
4256 (determine_class_name): Ditto.
4257 * cp-support.c (class_name_from_physname): Renamed.
4258 (cp_class_name_from_physname): New name of function.
4259 * cp-support.h: Ditto.
4260 * c-lang.c (c_language_defn): Change to add NULL
4261 for class_name_from_physname function pointer.
4262 (cplus_language_defn): Change to add cp_class_name_from_physname.
4263 * jv-lang.c (java_class_name_physname): New function.
4264 (java_find_last_component): New static routine.
4265 (java_language_defn): Add java_class_name_from_physname pointer.
4266 * ada-lang.c (ada_language_defn): Change to add NULL
4267 for class_name_from_physname function pointer.
4268 * f-lang.c (f_language_defn): Ditto.
4269 * m2-lang.c (m2_language_defn): Ditto.
4270 * objc-lang.c (objc_language_defn): Ditto.
4271 * p-lang.c (pascal_language_defn): Ditto.
4272 * scm-lang.c (scm_language_defn): Ditto.
4273
ee28ca0f
AC
42742004-07-06 Andrew Cagney <cagney@gnu.org>
4275
4276 Patch from Bart Robinson.
4277 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4278 (O_LARGEFILE): Define to 0, if not defined.
4279
fdb1bf9d
MK
42802004-07-03 Mark Kettenis <kettenis@gnu.org>
4281
cb162ff6
MK
4282 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4283 <machine/pcb.h> and "bsd-kvm.h".
4284 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4285 (m68kbsd_supply_pcb): New function.
4286 (_initialize_m68kbsd_nat): New prototype and function.
4287 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4288 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4289 (LOADLIBES): New variable.
4290 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4291 (LOADLIBES): New variable.
4292
fdb1bf9d
MK
4293 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4294
963c4174
MK
42952004-07-03 Mark Kettenis <kettenis@gnu.org>
4296
4297 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4298 <sys/proc.h>.
4299 (bsd_kvm_cmdlist): New variable.
4300 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4301 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4302 command and "kvm proc" command.
4303 * Makefile.in (bsd-kvm.o): Update dependencies.
4304
533f1d8f
MK
43052004-07-02 Mark Kettenis <kettenis@gnu.org>
4306
4307 * osabi.c: Update copyright year.
4308 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4309 notes if EI_OSABI is set to ELFOSABI_HPUX.
4310
6780dcde
MS
43112004-07-01 Michael Snyder <msnyder@redhat.com>
4312
4313 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4314 that seems to have gotten whacked out of line.
4315
67bebe79
MK
43162004-07-01 Mark Kettenis <kettenis@gnu.org>
4317
4318 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4319 code.
4320
0b5d8877
PH
43212004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4322
4323 * ada-lang.c (decode_packed_array): Minor change to comment.
4324 (ada_value_slice_ptr): New function.
4325 (ada_value_slice): New function.
4326 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4327 test. Don't know why it is there.
4328 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4329 to avoid dereferencing huge arrays from which one is slicing.
4330 (empty_array): Correct to return an array rather than
4331 a subrange value.
4332 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4333 on empty arrays (let'em use 'FIRST instead).
4334
19c1ef65
PH
43352004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4336
4337 Address complaints from gdb_ari.sh:
4338
4339 * ada-exp.y: Include gdb_string.h rather than string.h.
4340 (convert_char_literal): Reformat declaration.
4341 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4342 * ada-lex.l: Change use of free to xfree (the macro would do so
4343 anyway, but this is harmless).
4344 Include gdb_string.h rather than string.h.
4345 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4346
4347 * ada-lang.c (parse): Remove K&Rism in parameter list.
4348 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4349
d81cbc94
MK
43502004-06-30 Mark Kettenis <kettenis@gnu.org>
4351
4352 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4353 dead code.
4354
07681759
MK
43552004-06-30 Mark Kettenis <kettenis@gnu.org>
4356
4357 * alphabsd-nat.c: Update copyright year.
4358 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4359
f7948b5f
JB
43602004-06-29 Joel Brobecker <brobecker@gnat.com>
4361
6e0cdd28 4362 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
4363 (i386_cygwin_in_solib_call_trampoline): New function.
4364 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4365 and skip_trampoline_code gdbarch methods.
4366
8f113c9a
JB
43672004-06-29 Jim Blandy <jimb@redhat.com>
4368
4369 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4370 name actually used in the dependency lists.
4371
97dc871c
RC
43722004-06-29 Randolph Chung <tausq@debian.org>
4373
4374 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4375
47216e51
CV
43762004-06-29 Corinna Vinschen <vinschen@redhat.com>
4377
4378 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 4379 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
4380 functionality.
4381
e623b504
AC
43822004-06-28 Andrew Cagney <cagney@gnu.org>
4383
4384 * defs.h (xstrvprintf): Declare.
4385 * utils.c (xstrvprintf): New function.
4386 (internal_vproblem, xstrprintf, xasprintf)
4387 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4388 * serial.c (serial_printf): Ditto.
4389 * complaints.c (vcomplaint): Ditto.
4390
79acc9b3
CV
43912004-06-29 Corinna Vinschen <vinschen@redhat.com>
4392
4393 * infcmd.c (attach_command): Move call to target_terminal_inferior
4394 behind loading symbol table.
4395
1daf35d9
AC
43962004-06-28 Andrew Cagney <cagney@gnu.org>
4397
4398 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4399 change - add back extern deprecated_ui_loop_hook declaration.
4400
b435e160
AC
44012004-06-28 Andrew Cagney <cagney@gnu.org>
4402
4403 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4404 xstrprintf.
4405 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4406 (c_value_of_variable): Ditto.
4407 * utils.c (internal_vproblem): Ditto.
4408 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4409 * remote.c (add_packet_config_cmd): Ditto.
4410 * remote-rdp.c (rdp_set_command_line): Ditto.
4411 * regcache.c (regcache_dump): Ditto.
4412 * frv-tdep.c (new_variant, new_variant): Ditto.
4413 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4414 (fbsd_find_memory_regions): Ditto.
4415 * breakpoint.c (create_thread_event_breakpoint)
4416 (create_breakpoints): Ditto.
4417 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4418 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4419
06d5cf63
JB
44202004-06-28 Joel Brobecker <brobecker@gnat.com>
4421
4422 * ada-lang.c: Re-indent file, with some massaging to help indent
4423 a bit when the result is otherwise really too ugly.
4424
35809fad
UW
44252004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4426
4427 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4428 code_addr_p and special_addr_p to 'unsigned int'.
4429
40e20472
MK
44302004-06-27 Mark Kettenis <kettenis@gnu.org>
4431
4432 * i386v4-nat.c: Update copyright year and tweak comment.
4433 (regmap): Remove trailing comma.
4434 (supply_gregset): Rename local variable i to regnum. Call
4435 regcache_raw_supply instead of supply_register.
4436 (fill_gregset): Rename argument regno to regnum. Call
4437 regcache_raw_collect instead of regcache_collect.
4438
12b0b6de
UW
44392004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4440
4441 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4442 and special_addr_p.
4443 (frame_id_build, frame_id_build_special): Update comments.
4444 (frame_id_build_wild): New prototype.
4445 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4446 struct frame_id fields.
4447 (frame_id_build_wild): New function.
4448 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4449
47b42a3e
MK
44502004-06-27 Mark Kettenis <kettenis@gnu.org>
4451
4452 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4453 hppabsd-tdep.c.
4454
1265e4aa
JB
44552004-06-27 Joel Brobecker <brobecker@gnat.com>
4456
4457 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4458
76a01679
JB
44592004-06-27 Joel Brobecker <brobecker@gnat.com>
4460
4461 * ada-lang.c: Re-indent file.
4462
7aca490a
JB
44632004-06-27 Joel Brobecker <brobecker@gnat.com>
4464
4465 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4466 (no_symtab_msg): Likewise.
4467
5e987968
AS
44682004-06-27 Andreas Schwab <schwab@suse.de>
4469
4470 * source.c: Fix whitespace.
4471
315c4276
MK
44722004-06-27 Mark Kettenis <kettenis@gnu.org>
4473
d15be926
MK
4474 * configure.in: Include <sys/param.h> for td_pcb test.
4475 * configure: Regenerated.
4476
9062529b
MK
4477 * i386nbsd-nat.c: New file.
4478 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4479 i386obsd-nat.c and i386obsd-tdep.c.
4480 (i386nbsd-nat.o): New dependency.
4481 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4482 bsd-kvm.o.
4483 (LOADLIBES): New variable.
4484 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4485 bsd-kvm.o.
4486 (LOADLIBES): New variable.
4487
8010310e
MK
4488 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4489 (LOADLIBES): New variable.
4490
efe1d7b9
MK
4491 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4492 fetching from BSD_KVM_PADDR. Correctly lookup address for
4493 "_thread0".
4494
315c4276
MK
4495 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4496 "bsd-kvm.h".
4497 (amd64fbsd_supply_pcb): New funcion.
4498 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4499
399cfac6
DL
45002004-06-27 <david@streamline-computing.com>
4501
4502 Partial fix for PR cli/1056.
4503 * valarith.c: Check for zero in division and remainder
4504 evaluation.
4505
6235f9c8
MK
45062004-06-27 Mark Kettenis <kettenis@gnu.org>
4507
4508 * i387-tdep.c: Remove excessive whitespace.
4509
2726dafc
AC
45102004-06-26 Andrew Cagney <cagney@gnu.org>
4511
4512 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4513 * gdb-events.h, gdb-events.c: Re-generate.
4514 * tui/tui-hooks.c (tui_install_hooks): Update.
4515 (tui_remove_hooks): Update.
4516 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4517
0e56aeaf
MK
45182004-06-26 Mark Kettenis <kettenis@gnu.org>
4519
cb461069
MK
4520 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4521 (gregset_t, fpregset_t): Remove typedefs.
4522 (REG_OFFSET): Rename argument.
4523 (amd64bsd_r_reg_offset): Rename from reg_offset.
4524 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4525 Remove functions.
4526 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4527 of reg_offset.
4528 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4529
ecba89de
MK
4530 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4531
4cd80476
MK
4532 * vax-tdep.c: Tweak comment.
4533
0e56aeaf
MK
4534 Add OpenBSD/hppa support.
4535 * NEWS (New native configurations): Mention OpenBSD/hppa.
4536 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4537 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4538 files.
4539 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4540 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4541 * configure.host: Add hppa*-*-openbsd*.
4542 * configure.tgt: Add hppa*-*-openbsd*.
4543
98bbd631
AC
45442004-06-25 Andrew Cagney <cagney@gnu.org>
4545
4546 * defs.h (deprecated_ui_loop_hook): Deprecated.
4547 * wince.c (child_wait): Update.
4548 * win32-nat.c (child_wait): Update.
4549 * v850ice.c (v850ice_wait): Update.
4550 * top.c (deprecated_ui_loop_hook): Update.
4551 * serial.h: Update.
4552 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4553 (do_unix_readchar): Update.
4554 * ser-tcp.c (net_open): Update.
4555 * remote-sim.c (gdb_os_poll_quit): Update.
4556 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4557
769d7dc4
AC
45582004-06-24 Andrew Cagney <cagney@gnu.org>
4559
4560 * defs.h (deprecated_pre_add_symbol_hook)
4561 (deprecated_post_add_symbol_hook): Deprecated.
4562 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4563 (symbol_file_add_with_addrs_or_offsets): Update references.
4564
11c949aa
AC
45652004-06-24 Andrew Cagney <cagney@gnu.org>
4566
4567 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4568 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4569 * wince.c (ui_loop_hook): Delete extern declaration.
4570 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4571 * v850ice.c (ui_loop_hook): Delete extern declaration..
4572 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4573 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4574 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4575 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4576 ui_loop_hook declaration.
4577
eedc19af
AC
45782004-06-24 Andrew Cagney <cagney@gnu.org>
4579
4580 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4581 entry_func_highpc fields.
4582 * objfiles.c (init_entry_point_info): Do not clear
4583 entry_func_lowpc and entry_func_highpc.
4584 (objfile_relocate): Do not relocate entry_func_lowpc and
4585 entry_func_highpc.
4586 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4587 entry_func_highpc.
4588 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4589 entry_func_highpc.
4590 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4591 entry_func_lowpc and entry_func_highpc with call to
4592 inside_entry_func.
4593
d47079be
MK
45942004-06-24 Mark Kettenis <kettenis@gnu.org>
4595
4596 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4597 quad-precision floating point arguments in registers.
4598
2107e348
MK
45992004-06-24 Mark Kettenis <kettenis@gnu.org>
4600
4601 From Michael Mueller <m.mueller99@kay-mueller.de>:
4602 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4603 account.
4604
46587c42
JJ
46052004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4606
4607 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4608 to -1.
4609 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4610 untriggered watchpoints to a separate if clause. Update function
4611 comment regarding STOPPED_BY_WATCHPOINT argument.
4612
226f5cf4
JB
46132004-06-22 Jim Blandy <jimb@redhat.com>
4614
4615 * gdbarch.sh: Doc fix.
4616
f10683bb
MH
46172004-06-21 Martin Hunt <hunt@redhat.com>
4618 Kevin Buettner <kevinb@redhat.com>
4619
4620 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4621 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4622 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4623 to set_gdbarch_sp_regnum(). Use cooked register number.
4624 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4625
412d5987
AC
46262004-06-21 Andrew Cagney <cagney@gnu.org>
4627
4628 * gdbarch.sh: When the macro field is empty, do not generate a
4629 macro definition. When the macro field is "=", generate the macro
4630 name from the upper-case function name.
4631 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4632 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4633 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4634 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4635 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4636 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4637 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4638 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4639 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4640 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4641 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4642 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4643 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4644 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4645 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4646 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4647 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4648 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4649 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4650 (DEPRECATED_USE_STRUCT_CONVENTION)
4651 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4652 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4653 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4654 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4655 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4656 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4657 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4658 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4659 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4660 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4661 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4662 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4663 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4664 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4665 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4666 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4667 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4668 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4669
68908a3e
AC
46702004-06-21 Andrew Cagney <cagney@gnu.org>
4671
48f7351b
AC
4672 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4673 macro name, and the function rather than macro value. Only wrap
4674 macro print statements in #ifdef. Move format logic to where it
4675 is needed.
4676 * gdbarch.c: Re-generate.
4677
283354d8
AC
4678 * gdbarch.sh (read): Delete "print_p" and "description", add
4679 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4680 Delete references to print_p.
4681 (TARGET_ARCHITECTURE): Delete print predicate.
4682 * gdbarch.c: Re-generate.
4683
68908a3e
AC
4684 * gdbarch.sh: Check that multi-arch methods do not provide a
4685 macro.
4686 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4687 (print_registers_info, print_float_info, print_vector_info)
4688 (adjust_breakpoint_address, remote_translate_xfer_address)
4689 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4690 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4691 name from the multi-arch definition.
4692
a2428dbe
AC
46932004-06-20 Andrew Cagney <cagney@gnu.org>
4694
4695 * gdbarch.sh: Sort by the function, instead of macro name.
4696 * gdbarch.c: Re-generate.
4697
750eb019
AC
46982004-06-20 Andrew Cagney <cagney@gnu.org>
4699
66d659b1
AC
4700 * gdbarch.sh: Use the function, instead of macro name in
4701 errors and the log file.
4702 (return_value): Remove stray ":" in spec.
4703
750eb019
AC
4704 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4705 * gdbarch.h, gdbarch.c: Re-generate.
4706 * Makefile.in (arch-utils.o): Update dependencies.
4707 * values.c (using_struct_return): Move code calling
4708 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4709 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4710 to legacy_return_value, simplify.
4711 * infcmd.c (print_return_value): Move code calling
4712 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4713 to legacy_return_value, simplify.
4714 * infcall.c (call_function_by_hand): Move code calling
4715 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4716 * arch-utils.c: Update copyright. Include "gdbcore.h".
4717 (legacy_return_value): New function.
4718 * arch-utils.h: Update copyright.
4719 (legacy_return_value): Declare.
4720
b5622e8d
AC
47212004-06-20 Andrew Cagney <cagney@gnu.org>
4722
4723 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4724 * gdbarch.h, gdbarch.c: Re-generate.
4725 * values.c (using_struct_return): Update call.
4726 * mcore-tdep.c: Update comment.
4727 * infcall.c (call_function_by_hand): Update comment.
4728 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4729 * arch-utils.h (always_use_struct_convention): Update.
4730 * v850-tdep.c (v850_gdbarch_init): Update.
4731 * sh64-tdep.c (sh64_gdbarch_init): Update.
4732 * sh-tdep.c (sh_gdbarch_init): Update.
4733 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4734 * mips-tdep.c (mips_gdbarch_init): Update.
4735 * mcore-tdep.c (mcore_gdbarch_init): Update.
4736 * m32r-tdep.c (m32r_gdbarch_init): Update.
4737 * ia64-tdep.c (ia64_gdbarch_init): Update.
4738 * h8300-tdep.c (h8300_gdbarch_init): Update.
4739 * frv-tdep.c (frv_gdbarch_init): Update.
4740 * cris-tdep.c (cris_gdbarch_init): Update.
4741 * arm-tdep.c (arm_gdbarch_init): Update.
4742 * alpha-tdep.c (alpha_gdbarch_init): Update.
4743
5191de37
MC
47442004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4745
4746 * PROBLEMS: Add more specific information, and a work-around,
4747 for PR gdb/1458.
4748
782263ab
AC
47492004-06-18 Andrew Cagney <cagney@gnu.org>
4750
4751 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4752 * gdbarch.h, gdbarch.c: Re-generate.
4753 * ada-lang.c (ada_finish_decode_line_1): Update.
4754 * infrun.c (handle_inferior_event): Update.
4755 * infcall.c (find_function_addr): Update.
4756 * linespec.c (minsym_found): Update.
4757 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4758 Update.
4759 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4760 * cli/cli-cmds.c (disassemble_command): Update.
4761 * vax-tdep.c (vax_gdbarch_init): Update.
4762
2f305df1
MK
47632004-06-18 Mark Kettenis <kettenis@gnu.org>
4764
4765 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4766
e5fe55f7
AC
47672004-06-17 Andrew Cagney <cagney@gnu.org>
4768
4769 GDB 6.1.1 released from the GDB 6.1 branch.
4770 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4771 * PROBLEMS: Ditto.
4772
473b7be6
DJ
47732004-06-16 Daniel Jacobowitz <dan@debian.org>
4774
4775 PR gdb/1658
4776 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4777 operation as a uleb128. Found by Michael Coulter.
4778
96d887e8
PH
47792004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4780
4781 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4782 make it non-static.
4783 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4784 to ada-lang.h; this is needed to be able to implement the kill command
4785 in multi-task mode.
4786 (task_ptid): Ditto.
4787 (task_entry): Ditto.
4788 (task_list): Ditto.
4789 (ada_build_task_list): Ditto.
4790
4791 * ada-lang.c: Conditionalize routines and data structures related
4792 to breakpoints, exceptions, completion, and symbol caching on
4793 GNAT_GDB, since these are not yet used in the submitted public sources.
4794 (ada_main_name): Editorial: Move definition out of exception-related
4795 code.
4796
31eef181
AC
47972004-06-15 Andrew Cagney <cagney@gnu.org>
4798
4799 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4800 deprecated_pc_in_call_dummy.
4801
2c500098
AM
48022004-06-15 Alan Modra <amodra@bigpond.net.au>
4803
4804 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4805 bfd_get_section_size_before_reloc or _raw_size.
4806 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4807 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4808 (dwarf2_read_section): Likewise.
4809 * elfread.c (elf_locate_sections): Likewise.
4810 * gcore.c (derive_heap_segment): Likewise.
4811 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4812 * remote-e7000.c (e7000_load): Likewise.
4813 * remote-m32r-sdi.c (m32r_load): Likewise.
4814 * remote-mips.c (mips_load_srec): Likewise.
4815 (pmon_load_fast): Likewise.
4816 * remote.c (compare_sections_command): Likewise.
4817 * symfile.c (add_section_size_callback): Likewise.
4818 (load_section_callback): Likewise.
4819 (pc_in_unmapped_range): Likewise.
4820 (pc_in_mapped_range): Likewise.
4821 (sections_overlap): Likewise.
4822 (list_overlays_command): Likewise.
4823 (simple_overlay_update_1): Likewise.
4824 (simple_overlay_update): Likewise.
4825 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4826 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4827
90f943f1
RC
48282004-06-14 Randolph Chung <tausq@debian.org>
4829
4830 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4831 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4832 static.
4833 (hppa_hpux_inferior_created): New function.
4834 (hppa_hpux_init_abi): Register observer.
4835 * symfile.c (hp_cxx_exception_support_initialized)
4836 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4837 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4838
700c15aa
RC
48392004-06-14 Randolph Chung <tausq@debian.org>
4840
3973a7d3
AC
4841 * MAINTAINERS (Write After Approval): Alphabetize my entry
4842 correctly.
700c15aa 4843
cea4838c
AC
48442004-06-14 Andrew Cagney <cagney@gnu.org>
4845
4846 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4847 testsuite maintainer.
4848
97092415
AC
48492004-06-13 Andrew Cagney <cagney@gnu.org>
4850
e8c3165b
AC
4851 * infcmd.c (print_return_value): Fix logic, allow
4852 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4853
bceabdd8
AC
4854 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4855 defining any macros.
4856 * gdbarch.h: Re-generate.
4857
57010b1c
AC
4858 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4859 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4860 * gdbarch.h: Re-generate.
4861
bc87dfa0
AC
4862 * values.c (generic_use_struct_convention): Don't check gcc_p.
4863
15ac804d
AC
4864 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4865 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4866 * gdbarch.h, gdbarch.c: Regenerate.
4867 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4868 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4869 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4870 deprecated_max_register_raw_size and
4871 deprecated_max_register_virtual_size.
4872 * v850-tdep.c (v850_gdbarch_init): Ditto.
4873 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4874 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4875 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4876 * cris-tdep.c (cris_gdbarch_init): Ditto.
4877
97092415
AC
4878 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4879 * gdbarch.h, gdbarch.c: Re-generate.
4880 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4881 (m68hc11_use_struct_convention): Delete function.
4882 (m68hc11_extract_struct_value_address): Delete function.
4883 (m68hc11_return_value): New function.
4884 (m68hc11_gdbarch_init): Instead of store_return_value,
4885 extract_return_value, return_value_on_stack,
4886 deprecated_extract_struct_value_address and use_struct_convention,
4887 set return_value.
4888 * values.c (using_struct_return): Do not call
4889 RETURN_VALUE_ON_STACK.
4890 * arch-utils.h (generic_return_value_on_stack_not): Delete
4891 declaration.
4892 * arch-utils.c (generic_return_value_on_stack_not): Delete
4893 function.
4894
44e5158b
AC
48952004-06-12 Andrew Cagney <cagney@gnu.org>
4896
4897 * values.c (register_value_being_returned): Delete function.
4898 * infcmd.c (legacy_return_value): Delete function.
4899 * infcall.c (call_function_by_hand): Inline
4900 "register_value_being_returned", simplify.
4901 * values.c (using_struct_return): Update comment, refer to
4902 print_return_value instead of register_value_being_returned.
4903 * infcmd.c (print_return_value): Inline calls to
4904 register_value_being_returned and legacy_return_value. Simplify.
4905
b887c273
RC
49062004-06-11 Randolph Chung <tausq@debian.org>
4907
4908 * somread.c (som_symtab_read): Exclude gcc local symbols.
4909
1b2bfbb9
RC
49102004-06-11 Randolph Chung <tausq@debian.org>
4911
3973a7d3
AC
4912 * infrun.c (handle_inferior_event): Handle the case when a
4913 trampoline ends up in the runtime resolver, and if the trampoline
4914 has no name. Rearrange the code so that all the trampoline
4915 processing happens before other step-out-of-range handling.
1b2bfbb9 4916
a9d61c86
MH
49172004-06-11 Martin Hunt <hunt@redhat.com>
4918
4919 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4920 has no fpu.
4921
2c87cf5a
AC
49222004-06-10 Andrew Cagney <cagney@gnu.org>
4923
4924 * blockframe.c (legacy_inside_entry_func): Delete.
4925 (legacy_frame_chain_valid): Inline call to
4926 legacy_inside_entry_func, simplify.
4927
0b67b468 49282004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
4929
4930 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
4931 * dwarf2read.c (partial_die_info): Add dirname field.
4932 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4933 (read_partial_die): Save away DW_AT_comp_dir.
4934 * defs.h (symtab_to_filename): Removed.
4935 * source.c (find_and_open_source): Added.
57c22c6c 4936 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
4937 (symtab_to_filename): Removed.
4938 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
4939 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4940 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4941 symtab_to_filename.
4942 * symtab.h (partial_symtab): Add dirname field.
4943 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
4944 (mi_cmd_file_list_exec_source_file): Call new function
4945 symtab_to_fullname to find fullname.
57c22c6c 4946 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 4947 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
4948 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4949
9a1dd1ad
AC
49502004-06-10 Andrew Cagney <cagney@gnu.org>
4951
239ae8c7
AC
4952 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4953 to generic_use_struct_convention, the default value.
4954
fc720350
AC
4955 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4956 of abort.
4957
9a1dd1ad
AC
4958 * ns32k-tdep.c (ns32k_push_arguments): New function.
4959 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4960 * infcall.c (call_function_by_hand): Call error instead of
4961 legacy_push_arguments.
4962 * value.h (legacy_push_arguments): Delete declaration.
4963 * valops.c (legacy_push_arguments): Delete function.
4964 (value_push): Delete function.
4965
fea25152
BF
49662004-06-10 Brian Ford <ford@vss.fsi.com>
4967
4968 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4969 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4970 info.
4971 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4972
30a4a8e0
AC
49732004-06-10 Andrew Cagney <cagney@gnu.org>
4974
4975 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4976 * gdbarch.h, gdbarch.c: Re-generate.
4977 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4978 parameters.
4979 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4980 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4981 deprecated_pc_in_call_dummy instead of
4982 DEPRECATED_PC_IN_CALL_DUMMY.
4983 (arm_skip_prologue): Ditto.
4984 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4985 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4986 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4987 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4988 Ditto.
4989 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4990 (sh64_init_extra_frame_info, sh64_get_saved_register)
4991 (sh64_pop_frame): Ditto.
4992 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4993 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4994 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4995 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4996 (h8300_pop_frame): Ditto.
4997 * blockframe.c (legacy_inside_entry_func)
4998 (legacy_frame_chain_valid): Ditto.
4999 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5000 to deprecated_pc_in_call_dummy.
5001
81cfbe54
AC
50022004-06-09 Andrew Cagney <cagney@gnu.org>
5003
a1f4a1b6
AC
5004 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5005 provide a default value.
5006 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5007 * gdbarch.h, gdbarch.c: Re-generate.
5008 * arch-utils.c (generic_convert_register_p): Rename
5009 legacy_convert_register_p
5010 (legacy_register_to_value, legacy_value_to_register): Delete
5011 functions.
5012 * arch-utils.h (generic_convert_register_p): Rename
5013 legacy_convert_register_p.
5014 (legacy_register_to_value, legacy_value_to_register): Delete
5015 declarations.
5016
9730f241
AC
5017 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5018 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5019 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5020 * gdbarch.h, gdbarch.c: Re-generate.
5021 * infcmd.c (default_print_registers_info): Simplify.
5022 * findvar.c (value_of_register): Simplify.
5023 * mi/mi-main.c (get_register): Simplify.
5024 * arch-utils.c (legacy_convert_register_p): Always return 0.
5025 (legacy_register_to_value, legacy_value_to_register): Always call
5026 internal_error.
5027
8a1bf479
AC
5028 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5029 #ifdef CLEAR_INSN_CACHE code.
5030 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5031 Delete #ifdef CLEAR_DEFERRED_STORES code.
5032
4b38d6f1
AC
5033 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5034
2d62ecc7
AC
5035 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5036 copyright.
5037 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5038
be4f7469
AC
5039 * config/mips/mipsv4.mh: Delete file.
5040
81cfbe54
AC
5041 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5042 unreferenced macro.
5043 (hpread_adjust_stack_address): Delete declaration.
5044
d966f0cb
AC
50452004-06-08 Andrew Cagney <cagney@gnu.org>
5046
5047 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5048 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5049 PTRACE_ATTACH / PTRACE_DETACH available call error.
5050 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5051 * infttrace.c (update_thread_state_after_attach, attach, detach):
5052 Remove #ifdef wrappers.
5053 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5054 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5055 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5056 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5057 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5058 * config/nm-linux.h (ATTACH_DETACH): Delete.
5059 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5060 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5061 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5062 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5063 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5064
d91670b9
CV
50652004-06-08 Corinna Vinschen <vinschen@redhat.com>
5066
5067 * configure.in: Set $configdir to the right OS specific value.
5068 Use value when setting $tcldir and $tkdir.
5069 * configure: Regenerate.
5070
28ba0b33
PB
50712004-06-06 Paul Brook <paul@codesourcery.com>
5072
5073 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5074 records.
5075
f26caa11
PH
50762004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5077
5078 * ada-lang.c (lookup_symbol_in_language): New function to allow
5079 re-use of another language's symbol lookup code. (Placed here
5080 temporarily while Ada support is being integrated into the public
5081 tree).
5082 (restore_language): New auxiliary function for
5083 lookup_symbol_in_language.
5084 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5085 temporarily while Ada support is being integrated into the public
5086 tree).
5087
d560a54b
AO
50882004-06-08 Alexandre Oliva <aoliva@redhat.com>
5089
e75d110c
AO
5090 * Makefile.in (check//%): New.
5091
d560a54b
AO
5092 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5093 (mn10300_store_return_value): Rewrite.
5094 (mn10300_type_align): New.
5095 (mn10300_use_struct_convention): Rewrite.
5096 (mn10300_return_value): New, using all of the above.
5097 (mn10300_pop_frame_regular): Add saved_regs_size.
5098 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5099
a72fbdb7
AO
5100 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5101 regs if PC is on movm.
5102
01904826
JB
51032004-06-07 Jim Blandy <jimb@redhat.com>
5104
5105 Add native Linux support for the PowerPC E500.
5106 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5107 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5108 all architectures except the E500.
5109 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5110 #definitions.
5111 (struct gdb_evrregset_t): New type.
5112 (have_ptrace_getsetevrregs): New variable.
5113 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5114 fetch_spe_registers): New functions.
5115 (fetch_register): Call fetch_spe_register as appropriate.
5116 Assert that we're only passed raw register numbers.
5117 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5118 Don't fetch gprs if they're pseudoregisters.
5119 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5120 store_spe_registers): New functions.
5121 (store_register): Call store_spe_register as appropriate.
5122 Assert that we're only passed raw register numbers.
5123 (store_ppc_registers): Call store_spe_registers as appropriate.
5124 Don't store gprs if they're pseudoregisters.
5125
f90ef764
JJ
51262004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5127
5128 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5129 struct if one exists, even if we are dealing with a zombie thread.
5130
45b75230
AC
51312004-06-07 Andrew Cagney <cagney@gnu.org>
5132
5133 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5134 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5135 Rename PC_REQUIRES_RUN_BEFORE_USE.
5136 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5137 #ifdef.
5138
1658da49
RC
51392004-06-07 Randolph Chung <tausq@debian.org>
5140
5141 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5142 unwinding after sp has been saved to the stack but before the end
5143 of the prologue, and after the fp has been modified but before it has
5144 been saved to the stack.
5145 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5146 Remove superfluous definitions.
5147 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5148
9a727a3c
RC
51492004-06-07 Guy Martin <gmsoft@gentoo.org>
5150
5151 Committed by Randolph Chung.
5152 * hppa-linux-nat.c: Include the correct version of the header file
5153 depending on the kernel version.
5154
9e500012
RC
51552004-06-06 Randolph Chung <tausq@debian.org>
5156
5157 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5158 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5159
3388d7ff
RC
51602004-06-06 Randolph Chung <tausq@debian.org>
5161
5162 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5163 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5164 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5165 * hppa-tdep.c (hppa_symbol_address): New function definition.
5166 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5167
d49771ef
RC
51682004-06-06 Randolph Chung <tausq@debian.org>
5169
5170 * hppa-tdep.h (struct value): Forward declaration.
5171 (gdbarch_tdep): Define tdep find_global_pointer method.
5172 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5173 associated with the function we are trying to call, and write it
5174 to the gp register.
5175 (hppa32_convert_from_funct_ptr_addr): New function.
5176 (hppa_find_global_pointer): New function.
5177 (hppa_gdbarch_init): Set default find_global_pointer method; set
5178 convert_from_func_ptr_addr method.
5179 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5180 (hppa_linux_init_abi): Set find_global_pointer method.
5181 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5182
7d9b040b
RC
51832004-06-06 Randolph Chung <tausq@debian.org>
5184
5185 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5186 to struct value *function.
5187 * gdbarch.c: Regenerate.
5188 * gdbarch.h: Likewise.
5189 * infcall.c (call_function_by_hand): Pass entire function value
5190 to push_dummy_call.
5191
5192 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5193 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5194 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5195 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5196 * arm-tdep.c (arm_push_dummy_call): Likewise.
5197 * avr-tdep.c (avr_push_dummy_call): Likewise.
5198 * cris-tdep.c (cris_push_dummy_call): Likewise.
5199 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5200 * frv-tdep.c (frv_push_dummy_call): Likewise.
5201 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5202 * hppa-tdep.c (hppa32_push_dummy_call)
5203 (hppa64_push_dummy_call): Likewise.
5204 * i386-tdep.c (i386_push_dummy_call): Likewise.
5205 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5206 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5207 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5208 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5209 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5210 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5211 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5212 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5213 (ppc64_sysv_abi_push_dummy_call): Likewise.
5214 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5215 (ppc64_sysv_abi_push_dummy_call): Likewise.
5216 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5217 * s390-tdep.c (s390_push_dummy_call): Likewise.
5218 * sh-tdep.c (sh_push_dummy_call_fpu)
5219 (sh_push_dummy_call_nofpu): Likewise.
5220 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5221 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5222 * vax-tdep.c (vax_push_dummy_call): Likewise.
5223
4a19ea35
JB
52242004-06-04 Jim Blandy <jimb@redhat.com>
5225
8327ccee
JB
5226 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5227 gdbarch argument to register_size.
5228
a3c001ce
JB
5229 * rs6000-tdep.c (rs6000_store_return_value): Use
5230 regcache_cooked_write_part instead of
5231 deprecated_write_register_bytes.
5232 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5233 not gdbarch_deprecated_store_return_value.
5234
4a19ea35
JB
5235 * ppc-linux-nat.c (store_register, fetch_register): Remove
5236 incorrect assertions. Simplify and generalize handling of
5237 transfers whose sizes are not multiples of, or less than, sizeof
5238 (PTRACE_XFER_TYPE).
5239
b9b5d7ea
JJ
52402004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5241
5242 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5243 as a new thread event.
720c7d64 5244 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 5245 zombie, return TD_THR_ZOMBIE.
720c7d64 5246 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
5247 TD_THR_ZOMBIE, check if the thread is still on the thread list
5248 and return a -1 ptid if not found.
5249 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5250 change the status to TARGET_WAITKIND_SPURIOUS.
5251
c8a3b559
CV
52522004-06-03 Corinna Vinschen <vinschen@redhat.com>
5253
5254 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5255 double values in little endian mode.
5256
20605361
AC
52572004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5258
5259 Committed by Andrew Cagney.
5260 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5261 after last enum constant to avoid error from IBM C
5262 compiler.
5263
bc97b3ba
JB
52642004-06-02 Jim Blandy <jimb@redhat.com>
5265
5266 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5267 to 'message', and make it local to the lone block that uses it.
5268
1da28ab0
JB
5269 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5270
4c4b4cd2
PH
52712004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5272
8a2225b2
PH
5273 * ada-exp.y: Update copyright notice.
5274 Include block.h.
5275
5276 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5277 SPECIAL_VARIABLE and unify the treatment of these cases.
5278
5279 (write_attribute_call0): Remove.
5280 (write_attribute_call1): Remove.
5281 (write_attribute_calln): Remove.
5282 (save_qualifier): Add missing semicolon.
5283
5284 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5285 temporarily disabled to allow compilation with FSF head version.
5286
5287 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5288 use individual operators (OP_*) for all attributes.
5289 (exp syntax): Use write_int.
5290 Handle STRING literals with OP_STRING.
5291 (variable syntax): Add limit parameter to calls to
5292 write_object_renaming.
5293
5294 (temp_parse_space): New definition to hold entities that need
5295 only live until the next call to ada_parse.
5296 (string_to_operator): Rename fields of ada_opname_table entries.
5297
5298 (write_var_from_sym): Record block.
5299 (write_var_from_name): Minor reformatting.
5300 Make sure saved name is properly encoded in the case of multiple
5301 matches, and set its language to Ada.
5302 Update comment.
5303 Modify to indicate unresolved name as symbol in the UNRESOLVED
5304 namespace, allocated in temp_parse_space.
5305 (write_int): New function.
5306
5307 (write_object_renaming): Add max_depth parameter to limit
5308 chains of object renamings.
5309 Handle case where root of renaming expression is itself a renaming.
5310 Use temp_parse_space for temporary name buffer.
5311 Handle renamings to dereferenced pointers (___XEXA suffices).
5312
5313 (ada_parse, yyerror, string_to_operator,
5314 write_var_from_sym, write_var_from_name, write_attribute_call0,
5315 write_attribute_call1, write_attribute_calln,
5316 write_object_renaming): Protoize.
5317
5318 (_initialize_ada_exp): New function.
5319
5320 * ada-lang.c: Update copyright notice.
5321 General terminology change to conform to GNAT compiler usage:
5322 mangle => encode, demangle => decode
5323 Include gdb_obstack.h.
5324 Include gdb_regex.h
5325 Include frame.h
5326 Include hashtab.h
5327 Include completer.h
5328 Include gdb_stat.h
5329 Include block.h
5330 Include infcall.h
5331
5332 (ADA_RETAIN_DOTS): Make sure this is defined.
5333 (TRUNCATION_TOWARDS_ZERO): Define.
5334 (struct string_vector): Define.
5335 (unresolved_names): Remove definition.
5336 (xnew_string_vector): New function.
5337 (string_vector_append): New function.
5338 (extract_string): Make static.
5339 (ada_unqualified_name): New function.
5340 (add_angle_brackets): New function.
5341 (function_name_from_pc): New function.
5342 (place_on_stack): Rename to ensure_lval.
5343
5344 (ensure_lval): Renamed from place_on_stack.
5345 Make identity on lvals.
5346 Update comment.
5347 (is_nonfunction): New interface.
5348 Only symbols in LOC_CONST class can be enumerals.
5349 (fill_in_ada_prototype): Remove; now independent of language.
5350 (add_defn_to_vec): Add obstack and symtab arguments.
5351 Use obstack to hold collected definitions.
5352 (num_defns_collected): New function.
5353 (defns_collected): New function.
5354 (ada_resolve_subexp): Rename to resolve_subexp.
5355 (resolve_subexp): Renamed from ada_resolve_subexp.
5356 (ada_op_name): Return non-const result.
5357 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5358 other purposes.
5359
5360 (to_fixed_array_type): Add declaration.
5361 (coerce_unspec_val_to_type): Remove offset parameter.
5362 (find_sal_from_funcs_and_line): New interface.
5363 (find_line_in_linetable): Ditto.
5364
5365 (all_sals_for_line): Rename to ada_sals_for_line and make
5366 global.
5367 Add new parameter. When set, do not ask the user to choose the
5368 instance, but use the first one found instead.
5369 Use given line number in returned sals.
5370 Fix comment.
5371 Skip the prologue if funfirstline is set.
5372 Correct for memory leak when 0 lines found.
5373
5374 (value_pos_atr): Use pos_atr.
5375 (pos_atr): New function.
5376 (standard_lookup): Add block parameter.
5377
5378 (makeTimeStart): Remove declaration and uses.
5379 (makeTimeStop): Remove declaration and uses.
5380
5381 (ada_completer_word_break_characters): Allow for VMS.
5382 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5383 (raise_sym_name): New constant.
5384 (raise_unhandled_sym_name): New constant.
5385 (raise_assert_sym_name): New constant.
5386 (process_raise_exception_name): New constant.
5387 (longest_exception_template): New constant.
5388 (warning_limit): New variable to limit warnings during expression
5389 evaluation.
5390 (warnings_issued): New variable to keep track of warnings issued.
5391 (known_runtime_file_name_patterns): New constant.
5392 (known_auxiliary_function_name_patterns): New constant.
5393 (symbol_list_obstack): New variable.
5394
5395 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5396 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5397 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5398 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5399 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5400 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5401 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5402 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5403 and strcmp.
5404
5405 (ada_get_field_index): New function.
5406 (lim_warning): New function.
5407 (ada_translate_error_message): New function.
5408 (MAX_OF_SIZE): New function.
5409 (MIN_OF_SIZE): New function.
5410 (UMAX_OF_SIZE): New function.
5411 (UMIN_OF_SIZE): New function.
5412 (discrete_type_high_bound): New function.
5413 (discrete_type_low_bound): New function.
5414 (base_type): New function.
5415 (do_command): Remove.
5416
5417 (ada_update_initial_language): Use language_ada, not language_unknown.
5418 (ada_encode): Renamed from ada_mangle.
5419 Obey ADA_RETAIN_DOTS.
5420 (ada_decode): Renamed from ada_demangle.
5421 Update coding conventions.
5422 (decoded_names_store): New hash table.
5423 (ada_decode_symbol): New function.
5424 (ada_la_decode): New function.
5425
5426 (modify_general_field): Correct computations of offset and bit
5427 position.
5428 (desc_base_type): Handle ref types, too.
5429 (ada_is_direct_array_type): New function.
5430
5431 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5432 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5433 (ada_is_bogus_array_descriptor,ada_type_of_array,
5434 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5435 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5436 ada_is_array_descriptor_type.
5437
5438 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5439 (ada_is_packed_array_type): Handle pointers or
5440 references to packed arrays as well.
5441 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5442 (decode_packed_array_type): Search for the packed array type
5443 symbol in the currently selected block and associated
5444 superblocks too.
5445 Use lookup_symbol again.
5446
5447 (decode_packed_array): Handle pointers and references.
5448 Update call to coerce_unspec_val_to_type.
5449 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5450 (ada_value_primitive_packed_val): Improve comment.
5451
5452 (ada_index_type): Substitute int type for "undefined".
5453 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5454 ada_array_langth, ada_is_string_type): Use renamed
5455 ada_is_simple_array_type.
5456 (empty_array): New function.
5457
5458 (ada_resolve): Rename to resolve.
5459 (resolve): Make static.
5460 Call renamed resolve_subexp.
5461 Update comment.
5462 (ada_resolve_subexp): Rename to resolve_subexp.
5463 (resolve_subexp): Update comment.
5464 Decomment disabled code.
5465 Add LOC_COMPUTED* cases.
5466 Modify to use temporary struct symbols (marked as being in
5467 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5468 OP_UNRESOLVED_VALUE.
5469 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5470 Add OP_STRING case.
5471 Remove OP_ARRAY.
5472 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5473 Use new ada_lookup_symbol_list interface.
5474 Use new ada_resolve_function interface.
5475 Remove OP_TYPE case.
5476
5477 (ada_args_match): Idiot proof against null actuals.
5478 Use intermediate variables to clarify.
5479 (ada_resolve_function): Update comment and interface.
5480 (mangled_ordered_before): Rename to encoded_ordered_before and
5481 update comment.
5482 (sort_choices): Update comment and interface.
5483 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5484 (user_select_syms): New interface.
5485 Use new sort_choices interface.
5486 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5487 (possible_user_operator_p): Idiot-proof against null values.
5488 (ada_simple_renamed_entity): Don't make cleanup; rely on
5489 caller to free result string.
5490 Remove const from return type.
5491 (make_array_descriptor): Rename uses of place_on_stack to
5492 ensure_lval.
5493 Make sure that arrays are on stack.
5494
5495 (HASH_SIZE): Define.
5496 (struct cache_entry): Define.
5497 (cache_space): Define.
5498 (cache): Define.
5499 (clear_ada_sym_cache): New function.
5500 (find_entry): New function.
5501 (lookup_cached_symbol): New function.
5502 (defn_vector_size): Define.
5503 (cache_symbol): New function.
5504 (defn_symbols): Remove.
5505
5506 (standard_lookup): Use lookup_symbol_in_language to get effect of
5507 C lookup.
5508 Cache results.
5509
5510 (symbol_completion_match): New function.
5511 (symbol_completion_add): New function.
5512 (ada_make_symbol_completion_list): New function.
5513
5514 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5515 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5516 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5517 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5518
5519 (ada_lookup_simple_minsym): New function.
5520 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5521
5522 (add_symbols_from_enclosing_procs): New interface.
5523 Conditionalize more helpfully.
5524 Don't bother if program isn't running.
5525 Use new interface to get_frame_block.
5526 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5527
5528 (remove_extra_symbols): New interface.
5529 (xget_renaming_scope): New function.
5530 (is_package_name): New function.
5531 (renaming_is_visible): New function.
5532 (remove_out_of_scope_renamings): New function.
5533
5534 (ada_lookup_symbol_list): New interface.
5535 Properly reinitialize the symbol list obstack.
5536 Don't call add_symbols_from_enclosing_procs if we start from a
5537 static or global block.
5538 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5539 add_symbols_from_enclosing_procs.
5540 Add symtab data to cached entries.
5541 Handle symbols prefixed with
5542 "standard__" specially; strip prefix and don't look in local symbols.
5543 Do not include out of scope renaming symbols in list of
5544 symbols returned.
5545 Add const to block parameter.
5546 Move check for non-local, non-global symbols earlier.
5547 Remove timing stuff.
5548 (ada_lookup_symbol): New interface.
5549 Find symtab as well.
5550 (ada_lookup_symbol_nonlocal): New function.
5551
5552 (is_name_suffix): Enhance suffix detection to recognize
5553 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5554 (is_dot_digits_suffix): New function.
5555 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5556
5557 (ada_add_block_symbols): New interface. Use obstack to return results
5558 in a vector of struct ada_symbol_infos. Add symtab argument.
5559 Use new interface to add_defn_to_vec.
5560 Remove calls to fill_in_ada_prototype.
5561 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5562
5563 (ada_finish_decode_line_1): Add const qualification to local to fix
5564 warning.
5565 Start looking in static block for functions to avoid attempts
5566 to search frame chain for up-level variables.
5567 Adapt to new ada_sals_for_line interface.
5568 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5569 Handle quoting of the function name inside the spec string.
5570 Skip prologue when funfirstline is set and update the
5571 function documentation to that effect.
5572
5573 (debug_print_lines, debug_print_block, debug_print_blocks,
5574 debug_print_symtab): Remove.
5575
5576 (ada_main_name): New function.
5577 (ada_exception_breakpoint_type): New function.
5578 (is_known_support_routine): New function.
5579 (ada_find_printable_frame): Renamed from find_printable_frame and made
5580 global.
5581 Remove level parameter.
5582 Use new interface to select_frame.
5583
5584 (begin_command): Remove.
5585 (ada_adjust_exception_stop): New function.
5586 (ada_print_exception_stop): New function.
5587 (exception_name_from_cond): New function.
5588 (ada_report_exception_break): Replace disabled code with
5589 conditionalization on GNAT_GDB.
5590 Get the exception name from the condition string.
5591 Remove and move functionality into new functions
5592 ada_print_exception_breakpoint_task and
5593 ada_print_exception_breakpoint_nontask.
5594 (error_breakpoint_runtime_sym_not_found): New function.
5595 (is_runtime_sym_defined): New function.
5596 (ada_breakpoint_rewrite): Uncomment suppressed code.
5597 Use symbolic error-message and runtime-symbol names.
5598 Surround runtime symbol names in quotes.
5599 Allow non-specific breakpoints on exceptions and assertions before
5600 program starts.
5601
5602 (ada_is_tagged_type): Add parameter.
5603 (ada_is_tag_type): New function.
5604 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5605 (ada_variant_discrim_type): Ditto.
5606 (value_tag_from_contents_and_address): New function.
5607 (type_from_tag): New function.
5608 (struct tag_args): New structure used to communicate with
5609 ada_tag_name_1.
5610 (ada_tag_name_1): New function.
5611 (ada_tag_name): New function.
5612
5613 (ada_scan_number): Update comment.
5614 (find_struct_field): New function.
5615 (ada_search_struct_field): Make static.
5616 (ada_value_struct_elt): New version that returns references when
5617 given pointers or references to structs.
5618 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5619 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5620 interface.
5621 (ada_value_ind): Use new ada_to_fixed_value interface.
5622 (ada_coerce_ref): Ditto.
5623 (field_offset): Remove.
5624
5625 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5626 (ada_find_renaming_symbol): New function.
5627 (ada_prefer_type): Prefer named types over unnamed ones.
5628 (variant_field_index): New function.
5629 (contains_variant_part): Removed: subsumed by variant_field_index.
5630 (ada_template_to_fixed_record_type): New function, mostly from
5631 template_to_fixed_record_type.
5632 (template_to_fixed_record_type):
5633 Do not scan the type fields beyond the last one; prevents a
5634 potential SEGV.
5635 Handle case where variant field is listed BEFORE discriminant it
5636 depends on.
5637 Fix calculation of record length when bit length is
5638 not evenly divisible by char length.
5639 Move code to ada_template_to_fixed_record_type and call it.
5640
5641 (template_to_static_fixed_type): Revise comment.
5642 Modify to work on ordinary record types as well as templates,
5643 so as to handle fields that use ___XVE or ___XVU encodings.
5644 (to_record_with_fixed_variant_part): Fill out comment.
5645 Initialize C++ stuff in right type.
5646 Allow case where DVAL is null.
5647 Handle case where variant field is not last.
5648 Fix typo concerning record length.
5649 (to_fixed_record_type): Decomment disabled code.
5650 (to_fixed_record_type): Use variant_field_index instead of
5651 contains_variant_part.
5652 (to_fixed_variant_branch_type): Ditto.
5653 (to_fixed_array_type): Decomment disabled code.
5654 (ada_to_fixed_type): Convert tagged types to the specific type.
5655 Deactivate the size-check for array types in order to avoid
5656 some false size alarms.
5657 (to_static_fixed_type): Decomment disabled code.
5658 Modify to call template_to_static_fixed_type
5659 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5660 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5661 Remove valaddr argument, as it is never really used.
5662 (ada_to_fixed_value): Change interface to act on single struct value*
5663 operand.
5664 (adjust_pc_past_prologue): New function.
5665 (ada_attribute_name): Modify to take enum exp_opcode argument.
5666
5667 (ada_enum_name): Recognize new homonym-distinguishing convention.
5668 Adjust local variable's type to remove compiler warning.
5669 Fix a small problem in the part that unqualifies the enumeration name.
5670 (ada_value_binop): New function.
5671 (ada_value_equal): New function.
5672
5673 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5674 Don't give error message when not doing normal evaluation
5675 and a tagged type doesn't seem to contain a structure member.
5676 Give error message for packed arrays.
5677 For indexing arrays, handle pointers to packed arrays correctly.
5678 Handle case of 'first and 'last attributes of bare integral type
5679 without encoded subtype info.
5680 Remove some unnecessary casts.
5681 Fix uninitialized value of type in computing 'first, 'last, or 'length
5682 of array object.
5683 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5684 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5685 calls.
5686 Attributes are now exp_opcode values.
5687 Correct treatment of 'modulus.
5688 Better error message for taking 'length of wrong kind of type;
5689 improve comment.
5690 Change EVAL_NORMAL to noside for consistency.
5691 Use ada_value_binop for DIV, MOD, REM.
5692 Make special case out of array of length 0, since an argument
5693 of 0 upsets some platforms' malloc.
5694 Use OP_STRING instead of OP_ARRAY.
5695 For slice, add check that we have an array type before extracting
5696 a slice out of it. Avoids a SEGV.
5697 When evaluating an array slice, if the array type is a reference to
5698 an aligner type, then replace the aligner type by the actual type.
5699 Decomment disabled code.
5700 Remove some dead code.
5701 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5702 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5703 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5704 and UNOP_MBR to UNOP_IN_RANGE.
5705 If an array type has a parallel ___XVE type, then use it.
5706 Turn arrays into pointers for lvalue arrays.
5707 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5708 bounds error and handle 0-length slices.
5709 Use lim_warning.
5710 When selecting fields, apply ada_to_fixed_value (because the fields
5711 might have ___XVU or ___XVE encodings even if not dynamic.)
5712 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5713 (ada_is_system_address_type): New function.
5714
5715 (get_var_value): Use new interface to ada_lookup_symbol_list.
5716 (get_int_var_value): New interface.
5717 (to_fixed_range_type): Allow unknown bound, with warning.
5718 (ada_is_modular_type): Decomment disabled code.
5719 (ADA_OPERATORS): New definition.
5720 (ada_operator_length): New function.
5721 (ada_expr_op_name): New function.
5722 (ada_forward_operator_length): New function.
5723 (ada_dump_subexp_body): New function.
5724 (ada_print_subexp): New function.
5725 (ada_exp_descriptor): New constant.
5726 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5727 (ada_language_defn): Add ada_exp_descriptor entry.
5728 Change ada_parse => parse.
5729 Add post-parser entry.
5730 Use ada-specific non-local symbol lookup.
5731 Don't use C-style arrays.
5732 String lower-bound is 1.
5733 Decomment disabled code.
5734 (parse): New function.
5735 New fields ada_translate_error_message, ada_lookup_symbol,
5736 ada_lookup_minimal_symbol.
5737
5738 * ada-lang.h: Update copyright dates.
5739 Replace the mangle/demangle terminology throughout by the
5740 more appropriate encode/decode one.
5741 Include breakpoint.h.
5742 Forward declare struct partial_symbol, struct block.
5743 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5744 (EXTRACT_ADDRESS): Remove.
5745 (EXTRACT_INT): Remove.
5746 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5747 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5748 (MAX_RENAMING_CHAIN_LENGTH): Define.
5749 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5750
5751 (enum task_states): Remove.
5752 ada_task_states: Remove.
5753 (fat_string): Remove.
5754 (struct entry_call): Remove.
5755 (struct task_fields): Remove.
5756 (struct task_entry): Remove.
5757
5758 (struct ada_symbol_info): Define.
5759 (enum ada_attribute): Remove.
5760 (enum ada_operator): Define.
5761
5762 (ada_get_field_index): Declare.
5763 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5764 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5765 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5766 (ada_lookup_symbol_list): New interface.
5767 (ada_decode_symbol): Declare.
5768 (ada_decode): Declare.
5769 (ada_lookup_symbol): New interface.
5770 (ada_update_initial_language): Declare.
5771 (ada_lookup_simple_minsym): Declare.
5772 (user_select_syms): New interface.
5773 (ada_sals_for_line): Declare.
5774 (ada_is_tagged_type): New interface.
5775 (ada_tag_name): Declare.
5776 (ada_lookup_struct_elt_type): Remove declaration.
5777 (ada_search_struct_field): Remove declaration.
5778 (ada_attribute_name): New interface.
5779 (ada_is_system_address_type): Declare.
5780 (ada_to_fixed_value): Remove declaration.
5781 (ada_template_to_fixed_record_type_1): Declare.
5782 (get_int_var_value): New interface.
5783 (ada_find_any_symbol): Declare.
5784 (ada_find_renaming_symbol): Declare.
5785 (ada_mangle): Rename to ada_encode.
5786 (ada_simple_renamed_entity): Remove const.
5787 (ada_main_name): Declare.
5788 (get_current_task): Rename to ada_get_current_task.
5789 (get_entry_number): Remove declaration.
5790 (ada_report_exception_break): Remove declaration.
5791 (ada_print_exception_breakpoint_nontask): Declare.
5792 (ada_print_exception_breakpoint_task): Declare.
5793 (ada_find_printable_frame): Declare.
5794
5795 * ada-lex.l: Update copyright notices.
5796 Use xmalloc and xfree instead of malloc and free.
5797 Use new interface to name_lookup.
5798 Use new interface to
5799 ada_mangle=>ada_encode.
5800 Redo handling of '$...' variable to parallel current treatment
5801 in c-exp.y.
5802 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5803 digit_to_int, strtoulst, processInt, processReal, processId,
5804 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5805 yywrap): Protoize.
5806
5807 (processInt): Use cast to remove harmless warning.
5808 (processReal): Modify to get rid of compiler warning on scan formats.
5809
5810 (processId): Replace xmalloc with obstack_alloc for name and remove
5811 call to ada_name_string_cleanup.
5812 Remove obsolete disabled code.
5813 (name_lookup): Ditto.
5814 New interface.
5815 Use obsavestring on temp_parse_space instead of savestring
5816 on name, and remove call to ada_name_string_cleanup.
5817 Free string returned from ada_simple_renamed_entity.
5818 Use new interface to ada_lookup_symbol_list.
5819 Decomment disabled code.
5820 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5821 not types.
5822 When a type name lookup succeeds as a result of
5823 lookup_primitive_typename, check for regular type entry that has not
5824 yet been read in.
5825 Limit length of chain of renamed symbols we are willing to follow.
5826 Do not break names beginning with "standard__" into segments.
5827 (block_lookup): Use new interface to ada_lookup_symbol_list.
5828
5829 * ada-typeprint.c: Update copyright notice.
5830 (demangled_type_name): Rename to decoded_type_name.
5831 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5832 (print_range_bound): Correct handling of negative
5833 bounds that make the index type looked unsigned under STABS.
5834 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5835 (print_range_type_named): Use the builtin int type if no type
5836 corresponding to the given type name could be found.
5837 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5838 Add some bullet-proofing.
5839 (print_variant_clauses): Allow for variant branches with ___XVU
5840 encodings that are not dynamic fields.
5841 Use new interface to ada_is_tagged_type.
5842 (print_record_type): Allow for fields with ___XVE encodings that
5843 are not dynamic fields.
5844 Use new interface to ada_is_tagged_type.
5845 (ada_print_type): ada_is_array_descriptor =>
5846 ada_is_array_descriptor_type.
5847
5848 * ada-valprint.c: Update copyright notice.
5849 Include gdb_string.h
5850 Include infcall.h
5851 (ui_memcpy): New function.
5852 (ada_print_floating): New function.
5853 (ada_print_str): Order arguments correctly.
5854 Correct handling of empty arrays and arrays of 0-length items.
5855 ada_is_array_descriptor => ada_is_array_descriptor_type
5856 Print values of type System.Address in hexadecimal format.
5857 Use ada_print_floating to print floating-point numbers in Ada format.
5858 Print class tag values with type names.
5859 No longer print the address of reference values. Avoids
5860 a potential confusion.
5861 (ada_value_print): Stop printing the object type for reference
5862 values, but preserve that behavior for access types. Avoids
5863 a potential confusion.
5864 Simplify one conditional expression, as the first part is now
5865 necessarily true.
5866 ada_is_array_descriptor => ada_is_array_descriptor_type
5867 Add check for arrays for null records, and print them by hand.
4c4b4cd2 5868
f65f91b5
JB
58692004-06-01 Jim Blandy <jimb@redhat.com>
5870
5871 * ppc-tdep.h: Delete unused 'regoff' member.
5872 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5873
d4687fa0
MC
58742004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5875
5876 Fix PR symtab/1661.
5877 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5878 (hpread_read_struct_type): Likewise.
5879
de169ec9
AC
58802004-06-01 Andrew Cagney <cagney@gnu.org>
5881
c6902d46
AC
5882 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5883 instead of xasprintf.
5884 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5885 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5886 (mi_cmd_data_list_register_names)
5887 (mi_cmd_data_list_changed_registers)
5888 (mi_cmd_data_list_register_values)
5889 (get_register, mi_cmd_data_write_register_values)
5890 (mi_cmd_data_write_register_values)
5891 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5892 (mi_cmd_target_download, mi_cmd_target_select)
5893 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5894 (mi_execute_cli_command, mi_execute_async_cli_command)
5895 (mi_execute_async_cli_command): Ditto.
5896 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5897 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5898
6085fc2d
AC
5899 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5900 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5901 error_last_message instead of mi_error_last_message.
5902 * mi/mi-main.c (mi_error_last_message): Delete function.
5903
de169ec9
AC
5904 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5905 "invalid number of columns" error. Delete redundant "out of
5906 memory" check.
5907
1fc7d519
MK
59082004-05-31 Mark Kettenis <kettenis@gnu.org>
5909
6cfb2041
MK
5910 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5911 (gregset_t, fpregset_t): Remove typedefs.
5912 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5913 (REG_OFFSET): Rename argument.
5914 (i386bsd_r_reg_offset): Rename from reg_offset.
5915 (REG_ADDR): Remove macro.
5916 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5917 functions.
5918 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5919 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5920 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5921 instead of supply_gregset.
5922 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5923 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5924 instead of fill_gregset.
5925 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5926
1fc7d519
MK
5927 * i386bsd-nat.c: Don't include "gregset.h".
5928 (supply_gregset, fill_gregset): Make static.
5929 (supply_fpregset, fill_fpregset): Remove.
5930 * Makefile.in (i386bsd-nat.o): Update dependencies.
5931
2c34abbe
MK
59322004-05-30 Mark Kettenis <kettenis@gnu.org>
5933
448724fb
MK
5934 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5935 "gdb_assert.h". Con't include "gregset.h".
5936 (fbsd_make_corefile_notes): Use regset-based core file support
5937 instead off fill_gregset and fill_fpregset.
5938 * Makefile.in (fbsd-proc.o): Update dependencies.
5939
5ca8ca7c
MK
5940 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5941 instructions.
5942 (m88k_frame_prev_register): Simplify code a bit.
5943
593adc23
MK
5944 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5945 (amd64_collect_fpregset): New function.
5946 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5947
8d1b517b
MK
5948 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5949
7fdafb5a
MK
5950 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5951 (i386_collect_gregset): New function.
5952 (i386_supply_fpregset): Adjust comment.
5953 (i386_collect_fpregset): New function.
5954 (i386_regset_from_core_section): Use i386_collect_gregset and
5955 i386_collect_fpregset.
5956
8693c419
MK
5957 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5958 handle VALUEP being null.
5959
2c34abbe
MK
5960 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5961
45d134d8
MK
59622004-05-29 Mark Kettenis <kettenis@gnu.org>
5963
1698f4e7
MK
5964 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5965
45d134d8
MK
5966 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5967 assembler in OpenBSD 3.5-current.
5968 (amd64obsd_sigcontext_addr): Likewise.
5969
691d145a
JB
59702004-05-28 Jim Blandy <jimb@redhat.com>
5971
5972 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5973 register set, so our regcache isn't declared "legacy" and our E500
5974 pseudoregister read and write functions aren't ignored.
5975 (rs6000_register_byte, rs6000_register_raw_size,
5976 rs6000_register_virtual_type, rs6000_register_convertible,
5977 rs6000_register_convert_to_virtual,
5978 rs6000_register_convert_to_raw): Deleted.
5979 (rs6000_register_type, rs6000_convert_register_p,
5980 rs6000_register_to_value, rs6000_value_to_register): New
5981 functions.
5982 (rs6000_gdbarch_init): Don't register
5983 gdbarch_deprecated_register_size,
5984 gdbarch_deprecated_register_bytes,
5985 gdbarch_deprecated_register_byte,
5986 gdbarch_deprecated_register_raw_size,
5987 gdbarch_deprecated_register_virtual_type,
5988 gdbarch_deprecated_register_convertible,
5989 gdbarch_deprecated_register_convert_to_virtual, or
5990 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5991 register gdbarch_register_type, gdbarch_convert_register_p,
5992 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5993
18ed0c4e
JB
59942004-05-26 Jim Blandy <jimb@redhat.com>
5995
5996 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5997 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5998 functions, updated to match the register numberings used in GCC.
5999 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6000 rs6000_dwarf2_reg_to_regnum as register number conversions
6001 functions for STABS and Dwarf2.
6002
779af9e3
RC
60032004-05-26 Randolph Chung <tausq@debian.org>
6004
6005 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6006 in header file.
6007
c23968a2
JB
60082004-05-25 Joel Brobecker <brobecker@gnat.com>
6009
6010 * NEWS: Document new "start" command.
6011
3a7d1c27
RC
60122004-05-25 Randolph Chung <tausq@debian.org>
6013
6014 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6015 hppa-linux.
6016
43613416
RC
60172004-05-25 Randolph Chung <tausq@debian.org>
6018
6019 * hppa-hpux-tdep.c (offsetof): Define.
6020 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6021 (hppa32_hpux_frame_base_before_sigtramp)
6022 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6023 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6024 (hppa64_hpux_frame_base_before_sigtramp)
6025 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6026 functions.
6027 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6028 (hppa_hpux_sigtramp_frame_unwind_cache)
6029 (hppa_hpux_sigtramp_frame_this_id)
6030 (hppa_hpux_sigtramp_frame_prev_register)
6031 (hppa_hpux_sigtramp_frame_unwind)
6032 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6033 (hppa_hpux_init_abi): Register sigtramp unwinder.
6034 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6035
6d1be3f1
RC
60362004-05-25 Randolph Chung <tausq@debian.org>
6037
6038 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6039 and multiple stack unwinds.
6040 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6041
97c34f65
AC
60422004-05-25 Andrew Cagney <cagney@gnu.org>
6043
6044 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6045 * symfile-mem.h: Delete file.
6046 * symfile-mem.c: Do not include "symfile-mem.h".
6047 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6048 "struct bfd_section". When an error do not bother returning NULL.
6049 (add_symbol_file_from_memory_command): Use "struct bfd" and
6050 "struct bfd_section".
6051 * Makefile.in (symfile_mem_h): Delete.
6052 (symfile-mem.o): Update dependencies.
6053
e23cbd82
NR
60542004-05-25 Nick Roberts <nickrob@gnu.org>
6055
6056 * gdb-mi.el: New file.
6057
20d2ca3e
AC
60582004-05-25 Andrew Cagney <cagney@gnu.org>
6059
6060 * inftarg.c: Include "observer.h".
6061 (child_attach, child_create_inferior): Notify inferior_created.
6062 * corelow.c: Include "observer.h".
6063 (core_open): Notify inferior_created.
6064 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6065
c27cda74
AC
60662004-05-25 Andrew Cagney <cagney@gnu.org>
6067
6068 * target.h (struct target_ops): Add from_tty to
6069 to_create_inferior.
6070 (target_create_inferior, find_default_create_inferior): Update.
6071 * infcmd.c (run_command): Update.
6072 * wince.c (child_create_inferior): Update.
6073 * win32-nat.c (child_create_inferior): Update.
6074 * uw-thread.c (uw_thread_create_inferior): Update.
6075 * thread-db.c (thread_db_create_inferior): Update.
6076 * target.c (debug_to_create_inferior)
6077 (find_default_create_inferior): Update.
6078 (maybe_kill_then_create_inferior): Update.
6079 * sol-thread.c (sol_thread_create_inferior): Update.
6080 * remote.c (extended_remote_async_create_inferior)
6081 (extended_remote_create_inferior): Update.
6082 * remote-vx.c (vx_create_inferior): Update.
6083 * remote-st.c (st2000_create_inferior): Update.
6084 * remote-sim.c (gdbsim_create_inferior): Update.
6085 * remote-sds.c (sds_create_inferior): Update.
6086 * remote-rdp.c (remote_rdp_create_inferior): Update.
6087 * remote-rdi.c (arm_rdi_create_inferior): Update.
6088 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6089 * remote-e7000.c (e7000_create_inferior): Update.
6090 * procfs.c (procfs_create_inferior): Update.
6091 * ocd.c (ocd_create_inferior): Update.
6092 * ocd.h (ocd_create_inferior): Update.
6093 * nto-procfs.c (procfs_create_inferior): Update.
6094 * monitor.c (monitor_create_inferior): Update.
6095 * lin-lwp.c (lin_lwp_create_inferior): Update.
6096 * inftarg.c (child_create_inferior): Update.
6097 * hpux-thread.c (hpux_thread_create_inferior): Update.
6098 * gnu-nat.c (gnu_create_inferior): Update.
6099
1db2a798
AC
61002004-05-25 Andrew Cagney <cagney@gnu.com>
6101
6102 * MAINTAINERS: Update e-mail address.
6103
007d08bb
RC
61042004-05-24 Randolph Chung <tausq@debian.org>
6105
6106 * thread.c (info_threads_command, thread_apply_all_command)
6107 (thread_apply_command, thread_command, do_captured_thread_select):
6108 Remove HPUXHPPA-specific code.
6109
69e7b95e
RC
61102004-05-24 Randolph Chung <tausq@debian.org>
6111
6112 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6113 unused symbols.
6114 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6115 references.
6116
a4d5f2e0
JB
61172004-05-24 Joel Brobecker <brobecker@gnat.com>
6118
6119 * infcmd.c (kill_if_already_running): New function, extracted
6120 from run_command().
6121 (run_command): Replace extracted code by call to
6122 kill_if_already_running().
6123 (start_command): New function.
6124 (_initialize_infcmd): Add "start" command.
6125
bf2ca189
MK
61262004-05-24 Mark Kettenis <kettenis@gnu.org>
6127
6128 Add OpenBSD/m88k support.
6129 * NEWS (New native configurations): Mention OpenBSD/m88k.
6130 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6131 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6132 * Makefile.in (m88k_tdep_h): New variable.
6133 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6134 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6135 * configure.host: Add m88*-*-openbsd*.
6136 * configure.tgt: Add m88*-*-openbsd*.
6137
80fadb11
JB
61382004-05-24 Jim Blandy <jimb@redhat.com>
6139
6140 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6141 to approve changes.
6142
19e2d14b
KB
61432004-05-24 Kevin Buettner <kevinb@redhat.com>
6144
6145 * symtab.c (fixup_section): Search section table when lookup by
6146 name fails.
6147
1b07b470
RC
61482004-05-24 Randolph Chung <tausq@debian.org>
6149
6150 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6151 be "small_struct".
6152
368702b1
MK
61532004-05-24 Mark Kettenis <kettenis@gnu.org>
6154
5df97fde
MK
6155 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6156 register number in regcache_raw_collect call.
6157 (m68kbsd_collect_fpregset): Likewise.
6158 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6159
368702b1
MK
6160 * regset.h (struct regset): Add back `regset' member.
6161
a770d4ec
MK
61622004-05-23 Mark Kettenis <kettenis@gnu.org>
6163
70f9f479
MK
6164 * configure.in: Check for td_pcb in `struct thread'.
6165 * configure, config.in: Regenerated.
6166
2e16d79e
MK
6167 * dpx2-nat.c: Remove file.
6168 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6169 (dpx2-nat.o): Remove dependencies.
6170
492cf391
MK
6171 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6172 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6173 (amd64obsd_supply_pcb): New function.
6174 (_initialize_amd64obsd_nat): Enable libkvm interface.
6175 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6176 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6177 (LOADLIBES): New variable.
6178
a770d4ec
MK
6179 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6180 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6181 (sparc32nbsd_supply_pcb): New function.
6182 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6183 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6184 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6185 (LOADLIBES): New variable.
6186
9ea75c57
MK
61872004-05-22 Mark Kettenis <kettenis@gnu.org>
6188
2e0c3539
MK
6189 * bsd-kvm.c, bsd-kvm.h: New files.
6190 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6191 "bsd-kvm.h".
6192 (i386fbsd_supply_pcb): New function.
6193 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6194 (i386fbsd-nat.o): Update dependencies.
6195 (bsd_kvm_h): New variable.
6196 (bsd-kvm.o): New dependency.
6197 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6198 (LOADLIBES): New variable.
6199
9ea75c57
MK
6200 * regset.c: Tweak comment.
6201 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6202 macro.
6203 * regset.h: Update copyright year.
6204 (struct regset): Remove `descr' member, add `gdbarch' member.
6205 (regset_alloc): Adjust prototype and comment.
6206 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6207 (i386_supply_fpregset): Likewise.
6208 (i386_regset_from_core_section): Update call to regset_alloc.
6209 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6210 REGSET->arch.
6211 (i386obsd_aout_regset_from_core_section): Update call to
6212 regset_alloc.
6213 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6214 REGSET->arch.
6215 (i386nbsd_aout_regset_from_core_section): Update call to
6216 regset_alloc.
6217 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6218 REGSET->arch.
6219 (amd64_regset_from_core_section): Update call to regset_alloc.
6220 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6221 REGSET->arch.
6222 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6223 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6224 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6225 (sparc32nbsd_init_abi): Update call to regset_alloc.
6226 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6227 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6228 (sparc64obsd_init_abi): Update call to regset_alloc.
6229 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6230 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6231 (sparc64nbsd_init_abi): Update call to regset_alloc.
6232 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6233 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6234 (sparc64fbsd_init_abi): Update call to regset_alloc.
6235
867e2dc5
JB
62362004-05-22 Jim Blandy <jimb@redhat.com>
6237
6238 * ppc-tdep.h (spe_register_p): New declaration.
6239 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6240 ppc_spefscr_regnum.
6241 * rs6000-tdep.c (spe_register_p): New function.
6242 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6243 spefscr.
6244 (rs6000_gdbarch_init): Initialize the new members of the tdep
6245 structure.
6246
617a4cba
JB
62472004-05-21 Jim Blandy <jimb@redhat.com>
6248
0397dee1
JB
6249 * ppc-linux-nat.c (fetch_register): Move code back to be next
6250 to the comment that describes it. (Moved code, instead of
6251 comment, for symmetry with store_register.)
6252
617a4cba
JB
6253 Allocate regset structures in the gdbarch's obstack, not using
6254 xmalloc.
6255 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6256 Add 'arch' argument. Allocate the regset on arch's obstack, not
6257 using xmalloc.
6258 * regset.h (regset_alloc): Update declaration.
6259 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6260 gdbarch argument.
6261 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6262 * i386-tdep.c (i386_regset_from_core_section): Same.
6263 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6264 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6265 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6266 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6267 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6268 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6269
9aa3914d
JB
62702004-05-21 Joel Brobecker <brobecker@gnat.com>
6271
6272 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6273
99c87dab
JB
62742004-05-21 Jim Blandy <jimb@redhat.com>
6275
6276 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6277 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6278
c2b6b4aa
JB
62792004-05-20 Jim Blandy <jimb@redhat.com>
6280
6281 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6282
144529d0
MK
62832004-05-20 Mark Kettenis <kettenis@gnu.org>
6284
6285 * regset.h: Make prototype const-correct.
6286 * regset.c (regset_xmalloc): Make const-correct.
6287
4725b721
PH
62882004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6289
6290 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6291 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6292 (symbol_search_name): Declare.
6293
6294 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6295 (iter_name_next_hashed): Ditto.
6296 (iter_name_next_linear): Ditto.
6297 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6298
6299 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6300 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6301 (symbol_search_name): New function.
6302
6303 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6304
6305 * minsyms.c (build_minimal_symbol_hash_tables): Change
6306 test for adding to demangled hash table to check for difference
6307 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6308
be07a590
JB
63092004-05-19 Jim Blandy <jimb@redhat.com>
6310
6311 Use a constructor function to create regset structures.
6312 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6313 (struct regset): Use supply_regset_ftype. Add new
6314 'collect_regset' member.
6315 (regset_xmalloc): New declaration.
6316 * regset.c: New file.
6317 * am64-tdep.c (amd64_regset_from_core_section): Use
6318 regset_xmalloc to construct regset structures.
6319 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6320 * i386-tdep.c (i386_regset_from_core_section): Same.
6321 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6322 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6323 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6324 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6325 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6326 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6327 * Makefile.in (COMMON_OBS): Add regset.o.
6328 (regset.o): New rule.
6329
604368f5
JB
63302004-05-19 Joel Brobecker <brobecker@gnat.com>
6331
6332 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6333 and pthread_cond_wait.c.
6334
82d69f8b
JB
63352004-05-18 Jim Blandy <jimb@redhat.com>
6336
6337 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6338 before the mach-specific switch, and then let the individual cases
6339 override the defaults, rather than leaving them uninitialized
6340 until the switch and then setting them in each case.
6341
5859efe5
RC
63422004-05-18 Randolph Chung <tausq@debian.org>
6343
6344 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6345 millicode functions.
6346
9ca80cf8
RC
63472004-05-18 Randolph Chung <tausq@debian.org>
6348
6349 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6350 references to dld_flags_buffer consistent.
6351
ed70ba00
RC
63522004-05-18 Randolph Chung <tausq@debian.org>
6353
6354 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6355 it for unwinding the stack.
6356
63100632
RC
63572004-05-18 Randolph Chung <tausq@debian.org>
6358
6359 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6360 Undefine these so we can overide them using gdbarch.
6361
090ccbb7
RC
63622004-05-18 Randolph Chung <tausq@debian.org>
6363
6364 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6365 handling for 64-bit HPUX (elf).
6366
594706e6
DJ
63672004-05-18 Daniel Jacobowitz <dan@debian.org>
6368
6369 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6370 constants.
6371 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6372 * ia64-tdep.c (examine_prologue): Likewise.
6373 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6374 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6375
e5483145
MK
63762004-05-18 Mark Kettenis <kettenis@gnu.org>
6377
6378 * vax-tdep.c (vax_return_value): Implement
6379 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6380
caed1a45
MK
63812004-05-17 Mark Kettenis <kettenis@gnu.org>
6382
6383 * vax-tdep.c (vax_return_value): Fix typo.
6384
3c0b7db2
AC
63852004-05-17 Andrew Cagney <cagney@redhat.com>
6386
5aae53e5
AC
6387 * MAINTAINERS: Mark Salter was also responsible for
6388 testsuite/config/
6389
3c0b7db2
AC
6390 * NEWS: Mention signal fixes.
6391
22b0923d
RC
63922004-05-17 Randolph Chung <tausq@debian.org>
6393
6394 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6395 check to see if we are unwinding an export stub. Export stubs clobber
6396 the %rp in the call path and stores the original rp in a stack slot.
6397
22f2b2f3
JB
63982004-05-17 Jim Blandy <jimb@redhat.com>
6399
6400 * MAINTAINERS: Update address for J.T. Conklin.
6401
cea96d64
RC
64022004-05-17 Randolph Chung <tausq@debian.org>
6403
6404 * hppa-tdep.c: Remove superfluous #include's.
6405 * Makefile.in (hppa-tdep.o): Update dependencies.
6406
f08f6a4a
RC
64072004-05-17 Randolph Chung <tausq@debian.org>
6408
6409 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6410 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6411 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6412 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6413 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6414 Remove static function declarations.
6415
51da707a
MK
64162004-05-17 Mark Kettenis <kettenis@gnu.org>
6417
caed1a45
MK
6418 * alphabsd-nat.c: Update copyright year.
6419 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6420
c0c2b0db
MK
6421 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6422 and M68K_A2_REGNUM.
6423
51da707a
MK
6424 * m68k-tdep.c (m68k_svr4_return_value): Implement
6425 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6426
8d027a04
MK
64272004-05-16 Mark Kettenis <kettenis@gnu.org>
6428
6429 * sol-thread.c Update copyright year. Fix various coding
6430 standards violations. Tweak a few comments.
6431 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6432 Delete prototypes.
6433
0d99fdb9
RC
64342004-05-15 Randolph Chung <tausq@debian.org>
6435
6436 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6437 as pointer instead of array reference since HPUX compiler does
6438 not accept unsized array arguments.
6439 * somsolib.c (dld_flags_buffer): Use constant array size.
6440
f7e3843a
MK
64412004-05-15 Mark Kettenis <kettenis@gnu.org>
6442
0fe85704
MK
6443 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6444 offset with decimal offset.
6445 (amd64obsd_sigcontext_addr): Return correct address for entire
6446 signal trampoline.
6447
a54f9a00
MK
6448 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6449 instead of get_frame_base.
6450
feae6502
MK
6451 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6452 (fill_gregset): Use regcache_raw_collect.
6453
0382d099
MK
6454 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6455 ppcobsd-tdep.c.
6456
f7e3843a
MK
6457 * config/sparc/tm-nbsd64.h: Remove file.
6458 * config/tm-sunos.h: Remove file.
6459
773df3e5
JB
64602004-05-15 Joel Brobecker <brobecker@gnat.com>
6461
6462 * rs6000-tdep.c (store_param_on_stack_p): New function,
6463 an improved version of some code extracted from skip_prologue().
6464 (skip_prologue): Use store_param_on_stack_p() to detect
6465 instructions saving a parameter on the stack. Detect when r0
6466 is used to save a parameter.
6467 Do not mark "li rx, SIMM" instructions as part of the prologue,
6468 unless the following instruction is also part of the prologue.
6469
95918acb
AC
64702004-05-14 Andrew Cagney <cagney@redhat.com>
6471
06f32659
AC
6472 * infrun.c (handle_inferior_event): Simplify
6473 STEP_OVER_UNDEBUGGABLE.
6474
95918acb
AC
6475 * infrun.c (handle_step_into_function): Delete function.
6476 (handle_inferior_event): Inline calls to
6477 handle_step_into_function.
6478
40711ff1 64792004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
6480
6481 * rs6000-nat.c: Fix a comment.
6482
02f60eae
JB
64832004-05-12 David Anderson <davea@sgi.com>
6484
6485 Committed by Jim Blandy <jimb@redhat.com>:
6486 * regcache.c (struct regcache_descr): fix comment spelling.
6487
552e377b
JB
64882004-05-13 J. Brobecker <brobecker@gnat.com>
6489
6490 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6491 Fixes a link link failure.
6492
349766b2
JB
64932004-05-13 J. Brobecker <brobecker@gnat.com>
6494
6495 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6496 error that was causing the build to fail.
6497
0d4d5484
JB
64982004-05-13 J. Brobecker <brobecker@gnat.com>
6499
6500 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6501 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6502
0b30808c
AC
65032004-05-13 Andrew Cagney <cagney@redhat.com>
6504
6505 * infrun.c (handle_inferior_event): Check for
6506 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6507 calls. Update comments.
6508
cdf2c5f5
JB
65092004-05-13 Jim Blandy <jimb@redhat.com>
6510
063715bf
JB
6511 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6512 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6513 (store_regs_user_thread, store_regs_kernel_thread): Use
6514 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6515 * ppc-linux-nat.c (fill_gregset): Same.
6516 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6517 (ppc_linux_sigtramp_cache): Same.
6518 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6519 (ppcnbsd_sigtramp_cache_init): Same.
6520 * rs6000-nat.c (fetch_core_registers): Same.
6521 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6522 (rs6000_frame_cache): Same.
6523
cdf2c5f5
JB
6524 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6525 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6526 of assuming that the gprs are numbered starting with zero.
6527 * ppc-linux-nat.c (fill_gregset): Same.
6528 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6529 * ppcnbsd-nat.c (getregs_supplies): Same.
6530 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6531 * rs6000-nat.c (fetch_core_registers): Same.
6532 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6533
450bd37b
MS
65342004-05-07 Michael Snyder <msnyder@redhat.com>
6535
6536 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6537 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6538
4a72a2a6
AC
65392004-05-13 Andrew Cagney <cagney@redhat.com>
6540
6541 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6542
8edfa926
BM
65432004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6544
6545 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6546 base_address for shared libraries.
6547
723e0e3d
BM
65482004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6549
6550 * MAINTAINERS (write after approval): Add myself.
6551
00d4360e
UW
65522004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6553
6554 * breakpoint.c (bpstat_stop_status): Add new argument
6555 STOPPED_BY_WATCHPOINT. Use it instead of testing
6556 target_stopped_data_address agaist 0 to check whether
6557 or not we stopped due to a hardware watchpoint.
6558 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6559 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6560 with new argument.
6561
ec76baa5
JB
65622004-05-12 Jim Blandy <jimb@redhat.com>
6563
6564 * configure.in: When checking whether we should use the -bbigtoc
6565 option, don't forget to restore the original value of LDFLAGS.
6566 * configure: Regenerated.
6567
f2c9ca08
AC
65682004-05-12 Andrew Cagney <cagney@redhat.com>
6569
6570 * thread.c (load_infrun_state): Delete step_sp.
6571 * infrun.c (context_switch): Ditto.
6572 * inferior.h (step_sp): Ditto.
6573 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6574 * gdbthread.h (struct thread_info, save_infrun_state)
6575 (restore_infrun_state): Ditto.
6576
090ddb2a
UW
65772004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6578
6579 * MAINTAINERS (write after approval): Add myself.
6580
8aad930b
AC
65812004-05-12 Andrew Cagney <cagney@redhat.com>
6582
6583 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6584 eliminate reference to step_sp.
6585 (struct execution_control_state, init_execution_control_state)
6586 (handle_inferior_event, keep_going): Delete update_step_sp and
6587 step_sp.
6588 * infcmd.c (step_sp): Note that variable is unused.
6589
922d5ae0
AC
65902004-05-11 Andrew Cagney <cagney@redhat.com>
6591
6592 * infrun.c (step_over_function): Delete function.
6593 (handle_step_into_function): Use insert_step_resume_breakpoint.
6594 (insert_step_resume_breakpoint): Fix assertion.
6595
017c5ca5
NR
65962004-05-11 Nick Roberts <nickrob@gnu.org>
6597
6598 * utils.c (defaulted_query): Just use the normal query input type
6599 when printing the annotations.
6600
42edda50
AC
66012004-05-11 Andrew Cagney <cagney@redhat.com>
6602
6603 * infrun.c (handle_inferior_event): Simplify code handling
6604 step-into or return-from a signal trampoline.
6605
d28b44a7
AC
66062004-05-11 Andrew Cagney <cagney@redhat.com>
6607
6608 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6609 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6610
383f0f5b
JB
66112004-05-10 Jim Blandy <jimb@redhat.com>
6612
d0b57c3a
JB
6613 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6614 with a call to internal_error.
6615
383f0f5b
JB
6616 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6617 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6618 processor variant lacks those registers.
6619 (ppc_floating_point_unit_p): Change description to make it clear
6620 that this returns info about the ISA, not the ABI.
6621 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6622 return true or false by checking tdep->ppc_fp0_regnum and
6623 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6624 arch/mach switching done in rs6000_gdbarch_init; it's better to
6625 keep that logic there, and just check the results here.
6626 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6627 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6628 floating-point registers.
6629 (ppc_supply_fpregset, ppc_collect_fpregset)
6630 (rs6000_push_dummy_call, rs6000_extract_return_value)
6631 (rs6000_store_return_value): Assert that we have floating-point
6632 registers.
6633 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6634 (rs6000_frame_cache): Don't note the locations at which
6635 floating-point registers were saved if we have no fprs.
6636 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6637 registers.
6638 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6639 (store_regs_user_thread, store_regs_kernel_thread): Only call
6640 supply_fprs / fill_fprs if we actually have floating-point
6641 registers.
6642 (special_register_p): Check ppc_fpscr_regnum before matching
6643 against it.
6644 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6645 supply / collect fpscr if we don't have it.
6646 * ppc-bdm.c: #include "gdb_assert.h".
6647 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6648 have floating-point registers, since I can't test this code on
6649 FP-free systems to adapt it.
6650 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6651 fpscr and floating point register numbers if they don't exist.
6652 (fetch_register): Assert that we have floating-point registers
6653 before we reach the code that handles them.
6654 (store_register): Same. And use tdep instead of calling
6655 gdbarch_tdep again.
6656 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6657 don't have them.
6658 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6659 fprs and fpscr if we don't have them.
6660 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6661 don't have them.
6662 * ppcnbsd-nat.c: #include "gdb_assert.h".
6663 (getfpregs_supplies): Assert that we have floating-point registers.
6664 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6665 * ppcobsd-tdep.c: #include "gdb_assert.h".
6666 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6667 have floating-point registers.
6668 * rs6000-nat.c (regmap): Don't match against the fpscr and
6669 floating point register numbers if they don't exist.
6670 (fetch_inferior_registers, store_inferior_registers,
6671 fetch_core_registers): Only fetch / store / supply the
6672 floating-point registers and the fpscr if we have them.
6673 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6674 (ppcobsd-tdep.o): Update dependencies.
6675
15960608
AC
66762004-05-10 Andrew Cagney <cagney@redhat.com>
6677
6678 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6679 (context_switch): Do not switch through_sigtramp_breakpoint.
6680 * gdbthread.h (save_infrun_state, load_infrun_state)
6681 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6682 and structure member.
6683 * thread.c (load_infrun_state, save_infrun_state): Update.
6684
5ab5aa0f
MK
66852004-05-10 Mark Kettenis <kettenis@gnu.org>
6686
6687 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6688
da78b0e7
DJ
66892004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6690
6691 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6692 throughout.
6693 * aclocal.m4: Regenerate.
6694
cca0d3b0
NW
66952004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6696
6697 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6698
d303a6c7
AC
66992004-05-10 Andrew Cagney <cagney@redhat.com>
6700
6701 * infrun.c (check_sigtramp2): Delete function.
6702 (handle_inferior_event): When single stepping, and taking a
6703 signal, set a breakpoint at the signal return address. Delete
6704 redundant calls to check_sigtramp2.
6705 (insert_step_resume_breakpoint): New function.
6706 (through_sigtramp_breakpoint, handle_inferior_event)
6707 (follow_exec, wait_for_inferior, fetch_inferior_event)
6708 (currently_stepping, keep_going): Delete most uses of
6709 through_sigtramp_breakpoint, not that it should be deleted.
6710 (delete_breakpoint_current_contents): Delete function.
6711
03f4cc20
RC
67122004-05-10 Randolph Chung <tausq@debian.org>
6713
6714 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6715 target.
6716 * config/pa/tm-linux.h: New file.
6717
37fc812e
DJ
67182004-05-10 Daniel Jacobowitz <drow@mvista.com>
6719
6720 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6721 of prefixes. Don't print the prefix twice in the CLI.
6722
26c0b942
JB
67232004-05-10 Jim Blandy <jimb@redhat.com>
6724
2e56e9c1
JB
6725 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6726 collect all the gprs.
6727
26c0b942
JB
6728 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6729 loop collecting gprs.
6730
dc497459
AC
67312004-05-09 Andrew Cagney <cagney@redhat.com>
6732
6733 * remote-vx.c (net_step): Delete step-range code.
6734 * remote.c (remote_resume, init_all_packet_configs)
6735 (set_remote_protocol_E_packet_cmd)
6736 (show_remote_protocol_E_packet_cmd)
6737 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6738 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6739 (show_remote_protocol_e_packet_cmd): Ditto.
6740
0543f387
MK
67412004-05-09 Mark Kettenis <kettenis@gnu.org>
6742
c481d1ca
MK
6743 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6744
f626a069
MK
6745 * hppa-tdep.h: Update copyright year.
6746 (struct trad_frame_saved_reg): Add opaque declaration.
6747
6fa57a7d
MK
6748 * amd64-tdep.c (amd64_return_value): Implement
6749 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6750
e47577ab
MK
6751 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6752 (m68k_value_to_register): New functions.
6753 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6754 value_to_register.
6755
31db7b6c
MK
6756 * defs.h (enum return_value_convention): Add
6757 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6758 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6759 * infcmd.c (legacy_return_value): New function.
6760 (print_return_value): Rwerite to implement
6761 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6762 * values.c (using_struct_return): Check for inequality to
6763 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6764 RETURN_VALUE_STRUCT_CONVENTION.
6765 * i386-tdep.c (i386_return_value): Implement
6766 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6767
0543f387
MK
6768 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6769 include "symtab.h", "opcode/vax.h" and "inferior.h".
6770 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6771 to read_memory_unsigned_integer.
6772 (vax_gdbarch_init): Reorder.
6773 (_initialize_vax_tdep): Spell out prototype.
6774 * Makefile.in (vax-tdep.o): Update dependencies.
6775
0c93b7b6
AC
67762004-05-08 Andrew Cagney <cagney@redhat.com>
6777
e6b55ae2
AC
6778 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6779 * target.c (target_detach, target_disconnect): Ditto.
6780
1ac839b8
AC
6781 * infcall.c (call_function_by_hand): When no
6782 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6783 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6784 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6785 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6786 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6787
28954179
AC
6788 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6789 * gdbarch.h, gdbarch.c: Re-generate.
6790 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6791 deprecated_fix_call_dummy.
6792 * v850-tdep.c (v850_gdbarch_init): Ditto.
6793 * infcall.c (call_function_by_hand): Do not call
6794 DEPRECATED_FIX_CALL_DUMMY.
6795
434b87dd
AC
6796 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6797 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6798 * gdbarch.h, gdbarch.c: Re-generate.
6799 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6800 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6801 deprecated_sizeof_call_dummy_words.
6802 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6803 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6804 * v850-tdep.c (v850_gdbarch_init): Ditto.
6805 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6806 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6807 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6808 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6809 * arch-utils.h (legacy_call_dummy_words)
6810 (legacy_sizeof_call_dummy_words): Delete declarations.
6811 * arch-utils.c (legacy_call_dummy_words)
6812 (legacy_sizeof_call_dummy_words): Delete variables.
6813
58d28df8
AC
6814 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6815 * gdbarch.h, gdbarch.c: Re-generate.
6816 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6817 * infcall.c (call_function_by_hand): Eliminate call to
6818 DEPRECATED_PUSH_DUMMY_FRAME.
6819 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6820 push_dummy_frame.
6821 (ns32k_push_dummy_frame): Delete function.
6822
e4a2df64
AC
6823 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6824 deprecated_call_dummy_breakpoint_offset or
6825 deprecated_call_dummy_start_offset.
6826 * dummy-frame.c, arm-tdep.c: Update comments.
6827 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6828 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6829 * gdbarch.h, gdbarch.c: Re-generate.
6830
d3712828
AC
6831 * infcall.c (legacy_push_dummy_code): Delete function.
6832 (push_dummy_code): Delete call.
6833
7a882905
AC
6834 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6835 * gdbarch.h, gdbarch.c: Re-generate.
6836 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6837 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6838 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6839 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6840
0ec5872b
AC
6841 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6842 (struct frame_info): Delete opaque declaration.
6843 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6844 * frame.c (get_frame_type): Delete call.
6845
0c93b7b6
AC
6846 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6847 pc_in_call_dummy.
6848 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6849 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6850
75536971
MK
68512004-05-08 Mark Kettenis <kettenis@gnu.org>
6852
527ca6bb
MK
6853 * alphanbsd-tdep.c: Include "gdb_string.h".
6854 * armnbsd-tdep.c: Update copyright year.
6855 Include "gdb_string.h".
6856 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6857 dependencies.
6858
d39fdc61
MK
6859 * delta68-nat.c: Remove file.
6860 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6861 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6862 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6863 (delta68-nat.o): Remove dependency.
6864
75536971
MK
6865 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6866 function.
6867 (m68k_gdbarch_init): Don't set
6868 deprecated_frameless_function_invocation.
6869
f4ca1d1f
RC
68702004-05-07 Randolph Chung <tausq@debian.org>
6871
6872 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6873 read_memory_nobpt for code reading when doing frame unwinding.
6874 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6875
2f0e8c7a
RC
68762004-05-07 Randolph Chung <tausq@debian.org>
6877
6878 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6879 instead of sp, handle sigaltstack case.
6880 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6881 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6882 signal handler and not that of the caller.
6883 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6884 hppa_linux_sigtramp_find_sigcontext.
6885
959464ff
RC
68862004-05-07 Randolph Chung <tausq@debian.org>
6887
6888 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6889 hppa-linux-nat.c.
6890 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6891 * hppa-linux-nat.c (fetch_register, store_register): Define.
6892 (fetch_inferior_registers, store_inferior_registers): Define.
6893 (supply_gregset): Add comment and clean up some unneeded code.
6894 (fill_gregset): Add comment and fix so that it saves registers in
6895 the right place in the gregset.
6896 (fill_fpregset): Fix buffer overrun problem.
6897 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6898
0da28f8a
RC
68992004-05-07 Randolph Chung <tausq@debian.org>
6900
6901 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6902 do common handling of the pcoqt register.
6903 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6904 to use helper function.
6905 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6906 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6907 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6908 generic fallback unwinder when all else fails.
6909 (hppa_gdbarch_init): Add fallback sniffer.
6910 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6911 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6912 to use helper function.
6913
b9ec757a
JB
69142004-05-08 Joel Brobecker <brobecker@gnat.com>
6915
6916 * config/djgpp/fnchange.lst: Add translation rules for
6917 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6918
756e95f1
MK
69192004-05-08 Mark Kettenis <kettenis@gnu.org>
6920
6921 * frame.c (get_prev_frame_1): Work around GCC bug.
6922 * frame.h: Add comment about GCC bug.
6923
2b4855ab
AC
69242004-05-07 Andrew Cagney <cagney@redhat.com>
6925
6926 * observer.c: Include "commands.h" and "gdbcmd.h".
6927 (observer_debug, _initialize_observer): Add the
6928 command "set/show debug observer".
6929 * observer.sh: When observer debugging, log notify calls.
6930 * Makefile.in (observer.o): Update dependencies.
6931
ba3e8e46
JM
69322004-05-07 Jason Molenda (jmolenda@apple.com)
6933
6934 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6935
16796152
JB
69362004-05-07 Jim Blandy <jimb@redhat.com>
6937
daf6dc85
JB
6938 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6939 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6940 to recognize gpr regnums, instead of assuming that
6941 tdep->ppc_fp0_regnum marks the end of the general-purpose
6942 registers.
6943
16796152
JB
6944 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6945 the given architecture has floating-point registers.
6946
c69b8bfc
AC
69472004-05-07 Andrew Cagney <cagney@redhat.com>
6948
6949 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6950 macro defined to 1.
6951 * gdbarch.h, gdbarch.c: Re-generate.
6952 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6953 deprecated_use_generic_dummy_frames.
6954
7243600a
BF
69552004-05-07 Brian Ford <ford@vss.fsi.com>
6956
6957 * NEWS: Mention Cygwin DWARF 2 support.
6958
73c1e0a1
AC
69592004-05-07 Andrew Cagney <cagney@redhat.com>
6960
6961 * objfiles.h (struct entry_info): Delete unused fields
6962 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6963 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6964 * mipsread.c (mipscoff_symfile_read): Update.
6965 * mdebugread.c (parse_partial_symbols): Update.
6966 * dwarfread.c (read_file_scope): Update.
6967 * dwarf2read.c (read_file_scope): Update.
6968 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6969 * coffread.c (complete_symtab): Update.
6970
1d3056ac
MK
69712004-05-07 Mark Kettenis <kettenis@gnu.org>
6972
6973 * infcall.c (_initialize_infcall): Fix typo.
6974
15170568
AC
69752004-05-07 Andrew Cagney <cagney@redhat.com>
6976
6977 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6978 * command.h (add_setshow_zinteger_cmd): Declare.
6979
34f75cc1
RC
69802004-05-06 Randolph Chung <tausq@debian.org>
6981
6982 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6983 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6984 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6985 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6986 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6987 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6988 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6989 definitions ...
6990 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6991 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6992 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6993 (hppa64_hpux_frame_find_saved_regs_in_sig)
6994 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6995 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6996 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6997 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6998 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6999 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7000 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7001 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7002 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7003 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7004 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7005 (hppa32_register_type, hppa_cannot_store_register)
7006 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7007 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7008 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7009 * pa64solib.c (pa64_solib_have_load_event)
7010 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7011 (pa64_solib_unloaded_library_pathname): Likewise.
7012 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7013 (som_solib_library_pathname): Likewise.
7014
0a5e7efe
JI
70152004-05-05 Jim Ingham <jingham@apple.com>
7016
7017 * breakpoint.c (create_breakpoints): Copy the ignore count and
7018 thread id over from the pended breakpoint to the actual
7019 breakpoint.
7020
10a4b113
AC
70212004-05-05 Andrew Cagney <cagney@redhat.com>
7022
7023 * gdbarch.sh (PARM_BOUNDARY): Delete.
7024 gdbarch.h, gdbarch.c: Re-generate.
7025 * valops.c (PARM_BOUNDARY): Delete macro.
7026 (value_push): Delete PARM_BOUNDARY code.
7027 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7028
366f009f
JB
70292004-05-04 Jim Blandy <jimb@redhat.com>
7030
32b99774
JB
7031 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7032 Don't assume that the gprs, fprs, and UISA sprs are
7033 contiguous, start at register number zero, and end with fpscr.
7034 Instead, use the numbers from the tdep structure.
7035
366f009f
JB
7036 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7037 should no longer be used in code specific to the RS6000 and its
7038 derivatives.
7039 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7040 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7041 tdep->ppc_fp0_regnum.
7042 (ppc_supply_fpregset, ppc_collect_fpregset)
7043 (rs6000_push_dummy_call, rs6000_extract_return_value)
7044 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7045 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7046 FP0_REGNUM.
7047 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7048 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7049 Same.
7050 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7051 bdm_ppc_store_registers): Same.
7052 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7053 (store_register, fill_fpregset): Same.
7054 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7055 (ppc_linux_supply_fpregset): Same.
7056 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7057 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7058 Same.
7059 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7060 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7061 ppc64_sysv_abi_return_value): Same.
7062 * rs6000-nat.c (regmap, fetch_inferior_registers)
7063 (store_inferior_registers, fetch_core_registers): Same.
7064
827f338d
MK
70652004-05-01 Mark Kettenis <kettenis@gnu.org>
7066
7067 * m68knbsd-nat.c: Remove file.
7068 * m68knbsd-tdep.c: Remove file.
7069 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7070 dependencies.
7071 * configure.host: Add m68k-*-netbsdelf*.
7072 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7073 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7074 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7075 (XM_FILE): Remove.
7076 * config/m68k/nbsdelf.mh: New file.
7077 * config/m68k/nbsd.mt: New file.
7078 * config/m68k/nbsdaout.mt: Remove file.
7079 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7080 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7081 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7082 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7083 (use_struct_convention): Remove prototype.
7084 (USE_STRUCT_CONVENTION): Remove define.
7085 * config/m68k/xm-nbsd.h: Remove file.
7086
66894781
MS
70872004-05-04 Michael Snyder <msnyder@redhat.com>
7088
7089 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7090 reg_struct_return method (as gcc usually does for cross targets).
7091
f0f63663
AC
70922004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7093
7094 Committed by Andrew Cagney.
7095 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7096 alignment padding when accessing ucontext struct members.
7097
edf61169
JB
70982004-05-04 Jim Blandy <jimb@redhat.com>
7099
8bf659e8
JB
7100 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7101 'ppc_gplast_regnum' member.
7102 (ppc_num_gprs): New enum constant.
7103 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7104 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7105 * rs6000-nat.c (regmap, fetch_inferior_registers,
7106 store_inferior_registers): Same.
7107 * rs6000-tdep.c (e500_pseudo_register_read)
7108 (e500_pseudo_register_write): Same.
7109 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7110
b967e06f
JB
7111 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7112 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7113 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7114 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7115 FPLAST_REGNUM.
7116 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7117 Same.
7118 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7119 * rs6000-nat.c (regmap, fetch_inferior_registers)
7120 (store_inferior_registers): Same.
7121
edf61169
JB
7122 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7123 with FPLAST_REGNUM.
7124
58a9656e
JB
71252004-05-03 Joel Brobecker <brobecker@gnat.com>
7126
7127 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7128 failure detected by recent versions of GCC.
7129 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7130 to be consistent with the usage in dwarf2_create_include_psymtab.
7131
dc305454
MS
71322004-05-03 Michael Snyder <msnyder@redhat.com>
7133
7134 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7135 (heuristic_proc_start): Whitespace cleanup.
7136
29972665
MK
71372004-05-04 Mark Kettenis <kettenis@gnu.org>
7138
6b57680d
MK
7139 * sun3-nat.c: Remove file.
7140 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7141 dependencies.
7142 (ALLDEPFILES): Remove sun3-nat.c.
7143 (sun3-nat.o): Remove dependencies.
7144
29972665
MK
7145 * i386-interix-nat.c, i386-interix-tdep.c,
7146 config/i386/nm-interix.h, config/i386/interix.mh,
7147 config/i386/interix.mt: Remove files.
7148 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7149 dependencies.
7150
f595cb19
MK
71512004-05-03 Mark Kettenis <kettenis@gnu.org>
7152
7153 * m68k-tdep.h (struct gdbarch_tdep): Add member
7154 struct_value_regnum.
7155 (m68k_svr4_init_abi): New prototype.
7156 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7157 different calling conventions.
7158 (m68k_extract_return_value): Remove code dealing with single-field
7159 structs.
7160 (m68k_store_return_value): Remove code dealing with single-field
7161 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7162 (m68k_extract_struct_value_address): Remove function.
7163 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7164 (m68k_reg_struct_return_p, m68k_return_value)
7165 (m68k_svr4_return_value): New functions.
7166 (m68k_use_struct_convention): Remove function.
7167 (m68k_push_dummy_call): Use new struct_value_regnum member of
7168 `struct gdbarch_tdep' instead of hardcoded register number to
7169 store STRUCT_ADDR.
7170 (m68k_svr4_init_abi): New function.
7171 (m68k_gdbarch_init): Don't set extract_return_value,
7172 store_return_values, deprecated_extract_struct_value_address and
7173 use_struct_convention. Set return_value instead. Initialize new
7174 struct_value_regnum member of `struct gdbarch_tdep'.
7175 * m68klinux-tdep.c: Update copyright year.
7176 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7177 (m68k_linux_extract_struct_value_address): Remove function.
7178 (m68k_linux_init_abi): Don't set extract_return_value,
7179 store_return_values, deprecated_extract_struct_value_address and
7180 use_struct_convention. Call m68k_svr4_init_abi but override the
7181 new struct_value_regnum member of `struct gdbarch_tdep'.
7182 * Makefile.in (m68k-tdep.o): Update dependencies.
7183
aaa75496
JB
71842004-05-03 J. Brobecker <brobecker@gnat.com>
7185
7186 * dwarf2read.c (line_header): Add new included_p field in
7187 field file_names.
7188 (partial_die_info): New field has_stmt_list. New field line_offset.
7189 (dwarf2_create_include_psymtab): New function.
7190 (dwarf2_build_include_psymtabs): New function.
7191 (add_file_name): Add forward declaration. Initialize new field.
7192 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7193 to be able to determine the list of files included by the
7194 given unit, and build their associated psymtabs.
7195 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7196 files as well.
7197 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7198 (read_file_scope): Update call to dwarf_decode_lines.
7199 (read_partial_die): Handle DW_AT_stmt_list attributes.
7200
c848556f
MC
72012004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7202
7203 Unfix PR gdb/1626.
7204 * configure.in: Revert special case for osf5.*.
7205 * configure: Regenerate.
7206
eb4556d7
JB
72072004-05-02 Jim Blandy <jimb@redhat.com>
7208
7209 Move the symbol-file-from-memory functions into their own file.
7210 * symfile-mem.c, symfile-mem.h: New files.
7211 * symfile.c (symbol_file_add_from_bfd): New function.
7212 (symbol_file_add): Call symbol_file_add_from_bfd.
7213 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7214 Moved to symfile-mem.c.
7215 (_initialize_symfile): Move definition of
7216 add-symbol-file-from-memory command to symfile-mem.c.
7217 * symfile.h (symbol_file_add_from_bfd): New declaration.
7218 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7219 * config/powerpc/linux.mt (TDEPFILES): Same.
7220 * Makefile.in (SFILES): Add symfile-mem.c.
7221 (symfile_mem_h): New variable.
7222 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7223 (symfile-mem.o): New rule.
7224
80bb239e
AC
72252004-05-01 Andrew Cagney <cagney@redhat.com>
7226
7789d0fa
AC
7227 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7228 frame_find_by_id instead of frame_relative_level.
7229 (do_enable_breakpoint): Ditto.
7230 * thread.c: Update copyright.
7231 (info_threads_command): Ditto, simplify.
7232
80bb239e
AC
7233 * frame.c (deprecated_generic_get_saved_register): Delete
7234 function, moved to "xstormy16-tdep.c".
7235 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7236 deprecated_generic_get_saved_register from "frame.c".
7237 (xstormy16_frame_saved_register): Call
7238 xstormy16_get_saved_register.
7239 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7240 static.
7241 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7242 * frame.h (deprecated_generic_get_saved_register): Delete.
7243
b2a871dd
MC
72442004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7245
7246 * dwarfread.c: Update documentation on the state of dwarf-1.
7247
0e100dab
AC
72482004-05-01 Andrew Cagney <cagney@redhat.com>
7249
acd8056e
AC
7250 * stack.c (select_frame_command): Delete call to
7251 frame_relative_level.
7252 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7253 Delete #if0 code.
7254 (frame_info): Do not print FRAMELESS.
7255 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7256 (catch_info): Delete #if0 code.
7257
0e100dab
AC
7258 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7259 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7260 of frame_relative_level.
7261 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7262 to SENTINEL_FRAME.
7263 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7264 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7265 frame_relative_level.
7266
55699d59
AC
7267 * frame.h (deprecated_set_frame_type): Delete declaration.
7268 * frame.c (deprecated_set_frame_type): Delete function, update
7269 comments.
7270
fcf70625
AC
7271 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7272 * gdbarch.h, gdbarch.c: Re-generate.
7273 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7274 (shnbsd_pc_in_sigtramp): Delete.
7275 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7276 pc_in_sigtramp.
7277 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7278 pc_in_sigtramp.
7279 * frame.h: Update comments.
7280 * ppc-linux-tdep.c: Update comments.
7281 * breakpoint.c (bpstat_what): Update comments.
7282
ac5eccb7
AC
7283 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7284 m68klinux-tdep.o's dependencies, were previously added to
7285 m68klinux-nat.o.
7286
f2524b93
AC
7287 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7288 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7289 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7290 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7291 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7292
17e20bce
AC
7293 * Makefile.in (m68klinux-nat.o): Update dependencies.
7294 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7295 (m68k_linux_sigtramp_frame_cache)
7296 (m68k_linux_sigtramp_frame_this_id)
7297 (m68k_linux_sigtramp_frame_prev_register)
7298 (m68k_linux_sigtramp_frame_unwind)
7299 (m68k_linux_sigtramp_frame_sniffer)
7300 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7301 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7302 names, use trad-frame.h.
7303 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7304 (struct m68k_sigtramp_info): Delete.
7305 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7306 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7307 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7308 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7309 "m68klinux-tdep.c".
7310
c8864fa2
AC
7311 * infrun.c (check_sigtramp2): Delete check for
7312 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7313
511dd2cd
MK
73142004-05-01 Mark Kettenis <kettenis@gnu.org>
7315
7316 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7317
8c6b0e06
AC
73182004-05-01 Andrew Cagney <cagney@redhat.com>
7319
9df0bb3f
AC
7320 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7321 (frv_linux_sigtramp_frame_cache)
7322 (frv_linux_sigtramp_frame_this_id)
7323 (frv_linux_sigtramp_frame_prev_register)
7324 (frv_linux_sigtramp_frame_unwind)
7325 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7326 include "linux" in function and variable names, directly call
7327 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7328 the latest trad-frame code.
7329 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7330 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7331 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7332 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7333 * frv-tdep.c (frv_sigtramp_frame_cache)
7334 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7335 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7336 frv-linux-tdep.c.
7337 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7338 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7339 (frv_set_sigcontext_reg_addr): Delete function.
7340
8c6b0e06
AC
7341 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7342 (DEPRECATED_SIGTRAMP_END): Delete.
7343 * gdbarch.h, gdbarch.c: Re-generate.
7344 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7345 * config/vax/tm-vaxbsd.h: Update copyright.
7346 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7347 (DEPRECATED_IN_SIGTRAMP): Define.
7348 * config/m68k/tm-nbsd.h: Update copyright.
7349 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7350 (DEPRECATED_IN_SIGTRAMP): Define.
7351
50ea7769
MK
73522004-05-01 Mark Kettenis <kettenis@gnu.org>
7353
03ac2a74
MK
7354 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7355 encondings. Fixes PR gdb/1628.
7356
50ea7769
MK
7357 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7358 DW_CFA_restore state without a matching DW_CFA_remember_state
7359 instead of aborting. Fixes PR backtrace/1589.
7360
9a5d7be1
JB
73612004-04-30 Joel Brobecker <brobecker@gnat.com>
7362
7363 * MAINTAINERS: Add self as AIX maintainer.
7364 Update my e-mail address in write-after-approval section.
7365
2593d1cd
AC
73662004-04-30 Andrew Cagney <cagney@redhat.com>
7367
ce12bbf9
AC
7368 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7369 (legacy_get_prev_frame): Ditto.
7370
36710c63
AC
7371 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7372 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7373 * mipsread.c (sigtramp_address): Delete extern variable.
7374 (mipscoff_new_init): Delete reference.
7375 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7376 (fixup_sigtramp): Delete function.
7377 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7378 (fixup_sigtramp): Delete declarations.
7379
2593d1cd
AC
7380 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7381 deprecated_pc_in_sigtramp.
7382 (ppcnbsd_pc_in_sigtramp): Delete function.
7383
2a25f91c
MK
73842004-05-01 Mark Kettenis <kettenis@gnu.org>
7385
7386 * config/m68k/nm-nbsd.h: Tweak comments.
7387 * config/m68k/nm-nbsdaout.h: Likewise.
7388
0b281939
AC
73892004-04-30 Andrew Cagney <cagney@redhat.com>
7390
7391 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7392 legacy_pc_in_sigtramp.
7393 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7394
8f2d3ea0
MK
73952004-05-01 Mark Kettenis <kettenis@gnu.org>
7396
7397 Add OpenBSD/m68k support.
7398 * NEWS (New native configurations): Mention OpenBSD/m68k.
7399 * m68kbsd-tdep.c: New file.
7400 * m68kbsd-nat.c: New file.
7401 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7402 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7403 * configure.host: Add m68k-*-openbsd.
7404 * configure.tgt: Add m68k-*-openbsd.
7405 * config/m68k/tm-obsd.h: New file.
7406 * config/m68k/obsd.mt: New file.
7407 * config/m68k/obsd.mh: New file.
7408 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7409 m68kbsd-tdep.c.
7410
c40f49a4
AC
74112004-04-30 Andrew Cagney <cagney@redhat.com>
7412
7413 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7414 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7415
e81554cd
MK
74162004-04-30 Mark Kettenis <kettenis@gnu.org>
7417
7418 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7419 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7420
d4dc1a91
BF
74212004-04-30 Brian Ford <ford@vss.fsi.com>
7422
7423 Revert 2004-04-16 change.
7424 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7425 (i386_coff_init_abi): Remove.
7426 * i386-tdep.h (i386_coff_init_abi): Remove.
7427 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7428
2f72f850
AC
74292004-04-30 Andrew Cagney <cagney@redhat.com>
7430
e492f9d6
AC
7431 * blockframe.c (find_pc_partial_function): Delete use of
7432 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7433 DEPRECATED_SIGTRAMP_END.
7434
7b7adad0
AC
7435 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7436 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7437 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7438 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7439 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7440
2f72f850
AC
7441 * defs.h (deprecated_inside_entry_file): Delete declaration.
7442 * blockframe.c (deprecated_inside_entry_file): Delete function.
7443 (legacy_frame_chain_valid): Delete call.
7444 * sh64-tdep.c (sh64_frame_chain): Delete call.
7445 * objfiles.h: Update comments.
7446 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7447 call.
7448 * frame.c (get_prev_frame): Delete call, update comments.
7449
283f90a7
BF
74502004-04-30 Brian Ford <ford@vss.fsi.com>
7451
7452 * MAINTAINERS (Write After Approval): Add myself.
7453
8ee56bcf
AC
74542004-04-30 Andrew Cagney <cagney@redhat.com>
7455
7456 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7457 * gdbarch.h, gdbarch.c: Re-generate.
7458 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7459 code.
7460
ee27e1b6
AC
74612004-04-30 Andrew Cagney <cagney@redhat.com>
7462
7463 * gdb-events.sh (selected_thread_changed)
7464 (selected_frame_level_changed, target_changed): Delete.
7465 * gdb-events.h, gdb-events.c: Re-generate.
7466 * valops.c (value_assign): Update.
7467 * stack.c (select_frame_command, up_silently_base)
7468 (down_silently_base): Update.
7469
d5ac5a39
AC
74702004-04-29 Andrew Cagney <cagney@redhat.com>
7471
7472 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7473 registers correctly.
7474 (print_gp_register_row, mips32_heuristic_proc_desc)
7475 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7476 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7477 references to mips_isa_regsize.
7478
ceae6e75
AC
74792004-04-29 Andrew Cagney <cagney@redhat.com>
7480
7481 * mips-tdep.c (struct gdbarch_tdep): Delete
7482 mips_fp_register_double.
7483 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7484 mips_abi_regsize.
7485 (mips_gdbarch_init): Do not set mips_fp_register_double.
7486 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7487
a587af0b
AC
74882004-04-29 Joel Brobecker <brobecker@gnat.com>
7489
7490 Committed by Andrew Cagney.
7491 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7492 function calls.
7493
13326b4e
AC
74942004-04-29 Andrew Cagney <cagney@redhat.com>
7495
7496 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7497 gdbarch, use mips_abi, update callers.
7498 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7499 mips_abi_regsize, update callers.
7500 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7501 mips_default_abi_regsize.
7502 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7503 mips_default_abi_regsize.
7504
711cc5cd
AC
75052004-04-29 Andrew Cagney <cagney@redhat.com>
7506
1b13c4f6
AC
7507 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7508 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7509 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7510 mips_default_abi_regsize.
7511 (mips_isa_regsize): Rename mips_regisze.
7512 * mipsnbsd-tdep.c: Update.
7513 * mips-linux-tdep.c: Update.
7514 * irix5-nat.c: Update.
7515 * mips-tdep.h (mips_isa_regsize): Update.
7516
711cc5cd
AC
7517 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7518 Delete all disabled code.
7519 * gdb-events.h, gdb-events.c: Re-generate.
7520
e63bbc88
MK
75212004-04-19 Jerome Guitton <guitton@gnat.com>
7522 Mark Kettenis <kettenis@gnu.org>
7523
7524 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7525 the function begins with a branch instruction.
7526
fd35795f
MK
75272004-04-29 Mark Kettenis <kettenis@gnu.org>
7528
7529 * i386-tdep.c: Fix spelling mistakes.
7530
c960c18f
AC
75312004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7532 Andrew Cagney <cagney@redhat.com>
7533
7534 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7535 <sys/proc.h>.
7536 * acconfig.h: Provide default _KMEMUSER value.
7537 * config.in, configure: Re-generate.
7538 * NEWS: Mention fix.
7539
50306a9d
RC
75402004-04-24 Randolph Chung <tausq@debian.org>
7541
7542 * configure.host (hppa*-*-linux*): New target.
7543 * configure.tgt (hppa*-*-linux*): Likewise.
7544 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7545 gdbarch_init_osabi() call earlier so that osabi-specific frame
7546 unwinders can be registered first.
7547 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7548 hppa-linux-nat.c.
7549 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7550 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7551 * config/pa/linux.mh: New file.
7552 * config/pa/linux.mt: New file.
7553 * config/pa/nm-linux.h: New file.
7554 * config/pa/xm-linux.h: New file.
7555 * hppa-linux-nat.c: New file.
7556 * hppa-linux-tdep.c: New file.
7557
2a6228ef
RC
75582004-04-28 Randolph Chung <tausq@debian.org>
7559
7560 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7561 return values.
7562 (hppa32_push_dummy_call): Fix small struct and floating point argument
7563 passing, and make sure the stack frame is properly aligned.
7564
82c10df6
AC
75652004-04-28 Andrew Cagney <cagney@redhat.com>
7566
d762c46a
AC
7567 * stack.c (print_stack_frame): Fix description.
7568
82c10df6
AC
7569 * NEWS: Mention gdb/gdbserver/configure execute permission
7570 changed. PR server/519.
7571
0faf0076
AC
75722004-04-28 Andrew Cagney <cagney@redhat.com>
7573
7574 * stack.c (print_stack_frame_stub): Delete declaration.
7575 (struct print_stack_frame_args, print_stack_frame)
7576 (print_frame_info, print_frame): Replace "source" with print what.
7577 Replace "print" with "print_level". Replace "args" with
7578 "print_args".
7579 * frame.h (show_and_print_stack_frame, print_stack_frame)
7580 (print_frame_info): Update declarations.
7581 * stack.c (select_and_print_frame, frame_command)
7582 (current_frame_command, up_command, down_command): Update calls -
7583 use get_selected_frame, pass "enum print_what" for source, do not
7584 call frame_relative_level.
7585 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7586 * remote-rdp.c (remote_rdp_open): Ditto.
7587 * remote-mips.c (common_open): Ditto.
7588 * remote-e7000.c (e7000_start_remote): Ditto.
7589 * ocd.c (ocd_start_remote): Ditto.
7590 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7591 * infrun.c (normal_stop): Ditto.
7592 * inflow.c (kill_command): Ditto.
7593 * infcmd.c (finish_command): Ditto.
7594 * corelow.c (core_open): Ditto.
7595 * tracepoint.c (finish_tfind_command): Ditto.
7596 * thread.c (info_threads_command, info_threads_command)
7597 (restore_current_thread, do_captured_thread_select): Ditto.
7598 * ada-tasks.c (task_command): Ditto.
7599
f4c5303c
OF
76002004-04-26 Orjan Friberg <orjanf@axis.com>
7601
7602 * frame.c: Include "observer.h".
7603 (frame_observer_target_changed): New function.
7604 (_initialize_frame): Attach target_changed observer.
7605 * regcache.c: Include "observer.h".
7606 (regcache_observer_target_changed): New function.
7607 (_initialize_regcache): Attach target_changed observer.
7608 * valops.c: Include "observer.h".
7609 (value_assign): Notify target_changed event when modifying register.
7610 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7611
7270d8f2
OF
76122004-04-26 Orjan Friberg <orjanf@axis.com>
7613
7614 From Paul Koning <pkoning@equallogic.com>:
7615 * breakpoint.c (free_valchain): New function.
7616 (insert_bp_location, delete_breakpoint): Use free_valchain.
7617 (remove_breakpoint): Do not remove the valchain.
7618 (bpstat_stop_status): If not stopped by watchpoint, skip
7619 watchpoints when generating stop status list.
7620 * infrun.c (handle_inferior_event): Make
7621 stepped_after_stopped_by_watchpoint a global variable.
7622 * remote.c (remote_stopped_data_address): Return watch data
7623 address rather than zero if stepped_after_stopped_by_watchpoint is
7624 set.
7625
02d62932
MC
76262004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7627
7628 Fix PR gdb/1626.
7629 * configure.in: Check for curses after termcap.
7630 On osf5.*, do not check for ncurses.
7631 * configure: Regenerate.
7632
3e9a183c
MK
76332004-04-25 Mark Kettenis <kettenis@gnu.org>
7634
c79ac407
MK
7635 * ppcobsd-nat.c: Include "ppc-tdep.h".
7636 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7637
3e9a183c
MK
7638 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7639 Fixes PR tdep/1623 and PR tdep/1624.
7640
38cc9c28
MC
76412004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7642
7643 * xmodem.h, xmodem.c: Remove files.
7644 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7645
7f07c5b6
RC
76462004-04-23 Randolph Chung <tausq@debian.org>
7647
7648 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7649 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7650 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7651 for handling stackless frames.
7652 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7653
9f7194c3
RC
76542004-04-23 Randolph Chung <tausq@debian.org>
7655
7656 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7657 starts at a pc before the frame is created.
7658
dcff6009
JB
76592004-04-23 Joel Brobecker <brobecker@gnat.com>
7660
7661 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7662
40711ff1 76632004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
7664
7665 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7666 use convert_typed_floating to get the appropriate format.
7667
abc485a1
RC
76682004-04-22 Randolph Chung <tausq@debian.org>
7669
7670 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7671 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7672 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7673 (hppa_sign_extend): Add prototype.
7674 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7675 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7676 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7677 hppa targets will also use these functions.
7678 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7679 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7680 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7681 (hppa_gdbarch_init): Remove gdbarch setting of
7682 skip_trampoline_code, in_solib_call_trampoline and
7683 in_solib_return_trampoline.
7684 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7685 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7686 hppa_in_solib_call_trampoline.
7687 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7688 Moved from hppa-tdep.c.
7689 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7690 in_solib_call_trampoline and in_solib_return_trampoline.
7691
369aa520
RC
76922004-04-22 Randolph Chung <tausq@debian.org>
7693
7694 * hppa-tdep.c (hppa_debug): New variable.
7695 (find_unwind_entry, hppa_frame_cache): Add debug output.
7696 (_initialize_hppa_tdep): Add command to set debug flag.
7697
476be15e
AC
76982004-04-22 Andrew Cagney <cagney@redhat.com>
7699
7700 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7701 "trad-frame.h".
7702 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7703 signal trampoline unwinder.
7704 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7705
d195bc9f
MK
77062004-04-22 Mark Kettenis <kettenis@gnu.org>
7707
7708 Add OpenBSD/powerpc support.
7709 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7710 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7711 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7712 (ppc_collect_fpregset): New prototypes.
7713 * ppcobsd-nat.c: New file.
7714 * ppcobsd-tdep.c: New file.
7715 * ppcobsd-tdep.h: New file.
7716 * rs6000-tdep.c: Include "regset.h".
7717 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7718 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7719 New functions.
7720 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7721 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7722 (rs6000-tdep.o): Update dependencies.
7723 * configure.host: Add powerpc-*-openbsd.
7724 * configure.tgt: Add powerpc-*-openbsd.
7725 * config/powerpc/obsd.mh: New file.
7726 * config/powerpc/nm-obsd.h: New file.
7727 * config/powerpc/obsd.mt: New file.
7728
6f14cc33
AC
77292004-04-22 Andrew Cagney <cagney@redhat.com>
7730
fcf29e5f
AC
7731 * frame.h (show_frame_info): Delete declaration.
7732
6f14cc33
AC
7733 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7734 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7735 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7736 * frv-tdep.c (frv_frame_this_id): Ditto.
7737 * avr-tdep.c (avr_frame_this_id): Ditto.
7738
e5786a5c
EZ
77392004-04-22 Elena Zannoni <ezannoni@redhat.com>
7740
7741 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7742
26e75e5c
JB
77432004-04-22 Jim Blandy <jimb@redhat.com>
7744
7745 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7746 register number zero.
7747
d8d65dd3
MS
77482004-04-21 Michael Snyder <msnyder@redhat.com>
7749
7750 * mips-tdep.c (heuristic_proc_start):
7751 Warning() already prefixes "Warning: ".
7752
9a4105ab
AC
77532004-04-21 Andrew Cagney <cagney@redhat.com>
7754
7755 * annotate.h (deprecated_annotate_starting_hook)
7756 (deprecated_annotate_stopped_hook)
7757 (deprecated_annotate_exited_hook)
7758 (deprecated_annotate_signal_hook)
7759 (deprecated_annotate_signalled_hook): Deprecate.
7760 * tracepoint.h (deprecated_create_tracepoint_hook)
7761 (deprecated_delete_tracepoint_hook)
7762 (deprecated_modify_tracepoint_hook)
7763 (deprecated_trace_find_hook)
7764 (deprecated_trace_start_stop_hook): Deprecate.
7765 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7766 * remote.h (deprecated_target_resume_hook)
7767 (deprecated_target_wait_loop_hook): Deprecate.
7768 * gdbcore.h (deprecated_exec_file_display_hook)
7769 (deprecated_file_changed_hook): Deprecate.
7770 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7771 * defs.h (deprecated_modify_breakpoint_hook)
7772 (deprecated_command_loop_hook, deprecated_show_load_progress)
7773 (deprecated_print_frame_info_listing_hook)
7774 (deprecated_query_hook, deprecated_warning_hook)
7775 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7776 (deprecated_delete_breakpoint_hook)
7777 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7778 (deprecated_readline_begin_hook, deprecated_readline_hook)
7779 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7780 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7781 (deprecated_context_hook, deprecated_target_wait_hook)
7782 (deprecated_attach_hook, deprecated_detach_hook)
7783 (deprecated_call_command_hook, deprecated_set_hook)
7784 (deprecated_error_hook, deprecated_error_begin_hook)
7785 (deprecated_ui_load_progress_hook): Deprecate.
7786 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7787 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7788 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7789 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7790 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7791 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7792 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7793 * annotate.c, aix-thread.c: Update.
7794
62cf13cc
AC
77952004-04-21 Andrew Cagney <cagney@redhat.com>
7796
b2e31a62
AC
7797 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7798 * vaxnbsd-tdep.c: Include "gdb_string.h".
7799
62cf13cc
AC
7800 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7801 (add_symbol_file_from_memory_command): #if 0 function body, call
7802 error instead.
7803
00e32a35
AC
78042004-04-21 Andrew Cagney <cagney@redhat.com>
7805
7806 * gdbcore.h: Update copyright.
7807 (deprecated_add_core_fns): Rename add_core_fns.
7808 * win32-nat.c (_initialize_core_win32): Update.
7809 * sun3-nat.c (_initialize_core_sun3): Update.
7810 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7811 * rs6000-nat.c (_initialize_core_rs6000): Update.
7812 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7813 * nto-tdep.c (_initialize_nto_tdep): Update.
7814 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7815 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7816 * mips-nat.c (_initialize_core_mips): Update.
7817 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7818 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7819 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7820 * lynx-nat.c (_initialize_core_lynx): Update.
7821 * irix5-nat.c (_initialize_core_irix5): Update.
7822 * i386-interix-nat.c (_initialize_core_interix): Update.
7823 * cris-tdep.c (_initialize_cris_tdep): Update.
7824 * corelow.c (deprecated_add_core_fns): Update.
7825 * core-regset.c (_initialize_core_regset): Update.
7826 * core-aout.c (_initialize_core_aout): Update.
7827 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7828 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7829 * alpha-nat.c (_initialize_core_alpha): Update.
7830
13c7b1ca
JB
78312004-04-21 Jim Blandy <jimb@redhat.com>
7832
7833 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7834
7b5a2f43
DJ
78352004-04-19 Daniel Jacobowitz <drow@mvista.com>
7836
7837 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7838 Delete.
7839 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7840 (read_attribute_value): Update calls to dwarf_alloc_block.
7841 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7842 dwarf2_tmp_obstack.
7843 (psymtab_to_symtab_1): Likewise. Clean up using
7844 free_stack_comp_unit.
7845 (add_to_cu_func_list): Use the comp_unit_obstack.
7846
05cf31d1
JB
78472004-04-19 Joel Brobecker <brobecker@gnat.com>
7848
7849 * dwarf2read.c (dwarf2_flag_true_p): New function.
7850 (die_is_declaration): Use the function above. Add some comments.
7851
adf93a2f
MK
78522004-04-19 Mark Kettenis <kettenis@gnu.org>
7853
7854 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7855 architecture when registering sparcnbsd_core_osabi_sniffer.
7856 Adjust comment.
7857
748894bf
MK
78582004-04-18 Mark Kettenis <kettenis@gnu.org>
7859
f622ad42
MK
7860 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7861 return value.
7862
c4fc7f1b
MK
7863 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7864 * i386-tdep.c: Correct register numbering scheme comments
7865 throughout.
7866 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7867 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7868 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7869 (i386_gdb_arch_init): Likewise.
7870
b4ead1bd
MK
7871 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7872 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7873 ppcnbsd-tdep.o.
7874
748894bf
MK
7875 * m68k-tdep.h: Tweak comments.
7876 * m68k-tdep.c: Tweak comment.
7877
fdd72f95
RC
78782004-04-17 Randolph Chung <tausq@debian.org>
7879
7880 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7881 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7882 (hppa_hpux_som_init_abi): Set is_elf to 0.
7883 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7884 * hppa-tdep.c (low_text_segment_address): Remove global.
7885 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7886 section offset to calculate segment address.
7887 (internalize_unwinds): Define low_text_segment_address as local and
7888 pass to record_text_segment_lowaddr for ELF targets.
7889 (hppa_gdbarch_init): Zero fill tdep structure.
7890 (hppa_dump_tdep): Print tdep structure.
7891 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7892
0f8d9d59
RC
78932004-04-17 Randolph Chung <tausq@debian.org>
7894
7895 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7896 (hppa_gdbarch_init): Set pseudo_register_read.
7897 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7898 * regcache.c (supply_register): Remove check for
7899 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7900
7c46b9fb
RC
79012004-04-17 Randolph Chung <tausq@debian.org>
7902
7903 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7904 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7905 (hpread_adjust_stack_address): Move to hpread.c.
7906 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7907 obj_private_struct): Move from tm-hppa.h.
7908 * hpread.c (hppa-tdep.h): Include.
7909 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7910 (hpread_read_function_type, hpread_read_doc_function_type)
7911 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7912 directly.
7913 * pa64solib.c (hppa-tdep.h): Include.
7914 * somsolib.c (hppa-tdep.h): Include.
7915 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7916 inferior_status): Remove unused forward declarations.
7917 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7918 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7919 obj_private_struct): Move to hppa-tdep.h.
7920 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7921
8d153463
RC
79222004-04-17 Randolph Chung <tausq@debian.org>
7923
7924 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7925 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7926 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7927 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7928 Remove forward declaration and make static.
7929 (hppa_reg_struct_has_addr): Remove.
7930
350c2e5b
JB
79312004-04-16 Joel Brobecker <brobecker@gnat.com>
7932
7933 * observer.sh: Move comments in sed command to first column.
7934
bbde78fa
JM
79352004-04-16 Jason Molenda (jmolenda@apple.com)
7936
7937 * frame.c: Minor typeo corrections in comments.
7938
e0270fd9
JB
79392004-04-16 Joel Brobecker <brobecker@gnat.com>
7940
7941 * observer.c (observer_test_first_notification_function): Update
7942 function profile.
7943 (observer_test_second_notification_function): Likewise.
7944 (observer_test_third_notification_function): Likewise.
7945
3d049254
MK
79462004-04-16 Mark Kettenis <kettenis@gnu.org>
7947
7948 From Brian Ford <ford@vss.fsi.com>:
7949 * i386-tdep.c (i386_coff_init_abi): New function.
7950 * i386-tdep.h (i386_coff_init_abi): New prototype.
7951 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7952 register number translation functions for DWARF and DWARF 2.
7953
7867684d
JB
79542004-04-16 Joel Brobecker <brobecker@gnat.com>
7955
7956 * dwarf2read.c: Back out my previous change, it was incorrect.
7957
72bf9492
DJ
79582004-04-16 Daniel Jacobowitz <drow@mvista.com>
7959
7960 * dwarf2read.c: Include "hashtab.h".
7961 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7962 has_namespace_info.
7963 (struct partial_die_info): Add comments. Use bitfields to reduce
7964 memory footprint. Add scope, scope_set, has_specification,
7965 spec_offset, die_parent, die_child, and die_sibling.
7966 (peek_die_abbrev): Add prototype.
7967 (partial_read_comp_unit_head): New function, broken out from
7968 dwarf2_build_psymtabs_hard.
7969 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7970 Use partial_read_comp_unit_head. Initialize the CU and
7971 comp_unit_obstack. Update calls to read_partial_die and
7972 scan_partial_symbols. Use free_stack_comp_unit and
7973 load_partial_dies.
7974 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7975 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7976 Update calls to helper functions. Remove NAMESPACE argument.
7977 Update comments.
7978 (partial_die_parent_scope, partial_die_full_name): New functions.
7979 (add_partial_symbol): Remove namespace argument. Update call to
7980 pdi_needs_namespace. Use partial_die_full_name. Handle
7981 DW_TAG_namespace. Check has_namespace_info flag.
7982 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7983 tag. Handle namespaces.
7984 (add_partial_namespace, add_partial_enumeration): Simplify.
7985 (guess_structure_name): New function, derived from
7986 add_partial_structure.
7987 (add_partial_structure): Remove.
7988 (determine_class_name): Update comment.
7989 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7990 (is_type_tag_for_partial, load_partial_dies): New functions.
7991 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7992 Record specifications instead of following them immediately.
7993 (find_partial_die_in_comp_unit, find_partial_die)
7994 (fixup_partial_die, free_stack_comp_unit)
7995 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7996 (partial_die_hash, partial_die_eq): New functions.
7997 * Makefile.in (hashtab_h): Define.
7998 (dwarf2read.o): Update dependencies.
7999 (observer_inc, observer_h): Move to the correct section.
8000
fdc860a3
JB
80012004-04-15 Joel Brobecker <brobecker@gnat.com>
8002
8003 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8004 (die_is_declaration): Use the function above. Add comment.
8005
dc718098
JB
80062004-04-15 Joel Brobecker <brobecker@gnat.com>
8007
8008 * dwarf2read.c (read_structure_scope): Identify stub types
8009 using die_is_declaration() only.
8010
8718a420
RM
80112004-04-15 Roland McGrath <roland@redhat.com>
8012
8013 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8014 argument instead of NAME.
8015 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8016 in call to symbol_file_add_with_addrs_or_offsets.
8017 (build_addr_info): New function, helper for ...
8018 (symbol_file_add_from_memory): New function.
8019 (add_symbol_file_from_memory_command): New function using that.
8020 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8021 (pre_add_symbol_hook): Add const to argument type.
8022 * symfile.h (symbol_file_add_from_memory): Declare it.
8023
8b910bab
MK
80242004-04-15 Mark Kettenis <kettenis@gnu.org>
8025
9f076e7a
MK
8026 * NEWS (New native configurations): Mention OpenBSD/vax.
8027 * configure.host: Add vax-*-openbsd*.
8028 * config/vax/obsd.mh: New file.
8029 * config/vax/nm-obsd.h: New file.
8030
8b910bab
MK
8031 * vax-tdep.c: Include "regset.h".
8032 (vax_supply_gregset): New function.
8033 (vax_gregset): New variable.
8034 (vax_regset_from_core_section): New function.
8035 (vax_gdbarch_init): Set regset_from_core_section.
8036 * Makefile.in (vax-tdep.o): Update dependencies.
8037
7a464420
AC
80382004-04-15 Andrew Cagney <cagney@redhat.com>
8039
8040 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8041 (observer_normal_stop_notification_stub)
8042 (observer_attach_normal_stop, observer_detach_normal_stop):
8043 Delete, replaced by #include "observer.inc".
8044 * infrun.c (normal_stop): Pass "stop_bpstat" to
8045 observer_notify_normal_stop.
8046 * Makefile.in (observer_inc): Define.
8047 (observer.o): Update dependencies.
8048 (observer.h, observer.inc): New rules.
8049 * observer.h: Delete file.
8050 * observer.sh: New file.
8051
e36ad527
MK
80522004-04-15 Mark Kettenis <kettenis@gnu.org>
8053
8054 * vax-tdep.c (vax_frame_cache): Fix typo.
8055
67b441e1
MK
80562004-04-14 Mark Kettenis <kettenis@gnu.org>
8057
6f606e1c
MK
8058 * NEWS (New native configurations): Mention NetBSD/vax.
8059 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8060 * config/vax/nbsdelf.mh: New file.
8061 * config/vax/nbsdaout.mh: New file.
8062 * config/vax/nm-nbsd.h: New file.
8063 * config/vax/nm-nbsdaout.h: New file.
8064
9c5519a5
MK
8065 * vaxnbsd-tdep.c: New file.
8066 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8067 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8068 * config/vax/nbsd.mt: New file.
8069 * config/vax/tm-nbsd.h: New file.
8070
4844a614
MK
8071 * Makefile.in (vaxbsd-nat.o): New dependency.
8072
67b441e1
MK
8073 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8074 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8075 struct_addr arguments. Don't push return value address.
8076 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8077 arguments to vax_store_arguments. Store return value address in
8078 R1.
8079 (vax_store_struct_return, vax_extract_return_value)
8080 (vax_store_return_value): Remove functions.
8081 (vax_return_value): New function.
8082 (vax_gdbarch_init): Set return value. Don't set
8083 deprecated_store_struct_return, deprecated_extract_struct_return
8084 and deprecated_store_return_value.
8085
6672f2ae
AS
80862004-04-14 Andreas Schwab <schwab@suse.de>
8087
8088 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8089 value buffer.
8090 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8091
7346c184
MK
80922004-04-14 Mark Kettenis <kettenis@gnu.org>
8093
8094 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8095 (vax_unwind_dummy_id): New functions.
8096 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8097 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8098 variables.
8099 (vax_fix_call_dummy): Remove function.
8100 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8101 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8102 call_dummy_location, deprecated_call_dummy_words,
8103 deprecated_sizeof_call_dummy_words,
8104 deprecated_call_dummy_breakpoint_offset,
8105 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8106 and deprecated_dummy_write_sp.
8107
58e23df4
DC
81082004-04-13 David Carlton <carlton@kealia.com>
8109
8110 * MAINTAINERS: Move myself to "paper trail" section.
8111
5e6b39ff
MK
81122004-04-12 Mark Kettenis <kettenis@gnu.org>
8113
7def7fef
MK
8114 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8115 "trad-frame.h".
8116 (vax_frame_init_saved_regs): Remove function.
8117 (vax_sigtramp_saved_pc): Remove function.
8118 (vax_frame_saved_pc): Remove function.
8119 (vax_frame_args_address): Remove function.
8120 (vax_frame_num_args): Rewrite.
8121 (vax_frame_chain): Remove function.
8122 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8123 VAX_FP_REGNUM.
8124 (vax_pop_frame): Likewise.
8125 (vax_saved_pc_after_call): Remove function.
8126 (struct vax_frame_cache): New structure.
8127 (vax_frame_cache): New function.
8128 (vax_frame_this_id): New function.
8129 (vax_frame_prev_register): New function.
8130 (vax_frame_unwind): New variable.
8131 (vax_frame_sniffer): New function.
8132 (vax_frame_base_address): New function.
8133 (vax_frame_args_address): New function.
8134 (vax_frame_base): New variable.
8135 (vax_unwind_pc): New function.
8136 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8137 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8138 deprecated_frame_chain, deprecated_frame_saved_pc,
8139 deprecated_frame_args_address and
8140 deprecated_frame_init_saved_regs.
8141 * Makefile.in (vax-tdep.o): Update dependencies.
8142
53284fc1
MK
8143 * vaxbsd-nat.c: New file.
8144
5e6b39ff
MK
8145 * vax-tdep.h: Update copyright year. Adjust comments.
8146 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8147 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8148 (vax_regnum): New enum. Replacing...
8149 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8150 (VAX_PS_REGNUM): ... these removed macros.
8151 * vax-tdep.c (vax_register_name): Remove prototype.
8152 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8153 (vax_register_byte, vax_register_raw_size,
8154 vax_register_virtual_size, vax_register_virtual_type): Remove
8155 functions.
8156 (vax_register_type): New function.
8157 (vax_breakpoint_from_pc): Reorganize.
8158 (vax_gdbarch_init): Set register_type. Don't set
8159 deprecated_register_size, deprecated_register_bytes,
8160 deprecated_register_byte, deprecated_register_raw_size,
8161 deprecated_max_register_raw_size,
8162 deprecated_register_virtual_size,
8163 deprecated_max_register_virtual_size and
8164 deprecated_register_virtual_type. Add comment on stack direction.
8165
e9c71e9f
MK
81662004-04-11 Mark Kettenis <kettenis@gnu.org>
8167
8168 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8169 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 8170 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 8171
d46f1176 81722004-04-10 Randolph Chung <tausq@debian.org>
8718a420 8173
d46f1176
RC
8174 * MAINTAINERS (write after approval): Add myself.
8175
a2a84a72
RC
81762004-04-07 Randolph Chung <tausq@debian.org>
8177
8178 * hppa-tdep.c (hppa_inner_than): Remove.
8179 (is_pa_2): Remove unused static variable.
8718a420 8180 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 8181
e85c3284
PH
81822004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8183
8184 * language.h (language_defn): Add new la_post_parser field.
8185 * parser-defs.h (null_post_parser): New declaration (default for
8186 la_post_parser).
8718a420 8187
e85c3284
PH
8188 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8189 insert call to that function.
8190 (parse_exp_in_context): New function, including code formerly in
8718a420 8191 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
8192 prefixification.
8193 (parse_expression_in_context): New exported function.
8194 (null_post_parser): New definition.
8195 * expression.h (parse_expression_in_context): Add declaration.
8718a420 8196
e85c3284
PH
8197 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8198 * c-lang.c (c_language_defn): Ditto.
8199 (cplus_language_defn): Ditto.
8200 (asm_language_defn): Ditto.
8201 (minimal_language_defn): Ditto.
8202 * f-lang.c (f_language_defn): Ditto.
8203 * jv-lang.c (java_language_defn): Ditto.
8204 * language.c (unknown_language_defn): Ditto.
8205 (auto_language_defn): Ditto.
8206 (local_language_defn): Ditto.
8207 * m2-lang.c (m2_language_defn): Ditto.
8208 * scm-lang.c (scm_language_defn): Ditto.
8209 * obj-lang.c (objc_language_defn): Ditto.
8718a420 8210
d9f8c85b
MK
82112004-04-10 Mark Kettenis <kettenis@gnu.org>
8212
fa34704a
MK
8213 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8214 (amd64nbsd_mcontext_addr): New function.
8215 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8216 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8217 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8218
403e1656
MK
8219 * corelow.c (core_xfer_partial): Fix coding standards violation.
8220 Add support for TARGET_OBJECT_WCOOKIE.
8221
a57e5a95
MK
8222 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8223 deprecated_pc_in_sigtramp.
8224 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8225 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8226 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8227 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8228 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8229 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8230 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8231
377d9ebd
MK
8232 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8233 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8234 Fix typo.
8235
f0ef85a5
MK
8236 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8237 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8238 (amd64_collect_fxsave): Likewise.
8239
d9f8c85b
MK
8240 * i386-sol2-tdep.c: Include "gdb_string.h".
8241 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8242 name.
8243 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8244
75f501b5
MK
82452004-04-10 Mark Kettenis <kettenis@gnu.org>
8246
8247 * i386-sol2-tdep.c: Include "solib-svr4.h".
8248 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8249 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8250 * config/i386/tm-i386sol2.h: Include :solib.h".
8251 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8252 solib-svr4.o and solib-legacy.o.
8253 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8254 solib-svr4.o.
8255
b31bc724
MK
82562004-04-09 Mark Kettenis <kettenis@gnu.org>
8257
18bbbd9e
MK
8258 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8259 whether a register is supplied by PTRACE_GETFPREGS.
8260 (store_inferior_registers): Likewise.
8261 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8262 whether a register is supplied by PT_GETFPREGS.
8263 (store_inferior_registers): Likewise.
8264
3c30bf1b
MK
8265 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8266 * config/i386/linux64.mt (TDEPFILES): Likewise.
8267
a4194092
MK
8268 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8269
911bc6ee
MK
8270 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8271 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8272 the program counter is in the range specified by `struct
8273 gdbarch_tdep'.
8274 * amd64-linux-tdep.c: Include "symtab.h".
8275 (amd64_linux_pc_in_sigtramp): Remove function.
8276 (amd64_linux_sigtramp_p): New function.
8277 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8278 deprecated_pc_in_sigtramp.
8279 * amd64nbsd-tdep.c: Include "symtab.h".
8280 (amd64nbsd_sigtramp_p): New function.
8281 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8282 deprecated_pc_in_sigtramp.
8283 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8284 few comments.
8285 (amd64obsd_pc_in_sigtramp): Remove function.
8286 (amd64obsd_sigtramp_p): New function.
8287 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8288 deprecated_pc_in_sigtramp.
8289 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8290 (i386bsd_pc_ins_sigtramp): Remove prototype.
8291 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8292 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8293 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8294 the program counter is in the range specified by `struct
8295 gdbarch_tdep'.
8296 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8297 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8298 (i386_go32_pc_in_sigtramp): Remove function.
8299 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8300 Initialize TDEP->sigtramp_p.
8301 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8302 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8303 deprecated_pc_in_sigtramp.
8304 * i386-linux-tdep.c: Adjust comments.
8305 (i386_linux_pc_in_sigtramp): Remove function.
8306 (i386_linux_sigtramp_p): New function.
8307 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8308 deprecated_pc_in_sigtramp.
8309 * i386-nto-tdep.c: Update copyright year.
8310 (i386nto_pc_in_sigtramp): Remove function.
8311 (i386nto_sigtramp_p): New function.
8312 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8313 SP_REGNUM.
8314 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8315 deprecated_pc_in_sigtramp.
8316 * i386-sol2-tdep.c: Update copyright year.
8317 (i386_sol2_pc_in_sigtramp): Remove function.
8318 (i386_sol2_sigtramp_p): New function.
8319 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8320 deprecated_pc_in_sigtramp.
8321 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8322 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8323 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8324 deprecated_sigtramp_start and deprecated_sigtramp_end.
8325 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8326 (i386nbsd_pc_in_sigtramp): Remove function.
8327 (i386nbsd_sigtramp_p): New function.
8328 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8329 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8330 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8331 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8332 (i386obsd_pc_in_sigtramp): Remove function.
8333 (i386obsd_sigtramp_p): New function.
8334 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8335 functions.
8336 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8337 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8338 TDEP->sigtramp_p.
8339 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8340 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8341 dependencies.
8342
e083e6ec
MK
8343 * config/i386/i386aout.mt: Remove file.
8344
bd153b94
MK
8345 * configure.tgt: Remove i[34567]86-*-go32*,
8346 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8347 and i[34567]86-*-isc*. Set gdb_target to i386 for
8348 i[34567]86-*-netware* and i[34567]86-*-*.
8349 * config/i386/i386.mt: New file.
8350 * config/i386/embed.mt: Remove file.
8351 * config/i386/go32.mt: Remove file.
8352 * config/i386/i386nw.mt: Remove file.
8353 * config/i386/i386v.mt: Remove file.
8354 * config/i386/tm-go32.h: Remove file.
8355
4a1bcc8c
MK
8356 * tui/tui-hooks.c: Include "readline/readline.h" after
8357 "gdb_curses.h" instead of before.
8358 * tui/tui-io.c: Likewise.
8359
f9a79064
MK
8360 * tui/tui.c: Fix typo in comment.
8361
b31bc724
MK
8362 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8363
f83f82bc
AC
83642004-04-08 Andrew Cagney <cagney@redhat.com>
8365
8366 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8367 (deprecated_exception_support_initialized): Declare.
8718a420 8368 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
8369 (initialize_hp_cxx_exception_support)
8370 (child_enable_exception_callback): Update.
8371 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8372 (deprecated_exception_support_initialized): Rename
8373 deprecated_exception_catchpoints_are_fragile and
8374 deprecated_exception_support_initialized.
8375 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8376
8377 * symtab.c (deprecated_hp_som_som_object_present): Rename
8378 hp_som_som_object_present.
8379 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8380 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8381 Update. Delete extern declaration.
8382 * valops.c (hp_som_som_object_present): Ditto.
8718a420 8383 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
8384 (parse_nested_classes_for_hpacc): Ditto.
8385 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 8386 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
8387 (initialize_hp_cxx_exception_support): Ditto.
8388 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 8389 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 8390 (cp_print_class_method): Ditto.
8718a420 8391 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
8392 (c_type_print_base): Ditto.
8393 * c-exp.y (hp_som_som_object_present): Ditto.
8394
fb2be677
AC
83952004-04-08 Andrew Cagney <cagney@redhat.com>
8396
8397 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8398 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8399 (frame_unwind_find_by_frame): Re-implement the unwind code so
8400 that it can both prepend and append sniffers. Replace
8401 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8402 * tramp-frame.c (tramp_frame_append): Use
8403 frame_unwind_prepend_unwinder.
8404 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8405 frame_unwind_register_unwinder.
8406 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8407 tramp_frame_append.
8408 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 8409 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
8410 (mips_linux_init_abi): Update.
8411
67faf007
KB
84122004-04-08 Kevin Buettner <kevinb@redhat.com>
8413
8414 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8415 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8416 file support.
8417
8973ff21
KB
84182004-04-07 Kevin Buettner <kevinb@redhat.com>
8419
8420 * ia64-tdep.c (elf.h): Don't include.
8421 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8422
4a0e2f88
JM
84232004-04-07 Jason Molenda (jmolenda@apple.com)
8424
8425 * frame.h: Typeo corrections in comments.
8426
9872ad24
JB
84272004-04-07 Jim Blandy <jimb@redhat.com>
8428
8429 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8430 %esp and %ebp
8431
70b216c8
MK
84322004-04-07 Mark Kettenis <kettenis@gnu.org>
8433
11d5789c
MK
8434 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8435 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8436 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8437 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8438 and solib-legacy.o.
8439 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8440 solib-svr4.o.
8441 * config/sparc/tm-sol2.h: Update copyright year. Include
8442 "solib.h".
8443
70b216c8
MK
8444 * sparc-sol2-tdep.c: Update copyright year. Include
8445 "solib-svr4.h".
8446 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8447 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8448 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 8449 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
8450 dependencies.
8451
6339dc9e
AC
84522004-04-06 Andrew Cagney <cagney@redhat.com>
8453
8454 * infttrace.c: Include "infttrace.h".
8455 * infttrace.h: Include "target.h".
8456 * Makefile.in (infttrace_h): Update.
8457 (infttrace.o): Update.
8718a420 8458
93449403
AC
84592004-04-06 Andrew Cagney <cagney@redhat.com>
8460
6d518969
AC
8461 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8462 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8463 move extern declarations from here ...
8464 * infttrace.h: ... to here.
8465 * Makefile.in (hppah-nat.o): Update dependencies.
8466
85f4f2d8
AC
8467 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8468 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 8469 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
8470 (hppa_breakpoint_from_pc): Delete.
8471
93449403
AC
8472 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8473
71456ec6
AC
84742004-04-05 Andrew Cagney <cagney@redhat.com>
8475
8476 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8477 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8478 <sys/file.h>.
8718a420 8479
4c02c60c
AC
84802004-04-06 Randolph Chung <tausq@debian.org>
8481
8482 Committed by Andrew Cagney (mechanical change).
8483 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8484 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8485 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8486 child_enable_exception_callback, current_ex_event,
8487 null_symtab_and_line, child_get_current_exception_event,
8488 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8489 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8490 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8491 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8492 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8493 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8494 Move hpux-specific definitions ...
8495 * hppa-hpux-tdep.c: ... to here.
8496
3a515653
AC
84972004-04-05 Andrew Cagney <cagney@redhat.com>
8498
8499 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8500 skip_prologue_using_sal.
8501
c1730d02
AC
85022004-04-05 Andrew Cagney <cagney@redhat.com>
8503
8504 * config/i386/tm-i386.h: Delete file.
8505 * config/i386/tm-vxworks.h: Update copyright, do not include
8506 "tm-i386.h".
8507 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8508 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8509 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8510 * config/i386/ncr3000.mt (TM_FILE): Delete.
8511 * config/i386/interix.mt (TM_FILE): Delete.
8512 * config/i386/i386v.mt (TM_FILE): Delete.
8513 * config/i386/i386nw.mt (TM_FILE): Delete.
8514 * config/i386/i386gnu.mt (TM_FILE): Delete.
8515 * config/i386/i386aout.mt (TM_FILE): Delete.
8516 * config/i386/embed.mt (TM_FILE): Delete.
8517
8b67aa36
KB
85182004-04-05 Kevin Buettner <kevinb@redhat.com>
8519
8520 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8521 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8522 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8523 (accg7_regnum): New constants.
8524 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
8525 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8526 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
8527 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8528 for accg registers.
8529 (frv_register_sim_regno): Update spr_map[].
8530
3c7012f5
AC
85312004-04-04 Andrew Cagney <cagney@redhat.com>
8532
8533 * config/mips/xm-riscos.h: Delete.
8534 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8535 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8536 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8537 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8538 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8539 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8540 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8541 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8542 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8543 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8544 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8545 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8546 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8547 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8548 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8549 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8550 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8551 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8552 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8553 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8554 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8555 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8556 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8557 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8558 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8559 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 8560
3c7012f5
AC
8561 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8562 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8563 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8564 * configure.host: Remove m680[01]0-sun-sunos3*,
8565 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8566 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8567 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8568 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8569 mips-*-riscos*.
8570 * NEWS: Mention removed systems.
8571
99d16a21
AC
85722004-04-04 Andrew Cagney <cagney@redhat.com>
8573
8574 GDB 6.1 release created from 6.1 branch.
8575
6cdf9d98
AC
85762004-04-04 Andrew Cagney <cagney@redhat.com>
8577
98d346c3
AC
8578 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8579 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8580 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8581
6cdf9d98
AC
8582 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8583 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8584 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8585
859a326d
JB
85862004-04-03 Jim Blandy <jimb@redhat.com>
8587
8588 * MAINTAINERS: Chris Faylor has changed employers; add him to
8589 "paper trail" section, and update his E-mail address.
8590
b87178c3
AC
85912004-04-03 Andrew Cagney <cagney@redhat.com>
8592
4ea2acf0
AC
8593 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8594 generic dummy frames.
8595 * dummy-frame.c: Update copyright.
8596 (dummy_frame_sniffer): Delete check for generic dummy frames.
8597
d0bd2d18 8598 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 8599 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
8600 (REG_PARM_STACK_SPACE): Delete.
8601 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8602 Inline reference to REG_PARM_STACK_SPACE.
8603
b87178c3
AC
8604 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8605 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8606 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8607 (FRAME_BASE_BEFORE_SIGTRAMP)
8608 (hppa32_hpux_frame_base_before_sigtramp)
8609 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8610 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8611 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8612 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8613 (FRAME_BASE_BEFORE_SIGTRAMP)
8614 (hppa64_hpux_frame_base_before_sigtramp)
8615 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8616
43e2e1a0
AC
86172004-04-03 Andrew Cagney <cagney@redhat.com>
8618
8619 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8620
ddc135a4
AC
86212004-04-02 Andrew Cagney <cagney@redhat.com>
8622
8623 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8624 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8625 * dummy-frame.h: Delete out-of-date comments.
8626 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8627 * gdbarch.h, gdbarch.c: Re-generate.
8628
d15bfd3a 86292004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 8630
d15bfd3a
AC
8631 Committed by Andrew Cagney <cagney@redhat.com>.
8632 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8633 into account an instruction saving a register if we have already
8634 seen an earlier instruction saving that same register.
8635
f04ceafa
AC
86362004-04-02 Andrew Cagney <cagney@redhat.com>
8637
08be3abd
AC
8638 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8639 * gdbarch.h, gdbarch.c: Re-generate.
8640 * frame.c (legacy_get_prev_frame): Delete references to
8641 DEPRECATED_INIT_FRAME_PC_FIRST.
8642
f04ceafa
AC
8643 * infrun.c (pc_in_sigtramp): Delete function.
8644 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8645 get_frame_type.
8646
08e69816
AC
86472004-04-02 Andrew Cagney <cagney@redhat.com>
8648
8649 * infrun.c (handle_step_into_function): Delete code conditional on
8650 legacy_frame_p.
8651 (handle_inferior_event, step_over_function): Ditto.
8652
adb54772
AC
86532004-04-02 Andrew Cagney <cagney@redhat.com>
8654
8655 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8656 "previous frame inner to this frame" test.
8657
304396fb
AC
86582004-04-02 Andrew Cagney <cagney@redhat.com>
8659
8660 * frame.c (safe_frame_unwind_memory): New function.
8661 * frame.h (safe_frame_unwind_memory): Declare. Update description
8662 of /safe_/ methods.
8663 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8664 "next_frame". Use safe_frame_unwind_memory.
8665 (tramp_frame_sniffer): Update call to tramp_frame_start.
8666
6502dd73
DJ
86672004-04-01 Daniel Jacobowitz <drow@mvista.com>
8668
8669 * dwarf2read.c (dwarf2_objfile_data_key): New.
8670 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8671 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8672 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8673 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8674 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8675 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8676 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8677 Remove variables.
8678 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8679 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8680 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8681 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8682 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8683 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8684 Remove macros.
8685 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8686 data.
8687 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8688 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8689 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8690 (read_partial_die, read_full_die, read_indirect_string)
8691 (dwarf_decode_line_header, dwarf_decode_macros)
8692 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8693 Update uses of removed variables.
8694 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8695 of removed macros.
8696 (_initialize_dwarf2_read): New function.
8697 * symfile.h (dwarf2_has_info): Update prototype.
8698 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8699 * elfread.c (elf_symfile_read): Likewise.
8700
408752b0
JB
87012004-04-01 Jim Blandy <jimb@redhat.com>
8702
9f744501
JB
8703 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8704 function for register numbers on all the rs6000-derived targets.
8705 (rs6000_gdbarch_init): Don't register a separate
8706 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8707 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8708 variants.
8709
408752b0
JB
8710 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8711 numbering.
8712
2de41bce
PH
87132004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8714
8715 * valarith.c: Update copyright notice.
8716 (value_add): Handle range types.
8717 (value_sub): Ditto.
8718 (value_equal): Ditto.
8719 (value_less): Ditto.
8720 (value_neg): Ditto.
8721 (value_complement): Ditto.
8718a420 8722 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 8723 eliminiating unnecessary COERCE_ENUMs.
8718a420 8724
5613d8d3
AC
87252004-03-31 Andrew Cagney <cagney@redhat.com>
8726
8727 * frame.h (frame_unwind_id): Declare.
8728 * frame.c (frame_unwind_id): New function.
8729 (get_prev_frame_1): New function.
8730 (frame_debug_got_null_frame): New function.
8731 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8732 code proper to prev_frame, update description.
8733 * infrun.c (step_over_function): Use frame_unwind_id.
8734
c4557624
JB
87352004-04-31 J. Brobecker <brobecker@gnat.com>
8736
8737 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8738 (hppa64_push_dummy_call): Likewise.
8739
3e6bb910
JB
87402004-03-30 Jim Blandy <jimb@redhat.com>
8741
8742 From Ulrich Weigand:
8743 * utils.c (query): Do not use a va_list variable multiple times.
8744
a2f23071
DJ
87452004-03-29 Daniel Jacobowitz <drow@mvista.com>
8746
8747 * Makefile.in (linux_nat_h): Update dependencies.
8748 * configure.in: Check for <gnu/libc-version.h>.
8749 * configure: Regenerate.
8750 * config.in: Regenerate.
8751 * linux-nat.h: Include "target.h". Add waitstatus field to
8752 struct lwp_info.
8753 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8754 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8755 to.
8756 (lin_lwp_handle_extended): New function. Handle clone events.
8757 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8758 thread exit events.
8759 (child_wait): Handle clone events.
8760 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8761 * linux-nat.c (linux_enable_event_reporting): Turn on
8762 PTRACE_O_TRACECLONE.
8763 (linux_handle_extended_wait): Handle clone events.
8764 * thread-db.c: Include <gnu/libc-version.h>.
8765 (struct private_thread_info): Add dying flag.
8766 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8767 higher.
8768 (attach_thread): Update comments. Handle dying threads.
8769 (detach_thread): Set the dying flag.
8770 (check_event): Always call attach_thread.
8771
8d5f9dcb
DJ
87722004-03-29 Daniel Jacobowitz <drow@mvista.com>
8773
8774 * mips-tdep.c (mips_pdr_data): New.
8775 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8776 (_initialize_mips_tdep): Initialize mips_pdr_data.
8777
66337bb1
CV
87782004-03-29 Corinna Vinschen <vinschen@redhat.com>
8779
8780 * minsyms.c (install_minimal_symbols): Move dropping leading
8781 char from linkage name from here...
8782 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8783 test for "__gnu_compiled*" symbols.
8784
e802b915
JB
87852004-03-28 Jim Blandy <jimb@redhat.com>
8786
8787 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8788 registers to temp register r0 and byte stores as prologue
8789 instructions.
8790
72b56458
AC
87912004-03-28 Andrew Cagney <cagney@redhat.com>
8792
8793 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8794 arm*-*-*.
8795
0bfbda3b
SC
87962004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8797
8798 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8799 and switch the layout to force a display of register window.
8800
5a7225ed
JB
88012004-02-26 J. Brobecker <brobecker@gnat.com>
8802
8803 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8804 of the INTEGER class.
8805
81a07a45
JB
88062004-03-26 Jim Blandy <jimb@redhat.com>
8807
8808 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8809 bytes long on PPC GNU/Linux.
8810
8c691c7a
DC
88112004-03-26 David Carlton <carlton@kealia.com>
8812
8813 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8814
103a0089
AC
88152004-03-25 Andrew Cagney <cagney@redhat.com>
8816
8817 * PROBLEMS: Add general section titles, remove references to
8818 specific releases.
8819
7a5ea0d4
DJ
88202004-03-25 Daniel Jacobowitz <drow@mvista.com>
8821
8822 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8823 INT_REGISTER_SIZE.
8824 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8825 FP_REGISTER_VIRTUAL_SIZE.
8826 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8827 of DEPRECATED_REGISTER_RAW_SIZE.
8828 (arm_register_type): Add gdbarch argument.
8829 (arm_register_raw_size, arm_register_virtual_size): Delete.
8830 (arm_register_byte, arm_extract_return_value)
8831 (arm_store_return_value, arm_get_longjmp_target): Update references
8832 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8833 (arm_gdbarch_init): Likewise. Don't set
8834 deprecated_register_raw_size, deprecated_register_virtual_size,
8835 deprecated_max_register_raw_size,
8836 deprecated_max_register_virtual_size, or
8837 deprecated_max_register_virtual_type. Do set register_type.
8838 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8839 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8840 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8841 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8842 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8843 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8844 INT_REGISTER_SIZE.
8845 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8846 (remote_rdp_store_register): Likewise.
8847
5792a79b
DJ
88482004-03-24 Daniel Jacobowitz <drow@mvista.com>
8849
8850 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8851 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8852 to after osabi initialization.
8853 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8854 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8855 functions.
8856 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8857 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8858 variables.
8859 (mips_linux_init_abi): Append signal trampoline unwinders.
8860
1196bfda
AC
88612004-03-24 Andrew Cagney <cagney@redhat.com>
8862
8863 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8864 * tramp-frame.c: Include "gdb_assert.h".
8865 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8866 correct sizeof.
8867 (tramp_frame_append): Validate the tramp frame's instructions.
8868 * Makefile.in (tramp-frame.o): Update dependencies.
8869
4be282b4
AC
88702004-03-23 Andrew Cagney <cagney@redhat.com>
8871
8872 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8873
69aec09b
AC
88742004-03-23 Andrew Cagney <cagney@redhat.com>
8875
8876 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8877 Nasser as past testsuite/lib/ (and other) maintainers.
8878
63ed89b4
DJ
88792004-03-23 Daniel Jacobowitz <drow@mvista.com>
8880
8881 * infcmd.c (attach_command): Reread symbols if we already have
8882 an exec file.
8883
f3b36427
AC
88842004-03-23 Andrew Cagney <cagney@redhat.com>
8885
8886 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8887
aa2a3f87
AC
88882004-03-23 Andrew Cagney <cagney@redhat.com>
8889
8890 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8891 * gdbarch.h, gdbarch.c: Re-generate.
8892 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8893 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8894 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 8895 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 8896 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 8897 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
8898 (DEPRECATED_SIGTRAMP_START): Update.
8899 * blockframe.c (find_pc_sect_partial_function): Update.
8900 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8901
00cac895
DJ
89022004-03-23 Daniel Jacobowitz <drow@mvista.com>
8903
8904 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8905 if necessary.
8906
f561f026
AC
89072004-03-23 Andrew Cagney <cagney@redhat.com>
8908
8909 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8910 predicate, deprecate.
8911 * gdbarch.h, gdbarch.c: Re-generate.
8912 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8913 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8914 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8915 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8916 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8917 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8918 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8919 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8920 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8921 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8922 * blockframe.c (find_pc_partial_function): Update.
8923 * breakpoint.c (bpstat_what): Update.
8924 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8925 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8926 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8927 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8928 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8929 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8930 * i386-nto-tdep.c (i386nto_init_abi): Update.
8931 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8932 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8933 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8934 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8935 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8936 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8937 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8938 * infrun.c (pc_in_sigtramp): Update.
8939 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8940 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8941 * mips-tdep.c (mips_gdbarch_init): Update.
8942 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8943 * ppc-linux-tdep.c: Update comment.
8944 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8945 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8946 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8947 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8948 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8949 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8950 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8951 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8952 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8953 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 8954
8050c72f
AC
89552004-03-23 Andrew Cagney <cagney@redhat.com>
8956
d2259dd3
AC
8957 * tramp-frame.h, tramp-frame.h: New files.
8958 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8959 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8960
8050c72f
AC
8961 * Makefile.in: Update all dependencies.
8962
0db9b4b7
AC
89632004-03-23 Andrew Cagney <cagney@redhat.com>
8964
8965 * Makefile.in (trad_frame_h): Add $(frame_h).
8966 * trad-frame.h: Update copyright. Include "frame.h".
8967 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8968 (trad_frame_set_id, trad_frame_get_id): Declare.
8969 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8970 * trad-frame.c: Update copyright.
8971 (struct trad_frame_cache): Define.
8972 (trad_frame_cache_zalloc): New function.
8973 (trad_frame_set_id, trad_frame_get_id): New functions.
8974 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 8975
8e645ae7
AC
89762004-03-22 Andrew Cagney <cagney@redhat.com>
8977
8978 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8979 s390_pltstub_unwind_cache.
8980 (s390_stub_frame_unwind_cache): Rename
8981 s390_pltstub_frame_unwind_cache.
8982 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8983 (s390_stub_frame_prev_register): Rename
8984 s390_pltstub_frame_prev_register.
8985 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8986 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8987
8988 From Ulrich Weigand:
8989 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8990 pointer calls like PLT calls.
8991
34fcf120
DJ
89922004-03-22 Daniel Jacobowitz <drow@mvista.com>
8993
8994 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8995 PC rather than the partial function start address. Use the start
8996 address to sanity check the found PDR.
8997
5b917078
DJ
89982004-03-22 Daniel Jacobowitz <drow@mvista.com>
8999
9000 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9001 linux_handle_extended_wait.
9002
8adf9e78
AC
90032004-03-22 Andrew Cagney <cagney@redhat.com>
9004
c3122434
AC
9005 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9006 function.
9007
8adf9e78
AC
9008 * frame.h (generic_pop_current_frame): Delete declaration.
9009 (deprecate_pop_dummy_frame): Deprecate
9010 generic_pop_dummy_frame.
9011 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9012 (generic_pop_current_frame): Delete function.
9013 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9014 generic_pop_current_frame.
9015 * v850-tdep.c (v850_pop_frame): Update.
9016 * mcore-tdep.c (mcore_pop_frame): Update.
9017 * sh64-tdep.c (sh64_pop_frame): Update.
9018 * h8300-tdep.c (h8300_pop_frame): Update.
9019
90ba813f
AC
90202004-03-22 Andrew Cagney <cagney@redhat.com>
9021
9022 * frame.h (deprecated_pc_in_call_dummy): Rename
9023 generic_pc_in_call_dummy.
9024 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9025 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9026 generic_pc_in_call_dummy.
9027 (pc_in_dummy_frame): Make static.
9028 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9029 * gdbarch.h, gdbarch.c: Re-generate.
9030 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9031 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9032 (legacy_get_prev_frame): Ditto.
9033 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9034 comment.
8718a420 9035
ca4bb888
AC
90362004-03-21 Andrew Cagney <cagney@redhat.com>
9037
244675f9
AC
9038 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9039 declaration and out-of-date comment.
9040 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9041 Delete function.
9042 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9043 deprecated_pc_in_call_dummy.
9044
ca4bb888
AC
9045 * infrun.c (handle_inferior_event): For non legacy frames, use the
9046 frame ID and frame type to identify a signal trampoline. Update
9047 comments.
9048
1777c7b4
NW
90492004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9050
9051 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9052 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9053
82417da5
AC
90542004-03-21 Andrew Cagney <cagney@redhat.com>
9055
9056 * frame-unwind.h: Update copyright.
9057 (struct frame_data): Add opaque declaration.
9058 (frame_sniffer_ftype): Declare.
9059 (struct frame_unwind): Add "unwind_data" and "sniffer".
9060 (frame_unwind_register_unwinder): Declare.
9061 (frame_unwind_find_by_frame): Add parameter "this_cache".
9062 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9063 (legacy_get_prev_frame, legacy_get_prev_frame)
9064 (get_frame_type): Pass the prologue_cache to
9065 frame_unwind_find_by_frame.
9066 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9067 "unwinder".
9068 (frame_unwind_register_unwinder): New function.
9069 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9070
b2ba182e
PH
90712004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9072
9073 * bcache.c (print_percentage): Use floating point to avoid
9074 incorrect results when portion*100 overflows.
9075
81332287
KB
90762004-03-19 Kevin Buettner <kevinb@redhat.com>
9077
9078 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9079 (ppc_linux_init_extra_frame_info)
9080 (ppc_linux_frameless_function_invocation)
9081 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9082 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9083 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9084 (rs6000_frame_chain): Delete declarations.
9085 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9086 (ppc_linux_init_extra_frame_info)
9087 (ppc_linux_frameless_function_invocation)
9088 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9089 (ppc_linux_init_abi): Remove registration of above deleted functions.
9090 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9091 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9092 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9093 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9094 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9095 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9096 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9097 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9098 frame management for all OSABIs.
9099
61a65099
KB
91002004-03-19 Andrew Cagney <cagney@redhat.com>
9101
9102 Committed by Kevin Buettner <kevinb@redhat.com>.
9103
9104 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9105 Update copyright.
9106 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9107 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9108 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9109 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9110 unwinders. #ifdef legacy frame code.
9111 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9112 "frame-base.h".
9113 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9114 (struct rs6000_frame_cache, rs6000_frame_cache)
9115 (rs6000_frame_this_id, rs6000_frame_prev_register)
9116 (rs6000_frame_sniffer, rs6000_frame_unwind)
9117 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9118 (rs6000_frame_base): Implement a traditional frame unwinder.
9119 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9120 frame unwinder.
9121
88f7da05
KB
91222004-03-19 Kevin Buettner <kevinb@redhat.com>
9123
9124 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9125 breakpoint address for watchpoints or the catch eventpoints.
9126 Add new paramter ``bptype''. Adjust all callers.
9127
f826dce1
AC
91282004-03-19 Andrew Cagney <cagney@redhat.com>
9129
33cb8b0f
AC
9130 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9131
f826dce1
AC
9132 * PROBLEMS: Delete note that ARM does not use frame code, problem
9133 fixed.
9134
43b1ab88
AC
91352004-03-18 Andrew Cagney <cagney@redhat.com>
9136
292ab034
AC
9137 * stack.c (return_command): Delete code wrapped in #ifdef
9138 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9139
43b1ab88
AC
9140 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9141
dbfe4626
AC
91422004-03-18 Andrew Cagney <cagney@redhat.com>
9143
9144 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9145 DEPRECATED_IN_SIGTRAMP.
9146 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9147 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9148 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9149 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9150 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9151 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9152 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9153 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9154 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9155 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9156
0cad6aec
AC
91572004-03-18 Andrew Cagney <cagney@redhat.com>
9158
9159 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9160 (struct frame_base_table_entry): Define.
9161 (struct frame_base_table): Re-implement as a linked list.
9162 (frame_base_init): Re-implement.
9163 (frame_base_table): Delete function.
9164 (append_predicate): Delete function.
9165 (frame_base_append_sniffer): Update.
9166 (frame_base_set_default): Update.
9167 (frame_base_find_by_frame): Update.
9168 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9169 * Makefile.in (frame-base.o): Update dependencies.
9170
9982c2e7
AC
91712004-03-17 Andrew Cagney <cagney@redhat.com>
9172
9173 * frame.c (legacy_get_prev_frame): Pass correct frame to
9174 frame_unwind_find_by_frame.
9175
8dfe8985
DC
91762004-03-17 David Carlton <carlton@kealia.com>
9177
9178 * NEWS: Mention C++ nested types and namespaces
9179
ed47347a
MC
91802004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9181
9182 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9183 and "Regressions since gdb 5.3.". Add known regressions since
9184 gdb 6.0.
9185
90aeadfc
DC
91862004-03-16 David Carlton <carlton@kealia.com>
9187
9188 * dwarf2read.c (process_structure_scope): Process children even
9189 when we're a declaration.
9190
73912b9b
AC
91912004-03-16 Andrew Cagney <cagney@redhat.com>
9192
9193 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9194 * blockframe.c (find_pc_partial_function)
9195 (find_pc_sect_partial_function): Merge into a single
9196 find_pc_partial_function.
9197
283accbc
MK
91982004-03-16 Mark Kettenis <kettenis@gnu.org>
9199
9200 * i386bsd-nat.c: s/regno/regnum/g.
9201 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9202 FP0_REGNUM.
9203 (store_inferior_registers): Likewise.
9204
f5b1afdf
MK
92052004-03-16 Mark Kettenis <kettenis@gnu.org>
9206
9207 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9208 of i387_fill_fsave.
9209 (store_inferior_registers): Call i387_collect_fsave and
9210 i387_collect_fxsave instead of i387_fill_fsave and
9211 i387_fill_fxsave.
9212
41fe5eb3
AC
92132004-03-15 Andrew Cagney <cagney@redhat.com>
9214
9215 * Makefile.in (frame-unwind.o): Update dependencies.
9216 * frame-unwind.c: Include "gdb_obstack.h".
9217 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9218 parameter.
9219 (append_predicate): Delete function.
9220 (struct frame_unwind_table_entry): New structure.
9221 (struct frame_unwind_table): Replace "sniffer" with "head" and
9222 "tail".
9223 (frame_unwind_append_sniffer): Update.
9224 (frame_unwind_find_by_frame): Update.
9225 (_initialize_frame_unwind): Registe frame_unwind_init using
9226 gdbarch_data_register_pre_init.
9227
3f63813d
MK
92282004-03-15 Mark Kettenis <kettenis@gnu.org>
9229
9230 * i386bsd-nat.c: Update copyright year.
9231 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9232 define unconditionally.
9233
3248c325 92342004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
9235
9236 * i387-tdep.h (i387_collect_fsave): New prototype.
9237 * i387-tdep.c (i387_collect_fsave): New function containing most
9238 of the code from i387_fill_fsave.
3248c325 9239 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 9240
871fbe6a
MK
92412004-03-15 Mark Kettenis <kettenis@gnu.org>
9242
9243 * i386-linux-tdep.c: Update copyright year.
9244 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9245 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9246 svr4_ilp32_link_map_offsets instead of
9247 i386_linux_svr4_fetch_link_map_offsets.
9248
8176b9b8
DC
92492004-03-15 David Carlton <carlton@kealia.com>
9250
9251 Fix for PR c++/1553:
9252 * dwarf2read.c (read_structure_type): Determine type name by
9253 calling determine_class_name.
9254 (determine_class_name): New.
9255 (determine_prefix): Look at TYPE_TAG_NAME and call
9256 determine_class_name when appropriate.
9257 (determine_prefix_aux, class_name): Delete.
9d58e29d 9258 (read_namespace): Set die->type.
8176b9b8 9259
fe8bf7d7
KB
92602004-03-15 Kevin Buettner <kevinb@redhat.com>
9261
9262 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9263 unused macro definition. The definition in target.h (or perhaps
9264 elsewhere) takes precedence.
9265
ed6edd9b
AC
92662004-03-15 Andrew Cagney <cagney@redhat.com>
9267
f9be684a
AC
9268 * ppc-tdep.h: Update copyright.
9269 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9270 function signatures to match "regsets.h".
9271 * ppc-linux-tdep.c: Include "regset.h".
9272 (ELF_GREGSET_SIZE): Delete.
9273 (right_supply_register): New function.
9274 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9275 using right_supply_register.
9276 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9277 functions.
9278 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9279 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9280 (_initialize_ppc_linux_tdep): Do not register
9281 ppc_linux_regset_core_fns.
9282 (ppc_linux_regset_from_core_section): Replace
9283 fetch_core_registers.
9284 (ppc_linux_regset_core_fns): Delete.
9285 * ppc-linux-nat.c: (right_fill_reg): New function.
9286 (supply_gregset): Update call to ppc_linux_supply_gregset.
9287 (fill_gregset): Clear the register set, use right_fill_reg.
9288 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9289 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9290
ed6edd9b
AC
9291 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9292 unsigned.
9293
030f20e1
AC
92942004-03-15 Andrew Cagney <cagney@redhat.com>
9295
9296 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9297 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9298 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9299 and register_gdbarch_data.
9300 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9301 (struct gdbarch_data): Replace "init" by "pre_init" and
9302 "post_init".
9303 * gdbarch.h, gdbarch.c: Re-generate.
9304 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9305 with"obstack", use OBSTACK_ZALLOC.
9306 (dwarf2_frame_ops): Delete.
9307 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9308 (dwarf2_frame_init_reg): Use gdbarch_data.
9309 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 9310 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
9311 (_initialize_svr4_solib): Update.
9312 * user-regs.c (_initialize_user_regs): Update.
9313 * reggroups.c (_initialize_reggroup): Update.
9314 * regcache.c (_initialize_regcache): Update.
9315 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9316 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9317 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9318 * frame-unwind.c (_initialize_frame_unwind): Update.
9319 * frame-base.c (_initialize_frame_base): Update.
9320 * user-regs.c (user_reg_add): Update.
9321 * reggroups.c (reggroup_add): Update.
9322 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9323 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9324 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9325 * frame-base.c (frame_base_table): Update.
9326 * remote.c (_initialize_remote): Update.
9327 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 9328
3111a3fc
AC
93292004-03-15 Andrew Cagney <cagney@redhat.com>
9330
9331 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9332
5ecb7103
KB
93332004-03-15 Kevin Buettner <kevinb@redhat.com>
9334
9335 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9336 * frv-linux-tdep.c: New file.
9337 * frv-tdep.c (struct gdbarch_tdep): Add new field
9338 ``sigcontext_reg_addr''.
9339 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9340 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9341 (frv_sigramp_frame_sniffer): New functions.
9342 (frv_sigtramp_frame_unwind): New static global.
9343 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9344 sniffers.
9345 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9346 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9347
1ccda5e9
KB
93482004-03-15 Kevin Buettner <kevinb@redhat.com>
9349
9350 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9351 but not via a call to error(), when unable to read memory.
9352
b375a0a5
KB
93532004-03-15 Kevin Buettner <kevinb@redhat.com>
9354
9355 * frv-tdep.c (frv_call_dummy_words): Delete.
9356 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9357
4fdf6121
AC
93582004-03-15 Andrew Cagney <cagney@redhat.com>
9359
9360 * infrun.c (handle_step_into_function, step_over_function): Only
9361 update and use STEP_FRAME_ID when the system is using legacy
9362 frames. Update comments.
9363
34021503
MK
93642004-03-14 Mark Kettenis <kettenis@gnu.org>
9365
187e21d1
MK
9366 * amd64-linux-tdep.h: Remove file.
9367 * amd64-linux-tdep.c: Don't include "inferior.h" and
9368 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9369 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9370 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9371 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9372 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9373 macros.
9374 (user_to_gdb_regmap): Remove variable.
9375 (amd64_linux_gregset_reg_offset): New variable.
9376 (amd64_core_fns): Remove variable.
9377 (fetch_core_registers): Remove function.
9378 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9379 functions.
9380 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9381 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9382 * Makefile.in (amd64_linux_tdep_h): Remove.
9383 (amd64-linux-nat.o): Update dependencies.
9384 (amd64-linux-tdep.o): Update dependencies.
9385
99679982
MK
9386 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9387 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9388 functions.
9389 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9390
34021503
MK
9391 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9392 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9393
134d01f1
DJ
93942004-03-14 Daniel Jacobowitz <drow@mvista.com>
9395
9396 * dwarf2read.c (read_structure_type): Rename from
8718a420 9397 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
9398 Return immediately if die->type is set. Call read_type_die before
9399 dwarf2_add_member_fn.
9400 (process_structure_scope): New function.
9401 (read_enumeration_type, process_enumeration_scope): New functions,
9402 broken out from read_enumeration. Don't create the enumeration
9403 type if it has already been created.
9404 (read_enumeration): Removed.
9405 (process_die): Call read_structure_type, process_structure_scope,
9406 read_enumeration_type, and process_enumeration_scope. Just call
9407 new_symbol for base and subrange types. Add a comment about other
9408 type dies.
9409 (read_type_die): Call read_enumeration_type.
9410 (add_partial_structure, new_symbol): Update comments.
9411
65760afb
SC
94122004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9413
9414 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9415
10f59415
SC
94162004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9417
9418 * tui/tui-win.h (tui_get_cmd_list): Declare.
9419 * tui/tui-win.c (tui_command): New function.
9420 (tui_get_cmd_list): New function.
9421 (_initialize_tui_win): Moved initialization of tui command in
9422 tui_get_cmd_list.
9423
9424 * tui/tui-data.c (init_content_element): Setup new data members.
9425 (init_win_info): Likewise.
9426 (free_content_elements): Free it.
9427 * tui/tui-data.h (struct tui_data_element): Store the register
9428 content to print.
9429 (struct tui_data_info): Keep the current register group.
9430
9431 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9432
9433 * tui/tui-regs.h (tui_show_registers): Update prototype.
9434 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9435 (tui_resize_all): No need to calculate anything for register window.
9436 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9437 (tui_set_register_element, tui_set_general_regs_content): Remove.
9438 (tui_set_special_regs_content): Remove.
9439 (tui_set_general_and_special_regs_content): Remove.
9440 (tui_set_float_regs_content): Remove.
9441 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9442 (tui_set_regs_content): Remove.
9443 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9444 (tui_v_show_registers_command_support): Remove.
9445 (tui_show_registers): Use a reggroup to specify the registers to show.
9446 (tui_show_register_group): New function.
9447 (tui_display_registers_from): Compute the layout of register window
9448 and refresh with new API; be sure to delete old register windows.
9449 (tui_check_register_values): Update to use tui_get_register and
9450 tui_display_data.
9451 (tui_display_register): Just refresh the register window part.
9452 (tui_register_format): Format registers and save in tui_data_element.
9453 (tui_get_register): New to combine tui_reg_value_has_changed and
9454 tui_get_register_raw_value; fix to use the new gdb API.
9455 (tui_show_float_command): Renamed tui_reg_float_command.
9456 (tui_show_general_command): Renamed tui_reg_general_command.
9457 (tui_show_special_command): Renamed tui_reg_system_command.
9458 (_initialize_tui_regs): Remove unused commands.
9459
c3364ea4
MK
94602004-03-13 Mark Kettenis <kettenis@gnu.org>
9461
27d1e716
MK
9462 * NEWS (New native configurations): Mention OpenBSD/amd64.
9463
c3364ea4
MK
9464 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9465 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9466 Remove defines.
9467 * config/i386/nm-fbsd64.h: Likewise.
9468 * config/i386/nm-obsd.h: Likewise.
9469 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9470 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9471
b2d6d697
KB
94722004-03-12 Kevin Buettner <kevinb@redhat.com>
9473
9474 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
9475 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9476 New constants.
9477
76e43199
KB
9478 From Richard Sandiford <rsandifo@redhat.com>:
9479 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9480
34ce532e
KB
94812004-03-12 Kevin Buettner <kevinb@redhat.com>
9482
9483 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9484 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9485 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9486 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9487 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9488 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9489 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9490 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9491 definitions from frv-tdep.c to frv-tdep.h.
9492
c4d10515
KB
94932004-03-12 Kevin Buettner <kevinb@redhat.com>
9494
9495 Add shared library support for FR-V FDPIC ABI:
9496 * Makefile.in (solib-frv.o): Add dependencies.
9497 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9498 New functions.
9499 (frv_push_dummy_call): Add support for FDPIC ABI.
9500 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9501 for FDPIC ABI.
9502 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9503 (frv_fdpic_find_canonical_descriptor): Declare.
9504 * solib-frv.c: New file.
9505 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9506 * config/frv/tm-frv.h (solib.h): Include.
9507
ed1bd989
KB
95082004-03-12 Kevin Buettner <kevinb@redhat.com>
9509
9510 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9511 (frv-tdep.o): Update dependencies.
9512 * frv-tdep.h: New file.
9513 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9514 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9515 constants.
9516 (struct gdbarch_tdep): Add new member ``frv_abi''.
9517 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9518 functions.
9519 (new_variant): Set ``frv_abi'' field.
9520 (gdb_arch_init): Detect FDPIC executables.
9521
82b38f72
MK
95222004-03-12 Mark Kettenis <kettenis@gnu.org>
9523
9524 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9525 wrapper.
9526
db1ea9ba
AC
95272004-03-11 Andrew Cagney <cagney@redhat.com>
9528
9529 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9530
f8766ec1
KB
95312004-03-11 Kevin Buettner <kevinb@redhat.com>
9532
9533 * solist.h (master_so_list): New function.
9534 * solib.c (master_so_list): Likewise.
9535 * solib-svr4.c (enable_break): Iterate over so_list entries
9536 obtained from master list instead of entries obtained directly
9537 via svr4_current_sos().
9538
523f6a27
BE
95392004-03-10 Ben Elliston <bje@gnu.org>
9540
9541 * MAINTAINERS: Update my mail address.
9542
37814c18
KI
95432004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9544
9545 * remote-m32r-sdi.c: Support hardware watchpoint.
9546
8b9740d8
DJ
95472004-03-09 Daniel Jacobowitz <drow@mvista.com>
9548
9549 * user-regs.c: Update copyright years.
9550 (struct user_regs): Rename to gdb_user_regs.
9551 (append_user_reg, builtin_user_regs, user_regs_init)
9552 (user_reg_add, user_reg_map_name_to_regnum)
9553 (usernum_to_user_reg): Update.
9554
4bb7a0a7
DJ
95552004-03-09 Daniel Jacobowitz <drow@mvista.com>
9556
9557 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9558 (skip_children): New functions.
9559 (locate_pdi_sibling): Call skip_children.
9560
44e1a9eb
DJ
95612004-03-09 Daniel Jacobowitz <drow@mvista.com>
9562
9563 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9564 * gdbtypes.c (check_typedef): Update comments.
9565
f3dd6933
DJ
95662004-03-09 Daniel Jacobowitz <drow@mvista.com>
9567
9568 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9569 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9570 pointer. Update comment about comp_unit_head.
9571 (struct abbrev_info): Shorten two int flags.
9572 (dwarf_alloc_abbrev): Take a CU argument.
9573 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9574 each time through the loop. Update cleanup argument.
9575 (psymtab_to_symtab_1): Update cleanup call.
9576 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9577 abbrev_obstack.
9578 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9579 Just call obstack_free and clear the pointer.
9580
b40c7d58
DJ
95812004-03-09 Daniel Jacobowitz <drow@mvista.com>
9582
9583 * infrun.c (handle_inferior_event): Remove short-circuit code for
9584 events in a different thread.
9585
333dabeb
DJ
95862004-03-09 Daniel Jacobowitz <drow@mvista.com>
9587
9588 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9589 print the whole transfer.
9590 (initialize_targets): Update description of "set debug target".
9591
aa17d93e
DJ
95922004-03-09 Daniel Jacobowitz <drow@mvista.com>
9593
9594 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9595
0b71f08f
NW
95962004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9597
9598 * MAINTAINERS (write after approval): Add myself.
9599
3930f270
CV
96002004-03-08 Corinna Vinschen <vinschen@redhat.com>
9601
9602 * sh-tdep.c (sh_print_registers_info): Use for loop.
9603 Don't skip multiple registers when a float register is encountered.
9604
a2b4a96c
CV
96052004-03-08 Corinna Vinschen <vinschen@redhat.com>
9606
9607 Fix PR tdep/1291.
9608 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9609 to official SH documentation.
9610
f15a4bc0
AC
96112004-03-07 Andrew Cagney <cagney@redhat.com>
9612
9613 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9614 unused function.
9615
9498281f
DJ
96162004-03-07 Daniel Jacobowitz <drow@mvista.com>
9617
9618 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9619 (arm_get_next_pc): Handle BX and BLX.
9620
449e1137
AC
96212004-03-07 Andrew Cagney <cagney@redhat.com>
9622
eded0a31
AC
9623 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9624 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9625 HPPA_SP_REGNUM.
9626 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9627 (hppa_target_read_fp): Delete.
9628 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9629 register_virtual_size, max_register_raw_size,
9630 max_register_virtual_size, register_byte, register_size,
9631 target_read_fp, fp_regnum, and register_bytes. Set register_type
9632 instead of register_virtual_type.
9633 (hppa32_register_type, hppa64_register_type): Replace
9634 hppa32_register_virtual_type and hppa64_register_virtual_type.
9635 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9636 (HPPA_FP_REGNUM): Define.
9637
f5f907e2
AC
9638 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9639
69b4bbe4
AC
9640 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9641 (pa_do_registers_info): Delete.
9642 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 9643 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 9644 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 9645
78161e48
AC
9646 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9647 GDB_TARGET_IS_HPPA code.
9648 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 9649 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
9650 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9651 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
9652 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9653 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9654 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 9655 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
9656 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9657 (hppa_frameless_function_invocation, hppa64_store_return_value)
9658 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 9659 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 9660 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 9661 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
9662 (find_proc_framesize, deposit_21, restore_pc_queue)
9663 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 9664 (rp_saved, pc_in_linker_stub): Delete.
78161e48 9665
782eae8b
AC
9666 Unconditionally enable 64-bit frame and ABI code.
9667 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9668 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9669 push_dummy_frame, fix_call_dummy, push_arguments,
9670 call_dummy_location, extract_return_value, use_struct_convention,
9671 store_return_value, store_struct_return, saved_pc_after_call,
9672 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9673 frame_chain, frame_chain_valid, frameless_function_invocation,
9674 frame_saved_pc, and pop_frame.
78161e48 9675
449e1137
AC
9676 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9677 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9678 (hppa_gdbarch_init): Do not set PC_REGNUM.
9679
12507572
MK
96802004-03-06 Mark Kettenis <kettenis@gnu.org>
9681
9682 * config/alpha/tm-fbsd.h: Remove file.
9683 * config/alpha/fbsd.mt: Tweak comment.
9684 (TM_FILE): Set to tm-alpha.h.
9685
c107cc1b
AC
96862004-03-05 Andrew Cagney <cagney@redhat.com>
9687
9688 * infrun.c (step_over_function): When non-legacy code, and no
9689 step_frame_id, use the unwinder to get the caller's frame ID.
9690
f2e7c15d
MK
96912004-03-05 Mark Kettenis <kettenis@gnu.org>
9692
8b0c3633
MK
9693 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9694 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9695 bfd_arch_unknown. Adjust comment.
9696
f2e7c15d
MK
9697 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9698 * i386obsd-tdep.c: Correct spelling in comment.
9699 * i386nbsd-tdep.c: Correct spelling in comment.
9700 * sparc-tdep.c: Correct spelling in comments.
9701
1198ecbe
DC
97022004-03-05 David Carlton <carlton@kealia.com>
9703
9704 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9705 bug.
9706
9eb42ed1
MK
97072004-03-05 Mark Kettenis <kettenis@gnu.org>
9708
9709 * sparc-tdep.c: Fix typo in comment.
9710
52b5e991
JB
97112004-03-04 J. Brobecker <brobecker@gnat.com>
9712
9713 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9714
d8151005
DJ
97152004-03-04 Daniel Jacobowitz <drow@mvista.com>
9716
9717 * dwarf2read.c: Add comment describing memory lifetimes.
9718 (struct dwarf2_pinfo): Update comment.
9719 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9720 (read_enumeration, new_symbol): Don't use obsavestring.
9721
cbeae229
MK
97222004-03-04 Mark Kettenis <kettenis@gnu.org>
9723
722d18c2
MK
9724 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9725 instead of amd64_fill_fxsave.
9726 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9727 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9728
cbeae229
MK
9729 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9730 Reorganize code a bit.
9731
b4206d25
OF
97322004-03-04 Orjan Friberg <orjanf@axis.com>
9733
9734 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
9735 when the frame pointer is pushed. Don't set the frame pointer's
9736 address on the stack unless it's actually located there.
b4206d25
OF
9737 Set the SRP's address on the stack correctly when the PC is still in
9738 the prologue.
9739 (cris_return_value): New function.
9740 (cris_gdbarch_init): Clear deprecated store_return_value,
9741 extract_return_value.
9742
49b0b195
JB
97432004-03-02 Jim Blandy <jimb@redhat.com>
9744
9745 * stabsread.c (reg_value_complaint): The maximum register number
9746 is one less than the number of registers.
9747
e9ff708b
AC
97482004-03-02 Andrew Cagney <cagney@redhat.com>
9749
9750 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9751 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9752 trailing comma and redundant assignment of I386_ST0_REGNUM.
9753 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9754 32-bit segment registers.
9755
d4715e41
AC
97562004-03-01 Andrew Cagney <cagney@redhat.com>
9757
9758 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9759 use frame_relative_level and get_next_frame.
9760
3ce2bf18
AC
97612004-02-29 Andrew Cagney <cagney@redhat.com>
9762
9763 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9764 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9765 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9766 Delete macro.
9767
2da6aac3
DJ
97682004-02-29 Daniel Jacobowitz <drow@mvista.com>
9769
9770 * inflow.c (terminal_inferior): Don't give up the terminal if we
9771 previously couldn't get the inferior's terminal state.
9772
6ba34a8d
DJ
97732004-02-29 Daniel Jacobowitz <drow@mvista.com>
9774
9775 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9776 PC_REGNUM.
9777
faae5abe
AC
97782004-02-28 Andrew Cagney <cagney@redhat.com>
9779
9780 * NEWS: Refer to GDB 6.1.
9781 * README: Refer to GDB 6.1.
9782 * PROBLEMS: Refer to GDB 6.1.
9783
2227a3c5
DJ
97842004-02-28 Daniel Jacobowitz <drow@mvista.com>
9785
9786 * thread-db.c (disable_thread_signals): Remove unused function.
9787
80571bff
MK
97882004-02-28 Mark Kettenis <kettenis@gnu.org>
9789
041bd74b
MK
9790 * amd64-nat.c: Include "gdb_string.h".
9791 (amd64_collect_native_gregset): Zero-extend the 32-bit
9792 general-purpose registers and %eip.
9793
3c017e40
MK
9794 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9795 * amd64-tdep.c (amd64_collect_fxsave): New function.
9796 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9797
80571bff
MK
9798 * i387-tdep.h: Update copyright year.
9799 (i387_collect_fxsave): New prototype.
9800 * i387-tdep.c: Update copyright year.
9801 (i387_collect_fxsave): New function containing most of the code
9802 from i387_fill_fxsave.
9803 (i387_fill_fxsave): Call i387_collect_fxsave.
9804
50d71875
AC
98052004-02-28 Andrew Cagney <cagney@redhat.com>
9806
9807 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9808 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9809
4a28816e
MK
98102004-02-28 Mark Kettenis <kettenis@gnu.org>
9811
9812 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9813
dbda9972
AC
98142004-02-28 Andrew Cagney <cagney@redhat.com>
9815
9816 * utils.c: Use "", instead of <>, to include readline.
9817 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9818 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9819 * source.c, solib.c, exec.c, event-top.c: Ditto.
9820 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9821 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9822 * Makefile.in: Update all dependencies.
9823 (readline_tilde_h, readline_history_h): Define.
9824 (readline_headers): Delete.
9825
83277a99
MK
98262004-02-28 Mark Kettenis <kettenis@gnu.org>
9827
91ae4303
MK
9828 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9829 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9830 "config/i386/tm-lx64.h".
9831
83277a99
MK
9832 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9833 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9834 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9835
6e1d7d6c
AC
98362004-02-28 Andrew Cagney <cagney@redhat.com>
9837
ecc9ac84
AC
9838 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9839
6e1d7d6c
AC
9840 * breakpoint.c (_initialize_breakpoint): Use
9841 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9842 Add help to show command.
9843
9671aeef
MK
98442004-02-28 Mark Kettenis <kettenis@gnu.org>
9845
7fa2737c
MK
9846 * i386-nat.c: Reformat to be closer to coding standards.
9847 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9848 `retval'. Make variables `align' and `size' local to while-loop.
9849 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9850 (_initialize_i386_nat): New prototype.
9851
9671aeef
MK
9852 * tui/tui.c: Include <readline/readline.h> instead of
9853 "readline/readline.h". Include it after <term.h> and
9854 "gdb_curses.h".
9855
fca7aa43
AC
98562004-02-27 Andrew Cagney <cagney@redhat.com>
9857
412275d5
AC
9858 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9859 the new frame unwind code.
9860 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9861 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9862 PCOQ_HEAD_REGNUM.
9863
fca7aa43
AC
9864 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9865 "return_value" and "push_dummy_call".
9866 (hppa32_use_struct_convention): Delete unused function.
9867 (hppa32_store_return_value): Delete unused function.
9868 (hppa32_extract_return_value): Delete unused function.
9869 (hppa32_stack_align): Delete function.
9870
e6a8a7d2
EZ
98712004-02-27 Eli Zaretskii <eliz@elta.co.il>
9872
9873 * coffread.c (enter_linenos): Don't let rawptr reference memory
9874 outside linetab[]'s limits.
9875
1797a8f6
AC
98762004-02-27 Andrew Cagney <cagney@redhat.com>
9877
9878 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9879 inferior stack space - the stack needs to grow upwards.
9880 (hppa32_frame_align): New function.
9881 (hppa64_frame_align): Replace hppa_frame_align.
9882 (hppa_gdbarch_init): Update.
9883
2e4b5889
OF
98842004-02-26 Orjan Friberg <orjanf@axis.com>
9885
9886 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9887 (dwarf2-frame.h): Include.
9888 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9889 Remove static variables related to ABI setting.
9890 (struct gdbarch_tdep): Remove cris_abi member.
9891 (struct frame_extra_info): Remove.
9892 (cris_unwind_cache, stack_item): New structs.
9893 (cris_frame_unwind, cris_frame_base): New variables.
9894 (push_stack_item, pop_stack_item)
9895 (cris_frame_unwind_cache, cris_frame_this_id)
9896 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9897 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9898 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9899 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9900 (cris_reg_struct_has_addr): New functions.
9901 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 9902 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
9903 (cris_store_struct_return, cris_frameless_function_invocation)
9904 (cris_pop_frame, cris_skip_prologue_main)
9905 (cris_abi_original_store_return_value)
9906 (cris_abi_v2_store_return_value)
9907 (cris_abi_original_extract_return_value)
9908 (cris_abi_v2_extract_return_value)
9909 (cris_abi_original_reg_struct_has_addr)
9910 (cris_abi_v2_reg_struct_has_addr)
9911 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9912 (cris_push_return_address, cris_abi_update): Remove.
9913 (_initialize_cris_tdep): Remove ABI command.
9914 (cris_dump_tdep): Ditto.
8718a420 9915 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
9916 Set store_return_value, extract_return_value, push_dummy_code,
9917 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9918 frame_unwind_append_sniffer, frame_base_set_default.
9919 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9920 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9921 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 9922 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
9923 init_extra_frame_info, frameless_function_invocation, frame_chain,
9924 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9925 dummy_write_sp.
8718a420 9926
6b9acc27
JJ
99272004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9928
9929 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9930 * valprint.c (print_hex_chars): Change from static to external.
9931 (print_char_chars): New function.
9932 * printcmd.c (print_scalar_formatted): For integer and enum types
9933 that are longer than LONGEST, perform processing via appropriate
9934 print_*_chars routines.
9935
a431654a
AC
99362004-02-26 Andrew Cagney <cagney@redhat.com>
9937
9938 * Makefile.in: Update dependencies.
9939 Changes from Ulrich Weigand,
9940 * s390-tdep.c: Include "dwarf2-frame.h".
9941 (s390_dwarf2_frame_init_reg): New function.
9942 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9943 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9944
fa8d40ab
JJ
99452004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9946
9947 * breakpoint.c (pending_break_support): New setting variable.
9948 (break_command_1): Account for pending_break_support setting
9949 when creating pending breakpoints.
9950 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9951 (_initialize_breakpoint): Add "set breakpoint pending" and
9952 "show breakpoint pending" commands.
9953
0dcd613f
AC
99542004-02-26 Andrew Cagney <cagney@redhat.com>
9955
9956 Fix PR i18n/1570.
9957 * charset.c (backslashable, backslashed, represented): Remove 'e'
9958 from list of escaped characters, not part of ISO-C.
9959
479272a3
JB
99602004-02-25 J. Brobecker <brobecker@gnat.com>
9961
9962 From Peter Schauer <schauer@pdf.de>:
9963 * tui/tui.c: Move system header includes after local includes.
9964 Fixes a build failure on solaris systems.
9965
7613d933
JB
99662004-02-25 J. Brobecker <brobecker@gnat.com>
9967
9968 * configure.in: Refine the previous change.
9969 * configure: Regenerate.
9970
9c1488cb
MK
99712004-02-25 Mark Kettenis <kettenis@gnu.org>
9972
9973 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9974 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9975 "amd64-tdep.h" instead of "x86-64-tdep.h".
9976 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9977 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9978 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9979 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9980 and "x86-64-tdep.c".
9981 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9982 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9983 and "x86-64-tdep.c".
9984 * amd64bsd-nat.c: Update copyright year.
9985 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9986 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9987 "x86-64-tdep.h".
9988 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9989 "x86-64-tdep.h".
9990 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9991 "x86-64-tdep.h".
9992 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9993 "x86-64-tdep.h".
9994 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9995 "x86-64-tdep.h".
9996 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9997 "x86-64-tdep.h".
8718a420 9998 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
9999 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10000 * Makefile.in (amd64_linux_tdep_h): Renamed from
10001 x86_64_linux_tdep_h.
10002 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10003 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10004 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10005 (amd64obsd-tdep.o): Update dependencies.
10006 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10007 dependencies.
10008 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10009 dependencies.
10010 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10011 amd64-linux-nat.c amd64-linux-tdep.c.
10012 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10013 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10014 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10015 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10016 amd64-tdep.o and amd64-linux-tdep.o.
10017 (TM_FILE): Set to tm-linux64.h.
10018 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10019 (NAT_FILE): Set to nm-linux64.h.
10020 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10021 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10022 amd64-tdep.o.
10023 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10024 amd64-tdep.o.
10025 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10026 amd64-tdep.o.
10027
4b8dad4a
RM
100282004-02-25 Roland McGrath <roland@redhat.com>
10029
10030 * remote.c (remote_protocol_qPart_auxv): New variable.
10031 (init_all_packet_configs): Initialize it.
10032 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10033 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10034 (show_remote_cmd): Call it.
10035 (_initialize_remote): Initialize commands.
10036 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10037 service TARGET_OBJECT_AUXV requests.
10038
66745969
JB
100392004-02-25 J. Brobecker <brobecker@gnat.com>
10040
10041 * configure.in: Make sure that the wborder function is available.
10042 Otherwise, search for it in the cur_colr library.
10043 * configure: Regenerate.
10044
79508e1e
AC
100452004-02-25 Andrew Cagney <cagney@redhat.com>
10046
10047 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10048
571ee600
MK
100492004-02-25 Mark Kettenis <kettenis@gnu.org>
10050
10051 * config/i386/tm-x86-64linux.h: Tweak comments.
10052
2b1b322f 100532004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
10054
10055 * MAINTAINERS: Add self to write-after-approval list.
10056
4d2acc65
AC
100572004-02-25 Andrew Cagney <cagney@redhat.com>
10058
4b8dad4a 10059 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
10060 * cli/cli-script.c (execute_control_command): Unconditionally
10061 install a cleanup. Default "ret" to "invalid_control". Use
10062 "break" instead of "return" to escape from the switch.
10063
4cfcaf21
JB
100642004-02-24 J. Brobecker <brobecker@gnat.com>
10065
10066 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10067 with the lines macro defined in term.h on AiX.
10068 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10069 a collision with the label_width macro defined in term.h on AiX.
10070
54a5c8d8
KB
100712004-02-23 David Mosberger <davidm@hpl.hp.com>
10072
10073 Committed by Kevin Buettner <kevinb@redhat.com>.
10074
10075 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10076 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10077 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10078 instead of ia64_write_pc().
10079 * ia64-linux-tdep.c (regcache.h): Include.
10080 (ia64_linux_write_pc): New function.
4b8dad4a 10081
8a1dac83
RM
100822004-02-23 Roland McGrath <roland@redhat.com>
10083
10084 * auxv.c (info_auxv_command): Fix typos in error messages.
10085
90f90721
MK
100862004-02-23 Mark Kettenis <kettenis@gnu.org>
10087
8a1dac83 10088 * x86-64-tdep.h: Tweak comment.
90f90721
MK
10089 (enum amd64_regnum): New.
10090 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10091 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10092 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10093 (X86_64_XMM1_REGNUM): Removed.
10094 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10095 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10096 prototypes for renamed functions.
10097 * x86-64-tdep.c: Fix typo.
10098 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10099 register numbers.
10100 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10101 Use constants from `enum amd64_regnum' for register numbers.
10102 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10103 (amd64_analyze_prologue, amd64_frame_cache,
10104 amd64_sigtramp_frame_cache): Use constants from `enum
10105 amd64_regnum' for register numbers.
10106 (amd64_supply_fpregset): Adjust for renamed functions.
10107 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10108 `enum amd64_regnum' for register numbers.
10109 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10110 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10111 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10112 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10113 (amd64_linux_fill_gregset): Adjust for renamed macros.
10114 (fetch_core_registers): Adjust for renamed functions.
10115 (amd64_linux_init_abi): Adjust for renamed functions.
10116 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10117 renamed functions.
10118 * amd64-nat.c: Adjust for renamed macros.
10119 * amd64bsd-nat.c (fetch_inferior_registers)
10120 (store_inferior_registers): Use constants from `enum amd64_regnum'
10121 for register numbers. Adjust for renamed variables.
10122 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10123 renamed variables.
10124 (_initialize_amd64fbsd_nat): Use constants from `enum
10125 amd64_regnum' for register numbers.
10126 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10127 `enum amd64_regnum' for register numbers.
10128 (amd64fbsd_init_abi): Adjust for renamed functions.
10129 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10130 `enum amd64_regnum' for register numbers.
10131 (amd64nbsd_init_abi): Adjust for renamed functions.
10132 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10133 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10134 `enum amd64_regnum' for register numbers.
10135 (amd64obsd_init_abi): Adjust for renamed functions.
10136 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10137
d5479188
JJ
101382004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10139
10140 * breakpoint.c (print_one_breakpoint): Do not output spaces
10141 after printing <PENDING> for a pending breakpoint.
10142
81cb7cc9
JJ
101432004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10144
10145 * printcmd.c (print_scalar_formatted): Initialize val_long
10146 to remove compiler warning message.
10147
cbdeadca
JJ
101482004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10149
10150 * defs.h (nquery, yquery): New prototypes.
10151 * breakpoint.c (break_command_1): Use new nquery interface.
10152 * utils.c (defaulted_query, nquery, yquery): New functions.
10153
da6bab63
AC
101542004-02-23 Andrew Cagney <cagney@redhat.com>
10155
2f690297
AC
10156 * hppa-tdep.c (hppa_frame_align): New function.
10157 (hppa32_push_dummy_call): New function.
10158 (hppa64_push_dummy_call): New function.
10159 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10160 disabled.
8a1dac83 10161
da6bab63
AC
10162 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10163 FIX_CALL_DUMMY when push_dummy_call is available.
10164 (call_function_by_hand, push_dummy_code): Ditto.
10165
abf9b42d
AC
101662004-02-22 Andrew Cagney <cagney@redhat.com>
10167
10168 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10169 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10170 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10171 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10172 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10173 call_dummy_location to ON_STACK.
10174
10fc94a4
MK
101752004-02-22 Mark Kettenis <kettenis@gnu.org>
10176
51433e4b
MK
10177 * x86-64-linux-tdep.c: Tweak comment.
10178 (amd64_linux_supply_gregset): Renamed from
10179 x86_64_linux_supply_gresget.
10180 (amd64_linux_fill_gregset): Renamed from
10181 x86_64_linux_fill_gregset.
10182 (fetch_core_registers): Adjust for renamed functions.
10183 (amd64_core_fns): Renamed from x86_64_core_fns.
10184 (amd64_linux_sigtramp_start): Renamed from
10185 x86_64_linux_sigtramp_start.
10186 (amd64_linux_pc_in_sigtramp): Renamed from
10187 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10188 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10189 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10190 (amd64_linux_sigcontext_addr): Renamed from
10191 x86_64_linux_sigcontext_addr.
10192 (amd64_linux_sc_reg_offset): Renamed from
10193 x86_64_linux_sc_reg_offset.
10194 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10195 Adjust for renamed functions and variables.
10196 (_initialize_amd64_linux_tdep): Renamed from
10197 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10198 variables.
10199 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10200 Adjust for renamed functions.
10201
430eaf2e
MK
10202 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10203 from x86_64_linux_gregset64_reg_offset.
10204 (amd64_linux_gregset32_reg_offset): Rename from
10205 x86_64_linux_gregset64_reg_offset.
10206 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10207 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10208 (amd64_linux_dr_set_control): Renamed from
10209 x86_64_linux_dr_set_control. Adjust for renamed functions.
10210 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10211 Adjust for renamed functions.
10212 (amd64_linux_dr_reset_addr): Renamed from
10213 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10214 (amd64_linux_dr_get_status): Renamed from
10215 x86_64_linux_dr_get_status. Adjust for renamed functions.
10216 (_initialize_amd64_linux_nat): Renamed from
10217 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10218 functions.
10219 * config/i386/nm-x86-64linux.h: Update copyright year.
10220 Adjust for renamed functions.
10221
10fc94a4
MK
10222 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10223 amd64fbsd_sigtramp_start.
10224 (amd64fbsd_sigtramp_end_addr): Renamed from
10225 amd64fbsd_sigtramp_end.
10226 (amd64fbsd_init_abi): Adjust for renamed variables.
10227 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10228 variables.
10229 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10230 amd64fbsd_sigtramp_start.
10231 (amd64fbsd_sigtramp_end_addr): Renamed from
10232 amd64fbsd_sigtramp_end.
10233
343af405
AC
102342004-02-22 Andrew Cagney <cagney@redhat.com>
10235
537987fc
AC
10236 * hppa-tdep.c (hppa32_return_value): New function.
10237 (hppa64_return_value): New function.
10238 (hppa_gdbarch_init): Set return_value; keep disabled.
10239
fad850b2
AC
10240 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10241 struct-return and inferior function call methods.
10242
26d08f08
AC
10243 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10244 "frame-base.h".
10245 (struct hppa_frame_cache): Define.
10246 (hppa_frame_cache, hppa_frame_this_id): New functions.
10247 (hppa_frame_prev_register): New function.
10248 (hppa_frame_unwind, hppa_frame_base): New variables.
10249 (hppa_frame_unwind_sniffer): New function.
10250 (hppa_frame_base_address, hppa_unwind_pc): New function.
10251 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10252 sniffer, and frame base sniffer; keep disabled.
10253 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10254 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10255
e7d7bd65
AC
10256 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10257 to predicates for "seriously old code".
10258
e963316f
AC
10259 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10260 runtime if(0).
10261
56132691
AC
10262 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10263 unsigned.
10264 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 10265
343af405
AC
10266 * config/pa/tm-hppa.h: Update copyright.
10267 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10268 (deprecated_init_frame_pc_default): Delete declaration.
10269 (hppa_frame_init_saved_regs): Delete declaration.
10270 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10271 * hppa-tdep.c: Include "arch-utils.h".
10272 (hppa_gdbarch_init): Set deprecated init_frame_pc
10273 and deprecated frame_init_saved_regs.
10274 (hppa_frame_init_saved_regs): Make static.
10275
f5859b4d
MK
102762004-02-22 Mark Kettenis <kettenis@gnu.org>
10277
86f6f8e7 10278 Remove old 386BSD support.
cf7c5c23 10279 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
10280 * configure.host: Remove i[34567]86-*-bsd*.
10281 * configure.tgt: Remove i[34567]86-*-bsd*.
10282 * i386b-nat.c: Removed.
10283 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
10284 (i386b-nat.o): Remove dependencies.
10285
86f6f8e7
MK
10286 * config/i386/i386bsd.mh: Removed.
10287 * config/i386/i386bsd.mt: Removed.
10288 * config/i386/nm-i386bsd.h: Removed.
10289 * config/i386/tm-i386bsd.h: Removed.
10290 * config/i386/xm-i386bsd.h: Removed.
10291
971218cd
MK
10292 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10293
7e654c37
MK
10294 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10295 (amd64fbsd_init_abi): Set link map offsets.
10296 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10297 (amd64nbsd_init_abi): Set link map offsets.
10298 * amd64obsd-tdep.c: Include "solib-svr4.h".
10299 (amd64obsd_init_abi): Set link map offsets.
10300 * i386fbsd-tdep.c: Include "solib-svr4.h".
10301 (i386fbsd_init_abi): Set link map offsets.
10302 * i386nbsd-tdep.c: Include "solib-svr4.h".
10303 (i386nbsdelf_init_abi): Set link map offsets.
10304 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10305 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10306 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10307 solib-legacy.o and core-aout.o. Reformat.
10308 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10309 solib-svr4.o, solib-legacy.o. Reformat.
10310 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10311 * config/i386/nbsdelf.mh: Reformat.
10312 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10313 solib-svr4.o, solib-legacy.o and corelow.o.
10314 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10315 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10316 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10317 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10318 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10319 (TM_FILE): Set to tm-fbsd.h.
10320 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10321 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10322 solib-svr4.o.
10323 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10324 solib-svr4.o.
10325 (TM_FILE): Set to nm-nbsd.h.
10326 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10327 Simplify shared library support. Don't include "elf/common.h".
10328 (SVR4_SHARED_LIBS): Don't define.
10329 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10330 "solib.h".
10331 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10332 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10333 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10334 Don't include "i386/tm-i386.h". Include "solib.h".
10335 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10336 Don't include "i386/tm-i386.h".
10337 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10338 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10339 Include "i386/xm-i386.h".
10340 (HOST_LONG_DOUBLE_FORMAT): Remove.
10341
5d93ae8c
MK
10342 Fix OpenBSD/i386 sigtramp recognition.
10343 * i386-tdep.h: Update copyright year.
10344 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10345 (i386bsd_sigtramp_end): New prototypes.
10346 (i386fbsd_sigtramp_start_addr): Renamed from
10347 i386fbsd_sigtramp_start.
10348 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10349 (i386obsd_sigtramp_start_addr): Renamed from
10350 i386obsd_sigtramp_start.
10351 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10352 * i386bsd-tdep.c: Update copyright year.
10353 (i386bsd_pc_in_sigtramp): Make public.
10354 * i386fbsd-nat.c: Update copyright year.
10355 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10356 * i386fbsd-tdep.c: Update copyright year.
10357 (i386fbsd_sigtramp_start_addr): Renamed from
10358 i386fbsd_sigtramp_start.
10359 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10360 (i386fbsdaout_init_abi): Adjust for renamed variables.
10361 * i386obsd-nat.c: Update copyright year.
10362 (_initialize_i386obsd_nat): Adjust for renamed variables.
10363 * i386obsd-tdep.c: Include "target.h".
10364 (i386obsd_page_size): New variable.
10365 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10366 (i386obsd_sigtramp_end): New functions.
10367 (i386obsd_sigtramp_start_addr): Renamed from
10368 i386obsd_sigtramp_start.
10369 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10370 (i386obsd_init_abi): Adjust for renamed variables. Set
10371 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10372 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10373
84d04465
MK
10374 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10375 trampoline change in OpenBSD kernel.
10376
b053aceb
MK
10377 * amd64-nat.c: Update copyright year.
10378 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10379 architecture from REGCACHE.
10380
f5859b4d
MK
10381 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10382 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10383
e4bbbda8
MK
103842004-02-21 Mark Kettenis <kettenis@gnu.org>
10385
ba361932
MK
10386 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10387 i[34567]86-*-openbsd3.[0-3].
10388 * config/i386/obsdaout.mh: New file.
10389
d3e48264
MK
10390 * config/i386/obsd.mh (MH_FLAGS): Remove.
10391
60a6eeb6
MK
10392 Fix PR build/1549.
10393 * i386obsd-tdep.c: Update copyright years. Include
10394 "solib-svr4.h".
10395 (i386obsd_init_abi): Don't set regset_from_core_section here.
10396 (i386obsd_aout_init_abi): New function. Set
10397 regset_from_core_section here.
10398 (i386obsd_elf_init_abi): New function.
10399 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10400 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10401 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10402 (TM_FILE): Set to tm-nbsd.h.
10403
10404 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10405 solib-sunos.o.
10406
e4bbbda8
MK
10407 * solib-svr4.h: Update copyright year.
10408 (svr4_ilp32_fetch_link_map_offsets)
10409 (svr4_lp64_fetch_link_map_offsets): New prototype.
10410 * solib-svr4.c: Update copyright year.
10411 (svr4_ilp32_fetch_link_map_offsets)
10412 (svr4_lp64_fetch_link_map_offsets): New function.
10413
f6fe98ef
DJ
104142004-02-20 Daniel Jacobowitz <drow@mvista.com>
10415
10416 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10417 to the partial symbol table.
10418
589ca796
JB
104192004-02-20 J. brobecker <brobecker@gnat.com>
10420
10421 * PROBLEMS: Add description of problem documented under gdb/1560.
10422
2031c21a
MK
104232004-02-20 Mark Kettenis <kettenis@gnu.org>
10424
30b344b1
MK
10425 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10426 comments.
10427 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10428 functions.
10429 (amd64obsd_init_abi): Reorder initializations. Use
10430 amd64obsd_r_reg_offset to initialize the general-purpose register
10431 set details. Set regset_from_core_section.
10432 (_initialize_amd64obsd_tdep): Rename from
10433 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10434 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10435 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10436
2031c21a
MK
10437 * NEWS (New native configurations): Mention OpenBSD/alpha.
10438 * configure.tgt: Add alpha*-*-openbsd*.
10439 * configure.host: Add alpha*-*-openbsd*.
10440 * alphanbsd-tdep.c: Update copyright year.
10441 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10442
42471775
AC
104432004-02-20 Andrew Cagney <cagney@redhat.com>
10444
10445 Fix PR tdep/1372.
10446 * configure.tgt: Delete target "none-*-*".
10447 * configure.host: Delete host "none-*-*".
10448 * config/none/none.mh: Delete file.
10449 * config/none/none.mt: Delete file.
10450 * config/none/xm-none.h: Delete file.
10451 * config/none/tm-none.h: Delete file.
10452 * config/none/nm-none.h: Delete file.
10453
960ccd7d
FF
104542004-02-19 Fred Fish <fnf@redhat.com>
10455
10456 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10457 cache->uses_fp prior to setting it.
10458
5f883edd
FF
104592004-02-19 Fred Fish <fnf@redhat.com>
10460
10461 Fix for PR breakpoint/1558.
10462 * sh-tdep.c (IS_JSR): New macro.
10463 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10464
f98c22d5
JB
104652004-02-19 Jim Blandy <jimb@redhat.com>
10466
10467 * findvar.c (value_from_register): Doc fix.
10468
95051d27
JJ
104692004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10470
10471 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10472 type being greater than sizeof of host's LONGEST. Always use
10473 unpack_long() unless format 'f' chosen.
10474
ccefbec3
EZ
104752004-02-19 Joel Brobecker <brobecker@gnat.com>
10476
10477 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 10478
ccefbec3
EZ
10479 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10480 contains a symbol wich is the best, non-exact match for the given
10481 pc. Update comments.
10482
104832004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10484
2ede629f
EZ
10485 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10486 macro, which was part of the now removed Mach 3 port.
10487 * utils.c (request_quit): Ditto.
10488
567ee972
MK
104892004-02-18 Mark Kettenis <kettenis@gnu.org>
10490
10491 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10492 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10493
50cca7bb
MK
104942004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10495
10496 Committed by Mark Kettenis <kettenis@gnu.org>.
10497
10498 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10499 Define.
10500
226361c4
AC
105012004-02-18 Andrew Cagney <cagney@redhat.com>
10502
10503 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10504 CONFIG_INSTALL and CONFIG_UNINSTALL.
10505 * configure: Re-generate.
10506 * interps.h (INTERP_TUI): Define.
10507 * Makefile.in: Update dependencies.
10508 (TUI): New macro.
10509 (tui-main.o): Specify dependencies.
10510 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10511 * tui/tui-main.c: New file.
10512
49cfa46f
MK
105132004-02-18 Mark Kettenis <kettenis@gnu.org>
10514
e2879ccb
MK
10515 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10516 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10517 dependencies.
10518 * configure.host: Add x86_64-*-openbsd*.
10519 * configure.tgt: Add x86_64-*-openbsd*.
10520 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10521
c43f4bec
MK
10522 * tui/tui.c: Don't include <malloc.h>.
10523
09ae75b6
MK
10524 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10525 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10526 amd64nbsd-tdep.c.
10527
49cfa46f 10528 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 10529 static. Remove extraneous whitespace.
49cfa46f
MK
10530 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10531 static.
10532
05957fdb
JB
105332004-02-17 Jim Blandy <jimb@redhat.com>
10534
10535 * findvar.c (value_from_register): Doc fix.
10536
d0f54f9d
JB
105372004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10538
10539 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 10540
8a1dac83 10541 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
10542 CORE_ADDR as type for selectors. Correct types for GNU run time
10543 message lookup function to use double indirection.
10544 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10545 * objc-lang.h (lookup_child_selector): Adapt prototype.
10546
9cbd5950
JB
10547 * s390-nat.c (SUBOFF): New macro.
10548 (supply_gregset, fill_gregset): Use it to handle debugging
10549 of 32-bit exectuables running under a 64-bit kernel.
10550 * s390-tdep.c: Include "solib-svr4.h".
10551 (s390_svr4_fetch_link_map_offset): New function.
10552 (s390x_svr_fetch_link_map_offset): Likewise.
10553 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10554 * Makefile.in (s390-tdep.o): Update dependencies.
10555
a8c99f38
JB
10556 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10557 "frame-unwind.h".
10558 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10559 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10560 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10561 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10562 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10563 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 10564 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
10565 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10566 (struct frame_extra_info): Remove.
10567 (s390_memset_extra_info): Remove.
f73b1eff
JB
10568 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10569 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10570 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
10571 (is_rse): Renamed to ...
10572 (is_rsy): ... this. Support long displacements.
10573 (is_rxe): Renamed to ...
10574 (is_rxy): ... this. Support long displacements.
10575 (compute_x_addr): Support long displacements.
10576 (struct s390_prologue_data): New data type.
10577 (s390_on_stack): Change API to use struct s390_prologue_data.
10578 (s390_store): Reimplement.
10579 (s390_load): New function.
10580 (s390_get_signal_frame_info): Remove.
10581 (s390_get_frame_info): Remove, replace by ...
10582 (s390_analyze_prolog): ... this new function.
10583 (s390_check_function_end): Remove.
10584 (s390_function_start): Remove.
10585 (s390_frameless_function_invokation): Remove.
10586 (s390_is_sigreturn): Remove.
10587 (s390_init_frame_pc_first): Remove.
10588 (s390_init_frame_extra_info): Remove.
10589 (s390_frame_init_saved_regs): Remove.
10590 (s390_frame_saved_pc_nofix): Remove.
10591 (s390_frame_saved_pc): Remove.
10592 (s390_frame_chain): Remove.
10593 (s390_fp_regnum, s390_read_fp): Remove.
10594 (s390_pop_frame_regular, s390_pop_frame): Remove.
10595 (s390_saved_pc_after_call): Remove.
10596 (s390_skip_prologue): Reimplement.
10597 (s390_in_function_epilogue_p): Support long displacements.
10598 (struct s390_unwind_cache): New data structure.
10599 (s390_frame_unwind_cache): New function.
10600 (s390_prologue_frame_unwind_cache): Likewise.
10601 (s390_backchain_frame_unwind_cache): Likewise.
10602 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10603 (s390_frame_unwind): Define.
10604 (s390_frame_sniffer): New function.
10605 (struct s390_pltstub_unwind_cache): New data structure.
10606 (s390_pltstub_frame_unwind_cache): New function.
10607 (s390_pltstub_frame_this_id): Likewise.
10608 (s390_pltstub_frame_prev_register): Likewise.
10609 (s390_pltstub_frame_unwind): Define.
10610 (s390_pltstub_frame_sniffer): New function.
10611 (struct s390_sigtramp_unwind_cache): New data structure.
10612 (s390_sigtramp_frame_unwind_cache): New function.
10613 (s390_sigtramp_frame_this_id): Likewise.
10614 (s390_sigtramp_frame_prev_register): Likewise.
10615 (s390_sigtramp_frame_unwind): Define.
10616 (s390_sigtramp_frame_sniffer): New function.
10617 (s390_frame_base_address, s390_local_base_address): New functions.
10618 (s390_frame_base): Define.
10619 (s390_unwind_pc, s390_unwind_sp): New function.
10620 (s390_push_dummy_call): Use new frame base location.
10621 (s390_unwind_dummy_id): Likewise.
10622 (s390_gdbarch_init): Remove calls to:
10623 set_gdbarch_frameless_function_invocation,
10624 set_gdbarch_deprecated_init_frame_pc,
10625 set_gdbarch_deprecated_frame_chain,
10626 set_gdbarch_deprecated_frame_init_saved_regs,
10627 set_gdbarch_deprecated_pop_frame,
10628 set_gdbarch_deprecated_init_extra_frame_info,
10629 set_gdbarch_deprecated_init_frame_pc_first,
10630 set_gdbarch_deprecated_target_read_fp,
10631 set_gdbarch_deprecated_frame_saved_pc,
10632 set_gdbarch_deprecated_saved_pc_after_call,
10633 set_gdbarch_deprecated_fp_regnum.
10634 Add calls to:
10635 set_gdbarch_in_solib_call_trampoline,
10636 frame_unwind_append_sniffer,
10637 frame_base_set_default,
10638 set_gdbarch_unwind_pc,
10639 set_gdbarch_unwind_sp.
10640 * Makefile.in (s390-tdep.o): Update dependencies.
10641
b0cf273e
JB
10642 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10643 (S390_STACK_FRAME_OVERHEAD): Remove.
10644 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10645 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10646 (s390_promote_integer_argument): Remove.
10647 (s390_cannot_extract_struct_value_address): Remove.
10648 (s390_use_struct_convention, s390_store_struct_return): Remove.
10649 (s390_extract_return_value, s390_store_return_value): Remove.
10650 (s390_return_value_convention, s390_return_value): New functions.
10651 (is_float_singleton): Handle typedefs.
8a1dac83 10652 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
10653 Remove, replace by ...
10654 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10655 s390_function_arg_integer): ... these new functions.
10656 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10657 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10658 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10659 Fill in tdep->abi.
10660 Remove calls to:
10661 set_gdbarch_deprecated_store_struct_return,
10662 set_gdbarch_deprecated_extract_return_value,
10663 set_gdbarch_deprecated_store_return_value,
10664 set_gdbarch_use_struct_convention,
10665 set_gdbarch_extract_struct_value_address,
10666 set_gdbarch_deprecated_pc_in_call_dummy,
10667 set_gdbarch_deprecated_push_arguments,
10668 set_gdbarch_deprecated_save_dummy_frame_tos,
10669 set_gdbarch_deprecated_push_return_address,
10670 set_gdbarch_deprecated_sizeof_call_dummy_words,
10671 set_gdbarch_deprecated_call_dummy_words,
10672 set_gdbarch_deprecated_dummy_write_sp.
10673 Add calls to:
10674 set_gdbarch_push_dummy_call,
10675 set_gdbarch_unwind_dummy_id,
10676 set_gdbarch_return_value.
8a1dac83 10677
e1457d83
JB
10678 * config/s390/nm-linux.h: Update comments.
10679 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10680 (STOPPED_BY_WATCHPOINT): Redefine.
10681 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10682 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10683 (s390_stopped_by_watchpoint): Likewise.
10684 (watch_area_cnt): Remove.
10685 * s390-nat.c: Update comments.
10686 (watch_area): Remove typedef.
10687 Global replace watch_area by struct watch_area.
10688 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 10689 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
10690 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10691 (s390_fix_watch_points): Remove pid argument,
10692 use s390_inferior_tid. Recompute area spanned by watchpoints.
10693 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10694 argument. Reimplement.
10695
d0f54f9d
JB
10696 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10697 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10698 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 10699 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
10700 core-regset.o.
10701 * config/s390/s390x.mt: Remove.
10702 * config/s390/tm-s390.h: Remove.
10703 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10704 (TARGET_ELF64): Remove.
10705 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10706 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10707 s390*-*-* case; always set gdb_target to s390.
10708 * regformats/reg-s390.dat: Remove control registers.
10709 * regformats/reg-s390x.dat: Likewise.
10710 * s390-tdep.h: New file.
8a1dac83 10711 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
10712 Include "inferior.h" and "s390-tdep.h".
10713 Remove private definition of offsetof.
10714 (s390_register_u_addr): Remove.
10715 (regmap_gregset, regmap_fpregset): Define.
10716 (supply_gregset, fill_gregset): Reimplement.
10717 (supply_fpregset, fill_fpregset): Likewise.
10718 (s390_inferior_tid): New function.
10719 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10720 (fetch_inferior_registers, store_inferior_registers): Likewise.
10721 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10722 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10723 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10724 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10725 (struct gdbarch_tdep): Define.
10726 (struct s390_register_info): Define.
10727 (s390_register_info): New variable.
10728 (s390_register_name): Reimplement.
10729 (s390_register_type): New function.
10730 (s390_register_raw_size, s390x_register_raw_size): Remove.
10731 (s390_cannot_fetch_register): Remove.
10732 (s390_register_byte): Remove.
10733 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10734 (s390_dwarf_regmap): New variable.
10735 (s390_dwarf_reg_to_regnum): New function.
10736 (s390_stab_reg_to_regnum): Remove.
10737 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10738 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10739 (s390_convert_register_p): Likewise.
10740 (s390_register_to_value, s390_value_to_register): Likewise.
10741 (s390_register_reggroup_p): Likewise.
10742 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10743 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10744 (s390_supply_regset, s390_regset_from_core_section): New functions.
10745 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10746 (S390_FPR_SIZE): Likewise.
10747 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10748 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10749 (S390_NUM_GPRS): Move here from tm-s390.h.
10750 (S390_NUM_FPRS): Likewise.
10751 (s390_in_function_epilogue_p): New function.
10752 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10753 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10754 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10755 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10756 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10757 Remove calls to:
10758 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
10759 set_gdbarch_deprecated_max_register_virtual_size,
10760 set_gdbarch_deprecated_register_byte,
d0f54f9d 10761 set_gdbarch_cannot_fetch_register,
8a1dac83 10762 set_gdbarch_cannot_store_register,
d0f54f9d
JB
10763 set_gdbarch_deprecated_register_size,
10764 set_gdbarch_deprecated_register_raw_size,
10765 set_gdbarch_deprecated_register_virtual_size,
10766 set_gdbarch_deprecated_register_virtual_type,
10767 set_gdbarch_deprecated_register_bytes.
10768 Add calls to:
10769 set_gdbarch_num_pseudo_regs,
10770 set_gdbarch_register_type,
10771 set_gdbarch_convert_register_p,
10772 set_gdbarch_register_to_value,
10773 set_gdbarch_value_to_register,
10774 set_gdbarch_register_reggroup_p,
10775 set_gdbarch_regset_from_core_section,
10776 set_gdbarch_pseudo_register_read,
10777 set_gdbarch_pseudo_register_write,
10778 set_gdbarch_in_function_epilogue_p.
10779 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10780 (s390_tdep_h): New variable.
10781
8cfe231d
JB
107822004-02-17 Jim Blandy <jimb@redhat.com>
10783
4589a601
JB
10784 * findvar.c (value_from_register): If the type has no length, just
10785 return an acceptable value --- don't report an internal error.
10786
8cfe231d
JB
10787 * stabsread.c (read_type): If we find any type numbers that are
10788 forward references, complain if the references aren't resolved by
10789 the time we're finished reading.
10790 (cleanup_undefined_types): Make error message more appropriate for
10791 a complaint.
10792
5bf0017e
EZ
107932004-02-17 Elena Zannoni <ezannoni@redhat.com>
10794
9d62932d
EZ
10795 * Makefile.in (defs_h): Remove dependency on progress_h.
10796 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10797 progress.h.
10798 * main.c (captured_main): Delete use of START_PROGRESS and
10799 END_PROGRESS.
10800
108012004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10802
5bf0017e
EZ
10803 * objfiles.c (terminate_minimal_symbol_table): Add back
10804 initialization of MSYMBOL_TYPE.
10805
9fc9f5e2
AC
108062004-02-17 David Mosberger <davidm@hpl.hp.com>
10807
10808 Committed by Andrew Cagney.
10809 * Makefile.in (ia64_tdep_h): New macro.
10810 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10811 (ia64-tdep.o): Likewise.
10812 * ia64-tdep.h: New file.
10813 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10814 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10815 (ia64_aix_sigcontext_register_address): Likewise.
10816 (ia64_linux_getunwind_table): Delete declaration.
10817 * ia64-linux-tdep.c: Likewise.
10818
76cd2bd9
CV
108192004-02-17 Corinna Vinschen <vinschen@redhat.com>
10820
10821 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10822 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10823 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10824
634aa483
AC
108252004-02-17 Andrew Cagney <cagney@redhat.com>
10826
10827 * symtab.c (skip_prologue_using_sal): New function.
10828 * symtab.h (skip_prologue_using_sal): Declare.
10829 * frv-tdep.c: Include "symtab.h".
10830 (skip_prologue_using_sal): Delete function.
10831 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10832 * rs6000-tdep.c (refine_prologue_limit): Mention
10833 skip_prologue_using_sal.
10834 * ia64-tdep.c (refine_prologue_limit): Ditto.
10835 * Makefile.in: Update dependencies.
10836
108372004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 10838
39ce7b3f
AC
10839 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10840 START_INFERIOR_TRAPS_EXPECTED.
10841 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10842 START_INFERIOR_TRAPS_EXPECTED.
10843 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10844 Delete macro.
10845 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10846 macro, moved to "nm-osf.h". Update copyright.
10847 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10848 update copyright.
10849
19772a2c
AC
10850 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10851 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10852 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10853 frameless_look_for_prologue.
10854 * frame.h (legacy_frameless_look_for_prologue): Rename
10855 frameless_look_for_prologue.
10856 * gdbarch.h, gdbarch.c: Re-generate.
10857 * sh64-tdep.c (sh64_gdbarch_init): Update.
10858 * sh-tdep.c (sh_gdbarch_init): Update.
10859 * s390-tdep.c (s390_gdbarch_init): Update.
10860 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10861 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10862 * m68k-tdep.c (m68k_gdbarch_init): Update.
10863 (delta68_frame_args_address): Update.
10864 * m32r-tdep.c (m32r_gdbarch_init): Update.
10865 * hppa-tdep.c (hppa_gdbarch_init): Update.
10866 * h8300-tdep.c (h8300_gdbarch_init): Update.
10867 * frv-tdep.c (frv_gdbarch_init): Update.
10868 (frv_frameless_function_invocation): Update.
10869 * cris-tdep.c (cris_gdbarch_init): Update.
10870 (cris_frameless_function_invocation): Update.
10871 * avr-tdep.c (avr_gdbarch_init): Update.
10872 * arm-tdep.c (arm_gdbarch_init): Update.
10873 * stack.c (frame_info): Update, call predicate.
10874 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10875 * frame.c (legacy_get_prev_frame): Update, call predicate..
10876 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10877 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10878 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10879 invocation.
10880 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10881 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10882 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
10883
10884 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10885 function.
10886
7dcaac91
DJ
108872004-02-16 Daniel Jacobowitz <drow@mvista.com>
10888
10889 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10890 initializations.
10891
88289b6e
AC
108922004-02-16 Andrew Cagney <cagney@redhat.com>
10893
10894 * tui/tui-windata.c: Include "gdb_string.h".
10895 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10896 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10897 * Makefile.in: Update dependencies.
10898
9f976b41
DJ
108992004-02-16 Daniel Jacobowitz <drow@mvista.com>
10900
10901 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10902 * infrun.c: Include "gdb_assert.h".
10903 (singlestep_ptid, saved_singlestep_ptid)
10904 (stepping_past_singlestep_breakpoint): New variables.
10905 (resume): Set singlestep_ptid. Check for singlestep thread
10906 hop.
10907 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10908 (handle_inferior_event): Handle singlestep thread hop.
10909
c324d747
AC
109102004-02-16 Andrew Cagney <cagney@redhat.com>
10911
f090b9b1
AC
10912 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10913 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10914 (dwarf2_frame_init_reg): Ditto.
10915
fd33e6cb
AC
10916 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10917 suggested by Joshua Neuheisel
10918
c324d747
AC
10919 * configure.in: Always check for curses, including pdcurses.
10920 Warn, instead of error, when no curses are found. Enable TUI when
10921 curses is available.
10922 * configure: Re-generate.
10923
b66ba949
CV
109242004-02-16 Corinna Vinschen <vinschen@redhat.com>
10925
10926 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10927 sh_sh4_register_convert_to_virtual.
10928 (sh_register_convert_to_raw): Rename from
10929 sh_sh4_register_convert_to_raw.
10930 (sh_pseudo_register_read): Accomodate above name change.
10931 (sh_pseudo_register_write): Ditto.
10932
b58cbbf2
CV
109332004-02-16 Corinna Vinschen <vinschen@redhat.com>
10934
10935 * sh-tdep.c (sh_generic_register_name): Remove.
10936 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10937
5929a910
AC
109382004-02-15 Andrew Cagney <cagney@redhat.com>
10939
4566dfcf
AC
10940 * configure.in (build_warnings): Add -Wunused-function.
10941 * configure: Re-generate.
10942
db11ed55
AC
10943 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10944 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10945
46ac7a5d
AC
10946 * procfs.c (procfs_init_inferior): Assume that
10947 START_INFERIOR_TRAPS_EXPECTED is defined.
10948 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10949 * config/ns32k/tm-nbsd.h: Delete file,
10950 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10951
ba801595
AC
10952 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10953 * config/vax/tm-vax.h: Delete file.
10954
5929a910
AC
10955 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10956 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10957 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10958 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10959 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10960 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10961 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10962
8f22cb90
MK
109632004-02-15 Mark Kettenis <kettenis@gnu.org>
10964
10965 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10966 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10967 (struct dwarf2_frame_ops): New.
10968 (dwarf2_frame_default_init_reg): New function, based on
10969 dwarf2_frame_init_reg.
10970 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10971 (dwarf2_frame_init_reg): Call architecture-specific function.
10972 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10973 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10974 instead of dwarf2_frame_data.
10975 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10976 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10977
8132723e
AC
109782004-02-15 Andrew Cagney <cagney@redhat.com>
10979
046a4708
AC
10980 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10981 register_gdbarch_swap.
10982 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10983 * f-lang.c (_initialize_f_language): Update, use
10984 DEPRECATED_REGISTER_GDBARCH_SWAP.
10985 * remote.c (_initialize_remote): Ditto.
10986 * regcache.c (_initialize_regcache): Ditto.
10987 * parse.c (_initialize_parse): Ditto.
10988 * infrun.c (_initialize_infrun): Ditto.
10989 * mi/mi-main.c (_initialize_mi_main): Ditto.
10990 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 10991
549c1eea
AC
10992 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10993 poking .cacheable directly.
10994 * symfile.c (symfile_bfd_open): Ditto.
10995
0c0b39de
AC
10996 * Makefile.in: Update all dependencies.
10997
8132723e
AC
10998 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10999 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11000 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11001 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11002 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 11003
b9d26eb9
AC
110042004-02-14 Andrew Cagney <cagney@redhat.com>
11005
8e1f669a
AC
11006 * arch-utils.c (legacy_convert_register_p): Check
11007 DEPRECATED_REGISTER_CONVERTIBLE_P.
11008 * findvar.c (value_of_register): Ditto.
11009
cd0bfa36
AC
11010 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11011 * gdbarch.h, gdbarch.c: Re-generate.
11012 * arch-utils.c (deprecated_register_convertible_not): Delete.
11013 * arch-utils.h (deprecated_register_convertible_not): Delete.
11014 * mi/mi-main.c (get_register): Update. Update copyright.
11015 * infcmd.c (default_print_registers_info): Update.
11016
b9d26eb9
AC
11017 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11018 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11019 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 11020 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
11021 * frame.c (deprecated_get_next_frame_hack): Delete function.
11022 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11023 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11024 Update.
11025 * infcall.c (call_function_by_hand): Update.
11026
9ab9195f
EZ
110272004-02-14 Elena Zannoni <ezannoni@redhat.com>
11028
11029 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 11030 from here...
9ab9195f
EZ
11031 * objfiles.c (init_entry_point_info, entry_point_address):..to
11032 here.
11033 * symfile.h (init_entry_point_info, entry_point_address): Remove
11034 prototypes.
11035 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 11036 prototypes.
9ab9195f
EZ
11037 * cris-tdep.c: Remove include of symfile.h. Add include of
11038 objfiles.h.
11039 * infcall.c: Ditto.
11040 * mcore-tdep.c: Ditto.
11041 * mn10300-tdep.c: Ditto.
11042 * sh64-tdep.c: Ditto.
11043 * v850-tdep.c: Ditto.
11044 * arm-tdep.c: Remove include of symfile.h.
11045 * blockframe.c: Ditto.
11046 * coffread.c: Ditto.
11047 * dbxread.c: Ditto.
11048 * dwarf2read.c: Ditto.
11049 * dwarfread.c: Ditto.
8a1dac83 11050 * frv-tdep.c: Ditto.
9ab9195f
EZ
11051 * ia64-tdep.c: Ditto.
11052 * mdebugread.c: Ditto.
11053 * mipsread.c: Ditto.
8a1dac83 11054 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
11055 * s390-tdep.c: Ditto.
11056 * sh-tdep.c: Ditto.
8a1dac83 11057 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
11058 * gdbarch.sh: Remove include of symfile.h.
11059 * gdbarch.c: Regenerate.
11060 * solib-irix.c (enable_break): Use entry_point_address().
11061 Add comment about include file.
11062 * xcoffread.c: Add comment about include file.
8a1dac83
RM
11063 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11064 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11065 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11066 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
11067 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11068
c4c5b7ba
AC
110692004-02-13 Andrew Cagney <cagney@redhat.com>
11070
11071 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11072 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11073 copyright.
11074 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11075
3e7879de
FF
110762004-02-12 Fred Fish <fnf@redhat.com>
11077
11078 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11079 set_gdbarch_store_return_value.
11080
6a7760b6
AC
110812004-02-12 Andrew Cagney <cagney@redhat.com>
11082
11083 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11084 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11085 (interrupt_query): Ditto.
11086 (ofunc): Delete unused variable.
11087 * cris-tdep.c (cris_abi): Delete unused function.
11088 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11089 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11090 (cris_get_asr_quick_shift_steps): Ditto.
11091 (cris_skip_prologue_frameless_p): Ditto.
11092 * arm-tdep.c (arm_push_return_address): Delete unused function.
11093 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11094 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11095 * s390-tdep.c (s390_function_start): Delete unused function.
11096
31687c3c
AC
110972004-02-12 Andrew Cagney <cagney@redhat.com>
11098
11099 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11100 gdbarch.h, gdbarch.c: Re-generate.
11101 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11102 to generic_prologue_frameless_p.
11103 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11104 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11105
6de918a6
DJ
111062004-02-11 Daniel Jacobowitz <drow@mvista.com>
11107
11108 * mips-linux-tdep.c: Include "frame.h".
11109 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11110 (mips_linux_skip_resolver): New functions.
11111 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11112 and set_gdbarch_in_solib_call_trampoline.
11113 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11114 to after set_gdbarch_in_solib_return_trampoline. Only set the
11115 solib hooks to mips16 functions if the OS ABI is unknown.
11116 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11117 including "config/tm-linux.h".
11118 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11119 * Makefile.in (mips-linux-tdep.o): Update.
11120
87b3ede8
DC
111212004-02-11 David Carlton <carlton@kealia.com>
11122
11123 * linespec.c (decode_compound): Only look for a class symbol when
11124 considering all but the rightmost component.
11125
5979bc46
AC
111262004-02-11 Andrew Cagney <cagney@redhat.com>
11127
11128 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11129 abi code are are separatly grouped.
11130
5867a2fb
AC
111312004-02-11 Andrew Cagney <cagney@redhat.com>
11132
11133 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11134 * gdbarch.h, gdbarch.c: Re-generate.
11135 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11136 * v850-tdep.c (v850_gdbarch_init): Update.
11137 * sh64-tdep.c (sh64_gdbarch_init): Update.
11138 * sh-tdep.c (sh_gdbarch_init): Update.
11139 * s390-tdep.c (s390_gdbarch_init): Update.
11140 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11141 * mips-tdep.c (mips_gdbarch_init): Update.
11142 * mcore-tdep.c (mcore_gdbarch_init): Update.
11143 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11144 * m32r-tdep.c (m32r_gdbarch_init): Update.
11145 * ia64-tdep.c (ia64_gdbarch_init): Update.
11146 * hppa-tdep.c (hppa_gdbarch_init): Update.
11147 * h8300-tdep.c (h8300_gdbarch_init): Update.
11148 * frv-tdep.c (frv_gdbarch_init): Update.
11149 * d10v-tdep.c (d10v_gdbarch_init): Update.
11150 * cris-tdep.c (cris_gdbarch_init): Update.
11151 * avr-tdep.c (avr_gdbarch_init): Update.
11152 * arm-tdep.c (arm_gdbarch_init): Update.
11153 * alpha-tdep.c (alpha_gdbarch_init): Update.
11154
026a72f8
CV
111552004-02-11 Corinna Vinschen <vinschen@redhat.com>
11156
11157 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11158 comma.
11159 (sh_sh4al_dsp_register_name): Ditto.
11160
3903d437
AC
111612004-02-10 Andrew Cagney <cagney@redhat.com>
11162
11163 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11164 (mips_init_frame_pc_first): Delete function.
11165 (mips_frame_saved_pc): Delete function.
11166 (mips_frame_chain): Delete function.
11167 (mips_init_extra_frame_info): Delete function.
11168 (mips_xfer_register): Delete unused variable "reg".
11169 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11170 (mips_n32n64_return_value): Delete unused variable "reg".
11171 (mips_n32n64_return_value): Delete unused variable "pos".
11172 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11173 (mips_o32_return_value): Delete unused variable "pos".
11174 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11175 (mips_print_fp_register): Delete unused variable "namelen"
11176 (mips_print_fp_register): Delete unused variable "flt2"
11177 (get_frame_pointer): Delete function.
11178 (cached_proc_desc): Delete static variable.
11179 (mips_pop_frame): Delete function.
11180 (mips_find_saved_regs): Delete function.
11181 (mips_get_saved_register): Delete function.
11182 (mips_saved_pc_after_call): Delete function.
11183 (SIGFRAME_BASE): Delete macro.
11184 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11185 (SIGFRAME_PC_OFF): Delete macro.
11186 (SIGFRAME_REGSAVE_OFF): Delete macro.
11187 (mips_dump_tdep): Do not print deleted macro definitions.
11188
b9fb98bd
AC
111892004-02-10 Andrew Cagney <cagney@redhat.com>
11190
11191 * Makefile.in (SFILES): Remove explictly listed tui files.
11192 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11193
78ced177 111942004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 11195
78ced177
JJ
11196 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11197 to use paddr functions to format ia64 addresses and long values.
11198 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11199 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11200 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11201 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11202 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11203
6a83354a
AC
112042004-02-10 Andrew Cagney <cagney@redhat.com>
11205
11206 * defs.h: Do not include "tui.h".
11207 * gdb_curses.h: New file.
11208 * tui/tui-hooks.h: New file.
11209 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11210 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11211 (tui_initialize_io): Delete declaration.
11212 (tui_initialize_readline: Delete redundant declaration.
11213 (struct tui_point): Delete definition.
11214 * tui/tui-data.h (struct tui_point): Define.
11215 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11216 * utils.c: Include "tui/tui.h".
11217 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11218 * printcmd.c [TUI]: Include "tui/tui.h".
11219 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11220 * tui/tui-command.c: Include "gdb_curses.h".
11221 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11222 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11223 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11224 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11225 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11226 * Makefile.in: Update all dependencies.
11227 (tui_hooks_h, gdb_curses_h): Define.
11228 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11229
997470ef
EZ
112302004-02-10 Elena Zannoni <ezannoni@redhat.com>
11231
11232 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11233 auxf2. Add comments about some other rarely used fields.
11234
4ff2cc4d
AC
112352004-02-10 Andrew Cagney <cagney@redhat.com>
11236
11237 * Makefile.in (init.c): Fix script removing duplicates. Problem
11238 reported by Peter Schauer.
11239
1ab21617
EZ
112402004-02-09 Elena Zannoni <ezannoni@redhat.com>
11241
11242 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11243 obstack_specify_allocation.
11244 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 11245 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
11246 (allocate_rt_common_objfile): Ditto.
11247 * symfile.c (reread_symbols): Ditto.
11248 * gdb_obstack.h: Add comment.
11249
17763fd9
EZ
112502004-02-09 Elena Zannoni <ezannoni@redhat.com>
11251
11252 * linespec.c (decode_line_1, locate_first_half)
11253 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11254 commented out code.
11255
ec5cdd75
DJ
112562004-02-09 Daniel Jacobowitz <drow@mvista.com>
11257
11258 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11259 obstack_free.
11260
43b54b88
AC
112612004-02-09 Andrew Cagney <cagney@redhat.com>
11262
11263 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11264 fails, try find_pc_section. Fix PR c++/1267.
11265 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11266 instead of find_pc_mapped_section.
11267 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11268 not default to the section containing PC. Fix PR symtab/1519.
11269
edfae063
AC
112702004-02-09 Andrew Cagney <cagney@redhat.com>
11271
11272 * Makefile.in (mips-tdep.o): Update dependencies.
11273 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11274 "trad-frame.h".
11275 (mips_unwind_pc): Return the pseudo PC register.
11276 (mips_unwind_dummy_id): New function.
11277 (mips16_fetch_instruction): New function.
11278 (mips32_fetch_instruction): New function.
11279 (struct mips_frame_cache): Define.
11280 (mips_mdebug_frame_cache): New function.
11281 (mips_mdebug_frame_this_id): New function.
11282 (mips_mdebug_frame_prev_register): New function.
11283 (mips_mdebug_frame_unwind): Define.
11284 (mips_mdebug_frame_sniffer): New function.
11285 (mips_mdebug_frame_base_address): New function.
11286 (mips_mdebug_frame_base): Define.
11287 (mips_mdebug_frame_base_sniffer): New function.
11288 (mips_gdbarch_init): Append unwind and base sniffers. Set
11289 unwind_dummy_id.
11290
defc864c
AC
112912004-02-08 Andrew Cagney <cagney@redhat.com>
11292
6764ddad
AC
11293 * frame.c: Print both the register number and name.
11294
defc864c
AC
11295 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11296 and a sed into a single sed. Make .c and .o patterns more robust.
11297 (OBS): Delete.
11298 (INIT_FILES): Replace OBS with COMMON_OBS.
11299 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11300
645d6d10
MK
113012004-02-08 Mark Kettenis <kettenis@gnu.org>
11302
11303 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11304 the PT_WCOOKIE request.
11305
23e3c3fc
AC
113062004-02-08 Andrew Cagney <cagney@redhat.com>
11307
58dfe9ff
AC
11308 * mips-tdep.c (mips_unwind_pc): New function.
11309 (mips_gdbarch_init): Set mips_unwind_pc.
11310
1152e35e
AC
11311 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11312 (get_frame_id): Allow the UNKNOWN_FRAME.
11313 (frame_register_unwind, get_frame_type): Ditto.
11314
31b75dbf
AC
11315 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11316 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11317 unwind_dummy_id indicates a legacy frame.
11318
3483b318
AC
11319 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11320 * configure: Re-generate.
11321
23e3c3fc
AC
11322 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11323 methods.
11324
33f8ca73
AC
113252004-02-08 Andrew Cagney <cagney@redhat.com>
11326
11327 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11328 makefile macro.
11329 * configure: Re-generate.
11330 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11331 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11332 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11333 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11334 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11335 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11336 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11337 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11338 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11339 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11340
6ba8e26f 113412004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 11342
20d286a5
AC
11343 * Makefile.in: Update all dependencies.
11344
d836ee13
AC
11345 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11346 * configure: Re-generate.
11347 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11348 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11349 (COMMON_OBS): Add "main.o" and "annotate.o".
11350 (ANNOTATE_OBS): Delete.
11351 (OBS): Remove ANNOTATE_OBS.
11352 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11353 CONFIG_INITS.
11354 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11355 against CONFIG_OBS and "main.o".
11356 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11357 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11358
d02c80cd
AC
11359 * tui/tui-command.c: Include "gdb_string.h", delete register
11360 attribute, use ISO-C function signatures.
11361 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11362 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11363 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11364 * tui/tui.c: Ditto.
6ba8e26f
AC
11365
11366 * tui/tui-command.c: Change variable and function names to lower
11367 case.
11368 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11369 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11370 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11371 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11372 * tui/tui-winsource.c, tui/tui.c: Ditto.
11373
4a146b47
EZ
113742004-02-07 Elena Zannoni <ezannoni@redhat.com>
11375
11376 * buildsym.c (free_pending_blocks, finish_block)
11377 (record_pending_block, make_blockvector, end_symtab): Replace
11378 symbol_obstack with objfile_obstack.
8a1dac83 11379 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 11380 (coff_read_enum_type): Ditto.
8a1dac83 11381 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 11382 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 11383 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
11384 (dwarf2_symbol_mark_computed): Ditto.
11385 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11386 * elfread.c (elf_symtab_read): Ditto.
11387 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11388 (hpread_read_enum_type, hpread_read_function_type)
11389 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11390 Ditto.
8a1dac83 11391 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 11392 (java_link_class_type): Ditto.
8a1dac83 11393 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
11394 (new_symbol): Ditto.
11395 * minsyms.c (install_minimal_symbols): Ditto.
11396 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11397 (terminate_minimal_symbol_table): Replace symbol_obstack with
11398 objfile_obstack.
11399 (free_objfile): Remove freeing of symbol_obstack.
11400 * objfiles.h: Remove symbol_obstack field.
11401 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11402 objfile_obstack.
11403 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11404 symbol_obstack.
11405 (solib_add_common_symbols): Replace symbol_obstack with
11406 objfile_obstack.
11407 * somsolib.c (som_solib_add): Ditto.
11408 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11409 (common_block_start, common_block_end): Ditto.
11410 * symfile.c (reread_symbols): Remove freeing and init of
11411 symbol_obstack.
11412 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11413 * symfile.h: Update comment.
11414 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11415 stats printing.
11416 * symtab.c (symbol_set_names): Replace symbol_obstack with
11417 objfile_obstack.
11418 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11419 Update comments.
11420 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11421 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11422 objfile_obstack.
11423
6d012f14
AC
114242004-02-07 Andrew Cagney <cagney@redhat.com>
11425
11426 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11427 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11428 fields and variables.
11429 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11430 (m_beInvisible): Delete macro.
11431 * tui/tui-data.h: Fix case case fields and variables.
11432 (m_genWinPtrIsNull): Delete macro.
11433 (tui_win_list): Rename winList.
11434 (TUI_SRC_WIN): Rename srcWin.
11435 (TUI_DISASM_WIN): Rename disassemWin.
11436 (TUI_DATA_WIN): Rename dataWin.
11437 (TUI_CMD_WIN): Rename cmdWin.
11438 (m_genWinPtrNotNull): Delete macro.
11439 (m_winPtrIsNull): Delete macro.
11440 (m_winPtrNotNull): Delete macro.
11441 (tui_win_is_source_type): Replace m_winIsSourceType
11442 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11443 (tui_win_has_locator): Replace m_hasLocator.
11444 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11445 m_setWinHighlightOff.
11446 * tui/tui-data.c: Update references.
11447 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11448 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11449 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11450 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11451 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11452 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11453 * tui/tui-winsource.c, tui/tui.c: Ditto.
11454
7d34766b
MK
114552004-02-07 Mark Kettenis <kettenis@gnu.org>
11456
1c800673
MK
11457 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11458 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11459 StackGhost.
11460
7d34766b
MK
11461 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11462 variable `i6' to `i7'.
11463 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11464
22940a24
AC
114652004-02-07 Andrew Cagney <cagney@redhat.com>
11466
11467 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11468 (TuiPoint, TuiPointPtr): Ditto.
11469 (TuiStatus, TuiStatusPtr): Ditto.
11470 (TuiWinType, TuiWinTypePtr): Ditto.
11471 (struct tui_point): Rename _TuiPoint.
11472 (tui_get_low_disassembly_address): Rename
11473 tuiGetLowDisassemblyAddress.
11474 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11475 (tuiFree): Delete declaration.
11476 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11477 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11478 * tui/tui.c (tuiFree): Delete function.
11479 * cli/cli-cmds.c (disassemble_command): Update references.
11480 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11481 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11482 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11483 * tui/tui-winsource.c: Ditto.
11484
8b92e4d5
EZ
114852004-02-07 Elena Zannoni <ezannoni@redhat.com>
11486
11487 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11488 coffstab_build_psymtabs, elfstab_build_psymtabs)
11489 (stabsect_build_psymtabs): Replace psymbol_obstack with
11490 objfile_obstack.
11491 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11492 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11493 Ditto.
11494 * dwarfread.c (scan_compilation_units): Ditto.
11495 * elfread.c (elfstab_offset_sections): Ditto.
11496 * hppa-tdep.c (read_unwind_info): Ditto.
11497 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11498 (hpread_end_psymtab): Ditto.
11499 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11500 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11501 Ditto.
11502 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 11503 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
11504 (build_objfile_section_table): Ditto.
11505 (allocate_objfile): Remove init of psymbol_obstack.
11506 (free_objfile): Remove freeing of psymbol_obstack.
11507 * objfiles.h (struct objfile): Remove field
11508 psymbol_obstack. Update comments.
11509 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11510 psymbol_obstack with objfile_obstack.
11511 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11512 psymbol_obstack.
11513 * somread.c (som_symfile_offsets, init_import_symbols)
11514 (init_export_symbols): Replace psymbol_obstack with
11515 objfile_obstack.
11516 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11517 * symfile.c (default_symfile_offsets, syms_from_objfile)
11518 (reread_symbols): Remove freeing and init of psymbol_obstack.
11519 (cashier_psymtab): Update comment.
11520 * symmisc.c (print_objfile_statistics): Don't report stats for
11521 psymbol obstack.
11522 * symtab.h (struct general_symbol_info, struct partial_symtab):
11523 Update comments.
11524 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11525 (xcoff_symfile_offsets): Replace psymbol_obstack with
11526 objfile_obstack.
11527
b99607ea
EZ
115282004-02-07 Elena Zannoni <ezannoni@redhat.com>
11529
11530 * objfiles.h (struct objfile): Add objfile_obstack field.
11531 Remove type_obstack field.
11532
11533 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11534 read_structure_scope read_enumeration, new_symbol): Replace
11535 type_obstack with objfile_obstack.
11536 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 11537 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
11538 (lookup_fundamental_type): Ditto.
11539 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
11540 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11541 (hpread_read_doc_function_type, hpread_read_struct_type)
11542 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 11543 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 11544 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
11545 (java_link_class_type): Ditto.
11546 * mdebugread.c (parse_type): Ditto.
11547 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11548 * solib-sunos.c (solib_add_common_symbols): Ditto.
11549 * stabsread.c (define_symbol, read_type, read_member_functions,
11550 read_cpp_abbrev, read_one_struct_field): Ditto.
11551 * symfile.c (reread_symbols): Ditto.
11552 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 11553
2a8854a7
AC
115542004-02-07 Andrew Cagney <cagney@redhat.com>
11555
11556 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11557 (tui_exec_info_content): Rename TuiExecInfoContent.
11558 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11559 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11560 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11561 (TuiList, TuiListPtr): Ditto.
11562 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11563 (TuiDataType, TuiDataTypePtr): Ditto.
11564 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11565 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11566 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11567 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11568 (TuiDataElement, TuiDataElementPtr): Ditto.
11569 (TuiWinElement, TuiWinElementPtr): Ditto.
11570 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11571 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11572 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11573 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11574 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11575 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11576 * tui/tui-command.c, tui/tui-data.c: Update references.
11577 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11578 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11579 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11580 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 11581
05cbe71a
MK
115822004-02-07 Mark Kettenis <kettenis@gnu.org>
11583
11584 * dwarf2-frame.h: Update copyright.
11585 (enum dwarf2_frame_reg_rule): New.
11586 (struct dwarf2_frame_state_reg): New.
11587 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11588 * dwarf2-frame.c: Update copyright.
11589 (enum dwarf2_reg_rule): Remove.
11590 (struct dwarf2_frame_state): Remove defenition of `struct
11591 dwarf2_frame_state_reg'.
11592 (read_reg): Call get_frame_arch to get the architecture instead of
11593 using CURRENT_GDBARCH.
11594 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11595 DWARF2_FRAME_.
11596 (dwarf2_frame_init_reg): New function.
11597 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11598 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11599 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11600 tags with DWARF2_FRAME_.
11601 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11602 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11603 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11604
ec7d9e56
AC
116052004-02-06 Andrew Cagney <cagney@redhat.com>
11606
dd1abb8c
AC
11607 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11608 (enum tui_data_type): Rename _TuiDataType.
11609 (struct tui_layout_def): Rename _TuiLayoutDef.
11610 (struct tui_source_element): Rename _TuiSourceElement.
11611 (struct tui_data_element): Rename _TuiDataElement.
11612 (struct tui_command_element): Rename _TuiCommandElement.
11613 (struct tui_locator_element): Rename _TuiLocatorElement.
11614 (union tui_which_element): Define.
11615 (struct tui_win_element): Rename _TuiWinElement.
11616 (struct tui_data_info): Rename _TuiDataInfo.
11617 (struct tui_source_info): Rename _TuiSourceInfo.
11618 (struct tui_command_info): Rename _TuiCommandInfo.
11619 (tui_initialize_static_data): Rename initializeStaticData.
11620 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11621 (tui_alloc_win_info): Rename allocWinInfo.
11622 (tui_init_generic_part): Rename initGenericPart.
11623 (tui_init_win_info): Rename initWinInfo.
11624 (tui_alloc_content): Rename allocContent.
11625 (tui_add_content_elements): Rename addContentElements.
11626 (tui_init_content_element): Rename initContentElement.
11627 (tui_free_window): Rename freeWindow.
11628 (tui_free_win_content): Rename freeWinContent.
11629 (tui_free_data_content): Rename freeDataContent.
11630 (tui_free_all_source_wins_content): Rename
11631 freeAllSourceWinsContent.
11632 (tui_del_window): Rename tuiDelWindow.
11633 (tui_del_data_windows): Rename tuiDelDataWindows.
11634 (tui_partial_win_by_name): Rename partialWinByName.
11635 (tui_win_name): Rename winName.
11636 (tui_current_layout): Rename currentLayout.
11637 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11638 (tui_term_height): Rename termHeight.
11639 (tui_set_term_height_to): Rename setTermHeightTo.
11640 (tui_term_width): Rename termWidth.
11641 (tui_set_term_width_to): Rename setTermWidthTo.
11642 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11643 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11644 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11645 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11646 (tui_source_windows): Rename sourceWindows.
11647 (tui_clear_source_windows): Rename clearSourceWindows.
11648 (tui_clear_source_windows_detail): Rename
11649 clearSourceWindowsDetail.
11650 (tui_clear_win_detail): Rename clearWinDetail.
11651 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11652 (tui_default_tab_len): Rename tuiDefaultTabLen.
11653 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11654 (tui_win_with_focus): Rename tuiWinWithFocus.
11655 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11656 (tui_layout_def): Rename tuiLayoutDef.
11657 (tui_win_resized): Rename tuiWinResized.
11658 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11659 (tui_next_win): Rename tuiNextWin.
11660 (tui_prev_win): Rename tuiPrevWin.
11661 (tui_add_to_source_windows): Rename addToSourceWindows.
11662 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11663 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11664 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11665 * tui/tui.c, tui/tui-data.c: Ditto.
11666 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11667 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11668
a358af15
AC
11669 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11670 (struct symtab): Declare.
11671 (tui_set_source_content): Rename tuiSetSourceContent.
11672 (tui_show_symtab_source): Rename tuiShowSource.
11673 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11674 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11675 * tui/tui-source.c: Update copyright. Update references.
11676 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11677 * tui/tui-stack.c: Update references.
11678
a21fcd8f
AC
11679 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11680 (struct tui_win_info): Declare.
11681 (tui_scroll_forward): Rename tuiScrollForward.
11682 (tui_scroll_backward): Rename tuiScrollBackward.
11683 (tui_scroll_left): Rename tuiScrollLeft.
11684 (tui_scroll_right): Rename tuiScrollRight.
11685 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11686 (tui_resize_all): Rename tuiResizeAll.
11687 (tui_refresh_all_win): Rename tuiRefreshAll.
11688 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11689 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11690 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11691 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11692
edae1ccf
AC
11693 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11694 (tui_erase_data_content): Rename tuiEraseDataContent.
11695 (tui_display_all_data): Rename tuiDisplayAllData.
11696 (tui_check_data_values): Rename tuiCheckDataValues.
11697 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11698 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11699 (tui_first_data_element_no_in_line): Rename
11700 tuiFirstDataElementNoInLine.
11701 (tui_delete_data_content_windows): Rename
11702 tuiDeleteDataContentWindows.
11703 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11704 (tui_display_data_from): Rename tuiDisplayDataFrom.
11705 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11706 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11707 * tui/tui-win.c, tui/tui-regs.c: Update references.
11708 * tui/tui-layout.c, tui/tui.c: Update references.
11709
ec7d9e56
AC
11710 * tui/tui-wingeneral.h: Update copyright.
11711 (m_allBeVisible): Delete macro.
8a1dac83 11712 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
11713 (struct tui_gen_win_info): Declare.
11714 (struct tui_win_info): Declare.
11715 (tui_unhighlight_win): Rename unhighlightWin.
11716 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11717 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11718 (tui_make_window): Rename makeWindow.
11719 (tui_copy_win): Rename copyWin.
11720 (tui_box_win): Rename boxWin.
11721 (tui_highlight_win): Rename highlightWin.
11722 (tui_check_and_display_highlight_if_needed): Rename
11723 checkAndDisplayHighlightIfNeeded.
11724 (tui_refresh_all): Rename refreshAll.
11725 (tui_delete_win): Rename tuiDelwin.
11726 (tui_refresh_win): Rename tuiRefreshWin.
11727 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11728 (tui_make_visible, tui_make_invisible): New functions.
11729 (tui_make_all_visible, tui_make_all_invisible): New functions.
11730 (make_all_visible): Rename makeAllVisible.
11731 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11732 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11733 * tui/tui-windata.c, tui/tui-win.c: Update references.
11734 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11735 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11736
1e52e2eb
MK
117372004-02-06 Mark Kettenis <kettenis@gnu.org>
11738
11739 * proc-api.c (write_with_trace): Initialize local variable to
11740 silence compiler warning.
11741
f80bda8e
AC
117422004-02-06 Andrew Cagney <cagney@redhat.com>
11743
11744 * tui/tui-source.h: Do not include "defs.h".
11745 (struct tui_win_info): Declare.
11746 (tui_set_source_content_nil): Declare.
11747 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11748 (union tui_line_or_address): Rename _TuiLineOrAddress.
11749 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11750 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11751 (tui_update_source_window_as_is): Rename
11752 tuiUpdateSourceWindowAsIs.
11753 (tui_update_source_windows_with_addr): Rename
11754 tuiUpdateSourceWindowsWithAddr.
11755 (tui_update_source_windows_with_line): Rename
11756 tuiUpdateSourceWindowsWithLine.
11757 (tui_clear_source_content): Rename tuiClearSourceContent.
11758 (tui_erase_source_content): Rename tuiEraseSourceContent.
11759 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11760 (tui_show_source_content): Rename tuiShowSourceContent.
11761 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11762 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11763 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11764 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11765 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11766 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11767 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11768 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11769 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11770 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11771 (struct tui_win_info): Declare.
11772 * tui/tui-stack.c: Update references.
11773 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11774 * tui/tui-win.c, tui/tui-source.c: Ditto.
11775 * tui/tui.c, tui/tui-disasm.c: Ditto.
11776
9fbfb822
MK
117772004-02-06 Mark Kettenis <kettenis@gnu.org>
11778
11779 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11780 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11781
03cebad2
MK
117822004-02-05 Mark Kettenis <kettenis@gnu.org>
11783
11784 * infrun.c (handle_inferior_event): Allow for breakpoint
11785 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11786 and SIGEMT. Update comments.
11787 * NEWS (Revised SPARC target): Mention support for non-executable
11788 stack.
11789
290281b1
MK
117902004-02-04 Mark Kettenis <kettenis@gnu.org>
11791
11792 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11793 * inftarg.c: Update copyright year.
11794 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11795 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11796 (sparc_xfer_wcookie): New function.
11797 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11798 * Makefile.in (sparc-nat.o): Update dependencies.
11799 * config/sparc/nm-nbsd.h: Include "target.h".
11800 (NATIVE_XFER_WCOOKIE): New define.
11801 (sparc_xfer_wcookie): New prototype.
11802
212161df
AC
118032004-02-04 Andrew Cagney <cagney@redhat.com>
11804
11805 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11806 SYSCALL_TRAP function.
11807 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11808
6e4c6c91
DJ
118092004-02-04 Andrew Cagney <cagney@redhat.com>
11810 Daniel Jacobowitz <drow@mvista.com>
11811
11812 * objfiles.h: Delete comments refering to inside_entry_func and
11813 DEPRECATED_FRAME_CHAIN_VALID.
11814 * defs.h (inside_entry_func): Update prototype..
11815 * blockframe.c (inside_entry_func): Rename to
11816 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11817 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11818
cae688ec
JJ
118192004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11820
11821 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11822 outside of #ifdef SOLIB_ADD region.
11823 (do_restore_lang_radix_cleanup): Ditto.
11824 (resolve_pending_breakpoint): Ditto.
11825
19217676
AC
118262004-02-03 Andrew Cagney <cagney@redhat.com>
11827
11828 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11829 (process_note_abi_tag_sections): Delete unused function.
11830 (ia64_read_fp): Delete unused function.
11831 (gdbarch_extract_struct_value_address): Delete declaration.
11832
876753be
AC
118332004-02-02 Andrew Cagney <cagney@redhat.com>
11834
11835 * vax-tdep.c (vax_frame_chain): Delete call to
11836 deprecated_inside_entry_file.
11837 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11838
d4f10bf2
MK
118392004-02-02 Mark Kettenis <kettenis@gnu.org>
11840
11841 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11842 column that's "empty" or "same value" when eliminating REG_RA
11843 rules.
11844
cae688ec
JJ
118452004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11846
11847 * NEWS: Add information about new pending breakpoint support.
11848
0101ce28
JJ
118492004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11850
11851 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11852 and pending fields for pending breakpoint support.
11853 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11854 (condition_command): Only parse condition if not a pending
11855 breakpoint.
11856 (print_one_breakpoint): Add support for pending breakpoints.
11857 (describe_other_breakpoints): Add checks to verify we are not
11858 dealing with pending breakpoints.
11859 (check_duplicates): Don't check pending breakpoints.
11860 (set_raw_breakpoint): Initialize pending flag.
11861 (do_restore_lang_radix_cleanup): New cleanup routine.
11862 (resolve_pending_breakpoint): New function.
11863 (re_enable_breakpoints_in_shlibs): Try and resolve any
11864 pending breakpoints via resolve_pending_breakpoint.
11865 (mention): Add pending breakpoint support.
11866 (parse_breakpoint_sals): Add new parameter to pass to
11867 decode_line_1 to indicate silent errors when files or functions
11868 are not found. Change all callers.
11869 (do_captured_parse_breakpoint): New function.
11870 (break_command_1): Change prototype to return an rc value and to
11871 take an optional pending breakpoint pointer. Support creating
11872 a pending breakpoint if a "not found" form of error occurs when
11873 parsing the breakpoint. Also support resolving an existing pending
11874 breakpoint and be silent if the resolution fails.
11875 (create_breakpoints): Change prototype to take pending breakpoint
11876 pointer. When resolving a pending breakpoint, use the new pointer
11877 to provide a conditional or commands added by the end-user.
11878 (delete_breakpoint): Add appropriate check for pending.
11879 (breakpoint_re_set_one): Ditto.
11880 (do_enable_breakpoint): Ditto.
11881
8d577d32
DC
118822004-02-02 David Carlton <carlton@kealia.com>
11883
11884 * valops.c (enum oload_classification): New.
11885 (find_overload_match): Break implementation into separate
11886 functions; delete #if 0'd code; look for symbols within
11887 namespaces.
11888 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11889 (find_oload_champ,oload_method_static,classify_oload_match): New.
11890 * cp-support.h: Add declaration for cp_func_name; update
11891 declaration for make_symbol_overload_list.
11892 * cp-support.c (cp_func_name): New.
11893 (overload_list_add_symbol): Fix comment, use
11894 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11895 (make_symbol_overload_list): Take a function name and a namespace
11896 instead of a symbol; change implementation.
11897 (make_symbol_overload_list_using): New.
11898 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11899
22e8e3c7
FF
119002004-02-02 Fred Fish <fnf@redhat.com>
11901
11902 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 11903 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
11904 * remote-sim.c (gdb_os_write_stderr): Write output to
11905 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11906 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 11907 gdb_stderr stream and update copyright years.
22e8e3c7 11908
6b753f60
DJ
119092004-02-01 Daniel Jacobowitz <drow@mvista.com>
11910
11911 * Makefile.in (mips-linux-nat.o): Update dependencies.
11912 * mips-linux-nat.c: Include mips-tdep.h.
11913
119142004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
11915
11916 * sol-thread.c (sol_thread_xfer_partial): New function.
11917 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11918 (init_sol_core_ops): Likewise.
11919
11920 * procfs.c (procfs_xfer_partial): New function.
11921 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11922 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11923
11924 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11925 procfs_xfer_auxv function.
11926
11927 * procfs.c (procfs_make_note_section): If we can read
11928 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11929 * linux-proc.c (linux_make_note_section): Likewise.
11930
11931 * auxv.h: New file.
11932 * auxv.c: New file.
11933 * Makefile.in (auxv_h): New variable.
11934 (COMMON_OBS): Add auxv.o here.
11935 (auxv.o): New target.
11936
11937 * corelow.c (core_xfer_partial): New function.
11938 (init_core_ops): Use it for core_ops.to_xfer_partial.
11939
11940 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11941 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11942 macro if that is defined.
11943
fa5281d0
DJ
119442004-02-01 Daniel Jacobowitz <drow@mvista.com>
11945
11946 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11947 and check the specified thread for each breakpoint.
11948 * breakpoint.h (bpstat_stop_status): Update prototype.
11949 * infrun.c (handle_inferior_event): Update calls to
11950 bpstat_stop_status.
11951
26ee262d
DJ
119522004-02-01 Daniel Jacobowitz <drow@mvista.com>
11953
11954 * Makefile.in (cli-cmds.o): Add $(readline_h).
11955
d9b52655
DJ
119562004-02-01 Daniel Jacobowitz <drow@mvista.com>
11957
11958 * cli/cli-cmds.c: Include readline.h.
11959 (complete_command): Pass the start of the last word to
11960 complete_line.
11961
9709f61c
DJ
119622004-01-31 Daniel Jacobowitz <drow@mvista.com>
11963
11964 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11965 argument, and change first argument to a CORE_ADDR.
11966 * breakpoint.h (bpstat_stop_status): Update prototype.
11967 * infrun.c (adjust_pc_after_break): Add a new comment.
11968 (handle_inferior_event): Update calls to bpstat_stop_status.
11969
4f1280bb
DJ
119702004-01-31 Daniel Jacobowitz <drow@mvista.com>
11971
11972 * breakpoint.h: Update copyright years.
11973
4fa8626c
DJ
119742004-01-31 Daniel Jacobowitz <drow@mvista.com>
11975
11976 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11977 (bpstat_stop_status): Don't decrement PC.
11978 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11979 prototype.
11980 * infrun.c (adjust_pc_after_break): New function.
11981 (handle_inferior_event): Call it, early. Remove later references
11982 to DECR_PC_AFTER_BREAK.
11983 (normal_stop): Add commentary.
11984
fad0733a
DJ
119852004-01-31 Daniel Jacobowitz <drow@mvista.com>
11986
11987 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11988 2004-01-27 double-free fix.
11989
42cdca6c
MK
119902004-01-31 Mark Kettenis <kettenis@gnu.org>
11991
11992 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11993 (sparc32_frame_prev_register): Handle StackGhost.
11994 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11995
932d5416
RM
119962004-01-29 Roland McGrath <roland@redhat.com>
11997
11998 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11999 * configure: Regenerated.
12000
12001 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12002 * Makefile.in (procfs.o): Add dep.
12003
47d3492a
AC
120042004-01-28 Andrew Cagney <cagney@redhat.com>
12005
12006 * tui/tui-stack.h: Update copyright.
12007 (struct frame_info): Add opaque declaration.
12008 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12009 (tui_show_locator_content): Rename tuiShowLocatorContent.
12010 (tui_show_frame_info): Rename tuiShowFrameInfo.
12011 * tui/tui-stack.c: Update copyright. Update references.
12012 * tui/tui-winsource.c: Update references.
12013 * tui/tui-win.c: Update references.
12014 * tui/tui-layout.c: Update references.
12015 * tui/tui-hooks.c: Update copyright, update references.
12016 * tui/tui.c: Update copyright, update references.
12017 * tui/tui-disasm.c: Update references.
12018
5d51ca54
DC
120192004-01-28 David Carlton <carlton@kealia.com>
12020
12021 * dwarf2read.c (add_partial_structure): Use demangled name if
12022 namespace equals "".
12023
086ed43d
JB
120242004-01-27 Jim Blandy <jimb@redhat.com>
12025
12026 Clean up misapplied patch:
12027 * dwarf2read.c (determine_prefix): Change one of the two forward
12028 declarations for 'determine_prefix_aux' to a declaration for this.
12029 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12030 argument to 'die_specification'.
12031
2a35147e
JB
12032 * dwarf2read.c (read_func_scope): Re-indent comment.
12033
a355c7de 120342004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 12035
a355c7de
AC
12036 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12037 b->exp to NULL after freeing so that error during re-parsing or
12038 evaluation of expressions associated with breakpoint don't
12039 eventually lead to re-freeing of storage.
12040 Committed by Andrew Cagney.
12041
63ff5125
AC
120422004-01-27 Andrew Cagney <cagney@redhat.com>
12043
12044 * source.c (ambiguous_line_spec): Delete undefined declaration.
12045 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12046 (m32r_set_server_address, m32r_set_download_path): Ditto.
12047 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12048
e142c38c
DJ
120492004-01-27 Daniel Jacobowitz <drow@mvista.com>
12050
12051 * dwarf2read.c: Update calls to changed and renamed functions, and
12052 references to moved variables.
12053
12054 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12055 language, language_defn, list_in_scope, and ftypes members.
12056 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12057 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12058 (baseaddr): Remove globals.
12059
12060 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12061 (set_cu_language, die_is_declaration, die_specification)
12062 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12063 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12064 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12065 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12066
12067 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12068 cu.list_in_scope. Don't initialize cu_header_offset.
12069 (add_partial_symbol): Add local baseaddr.
12070 (psymtab_to_symtab_1): Add local baseaddr. Use
12071 objfile->section_offsets for consistency. Don't initialize
12072 cu_header_offset; do initialize cu.header.offset and
12073 cu.list_in_scope.
12074 (read_file_scope, read_func_scope, read_lexical_block_scope)
12075 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12076
c6e06ede
MC
120772004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12078
fb328ecc 12079 * PROBLEMS: Add gdb/1516.
c6e06ede 12080
48184fd4
AC
120812003-12-29 Robert Millan <robertmh@gnu.org>
12082
12083 Patch committed by Andrw Cagney.
12084 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12085 * configure.tgt: Match knetbsd*-gnu.
12086
c1321b30
AC
120872004-01-26 Andrew Cagney <cagney@redhat.com>
12088
f3699be3
AC
12089 * breakpoint.c (catch_command_1): Delete #ifdef code.
12090 (catch_fork_command_1): Delete #ifdef wrapper.
12091 (catch_exec_command_1): Ditto.
12092 (catch_load_command_1): Ditto.
12093 (catch_unload_command_1): Ditto.
12094
c1321b30
AC
12095 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12096 (catch_breakpoint): Delete #if0ed function.
12097 (disable_catch_breakpoint): Ditto.
12098 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12099 (disable_catch, enable_catch, delete_catch): Ditto.
12100
b4501125
AC
121012004-01-26 Andrew Cagney <cagney@redhat.com>
12102
12103 * remote.c (echo_check, quit_flag): Delete variables.
12104 (cisco_kernel_mode): Delete variable.
12105 (minitelnet_return, tty_input, escape_count): Delete variables.
12106 (remote_cisco_mode): Delete variable.
12107 (remote_cisco_open, remote_cisco_close): Delete function.
12108 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12109 (init_remote_cisco_ops): Delete function.
12110 (_initialize_remote): Do not install "remote cisco" code.
12111 (read_frame): Delete cisco specific code.
12112 (remote_info_process): Delete function.
12113 (remote_wait): Delete cisco specific code.
12114 (remote_cisco_section_offsets): Delete function.
12115 (remote_cisco_objfile_relocate): Delete function.
12116 (remote_async_wait): Delete cisco specific code.
12117 (minitelnet, readtty, readsocket): Delete function.
12118
74055713
AC
121192004-01-26 Andrew Cagney <cagney@redhat.com>
12120
12121 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12122 comments mentioning extract_returned_value_address.
12123 * infcmd.c (print_return_value): Update. Add comments on
12124 extract_returned_value_address.
12125 * stack.c (return_command): Add comments on
12126 extract_returned_value_address.
12127 * values.c: Update comment.
12128 * m32r-tdep.c: Update comment.
12129 * sparc-tdep.c: Update comment.
12130 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12131 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12132 * sh64-tdep.c (sh64_gdbarch_init): Update.
12133 * sh-tdep.c (sh_gdbarch_init): Update.
12134 * s390-tdep.c (s390_gdbarch_init): Update.
12135 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12136 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12137 * m68k-tdep.c (m68k_gdbarch_init): Update.
12138 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12139 * m32r-tdep.c (m32r_gdbarch_init): Update.
12140 * ia64-tdep.c (ia64_gdbarch_init): Update.
12141 * h8300-tdep.c (h8300_gdbarch_init): Update.
12142 * frv-tdep.c (frv_gdbarch_init): Update.
12143 * arm-tdep.c (arm_gdbarch_init): Update.
12144 * alpha-tdep.c (alpha_gdbarch_init): Update.
12145
a67af2b9
AC
121462004-01-26 Andrew Cagney <cagney@redhat.com>
12147
12148 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12149 SYMBOL_LOCATION_FUNCS
12150 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12151 "struct symbol_ops".
12152 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12153 type to "struct symbol_ops".
12154 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12155 (struct symbol): Replace ".aux_value.loc.funcs" and
12156 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12157 (SYMBOL_OBJFILE): Delete macro.
12158 (SYMBOL_LOCATION_FUNCS): Delete macro.
12159 (SYMBOL_LOCATION_BATON): Update.
12160 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12161 intead of SYMBOL_LOCATION_FUNCS.
12162 * ax-gdb.c (gen_var_ref): Ditto.
12163 * printcmd.c (address_info): Ditto.
12164 * findvar.c (read_var_value): Ditto.
12165 (symbol_read_needs_frame): Ditto.
12166
c034e007
AC
121672004-01-26 Andrew Cagney <cagney@redhat.com>
12168
12169 * dwarf2read.c (read_func_scope): Document frame-base hack.
12170
bb472c1e
MK
121712004-01-25 Mark Kettenis <kettenis@gnu.org>
12172
12173 * infcmd.c (print_return_value): Plug memory leak; delete
12174 ui_stream object. Rename argument `structure_return' to
12175 `struct_return'.
12176
c8e737d5
MK
121772004-01-25 Mark Kettenis <kettenis@gnu.org>
12178
f941662f
MK
12179 * infcmd.c (print_return_value): Wrap long lines.
12180 (finish_command_continuation, finish_command): Remove unused
12181 variable `funcaddr'. Fix some coding-standards problems.
12182
c558d81a 12183 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 12184 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
12185 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12186 TDEP->fpregset to zero.
12187
bf1e5861 12188 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
12189 floating-point registers for traditional NetBSD core files.
12190 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12191 TDEP->sizeof_fpregset here.
12192
4c72d57a
MK
121932004-01-25 Mark Kettenis <kettenis@gnu.org>
12194
566626fa
MK
12195 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12196 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12197 function with code split out from
12198 sparc32nbsd_sigcontext_frame_cache.
12199 (sparc32nbsd_sigcontext_frame_cache): Use
12200 sparc32nbsd_sigcontext_saved_regs.
12201 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12202 OpenBSD.
12203 * sparcobsd-tdep.c: New file.
12204 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12205 (sparcobsd-tdep.o): New dependency.
12206 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12207 * config/sparc/obsd.mt: New file.
12208
4c72d57a
MK
12209 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12210 TDEP->fpregset to be initialized to enable core file register
12211 sets.
12212
7e5e9f88
MK
122132004-01-24 Mark Kettenis <kettenis@gnu.org>
12214
f0f207fd 12215 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
12216 Add opaque declarations.
12217 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12218 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12219 function with code split out from
12220 sparc64nbsd_sigcontext_frame_cache.
12221 (sparc64nbsd_sigcontext_frame_cache): Use
12222 sparc64nbsd_sigcontext_saved_regs.
12223 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12224 OpenBSD.
12225 * sparc64obsd-tdep.c: New file.
12226 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12227 (sparc64obsd-tdep.o): New dependency.
12228 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12229 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12230 * config/sparc/obsd64.mt: New file.
12231
690668cc
MK
12232 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12233 read the instruction at PC.
12234
7e5e9f88
MK
12235 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12236 value of GDB_OSABI_DEFAULT.
12237 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12238 instead of GDB_OSABI_NETBSD_AOUT.
12239
68b6dce9
NR
122402004-01-24 Nick Roberts <nick@nick.uklinux.net>
12241
12242 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12243 copyright.
12244
080ce8c0
AC
122452004-01-23 Andrew Cagney <cagney@redhat.com>
12246
12247 * printcmd.c (display_command): Replace tui_set_display call with
12248 tui_set_layout_for_display_command.
12249 * tui/tui.h (enum tui_win_type): Define.
12250 (tui_set_layout): Delete declaration.
12251 (tui_set_layout_for_display_command): Rename set_tui_layout.
12252 * tui/tui-data.h (enum tui_layout_type): Define.
12253 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12254 "tui.h".
12255 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12256 (tui_default_win_height): Rename tuiDefaultWinHeight.
12257 (tui_default_win_viewport_height): Rename
12258 tuiDefaultWinViewportHeight.
12259 (tui_set_layout): RenametuiSetLayout.
12260 * tui/tui-layout.c: Update references.
12261 * tui/tui.c: Update references.
12262 * tui/tui-disasm.c: Update references.
12263
b368761e
DC
122642004-01-23 David Carlton <carlton@kealia.com>
12265
12266 Partial workaround for PR c++/1511:
12267 * cp-namespace.c: Include frame.h.
12268 (cp_lookup_transparent_type): New
12269 (cp_lookup_transparent_type_loop): New.
12270 * cp-support.h: Declare cp_lookup_transparent_type.
12271 * symtab.c (basic_lookup_transparent_type): Renamed from
12272 lookup_transparent_type.
12273 (lookup_transparent_type): Replace old body by a call to
12274 current_language->la_lookup_transparent_type.
12275 * symtab.h: Update copyright. Declare
12276 basic_lookup_transparent_type.
12277 * language.h: Update copyright.
12278 (struct language_defn): Add la_lookup_transparent_type.
12279 * language.c: Update copyright.
12280 (unknown_language_defn): Add basic_lookup_transparent_type.
12281 (auto_language_defn): Add basic_lookup_transparent_type.
12282 (local_language_defn): Add basic_lookup_transparent_type.
12283 * ada-lang.c: Update copyright.
12284 (ada_language_defn): Add basic_lookup_transparent_type.
12285 * c-lang.c: Update copyright.
12286 (c_language_defn): Add basic_lookup_transparent_type.
12287 (cplus_language_defn): Add basic_lookup_transparent_type.
12288 (asm_language_defn): Add basic_lookup_transparent_type.
12289 (minimal_language_defn): Add basic_lookup_transparent_type.
12290 * f-lang.c: Update copyright.
12291 (f_language_defn): Add basic_lookup_transparent_type.
12292 * jv-lang.c: Update copyright.
12293 (java_language_defn): Add basic_lookup_transparent_type.
12294 * m2-lang.c: Update copyright.
12295 (m2_language_defn): Add basic_lookup_transparent_type.
12296 * objc-lang.c: Update copyright.
12297 (objc_language_defn): Add basic_lookup_transparent_type.
12298 * p-lang.c: Update copyright.
12299 (p_language_defn): Add basic_lookup_transparent_type.
12300 * scm-lang.c: Update copyright.
12301 (scm_language_defn): Add basic_lookup_transparent_type.
12302 * Makefile.in (cp-namespace.o): Depend on frame.h.
12303
fdde2d81
DC
123042004-01-23 David Carlton <carlton@kealia.com>
12305
12306 Patch for PR c++/1520:
12307 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12308 properly if we have a specification die.
12309 (determine_prefix_aux): Rename from determine_prefix.
12310 (determine_prefix): Like the old determine_prefix, but never
12311 returns NULL.
12312
5b828b6b
TR
123132004-01-23 Theodore A. Roth <troth@openavr.org>
12314
12315 * avr-tdep.c: Update copyright.
12316 (avr_iaddr_p): Delete unused function.
12317 (avr_saddr_p): Delete unused function.
12318
a1b8c067
DC
123192004-01-23 David Carlton <carlton@kealia.com>
12320
12321 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12322 Fix for PR symtab/1534.
12323
f2cab569
MK
123242004-01-23 Mark Kettenis <kettenis@gnu.org>
12325
12326 * NEWS (New native configurations): Mention OpenBSD/sparc and
12327 OpenBSD/sparc64.
12328 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12329 * configure.host: Likewise.
12330 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12331 handler for OpenBSD.
12332 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12333
642d8300
MK
123342004-01-22 Mark Kettenis <kettenis@gnu.org>
12335
89aac506
MK
12336 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12337 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12338
36662fde
MK
12339 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12340 * cli/cli-cmds.c (shell_escape): Likewise.
12341
642d8300
MK
12342 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12343 OpenBSD .note.openbsd.ident sections.
12344
fae299cd
DC
123452004-01-22 David Carlton <carlton@kealia.com>
12346
12347 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12348 get_scope_pc_bounds.
12349 (read_file_scope): Ditto.
12350 (get_scope_pc_bounds): New function, produced by extracting code
12351 from the above two functions, consolidating it, and adding support
12352 for DW_TAG_namespace.
12353
a49d618c
MK
123542004-01-22 Mark Kettenis <kettenis@gnu.org>
12355
12356 * osabi.c (MAX_NOTESZ): New define.
12357 (check_note): New function.
12358 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12359 check_note.
12360
fe61caab
RM
123612004-01-21 Roland McGrath <roland@redhat.com>
12362
12363 * MAINTAINERS (write after approval): Add myself.
12364
ec145965
EZ
123652004-01-21 Eli Zaretskii <eliz@gnu.org>
12366
12367 * utils.c (init_page_info): Move declarations of `rows' and
12368 `cols' before the __GO32__-specific code. Move the closing brace
12369 outside the #ifdef __GO32__..#endif block.
12370 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12371
877522db
PB
123722004-01-21 Paul Brook <paul@codesourcery.com>
12373
12374 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12375 BPSTAT_WHAT_CHECK_SHLIBS.
12376
dbf5be1c
PB
123772004-01-21 Paul Brook <paul@codesourcery.com>
12378
12379 * MAINTAINERS: Add myself to write-after-approval.
12380
81f08b92
AC
123812004-01-20 Andrew Cagney <cagney@redhat.com>
12382
5a1efed7
AC
12383 * ax-gdb.c (print_axs_value): Delete unused function.
12384 * jv-lang.c (java_lookup_type): Delete unused function.
12385 * cli/cli-dump.c (dump_filetype): Delete unused function.
12386 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12387 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12388 (mips_getstring): Delete unused function.
12389 (pmon_insert_breakpoint): Delete #if0ed function.
12390 (PMON_MAX_BP): Delete #if0ed MACRO.
12391 (mips_pmon_bp_info): Delete #if0ed variable.
12392 (pmon_remove_breakpoint): Delete #if0ed function.
12393 * monitor.c (monitor_write_even_block): Delete unused function.
12394 (monitor_write_memory_block): Delete #if0ed code.
12395 * dink32-rom.c (dink32_load): Delete unused function.
12396 (_initialize_dink32_rom): Delete #if0ed code.
12397 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12398
b0a30fce
AC
12399 * tui/tui-command.c: Update references.
12400 * tui/tui-io.c: Update references.
12401 * tui/tui-command.h: Update copyright.
12402 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12403
81f08b92
AC
12404 * source.c (ambiguous_line_spec): Delete never-defined function.
12405 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12406 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12407 * cli/cli-cmds.c (validate_comname): Ditto.
12408
65f05602
AC
12409 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12410 "tui-data.h".
12411 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12412 (tui_show_disassem): Rename tuiShowDisassem.
12413 (tui_show_disassem_and_update_source): Rename
12414 tuiVerticalDisassemScroll.
12415 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12416 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12417 * tui/tui.h: Update copyright.
12418 (enum tui_status): Define.
12419 * tui/tui-data.h (enum tui_scroll_direction): Define.
12420 * tui/tui-disasm.c: Update copyright. Update references.
12421 * tui/tui-winsource.c: Update copyright. Update references.
12422 * tui/tui-win.c: Update references.
12423 * tui/tui-layout.c: Update references.
12424
6bb0384f
AC
124252004-01-20 Andrew Cagney <cagney@redhat.com>
12426
12427 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12428 sym2 to start of block.
12429
9175c9a3
MC
124302004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12431
12432 * MAINTAINERS: Delete mmalloc.
12433 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12434 * NEWS: Mention removal of --with-malloc.
12435 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12436 * config.in: Regenerate.
12437 * configure: Regenerate.
6bb0384f
AC
12438 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12439 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
12440 * gdbinit.in: Remove mmalloc.
12441 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12442 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12443 * config/i386/go32.mh: Likewise.
12444 * config/i386/interix.mh: Likewise.
12445 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12446
4fcef00a
JJ
124472004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12448
12449 * linespec.c (decode_variable, symtab_from_filename): Call
12450 error_silent with error message instead of throwing an exception
12451 directly.
12452 * defs.h (error_silent, error_output_message): Add prototypes.
12453 (catch_exceptions_with_msg): Ditto.
12454 * utils.c (error_silent, error_output_message): New functions.
12455 * top.c (catch_exceptions_with_msg): New function.
12456
8e94b928
NR
124572004-01-20 Nick Roberts <nick@nick.uklinux.net>
12458
12459 * mi/mi-cmds.h (enum print_values): Add definition.
12460
12461 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12462 type and value for simple data types and just the name and type
12463 for complex ones, if required.
12464
12465 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12466 children, if required.
12467
a02d6af8
KB
124682004-01-19 Kevin Buettner <kevinb@redhat.com>
12469
12470 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12471 unused declarations.
12472
78a4a9b9
AC
124732004-01-19 Andrew Cagney <cagney@redhat.com>
12474
12475 * top.h (mapped_symbol_files): Delete declaration.
12476 * main.c (captured_main): Delete option "m" and "mapped".
12477 * objfiles.c (mapped_symbol_files): Delete variable.
12478 * symfile.c (symbol_file_command): Delete mmap code.
12479 (symbol_file_add_with_addrs_or_offsets): Ditto.
12480 (add_symbol_file_command, reread_separate_symbols): Ditto.
12481 * objfiles.h (OBJF_MAPPED): Delete.
12482 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12483 (free_objfile) [USE_MMALLOC]: Ditto.
12484 (open_existing_mapped_file): Delete function.
12485 (open_mapped_file): Delete function.
12486 (map_to_file): Delete function.
12487
2dbd5e30
KB
124882004-01-19 Kevin Buettner <kevinb@redhat.com>
12489
12490 * infrun.c (step_into_function): Account for possible breakpoint
12491 adjustment when computing ``stop_func_start''.
12492
437b434f
KB
124932004-01-19 Kevin Buettner <kevinb@redhat.com>
12494
12495 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12496 the region size against the size of a pointer, not the size of
12497 a register as given by DEPRECATED_REGISTER_SIZE.
12498
55fb0713
AC
124992004-01-19 Andrew Cagney <cagney@redhat.com>
12500
12501 * tui/tui-regs.h: Include "tui-data.h".
12502 (tuiFirstRegElementNoInLine): Delete declaration.
12503 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12504 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12505 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12506 (tui_calculate_regs_column_count): Rename
12507 tuiCalculateRegsColumnCount.
12508 (tui_check_register_values): Rename tuiCheckRegisterValues.
12509 (tui_show_registers): Rename tuiShowRegisters.
12510 (tui_display_registers_from_line): Rename
12511 tuiDisplayRegistersFromLine.
12512 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12513 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12514 (tui_first_reg_element_no_inline): Rename
12515 tuiFirstRegElementNoInLine.
12516 * tui/tui-data.h: Update copyright.
12517 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12518 * tui/tui-windata.c: Update copyright, update references.
12519 * tui/tui-regs.c: Update copyright, update references.
12520 * tui/tui-win.c: Update copyright, update references.
12521 * tui/tui-layout.c: Update copyright, update references.
fe61caab 12522
cebe9500
AC
125232004-01-18 Andrew Cagney <cagney@redhat.com>
12524
bcdf1568
AC
12525 * tui/tui-io.c: Update copyright.
12526 (key_is_end_sequence, key_is_backspace): New functions.
12527 (key_is_command_char, key_is_start_sequence): New function.
12528 (tui_getc): Update references.
12529 * tui/tui-io.h: Update copyright.
12530 (m_tuiStartNewLine): Delete macro.
12531 (m_isBackspace, m_isDeleteChar): Delete macros.
12532 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12533 (m_isNextPage, m_isPrevPage): Delete macros.
12534 (m_isLeftArrow, m_isRightArrow): Delete macros.
12535 (m_isXdbStyleCommandChar): Delete macro.
12536 (key_is_start_sequence): Declare, replace m_isStartSequence.
12537 (key_is_end_sequence): Declare, replace m_isEndSequence.
12538 (key_is_backspace): Declare ,replace m_isBackspace.
12539 (key_is_command_char): Declare, replace m_isCommandChar.
12540 * tui/tui-command.c: Update copyright.
12541 (tuiDispatchCtrlChar): Update references.
12542
130d87e6
AC
12543 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12544 tuiSourceWin.h.
12545
d7b2e967
AC
12546 * tui/tui-command.c: Rename tui/tuiCommand.c.
12547 * tui/tui-command.h: Rename tui/tuiCommand.h.
12548 * tui/tui-data.c: Rename tui/tuiData.c.
12549 * tui/tui-data.h: Rename tui/tuiData.h.
12550 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12551 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12552 * tui/tui-io.c: Rename tui/tuiIO.c.
12553 * tui/tui-io.h: Rename tui/tuiIO.h.
12554 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12555 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12556 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12557 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12558 * tui/tui-source.c: Rename tui/tuiSource.c.
12559 * tui/tui-source.h: Rename tui/tuiSource.h.
12560 * tui/tui-stack.c: Rename tui/tuiStack.c.
12561 * tui/tui-stack.h: Rename tui/tuiStack.h.
12562 * tui/tui-win.c: Rename tui/tuiWin.c.
12563 * tui/tui-win.h: Rename tui/tuiWin.h.
12564 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12565 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12566 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12567 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12568 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12569 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12570 * tui/tui-file.c: Update includes.
12571 * tui/tui-hooks.c: Update includes.
12572 * tui/tui-interp.c: Update includes.
12573 * tui/tui.c: Update includes.
12574 * Makefile.in: Update all tui/ dependencies.
12575 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12576
b2100910
AC
12577 * Makefile.in: Update copyright. Update dependencies.
12578
cebe9500
AC
12579 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12580 problem.
12581
c6f0559b
AC
125822004-01-18 Andrew Cagney <cagney@redhat.com>
12583
43e9390b
AC
12584 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12585 instead of register_gdbarch_init.
12586
c6f0559b
AC
12587 * remote-sds.c (tohex): Delete unused function. Update copyright.
12588 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12589 * v850-tdep.c (v850_register_virtual_size): Ditto.
12590 * target.c (normal_target_post_startup_inferior): Ditto.
12591 * source.c (ambiguous_line_spec): Ditto.
12592 * remote.c (adapt_remote_get_threadinfo): Ditto.
12593 * mi/mi-out.c (out_field_fmt): Ditto.
12594 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12595 (output_control_change_notification): Ditto.
12596 * m68k-tdep.c (m68k_register_byte): Ditto.
12597 (m68k_remote_breakpoint_from_pc): Ditto.
12598 * ui-out.c (init_ui_out_state): Delete unused declaration.
12599 * stabsread.c (search_value): Ditto.
12600 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12601 * maint.c (print_section_table): Ditto.
12602 * infrun.c (set_follow_fork_mode_command): Ditto.
12603
a8504492
MK
126042004-01-18 Mark Kettenis <kettenis@gnu.org>
12605
12606 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12607 DW_CFA_def_cfa_exporession. Add support for
12608 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12609 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12610
0bd8997e
AC
126112004-01-18 Andrew Cagney <cagney@redhat.com>
12612
12613 * ocd.c: Update copyright.
12614 (bdm_read_register_command): Delete unused function.
12615 (_initialize_remote_ocd): Delete commented out reference.
12616 (get_quoted_char, reset_packet): Delete #if0ed function.
12617 (output_packet, put_quoted_char): Delete #if0ed function.
12618 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12619 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12620 (BDM_BREAKPOINT): Delete #if0ed macro.
12621 (remote_timeout): Delete #if0ed variable.
12622
31bb40e4
MK
126232004-01-18 Mark Kettenis <kettenis@gnu.org>
12624
12625 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12626 (core-sol2.o): Remove dependency.
12627 * core-sol2.c: Remove file.
12628
887432a5
AC
126292004-01-17 Andrew Cagney <cagney@redhat.com>
12630
12631 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12632 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12633 enums.
12634
29182b13
DJ
126352004-01-17 Daniel Jacobowitz <drow@mvista.com>
12636
12637 * remote.c: Update copyright years.
12638
2963ee1d
DJ
126392004-01-17 Daniel Jacobowitz <drow@mvista.com>
12640
12641 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12642
79d45cd4
AC
126432004-01-17 Andrew Cagney <cagney@redhat.com>
12644
ee300cd4
AC
12645 * mdebugread.c: Update copyright.
12646 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12647 (parse_type, parse_procedure): Ditto.
12648 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12649
fcacc9c2
AC
12650 * cris-tdep.c (cris_store_struct_return): Put back accidently
12651 deleted function.
12652
79d45cd4
AC
12653 * gdbarch.sh: Update copyright year.
12654 * gdbarch.h, gdbarch.c: Re-generate.
12655
b263358a
DJ
126562004-01-17 Daniel Jacobowitz <drow@mvista.com>
12657
12658 Suggested by George Anzinger.
12659 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12660 correct stack offset. Include unknown opcode numbers in the error
12661 message.
12662
931aecf5
AC
126632004-01-17 Andrew Cagney <cagney@redhat.com>
12664
12665 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12666 extract_struct_value_address, i386 does not set it.
12667 * sparc64-tdep.c (sparc64_init_abi): Do not set
12668 extract_struct_value_address, never called.
12669 (sparc64_extract_struct_value_address): Delete function.
12670 * m68hc11-tdep.c: Update copyright.
12671 (m68hc11_gdbarch_init): Delete redundant assignment of
12672 extract_struct_value_address.
12673 * i386-tdep.c: Update copyright.
12674 (i386_gdbarch_init): Do not set extract_struct_value_address,
12675 never called.
12676 (i386_extract_struct_value_address): Delete function.
12677 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12678 extract_struct_value_address, never called.
12679 (sparc32_extract_struct_value_address): #if 0 function. Add
12680 comments explaining its future.
12681
756fe439
DJ
126822004-01-17 Daniel Jacobowitz <drow@mvista.com>
12683
12684 * arm-tdep.c (arm_write_pc): New function.
12685 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12686
e74f0f02
DJ
126872004-01-17 Daniel Jacobowitz <drow@mvista.com>
12688
12689 * breakpoint.c (must_shift_inst_regs): Delete.
12690 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12691 and SHIFT_INST_REGS.
12692 * infcmd.c (step_1, step_1_continuation): Delete references to
12693 SHIFT_INST_REGS.
12694 * infrun.c (keep_going): Likewise.
12695 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12696 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12697
b6cb9035
AC
126982004-01-17 Andrew Cagney <cagney@redhat.com>
12699
444a1e2e
AC
12700 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12701 * gdbarch.h, gdbarch.c: Re-generate.
12702 * infcmd.c (print_return_value): Delete reference to
12703 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12704
def7e6ed
AC
12705 * cris-tdep.c (cris_gdbarch_init): Do not set
12706 deprecated_extract_struct_value_address.
12707
07be497a
AC
12708 * xstormy16-tdep.c: Update copyright.
12709 (xstormy16_extract_struct_value_address): Update to current
12710 extract struct value address interface.
12711 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12712 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12713 current extract struct value address interface.
12714 (sh64_gdbarch_init): Set extract_struct_value_address.
12715
6b4d5c91
AC
12716 * cris-tdep.c: Update copyright.
12717 (cris_extract_struct_value_address): Delete function.
12718 (struct_return_address): Delete variable.
12719 (cris_store_struct_return): Do not set struct_return_address.
12720
464e0365
AC
12721 * mcore-tdep.c: Update copyright.
12722 (mcore_extract_struct_value_address): Delete function. Update
12723 comments.
12724 (mcore_gdbarch_init): Update.
12725 * mn10300-tdep.c: Update copyright.
12726 (mn10300_extract_struct_value_address): Delete function.
12727 (mn10300_gdbarch_init): Update.
12728 * v850-tdep.c: Update copyright.
12729 (v850_extract_struct_value_address): Delete.
12730 (v850_gdbarch_init): Update.
12731 * ns32k-tdep.c: Update copyright.
12732 (ns32k_extract_struct_value_address): Delete.
12733 (ns32k_gdbarch_init): Update.
12734 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12735 (hppa_gdbarch_init): Update.
12736 * vax-tdep.c: Update copyright.
12737 (vax_extract_struct_value_address): Delete.
12738 (vax_gdbarch_init): Update.
12739
afb18d0f
AC
12740 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12741 * gdbarch.h, gdbarch.c: Re-generate.
12742 * procfs.c (procfs_fetch_registers): Delete reference to
12743 DEPRECATED_NPC_REGNUM.
12744 (procfs_store_registers): Ditto.
12745 * regcache.c (generic_target_write_pc): Simplify.
12746 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12747
a698f53e
AC
12748 * core-sol2.c (fetch_core_registers): Replace
12749 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12750
adc11376
AC
12751 * hppa-tdep.c: Update copyright year.
12752 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12753 NPC_REGNUM.
12754 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12755
b6cb9035
AC
12756 * mips-tdep.c (mips_write_pc): New function.
12757 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12758 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12759 (mips_find_saved_regs, mips_software_single_step: Ditto.
12760 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12761 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12762
6d82d43b
AC
127632004-01-17 Andrew Cagney <cagney@redhat.com>
12764
12765 * mips-tdep.c: Re-indent. Group functions by ABI.
12766
71bd6bd4
AC
127672004-01-17 Andrew Cagney <cagney@redhat.com>
12768
12769 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12770 * gdbarch.c: Re-generate.
12771 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12772 DECR_PC_AFTER_BREAK to zero.
12773 * vax-tdep.c (vax_gdbarch_init): Ditto.
12774 * v850-tdep.c (v850_gdbarch_init): Ditto.
12775 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12776 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12777 * sh-tdep.c (sh_gdbarch_init): Ditto.
12778 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12779 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12780 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12781 * mips-tdep.c (mips_gdbarch_init): Ditto.
12782 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12783 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12784 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12785 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12786 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12787 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12788 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12789 * frv-tdep.c (frv_gdbarch_init): Ditto.
12790 * cris-tdep.c (cris_gdbarch_init): Ditto.
12791 * avr-tdep.c (avr_gdbarch_init): Ditto.
12792 * arm-tdep.c (arm_gdbarch_init): Ditto.
12793 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12794
a02abb62
JB
127952004-01-17 J. Brobecker <brobecker@gnat.com>
12796
12797 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12798 Delete, no longer used.
12799 (read_subrange_type): New function, mostly extracted from
12800 read_array_type().
12801 (read_array_type): Replace extracted code by call to
12802 read_subrange_type().
12803 (dwarf2_get_attr_constant_value): New function.
12804 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12805 (add_partial_symbol): Likewise.
12806 (process_die): Likewise.
12807 (new_symbol): Likewise.
12808 (read_type_die): Likewise.
12809
cf5b2f1b
AC
128102004-01-16 Andrew Cagney <cagney@redhat.com>
12811
12812 * symfile.c: Update copyright year.
12813 (compare_symbols): Delete unused function.
12814 * stabsread.c: Update copyright year.
12815 (lrs_general_complaint): Delete unused function.
12816 (ref_search_value): Ditto.
12817 (get_substring): Delete declaration.
12818 * sh64-tdep.c: Update copyright year.
12819 (sh64_get_gdb_regnum): Delete unused function.
12820 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12821 Delete unused function.
12822
d33b9831
MK
128232004-01-17 Mark Kettenis <kettenis@gnu.org>
12824
12825 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12826 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12827
7aea86e6
AC
128282004-01-16 Andrew Cagney <cagney@redhat.com>
12829
12830 Changes from Peter Schauer.
12831 * rs6000-tdep.c: Update copyright year.
12832 (rs6000_push_dummy_call): Update the stack pointer before
12833 accessing the corresponding stack region.
12834 * rs6000-nat.c: Update copyright year.
12835 (set_host_arch): Set "info.abfd" to "exec_bfd".
12836
26b0da32
MK
128372004-01-15 Mark Kettenis <kettenis@gnu.org>
12838
12839 * blockframe.c: Update copyright year.
12840 (inside_entry_func): Don't treat a zero PC specially.
12841
86fbe6cc
EZ
128422004-01-14 Elena Zannoni <ezannoni@redhat.com>
12843
12844 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12845 variable.
12846 (gcore_create_callback): Ditto. Skip any memory segment that has
12847 no permissions set.
12848
63d06c5c
DC
128492004-01-14 David Carlton <carlton@kealia.com>
12850
12851 Change symbols for C++ nested types to contain the fully qualified
12852 name, if possible. (At least in the DWARF-2 case.) Partial fix
12853 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12854 c++/895.
12855 * c-exp.y (qualified_type): Handle types nested within classes.
12856 * cp-namespace.c: Update comments.
12857 (cp_set_block_scope): Delete #if 0.
12858 (cp_lookup_nested_type): Handle types nested within classes.
12859 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12860 when appropriate.
12861 (add_partial_symbol): Add the name of the enclosing namespace to
12862 types.
12863 (pdi_needs_namespace): New.
12864 (add_partial_namespace): Tweak comment.
12865 (add_partial_structure): New.
12866 (psymtab_to_symtab_1): Initialize processing_current_prefix
12867 here...
12868 (process_die): instead of here.
12869 (read_structure_scope): Try to figure out the name of the class or
12870 namespace that the structure might be defined within.
12871 (read_enumeration): Generate fully-qualified names, if possible.
12872 (read_namespace): Don't set name to NULL.
12873 (die_specification): New.
12874 (new_symbol): Generate fully-qualified names for types.
12875 (read_type_die): Determine appropriate prefix.
12876 (determine_prefix): New.
12877 (typename_concat): New.
12878 (class_name): New.
12879 * valops.c (value_aggregate_elt): Pass NOSIDE to
12880 value_struct_elt_for_reference.
12881 (value_struct_elt_for_reference): Make static, add NOSIDE
12882 parameter, call value_maybe_namespace_elt as a last resort.
12883 (value_namespace_elt): Break out code into
12884 value_maybe_namespace_elt.
12885 (value_maybe_namespace_elt): New.
12886
87783b8b
AC
128872004-01-12 Andrew Cagney <cagney@redhat.com>
12888
12889 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12890 cooked floating-point registers.
12891 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12892 and value_to_register.
12893
6503b91e
AC
128942004-01-13 Andrew Cagney <cagney@redhat.com>
12895
12896 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12897 * gdbarch.c: Re-generate.
12898 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12899 FUNCTION_START_OFFSET.
12900 * v850-tdep.c (v850_gdbarch_init): Ditto.
12901 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12902 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12903 * sh-tdep.c (sh_gdbarch_init): Ditto.
12904 * s390-tdep.c (s390_gdbarch_init): Ditto.
12905 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12906 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12907 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12908 * mips-tdep.c (mips_gdbarch_init): Ditto.
12909 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12910 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12911 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12912 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12913 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12914 * i386-tdep.c (i386_gdbarch_init): Ditto.
12915 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12916 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12917 * frv-tdep.c (frv_gdbarch_init): Ditto.
12918 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12919 * cris-tdep.c (cris_gdbarch_init): Ditto.
12920 * avr-tdep.c (avr_gdbarch_init): Ditto.
12921 * arm-tdep.c (arm_gdbarch_init): Ditto.
12922 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12923
ea1dd7bc
DJ
129242004-01-13 Daniel Jacobowitz <drow@mvista.com>
12925
12926 * infrun.c (follow_fork_mode_ask): Remove.
12927 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12928 (follow_fork): Simplify and remove internal error for
12929 follow_fork_mode_ask.
12930 (_initialize_infrun): Update "set follow-fork-mode" help text.
12931
0f0cffd2
AC
129322004-01-13 Andrew Cagney <cagney@redhat.com>
12933
12934 * configure.in: Update copyright year.
12935 (build_warnings): Add -Wunused-label.
12936 * configure: Re-generate.
12937
de38af99
AC
129382004-01-12 Andrew Cagney <cagney@redhat.com>
12939
954a7fba
AC
12940 * exec.h (exec_ops): Make "extern".
12941
de38af99
AC
12942 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12943 the function is void.
12944 (mips_pseudo_register_write): Ditto.
12945
1a111ce3
AC
129462004-01-12 Andrew Cagney <cagney@redhat.com>
12947
12948 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12949 call. Never defined.
12950 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12951 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12952 (struct sparc_gregset, struct regcache): Ditto.
12953 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12954
48efe704
AC
129552004-01-12 Andrew Cagney <cagney@redhat.com>
12956
12957 * mi/ChangeLog: Delete file. Renamed to ...
12958 * mi/ChangeLog-1999-2003: New file.
12959 * tui/ChangeLog: Delete file. Renamed to ...
12960 * tui/ChangeLog-1998-2003: New file.
fe61caab 12961
a54124c5
MK
129622004-01-11 Mark Kettenis <kettenis@gnu.org>
12963
2ca62865
MK
12964 * sparc64nbsd-tdep.c: Include "regset.h".
12965 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12966 Remove variables.
12967 (fetch_core_registers): Remove function.
12968 (sparc64nbsd_core_fns): Remove variable.
12969 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12970 functions.
12971 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12972 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12973 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12974
ca9d58e9
MK
12975 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12976 sparc_extract_struct_value_address.
12977 (sparc32_gdbarch_init): Set extract_struct_value_address.
12978 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12979 function.
12980 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12981 return_value_on_stack.
12982
3cc87ec0
MK
12983 * NEWS: Mention that %cs and %ss have been added to the AMD64
12984 configurations
12985
5bf00f29
MK
12986 * frame.c: Update copyright year.
12987 (get_prev_frame): Improve comment.
12988
4f7ec84e
MK
12989 * sparc64fbsd-tdep.c: Include "regset.h".
12990 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12991 Remove variables.
12992 (fetch_core_registers): Remove function.
12993 (sparc64fbsd_core_fns): Remove variable.
12994 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12995 functions.
12996 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12997 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 12998 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 12999
4e7b0cd3
MK
13000 * sparcnbsd-tdep.c: Include "regset.h".
13001 (fetch_core_registers): Remove function.
13002 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13003 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13004 functions.
13005 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13006 TDEP->fpregset.
46b58ce9 13007 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 13008
a54124c5
MK
13009 * sparc-tdep.h (struct regset): Provide opaque declaration.
13010 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13011 fpregset and sizeof_fpregset members.
13012 * sparc-tdep.c (struct regset): Provide opaque declaration.
13013 (sparc_regset_from_core_section): New function.
13014 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13015 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13016 Set regset_from_core_section when appropriate.
13017
29ff87c5
MK
130182004-01-10 Mark Kettenis <kettenis@gnu.org>
13019
79b1ab3d
MK
13020 * x86-64-tdep.c (amd64_non_pod_p): New function.
13021 (amd64_classify_aggregate): Return class memory for non-POD
13022 C++ structure types.
13023
6470d250
MK
13024 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13025 argument. Use it to reserve a register if necessary.
13026 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13027 amd64_push_arguments.
13028
562c50c2
MK
13029 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13030
af233647
MK
13031 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13032 register numbers in comments.
13033 * x86-64-tdep.h: Update copyright year.
13034 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13035 Adjust for addition of %cs and %ss.
13036 * amd64fbsd-nat.c: Update copyright year.
13037 (reg_offset): Add register offsets for %cs and %ss.
13038 * amd64fbsd-tdep.c: Update copyright year.
13039 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13040 (amd64fbsd_sc_reg_offset): Likewise.
13041 * x86-64-linux-nat.c: Update copyright year.
13042 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13043 and %ss.
13044 * amd64nbsd-nat.c: Update copyright year.
13045 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13046 * amd64nbsd-tdep.c: Update copyright year.
13047 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13048 * x86-64-linux-tdep.c: Update copyright year.
13049 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13050 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13051 * regformats/reg-x86-64.dat: Add %cs and %ss.
13052
29ff87c5
MK
13053 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13054 variables to prevent long lines. Update comments to reflect
13055 reality.
13056
38d518c9
EZ
130572004-01-09 David Carlton <carlton@kealia.com>
13058
13059 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13060 * dwarf2read.c (read_namespace): Pull out name-generating code
13061 into namespace_name. Rename previous_namespace to previous_prefix
13062 and processing_current_namespace to processing_current_prefix..
13063 (namespace_name): New function.
13064 (add_partial_symbol): Substitute uses of pdi->name with
13065 actual_name.
13066 * cp-support.h: Rename processing_current_namespace to
13067 processing_current_prefix.
13068 Update copyright year.
13069 * cp-namespace.c: Rename processing_current_namespace to
13070 processing_current_prefix.
13071 Update copyright year.
fe61caab 13072
1e4728e7
AC
130732004-01-09 Andrew Cagney <cagney@redhat.com>
13074
13075 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13076
c77c642a
MK
130772004-01-09 Mark Kettenis <kettenis@gnu.org>
13078
13079 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13080 complaining.
13081 (process_one_symbol): Deal with N_PATCH stabs.
13082
b44e9041
EZ
130832004-01-09 Elena Zannoni <ezannoni@redhat.com>
13084
13085 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13086 ifdeffed code.
13087 Update copyright year.
38d518c9 13088
eccfb640
MC
130892004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13090
13091 * config/pa/tm-hppa.h: Update extern declarations for
13092 hppa32_hpux_frame_saved_pc_in_sigtramp,
13093 hppa32_hpux_frame_base_before_sigtramp, and
13094 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13095
848c5feb
MC
130962004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13097
13098 * config/pa/tm-hppah.h: Update copyright years.
13099
3cc5d663
AC
131002004-01-08 Andrew Cagney <cagney@redhat.com>
13101
13102 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13103 (mips_o32_reg_struct_has_addr): Delete function.
13104 (mips_gdbarch_init): Update.
13105 (mips_extract_struct_value_address): Delete function.
13106
bfec0b41
JJ
131072004-01-08 David Mosberger <davidm@hpl.hp.com>
13108
13109 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13110 reality.
13111
16e109ca
AC
131122004-01-07 Andrew Cagney <cagney@redhat.com>
13113
6214a8a1
AC
13114 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13115 architecture's elf flags (when available).
13116
8d5838b5
AC
13117 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13118 FPU to the start, check the MIPS FPU when looking for an old
13119 architecture.
13120 (set_mipsfpu_single_command): Update the architecture.
13121 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13122
480d3dd2
AC
13123 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13124 (mips_mask_address_p): Add "tdep" parameter.
13125 (show_mask_address, mips_addr_bits_remove): Update.
13126 (mips_dump_tdep): Update.
13127 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13128 (MIPS_STACK_ARGSIZE): Delete macro.
13129 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13130 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13131 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13132 (mips_dump_tdep): Update.
13133 (MIPS_SAVED_REGSIZE): Delete macro.
13134 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13135 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13136 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13137 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13138 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13139 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13140 (mips_pop_frame, return_value_location): Update.
13141 (mips_n32n64_return_value, mips_dump_tdep): Update.
13142
ec03c1ac
AC
13143 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13144 MIPS ABI.
13145
16e109ca
AC
13146 * mips-tdep.c: Update copyright.
13147 (mips_gdbarch_init): Merge two code blocks handling the register
13148 name and number layout.
13149
15255275
MS
131502004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13151
13152 * tracepoint.c (validate_actionline): Fix segv at EOF
13153
9f9057da
MC
131542004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13155
13156 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13157 properly for static fields.
13158
0127c0d3 131592004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 13160 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
13161
13162 * disasm.c: Update copyright to include 2004.
13163 (do_mixed_source_and_assembly): For uiout asm list
13164 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 13165 NULL and do so prior to loop. Only reset when we close off
0127c0d3 13166 the tuple/list. Move check for whether to close off the
fe61caab 13167 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
13168 on each loop iteration.
13169
5269965e
AC
131702004-01-05 Andrew Cagney <cagney@redhat.com>
13171
54f1137d
AC
13172 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13173 should be a switch case and not a label.
13174 * mips-tdep.c (mips32_next_pc): Delete unused labels
13175 "greater_equal_branch" and "less_zero_branch".
13176 * jv-valprint.c (java_print_value_fields): Delete unused label
13177 "flush_it".
13178
5269965e
AC
13179 * target.c (unpush_target): Only close a target that is in the
13180 target stack.
13181
dbc22fa1
MK
131822004-01-05 Mark Kettenis <kettenis@gnu.org>
13183
9515395e
MK
13184 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13185 address from [sp + 64] instead of %o2.
13186
dbc22fa1
MK
13187 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13188 fixes PR backtrace/1476.
13189
5439edaa
AC
131902004-01-05 Andrew Cagney <cagney@redhat.com>
13191
13192 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13193 move to start of file.
13194 * i386-tdep.h (struct regcache): Add opaque declaration.
13195 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13196 declaration.
13197 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13198 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13199 * win32-nat.c (fake_create_process): Use ISO C style definition.
13200 * stabsread.c (define_symbol): Delete #ifndef
13201 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13202 stabs_argument_has_addr call, macro never defined.
13203
19061abe
MC
132042004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13205
13206 * op50-rom.c: Delete.
13207 * w89k-rom.c: Delete.
13208 * Makefile.in: Remove references.
13209
e53bef9f
MK
132102004-01-04 Mark Kettenis <kettenis@gnu.org>
13211
13212 * x86-64-tdep.c: Update copyright year.
13213 (struct amd64_register_info): Rename from x86_64_register_info.
13214 (amd64_register_info): Rename from x86_64_register_info.
13215 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13216 (amd64_register_name): Rename from x86_64_register_name.
13217 (amd64_register_type): Rename from x86_64_register_type.
13218 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13219 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13220 (amd64_dwarf_reg_to_regnum): Rename from
13221 x86_64_dwarf_reg_to_regnum.
13222 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13223 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13224 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13225 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13226 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13227 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13228 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13229 (amd64_frame_cache): Rename from x86_64_frame_cache.
13230 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13231 (amd64_frame_prev_register): Rename from
13232 x86_64_frame_prev_register.
13233 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13234 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13235 (amd64_sigtramp_frame_cache): Rename from
13236 x86_64_sigtramp_frame_cache.
13237 (amd64_sigtramp_frame_prev_register): Rename from
13238 x86_64_sigtramp_frame_prev_register.
13239 (amd64_sigtramp_frame_unwind): Rename from
13240 x86_64_sigtramp_frame_unwind.
13241 (amd64_sigtramp_frame_sniffer): Rename from
13242 x86_64_sigtramp_frame_sniffer.
13243 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13244 (amd64_frame_base): Rename from x86_64_frame_base.
13245 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13246 (amd64_frame_align): Rename from x86_64_frame_align.
13247 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13248 (amd64_regset_from_core_section): Rename from
13249 x86_64_regset_from_core_section.
13250 (x86_64_init_abi): Update comments.
13251
fca6aa58
NR
132522004-01-04 Nick Roberts <nick@nick.uklinux.net>
13253
13254 * MAINTAINERS (write after approval): Add myself.
13255
8ada74e3
MK
132562004-01-04 Mark Kettenis <kettenis@gnu.org>
13257
13258 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13259 `float' arguments.
13260
5154b0cd
MK
132612004-01-04 Mark Kettenis <kettenis@gnu.org>
13262
13263 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13264 such that it mentions a specific version of GCC that exhibits this
13265 bug.
13266
fb316966
MK
132672004-01-03 Mark Kettenis <kettenis@gnu.org>
13268
200cc553
MK
13269 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13270 structure that has a single `float' member, store it in %f1 in
13271 addition to %f0.
13272
e226a4a0
MK
13273 * sparc-sol2-nat.c: Add missing '\'.
13274
b9d4c5ed
MK
13275 * sparc-tdep.c (sparc32_return_value): New function.
13276 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13277 Remove functions.
13278 (sparc32_gdbarch_init): Set return_value, don't set
13279 extract_return_value, store_return_value, use_struct_convention
13280 and return_value_on_stack.
13281
fb316966
MK
13282 * sparc-sol2-nat.c: Add missing ')'.
13283
1af510a8
JB
132842004-01-03 J. Brobecker <brobecker@gnat.com>
13285
13286 * infrun.c (handle_step_into_function): New function.
13287 (handle_inferior_event): Extract out some code into the new
13288 function above.
13289
5cf4d23a
JB
132902004-01-03 J. Brobecker <brobecker@gnat.com>
13291
13292 * infrun.c (handle_inferior_event): Move the declaration of
13293 real_stop_pc inside the if blocks where it is used.
13294
60af1db2
MK
132952004-01-03 Mark Kettenis <kettenis@gnu.org>
13296
13297 * sparc64-tdep.c (sparc64_16_byte_align_p)
13298 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13299 Use check_typedef to get subtypes of structures and unions.
13300 (sparc64_store_return_value): Fix calculation of the appropriate
13301 offset into VALBUF when storing a structure or union.
13302 (sparc64_return_value): New function.
13303 (sparc64_use_struct_convention): Remove function.
13304 (sparc64_init_abi): Set return_value, don't set
13305 extract_return_value, store_return_value and
13306 use_struct_convention.
13307
1a901d3f
EZ
133082004-01-03 Eli Zaretskii <eliz@elta.co.il>
13309
13310 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13311 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13312 gdb/config/alpha/xm-alphaosf.h,
13313 gdb/config/powerpc/tm-ppcle-eabi.h,
13314 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13315 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13316 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13317 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13318 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13319 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13320 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13321 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13322 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13323 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13324 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13325 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13326 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13327 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13328 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13329 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13330 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13331 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13332 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13333 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13334 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13335 Remove lines for .cvsignore files.
13336
ef52e463
JB
133372004-01-03 J. Brobecker <brobecker@gnat.com>
13338
13339 * infrun.c: Back out the previous change.
13340
cb1bf9dc
MK
133412004-01-03 Mark Kettenis <kettenis@gnu.org>
13342
f0424ef6
MK
13343 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13344 sparc-*-sunos4* to the list of REMOVED configurations.
13345
cb1bf9dc
MK
13346 * configure.tgt: Add back sparc-*-vxworks*.
13347 * remote-vxsparc.c: Remove all includes except for "defs.h",
13348 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13349 Include "sparc-tdep.h".
13350 (SPARC_R_G1): New define.
13351 (vxsparc_gregset): New variable.
13352 (ext_format_sparc): Remove extern declaration.
13353 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13354 sparc32_supply_fpregset.
13355 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13356 sparc_collect_rwindow and sparc32_collect_fpregset.
13357 * config/sparc/tm-vxworks.h: New file, based on recently removed
13358 tm-vxsparc.h.
13359 * config/sparc/vxworks.mt: New file, based on recently removed
13360 vxworks.mt.
fe61caab 13361
5e938f9f
JB
133622004-01-03 J. Brobecker <brobecker@gnat.com>
13363
13364 * infrun.c (handle_step_into_function): New function.
13365 (handle_inferior_event): Extract out some code into the new
13366 function above.
13367
386c036b
MK
133682004-01-02 Mark Kettenis <kettenis@gnu.org>
13369
13370 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13371 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13372 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13373 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13374 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13375 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13376 (sparc_nat_h): New variable.
13377 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13378 (tm-sun4os4.h): Remove dependency.
13379 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13380 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13381 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13382 sparc-tdep.o): Update dependencies.
13383 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13384 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13385 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13386 dependencies.
13387 * configure.host: Remove existing sparc-*-lynxos*,
13388 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13389 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13390 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13391 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13392 triplets.
13393 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13394 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13395 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13396 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13397 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13398 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13399 sparc64-*-solaris2* and sparc64-*-* triplets.
13400 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13401 "symtab.h" and "objfiles.h".
13402 (BIAS): Remove define.
13403 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13404 (X_DISP19): Remove macros.
13405 (sparc_fetch_instruction): Remove function.
13406 (struct gdbarch_tdep): Remove definition.
13407 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13408 (sparc_breakpoint_from_pc): Remove function.
13409 (struct sparc64_frame_cache): Remove definition.
13410 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13411 sparc64_unwind_pc): Remove functions.
13412 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13413 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13414 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13415 (sparc64_frame_cache): Change return type to `struct
13416 sparc_frame_cache *'. Simply call sparc_frame_cache.
13417 (sparc64_frame_this_id, sparc64_frame_prev_register,
13418 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13419 instead of `struct sparc64_frame_cache.
13420 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13421 sparc_analyze_control_transfer, sparc_software_single_step,
13422 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13423 _initialize_sparc64_tdep): Remove functions.
13424 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13425 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13426 macros.
13427 (sparc64_supply_gregset, sparc64_collect_gregset,
13428 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13429 (sparc64_init_abi): New function.
13430 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13431 inclusion guard. Include "sparc-tdep.h".
13432 (BIAS): Define.
13433 (r_tstate_offset, r_fprs_offset): New defines.
13434 (enum sparc_regnum): Remove defenition.
13435 (enum sparc64_regnum): Reformat.
13436 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13437 (sparc64_init_abi, sparc64_supply_gregset,
13438 sparc64_collect_gregset, sparc64_supply_fpregset,
13439 sparc64_collect_fpregset): New prototypes.
13440 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13441 Add extern declarations.
13442 (sparc64_sol2_init_abi): New prototype.
13443 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13444 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13445 prototypes.
13446 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13447 "sparnbsd-nat.h".
13448 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13449 functions.
13450 (_initialize_sparc64fbsd_nat): Remove initialization of
13451 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13452 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 13453 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
13454 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13455 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13456 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13457 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13458 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13459 (sparc64fbsd_r_y_offset): Remove variables.
13460 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13461 Make static and const.
13462 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13463 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13464 functions.
13465 (sparc64fbsd_gregset): New variable.
13466 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13467 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13468 and sparc64_supply_fpregset.
13469 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13470 (sparc64fbsd_sigtramp_frame_this_id)
13471 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13472 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13473 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13474 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13475 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13476 * sparcnbsd-tdep.c: Update copyright year. Include
13477 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13478 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13479 "value.h" and "sparcnbsd-tdep.h".
13480 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13481 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13482 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13483 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13484 defines.
13485 (sparcnbsd_gregset): New variable.
13486 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13487 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13488 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13489 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13490 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13491 variables.
13492 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13493 (sparc32nbsd_sigcontext_frame_this_id)
13494 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13495 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13496 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13497 (sparcnbsd_get_longjmp_target_32,
13498 sparcnbsd_get_longjmp_target_64): Remove functions.
13499 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13500 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13501 sparcnbsd_init_elf): Remove.
13502 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13503 (sparcnbsd_elf_init_abi): New functions.
13504 (_initialize_sparcnbsd_tdep): New prototype.
13505 (_initialize_sparnbsd_tdep): Update.
13506 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13507 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13508 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13509 * config/sparc/linux.mh: Update comment.
13510 (XM_FILE, HOST_IPC): Remove variables.
13511 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13512 sparc-linux-nat.o.
13513 * config/sparc/linux.mt: Update comment.
13514 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13515 * config/sparc/nbsd.mt: Reformat.
13516 * config/sparc/nbsd64.mh: Update comment.
13517 (NATDEPFILES): Add sparc-nat.o.
13518 * config/sparc/nbsd64.mt: Update comment.
13519 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13520 (TM_FILE): Set to tm-nbsd.h.
13521 * config/sparc/nbsdelf.mh: Update comment.
13522 (NATDEPFILES): Add sparc-nat.o.
13523 (XM_FILE): Delete.
13524 * config/sparc/nbsdaout.mh: Update comment.
13525 (NATDEPFILES): Add sparc-nat.o
13526 (XM_FILE): Delete.
13527 * config/sparc/nm-linux.h: Update copyright year. Don't include
13528 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13529 inclusion.
13530 (KERNEL_U_SIZE): Remove define.
13531 (kernel_u_size): Remove prototype.
13532 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13533 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13534 "regcache.h".
13535 (CHILD_PREPARE_TO_STORE): Remove define.
13536 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13537 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13538 sparcnbsd-nat.c: Rewrite files.
13539 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13540 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13541 sparcnbsd-tdep.h: Remove files.
13542 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13543 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13544 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13545 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13546 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13547 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13548 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13549 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13550 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13551 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13552 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13553 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13554 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13555 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13556 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13557 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13558 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13559 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13560 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13561
ee84457a
AC
135622004-01-02 Andrew Cagney <cagney@redhat.com>
13563
13564 From 2003-12-18 Kazuhiro Inaoka:
13565 * configure.host: Add m32r-linux target.
13566
0bc2134e
MC
135672004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13568
13569 * top.c (print_gdb_version): Update year to 2004.
13570
89a72f9c
MM
135712004-01-02 Mark Mitchell <mark@codesourcery.com>
13572
13573 * MAINTAINERS: Add myself to the write-after-approval category.
13574
86b013ed
DJ
135752004-01-02 Daniel Jacobowitz <drow@mvista.com>
13576
13577 From Bernardo Innocenti <bernie@develer.com>:
13578 * configure.tgt: Add uClinux target.
13579
e42c9534
AC
135802004-01-02 Andrew Cagney <cagney@redhat.com>
13581
13582 * utils.c (do_my_cleanups): Make static, add forward declaration.
13583 * defs.h (do_my_cleanups): Delete declaration.
13584
162467d3
EZ
135852004-01-02 Eli Zaretskii <eliz@elta.co.il>
13586
13587 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13588 bfd/ChangeLog-0203.
13589
78434e59
MK
135902004-01-02 Mark Kettenis <kettenis@gnu.org>
13591
13592 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13593 in <machine/reg.h>.
13594 * configure, config.in: Regenerate.
13595
48efe704
AC
13596For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13597tui/ChangeLog-1998-2003.
c906108c
SS
13598\f
13599Local Variables:
13600mode: change-log
13601left-margin: 8
13602fill-column: 74
13603version-control: never
13604End:
This page took 3.231895 seconds and 4 git commands to generate.