* procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
772cf8be
MK
12004-10-30 Mark Kettenis <kettenis@gnu.org>
2
3 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
4 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
5 Cleanup coding style.
6
9c8fdbfa
AC
72004-10-30 Andrew Cagney <cagney@gnu.org>
8
0fe7e7c8
AC
9 * mips-tdep.h (mips_pc_is_mips16): Declare.
10 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
11 non-static. Update calls.
12
1b295c3d
AC
13 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
14 * command.h (add_setshow_enum_cmd): Declare.
15 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
16
6bcadd06
AC
17 * mips-tdep.c (_initialize_mips_tdep): Use
18 add_setshow_zinteger_cmd.
19
9c8fdbfa
AC
20 * mips-tdep.c (mips_eabi_extract_return_value)
21 (mips_o64_extract_return_value, mips_o64_store_return_value)
22 (return_value_location, mips_eabi_reg_struct_has_addr)
23 (mips_eabi_use_struct_convention)
24 (mips_eabi_store_return_value): Delete.
25 (mips_eabi_store_return_value): New function.
26 (mips_eabi_return_value): New function.
27 (mips_gdbarch_init): For O64 and EABI, delete
28 extract_return_value, store_return_value, use_struct_convention
29 and reg_struct_has_addr, add return_value.
30
1d93fe1a
AC
31 * mips-tdep.c (read_signed_register): Use
32 regcache_cooked_read_signed.
33
303d2914
MK
342004-10-30 Mark Kettenis <kettenis@gnu.org>
35
36 * mipsread.c: Cleanup coding style.
37 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
38 (mipscoff_symfile_finish): Remove prototypes.
39
402004-10-29 Mark Kettenis <kettenis@gnu.org>
41
42 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
43 (mips_mdebug_frame_cache, mips16_scan_prologue)
44 (mips32_scan_prologue, mips_stub_frame_cache)
45 (heuristic_proc_start, heuristic_proc_desc)
46 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
47 (mips_n32n64_return_value, mips_o32_push_dummy_call)
48 (mips_o32_return_value, mips_o64_push_dummy_call)
49 (mips_step_skips_delay, mips_skip_trampoline_code)
50 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
51 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
52 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
53 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
54 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
55 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
56 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
57 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
58 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
59 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
60 ZERO_REGNUM.
61 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
62 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
63 ZERO_REGNUM.
64 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
65 A0_REGNUM.
66 * mipsnbsd-nat.c: Include "mips-tdep.h".
67 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
68 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
69
1c8831c5
AC
702004-10-29 Andrew Cagney <cagney@gnu.org>
71
72 * stack.c (parse_frame_specification_1): New function based on
73 parse_frame_specification. Add message and selected_frame_p
74 paramters. Truely always return non-NULL.
75 (parse_frame_specification): Call parse_frame_specification_1.
76 (frame_info): Update. Eliminate target_has_stack check.
77 (select_frame_command): Update.
78
b04f3ab4
AC
792004-10-29 Andrew Cagney <cagney@gnu.org>
80
81 * frame.h (get_selected_frame): Add message parameter.
82 * frame.c (get_selected_frame): Add and use message parameter.
83 * stack.c (current_frame_command, return_command, locals_info)
84 (catch_info, args_info, up_silently_base, down_silently_base): Use
85 get_selected_frame with an explicit message.
86 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
87 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
88 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
89 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
90 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
91 * breakpoint.c: Update.
92
932004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
94
95 * trad-frame.c (trad_frame_get_prev_register): Use
96 frame_unwind_register instead of frame_register_unwind, do not
97 recurse the register's location.
98 * xstormy16-tdep.c (xstormy16_frame_prev_register):
99 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
100 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
101 * sh-tdep.c (sh_frame_prev_register): Ditto.
102 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
103 * i386-tdep.c (i386_frame_prev_register): Ditto.
104 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
105 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
106
7a952542
MK
1072004-10-28 Mark Kettenis <kettenis@jive.nl>
108
c18c06be
MK
109 * proc-events.c: Fix several coding-style issues. Consistently
110 use #ifdef instead of #if defined().
111 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
112 ARRAY_SIZE.
113 (_initialize_proc_events): New prototype.
114
7a952542
MK
115 * proc-why.c: Fix several coding-style issues.
116 (proc_prettyfprint_why): Use ARRAY_SIZE.
117
fcad0fa4
JB
1182004-10-27 Jim Blandy <jimb@redhat.com>
119
120 * remote.c (fetch_register_using_p): Construct 'p' packet in a
121 manner independent of the host byte order.
122
c163184f
MK
1232004-10-27 Mark Kettenis <kettenis@gnu.org>
124
125 * mips-tdep.c (id_delayed): Remove prototype.
126
9c46b6f0
MK
1272004-10-26 Mark Kettenis <kettenis@gnu.org>
128
129 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
130 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
131 to enum with register numbers.
132 (enum mips_insn_size): New enum.
133
0d0266c6
AC
1342004-10-26 Andrew Cagney <cagney@gnu.org>
135
e7d6a6d2
AC
136 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
137 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
138 (mips_gdbarch_init): Update.
139 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
140
c5115f39
AC
141 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
142 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
143 IN_SOLIB_RETURN_TRAMPOLINE.
144 * mips-tdep.c (mips_dump_tdep): Do not print
145 IN_SOLIB_RETURN_TRAMPOLINE.
146 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
147 (mips_gdbarch_init): Update.
148
0d0266c6
AC
149 * mips-tdep.h (mips_software_single_step): Move to here ...
150 * config/mips/tm-mips.h: ... from here.
151 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
152 (SOFTWARE_SINGLE_STEP): Delete.
153 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
154
156a53ca
AC
1552004-10-25 Andrew Cagney <cagney@gnu.org>
156
157 * NEWS: Add Changes since GDB 6.3 section.
158
f27cf670
AS
1592004-10-23 Andreas Schwab <schwab@suse.de>
160
156a53ca
AC
161 * ada-lang.c (grow_vect): Return the new array instead of
162 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
163 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
164
121d8485
UW
1652004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
166
167 * s390-tdep.c (enum pv_boolean): Remove.
168 (pv_is_array_ref): Remove.
169 (s390_on_stack): Remove.
170 (S390_NUM_SPILL_SLOTS): Remove.
171 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
172 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
173 (s390_store): Track all stores of orginal incoming registers to the
174 stack constant offsets relative to the CFA, instead of only tracking
175 stores into specific spill slots.
176 (s390_load): Likewise.
177 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
178 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
179 defined as call-saved by the ABI.
180 (s390_push_dummy_call): Use bottom of dummy call argument save area
181 as return value, not the top. Do not store to the called function's
182 register save area.
183 (s390_unwind_dummy_id): Adapt accordingly.
184
0a6ddd08
AC
1852004-10-23 Andrew Cagney <cagney@gnu.org>
186
187 * objfiles.h (struct objfile): Rename obj_private to
188 deprecated_obj_private, sym_private to deprecated_sym_private, and
189 sym_stab_info to deprecated_sym_stab_info.
190 * gdb-stabs.h: Update.
191 * elfread.c: Update.
192 * dbxread.c: Update.
193 * coffread.c: Update.
194 * xcoffread.c: Update.
195 * symfile.c: Update.
196 * somread.c: Update.
197 * nlmread.c: Update.
198 * mdebugread.c: Update.
199 * hpread.c: Update.
200 * coffread.c: Update.
201
abc08782
MK
2022004-10-23 Mark Kettenis <kettenis@gnu.org>
203
204 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
205 * configure.host: Add mips64*-*-openbsd*.
206 * configure.tgt: Add mips64*-*-openbsd*.
207 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
208 mips64obsd-tdep.c.
209 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
210 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
211
fc062ac6
JB
2122004-10-21 Joel Brobecker <brobecker@gnat.com>
213
214 * symtab.c (symbol_search_name): Minor reformatting.
215
5bccb4d1
JB
2162004-10-20 Joel Brobecker <brobecker@gnat.com>
217
218 * symtab.h: Fix typo in comment.
219
a738430d
MK
2202004-10-19 Mark Kettenis <kettenis@gnu.org>
221
222 * dwarf2read.c (struct comp_unit_head): Fix coding style.
223 (dwarf_decode_line_header): Likewise.
224
f2cb65ca
MC
2252004-10-19 Michael Chastain <mec.gnu@mindspring.com>
226
227 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
228
09e55376
AC
2292004-10-19 Andrew Cagney <cagney@gnu.org>
230
231 GDB 6.3 branch created.
232 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
233
bc5f45f8
JB
2342004-10-15 Joel Brobecker <brobecker@gnat.com>
235
236 * dwarf2read.c (set_cu_language): Set language to Ada for
237 DW_LANG_Ada83 and DW_LANG_Ada95.
238
2941da8c
MC
2392004-10-15 Michael Chastain <mec.gnu@mindspring.com>
240
241 From Andreas Schwab <schwab@suse.de>:
242 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
243 for xmalloc and xrealloc.
244
34a17005
AC
2452004-10-15 Andrew Cagney <cagney@gnu.org>
246
247 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
248 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
249 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
250 Update dependencies.
251
714e53ab
PH
2522004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
253
254 * ada-lang.c (ada_lookup_symbol): Correct comment.
255 (ada_evaluate_subexp): Change error message for
256 OP_FUNCALL case so as not to indicate an internal error.
257
2582004-10-15 Joel Brobecker <brobecker@gnat.com>
259
260 Committed by Paul Hilfinger.
261 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
262 type sizes in XVE/XVU types, and emit a warning when that happens,
263 instead of rounding up the size of the resulting type.
264 Some minor reformatting.
265 (ada_is_aligner_type): Do not consider a type as an aligner type
266 if there is a corresponding XVS type as well.
267 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
268 have several levels of pointer indirection to the array.
269
2702004-10-15 Jerome Guitton <guitton@gnat.com>
271
272 Committed by Paul Hilfinger.
273 * ada-lang.c (check_size): New function.
274 (coerce_unspec_val_to_type): call check_size to make sure
275 that the object size is reasonable.
276 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
277 Implements the case when we get a reference when we evaluate
278 the expression of one of the bounds of the slice.
279 (ada_value_struct_elt): when a packed array field is
280 a reference, use ada_coerce_ref to dereference it; use
281 ada_value_ind only if it is a pointer.
282
29639122
JB
2832004-10-15 Joel Brobecker <brobecker@gnat.com>
284
285 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
286 a bit to avoid the necessity of an advance declaration. Remove
287 declaration.
288 (set_reg_offset): Move implemenation up.
289 (mips16_get_imm): Likewise.
290 (mips16_scan_prologue): Likewise.
291 (reset_saved_regs): Likewise.
292 (mips32_scan_prologue): Likewise.
293
a65bbe44
JB
2942004-10-14 Joel Brobecker <brobecker@gnat.com>
295
296 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
297 Remove sp as a parameter, compute it internally instead. Move
298 prologue scanning limit from heuristic_proc_desc to here.
299 (mips16_scan_prologue): Likewise.
300 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
301 by call to mips16_scan_prologue.
302 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
303 by call to mips32_scan_prologue.
304 (heuristic_proc_desc): Remove code that's no longer necessary.
305 Update calls to mips16_scan_prologue and mips32_scan_prologue.
306 (mips_skip_prologue): Update calls to mips16_scan_prologue
307 and mips32_scan_prologue.
308
1c645fec
JB
3092004-10-14 Joel Brobecker <brobecker@gnat.com>
310
311 * mips-tdep.c (mips16_scan_prologue): Merge code from
312 mips16_skip_prologue. Now return the address of the first
313 instruction past the function prologue.
314 (mips16_skip_prologue): Remove, no longer necessary.
315 (mips_skip_prologue): Replace call to mips16_skip_prologue
316 by call to mips16_scan_prologue.
317
98b4dd94
JB
3182004-10-14 Joel Brobecker <brobecker@gnat.com>
319
320 * mips-tdep.c (mips32_scan_prologue): Merge code from
321 mips32_skip_prologue. Now return the address of the first
322 instruction past the function prologue.
323 (mips32_skip_prologue): Remove. No longer necessary.
324 (mips16_skip_prologue): Add parameter end_pc instead of
325 computing it.
326 (mips_skip_prologue): Compute the upper limit for the
327 prologue scanning. Update call to mips16_skip_prologue.
328 Replace call to mips32_skip_prologue by call to
329 mips32_scan_prologue.
330
ad4c72d2
MK
3312004-10-14 Mark Kettenis <kettenis@gnu.org>
332
dfaf8edb
MK
333 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
334 NetBSD system call stubs that store %rp in the ERP slot of the
335 stack frame.
336
3e3a28f1
MK
337 * source.c: Always define O_BINARY to 0 if not defined already.
338 (openp): Unconditionally use O_BINARY.
339
ad4c72d2
MK
340 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
341 * event-top.c (gdb_readline2): Likewise.
342
52bd1401
OF
3432004-10-14 Orjan Friberg <orjanf@axis.com>
344
345 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
346 deprecated_add_core_fns which was removed by mistake.
347
e0e25c6c
KB
3482004-10-13 Kevin Buettner <kevinb@redhat.com>
349
350 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
351 references to deprecated_registers[] with equivalent code.
352
9f335945
KB
3532004-10-13 Kevin Buettner <kevinb@redhat.com>
354
355 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
356 ``deprecated_registers'' with equivalent code. Use gdb_assert()
357 instead of explicit test and print statement.
358
06c2338d
MK
3592004-10-12 Mark Kettenis <kettenis@gnu.org>
360
1b9445c2
MK
361 * sparc-nat.c: Include "inf-ptrace.h".
362 (sparc_target): New function.
363 * sparc-nat.h: Update copyright year.
364 (sparc_target): New prototype.
365 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
366 (_initialize_sparcnbsd_nat): Construct and add target vector.
367 * sparc64nbsd-nat.c: Include "target.h".
368 (_initialize_sparc64nbsd_nat): Construct and add target vector.
369 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
370 Update dependencies.
371 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
372 inftarg.o, add inf-ptrace.o.
373 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
374 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
375 (NAT_FILE): Set to nm-bsd.h.
376 (LOADLIBES): New variable.
377 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
378 infarg.o, add inf-ptrace.o.
379 * config/sparc/nm-nbsdaout.h: Remove file.
380 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
381 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
382 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
383
06c2338d
MK
384 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
385 "fopen-same.h". Update comment.
386
3303a276
MK
3872004-10-11 Mark Kettenis <kettenis@gnu.org>
388
389 * i386gnu-nat.c: Include "gdb_string.h".
390 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
391 registers when the floating-point state isn't initialized.
392 * Makefile.in (i386gnu-nat.o): Update dependencies.
393
04c663e3
DA
3942004-10-11 David Anderson <davea@sgi.com>
395
396 * regcache.c (regcache_raw_read): Comment was missing "to".
397 Extraneous ' removed.
398 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
399 comment now describes use.
400
a5f6c8f5
OF
4012004-10-11 Orjan Friberg <orjanf@axis.com>
402
403 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
404 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
405 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
406 (cris_sigtramp_frame_sniffer): New functions.
407 (cris_gdbarch_init): Hook in signal trampoline unwinder.
408 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
409 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
410 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
411 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
412 command.
413 (cris_version_update): Remove, replace with ...
414 (set_cris_version): New function.
415 (struct gdbarch_tdep, cris_mode, cris_mode_update)
416 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
417 (_initialize_cris_tdep): Remove CRIS mode command.
418 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
419 cris-fpless-backtrace command.
420 (cris_scan_prologue): Fix prologue scanning limit.
421 (cris_register_type): Update to reflect actual registers.
422 (cris_register_bytes_ok) Remove.
423 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
424 Remove set_gdbarch_deprecated_register_size,
425 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
426
77109804
AC
4272004-10-10 Andrew Cagney <cagney@gnu.org>
428
429 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
430 comment.
431
25652d4f
JB
4322004-10-10 Joel Brobecker <brobecker@gnat.com>
433
434 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
435
1e05a7bf
JB
4362004-10-10 Joel Brobecker <brobecker@gnat.com>
437
438 * mips-tdep.c (mips16_scan_prologue): Renames
439 mips16_heuristic_proc_desc. Update comment.
440 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
441 (heuristic_proc_desc): Update calls to the 2 functions above.
442
c68a4142
JB
4432004-10-10 Joel Brobecker <brobecker@gnat.com>
444
445 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
446 Update comments. Also immediately return empty cache when the start
447 address of our function could not be found.
448 (mips_insn32_frame_cache): Likewise.
449
0fce0821
JB
4502004-10-10 Joel Brobecker <brobecker@gnat.com>
451
452 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
453 (mips_insn16_frame_cache): Pass frame cache in call to
454 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
455 Remove code that became redundant as a consequence.
456 (mips32_heuristic_proc_desc): No longer compute a fake
457 procedure descriptor. Compute the full frame cache instead.
458 Some minor comment reformatting.
459
b672553e
JB
4602004-10-10 Jim Blandy <jimb@redhat.com>
461
462 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
463 reader, tracing bytecode stuff): Remove self.
464
9cc52bde
MK
4652004-10-10 Mark Kettenis <kettenis@gnu.org>
466
cc9784b6
MK
467 * sparc64-linux-tdep.c: Update copyright year. Don't include
468 "solib-svr4.h".
469 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
470 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
471 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
472
ee8aef23
MK
473 * sparc-linux-tdep.c: Update copyright year.
474 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
475 to struct frame_info *. Use safe_frame_unwind_memory instead of
476 deprecated_read_memory_nobpt.
477 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
478 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
479 changed signature of sparc_linux_sigtramp_start.
480 (sparc32_linux_pc_in_sigtramp): Remove function.
481 (sparc32_linux_sigtramp_p): New function.
482 (sparc32_linux_sigtramp_frame_sniffer): Use
483 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
484
bc73f8cc
MK
485 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
486 Remove function.
487 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
488
a2249542
MK
489 * ada-lang.c (lim_warning): Re-implement as a varargs function.
490 (decode_packed_array_type, value_subscript_packed)
491 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
492 argument in call to lim_warning.
493
9cc52bde
MK
494 * configure.in: Really disable the TUI if an enhanced curses
495 library isn't found.
496 * configure: Regenerate.
497
151fc45b
MK
4982004-10-09 Mark Kettenis <kettenis@gnu.org>
499
500 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
501 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
502 * config/i386/nm-nbsdaout.h: Remove file.
503 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
504 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
505 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
506 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
507 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
508 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
509 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
510 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
511 (ldd, ld_un, ld_2): Remove defines.
512 * config/i386/nm-obsd.h: Likewise.
513
375c0479
PH
5142004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
515
516 * ada-lex.l: Remove useless rule whose right-context clause
517 causes unreferenced static function warning for yyrealloc.
518 (ada_flex_use): Remove the artificial reference to yyrealloc.
519
c8e73a31
AC
5202004-10-08 Andrew Cagney <cagney@gnu.org>
521
522 * target.h (struct target_ops): Rename to_xfer_memory to
523 deprecated_xfer_memory.
524 * target.c: Update.
525 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
526 * wince.c: Update.
527 * win32-nat.c: Update.
528 * v850ice.c: Update.
529 * uw-thread.c: Update.
530 * thread-db.c: Update.
531 * sol-thread.c: Update.
532 * remote.c: Update.
533 * remote-vx.c: Update.
534 * remote-st.c: Update.
535 * remote-sim.c: Update.
536 * remote-sds.c: Update.
537 * remote-rdp.c: Update.
538 * remote-rdi.c: Update.
539 * remote-mips.c: Update.
540 * remote-m32r-sdi.c: Update.
541 * remote-e7000.c: Update.
542 * procfs.c: Update.
543 * ppc-bdm.c: Update.
544 * nto-procfs.c: Update.
545 * monitor.c: Update.
546 * linux-nat.c: Update.
547 * inftarg.c: Update.
548 * hpux-thread.c: Update.
549 * go32-nat.c: Update.
550 * gnu-nat.c: Update.
551 * exec.c: Update.
552 * corelow.c: Update.
553 * bsd-kvm.c: Update.
554 * aix-thread.c: Update.
555
aa869812
AC
5562004-10-08 Andrew Cagney <cagney@gnu.org>
557
558 * target.c (debug_target): Move to near start of file.
559 (target_stopped_data_address_p): Re-org logic, add casts.
560
8dcef9cf
MK
5612004-10-02 Mark Kettenis <kettenis@gnu.org>
562
563 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
564 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
565 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
566 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
567 New defines.
568
4aa7a7f5
JJ
5692004-10-08 Jeff Johnston <jjohnstn@redhat.com>
570
571 * target.h (to_stopped_data_address): Change prototype to
572 take a CORE_ADDR pointer and return an int.
573 * target.c (update_current_target): Change to_stopped_data_address
574 to match new prototype.
575 (debug_to_stopped_data_address): Change appropriately.
576 * breakpoint.c (bpstat_stop_status): Change call to
577 target_stopped_data_address to use new prototype.
578 * frv-tdep.c (frv_have_stopped_data_address): New function.
579 (frv_stopped_data_address): Change to new prototype and
580 functionality.
581 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
582 prototype and functionality.
583 (ia64_stopped_by_watchpoint): New function.
584 * i386-nat.c (i386_stopped_data_address): Change to new
585 prototype and functionality.
586 (i386_stopped_by_watchpoint): New function.
587 * remote.c (remote_stopped_data_address): Change to new prototype
588 and functionality.
589 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
590 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
591 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
592 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
593 new i386_stopped_by_watchpoint function.
594 (i386_stopped_by_watchpoint): New prototype.
595 (i386_stoppped_data_address): Change to new prototype.
596 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
597 new ia64_stopped_by_watchpoint function.
598 (ia64_stopped_by_watchpoint): New prototype.
599 (ia64_stopped_data_address): Ditto.
600
61ee279c
PH
6012004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
602
603 * ada-typeprint.c (ada_print_type): Use int_string for printing
604 modulus of modular type.
605 * ada-lang.h (ada_modulus): Change return type to unsigned.
606 * ada-lang.c (ada_language_arch_info): Correct type of
607 string_char_type.
608 (ada_modulus): Return unsigned result.
609 (ada_lookup_symbol): Remove user disambiguation and modify comment
610 accordingly.
611
6122004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
613
614 Committed by Paul Hilfinger.
615 * ada-lang.c (decode_packed_array): On big-endian targets,
616 left-justify the value if it comes with a modular type.
617
6182004-10-08 Joel Brobecker <brobecker@gnat.com>
619
620 Committed by Paul Hilfinger.
621 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
622 (is_name_suffix): Add support for "___JM" suffixes.
623 (ada_check_typedef): Renames ada_completed_type.
624 Update all users of CHECK_TYPEDEF, check_typedef, and
625 ada_complete_type to call ada_check_typedef.
626 * ada-typeprint.c: Likewise.
627 * ada-valprint.c: Likewise.
628
b6c25a56
CV
6292004-10-08 Corinna Vinschen <vinschen@redhat.com>
630
631 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
632
83ca6a46
NR
6332004-10-08 Nick Roberts <nickrob@snap.net.nz>
634
635 * MAINTAINERS: Update e-mail address.
636
1fd8cd20
DJ
6372004-10-07 Daniel Jacobowitz <dan@debian.org>
638
639 From Maciej W. Rozycki <macro@mips.com>:
640 * mips-tdep.c (mips32_next_pc): Check the register's contents,
641 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
642
cea15572
KI
6432004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
644
645 * m32r-tdep.c (decode_prologue): Support functions written
646 in assembler language. Recognize trap instructions as the
647 end of prologue.
648 (m32r_frame_unwind_cache): Ditto.
649 (m32r_skip_prologue): Extend search limit. Quit analyzing
650 prologue if pc's location is not readable.
651
23485554
PH
6522004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
653
654 * Makefile.in (.l.c): Do conversions of names of alloc and free
655 functions that are done for .y.c files, plus special one
656 for yy_flex_realloc. Also, correct missing-file tests here.
657 * ada-lex.l (malloc, free): Remove macros.
658 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
659 xrealloc.
660 (ada_flex_use): Dummy definition to remove warnings about unused
661 functions.
662 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
663 to suppress warning.
664
c0409442
CV
6652004-10-06 Corinna Vinschen <vinschen@redhat.com>
666
667 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
668 RETURN_VALUE.
669 (sh_return_value_fpu): Ditto for CPUs with FPU.
670 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
671 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
672 Install sh_return_value_nofpu resp. sh_return_value_fpu as
673 RETURN_VALUE functions.
674
9bed62d7
CV
6752004-10-06 Corinna Vinschen <vinschen@redhat.com>
676
677 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
678 (sh_pseudo_register_write): Ditto.
679
03131d99
CV
6802004-10-06 Corinna Vinschen <vinschen@redhat.com>
681
682 * sh-tdep.c (IS_MACL_STS): New define.
683 (IS_MOVI20): Ditto.
684 (IS_MACL_LDS): Ditto.
685 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
686 instructions in prologue.
687 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
688 instructions in epilogue.
689
da962468
CV
6902004-10-06 Corinna Vinschen <vinschen@redhat.com>
691
692 * sh-tdep.c (SH_NUM_REGS): Define as 67.
693 (sh_sh_register_name): Add eight empty register names.
694 (sh_sh3_register_name): Ditto.
695 (sh_sh3e_register_name): Ditto.
696 (sh_sh2e_register_name): Ditto.
697 (sh_sh2a_register_name): New function, defining SH2A register set.
698 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
699 in nofpu case.
700 (sh_sh_dsp_register_name): Add eight empty register names.
701 (sh_sh3_dsp_register_name): Ditto.
702 (sh_sh4_register_name): Ditto.
703 (sh_sh4_nofpu_register_name): Ditto.
704 (sh_sh4al_dsp_register_name): Ditto.
705 (sh2a_show_regs): New function.
706 (sh2a_nofpu_show_regs): New function.
707 (sh_sh2a_register_type): New function.
708 (do_bank_register_info): New function.
709 (sh_print_pseudo_register): Call do_bank_register_info.
710 Call sh_print_pseudo_register for valid "bank" register.
711 (sh_sh2a_register_sim_regno): New function.
712 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
713 Increment pseudo register count by one for all sh variants with
714 pseudo registers to accomodate pseudo bank register.
715 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
716 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
717 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
718 Increment pseudo register numbers.
719
1326e61b
CV
7202004-10-06 Corinna Vinschen <vinschen@redhat.com>
721
722 * dwarf2read.c (read_subroutine_type): Call make_function_type
723 instead of lookup_function_type.
724
146c42e3
JB
7252004-10-05 Jim Blandy <jimb@redhat.com>
726
727 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
728 (Previous change missed some uses.)
729
1df84f13
AC
7302004-10-05 Andrew Cagney <cagney@gnu.org>
731
732 * target.h (deprecated_child_ops): Rename child_ops.
733 * wince.c: Update copyright. Rename child_ops.
734 * win32-nat.c: Rename child_ops.
735 * target.c: Rename child_ops.
736 * rs6000-nat.c: Rename child_ops.
737 * linux-nat.c: Rename child_ops.
738 * infttrace.c: Rename child_ops.
739 * inftarg.c: Rename child_ops.
740 * infptrace.c: Rename child_ops.
741 * hppah-nat.c: Update copyright. Rename child_ops.
742 * hpux-thread.c: Update copyright. Rename child_ops.
743
21e3b9b9
DJ
7442004-10-05 Daniel Jacobowitz <dan@debian.org>
745
746 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
747
de83afe7
AC
7482004-10-05 Andrew Cagney <cagney@gnu.org>
749
750 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
751
10b3939b
DJ
7522004-10-05 Daniel Jacobowitz <dan@debian.org>
753
754 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
755 (die_ref_table): Remove.
756 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
757 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
758 the usage of this type.
759 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
760 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
761 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
762 (dwarf2_create_include_psymtab): Update comment.
763 (find_partial_die): Remove third argument. Remove unreachable call
764 to error ().
765 (dwarf2_find_containing_comp_unit): Update comments. Change one
766 assertion to an error. Remove an unreachable error.
767 (dwarf2_find_comp_unit): Update comments.
768 (type_at_offset): Remove dead code.
769 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
770 (store_in_ref_table): Add CU argument.
771 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
772 inter-compilation-unit references.
773 (load_full_comp_unit, process_full_comp_unit): New functions, based
774 on psymtab_to_symtab_1.
775 (psymtab_to_symtab_1): Use them.
776 (dwarf2_add_dependence): New function.
777 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
778 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
779 (partial_die_parent_scope, guess_structure_name): Update for changes
780 to find_partial_die.
781 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
782 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
783 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
784 (read_die_and_children): Update call to store_in_ref_table.
785 (do_free_die_list_cleanup): Remove.
786 (fixup_partial_die): Update for changes to find_partial_die.
787 (read_full_die): Handle queueing absolute references.
788 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
789 (dwarf2_attr, die_specification, die_type)
790 (die_containing_type, dwarf2_extension): Update calls to
791 follow_die_ref.
792 (dump_die): Update DW_FORM_ref* handling.
793 (dwarf2_get_ref_die_offset): Likewise.
794 (free_one_comp_unit): Release the dies list.
795 (dwarf2_mark_helper): New function.
796 (dwarf2_mark): Use it.
797
998bdd68
MK
7982004-10-05 Mark Kettenis <kettenis@jive.nl>
799
800 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
801 when writing to memory.
802
14588880
KI
8032004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
804
805 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
806 (m32r_extract_struct_value_address): Delete function.
807 (m32r_return_value): New function.
808 (m32r_gdbarch_init): Instead of store_return_value,
809 extract_return_value, deprecated_extract_struct_value_address
810 and deprecated_use_struct_convention, set return_value.
811
dd5e6932
DJ
8122004-10-03 Daniel Jacobowitz <dan@debian.org>
813
814 * dwarf2read.c (read_subrange_type): Add comment for variable
815 sized arrays.
816
7dc1ef8d
PH
8172004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
818
819 * Makefile.in (.l.c): Modify rule for compatibility with recent
820 versions of flex, and remove most command-line options.
821 * ada-lex.l: Add %options line in place of -I -i and -s command-line
822 options.
823
1f8173e6
PH
8242004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
825
826 Turn on initial Ada support (mainly expression evaluation).
827
828 * Makefile.in (SFILES): Remove ada-tasks.c.
829 (HFILES_NO_SRCDIR): Add ada-lang.h.
830 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
831 (YYOBJ): Add ada-exp.o.
832 (rule .l.c): Generalize to not mention ada.
833 * symtab.c: Include ada-lang.h.
834 (symbol_natural_name, symbol_demangled_name)
835 (symbol_search_name): Add Ada case.
836
cb85a953
AC
8372004-10-01 Andrew Cagney <cagney@gnu.org>
838
3f3db248
AC
839 * Makefile.in (COMMON_OBS): Add inf-child.o.
840 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
841 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
842 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
843 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
844 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
845 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
846 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
847 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
848 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
849 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
850 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
851 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
852 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
853
cb85a953
AC
854 * target.c (xfer_using_stratum): Change return type to LONGEST.
855 On each iteration offset, readbuf and writebuf.
856 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
857 partial_length, and read/modify/write predicate, update comments.
858 Pass buffer.word to ptrace write.
859
963a6417
PH
8602004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
861
862 * symfile.c (init_filename_language_table): Add extensions for
863 Ada.
864 * defs.h (enum language): Add language_ada.
865 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
866 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
867 (add_symbols_from_enclosing_procs): Make a no-op for now.
868 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
869 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
870 (find_line_in_linetable, find_next_line_in_linetable)
871 (read_all_symtabs, is_plausible_func_for_line)
872 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
873 (is_runtime_sym_defined, check_size): Remove declaration.
874 (function_name_from_pc, ada_translate_error_message)
875 (ada_lookup_minimal_symbol): Remove definition.
876 (ada_add_block_symbols): Remove useless label.
877 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
878 useless declaration.
879 (ada_is_exception_sym): Likewise.
880
9b32d526
KI
8812004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
882
883 Add m32r-linux support.
884 * configure.tgt: Add m32r*-*-linux*.
885 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
886 and m32r-linux-tdep.c.
887 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
888 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
889 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
890 m32r-linux-tdep.c.
891 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
892 config/m32r/linux.mh, config/m32r/linux.mt,
893 config/m32r/nm-linux.h: New files.
894
2de118d3
JB
8952004-09-30 Joel Brobecker <brobecker@gnat.com>
896
897 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
898 (mips32_fetch_instruction): Remove, unused.
899
a9fe69d1
JB
9002004-09-30 Joel Brobecker <brobecker@gnat.com>
901
902 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
903 conditions that will always be true.
904
bc8ffc12
MK
9052004-09-30 Mark Kettenis <kettenis@gnu.org>
906
ba0cd111
MK
907 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
908 (vaxbsd_fetch_inferior_registers): Rename from
909 fetch_inferior_registers. Make static.
910 (vaxbsd_store_inferior_registers): Rename from
911 store_inferior_registers. Make static.
912 (_initialize_vaxbsd_nat): Construct and add target vector.
913 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
914 inftarg.o. Add inf-child.o and inf-ptrace.o.
915 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
916 inftarg.o. Add inf-child.o and inf-ptrace.o.
917 (NAT_FILE): Remove.
918 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
919 inftarg.o. Add inf-child.o and inf-ptrace.o.
920 (NAT_FILE): Remove.
921 * Makefile.in (vaxbsd-nat.o): Update dependencies.
922
bc8ffc12
MK
923 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
924 (m88kbsd_fetch_inferior_registers): Rename from
925 fetch_inferior_registers. Make static.
926 (m88kbsd_store_inferior_registers): Rename from
927 store_inferior_registers. Make static.
928 (_initialize_m88kbsd_nat): New prototype and function.
929 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
930 inftarg.o. Add inf-child.o and inf-ptrace.o.
931 (NAT_FILE): Remove.
932 * Makefile.in (m88kbsd-nat.o): Update dependencies.
933
27394598
AC
9342004-09-30 Andrew Cagney <cagney@gnu.org>
935
936 * target.c (target_xfer_partial): New function.
937 (target_read_memory_partial, target_write_memory_partial)
938 (default_xfer_partial, target_read_partial, target_write_partial)
939 (xfer_using_stratum): Use.
940 (debug_to_xfer_partial): Delete function.
941 (setup_target_debug): Do not override to_xfer_partial.
942
74a4fe32
MK
9432004-09-30 Mark Kettenis <kettenis@chello.nl>
944
945 * fork-child.c: Update copyright year. Fix coding style.
946
982526a1
MK
9472004-09-29 Mark Kettenis <kettenis@gnu.org>
948
949 * defs.h (msavestring, mstrsave): Remove prototypes.
950 * utils.c (msavestring, mstrsave): Remove functions.
951 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
952 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
953 of mstrsave.
954 * source.c (find_and_open_source): Use xstrdup instead of
955 mstrsave.
956
b8eb5af0
AC
9572004-09-30 Andrew Cagney <cagney@gnu.org>
958
0779438d
AC
959 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
960 (inf_ptrace_xfer_memory): Delete.
961 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
962 (target_read_memory, target_write_memory): Use xfer_using_stratum
963 when target_xfer_partial_p.
964 (debug_target): Move to start of file.
965 (target_read_memory_partial, target_write_memory_partial): Use
966 to_xfer_partial when target_xfer_partial_p.
967
f929a579
AC
968 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
969 inf_ptrace_xfer_memory with equivalent code.
970 * inftarg.c (child_xfer_partial): When performing a write, pass
971 writebuf to child_xfer_memory.
972
b8eb5af0
AC
973 * target.c (target_read_string): Use target_read_memory instead of
974 target_xfer_memory.
975
ee21b650
AC
9762004-09-29 Andrew Cagney <cagney@gnu.org>
977
d3e05d0d
AC
978 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
979 the address of status.
980
ee21b650
AC
981 * infptrace.c (ptrace_wait): Mention problem with HPUX.
982 (kill_inferior): Inline ptrace_wait call.
983 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
984 * inftarg.c (child_wait): Inline ptrace_wait call.
985
a182eed6
AC
986 * target.h (struct target_ops): Delete field to_post_wait.
987 (target_post_wait): Delete macro.
988 (child_post_wait): Delete declaration.
989 * target.c (update_current_target, update_current_target)
990 (debug_to_post_wait, setup_target_debug): Delete functions and
991 references.
992 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
993 * inftarg.c (child_post_wait): Delete.
994 (init_child_ops): Do not set to_post_wait.
995 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
996 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
997 * inf-child.c (inf_child_post_wait): Delete.
998 (inf_child_target): Do not set to_post_wait.
999 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1000 (inf_ptrace_target): Do not set to_post_wait.
1001
ba0c540b
AC
1002 * wince.c (child_ops): Delete.
1003 * win32-nat.c (child_ops): Delete.
1004
81977402
AC
1005 * inftarg.c (inftarg_set_find_memory_regions)
1006 (inftarg_set_make_corefile_notes): Delete functions.
1007 (_initialize_linux_nat): Inline calls.
1008
5ac10fd1
AC
1009 * target.h (child_ops): Declare.
1010 * inftarg.c (child_ops): Move from here ...
1011 * target.c (child_ops): ... to here.
1012 * wince.c (child_ops): Delete extern declaration.
1013 * win32-nat.c (child_ops): Delete extern declaration.
1014 * linux-nat.c (child_ops): Delete extern declaration.
1015 * hpux-thread.c (child_ops): Delete extern declaration.
1016
663408c2 10172004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
1018
1019 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1020
0dad8a66
MK
10212004-09-28 Mark Kettenis <kettenis@gnu.org>
1022
1023 * configure.in: Only set host_makefile_frag when building a native
1024 debugger.
1025 * configure: Regenerate.
e8d74ed3
MK
1026
1027 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1028 for OpenBSD ELF.
1029
dba24537
AC
10302004-09-28 Andrew Cagney <cagney@gnu.org>
1031
e979516b
AC
1032 Problem identified by Paul Hilfinger.
1033 * Makefile.in (ada_lex_c): Define.
1034 (ada-lex.o): Delete rule.
1035
dba24537
AC
1036 * linux-proc.c: Delete file.
1037 * Makefile.in: Update.
1038 * config/sparc/linux64.mh (NATDEPFILES):
1039 * config/sparc/linux.mh (NATDEPFILES): Update.
1040 * config/s390/s390.mh (NATDEPFILES): Update.
1041 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1042 * config/powerpc/linux.mh (NATDEPFILES): Update.
1043 * config/pa/linux.mh (NATDEPFILES): Update.
1044 * config/mips/linux.mh (NATDEPFILES): Update.
1045 * config/m68k/linux.mh (NATDEPFILES): Update.
1046 * config/ia64/linux.mh (NATDEPFILES): Update.
1047 * config/i386/linux64.mh (NATDEPFILES): Update.
1048 * config/i386/linux.mh (NATDEPFILES): Update.
1049 * config/arm/linux.mh (NATDEPFILES): Update.
1050 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1051 * linux-nat.c: Update copyright. Include <sys/param.h>,
1052 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1053 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1054 (O_LARGEFILE): Possibly define.
1055 (_initialize_linux_nat, linux_proc_pending_signals)
1056 (add_line_to_sigset, linux_proc_xfer_memory)
1057 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1058 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1059 (struct linux_corefile_thread_data)
1060 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1061 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1062
d6b0e80f
AC
10632004-09-16 Andrew Cagney <cagney@gnu.org>
1064
1065 * lin-lwp.c: Delete file.
1066 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1067 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1068 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1069 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1070 (linux_nat_attach, detach_callback, linux_nat_detach)
1071 (resume_callback, resume_clear_callback, linux_nat_resume)
1072 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1073 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1074 (status_callback, running_callback, count_events_callback)
1075 (select_singlestep_lwp_callback, select_event_lwp_callback)
1076 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1077 (child_wait, stop_and_resume_callback, linux_nat_wait)
1078 (kill_callback, kill_wait_callback, linux_nat_kill)
1079 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1080 (linux_nat_xfer_memory, linux_nat_thread_alive)
1081 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1082 (_initialize_linux_nat): New functions.
1083 * Makefile.in: Update all dependencies.
1084 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1085 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1086 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1087 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1088 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1089 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1090 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1091 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1092 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1093 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1094 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1095 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1096 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1097
5a174d79
MK
10982004-09-27 Mark Kettenis <kettenis@gnu.org>
1099
2f604c28
MK
1100 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1101 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1102
5a174d79
MK
1103 * configure.in: Don't comment out NATDEPFILES in the generated
1104 Makefile if NAT_FILE is unset.
1105 * configure: Regenerate.
1106
b2ed1746
AC
11072004-09-27 Andrew Cagney <cagney@gnu.org>
1108
44cbf7b5
AC
1109 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1110 (insert_step_resume_breakpoint): Delete.
1111 (insert_step_resume_breakpoint_at_frame): New function.
1112 (insert_step_resume_breakpoint_at_sal): New function.
1113 (handle_inferior_event, step_into_function)
1114 (insert_step_resume_breakpoint): Simplify by using same.
1115
b2ed1746
AC
1116 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1117
3691b3be
MK
11182004-09-26 Mark Kettenis <kettenis@gnu.org>
1119
36f391e8
MK
1120 * fbsd-proc.c: Remove file.
1121 * Makefile.in (fbsd-proc.o): Remove dependency.
1122
771e236c
MK
1123 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1124 code together.
1125
3691b3be
MK
1126 * config/i386/nm-fbsd64.h: Remove file.
1127 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1128
6a5c78a3
MK
11292004-09-26 Mark Kettenis <kettenis@gnu.org>
1130
1131 * amd64-nat.h: Update copyright year.
1132 (amd64bsd_target): New prototype.
1133 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1134 (amd64bsd_target): New function.
1135 (amd64bsd_fetch_inferior_registers): Rename from
1136 fetch_inferior_registers. Make static.
1137 (amd64bsd_store_inferior_registers): Rename from
1138 store_inferior_registers. Make static.
1139 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1140 (_initialize_amd64fbsd_nat): Construct and add target vector.
1141 * amd64nbsd-nat.o: Include "target.h".
1142 (_initialize_amd64nbsd_nat): Construct and add target vector.
1143 * amd64obsd-nat.c: Include "target.h".
1144 (_initialize_amd64obsd_nat): Construct and add target vector.
1145 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1146 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1147 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1148 fbsd-nat.o.
1149 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1150 Remove infptrace.o and inftarg.o. Add inf-child.o and
1151 inf-ptrace.o.
1152 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1153 (amd64obsd-nat.o): Update dependencies.
1154
27acbe61
MK
11552004-09-25 Mark Kettenis <kettenis@gnu.org>
1156
509a5e7d
MK
1157 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1158 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1159 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1160 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1161 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1162
6e1e94ea
MK
1163 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1164 Inline attach call.
1165 (inf_ptrace_detach): Inline detach call.
1166
8b9cf735
MK
1167 * configure.in: Check for waddstr instead of mvwaddstr when
1168 searching for curses library. Check for wborder.
1169 * configure, config.in: Regenerate.
1170 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1171 available.
1172
27acbe61
MK
1173 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1174
b96ec7ac
AC
11752004-09-24 Robert Picco <Robert.Picco@hp.com>
1176
1177 Committed by Andrew Cagney.
1178 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1179 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1180 configuration.
1181 (fetch_register_using_p): Implement 'p' packet. Based on code by
1182 Fernando Nasser.
1183 (remote_fetch_registers): Call fetch_register_using_p.
1184 (init_all_packet_configs, show_remote_cmd)
1185 (_initialize_remote): Add p-packet.
1186
62ece330
MK
11872004-09-24 Mark Kettenis <kettenis@gnu.org>
1188
1189 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1190 instead of call_ptrace. Call wait directly instead of
1191 ptrace_wait.
1192 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1193 (inf_ptrace_wait): Inline ptrace_wait call.
1194
00937274
PH
11952004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1196
1197 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1198 rolled back instead.
1199
3f2c7a45
PH
12002004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1201
1202 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1203 the new argument order.
1204
b6fcb393
CV
12052004-09-23 Corinna Vinschen <vinschen@redhat.com>
1206
1207 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1208 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1209 (struct gdbarch_tdep): Remove.
1210 (struct xstormy16_frame_cache): New frame cache structure.
1211 (xstormy16_register_byte, xstormy16_register_raw_size)
1212 (xstormy16_reg_virtual_type, xstormy16_register_type)
1213 (xstormy16_push_arguments, xstormy16_push_return_address)
1214 (xstormy16_pop_frame, xstormy16_store_struct_return)
1215 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1216 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1217 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1218 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1219 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1220 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1221 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1222 (xstormy16_extract_return_value, xstormy16_store_return_value):
1223 Regcachify. Drop useless struct convention handling.
1224 (xstormy16_register_type, xstormy16_return_value)
1225 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1226 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1227 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1228 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1229 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1230 (xstormy16_unwind_dummy_id) : New functions.
1231 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1232 of xstormy16_scan_prologue.
1233 (xstormy16_frame_unwind): New frame_unwind structure.
1234 (xstormy16_frame_base): New frame_base structure.
1235 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1236 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1237
1285b746
MK
12382004-09-22 Mark Kettenis <kettenis@gnu.org>
1239
1240 * language.c (language_gdbarch_post_init): Fix off-by one error.
1241
1c379e20
DJ
12422004-09-21 Daniel Jacobowitz <dan@debian.org>
1243
1244 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1245 (struct dwarf2_offset_and_type): New.
1246 (set_die_type, reset_die_and_siblings_types, get_die_type)
1247 (offset_and_type_hash, offset_and_type_eq): New functions.
1248 (read_structure_type, read_enumeration_type, read_array_type)
1249 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1250 (read_tag_reference_type, read_tag_const_type)
1251 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1252 (read_typedef, read_base_type, read_subrange_type): Use
1253 set_die_type.
1254
ae038cb0
DJ
12552004-09-20 Daniel Jacobowitz <dan@debian.org>
1256
1257 * Makefile.in (dwarf2read.o): Update dependencies.
1258 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1259 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1260 and read_in_chain.
1261 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1262 mark, and has_form_ref_addr.
1263 (struct dwarf2_per_cu_data): New.
1264 (dwarf2_max_cache_age): New.
1265 (dwarf2_build_psymtabs_hard): Free cached compilation units
1266 after loading. Create and manage the list of compilation units.
1267 Remove unnecessary NULL initialization. Fix indentation.
1268 (psymtab_to_symtab_1): Initialize all of CU.
1269 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1270 (find_partial_die): Use dwarf2_find_containing_comp_unit
1271 and load_comp_unit.
1272 (free_stack_comp_unit): Update comments. Clear the per-cu
1273 pointer. Handle aging.
1274 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1275 (age_cached_comp_units, free_one_cached_comp_unit)
1276 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1277 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1278 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1279 (show_dwarf2_cmd): New.
1280 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1281 and "maint show dwarf2 max-cache-age".
1282 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1283 externs.
1284 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1285 global.
1286
987504bb
JJ
12872004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1288
1289 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1290 and dwarf2_cu struct pointer as arguments. Change function to use
1291 obstack if provided and use dwarf2_cu to determine language-specific
1292 separator.
1293 (partial_die_parent_scope): Change comment to include java. Use
1294 new version of typename_concat instead of obconcat.
1295 (partial_die_full_name): Use typename_concat.
1296 (read_namespace): Ditto.
1297 (read_enumeration_type): Use typename_concat instead of obconcat.
1298 (new_symbol): Ditto.
1299 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1300 (guess_structure_name): Ditto.
1301 (read_subroutine_type): Ditto.
1302 (read_structure_type): Ditto.
1303 (is_vtable_name): Add Java support.
1304 (determine_class_name): Switch to new typename_concat call.
1305 (determine_prefix): Switch to new typename_concat call.
1306 * jv-exp.y (FuncStart): New pattern.
1307 (MethodInvocation): Add support for simple function calls. Change
1308 warning message for other forms of inferior call currently not
1309 supported.
1310 * valarith.c (value_subscript): Treat an array with upper-bound
1311 of -1 as unknown size.
1312
d9c8471e
DJ
13132004-09-20 Daniel Jacobowitz <dan@debian.org>
1314
1315 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1316 (lookup_partial_symtab): Use symtab_to_fullname.
1317
d73f140a
JB
13182004-09-19 Jim Blandy <jimb@redhat.com>
1319
1320 * minsyms.c (lookup_minimal_symbol): Doc fix.
1321
adbef1f0
AC
13222004-09-20 Andrew Cagney <cagney@gnu.org>
1323
1324 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1325 CHILD_RESUME.
1326 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1327 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1328 KILL_INFERIOR.
1329 * infptrace.c: Update.
1330
d092d1a2
DJ
13312004-09-19 Daniel Jacobowitz <dan@debian.org>
1332
1333 * symtab.c (output_source_filename): Mark first argument as const.
1334 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1335 for "info sources" output.
1336
86d9e1d7
MK
13372004-09-20 Mark Kettenis <kettenis@gnu.org>
1338
1339 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1340 <machine/vmparam.h>.
1341 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1342 (register_u_addr): Remove prototype.
1343
9a6c8ef4
MK
13442004-09-19 Mark Kettenis <kettenis@gnu.org>
1345
9692934b
MK
1346 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1347 (i386bsd_fetch_inferior_registers): Rename from
1348 fetch_inferior_registers. Make static.
1349 (i386bsd_store_inferior_registers): Rename from
1350 store_inferior_registers. Make static.
1351 (i386bsd_target): New function.
1352 * i386bsd-nat.h: New file.
1353 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1354 "i386bsd-nat.h".
1355 (i386fbsd_resume): Rename from child_resume. Make static.
1356 (_initialize_i386fbsd_nat): Construct and add target vector.
1357 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1358 (_initialize_i386nbsd_nat): Construct and add target vector.
1359 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1360 Remove defines.
1361 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1362 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1363 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1364 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1365 (LOADLIBES): New variable.
1366 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1367 inf-ptrace.o. Remove inftarg.o.
1368 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1369 inf-ptrace.o. Remove inftarg.o.
1370 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1371 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1372 (LOADLIBES): New variable.
1373 * Makefile.in (i386bsd_nat_h): New variable.
1374 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1375 dependencies.
1376
3510d1f2
MK
1377 * sparc64nbsd-tdep.c: Include "objfiles.h".
1378 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1379 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1380 svr4_lp64_fetch_link_map_offsets.
1381 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1382 "nbsd-tdep.h".
1383 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1384 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1385 svr4_lp64_fetch_link_map_offsets.
1386 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1387 dependencies.
1388
578c1c03
MK
1389 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1390 * fbsd-nat.h: New file.
1391 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1392 (fbsd_nat_h): New variable.
1393 (fbsd-nat.o): New dependency.
1394
7a7b73b7
MK
1395 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1396 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1397
9a6c8ef4
MK
1398 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1399 comment.
1400
72d5681a
PH
14012004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1402
1403 * ada-exp.y (type_int): New function to add layer of abstraction
1404 around references to expression types.
1405 (type_long): Ditto.
1406 (type_long_long): Ditto.
1407 (type_float): Ditto.
1408 (type_double): Ditto.
1409 (type_long_double): Ditto.
1410 (type_char): Ditto.
1411 (type_system_address): Ditto.
1412 (simple_exp): Use type_* functions in place of builtin_*
1413 variables.
1414 (exp): Ditto.
1415 (write_var_from_name): Ditto.
1416 (write_object_renaming): Ditto.
1417 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1418 declaration.
1419 (build_ada_types): Remove, replacing with...
1420 (ada_language_arch_info): New function to initialize primitive
1421 type vector in language_arch_info.
1422 (ada_array_length): Remove use of builtin_type_ada_int.
1423 (value_pos_atr): Ditto.
1424 (ada_evaluate_subexp): Ditto.
1425 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1426 builtin_type_ada_long_long, builtin_type_ada_char,
1427 builtin_type_ada_float, builtin_type_ada_double,
1428 builtin_type_ada_long_double, builtin_type_ada_natural,
1429 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1430 (ada_builtin_types): Remove.
1431 (ada_language_defn): Remove entries for la_builtin_type_vector and
1432 string_char_type and use ada_language_arch_info.
1433 (_initialize_ada_language): Do type-vector initialization along
1434 the lines of c-lang.c.
1435 (ada_create_fundamental_type): Break up line.
1436 (ada_dump_symtab): Remove unused function.
1437 (enum ada_primitive_types): Define.
1438 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1439 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1440 builtin_type_ada_float, builtin_type_ada_double,
1441 builtin_type_ada_long_double, builtin_type_ada_natural,
1442 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1443 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1444 (processInt): Ditto.
1445 (processReal): Ditto.
1446 (name_lookup): Ditto.
1447 * ada-typeprint.c (print_range): Use builtin_type_int, not
1448 builtin_type_ada_int.
1449
4f0be353
MK
14502004-09-18 Mark Kettenis <kettenis@gnu.org>
1451
30b0e2d8
MK
1452 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1453
4f0be353
MK
1454 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1455 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1456 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1457 * configure.in: Improve checks for curses library by checking for
1458 mvwaddstr instead of initscr. Drop HP curses in favour of
1459 standard curses on HP-UX.
1460 * configure: Regenerated.
1461
72d5681a 14622004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
1463
1464 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1465 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1466 Minor formatting changes.
1467 (empty_array): Slight rewrite for formatting.
1468 (emit_char,parse,ada_language_defn,build_ada_types,
1469 ada_is_exception_sym, _initialize_ada_language): Move
1470 definitions around.
1471 (ada_dump_symtab): Remove unused definition.
1472 (ada_maybe_exception_partial_symbol): Remove unused definition.
1473
1c8c7407
AC
14742004-09-16 Andrew Cagney <cagney@gnu.org>
1475
7681f339
AC
1476 * inf-child.c: Include "gdb_string.h".
1477 (inf_child_core_file_to_sym_file): Delete.
1478 (inf_child_target): Set to_fetch_registers and to_store_registers.
1479 * inf-ptrace.c: Include "gdb_string.h".
1480 * Makefile.in: Update all dependencies.
1481
1c8c7407
AC
1482 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1483 problem.
1484
65596487
JB
14852004-09-14 Joel Brobecker <brobecker@gnat.com>
1486
1487 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1488 call to heuristic_proc_desc. Remove code that became redundant
1489 as a consequence.
1490 (read_next_frame_reg): Remove special case for SP_REGNUM.
1491 (set_reg_offset): Fix small typo.
1492 (reset_saved_regs): New procedure.
1493 (mips32_heuristic_proc_desc): No longer compute a fake
1494 procedure descriptor. Compute the full frame cache instead.
1495 Some minor comment reformatting.
1496
95575b2e
AC
14972004-09-14 Andrew Cagney <cagney@gnu.org>
1498
f200c492
AC
1499 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1500 maintainer.
1501
95575b2e
AC
1502 * thread-db.c (thread_db_new_objfile): Assume that there is a
1503 child process.
1504
69657671
JB
15052004-09-13 Jim Blandy <jimb@redhat.com>
1506
1507 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1508 so that its storage isn't referenced after its lifetime ends.
1509
6c4182dd
JB
1510 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1511 and never assigned to. Delete it, and the 'if (use_buffer)'
1512 clauses. Delete 'raw_buffer', since it is now unused.
1513
ee31a58d
AC
15142004-09-13 Andrew Cagney <cagney@gnu.org>
1515
2c0fc042
AC
1516 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1517 * configure: Re-generate.
1518 * nlm/Makefile.in (TAGS): Update.
1519 * Makefile.in (TAGS): Update.
1520 * config/vax/nbsd.mt (TM_FILE): Update.
1521 * config/sparc/vxworks.mt (TM_FILE): Update.
1522 * config/sparc/sol2.mt (TM_FILE): Update.
1523 * config/sparc/sol2-64.mt (TM_FILE): Update.
1524 * config/sparc/obsd64.mt (TM_FILE): Update.
1525 * config/sparc/obsd.mt (TM_FILE): Update.
1526 * config/sparc/nbsd64.mt (TM_FILE): Update.
1527 * config/sparc/nbsd.mt (TM_FILE): Update.
1528 * config/sparc/linux64.mt (TM_FILE): Update.
1529 * config/sparc/linux.mt (TM_FILE): Update.
1530 * config/sparc/fbsd.mt (TM_FILE): Update.
1531 * config/sh/wince.mt (TM_FILE): Update.
1532 * config/sh/nbsd.mt (TM_FILE): Update.
1533 * config/sh/linux.mt (TM_FILE): Update.
1534 * config/sh/embed.mt (TM_FILE): Update.
1535 * config/s390/s390.mt (TM_FILE): Update.
1536 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1537 * config/rs6000/rs6000.mt (TM_FILE): Update.
1538 * config/rs6000/aix4.mt (TM_FILE): Update.
1539 * config/powerpc/vxworks.mt (TM_FILE): Update.
1540 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1541 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1542 * config/powerpc/obsd.mt (TM_FILE): Update.
1543 * config/powerpc/nbsd.mt (TM_FILE): Update.
1544 * config/powerpc/linux.mt (TM_FILE): Update.
1545 * config/powerpc/aix.mt (TM_FILE): Update.
1546 * config/pa/obsd.mt (TM_FILE): Update.
1547 * config/pa/linux.mt (TM_FILE): Update.
1548 * config/pa/hppahpux.mt (TM_FILE): Update.
1549 * config/pa/hppa64.mt (TM_FILE): Update.
1550 * config/pa/hppa.mt (TM_FILE): Update.
1551 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1552 * config/mips/wince.mt (TM_FILE): Update.
1553 * config/mips/vxmips.mt (TM_FILE): Update.
1554 * config/mips/nbsd.mt (TM_FILE): Update.
1555 * config/mips/linux.mt (TM_FILE): Update.
1556 * config/mips/irix6.mt (TM_FILE): Update.
1557 * config/mips/irix5.mt (TM_FILE): Update.
1558 * config/mips/embed.mt (TM_FILE): Update.
1559 * config/m68k/vxworks68.mt (TM_FILE): Update.
1560 * config/m68k/st2000.mt (TM_FILE): Update.
1561 * config/m68k/os68k.mt (TM_FILE): Update.
1562 * config/m68k/obsd.mt (TM_FILE): Update.
1563 * config/m68k/nbsd.mt (TM_FILE): Update.
1564 * config/m68k/monitor.mt (TM_FILE): Update.
1565 * config/m68k/linux.mt (TM_FILE): Update.
1566 * config/m68k/cisco.mt (TM_FILE): Update.
1567 * config/ia64/linux.mt (TM_FILE): Update.
1568 * config/ia64/aix.mt (TM_FILE): Update.
1569 * config/ia64/ia64.mt (TM_FILE): Update.
1570 * config/i386/vxworks.mt (TM_FILE): Update.
1571 * config/i386/obsd64.mt (TM_FILE): Update.
1572 * config/i386/obsd.mt (TM_FILE): Update.
1573 * config/i386/nto.mt (TM_FILE): Update.
1574 * config/i386/nbsd64.mt (TM_FILE): Update.
1575 * config/i386/nbsd.mt (TM_FILE): Update.
1576 * config/i386/linux64.mt (TM_FILE): Update.
1577 * config/i386/linux.mt (TM_FILE): Update.
1578 * config/i386/i386sol2.mt (TM_FILE): Update.
1579 * config/i386/i386lynx.mt (TM_FILE): Update.
1580 * config/i386/fbsd64.mt (TM_FILE): Update.
1581 * config/i386/fbsd.mt (TM_FILE): Update.
1582 * config/i386/cygwin.mt (TM_FILE): Update.
1583 * config/h8300/h8300.mt (TM_FILE): Update.
1584 * config/frv/frv.mt (TM_FILE): Update.
1585 * config/cris/cris.mt (TM_FILE): Update.
1586 * config/arm/wince.mt (TM_FILE): Update.
1587 * config/arm/nbsd.mt (TM_FILE): Update.
1588 * config/arm/linux.mt (TM_FILE): Update.
1589 * config/arm/embed.mt (TM_FILE): Update.
1590 * config/alpha/nbsd.mt (TM_FILE): Update.
1591 * config/alpha/fbsd.mt (TM_FILE): Update.
1592 * config/alpha/alpha.mt (TM_FILE): Update.
1593 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1594 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1595
362646f5
AC
1596 Eliminate event_loop_p, always has the value 1.
1597 * defs.h (event_loop_p): Delete macro.
1598 * breakpoint.c (until_break_command): Simplify.
1599 * utils.c (prompt_for_continue): Simplify.
1600 * tracepoint.c (read_actions): Simplify.
1601 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1602 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1603 (set_prompt, init_main): Simplify.
1604 (init_signals, disconnect): Delete, unused.
1605 * remote.c (remote_async_resume)
1606 (extended_remote_async_create_inferior): Simplify.
1607 * mi/mi-interp.c (mi_input): Delete, unused.
1608 (mi_interpreter_resume, mi_command_loop): Simplify.
1609 * interps.c (current_interp_command_loop): Simplify.
1610 * infrun.c (proceed): Simplify.
1611 * infcmd.c (run_command, continue_command, step_1, jump_command)
1612 (until_command, advance_command, finish_command)
1613 (interrupt_target_command): Simplify.
1614 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1615
ee31a58d
AC
1616 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1617 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1618 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1619 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1620 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1621 * mips-tdep.c (mips_dump_tdep): Do not print same.
1622
b7ffc4a8
AC
16232004-09-12 Andrew Cagney <cagney@gnu.org>
1624
2bfb72ee
AC
1625 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1626 const.
1627 * Makefile.in (valprint.o): Delete explict rule.
1628
4f17c3c1
AC
1629 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1630 reported by Dave Anderson.
1631
f810308b
AC
1632 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1633
b7ffc4a8
AC
1634 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1635
28b41c52
AC
16362004-09-12 Salvador E. Tropea <set@users.sf.net>
1637 Andrew Cagney <cagney@gnu.org>
1638
1639 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1640 (mi_cmd_data_list_register_values)
1641 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1642 the register number computation.
1643
5bf970f9
AC
16442004-09-12 Andrew Cagney <cagney@gnu.org>
1645
1646 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1647 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1648 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1649 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1650 target.
1651 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1652 inf-ptrace.o and inf-child.o.
1653 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1654 * Makefile.in: Update dependencies.
1655
0759e0bf
AC
16562004-09-11 Andrew Cagney <cagney@gnu.org>
1657
1658 * language.c (hex_string, hex_string_custom): Move from here ...
1659 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1660 (CELLSIZE): Increase to 50.
1661 * language.h (hex_string, hex_string_custom): Move from here ...
1662 * defs.h: ... to here.
1663 * Makefile.in: Update all dependencies.
1664
bb599908
PH
16652004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1666
1667 * language.c (local_hex_format_custom): Remove.
1668 (local_hex_string): Rename to hex_string, use C format, and move to
1669 utils.c
1670 (local_hex_string_custom): Rename to hex_string_custom and change
1671 interface. Now uses C format. Move to utils.c
1672 (local_octal_format_custom): Remove.
1673 (local_decimal_format_custom): Remove.
1674 (unknown_language_defn): Remove language-specific number
1675 formatting entries.
1676 (auto_language_defn): Ditto.
1677 (local_language_defn): Ditto.
1678 * language.h (struct language_format_info): Delete declaration.
1679 (struct language_defn): Remove language_format_info fields
1680 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1681 (local_binary_format): Remove macro.
1682 (local_binary_format_prefix): Remove macro.
1683 (local_binary_format_specifier): Remove macro.
1684 (local_binary_format_suffix): Remove macro.
1685 (local_octal_format): Remove macro.
1686 (local_octal_format_prefix): Remove macro.
1687 (local_octal_format_specifier): Remove macro.
1688 (local_octal_format_suffix): Remove macro.
1689 (local_decimal_format): Remove macro.
1690 (local_decimal_format_prefix): Remove macro.
1691 (local_decimal_format_specifier): Remove macro.
1692 (local_decimal_format_suffix): Remove macro.
1693 (local_hex_format): Remove macro.
1694 (local_hex_format_prefix): Remove macro.
1695 (local_hex_format_specifier): Remove macro.
1696 (local_hex_format_suffix): Remove macro.
1697 (local_decimal_format_custom): Remove.
1698 (local_octal_format_custom): Remove.
1699 (local_hex_format_custom): Remove.
1700 (local_hex_string): Rename to hex_string and move to defs.h.
1701 (local_hex_string_custom): Rename to hex_string_custom, change
1702 interface, and move to defs.h.
1703 * utils.c: (int_string): New function.
1704 (hex_string): New function (from language.c).
1705 (hex_string_custom): New function (from language.c).
1706 (octal2str): New function.
1707 (decimal2str): Add width parameter.
1708 (paddr_u): Use new decimal2str interface.
1709 (paddr_d): Ditto.
1710 * defs.h (hex_string): Declare.
1711 (hex_string_custom): Declare.
1712 (int_string): Declare.
1713 * printcmd.c (print_scalar_formatted): Remove localized binary
1714 formatting.
1715 * valprint.c (print_longest): Use int_string.
1716 (print_floating): Use C hex format.
1717 (print_hex_chars): Ditto.
1718 (print_binary_chars): Remove language-specific formatting.
1719 (print_octal_chars): Use C octal format.
1720 (print_decimal_chars): Delocalize format.
1721 (print_decimal): Remove.
1722 * ada-lang.c (ada_language_defn): Remove language-specific number
1723 formatting entries.
1724 * p-lang.c (pascal_language_defn): Ditto.
1725 * c-lang.c (c_language_defn): Ditto.
1726 (cplus_language_defn): Ditto.
1727 (asm_language_defn): Ditto.
1728 (minimal_language_defn): Ditto.
1729 * f-lang.c (f_language_defn): Ditto.
1730 * jv-lang.c (java_language_defn): Ditto.
1731 * m2-lang.c (m2_language_defn): Ditto.
1732 * scm-lang.c (scm_language_defn): Ditto.
1733 * objc-lang.c (objc_language_defn): Ditto.
1734 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1735 new interface.
1736 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1737 * ui-out.c (ui_out_field_core_addr): Ditto.
1738 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1739 * exec.c (print_section_info): Ditto.
1740 * i387-tdep.c (print_i387_status_word): Ditto.
1741 (print_i387_control_word): Ditto.
1742 (i387_print_float_info): Ditto.
1743 * maint.c (maint_print_section_info): Ditto.
1744 * solib.c (info_sharedlibrary_command): Ditto.
1745 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1746 * symtab.c (print_msymbol_info): Ditto.
1747 * tracepoint.c (tracepoints_info): Ditto.
1748 * solib-frv.c (lm_base): Ditto.
1749 (frv_current_sos): Ditto.
1750 (enable_break2): Ditto.
1751 (enable_break): Ditto.
1752 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1753 (process_one_symbol): Ditto.
1754 * infcmd.c (program_info): Ditto.
1755 * mdebugread.c (parse_partial_symbols): Ditto.
1756 * symfile.c (add_symbol_file_command): Ditto.
1757 * cli/cli-cmds.c (edit_command): Ditto.
1758 (list_command): Ditto.
1759 * infcall.c (call_function_by_hand): Ditto.
1760 * remote-vx.c (vx_run_files_info): Ditto.
1761 (vx_wait): Ditto.
1762 (vx_attach): Ditto.
1763 (vx_detach): Ditto.
1764 (vx_kill): Ditto.
1765 * aix-thread.c (pdc_symbol_addrs): Ditto.
1766 (pdc_read_regs): Ditto.
1767 (pdc_write_regs): Ditto.
1768 (pdc_read_data): Ditto.
1769 (pdc_write_data): Ditto.
1770 * d10v-tdep.c (display_trace): Ditto.
1771 * rs6000-nat.c (find_toc_address): Ditto.
1772 * aix-thread.c: Don't include language.h.
1773 * buildsym.c: Ditto.
1774 * dbxread.c: Ditto.
1775 * mdebugread.c: Ditto.
1776 * rs6000-nat.c: Ditto.
1777 * buildsym.c (make_blockvector): Use renamed hex_string.
1778
33f2d567
JM
17792004-09-10 Jason Molenda (jmolenda@apple.com)
1780
1781 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1782 chars after 'if' or 'while' commands in user-defined commands.
1783
7b90c3f9
JB
17842004-09-08 Jim Blandy <jimb@redhat.com>
1785
1786 Fix bug reported and analyzed by Olivier Crete:
1787 * symfile.c (copy_section_addr_info): New function.
1788 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1789 original set of address arguments, instead of handwritten code
1790 that uses one length to allocate and a different length to
1791 initialize. Use make_cleanup_free_section_addr_info.
1792 * symfile.h (copy_section_addr_info): New declaration.
1793 * utils.c: #include "symfile.h".
1794 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1795 New functions.
1796 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1797 * Makefile.in (utils.o): Update dependencies.
1798
b26a6851
AC
17992004-09-08 Andrew Cagney <cagney@gnu.org>
1800
1801 * thread-db.c (keep_thread_db): Delete.
1802 (thread_db_new_objfile, thread_db_create_inferior)
1803 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1804
be24b061
MK
18052004-09-08 Mark Kettenis <kettenis@gnu.org>
1806
f6792ef4
MK
1807 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1808 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1809 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1810 (i386_frameless_signal_p): Remove prototype.
1811 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1812 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1813 I386_SSE_NUM_REGS.
1814 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1815 instead of FP0_REGNUM.
1816 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1817 of FP0_REGNUM and FPC_REGNUM.
1818
eeefdaa7
MK
1819 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1820 (sunos_solib_create_inferior_hook): Don't call
1821 sunos_relocate_main_executable.
1822
be24b061
MK
1823 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1824 solib_svr4_fetch_link_map_offsets to
1825 svr4_ilp32_fetch_link_map_offsets.
1826 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1827 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1828 svr4_ilp32_fetch_link_map_offsets.
1829 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1830
7c679d16
JB
18312004-09-07 Jim Blandy <jimb@redhat.com>
1832
1833 * frame.h (frame_register): Doc fix.
1834
1f04aa62
AC
18352004-09-07 Andrew Cagney <cagney@gnu.org>
1836
1837 * vx-share/wait.h: Delete #ifdef USG.
1838 * utils.c (request_quit): Ditto.
1839 * tui/tui.c (tui_reset): Ditto.
1840 * remote.c: Ditto.
1841 * remote-sds.c: Ditto.
1842 * remote-rdi.c: Ditto.
1843 * mdebugread.c: Ditto.
1844 * m68klinux-nat.c: Ditto.
1845 * infttrace.c: Ditto.
1846 * infptrace.c: Ditto.
1847 * i386v-nat.c: Ditto.
1848 * exec.c: Ditto.
1849 * dbxread.c: Ditto.
1850 * core-aout.c: Ditto.
1851
90edbfbc
JB
18522004-09-05 Joel Brobecker <brobecker@gnat.com>
1853
1854 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1855 heuristic_proc_desc.
1856 (mips_insn32_frame_cache): Likewise.
1857
01f4bf2b
JB
18582004-09-04 Joel Brobecker <brobecker@gnat.com>
1859
1860 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1861 left behind by error.
1862
8511a048
JB
18632004-09-04 Joel Brobecker <brobecker@gnat.com>
1864
1865 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1866 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1867
649dfe9f
JB
18682004-09-04 Joel Brobecker <brobecker@gnat.com>
1869
1870 * config/rs6000/xm-aix4.h: Remove this file.
1871 * config/rs6000/aix4.mh (XM_FILE): Delete.
1872
6e50f889
JB
18732004-09-04 Joel Brobecker <brobecker@gnat.com>
1874
1875 * config/rs6000/xm-rs6000.h: Remove this file.
1876 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1877
b8c4aece
AC
18782004-09-03 Andrew Cagney <cagney@gnu.org>
1879
fb603883
AC
1880 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1881 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1882 only use.
1883
c9343fd1
AC
1884 * mips-tdep.c (temp_saved_regs): Delete.
1885 (set_reg_offset): Replace saved_regs parameter with this_cache.
1886 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1887 (mips32_heuristic_proc_desc): Add this_cache parameter.
1888 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1889 (after_prologue): Pass a NULL this_cache.
1890
9733cfe1
AC
1891 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1892 non-kernel trap prologues.
1893
0d5febcc
AC
1894 * mips-tdep.c (find_proc_desc): Delete function.
1895 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1896 simplify.
1897 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1898 mips_insn32_frame_cache.
1899
9733cfe1 1900 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
1901 Simplify as NEXT_FRAME is NULL.
1902 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1903
177f84a3
AC
1904 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1905 local variable.
1906 (mips_skip_prologue): Update.
1907
465f7520
AC
1908 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1909 "cur_frame" parameter.
177f84a3
AC
1910 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1911 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 1912
e38b8658
AC
1913 * config/vax/nm-obsd.h: Delete file.
1914 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1915 * config/vax/nm-nbsd.h: Delete file.
1916 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1917 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1918 * config/sh/nm-nbsd.h: Delete file.
1919 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1920 * config/rs6000/nm-rs6000ly.h: Delete file.
1921 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1922 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1923 * config/powerpc/nm-obsd.h: Delete file.
1924 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1925 * config/powerpc/nm-nbsd.h: Delete file.
1926 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1927 * config/pa/nm-obsd.h: Delete file.
1928 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1929 * config/mips/nm-nbsd.h: Delete file.
1930 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1931 * config/m88k/nm-obsd.h: Delete file.
1932 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1933 * config/m68k/nm-nbsd.h: Delete file.
1934 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1935 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1936 * config/i386/nm-nbsd.h: Delete file.
1937 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1938 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1939 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1940 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1941 * config/i386/nm-i386lynx.h: Delete file.
1942 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1943 * config/arm/nm-nbsd.h: Delete file.
1944 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1945 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1946
be1ed680
AC
1947 * config/i386/tm-fbsd.h: Delete file.
1948 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1949 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1950
4b392b26
AC
1951 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1952 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1953 * config/rs6000/aix4.mt (TM_FILE): Set to
1954 config/rs6000/tm-rs6000.h.
1955 * config/powerpc/tm-ppc-aix.h: Delete file.
1956 * config/powerpc/aix.mt (TM_FILE): Set to
1957 config/rs6000/tm-rs6000.h.
1958 * config/m68k/tm-linux.h: Delete file.
1959 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1960 * config/i386/tm-linux64.h: Delete file.
1961 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1962 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1963
f3219c75
AC
1964 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1965 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1966 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1967 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1968 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1969 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1970 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1971 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1972 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1973
b8c4aece
AC
1974 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1975 gdb_host_cpu.
1976
8ac2e020
JB
19772004-09-02 Joel Brobecker <brobecker@gnat.com>
1978
1979 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1980 Minor reformatting. Some code factoring.
1981
c185a355
AC
19822004-09-02 Andrew Cagney <cagney@gnu.org>
1983
63f22f0d
AC
1984 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1985 * config/vax/tm-nbsd.h: Delete file.
1986 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1987 * config/sparc/tm-vxworks.h: Delete file.
1988 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1989 * config/sparc/tm-nbsd.h: Delete file.
1990 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1991 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1992 * config/sparc/tm-linux.h: Delete file.
1993 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1994 * config/s390/tm-linux.h: Delete file.
1995 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1996 * config/pa/tm-bsd.h: Delete file.
1997 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1998 * config/m68k/tm-obsd.h: Delete file.
1999 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2000 * config/m68k/tm-nbsd.h: Delete file.
2001 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2002 * config/i386/tm-vxworks.h: Delete file.
2003 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2004 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2005 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2006 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2007 * config/i386/tm-nbsd.h: Delete file.
2008 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2009 * config/i386/tm-i386lynx.h: Delete file.
2010 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2011 * config/cris/tm-cris.h: Delete file.
2012
0f475e27
AC
2013 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2014 * configure: Re-generate.
2015 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2016 * config/arm/tm-nbsd.h: Delete file.
2017
458ed000
AC
2018 * config/powerpc/tm-ppcle-sim.h: Delete.
2019 * config/powerpc/tm-ppcle-eabi.h: Delete.
2020 * config/powerpc/tm-nbsd.h: Delete.
2021 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2022 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2023 tm-ppcle-eabi.h.
2024
f14375f3
AC
2025 * config/i386/nto.mh (NAT_FILE): Delete.
2026 * config/i386/nm-nto.h: Delete.
2027
c34d127c
AC
2028 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2029 * config/m68k/tm-os68k.h: Ditto.
2030 * config/m68k/tm-monitor.h: Ditto.
2031 * config/m68k/tm-cisco.h: Ditto.
2032 * config/m68k/st2000.mt (TM_FILE): Delete.
2033 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2034 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2035 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2036 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2037
f7f0fe03
AC
2038 * config/m68k/tm-st2000.h: Delete.
2039 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2040 * config/sparc/fbsd.mt (TM_FILE): Delete.
2041 * config/sparc/tm-fbsd.h: Delete.
2042
a2558533
AC
2043 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2044 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2045 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2046
b78960be
AC
2047 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2048 GDB_TM_FILE and GDB_XM_FILE.
2049 * gdbarch.c: Re-generate.
2050 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2051 quotes in macro definition.
2052 * configure.in: Re-generate.
2053
4d60522e
AC
2054 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2055 validating architecture methods.
2056 * gdbarch.c: Re-generate.
2057
5010d38b
AC
2058 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2059 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2060 GDB_MULTI_ARCH_PARTIAL.
2061 * gdbarch.h: Re-generate.
2062
c185a355
AC
2063 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2064 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2065 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2066 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2067 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2068 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2069 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2070 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2071 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2072 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2073 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2074 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2075
14aaa6ab
AC
20762004-09-01 Andrew Cagney <cagney@gnu.org>
2077
2078 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2079 and main_func_highpc.
2080 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2081 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2082 * nlmread.c (nlm_symfile_read): Update.
2083
a343eb3c
JB
20842004-09-01 Joel Brobecker <brobecker@gnat.com>
2085
2086 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2087 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2088 (find_proc_desc): Remove dead code.
2089
4fbbbd07
JB
20902004-09-01 Joel Brobecker <brobecker@gnat.com>
2091
2092 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2093
84acb35a
JJ
20942004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2095
2096 * observer.sh: Add struct so_list declaration.
2097 * Makefile.in: Add dependencies on observer.h for solib.c and
2098 breakpoint.c.
2099 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2100 function.
2101 (_initialize_breakpoint): Register
2102 disable_breakpoints_in_unloaded_shlib as an observer of the
2103 "solib unloaded" observation event.
2104 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2105 call decode_line_1 so unfound breakpoint errors are silent.
2106 * solib.c (update_solib_list): When a solib is discovered to have
2107 been unloaded by the program, notify all observers of the
2108 "solib unloaded" observation event.
2109
c8cd9f6c
AC
21102004-09-01 Andrew Cagney <cagney@gnu.org>
2111
2112 * frame.c: Include "objfiles.h".
2113 (inside_main_func): New function.
2114 (get_prev_frame): Use new inside_main_func.
2115 * Makefile.in (frame.o): Update dependencies.
2116 * defs.h (inside_main_func): Delete declaration.
2117 * blockframe.c (inside_main_func): Delete function.
2118
1168df01
JB
21192004-08-31 Jim Blandy <jimb@redhat.com>
2120
2121 * dwarf2read.c (is_vtable_name): New function, based on logic from
2122 read_structure_type, but passing the correct length to strncmp,
2123 and using 'sizeof' instead of 'strlen'.
2124 (read_structure_type): Call it.
2125
f14f9744
JB
21262004-08-31 Joel Brobecker <brobecker@gnat.com>
2127
2128 * config/powerpc/aix.mh: Add comment.
2129
386d4518
PG
21302004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2131
2132 * MAINTAINERS: Add self to Write-After-Approval.
2133
7d97d5e2
MI
21342004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2135
2136 * MAINTAINERS: Add self to Write-After-Approval.
2137
68f53502
AC
21382004-08-30 Andrew Cagney <cagney@gnu.org>
2139
2140 Fix PR breakpoints/1757.
2141 * infrun.c (struct execution_control_state): Replace
2142 remove_breakpoints_on_following_step with
2143 step_after_step_resume_breakpoint.
2144 (init_execution_control_state): Update.
2145 (handle_inferior_event): For signals, when stepping off a
2146 breakpoint, set step_after_step_resume_breakpoint. When
2147 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2148 (keep_going): Delete code handling
2149 remove_breakpoints_on_following_step.
2150
7ca2d3a3
DL
21512004-08-29 David Lecomber <david@streamline-computing.com>
2152
2153 Fix PR gdb/648
2154 * language.h (enum array_ordering): New enum.
2155 * language.h (struct language_defn): New la_array_ordering
2156 attribute.
2157 * language.c (unknown_language_defn, auto_language_defn)
2158 (local_language_defn): Ditto.
2159 * ada-lang.c (ada_language_defn): Ditto.
2160 * c-lang.c (c_language_defn, cplus_language_defn)
2161 (asm_language_defn, minimal_language_defn): Ditto.
2162 * f-lang.c (f_language_defn): Ditto.
2163 * jv-lang.c (java_language_defn): Ditto.
2164 * m2-lang.c (f_language_defn): Ditto.
2165 * objc-lang.c (objc_language_defn): Ditto.
2166 * p-lang.c (pascal_language_defn): Ditto.
2167 * scm-lang.c (scm_language_defn): Ditto.
2168 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2169 oriented large to small in type structure.
2170 * dwarf2read.c (read_array_order): New function.
2171 (read_array_type): Use read_array_order to check row/column
2172 major ordering.
2173
e354df01
NW
21742004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2175
2176 * target.c (target_resize_to_sections): Check
2177 current_target.to_sections for an old value when updating.
2178
9185ddce
JB
21792004-08-27 Joel Brobecker <brobecker@gnat.com>
2180
2181 * procfs.c (dbx_link_bpt_addr): New static global variable.
2182 (dbx_link_shadow_contents): New static global variable.
2183 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2184 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2185 if we just hit it.
2186 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2187 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2188 from run to run.
2189 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2190 after the inferior has been forked.
2191 (remove_dbx_link_breakpoint): New function.
2192 (dbx_link_addr): New function.
2193 (insert_dbx_link_bpt_in_file): New function.
2194 (insert_dbx_link_bpt_in_region): New function.
2195 (insert_dbx_link_breakpoint): New function.
2196 (proc_trace_syscalls_1): New function, extracted from
2197 proc_trace_syscalls.
2198 (proc_trace_syscalls): Replace extract code by call to
2199 proc_trace_syscalls_1.
2200 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2201 is no longer valid.
2202
e6742ace
JB
22032004-08-25 Jim Blandy <jimb@redhat.com>
2204
2205 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2206
8fb3e588
AC
22072004-08-25 Andrew Cagney <cagney@gnu.org>
2208
629a41ee
AC
2209 * infrun.c (struct execution_control_state): Delete field
2210 "stepping_through_sigtramp".
2211 (init_execution_control_state): Do not set same.
2212 (context_switch): Do not pass same to save_infrun_state and
2213 load_infrun_state.
2214 * gdbthread.h (struct thread_info): Delete field
2215 stepping_through_sigtramp.
2216 (save_infrun_state, load_infrun_state): Delete parameter
2217 stepping_through_sigtramp.
2218 * thread.c (load_infrun_state, save_infrun_state): Update.
2219
8fb3e588
AC
2220 * infrun.c: Re-indent. Move expression operators to the beginning
2221 of the line. Remove long disabled #if 0 code.
2222
49c54768
AC
22232004-08-24 Andrew Cagney <cagney@gnu.org>
2224
2225 * doublest.h (floatformat_ieee_quad): Rename
2226 floatformat_ia64_quad.
2227 * doublest.c (floatformat_ieee_quad): Rename
2228 floatformat_ia64_quad.
2229 (_initialize_doublest): Update.
2230
5ca2e327
JB
22312004-08-24 Jim Blandy <jimb@redhat.com>
2232
87808bd6
JB
2233 * dwarf2expr.h (struct dwarf_expr_context): New members
2234 'num_pieces' and 'pieces', for returning the result of an
2235 expression that uses DW_OP_piece.
2236 (struct dwarf_expr_piece): New struct type.
2237 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2238 pieces.
2239 (free_dwarf_expr_context): Free pieces, if any.
2240 (add_piece): New function.
2241 (execute_stack_op): Implement DW_OP_piece.
2242 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2243 expression is a list of pieces, print an error message.
2244 (dwarf2_loc_desc_needs_frame): If the expression yields
2245 pieces, and any piece is in a register, then we need a frame.
2246
5ca2e327
JB
2247 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2248 the stack until we've decided what sort of result the evaluation
2249 has produced. Use separate variables, with more specific names.
2250
2afeb6b8
RE
22512004-08-23 Richard Earnshaw <rearnsha@arm.com>
2252
2253 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2254 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2255 (arm_netbsd_init_abi_common): Register them.
2256
5885ab49
MK
22572004-08-22 Mark Kettenis <kettenis@gnu.org>
2258
fda820a6
MK
2259 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2260
1c5bf419
MK
2261 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2262 safe_frame_unwind_memory instead of target_read_memory.
2263
8cbba7c8
MK
2264 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2265 Reorder includes.
2266 (fetch_register, store_register): Remove prototypes.
2267 (child_resume): Reorganize code and comments such that it is
2268 grouped a bit more logically.
2269 (attach): Explicitly compare errno against 0.
2270 (detach): Likewise. Use perror_with_name instead of
2271 print_sys_errmsg.
2272 * Makefile.in (infptrace.o): Update dependencies.
2273
c5fa4245
MK
2274 * ia64-linux-nat.c: Update copyright year.
2275 (fetch_debug_register, store_debug_register)
2276 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2277 PTRACE_TYPE_ARG3.
2278 * config/ia64/nm-linux.h: Update copyright year.
2279 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2280
387c058c
MK
2281 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2282 from CORE_ADDR to struct frame_info *. Use
2283 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2284 (amd64_linux_sigtramp_p): Adjust for changed signature of
2285 and64_linux_sigtramp_start
2286
277215a6
MK
2287 * gdb_ptrace.h: GNU/Linux.
2288
25f6178e
MK
2289 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2290 Remove defines.
2291
652fc137
MK
2292 * infptrace.c: Include "gdb_assert.h".
2293 (PTRACE_XFER_TYPE): Remove define.
2294 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2295 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2296 Tweak comment.
2297 (fetch_inferior_registers, store_inferior_registers): Remove
2298 redundant culry braces. Tweak comment. s/regno/regnum.
2299 * Makefile.in (infptrace.o): Update dependencies.
2300
5885ab49
MK
2301 * configure.in: Change test for return type of ptrace to default
2302 to `long' instead of `int'.
2303 * configure: Regenerate.
2304
11003ae3
MK
23052004-08-21 Mark Kettenis <kettenis@gnu.org>
2306
6b95110c
MK
2307 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2308
bcb3dc3d
MK
2309 * configure.in: Check for ttrace function.
2310 * configure, config.in: Regenerate.
2311
11003ae3
MK
2312 * gdb_ptrace.h: New file.
2313 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2314 <sys/ptrace.h>.
2315 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2316 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2317 (attach): Don't define PT_ATTACH.
2318 (detach): Don't define PT_DETACH.
2319 * Makefile.in (gdb_ptrace_h): New variable.
2320 (infptrace.o): Update dependencies.
2321
f8707cac
MK
23222004-08-16 Mark Kettenis <kettenis@gnu.org>
2323
2324 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2325 instead of `int' if not already defined.
2326 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2327 PTRACE_TYPE_ARG3.
2328 * infptrace.c (call_ptrace): Revert change that replaced
2329 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2330
655c5466
MK
23312004-08-15 Mark Kettenis <kettenis@gnu.org>
2332
156e5ba7
MK
2333 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2334 Remove defines.
2335
de9a9e51
MK
2336 * linux-nat.c (kill_inferior): Add missing third and fourth
2337 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2338
88800403
MK
2339 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2340 PTRACE_TYPE_RET.
2341
849a1d7c
MK
2342 * proc-why.c (proc_prettyfprint_why): Fix format string.
2343
61ad16d1
MK
2344 * solib-osf.c (osf_current_sos): Remove unsused label.
2345
a6ed5501
MK
2346 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2347 curses headers.
2348 * configure, config.in: Regenerate.
2349 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2350 <ncurses/ncurses.h>.
2351
016ddeca
MK
2352 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2353 * config/nm-nbsd.h: Update copyright year.
2354 (PTRACE_ARG3_TYPE): Remove define.
2355
49ec097f
MK
2356 * sparc-nat.c (fetch_inferior_registers)
2357 (store_inferior_registers, sparc_xfer_wcookie):
2358 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2359
9f8e0089
MK
2360 * alphabsd-nat.c (fetch_inferior_registers):
2361 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2362 PTRACE_TYPE_ARG3.
2363 * amd64bsd-nat.c (fetch_inferior_registers)
2364 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2365 PTRACE_TYPE_ARG3.
2366 * armnbsd-nat.c: Update copyright year.
2367 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2368 (store_register, store_regs, store_fp_register, store_fp_regs):
2369 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2370 * hppabsd-nat.c (fetch_inferior_registers)
2371 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2372 PTRACE_TYPE_ARG3.
2373 * i386bsd-nat.c (fetch_inferior_registers)
2374 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2375 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2376 * m68kbsd-nat.c (fetch_inferior_registers)
2377 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2378 PTRACE_TYPE_ARG3.
2379 * m88kbsd-nat.c (fetch_inferior_registers)
2380 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2381 PTRACE_TYPE_ARG3.
2382 * mipsnbsd-nat.c: Update copyright year.
2383 (fetch_inferior_registers, store_inferior_registers):
2384 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2385 * ns32knbsd-nat.c: Update copyright year.
2386 (fetch_inferior_registers, store_inferior_registers):
2387 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2388 * ppcnbsd-nat.c (fetch_inferior_registers):
2389 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2390 PTRACE_TYPE_ARG3.
2391 * ppcobsd-nat.c (fetch_inferior_registers):
2392 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2393 PTRACE_TYPE_ARG3.
2394 * shnbsd-nat.c: Update copyright year.
2395 (fetch_inferior_registers, store_inferior_registers):
2396 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2397 * vaxbsd-nat.c (fetch_inferior_registers)
2398 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2399 PTRACE_TYPE_ARG3.
2400
655c5466
MK
2401 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2402 PTRACE_TYPE_ARG3.
2403 * infptrace.c (call_ptrace, child_resume, attach, detach)
2404 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2405 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2406 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2407 PTRACE_TYPE_ARG3.
2408
c40d0d10
MK
24092004-08-14 Mark Kettenis <kettenis@gnu.org>
2410
5cb0ff31
MK
2411 * defs.h: Remove out-of-date comment.
2412 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2413 [!GETENV_PROVIDED] (getenv): Remove prototype.
2414
5f0f34cb
MK
2415 * standalone.c: Remove file.
2416 * Makefile.in (standalone.o): Remove dependency.
2417
7532965f
MK
2418 * i386-linux-nat.c (dummy_sse_values): Remove function and
2419 prototype.
2420 (i386_linux_dr_get): Fix typo in comment.
2421 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2422
1bdc6c53
MK
2423 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2424
c40d0d10
MK
2425 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2426 from declaration.
2427 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2428 from definition.
2429
64218d3e
MK
24302004-08-13 Mark Kettenis <kettenis@gnu.org>
2431
2432 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2433 parenthesis in definition.
2434 * configure: Regenerated.
2435
926c94e7
MC
24362004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2437
2438 * PROBLEMS: Mention build/1411.
2439
69489883
NN
24402004-08-09 Robert Millan <robertmh@gnu.org>
2441
2442 Committed by Nathanael Nerode.
2443 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2444 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2445
ebb7c577
AC
24462004-08-12 Andrew Cagney <cagney@gnu.org>
2447
2448 * NEWS: Mention fixes in GDB 6.2.1.
2449 * PROBLEMS: Remove mention of mips-irix.
2450
232d697c
JB
24512004-08-11 Joel Brobecker <brobecker@gnat.com>
2452
2453 * config/powerpc/xm-aix.h: Delete.
2454 * config/powerpc/aix.mh (MH_FILE): Remove.
2455 * config/powerpc/aix432.mh (MH_FILE): Remove.
2456
72f4e82b
JB
24572004-08-11 Joel Brobecker <brobecker@gnat.com>
2458
2459 * config/powerpc/aix.mh: Remove obsolete comment.
2460 * config/powerpc/aix432.mh: Likewise.
2461
0687ccb2
JB
24622004-08-11 Joel Brobecker <brobecker@gnat.com>
2463
2464 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2465
dbf3ada7
JB
24662004-08-11 Joel Brobecker <brobecker@gnat.com>
2467
e08e1886
JB
2468 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2469 this file is now empty.
2470 * config/xm-aix4.h: Remove, this file is no longer included
2471 anywhere.
2472
24732004-08-11 Joel Brobecker <brobecker@gnat.com>
2474
2475 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2476 that file is now empty.
dbf3ada7
JB
2477 (termdef): Remove prototype, function no longer used.
2478
4c525ef6
JB
24792004-08-11 Joel Brobecker <brobecker@gnat.com>
2480
2481 * doc/gdbint.texinfo (Host Definition): Remove documentation
2482 for USE_O_NOCTTY, no longer used.
2483 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2484 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2485
82e0b968
JB
24862004-08-11 Joel Brobecker <brobecker@gnat.com>
2487
2488 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2489 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2490 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2491
f2acbe1c
MK
24922004-08-11 Mark Kettenis <kettenis@gnu.org>
2493
daa98270
MK
2494 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2495 instead of FIVE_ARG_PTRACE.
2496
f2acbe1c
MK
2497 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2498 (new_tty): Use O_NOCTTY unconditionally.
2499
cc377e6b
MK
25002004-08-10 Mark Kettenis <kettenis@gnu.org>
2501
2502 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2503 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2504 fflush on stdout.
2505
3bcc18fa
JB
25062004-08-10 Joel Brobecker <brobecker@gnat.com>
2507
2508 * xcoff_symfile_finish: Replace last call to xmfree by call
2509 to xfree.
2510
7936743b
AC
25112004-08-10 Andrew Cagney <cagney@gnu.org>
2512
cc503c8a
AC
2513 * main.c (captured_main): Delete call to init_malloc.
2514 * defs.h (init_malloc): Delete declaration.
2515 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2516 (init_malloc): Delete functions.
2517
2dc74dc1
AC
2518 * defs.h (xmfree): Delete.
2519 * utils.c (xmfree): Delete function.
2520 (xfree): Inline calls to xmfree and mfree.
2521 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2522 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2523 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2524 * somread.c (som_symfile_finish): Ditto.
2525 * objfiles.c (allocate_objfile, free_objfile):
2526 * nlmread.c (nlm_symfile_finish): Ditto.
2527 * hpread.c (hpread_symfile_finish): Ditto.
2528 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2529 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2530 * coffread.c (coff_symfile_finish): Ditto.
2531
aa2ee5f6
AC
2532 * defs.h (xmcalloc): Delete declaration.
2533 * utils.c (xmcalloc): Delete.
2534 (xcalloc): Inline calls to xmcalloc and mcalloc.
2535 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2536 xcalloc and xfree.
2537 * symtab.c (create_demangled_names_hash): Ditto.
2538
0efffb96
AC
2539 * defs.h (xmrealloc): Delete.
2540 * utils.c (xmrealloc): Delete.
2541 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2542 * symmisc.c (extend_psymbol_list): Use xrealloc.
2543 * source.c (find_source_lines): Ditto.
2544 * hpread.c (hpread_lookup_type): Ditto.
2545 * dbxread.c (add_bincl_to_list): Ditto.
2546
7936743b
AC
2547 * utils.c (xmmalloc): Delete.
2548 (xmalloc): Inline xmmalloc and mmalloc calls.
2549 (msavestring): Use xmalloc.
2550 * defs.h (xmmalloc): Delete declaration.
2551 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2552 xmmalloc.
2553 * symmisc.c (extend_psymbol_list): Ditto.
2554 * symfile.c (init_psymbol_list): Ditto.
2555 * source.c (find_source_lines): Ditto.
2556 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2557 * elfread.c (elf_symtab_read): Ditto.
2558 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2559 * coffread.c (coff_symfile_init): Ditto.
2560
252ab814
DC
25612004-08-10 David Carlton <carlton@bactrian.org>
2562
2563 * MAINTAINERS: Remove David Carlton from c++ testsuite
2564 maintainers.
2565
8f5ba92b
JG
25662004-08-10 Jerome Guitton <guitton@gnat.com>
2567
2568 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2569 print a line feed before the prompt.
2570
21749010
MK
25712004-08-10 Mark Kettenis <kettenis@gnu.org>
2572
2573 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2574
1f011ce2
JB
25752004-08-09 Joel Brobecker <brobecker@gnat.com>
2576
2577 General cleanup of the AIX xm include file:
2578 * config/xm-aix4.h (fd_set): Remove undefine.
2579 Remove include of <sys/select.h>.
2580 (HAVE_TERMIO): Remove define.
2581 (USG): Likewise.
2582 (NULL): Remove redefine.
2583 (alloca): Remove #pragma.
2584 (vfork): Remove define.
2585 (termdef): Remove.
2586 (SIGWINCH_HANDLER): Remove.
2587 (SIGWINCH_HANDLER_BODY): Remove.
2588
cf4e7692
MK
25892004-08-09 Mark Kettenis <kettenis@gnu.org>
2590
2591 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2592 GDB_OSABI_OPENBSD_ELF.
2593
ac5754fa
MK
25942004-08-07 Robert Millan <robertmh@gnu.org>
2595
2596 * bsd-kvm.c: Check for nlist.h before including it.
2597
086ec9eb
MK
25982004-08-09 Mark Kettenis <kettenis@gnu.org>
2599
bbe06c74
MK
2600 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2601 sigcontext' offset consistency checks for ancient BSD.
2602
3aa7b3b3
MK
2603 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2604
086ec9eb
MK
2605 * configure.in: Check for <sys/types.h>. Check return and
2606 argument types of ptrace.
2607 * configure, config.in: Regenerate.
2608
09991fa0
JB
26092004-08-09 Jim Blandy <jimb@redhat.com>
2610
2611 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2612 rs6000_register_sim_regno): Doc fixes.
2613
fed7ba43
JB
26142004-08-08 Joel Brobecker <brobecker@gnat.com>
2615
2616 * mips-tdep.c: Include "floatformat.h".
2617 (n32n64_floatformat_always_valid): New function.
2618 (floatformat_n32n64_long_double_big): New constant.
2619 (mips_gdbarch_init): Set size and format of long double
2620 for N32 and N64 ABIs.
2621 * Makefile.in (mips-tdep.o): Update dependencies.
2622
456fcf94
AC
26232004-08-08 Andrew Cagney <cagney@gnu.org>
2624
2f9b146e
AC
2625 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2626 print. Improve script's error messages.
2627 * gdbarch.h: Re-generate.
2628
456fcf94
AC
2629 * gdbarch.sh (pformat): New function.
2630 (float_format, double_format, long_double_format): List with bit
2631 members. Use pformat when printing.
2632 * gdbarch.c, gdbarch.h: Re-generate.
2633
69e9e646
NW
26342004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2635
2636 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2637 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2638 (ppcnbsd_supply_pcb): New function.
2639 (_initialize_ppcnbsd_nat): New prototype and function.
2640 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2641 (LOADLIBES): New variable.
2642 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2643
5ef2d0aa
AC
26442004-08-08 Andrew Cagney <cagney@gnu.org>
2645
2646 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2647 (builtin_type_ieee_double, builtin_type_ia64_quad)
2648 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2649 BE/LE floating-point types.
2650 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2651 (builtin_type_ieee_double, builtin_type_ia64_quad)
2652 (builtin_type_ia64_spill): Declare.
2653 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2654 (floatformat_ieee_double, floatformat_arm_ext)
2655 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2656 of LE/BE floatformats.
2657 * doublest.h: (struct floatformat, floatformat_ieee_single)
2658 (floatformat_ieee_double, floatformat_arm_ext)
2659 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2660
5c7f2947
MK
26612004-08-08 Mark Kettenis <kettenis@gnu.org>
2662
ecac404d
MK
2663 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2664
9b8607ce
MK
2665 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2666 instead of regcache_raw_supply when storing the registers.
2667
f6052080
MK
2668 * i386gnu-nat.c: Update copyright year.
2669 (gnu_store_registers): Don't use deprecated_registers and
2670 deprecated_registers_valid. Use regcache_valid_p and
2671 regcache_raw_supply instead.
2672
17777823
MK
2673 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2674 frame_pc_unwind.
2675
5240ceac
MK
2676 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2677 variables. Incapitalized "process".
2678
5c7f2947
MK
2679 * configure.in: Add cursesX to the list of possible curses libs.
2680 Add cursesX.h to the list of possible curses headers.
2681 * configure, config.in: Regenerate.
2682
da7d81e3
NW
26832004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2684
2685 * configure.in: Test for struct lwp in <sys/lwp.h>.
2686 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2687 the offset of l_addr in struct lwp.
2688
7f245d65
NW
26892004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2690
2691 * bsd-kvm.c: Include "gdbcore.h"
2692 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2693
47b3f456
AC
26942004-08-07 Andrew Cagney <cagney@gnu.org>
2695
70bd8e24
AC
2696 * gdbtypes.c (build_flt, build_complex): New functions.
2697 (gdbtypes_post_init): Use.
2698
9b0dea39
AC
2699 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2700
5cf7abac
AC
2701 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2702 through to builtin_type_uint128.
2703
64d2b26d
AC
2704 * c-exp.y: Use builtin_type function to obtain builtin types.
2705
7ad6570d
AC
2706 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2707 builtin_uint128.
2708 * gdbtypes.c (gdbtypes_post_init): Update.
2709 (build_gdbtypes): Move initialization of builtin_type_int0
2710 through to builtin_type_uint128 from here ...
2711 (_initialize_gdbtypes): ... to here.
2712 * d10v-tdep.c (d10v_register_type): Update.
2713
47b3f456
AC
2714 * doublest.c: Update copyright.
2715 (floatformat_from_length): Call error when floatformat is NULL.
2716 (extract_floating_by_length): Remove NULL fmt check.
2717 (store_floating_by_length): Ditto.
2718
0a8146bf
AC
27192004-08-07 Andrew Cagney <cagney@gnu.org>
2720
2721 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2722 that the register is valid.
2723
c0ccb908
MK
27242004-08-05 Mark Kettenis <kettenis@chello.nl>
2725
8e6bed05
MK
2726 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2727 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2728 struct frame_info *. Use safe_frame_unwind_memory instead of
2729 deprecated_read_memory_nobpt.
2730 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2731 changed signature of i386_linux_sigtramp_start and
2732 i386_linux_rt_sigtramp_start.
2733
24f9f5e3
MK
2734 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2735 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2736 instead of deprecated_read_memory_nobpt.
2737 (i386nbsd_sigtramp_p): Adjust for changed signature of
2738 i386nbsd_sigtramp_offset.
2739
c822af0c
MK
2740 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2741 safe_frame_unwind_memory instead of target_read_memory.
2742
c0ccb908
MK
2743 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2744 !NO_SYS_FILE.
2745 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2746 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2747 (_initialize_kernel_u_addr): Remove prototype and function.
2748 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2749 !NO_SYS_FILE.
2750 * xcoffread.c: Likewise.
2751
b9e1c0d6
MK
27522004-08-06 Mark Kettenis <kettenis@gnu.org>
2753
2754 * vax-nat.c: New file.
2755 * vaxbsd-nat.c: Tweak comment.
2756 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2757 vaxnbsd-tdep.c.
2758 (vax-nat.o): New dependency.
2759 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2760 (vax-*-ultrix2*): Remove.
2761 * config/vax/vax.mh: New file.
2762 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2763 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2764 (vax_register_u_addr): New prototype.
2765 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2766 * config/vax/vaxult2.mh: Remove file.
2767 * config/vax/vaxult.mh: Remove file.
2768 * config/vax/vaxbsd.mh: Remove file.
2769 * config/vax/vax.mt (TM_FILE): Remove.
2770 * config/vax/tm-vaxbsd.h: Remove file.
2771
9ad7bec7
JB
27722004-08-06 Joel Brobecker <brobecker@gnat.com>
2773
2774 * aix-thread.c (get_signaled_thread): New function.
2775 (iter_trap): Delete, no longer used.
2776 (iter_tid): New function.
2777 (pd_update): Find the thread that received the SIGTRAP signal
2778 by first locating the kernel thread, and then finding its
2779 associated thread.
2780
bf0d233d
UW
27812004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2782
2783 * lin-lwp.c (child_wait): Continue inferior after processing
2784 PTRACE_EVENT_CLONE event.
2785
d0f853e1
NN
27862004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2787
2788 * MAINTAINERS: Add self to Write-After-Approval.
2789
ab14aeb0
JJ
27902004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2791
2792 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2793 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2794
9c8dbfa9
AC
27952004-08-05 Andrew Cagney <cagney@gnu.org>
2796
c8f3ca46
AC
2797 * config/xm-sysv4.h: Delete file.
2798 * config/mips/xm-irix5.h: Delete file.
2799 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2800 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2801 * config/ia64/xm-aix.h: Delete file.
2802 * config/ia64/aix.mh (XM_FILE): Delete.
2803 * config/pa/xm-hppah.h: Delete file.
2804 * config/pa/hpux11w.mh (XM_FILE): Delete.
2805 * config/pa/hpux11.mh (XM_FILE): Delete.
2806 * config/pa/hpux1020.mh (XM_FILE): Delete.
2807 * config/pa/hppahpux.mh (XM_FILE): Delete.
2808
5f7daaff
AC
2809 * config/alpha/xm-alphalinux.h: Delete file.
2810 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2811 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2812 * config/alpha/xm-alphaosf.h: Delete file.
2813 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2814 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2815 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2816 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2817
69babf95
AC
2818 * config/i386/xm-i386v.h: Delete file.
2819 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2820 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2821 * config/i386/xm-i386sco.h: Delete file.
2822 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2823 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2824 * config/i386/xm-i386v4.h: Delete file.
2825 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2826 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2827 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2828 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2829
6f009c8a
AC
2830 * config/vax/xm-vax.h: Delete file.
2831 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2832 * config/vax/xm-vaxult2.h: Delete file.
2833 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2834 * config/vax/vaxult2.mh (XM_FILE): Delete.
2835 * config/vax/xm-vaxult.h: Delete file.
2836 * config/vax/vaxult.mh (XM_FILE): Delete.
2837 * config/vax/xm-vaxbsd.h: Delete file.
2838 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2839
9c8dbfa9
AC
2840 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2841 * gdbarch.h, gdbarch.c: Re-generate.
2842 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2843 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2844 * frame.h: Delete deprecated_read_fp from comments.
2845 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2846 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2847
84367a3e
MK
28482004-08-04 Mark Kettenis <kettenis@gnu.org>
2849
9c8e3411
MK
2850 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2851 trampoline in OpenBSD 3.5-current.
2852
b87bc0d8
MK
2853 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2854 SSE registers.
2855
84367a3e
MK
2856 * Makefile.in: Remove embedded page breaks.
2857
a44bddec
JB
28582004-08-04 Jim Blandy <jimb@redhat.com>
2859
7ab3286f
JB
2860 * regcache.c (regcache_raw_read): Assert that, after calling
2861 target_fetch_registers, the register we're reading is cached.
2862
a44bddec
JB
2863 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2864 a call to 'internal_error', with a more helpful error message.
2865 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 2866 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 2867
35124113
AC
28682004-08-04 Andrew Cagney <cagney@gnu.org>
2869
2870 * Makefile.in: Update dependencies.
2871
9f643768
JB
28722004-08-04 Jim Blandy <jimb@redhat.com>
2873
6ced10dd
JB
2874 Change the layout of the PowerPC E500 raw register cache to allow
2875 the lower 32-bit halves of the GPRS to be their own raw registers,
2876 not pseudoregisters.
2877 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2878 add ppc_ev0_upper_regnum flag.
2879 * rs6000-tdep.c: #include "reggroups.h".
2880 (spe_register_p): Recognize the ev upper half registers as SPE
2881 registers.
2882 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2883 registers.
2884 (e500_move_ev_register): New function.
2885 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2886 vector registers are the pseudo-registers now, formed by splicing
2887 together the gprs and the upper-half registers.
2888 (e500_register_reggroup_p): New function.
2889 (P): Macro deleted.
2890 (P8, A4): New macro.
2891 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2892 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2893 macros.
2894 (registers_e500): Rearrange register set so that the raw register
2895 set contains 32-bit GPRs and upper-half registers, and the SPE
2896 vector registers become pseudo-registers.
2897 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2898 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2899 register numbers are now the same for the E500 as they are for
2900 other PowerPC variants. Register e500_register_reggroup_p as the
2901 register group function for the E500.
2902 * Makefile.in (rs6000-tdep.o): Update dependencies.
2903
2904 Adapt PPC E500 native support to the new raw regcache layout.
2905 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2906 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2907 (fetch_spe_register, store_spe_register): Handle fetching/storing
2908 all the SPE registers at once, if regno == -1. These now take
2909 over the job of fetch_spe_registers and store_spe_registers.
2910 (fetch_spe_registers, store_spe_registers): Deleted.
2911 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2912 unconditionally; they're always raw. Fetch/store SPE upper half
2913 registers, if present, instead of ev registers.
2914 (fetch_register, store_register): Remove sanity checks: gprs are
2915 never pseudo-registers now, so we never need to even mention any
2916 registers that are ever pseudoregisters.
2917
9f643768
JB
2918 Use a fixed register numbering when communicating with the PowerPC
2919 simulator.
2920 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2921 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2922 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2923 New functions.
2924 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2925 init_sim_regno_table.
2926 * Makefile.in (gdb_sim_ppc_h): New variable.
2927 (rs6000-tdep.o): Update dependencies.
2928
1e2279c8
AC
29292004-08-02 Andrew Cagney <cagney@gnu.org>
2930
1d94326f
AC
2931 * cris-tdep.c (cris_register_size): Restore function, still used
2932 locally.
2933
331ae7ed
AC
2934 * gdbarch.sh (deprecated_target_read_fp)
2935 (deprecated_frame_locals_address, deprecated_frame_args_address)
2936 (deprecated_frame_chain_valid, deprecated_frame_chain)
2937 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2938 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2939 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2940 * gdbarch.h, gdbarch.c: Re-generate.
2941 * regcache.c (deprecated_read_fp): Do not call
2942 DEPRECATED_TARGET_READ_FP_P.
2943 * infcmd.c (default_print_registers_info): Do not call
2944 DEPRECATED_DO_REGISTERS_INFO.
2945 * frame-base.c (default_frame_locals_address): Do not call
2946 DEPRECATED_FRAME_LOCALS_ADDRESS.
2947 (default_frame_args_address): Do not call
2948 DEPRECATED_FRAME_ARGS_ADDRESS.
2949
1e2279c8
AC
2950 * gdbarch.sh (deprecated_register_raw_size)
2951 (deprecated_register_virtual_size:int): Delete.
2952 * gdbarch.h, gdbarch.c: Re-generate.
2953 * cris-tdep.c (cris_register_size): Delete.
2954 (cris_gdbarch_init): Update.
2955 * alpha-tdep.c (alpha_register_raw_size)
2956 (alpha_register_virtual_size): Delete.
2957 (alpha_gdbarch_init): Update.
2958
a90c06b4
AC
2959 * gdbarch.sh (deprecated_register_virtual_type)
2960 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2961 (deprecated_dummy_write_sp): Delete.
2962 * gdbarch.h, gdbarch.c: Re-generate.
2963
f42accbe
AC
2964 * gdbarch.sh (deprecated_register_bytes): Delete.
2965 * gdbarch.h, gdbarch.c: Re-generate.
2966 * regcache.c (deprecated_register_bytes): New function.
2967 * regcache.h (deprecated_register_bytes): Declare.
2968 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2969 * v850-tdep.c (v850_gdbarch_init): Update.
2970 * sh64-tdep.c (sh64_gdbarch_init): Update.
2971 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2972 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2973 * mcore-tdep.c (mcore_gdbarch_init): Update.
2974 * cris-tdep.c (cris_gdbarch_init): Update.
2975 * arm-tdep.c (arm_gdbarch_init): Update.
2976 * remote.c (init_remote_state): Update.
2977 * remote-vx.c (vx_prepare_to_store): Update.
2978 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2979 * irix5-nat.c (fetch_core_registers): Update.
2980 * cris-tdep.c (cris_register_bytes_ok): Update.
2981 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2982
45c9dd44
AC
2983 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2984 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2985 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2986 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2987 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2988 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2989 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2990 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2991 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2992 with mips_insn16 and mips_insn32.
2993
3acba339
AC
2994 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2995 * rs6000-tdep.c (rs6000_push_dummy_call)
2996 (rs6000_extract_return_value): Use register_size.
2997 * xstormy16-tdep.c (xstormy16_get_saved_register)
2998 (xstormy16_extract_return_value): Ditto.
2999 * valops.c (value_assign): Ditto.
3000 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3001 * v850-tdep.c (v850_extract_return_value): Ditto.
3002 * tracepoint.c (collect_symbol): Ditto.
3003 * target.c (debug_print_register): Ditto.
3004 * stack.c (frame_info): Ditto.
3005 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3006 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3007 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3008 (store_register_using_P): Ditto.
3009 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3010 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3011 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3012 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3013 * regcache.c (deprecated_read_register_bytes)
3014 (deprecated_write_register_bytes, read_register)
3015 (write_register): Ditto.
3016 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3017 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3018 * monitor.c (monitor_supply_register, monitor_fetch_register)
3019 (monitor_store_register): Ditto.
3020 * mn10300-tdep.c (mn10300_pop_frame_regular)
3021 (mn10300_print_register): Ditto.
3022 * mipsv4-nat.c (fill_fpregset): Ditto.
3023 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3024 (mips64_fill_fpregset): Ditto.
3025 * mi/mi-main.c (register_changed_p, get_register)
3026 (mi_cmd_data_write_register_values): Ditto.
3027 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3028 * irix5-nat.c (fill_gregset, fetch_core_registers):
3029 * infrun.c (write_inferior_status_register): Ditto.
3030 * infptrace.c (fetch_register, store_register): Ditto.
3031 * infcmd.c (default_print_registers_info): Ditto.
3032 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3033 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3034 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3035 * hpux-thread.c (hpux_thread_fetch_registers)
3036 (hpux_thread_store_registers): Ditto.
3037 * hppah-nat.c (store_inferior_registers, fetch_register):
3038 * findvar.c (value_from_register): Ditto.
3039 * dve3900-rom.c (fetch_bitmapped_register):
3040 * cris-tdep.c (cris_gdbarch_init): Ditto.
3041 * alpha-tdep.h: Ditto.
3042 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3043
01e1877c
AC
3044 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3045 DEPRECATED_REGISTER_RAW_SIZE from comments.
3046 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3047 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3048 DEPRECATED_REGISTER_RAW_SIZE.
3049 * findvar.c (value_of_register): Simplify by assuming that the
3050 registers raw and virtual sizes are identical.
3051 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3052 comment.
3053 * arch-utils.c (generic_register_size): Simplify by assuming
3054 register_type.
3055
73f458fb
AC
3056 * regcache.c (legacy_read_register_gen, real_register)
3057 (legacy_write_register_gen): Delete, not used.
3058
336a3131
AC
3059 * regcache.c (struct regcache_descr): Delete legacy_p.
3060 (init_legacy_regcache_descr): Delete function.
3061 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3062 Do not use deprecated register functions.
3063 (regcache_raw_read, deprecated_write_register_gen):
3064 (deprecated_read_register_gen, regcache_raw_write): Delete code
3065 predicated on legacy_p.
3066 (register_size): Delete check against register raw size.
3067
c1d546cd
AC
3068 * cris-tdep.c (cris_register_type): Replace
3069 cris_register_virtual_type.
3070 (cris_gdbarch_init): Update, set register_type.
3071
48c2c0a6
AC
3072 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3073 * gdbarch.h, gdbarch.c: Re-generate.
3074 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3075 (arm_gdbarch_init) Do not set frameless function invocation.
3076 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3077 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3078 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3079 (frv_gdbarch_init): Do not set frameless function invocation.
3080 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3081 * sh-tdep.c (sh_gdbarch_init): Ditto.
3082 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3083 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3084 * avr-tdep.c (avr_gdbarch_init): Ditto.
3085
474093a6
AC
3086 * blockframe.c (legacy_frame_chain_valid): Delete function.
3087
3c109c8b
AC
3088 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3089 and pc. Update comments.
3090 (pc_in_dummy_frame): Delete function.
3091 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3092 use the "id".
3093 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3094 call_hi, top and pc, use the id.
3095 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3096
96860204
AC
3097 * dummy-frame.c: Include "gdb_string.h".
3098 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3099 (generic_save_dummy_frame_tos): Delete.
3100 (dummy_frame_push): New function, replaces above.
3101 * dummy-frame.h: Update copyright.
3102 (dummy_frame_push): Declare.
3103 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3104 (generic_save_call_dummy_addr): Delete declarations.
3105 * infcall.c: Include "dummy-frame.h".
3106 (call_function_by_hand): Add locals caller_regcache,
3107 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3108 with call to frame_save_as_regcache plus cleanup. Delete calls to
3109 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3110 Move clear_proceed_status to just before the resume, add call to
3111 dummy_frame_push (discard cleanup).
3112 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3113 (dummy-frame.o): Add $(gdb_string_h).
3114
d67ec5db
AC
31152004-08-01 Andrew Cagney <cagney@gnu.org>
3116
3117 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3118 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3119 * dummy-frame.c (find_dummy_frame): Delete.
3120 (struct dummy_frame_cache, dummy_frame_sniffer)
3121 (dummy_frame_prev_register, dummy_frame_this_id)
3122 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3123 frame unwinder using a dummy_frame_cache.
3124
a81dcb05
AC
31252004-08-01 Andrew Cagney <cagney@gnu.org>
3126
3127 * frame.h (frame_save_as_regcache): Declare.
3128 * frame.c (frame_save_as_regcache): New function.
3129 (do_frame_read_register): Replace do_frame_unwind_register.
3130 (frame_pop): Use frame_save_as_regcache.
3131 * dummy-frame.c (generic_push_dummy_frame): Use
3132 frame_save_as_regcache.
3133
aa495d11
JB
31342004-08-01 Joel Brobecker <brobecker@gnat.com>
3135
3136 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3137 file as included until we record the first line in the linetable.
3138
ff65ac78
AC
31392004-08-01 Andrew Cagney <cagney@gnu.org>
3140
3141 * frame.h (deprecated_pop_dummy_frame)
3142 (deprecated_read_register_dummy)
3143 (deprecated_generic_find_dummy_frame): Delete.
3144 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3145 (deprecated_read_register_dummy)
3146 (deprecated_find_dummy_frame_regcache)
3147 (discard_innermost_dummy)
3148 (deprecated_pop_dummy_frame): Delete.
3149 (dummy_frame_this_id): Simplify.
3150 (struct dummy_frame): Delete "fp" and "sp".
3151 (find_dummy_frame): Simplify.
3152 (generic_push_dummy_frame): Do not set "fp" or "sp".
3153 (fprint_dummy_frames): Do not print "fp" and "sp"
3154
37bdc87e
MK
31552004-08-01 Mark Kettenis <kettenis@gnu.org>
3156
3157 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3158 (struct i386_insn): New structure.
3159 (i386_match_insn): New function.
3160 (i386_frame_setup_skip_insns): New variable.
3161 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3162 array i386_frame_setup_insns of instructions that should be
3163 skipped inside the frame setup sequence.
3164
8241eaa6
AC
31652004-08-01 Andrew Cagney <cagney@gnu.org>
3166
5bc602c7
AC
3167 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3168 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3169 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3170 * stack.c (frame_info): Delete references to
3171 DEPRECATED_FRAME_INIT_SAVED_REGS and
3172 deprecated_get_frame_saved_regs.
3173 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3174 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3175 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3176 (frame_unwind_register_signed)
3177 (frame_unwind_register_unsigned)
3178 (frame_unwind_unsigned_register): Use register_size.
3179 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3180 (deprecated_frame_xmalloc_with_cleanup)
3181 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3182 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3183
03d363a1
AC
3184 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3185 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3186 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3187 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3188
8241eaa6
AC
3189 * infcall.c (call_function_by_hand): Do not use
3190 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3191 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3192 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3193 DEPRECATED_STACK_ALIGN.
3194
f00df8b7
AC
31952004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3196
3197 Committed by Andrew Cagney.
3198 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3199
eec63939
AC
32002004-08-01 Andrew Cagney <cagney@gnu.org>
3201
3202 * mips-tdep.c (mips16_frame_cache)
3203 (mips16_frame_this_id, mips16_frame_prev_register)
3204 (mips16_frame_unwind, mips16_frame_sniffer)
3205 (mips16_frame_base_address, mips16_frame_base)
3206 (mips16_frame_base_sniffer, mips32_frame_cache)
3207 (mips32_frame_this_id, mips32_frame_prev_register)
3208 (mips32_frame_unwind, mips32_frame_sniffer)
3209 (mips32_frame_base_address, mips32_frame_base)
3210 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3211 separate heuristic mips16 and mips32 unwinders.
3212 (mips_stub_frame_cache, mips_stub_frame_this_id)
3213 (mips_stub_frame_prev_register)
3214 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3215 (mips_stub_frame_base_address, mips_stub_frame_base)
3216 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3217 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3218 match true mdebug frames.
3219 (non_heuristic_proc_desc): Add forward declaration.
3220
e66299b3
AC
32212004-08-01 Andrew Cagney <cagney@gnu.org>
3222
83cbbf3e
AC
3223 * config/mips/tm-irix6.h: Delete file.
3224 * config/mips/tm-irix5.h: Delete file.
3225 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3226 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3227
22d41b37
AC
3228 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3229 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3230 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3231 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3232 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3233 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3234 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3235 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3236 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3237 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3238 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3239 (TARGET_SIGNAL_RAW_VALUES): Delete.
3240 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3241 Delete.
3242 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3243 (TARGET_HW_WATCH_LIMIT): Delete.
3244 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3245 * minimon.h: Delete file.
3246
e66299b3
AC
3247 * trad-frame.c (trad_frame_get_this_base)
3248 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3249 functions.
3250 * trad-frame.h (trad_frame_set_this_base)
3251 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3252
1f67027d
AC
32532004-07-31 Andrew Cagney <cagney@gnu.org>
3254
3255 * trad-frame.c (trad_frame_get_prev_register): Rename
3256 trad_frame_get_prev_register.
3257 * vax-tdep.c (vax_frame_prev_register): Update.
3258 * trad-frame.h: Update.
3259 * trad-frame.c (trad_frame_get_register): Update.
3260 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3261 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3262 Update.
3263 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3264 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3265 Update.
3266 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3267 Update.
3268 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3269 Update.
3270 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3271 Update.
3272 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3273 Update.
3274 * s390-tdep.c (s390_frame_prev_register)
3275 (s390_stub_frame_prev_register)
3276 (s390_sigtramp_frame_prev_register): Update.
3277 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3278 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3279 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3280 * m88k-tdep.c (m88k_frame_prev_register)
3281 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3282 * m32r-tdep.c (m32r_frame_prev_register): Update.
3283 * hppa-tdep.c (hppa_frame_prev_register_helper)
3284 * frv-tdep.c (frv_frame_prev_register): Update.
3285 * d10v-tdep.c (d10v_frame_prev_register): Update.
3286 * cris-tdep.c (cris_frame_prev_register): Update.
3287 * avr-tdep.c (avr_frame_prev_register): Update.
3288 * arm-tdep.c (arm_prologue_prev_register)
3289 (arm_sigtramp_prev_register): Update.
3290
c1bf6f65
AC
32912004-07-31 Andrew Cagney <cagney@gnu.org>
3292
3293 * frame.h (legacy_saved_regs_unwind)
3294 (legacy_frame_chain_valid, legacy_frame_p)
3295 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
3296 * dummy-frame.c (dummy_frame_this_id): Simplify.
3297 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
3298 * frame.c (struct frame_info): Delete the field "type".
3299 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3300 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3301 (legacy_saved_regs_unwind, legacy_frame_p)
3302 (frame_type_from_pc): Delete.
3303 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3304 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3305
dc856692
MK
33062004-07-31 Mark Kettenis <kettenis@gnu.org>
3307
5a5effe1
MK
3308 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3309 indentation.
3310
d4fd50a6
MK
3311 * mips-nat.c: Remove file.
3312 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3313 (mips-nat.o): Remove dependency.
3314
2689df5a
MK
3315 * infptrace.c: Update copyright year.
3316 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3317 explicitly setting the buffer to all zeroes.
3318
dc856692
MK
3319 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3320 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3321
763910e0
AC
33222004-07-30 Andrew Cagney <cagney@gnu.org>
3323
3324 * GDB 6.2 released from gdb_6_2-branch.
3325
0b66e38c
EZ
33262004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3327
3328 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3329
3330 * exec.c (exec_file_attach):
3331 * nto-tdep.c (nto_find_and_open_solib):
3332 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3333 * solib.c (solib_open):
3334 * somsolib.c (som_solib_sizeof_symbol_table):
3335 * source.c (is_regular_file, openp, open_source_file):
3336 * symfile.c (symfile_bfd_open):
3337 * wince.c (upload_to_device): Differentiate between the search for
3338 binary and source files.
3339
be7d7357
AC
33402004-07-30 Andrew Cagney <cagney@gnu.org>
3341
3342 * complaints.c (_initialize_complaints): Pass NULL to
3343 add_setshow_zinteger_cmd for help_doc.
3344 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3345
ddc9cd0f
AC
33462004-07-30 Andrew Cagney <cagney@gnu.org>
3347
3348 Fix PR i18n/761.
3349 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3350 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3351 $(PACKAGE).pot and update-po.
3352 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3353 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3354 (update-po): New rules.
3355 (localedir): Define using autoconf.
3356 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3357 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3358 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3359 * configure.in: Generate CATALOGS and LINGUAS from contents of
3360 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3361 * configure: Re-generate.
3362 * po/gdbtext: New file
3363
e92f3704
JG
33642004-07-30 Jerome Guitton <guitton@gnat.com>
3365
3366 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3367 order.
3368
b0f35d58
DL
33692004-07-30 David Lecomber <dsl@sources.redhat.com>
3370
3371 * dwarf2read.c (read_file_scope): Set producer if attribute
3372 present.
3373 (struct dwarf2_cu): Added new member producer.
3374
ce7d4522
JG
33752004-07-30 Jerome Guitton <guitton@gnat.com>
3376
3377 * inflow.c (kill_command): release file handles in BFD.
3378 * exec.c (exec_file_attach): Ditto.
3379 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3380
05ee07c7
AC
33812004-07-29 Andrew Cagney <cagney@gnu.org>
3382
3383 * PROBLEMS (mips-irix): Note that it is broken.
3384
62eceb47
AC
33852004-07-29 Andrew Cagney <cagney@gnu.org>
3386
e57b8d41
AC
3387 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3388 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3389
d334389b
AC
3390 * config/xm-nbsd.h: Delete file.
3391 * config/arm/xm-nbsd.h: Delete file.
3392 * config/i386/xm-nbsd.h: Delete file.
3393 * config/ns32k/xm-nbsd.h: Delete file.
3394 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3395 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3396 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3397 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3398 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3399
e910f676
AC
3400 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3401 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3402 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3403 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3404 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3405 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3406
6fa856b9
AC
3407 * config/powerpc/xm-linux.h: Delete empty file.
3408 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3409 * config/powerpc/linux.mh (XM_FILE): Delete.
3410 * config/m68k/xm-linux.h: Delete empty file.
3411 * config/m68k/linux.mh (XM_FILE): Delete.
3412 * config/ia64/xm-linux.h: Delete empty file.
3413 * config/ia64/linux.mh (XM_FILE): Delete.
3414 * config/arm/xm-linux.h: Delete empty file.
3415 * config/arm/linux.mh (XM_FILE): Delete.
3416
471ae5ae
AC
3417 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3418 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3419 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3420 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3421 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3422 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3423 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3424 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3425
62eceb47
AC
3426 * config/m68k/xm-m68k.h: Delete file.
3427 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3428 copyright.
3429 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3430 * config/pa/xm-linux.h: Delete empty file.
3431 * config/pa/linux.mh (XM_FILE): Delete.
3432 * config/i386/xm-i386.h: Delete empty file.
3433 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3434 "i386/xm-i386.h".
3435 * config/i386/obsdaout.mh (XM_FILE): Delete.
3436 * config/i386/obsd64.mh (XM_FILE): Delete.
3437 * config/i386/fbsd64.mh (XM_FILE): Delete.
3438 * config/i386/nto.mh (XM_FILE): Delete.
3439 * config/i386/obsd.mh (XM_FILE): Delete.
3440 * config/i386/linux64.mh (XM_FILE): Delete.
3441 * config/i386/linux.mh (XM_FILE): Delete.
3442 * config/i386/i386sol2.mh (XM_FILE): Delete.
3443 * config/i386/i386gnu.mh (XM_FILE): Delete.
3444 * config/i386/fbsd.mh (XM_FILE): Delete.
3445 * config/i386/nbsd64.mh (XM_FILE): Delete.
3446
c35f4ffc
AC
34472004-07-29 Andrew Cagney <cagney@gnu.org>
3448
3449 * config/pa/xm-linux.h: Do not include "floatformat.h".
3450 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3451 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3452 * config/i386/xm-i386.h: Do not include "floatformat.h".
3453 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3454 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3455 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3456 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3457 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3458 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3459 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3460 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3461 * configure, config.in: Regenerate.
3462 * configure.host (gdb_host_float_format, gdb_host_double_format)
3463 (gdb_host_long_double_format): Set according to the host.
3464
624a44a3
AC
34652004-07-29 Andrew Cagney <cagney@gnu.org>
3466
3467 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3468
0dea2468
AC
34692004-07-28 Andrew Cagney <cagney@gnu.org>
3470
3471 * PROBLEMS: Mention threads/1650.
3472 * NEWS: Mention the NPTL fix.
3473
b3f42336
AC
34742004-07-28 Andrew Cagney <cagney@gnu.org>
3475
3476 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3477 (add_setshow_cmd_full): Make static.
3478 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3479 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3480 * cli/cli-decode.c (add_setshow_filename_cmd)
3481 (add_setshow_string_cmd): New functions.
3482 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3483 * mips-tdep.c (_initialize_mips_tdep): Update.
3484 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3485 * cli/cli-logging.c (_initialize_cli_logging): Update.
3486 * complaints.c (_initialize_complaints): Update.
3487 * remote.c (_initialize_remote): Update.
3488
3b64bf98
AC
34892004-07-28 Andrew Cagney <cagney@gnu.org>
3490
3491 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3492 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3493 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3494 print parameters. Make string parameters constant.
3495 * command.h: Update. Update copyright.
3496 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3497 * observer.c (_initialize_observer): Ditto.
3498 * frame.c (_initialize_frame): Ditto.
3499 * complaints.c (_initialize_complaints): Ditto.
3500 * maint.c (_initialize_maint_cmds): Ditto.
3501 * target.c (initialize_targets): Ditto.
3502 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3503 * infcall.c (_initialize_infcall): Ditto.
3504 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3505 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3506 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3507 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3508 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3509
e9667a65
AC
35102004-07-28 Andrew Cagney <cagney@gnu.org>
3511
54a5b07d
AC
3512 * gdbtypes.c (lookup_primitive_typename): Delete function.
3513 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3514 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3515 * gdbtypes.c (lookup_typename): Ditto.
3516 * f-exp.y (yylex): Ditto.
3517 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3518
e9667a65
AC
3519 * scm-lang.c (c_builtin_types): Delete extern declaration.
3520 (scm_language_defn): Replace
3521 string_char_type and primitive_type_vector with
3522 la_language_arch_info.
3523 * jv-lang.c (java_language_defn): Replace
3524 string_char_type and primitive_type_vector with
3525 la_language_arch_info.
3526 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3527 c_builtin_types in comment.
3528 * c-lang.h (struct language_arch_info): Declare opaque.
3529 (c_language_arch_info): Declare.
3530 (c_builtin_types): Delete declaration.
3531 * c-lang.c (c_language_arch_info): Set string_char_type to
3532 builtin_char, not builtin_true_char. Make global.
3533 (c_builtin_types): Delete array.
3534 (asm_language_defn, minimal_language_defn): Replace
3535 string_char_type and primitive_type_vector with
3536 la_language_arch_info.
3537
685419e2
AC
35382004-07-28 Andrew Cagney <cagney@gnu.org>
3539
3540 * gdbtypes.h (struct builtin_type): Rename true_char to
3541 builtin_true_char.
3542 * gdbtypes.c (gdbtypes_post_init): Update.
3543 * c-lang.c (arch_info): New function.
3544 (enum c_primitive_types): New enum.
3545 (c_language_defn): Instead of string_char_type and
3546 primitive_type_vector set la_language_arch_info.
3547
5a44ea29
AC
35482004-07-28 Andrew Cagney <cagney@gnu.org>
3549
3550 * language.h (struct language_arch_info): Fix typo
3551 s/primative/primitive/.
3552 * gdbtypes.c (lookup_primitive_typename): Ditto.
3553 * language.c (language_lookup_primitive_type_by_name)
3554 (unknown_language_arch_info): Ditto.
3555
f290d38e
AC
35562004-07-27 Andrew Cagney <cagney@gnu.org>
3557
3558 * defs.h (enum language): Add nr_languages.
3559 * language.h (struct language_arch_info): Define.
3560 (struct language_defn): Add la_language_arch_info.
3561 (language_lookup_primative_type_by_name): Declare.
3562 (language_string_char_type): Declare.
3563 * language.c (_initialize_language, language_gdbarch_post_init)
3564 (struct language_gdbarch, language_gdbarch_data): Implement
3565 per-architecture language information.
3566 (unknown_language_arch_info, language_string_char_type)
3567 (language_lookup_primative_type_by_name): New functions.
3568 (unknown_language_defn, auto_language_defn)
3569 (local_language_defn): Set la_language_arch_info to
3570 unknown_language_arch_info.
3571 (unknown_builtin_types): Delete.
3572 * gdbtypes.c (lookup_primitive_typename): Use
3573 language_lookup_primative_type_by_name.
3574 (create_string_type): Use language_string_char_type.
3575 * values.c (value_from_string): Use language_string_char_type.
3576 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3577 * p-lang.c (pascal_language_defn): Ditto.
3578 * m2-lang.c (m2_language_defn): Ditto.
3579 * jv-lang.c (java_language_defn): Ditto.
3580 * objc-lang.c (objc_language_defn): Ditto.
3581 * f-lang.c (f_language_defn): Ditto.
3582 * c-lang.c (c_language_defn, cplus_language_defn)
3583 (asm_language_defn, minimal_language_defn): Ditto.
3584
000177f0
AC
35852004-07-27 Andrew Cagney <cagney@gnu.org>
3586
3587 * gdbtypes.h (struct builtin_type): Declare.
3588 (builtin_type): Declare.
3589 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3590 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3591 (gdbtypes_post_init): New function.
3592 (builtin_type): New function.
3593
e22f895c
KI
35942004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3595
3596 * remote-m32r-sdi.c: Fix breakpoint bug.
3597 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3598 recv_char_data, recv_long_data): New functions to replace communication
3599 sequences.
3600
536517dd
MC
36012004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3602
3603 Document PR threads/1650.
3604 * PROBLEMS (Threads): Document problem with many threads
3605
a0a44d18
AC
36062004-07-26 Andrew Cagney <cagney@gnu.org>
3607
3608 * gdb-mi.el: Move from here ...
3609 * mi/gdb-mi.el: ... to here.
3610
7ac4ac06
AC
36112004-07-26 Andrew Cagney <cagney@gnu.org>
3612
3613 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3614 * main.c (captured_main): When in batch mode always detach.
3615
a1b461bf
AC
36162004-07-26 Andrew Cagney <cagney@gnu.org>
3617
3618 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3619 and h8300 as broken.
3620 * NEWS: END-OF-LIFE frame compatibility module.
3621 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3622 specific comments.
3623
cb1a6d5f
AC
36242004-07-26 Andrew Cagney <cagney@gnu.org>
3625
3626 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3627 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3628 * wince.c (_initialize_wince): Update.
3629 * win32-nat.c (_initialize_win32_nat): Update.
3630 * varobj.c (_initialize_varobj): Update.
3631 * valops.c (_initialize_valops): Update.
3632 * utils.c (initialize_utils, initialize_utils): Update.
3633 * tui/tui-win.c (_initialize_tui_win): Update.
3634 * top.c (init_main): Update.
3635 * symfile.c (_initialize_symfile): Update.
3636 * source.c (_initialize_source): Update.
3637 * somsolib.c (_initialize_som_solib): Update.
3638 * solib.c (_initialize_solib): Update.
3639 * solib-frv.c (_initialize_frv_solib): Update.
3640 * serial.c (_initialize_serial): Update.
3641 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3642 * remote.c (_initialize_remote, _initialize_remote): Update.
3643 * remote-vx.c (_initialize_vx): Update.
3644 * remote-utils.c (_initialize_sr_support): Update.
3645 * remote-sds.c (_initialize_remote_sds): Update.
3646 * remote-mips.c (_initialize_remote_mips): Update.
3647 * remote-e7000.c (_initialize_remote_e7000): Update.
3648 * proc-api.c (_initialize_proc_api): Update.
3649 * printcmd.c: Update.
3650 * parse.c (_initialize_parse): Update.
3651 * pa64solib.c (_initialize_pa64_solib): Update.
3652 * p-valprint.c (_initialize_pascal_valprint): Update.
3653 * monitor.c (_initialize_remote_monitors): Update.
3654 * mips-tdep.c (_initialize_mips_tdep): Update.
3655 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3656 * maint.c (_initialize_maint_cmds): Update.
3657 * lin-lwp.c (_initialize_lin_lwp): Update.
3658 * language.c (_initialize_language): Update.
3659 * kod.c (_initialize_kod): Update.
3660 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3661 * i386-tdep.c (_initialize_i386_tdep): Update.
3662 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3663 * gdbarch.sh: Update.
3664 * gdbarch.c: Re-generate.
3665 * gdb-events.sh: Update.
3666 * gdb-events.c: Re-generate.
3667 * frame.c (_initialize_frame): Update.
3668 * exec.c: Update.
3669 * demangle.c (_initialize_demangler): Update.
3670 * dcache.c (_initialize_dcache): Update.
3671 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3672 * cp-valprint.c (_initialize_cp_valprint): Update.
3673 * corefile.c (_initialize_core): Update.
3674 * command.h: Update.
3675 * cli/cli-decode.h: Update.
3676 * cli/cli-cmds.c (init_cli_cmds): Update.
3677 * charset.c (_initialize_charset): Update.
3678 * breakpoint.c (_initialize_breakpoint): Update.
3679 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3680 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3681 * aix-thread.c (_initialize_aix_thread): Update.
3682
b4632131
MK
36832004-07-24 Mark Kettenis <kettenis@gnu.org>
3684
3685 Partial fix for PR backtrace/1718.
3686 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3687 that GCC migrates into the prolugue. Don't handle any
3688 instructions that clobber %ebx.
3689
822c9732
AC
36902004-07-23 Andrew Cagney <cagney@gnu.org>
3691
3692 Use regcache_raw_collect instead of regcache_collect.
3693 * regcache.h (regcache_collect): Delete declaration.
3694 * regcache.c (regcache_colect): Delete function.
3695 * win32-nat.c (do_child_store_inferior_registers): Update.
3696 * sol-thread.c (sol_thread_store_registers): Update.
3697 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3698 * rs6000-nat.c (store_register): Update.
3699 * remote.c (store_register_using_P, remote_store_registers): Update.
3700 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3701 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3702 (fill_vrregset, store_spe_registers, fill_gregset)
3703 (fill_gregset): Update.
3704 * nto-procfs.c (procfs_store_registers): Update.
3705 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3706 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3707 * m68klinux-nat.c (store_register, fill_gregset): Update.
3708 * m68k-tdep.c (fill_gregset): Update.
3709 * infptrace.c (store_register): Update.
3710 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3711 * i386-linux-nat.c (store_register, fill_gregset): Update.
3712 * hppa-linux-nat.c (fill_gregset): Update.
3713 * go32-nat.c (store_register): Update.
3714 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3715 (store_fp_regs): Update.
3716 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3717 (store_nwfpe_extended, store_fpregister, store_fpregs)
3718 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3719 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3720 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3721 (store_regs_user_thread, store_regs_kernel_thread): Update.
3722
32b05c07
MK
37232004-07-24 Mark Kettenis <kettenis@gnu.org>
3724
3725 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3726 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3727 encoding.
3728 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3729 member of `struct comp_unit'.
3730
8567c30f
AC
37312004-07-23 Andrew Cagney <cagney@gnu.org>
3732
3733 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3734 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3735
f6da8dd8
MH
37362004-07-23 Martin Hunt <hunt@redhat.com>
3737 Kevin Buettner <kevinb@redhat.com>
3738
3739 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3740 alignment was being added to the offset instead of multiplied.
3741
bd921882
MK
37422004-07-23 Mark Kettenis <kettenis@gnu.org>
3743
24f033e8
MK
3744 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3745 changed signal trampoline in OpenBSD 3.5-current.
3746
90f3cecd
MK
3747 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3748 <machine/pcb.h> and "bsd-kvm.h".
3749 (sparc64nbsd_supply_pcb): New function.
3750 (_initialize_sparc64nbsd_nat): Renamed from
3751 _initialize_sparcnbsd_nat. Enable libkvm interface.
3752 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3753 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3754 (LOADLIBES): New variable.
3755
a4954a62
MK
3756 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3757
bd921882
MK
3758 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3759
23a6d369
AC
37602004-07-21 Andrew Cagney <cagney@gnu.org>
3761
3762 Use regcache_raw_supply instead of supply_register.
3763 * regcache.h (supply_register): Delete declaration.
3764 * regcache.c (supply_register): Delete function.
3765 * wince.c (do_child_fetch_inferior_registers): Update.
3766 * win32-nat.c (do_child_fetch_inferior_registers)
3767 (fetch_elf_core_registers): Update.
3768 * v850ice.c (v850ice_fetch_registers): Update.
3769 * thread-db.c (thread_db_store_registers): Update.
3770 * sol-thread.c (sol_thread_store_registers): Update.
3771 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3772 * rs6000-nat.c (fetch_register): Update.
3773 * rom68k-rom.c (rom68k_supply_one_register): Update.
3774 * remote.c (remote_wait, remote_async_wait): Update.
3775 * remote-st.c (get_hex_regs): Update.
3776 * remote-sim.c (gdbsim_fetch_register): Update.
3777 * remote-sds.c (sds_fetch_registers): Update.
3778 * remote-rdp.c (remote_rdp_fetch_register): Update.
3779 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3780 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3781 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3782 * remote-hms.c (init_hms_cmds): Update.
3783 * remote-est.c (init_est_cmds): Update.
3784 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3785 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3786 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3787 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3788 (fetch_register, supply_vrregset, supply_vrregset)
3789 (fetch_spe_registers): Update.
3790 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3791 * monitor.c (monitor_supply_register): Update.
3792 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3793 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3794 (mipsnbsd_supply_fpreg): Update.
3795 * mips-nat.c (fetch_inferior_registers)
3796 (fetch_core_registers): Update.
3797 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3798 (supply_fpregset, mips64_supply_gregset)
3799 (mips64_supply_fpregset): Update.
3800 * m68klinux-nat.c (fetch_register, supply_gregset)
3801 (supply_fpregset): Update.
3802 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3803 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3804 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3805 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3806 * infptrace.c (fetch_register): Update.
3807 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3808 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3809 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3810 (gnu_fetch_registers, gnu_store_registers): Update.
3811 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3812 * i386-linux-nat.c (fetch_register, supply_gregset)
3813 (dummy_sse_values): Update.
3814 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3815 * hppah-nat.c (fetch_register): Update.
3816 * hppa-linux-nat.c (fetch_register, supply_gregset)
3817 (supply_fpregset): Update.
3818 * go32-nat.c (fetch_register): Update.
3819 * dve3900-rom.c (fetch_bitmapped_register)
3820 (_initialize_r3900_rom): Update.
3821 * cris-tdep.c (supply_gregset): Update.
3822 * abug-rom.c (init_abug_cmds): Update.
3823 * core-aout.c (fetch_core_registers): Update.
3824 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3825 (fetch_register, fetch_fp_register): Update.
3826 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3827 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3828 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3829 * alphanbsd-tdep.c (fetch_core_registers): Update.
3830 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3831 * alpha-nat.c (fetch_osf_core_registers)
3832 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3833 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3834 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3835
73cc75f3
AC
38362004-07-21 Andrew Cagney <cagney@gnu.org>
3837
3838 * PROBLEMS: Mention breakpoints/1702.
3839 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3840 that is known to work.
3841
a53c66de
AC
38422004-07-21 Andrew Cagney <cagney@gnu.org>
3843
3844 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3845 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3846 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3847 (handle_inferior_event): Wrap call to deprecated
3848 IGNORE_HELPER_CALL in #ifdef.
3849 * config/mips/tm-nbsd.h: Update.
3850
708ff411
JB
38512004-07-20 Jim Blandy <jimb@redhat.com>
3852
412b3060
JB
3853 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3854 bfd_mach_ppc has no segment registers.
3855
13ac140c
JB
3856 Include PowerPC SPR numbers for special-purpose registers.
3857 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3858 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3859 new member in initializer.
3860 (S, S4, SN4, S64): New macros for defining special-purpose
3861 registers.
3862 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3863 registers_403, registers_403GC, registers_505, registers_860,
3864 registers_601, registers_602, registers_603, registers_604,
3865 registers_750, registers_e500): Use them.
3866
708ff411
JB
3867 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3868 replace references with expression used to initialize variable.
3869
1f602b35
AC
38702004-07-20 Andrew Cagney <cagney@gnu.org>
3871
3872 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3873 read_memory_nobpt.
3874 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3875 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3876 (s390_sigtramp_frame_sniffer): Update.
3877 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3878 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3879 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3880 (mips32_fetch_instruction): Update.
3881 * mcore-tdep.c (get_insn): Update.
3882 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3883 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3884 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3885 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3886 (i386_linux_rt_sigtramp_start): Update.
3887 * i386-linux-nat.c (child_resume): Update.
3888 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3889 * hppa-linux-tdep.c (insns_match_pattern): Update.
3890 * gdbcore.h: Update.
3891 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3892 * frame.c (safe_frame_unwind_memory): Update.
3893 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3894 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3895 * alpha-tdep.c (alpha_read_insn): Update.
3896
2cd8546d
AC
38972004-07-20 Andrew Cagney <cagney@gnu.org>
3898
3899 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3900 containing both bytes and mask. Add "frame_type".
3901 * tramp-frame.c (tramp_frame_start): Update.
3902 (tramp_frame_prepend_unwinder): Update.
3903 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3904 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3905 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3906 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3907
f928dd62
EZ
39082004-07-19 Eli Zaretskii <eliz@gnu.org>
3909
3910 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3911 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3912 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3913 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3914
d5c560f7
AC
39152004-07-17 Andrew Cagney <cagney@gnu.org>
3916
860660cb
AC
3917 * NEWS, PROBLEMS: Update for 6.2.
3918
8c266f54
AC
3919 * README: Update to 6.2.
3920
a552edd9
AC
3921 * utils.c (xvasprintf): Call xstrvprintf.
3922
c4a172b5
AC
3923 * parse.c: Update copyright.
3924 (null_post_parser): Eliminate ARGSUSED.
3925
da745b36
AC
3926 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3927 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3928 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3929
9cbc6ef0
AC
3930 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3931 * ppc-linux-nat.c: Use "Linux kernel".
3932 * hppa-linux-tdep.c: Use GNU/Linux.
3933 * hppa-linux-nat.c: Use GNU/Linux.
3934 * dwarfread.c: Add [sic] to use of Linux.
3935
1b89295f
AC
3936 * hppa-linux-nat.c: Do not include <string.h>.
3937 (supply_fpregset): Remove "register" attribute.
3938
d5c560f7
AC
3939 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3940
7ddd7709
MK
39412004-07-17 Mark Kettenis <kettenis@gnu.org>
3942
b1d19a62
MK
3943 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3944 * configure, config.in: Regenerated.
3945
7ddd7709
MK
3946 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3947 "bsd-kvm.h".
3948 (vaxbsd_supply_pcb): New function.
3949 (_initialize_vaxbsd_nat): New prototype and function.
3950 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3951 solib-sunos.o.
3952 (LOADLIBES): New variable.
3953 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3954 (LOADLIBES): New variable.
3955 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3956 (LOADLIBES): New variable.
3957 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3958
2c07db7a
AC
39592004-07-16 Andrew Cagney <cagney@gnu.org>
3960
3961 * defs.h (event_loop_p): Replace variable declaration with macro,
3962 always 1.
3963 * main.c (captured_main): Delete options "-async" and "-noasync".
3964 (event_loop_p): Delete variable.
3965 * NEWS: Mention that "-async" and "-noasync" were removed.
3966
717eb1cf
AC
39672004-07-16 Andrew Cagney <cagney@gnu.org>
3968
3969 * remote-m32r-sdi.c: Re-indent.
3970
c101bc14
JB
39712004-07-16 Jim Blandy <jimb@redhat.com>
3972
5109a438
JB
3973 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3974 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3975 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3976 missing MPC823 SPRs.
3977 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3978 incorrect. (This was corrected in GDB's register name tables on
3979 2004-07-14.)
3980
c101bc14
JB
3981 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3982 should be "esasrr" ("ESA Save and Restore Register").
3983
7ce450bd
AC
39842004-07-16 Andrew Cagney <cagney@gnu.org>
3985
3986 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3987 calls, no longer applicable. Update comments and rename parameter
3988 "step_frame" to "return_frame".
3989
ca73dd9d
AC
39902004-07-16 Andrew Cagney <cagney@gnu.org>
3991
3992 * frame.c (fprint_field): New function.
3993 (fprint_frame_id): Use fprint_field.
3994
31941f6d
JB
39952004-07-15 Joel Brobecker <brobecker@gnat.com>
3996
3997 * ada-lang.c (ada_language_defn): Remove commented out code.
3998
f86a7158
JB
39992004-07-15 Jim Blandy <jimb@redhat.com>
4000
4001 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4002 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4003
c24791ec
JB
40042004-07-14 Jim Blandy <jimb@redhat.com>
4005
29bb1356
JB
4006 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4007
cc98b5cc
JB
4008 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4009
8f088af7
JB
4010 * ppc-tdep.h (ppc_num_srs): New enum constant.
4011
0ea0ec5f
JB
4012 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4013 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4014 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4015 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4016 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4017 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4018 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4019 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4020 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4021 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4022 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4023 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4024 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4025 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4026 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4027 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4028 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4029 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4030 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4031 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4032 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4033 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4034 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4035 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4036 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4037 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4038 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4039 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4040 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4041 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4042 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4043 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4044 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4045 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4046 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4047 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4048 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4049 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4050 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4051 special-purpose register numbers.
4052
c24791ec
JB
4053 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4054 manual mentions 'md_twb', but many mention 'm_twb', and at that
4055 point in the register list.)
4056
d833db3b
AC
40572004-07-14 Andrew Cagney <cagney@gnu.org>
4058
4059 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4060 instead of "internal-error".
4061
080228b2
JB
40622004-07-10 Joel Brobecker <brobecker@gnat.com>
4063
4064 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4065 that was inserted inside a comment.
4066
c268433a
RC
40672004-07-10 Randolph Chung <tausq@debian.org>
4068
4069 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4070 function.
4071 (hppa_hpux_push_dummy_code): New function.
4072 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4073 Set find_global_pointer method.
4074
71009278
MK
40752004-07-10 Mark Kettenis <kettenis@gnu.org>
4076
4077 * NEWS: Mention BSD libkvm interface.
4078
b2fa5097
MS
40792004-07-10 Michael Snyder <msnyder@redhat.com>
4080
4081 * symfile.c (generic_load): Comment typo.
4082 * stack.c (get_selected_block): Ditto.
4083 * regcache.c (regcache_cooked_read): Ditto.
4084 * monitor.c (monitor_debug): Ditto.
4085 * mips-tdep.c (mips_read_pc): Ditto.
4086 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4087 * gdb_mbuild.sh: Ditto.
4088 * gdbarch.sh: Ditto.
4089 * gdbarch.h: Ditto.
4090
c3e5cd34
PH
40912004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4092
8a2225b2
PH
4093 * ada-tasks.c: Remove file.
4094
c3e5cd34
PH
4095 Remove ARI problems:
4096
4097 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4098 beginning of line.
4099
4100 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4101 Add comment.
4102 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4103 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4104 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4105 (UMIN_OF_SIZE): Remove.
4106 (max_of_type): New function to replace orphan macro in gdbtypes.h
4107 (min_of_type): Ditto.
4108 (discrete_type_high_bound): Use max_of_type.
4109 (discrete_type_low_bound): Use min_of_type.
4110 (possible_user_operator_p): Move operator to beginning of line.
4111 (ada_is_variant_part): Ditto.
4112 (ensure_lval): Rewrite to avoid deprecated operations.
4113 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4114 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4115 (ada_enum_name): Remove assignments in 'if' statements.
4116 (build_ada_types): Add gdbarch parameter.
4117 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4118 with gdbarch_data_register_post_init.
4119 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4120 add_show_from_set.
4121
4122 * ada-valprint.c (inspect_it): Remove declaration.
4123 (repeat_count_threshold): Remove declaration.
4124 (ada_print_floating): Remove assignments in 'if' statements.
4125 (print_str): Move operator to beginning of line.
4126
61ce229a
JB
41272004-07-08 Jim Blandy <jimb@redhat.com>
4128
4129 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4130
09bcec80
BR
41312004-07-08 Bob Rossi <bob@brasko.net>
4132
4133 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4134
31c27f77
JJ
41352004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4136
4137 * language.h (struct_language_defn): Add new function pointer:
4138 la_class_name_from_physname. Also add new prototype for
4139 language_class_name_from_physname.
4140 * language.c (language_class_name_from_physname): New function.
4141 (unk_lang_class_name): Ditto.
4142 (unknown_language_defn, auto_language_defn): Change
4143 to add unk_lang_class_name function pointer for
4144 la_class_name_from_physname.
4145 (local_language_defn): Ditto.
4146 * dwarf2read.c (guess_structure_name): Change to call
4147 language_class_name_from_physname.
4148 (determine_class_name): Ditto.
4149 * cp-support.c (class_name_from_physname): Renamed.
4150 (cp_class_name_from_physname): New name of function.
4151 * cp-support.h: Ditto.
4152 * c-lang.c (c_language_defn): Change to add NULL
4153 for class_name_from_physname function pointer.
4154 (cplus_language_defn): Change to add cp_class_name_from_physname.
4155 * jv-lang.c (java_class_name_physname): New function.
4156 (java_find_last_component): New static routine.
4157 (java_language_defn): Add java_class_name_from_physname pointer.
4158 * ada-lang.c (ada_language_defn): Change to add NULL
4159 for class_name_from_physname function pointer.
4160 * f-lang.c (f_language_defn): Ditto.
4161 * m2-lang.c (m2_language_defn): Ditto.
4162 * objc-lang.c (objc_language_defn): Ditto.
4163 * p-lang.c (pascal_language_defn): Ditto.
4164 * scm-lang.c (scm_language_defn): Ditto.
4165
ee28ca0f
AC
41662004-07-06 Andrew Cagney <cagney@gnu.org>
4167
4168 Patch from Bart Robinson.
4169 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4170 (O_LARGEFILE): Define to 0, if not defined.
4171
fdb1bf9d
MK
41722004-07-03 Mark Kettenis <kettenis@gnu.org>
4173
cb162ff6
MK
4174 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4175 <machine/pcb.h> and "bsd-kvm.h".
4176 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4177 (m68kbsd_supply_pcb): New function.
4178 (_initialize_m68kbsd_nat): New prototype and function.
4179 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4180 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4181 (LOADLIBES): New variable.
4182 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4183 (LOADLIBES): New variable.
4184
fdb1bf9d
MK
4185 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4186
963c4174
MK
41872004-07-03 Mark Kettenis <kettenis@gnu.org>
4188
4189 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4190 <sys/proc.h>.
4191 (bsd_kvm_cmdlist): New variable.
4192 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4193 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4194 command and "kvm proc" command.
4195 * Makefile.in (bsd-kvm.o): Update dependencies.
4196
533f1d8f
MK
41972004-07-02 Mark Kettenis <kettenis@gnu.org>
4198
4199 * osabi.c: Update copyright year.
4200 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4201 notes if EI_OSABI is set to ELFOSABI_HPUX.
4202
6780dcde
MS
42032004-07-01 Michael Snyder <msnyder@redhat.com>
4204
4205 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4206 that seems to have gotten whacked out of line.
4207
67bebe79
MK
42082004-07-01 Mark Kettenis <kettenis@gnu.org>
4209
4210 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4211 code.
4212
0b5d8877
PH
42132004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4214
4215 * ada-lang.c (decode_packed_array): Minor change to comment.
4216 (ada_value_slice_ptr): New function.
4217 (ada_value_slice): New function.
4218 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4219 test. Don't know why it is there.
4220 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4221 to avoid dereferencing huge arrays from which one is slicing.
4222 (empty_array): Correct to return an array rather than
4223 a subrange value.
4224 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4225 on empty arrays (let'em use 'FIRST instead).
4226
19c1ef65
PH
42272004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4228
4229 Address complaints from gdb_ari.sh:
4230
4231 * ada-exp.y: Include gdb_string.h rather than string.h.
4232 (convert_char_literal): Reformat declaration.
4233 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4234 * ada-lex.l: Change use of free to xfree (the macro would do so
4235 anyway, but this is harmless).
4236 Include gdb_string.h rather than string.h.
4237 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4238
4239 * ada-lang.c (parse): Remove K&Rism in parameter list.
4240 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4241
d81cbc94
MK
42422004-06-30 Mark Kettenis <kettenis@gnu.org>
4243
4244 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4245 dead code.
4246
07681759
MK
42472004-06-30 Mark Kettenis <kettenis@gnu.org>
4248
4249 * alphabsd-nat.c: Update copyright year.
4250 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4251
f7948b5f
JB
42522004-06-29 Joel Brobecker <brobecker@gnat.com>
4253
6e0cdd28 4254 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
4255 (i386_cygwin_in_solib_call_trampoline): New function.
4256 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4257 and skip_trampoline_code gdbarch methods.
4258
8f113c9a
JB
42592004-06-29 Jim Blandy <jimb@redhat.com>
4260
4261 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4262 name actually used in the dependency lists.
4263
97dc871c
RC
42642004-06-29 Randolph Chung <tausq@debian.org>
4265
4266 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4267
47216e51
CV
42682004-06-29 Corinna Vinschen <vinschen@redhat.com>
4269
4270 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 4271 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
4272 functionality.
4273
e623b504
AC
42742004-06-28 Andrew Cagney <cagney@gnu.org>
4275
4276 * defs.h (xstrvprintf): Declare.
4277 * utils.c (xstrvprintf): New function.
4278 (internal_vproblem, xstrprintf, xasprintf)
4279 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4280 * serial.c (serial_printf): Ditto.
4281 * complaints.c (vcomplaint): Ditto.
4282
79acc9b3
CV
42832004-06-29 Corinna Vinschen <vinschen@redhat.com>
4284
4285 * infcmd.c (attach_command): Move call to target_terminal_inferior
4286 behind loading symbol table.
4287
1daf35d9
AC
42882004-06-28 Andrew Cagney <cagney@gnu.org>
4289
4290 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4291 change - add back extern deprecated_ui_loop_hook declaration.
4292
b435e160
AC
42932004-06-28 Andrew Cagney <cagney@gnu.org>
4294
4295 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4296 xstrprintf.
4297 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4298 (c_value_of_variable): Ditto.
4299 * utils.c (internal_vproblem): Ditto.
4300 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4301 * remote.c (add_packet_config_cmd): Ditto.
4302 * remote-rdp.c (rdp_set_command_line): Ditto.
4303 * regcache.c (regcache_dump): Ditto.
4304 * frv-tdep.c (new_variant, new_variant): Ditto.
4305 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4306 (fbsd_find_memory_regions): Ditto.
4307 * breakpoint.c (create_thread_event_breakpoint)
4308 (create_breakpoints): Ditto.
4309 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4310 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4311
06d5cf63
JB
43122004-06-28 Joel Brobecker <brobecker@gnat.com>
4313
4314 * ada-lang.c: Re-indent file, with some massaging to help indent
4315 a bit when the result is otherwise really too ugly.
4316
35809fad
UW
43172004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4318
4319 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4320 code_addr_p and special_addr_p to 'unsigned int'.
4321
40e20472
MK
43222004-06-27 Mark Kettenis <kettenis@gnu.org>
4323
4324 * i386v4-nat.c: Update copyright year and tweak comment.
4325 (regmap): Remove trailing comma.
4326 (supply_gregset): Rename local variable i to regnum. Call
4327 regcache_raw_supply instead of supply_register.
4328 (fill_gregset): Rename argument regno to regnum. Call
4329 regcache_raw_collect instead of regcache_collect.
4330
12b0b6de
UW
43312004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4332
4333 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4334 and special_addr_p.
4335 (frame_id_build, frame_id_build_special): Update comments.
4336 (frame_id_build_wild): New prototype.
4337 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4338 struct frame_id fields.
4339 (frame_id_build_wild): New function.
4340 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4341
47b42a3e
MK
43422004-06-27 Mark Kettenis <kettenis@gnu.org>
4343
4344 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4345 hppabsd-tdep.c.
4346
1265e4aa
JB
43472004-06-27 Joel Brobecker <brobecker@gnat.com>
4348
4349 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4350
76a01679
JB
43512004-06-27 Joel Brobecker <brobecker@gnat.com>
4352
4353 * ada-lang.c: Re-indent file.
4354
7aca490a
JB
43552004-06-27 Joel Brobecker <brobecker@gnat.com>
4356
4357 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4358 (no_symtab_msg): Likewise.
4359
5e987968
AS
43602004-06-27 Andreas Schwab <schwab@suse.de>
4361
4362 * source.c: Fix whitespace.
4363
315c4276
MK
43642004-06-27 Mark Kettenis <kettenis@gnu.org>
4365
d15be926
MK
4366 * configure.in: Include <sys/param.h> for td_pcb test.
4367 * configure: Regenerated.
4368
9062529b
MK
4369 * i386nbsd-nat.c: New file.
4370 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4371 i386obsd-nat.c and i386obsd-tdep.c.
4372 (i386nbsd-nat.o): New dependency.
4373 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4374 bsd-kvm.o.
4375 (LOADLIBES): New variable.
4376 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4377 bsd-kvm.o.
4378 (LOADLIBES): New variable.
4379
8010310e
MK
4380 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4381 (LOADLIBES): New variable.
4382
efe1d7b9
MK
4383 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4384 fetching from BSD_KVM_PADDR. Correctly lookup address for
4385 "_thread0".
4386
315c4276
MK
4387 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4388 "bsd-kvm.h".
4389 (amd64fbsd_supply_pcb): New funcion.
4390 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4391
399cfac6
DL
43922004-06-27 <david@streamline-computing.com>
4393
4394 Partial fix for PR cli/1056.
4395 * valarith.c: Check for zero in division and remainder
4396 evaluation.
4397
6235f9c8
MK
43982004-06-27 Mark Kettenis <kettenis@gnu.org>
4399
4400 * i387-tdep.c: Remove excessive whitespace.
4401
2726dafc
AC
44022004-06-26 Andrew Cagney <cagney@gnu.org>
4403
4404 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4405 * gdb-events.h, gdb-events.c: Re-generate.
4406 * tui/tui-hooks.c (tui_install_hooks): Update.
4407 (tui_remove_hooks): Update.
4408 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4409
0e56aeaf
MK
44102004-06-26 Mark Kettenis <kettenis@gnu.org>
4411
cb461069
MK
4412 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4413 (gregset_t, fpregset_t): Remove typedefs.
4414 (REG_OFFSET): Rename argument.
4415 (amd64bsd_r_reg_offset): Rename from reg_offset.
4416 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4417 Remove functions.
4418 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4419 of reg_offset.
4420 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4421
ecba89de
MK
4422 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4423
4cd80476
MK
4424 * vax-tdep.c: Tweak comment.
4425
0e56aeaf
MK
4426 Add OpenBSD/hppa support.
4427 * NEWS (New native configurations): Mention OpenBSD/hppa.
4428 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4429 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4430 files.
4431 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4432 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4433 * configure.host: Add hppa*-*-openbsd*.
4434 * configure.tgt: Add hppa*-*-openbsd*.
4435
98bbd631
AC
44362004-06-25 Andrew Cagney <cagney@gnu.org>
4437
4438 * defs.h (deprecated_ui_loop_hook): Deprecated.
4439 * wince.c (child_wait): Update.
4440 * win32-nat.c (child_wait): Update.
4441 * v850ice.c (v850ice_wait): Update.
4442 * top.c (deprecated_ui_loop_hook): Update.
4443 * serial.h: Update.
4444 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4445 (do_unix_readchar): Update.
4446 * ser-tcp.c (net_open): Update.
4447 * remote-sim.c (gdb_os_poll_quit): Update.
4448 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4449
769d7dc4
AC
44502004-06-24 Andrew Cagney <cagney@gnu.org>
4451
4452 * defs.h (deprecated_pre_add_symbol_hook)
4453 (deprecated_post_add_symbol_hook): Deprecated.
4454 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4455 (symbol_file_add_with_addrs_or_offsets): Update references.
4456
11c949aa
AC
44572004-06-24 Andrew Cagney <cagney@gnu.org>
4458
4459 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4460 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4461 * wince.c (ui_loop_hook): Delete extern declaration.
4462 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4463 * v850ice.c (ui_loop_hook): Delete extern declaration..
4464 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4465 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4466 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4467 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4468 ui_loop_hook declaration.
4469
eedc19af
AC
44702004-06-24 Andrew Cagney <cagney@gnu.org>
4471
4472 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4473 entry_func_highpc fields.
4474 * objfiles.c (init_entry_point_info): Do not clear
4475 entry_func_lowpc and entry_func_highpc.
4476 (objfile_relocate): Do not relocate entry_func_lowpc and
4477 entry_func_highpc.
4478 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4479 entry_func_highpc.
4480 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4481 entry_func_highpc.
4482 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4483 entry_func_lowpc and entry_func_highpc with call to
4484 inside_entry_func.
4485
d47079be
MK
44862004-06-24 Mark Kettenis <kettenis@gnu.org>
4487
4488 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4489 quad-precision floating point arguments in registers.
4490
2107e348
MK
44912004-06-24 Mark Kettenis <kettenis@gnu.org>
4492
4493 From Michael Mueller <m.mueller99@kay-mueller.de>:
4494 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4495 account.
4496
46587c42
JJ
44972004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4498
4499 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4500 to -1.
4501 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4502 untriggered watchpoints to a separate if clause. Update function
4503 comment regarding STOPPED_BY_WATCHPOINT argument.
4504
226f5cf4
JB
45052004-06-22 Jim Blandy <jimb@redhat.com>
4506
4507 * gdbarch.sh: Doc fix.
4508
f10683bb
MH
45092004-06-21 Martin Hunt <hunt@redhat.com>
4510 Kevin Buettner <kevinb@redhat.com>
4511
4512 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4513 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4514 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4515 to set_gdbarch_sp_regnum(). Use cooked register number.
4516 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4517
412d5987
AC
45182004-06-21 Andrew Cagney <cagney@gnu.org>
4519
4520 * gdbarch.sh: When the macro field is empty, do not generate a
4521 macro definition. When the macro field is "=", generate the macro
4522 name from the upper-case function name.
4523 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4524 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4525 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4526 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4527 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4528 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4529 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4530 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4531 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4532 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4533 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4534 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4535 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4536 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4537 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4538 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4539 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4540 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4541 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4542 (DEPRECATED_USE_STRUCT_CONVENTION)
4543 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4544 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4545 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4546 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4547 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4548 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4549 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4550 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4551 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4552 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4553 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4554 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4555 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4556 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4557 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4558 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4559 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4560 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4561
68908a3e
AC
45622004-06-21 Andrew Cagney <cagney@gnu.org>
4563
48f7351b
AC
4564 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4565 macro name, and the function rather than macro value. Only wrap
4566 macro print statements in #ifdef. Move format logic to where it
4567 is needed.
4568 * gdbarch.c: Re-generate.
4569
283354d8
AC
4570 * gdbarch.sh (read): Delete "print_p" and "description", add
4571 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4572 Delete references to print_p.
4573 (TARGET_ARCHITECTURE): Delete print predicate.
4574 * gdbarch.c: Re-generate.
4575
68908a3e
AC
4576 * gdbarch.sh: Check that multi-arch methods do not provide a
4577 macro.
4578 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4579 (print_registers_info, print_float_info, print_vector_info)
4580 (adjust_breakpoint_address, remote_translate_xfer_address)
4581 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4582 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4583 name from the multi-arch definition.
4584
a2428dbe
AC
45852004-06-20 Andrew Cagney <cagney@gnu.org>
4586
4587 * gdbarch.sh: Sort by the function, instead of macro name.
4588 * gdbarch.c: Re-generate.
4589
750eb019
AC
45902004-06-20 Andrew Cagney <cagney@gnu.org>
4591
66d659b1
AC
4592 * gdbarch.sh: Use the function, instead of macro name in
4593 errors and the log file.
4594 (return_value): Remove stray ":" in spec.
4595
750eb019
AC
4596 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4597 * gdbarch.h, gdbarch.c: Re-generate.
4598 * Makefile.in (arch-utils.o): Update dependencies.
4599 * values.c (using_struct_return): Move code calling
4600 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4601 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4602 to legacy_return_value, simplify.
4603 * infcmd.c (print_return_value): Move code calling
4604 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4605 to legacy_return_value, simplify.
4606 * infcall.c (call_function_by_hand): Move code calling
4607 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4608 * arch-utils.c: Update copyright. Include "gdbcore.h".
4609 (legacy_return_value): New function.
4610 * arch-utils.h: Update copyright.
4611 (legacy_return_value): Declare.
4612
b5622e8d
AC
46132004-06-20 Andrew Cagney <cagney@gnu.org>
4614
4615 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4616 * gdbarch.h, gdbarch.c: Re-generate.
4617 * values.c (using_struct_return): Update call.
4618 * mcore-tdep.c: Update comment.
4619 * infcall.c (call_function_by_hand): Update comment.
4620 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4621 * arch-utils.h (always_use_struct_convention): Update.
4622 * v850-tdep.c (v850_gdbarch_init): Update.
4623 * sh64-tdep.c (sh64_gdbarch_init): Update.
4624 * sh-tdep.c (sh_gdbarch_init): Update.
4625 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4626 * mips-tdep.c (mips_gdbarch_init): Update.
4627 * mcore-tdep.c (mcore_gdbarch_init): Update.
4628 * m32r-tdep.c (m32r_gdbarch_init): Update.
4629 * ia64-tdep.c (ia64_gdbarch_init): Update.
4630 * h8300-tdep.c (h8300_gdbarch_init): Update.
4631 * frv-tdep.c (frv_gdbarch_init): Update.
4632 * cris-tdep.c (cris_gdbarch_init): Update.
4633 * arm-tdep.c (arm_gdbarch_init): Update.
4634 * alpha-tdep.c (alpha_gdbarch_init): Update.
4635
5191de37
MC
46362004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4637
4638 * PROBLEMS: Add more specific information, and a work-around,
4639 for PR gdb/1458.
4640
782263ab
AC
46412004-06-18 Andrew Cagney <cagney@gnu.org>
4642
4643 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4644 * gdbarch.h, gdbarch.c: Re-generate.
4645 * ada-lang.c (ada_finish_decode_line_1): Update.
4646 * infrun.c (handle_inferior_event): Update.
4647 * infcall.c (find_function_addr): Update.
4648 * linespec.c (minsym_found): Update.
4649 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4650 Update.
4651 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4652 * cli/cli-cmds.c (disassemble_command): Update.
4653 * vax-tdep.c (vax_gdbarch_init): Update.
4654
2f305df1
MK
46552004-06-18 Mark Kettenis <kettenis@gnu.org>
4656
4657 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4658
e5fe55f7
AC
46592004-06-17 Andrew Cagney <cagney@gnu.org>
4660
4661 GDB 6.1.1 released from the GDB 6.1 branch.
4662 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4663 * PROBLEMS: Ditto.
4664
473b7be6
DJ
46652004-06-16 Daniel Jacobowitz <dan@debian.org>
4666
4667 PR gdb/1658
4668 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4669 operation as a uleb128. Found by Michael Coulter.
4670
96d887e8
PH
46712004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4672
4673 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4674 make it non-static.
4675 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4676 to ada-lang.h; this is needed to be able to implement the kill command
4677 in multi-task mode.
4678 (task_ptid): Ditto.
4679 (task_entry): Ditto.
4680 (task_list): Ditto.
4681 (ada_build_task_list): Ditto.
4682
4683 * ada-lang.c: Conditionalize routines and data structures related
4684 to breakpoints, exceptions, completion, and symbol caching on
4685 GNAT_GDB, since these are not yet used in the submitted public sources.
4686 (ada_main_name): Editorial: Move definition out of exception-related
4687 code.
4688
31eef181
AC
46892004-06-15 Andrew Cagney <cagney@gnu.org>
4690
4691 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4692 deprecated_pc_in_call_dummy.
4693
2c500098
AM
46942004-06-15 Alan Modra <amodra@bigpond.net.au>
4695
4696 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4697 bfd_get_section_size_before_reloc or _raw_size.
4698 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4699 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4700 (dwarf2_read_section): Likewise.
4701 * elfread.c (elf_locate_sections): Likewise.
4702 * gcore.c (derive_heap_segment): Likewise.
4703 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4704 * remote-e7000.c (e7000_load): Likewise.
4705 * remote-m32r-sdi.c (m32r_load): Likewise.
4706 * remote-mips.c (mips_load_srec): Likewise.
4707 (pmon_load_fast): Likewise.
4708 * remote.c (compare_sections_command): Likewise.
4709 * symfile.c (add_section_size_callback): Likewise.
4710 (load_section_callback): Likewise.
4711 (pc_in_unmapped_range): Likewise.
4712 (pc_in_mapped_range): Likewise.
4713 (sections_overlap): Likewise.
4714 (list_overlays_command): Likewise.
4715 (simple_overlay_update_1): Likewise.
4716 (simple_overlay_update): Likewise.
4717 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4718 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4719
90f943f1
RC
47202004-06-14 Randolph Chung <tausq@debian.org>
4721
4722 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4723 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4724 static.
4725 (hppa_hpux_inferior_created): New function.
4726 (hppa_hpux_init_abi): Register observer.
4727 * symfile.c (hp_cxx_exception_support_initialized)
4728 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4729 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4730
700c15aa
RC
47312004-06-14 Randolph Chung <tausq@debian.org>
4732
3973a7d3
AC
4733 * MAINTAINERS (Write After Approval): Alphabetize my entry
4734 correctly.
700c15aa 4735
cea4838c
AC
47362004-06-14 Andrew Cagney <cagney@gnu.org>
4737
4738 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4739 testsuite maintainer.
4740
97092415
AC
47412004-06-13 Andrew Cagney <cagney@gnu.org>
4742
e8c3165b
AC
4743 * infcmd.c (print_return_value): Fix logic, allow
4744 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4745
bceabdd8
AC
4746 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4747 defining any macros.
4748 * gdbarch.h: Re-generate.
4749
57010b1c
AC
4750 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4751 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4752 * gdbarch.h: Re-generate.
4753
bc87dfa0
AC
4754 * values.c (generic_use_struct_convention): Don't check gcc_p.
4755
15ac804d
AC
4756 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4757 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4758 * gdbarch.h, gdbarch.c: Regenerate.
4759 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4760 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4761 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4762 deprecated_max_register_raw_size and
4763 deprecated_max_register_virtual_size.
4764 * v850-tdep.c (v850_gdbarch_init): Ditto.
4765 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4766 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4767 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4768 * cris-tdep.c (cris_gdbarch_init): Ditto.
4769
97092415
AC
4770 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4771 * gdbarch.h, gdbarch.c: Re-generate.
4772 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4773 (m68hc11_use_struct_convention): Delete function.
4774 (m68hc11_extract_struct_value_address): Delete function.
4775 (m68hc11_return_value): New function.
4776 (m68hc11_gdbarch_init): Instead of store_return_value,
4777 extract_return_value, return_value_on_stack,
4778 deprecated_extract_struct_value_address and use_struct_convention,
4779 set return_value.
4780 * values.c (using_struct_return): Do not call
4781 RETURN_VALUE_ON_STACK.
4782 * arch-utils.h (generic_return_value_on_stack_not): Delete
4783 declaration.
4784 * arch-utils.c (generic_return_value_on_stack_not): Delete
4785 function.
4786
44e5158b
AC
47872004-06-12 Andrew Cagney <cagney@gnu.org>
4788
4789 * values.c (register_value_being_returned): Delete function.
4790 * infcmd.c (legacy_return_value): Delete function.
4791 * infcall.c (call_function_by_hand): Inline
4792 "register_value_being_returned", simplify.
4793 * values.c (using_struct_return): Update comment, refer to
4794 print_return_value instead of register_value_being_returned.
4795 * infcmd.c (print_return_value): Inline calls to
4796 register_value_being_returned and legacy_return_value. Simplify.
4797
b887c273
RC
47982004-06-11 Randolph Chung <tausq@debian.org>
4799
4800 * somread.c (som_symtab_read): Exclude gcc local symbols.
4801
1b2bfbb9
RC
48022004-06-11 Randolph Chung <tausq@debian.org>
4803
3973a7d3
AC
4804 * infrun.c (handle_inferior_event): Handle the case when a
4805 trampoline ends up in the runtime resolver, and if the trampoline
4806 has no name. Rearrange the code so that all the trampoline
4807 processing happens before other step-out-of-range handling.
1b2bfbb9 4808
a9d61c86
MH
48092004-06-11 Martin Hunt <hunt@redhat.com>
4810
4811 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4812 has no fpu.
4813
2c87cf5a
AC
48142004-06-10 Andrew Cagney <cagney@gnu.org>
4815
4816 * blockframe.c (legacy_inside_entry_func): Delete.
4817 (legacy_frame_chain_valid): Inline call to
4818 legacy_inside_entry_func, simplify.
4819
0b67b468 48202004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
4821
4822 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
4823 * dwarf2read.c (partial_die_info): Add dirname field.
4824 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4825 (read_partial_die): Save away DW_AT_comp_dir.
4826 * defs.h (symtab_to_filename): Removed.
4827 * source.c (find_and_open_source): Added.
57c22c6c 4828 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
4829 (symtab_to_filename): Removed.
4830 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
4831 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4832 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4833 symtab_to_filename.
4834 * symtab.h (partial_symtab): Add dirname field.
4835 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
4836 (mi_cmd_file_list_exec_source_file): Call new function
4837 symtab_to_fullname to find fullname.
57c22c6c 4838 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 4839 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
4840 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4841
9a1dd1ad
AC
48422004-06-10 Andrew Cagney <cagney@gnu.org>
4843
239ae8c7
AC
4844 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4845 to generic_use_struct_convention, the default value.
4846
fc720350
AC
4847 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4848 of abort.
4849
9a1dd1ad
AC
4850 * ns32k-tdep.c (ns32k_push_arguments): New function.
4851 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4852 * infcall.c (call_function_by_hand): Call error instead of
4853 legacy_push_arguments.
4854 * value.h (legacy_push_arguments): Delete declaration.
4855 * valops.c (legacy_push_arguments): Delete function.
4856 (value_push): Delete function.
4857
fea25152
BF
48582004-06-10 Brian Ford <ford@vss.fsi.com>
4859
4860 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4861 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4862 info.
4863 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4864
30a4a8e0
AC
48652004-06-10 Andrew Cagney <cagney@gnu.org>
4866
4867 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4868 * gdbarch.h, gdbarch.c: Re-generate.
4869 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4870 parameters.
4871 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4872 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4873 deprecated_pc_in_call_dummy instead of
4874 DEPRECATED_PC_IN_CALL_DUMMY.
4875 (arm_skip_prologue): Ditto.
4876 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4877 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4878 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4879 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4880 Ditto.
4881 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4882 (sh64_init_extra_frame_info, sh64_get_saved_register)
4883 (sh64_pop_frame): Ditto.
4884 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4885 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4886 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4887 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4888 (h8300_pop_frame): Ditto.
4889 * blockframe.c (legacy_inside_entry_func)
4890 (legacy_frame_chain_valid): Ditto.
4891 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4892 to deprecated_pc_in_call_dummy.
4893
81cfbe54
AC
48942004-06-09 Andrew Cagney <cagney@gnu.org>
4895
a1f4a1b6
AC
4896 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4897 provide a default value.
4898 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4899 * gdbarch.h, gdbarch.c: Re-generate.
4900 * arch-utils.c (generic_convert_register_p): Rename
4901 legacy_convert_register_p
4902 (legacy_register_to_value, legacy_value_to_register): Delete
4903 functions.
4904 * arch-utils.h (generic_convert_register_p): Rename
4905 legacy_convert_register_p.
4906 (legacy_register_to_value, legacy_value_to_register): Delete
4907 declarations.
4908
9730f241
AC
4909 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4910 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4911 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4912 * gdbarch.h, gdbarch.c: Re-generate.
4913 * infcmd.c (default_print_registers_info): Simplify.
4914 * findvar.c (value_of_register): Simplify.
4915 * mi/mi-main.c (get_register): Simplify.
4916 * arch-utils.c (legacy_convert_register_p): Always return 0.
4917 (legacy_register_to_value, legacy_value_to_register): Always call
4918 internal_error.
4919
8a1bf479
AC
4920 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4921 #ifdef CLEAR_INSN_CACHE code.
4922 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4923 Delete #ifdef CLEAR_DEFERRED_STORES code.
4924
4b38d6f1
AC
4925 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4926
2d62ecc7
AC
4927 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4928 copyright.
4929 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4930
be4f7469
AC
4931 * config/mips/mipsv4.mh: Delete file.
4932
81cfbe54
AC
4933 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4934 unreferenced macro.
4935 (hpread_adjust_stack_address): Delete declaration.
4936
d966f0cb
AC
49372004-06-08 Andrew Cagney <cagney@gnu.org>
4938
4939 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4940 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4941 PTRACE_ATTACH / PTRACE_DETACH available call error.
4942 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4943 * infttrace.c (update_thread_state_after_attach, attach, detach):
4944 Remove #ifdef wrappers.
4945 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4946 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4947 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4948 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4949 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4950 * config/nm-linux.h (ATTACH_DETACH): Delete.
4951 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4952 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4953 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4954 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4955 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4956
d91670b9
CV
49572004-06-08 Corinna Vinschen <vinschen@redhat.com>
4958
4959 * configure.in: Set $configdir to the right OS specific value.
4960 Use value when setting $tcldir and $tkdir.
4961 * configure: Regenerate.
4962
28ba0b33
PB
49632004-06-06 Paul Brook <paul@codesourcery.com>
4964
4965 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4966 records.
4967
f26caa11
PH
49682004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4969
4970 * ada-lang.c (lookup_symbol_in_language): New function to allow
4971 re-use of another language's symbol lookup code. (Placed here
4972 temporarily while Ada support is being integrated into the public
4973 tree).
4974 (restore_language): New auxiliary function for
4975 lookup_symbol_in_language.
4976 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4977 temporarily while Ada support is being integrated into the public
4978 tree).
4979
d560a54b
AO
49802004-06-08 Alexandre Oliva <aoliva@redhat.com>
4981
e75d110c
AO
4982 * Makefile.in (check//%): New.
4983
d560a54b
AO
4984 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4985 (mn10300_store_return_value): Rewrite.
4986 (mn10300_type_align): New.
4987 (mn10300_use_struct_convention): Rewrite.
4988 (mn10300_return_value): New, using all of the above.
4989 (mn10300_pop_frame_regular): Add saved_regs_size.
4990 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4991
a72fbdb7
AO
4992 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4993 regs if PC is on movm.
4994
01904826
JB
49952004-06-07 Jim Blandy <jimb@redhat.com>
4996
4997 Add native Linux support for the PowerPC E500.
4998 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4999 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5000 all architectures except the E500.
5001 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5002 #definitions.
5003 (struct gdb_evrregset_t): New type.
5004 (have_ptrace_getsetevrregs): New variable.
5005 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5006 fetch_spe_registers): New functions.
5007 (fetch_register): Call fetch_spe_register as appropriate.
5008 Assert that we're only passed raw register numbers.
5009 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5010 Don't fetch gprs if they're pseudoregisters.
5011 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5012 store_spe_registers): New functions.
5013 (store_register): Call store_spe_register as appropriate.
5014 Assert that we're only passed raw register numbers.
5015 (store_ppc_registers): Call store_spe_registers as appropriate.
5016 Don't store gprs if they're pseudoregisters.
5017
f90ef764
JJ
50182004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5019
5020 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5021 struct if one exists, even if we are dealing with a zombie thread.
5022
45b75230
AC
50232004-06-07 Andrew Cagney <cagney@gnu.org>
5024
5025 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5026 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5027 Rename PC_REQUIRES_RUN_BEFORE_USE.
5028 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5029 #ifdef.
5030
1658da49
RC
50312004-06-07 Randolph Chung <tausq@debian.org>
5032
5033 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5034 unwinding after sp has been saved to the stack but before the end
5035 of the prologue, and after the fp has been modified but before it has
5036 been saved to the stack.
5037 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5038 Remove superfluous definitions.
5039 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5040
9a727a3c
RC
50412004-06-07 Guy Martin <gmsoft@gentoo.org>
5042
5043 Committed by Randolph Chung.
5044 * hppa-linux-nat.c: Include the correct version of the header file
5045 depending on the kernel version.
5046
9e500012
RC
50472004-06-06 Randolph Chung <tausq@debian.org>
5048
5049 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5050 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5051
3388d7ff
RC
50522004-06-06 Randolph Chung <tausq@debian.org>
5053
5054 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5055 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5056 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5057 * hppa-tdep.c (hppa_symbol_address): New function definition.
5058 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5059
d49771ef
RC
50602004-06-06 Randolph Chung <tausq@debian.org>
5061
5062 * hppa-tdep.h (struct value): Forward declaration.
5063 (gdbarch_tdep): Define tdep find_global_pointer method.
5064 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5065 associated with the function we are trying to call, and write it
5066 to the gp register.
5067 (hppa32_convert_from_funct_ptr_addr): New function.
5068 (hppa_find_global_pointer): New function.
5069 (hppa_gdbarch_init): Set default find_global_pointer method; set
5070 convert_from_func_ptr_addr method.
5071 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5072 (hppa_linux_init_abi): Set find_global_pointer method.
5073 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5074
7d9b040b
RC
50752004-06-06 Randolph Chung <tausq@debian.org>
5076
5077 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5078 to struct value *function.
5079 * gdbarch.c: Regenerate.
5080 * gdbarch.h: Likewise.
5081 * infcall.c (call_function_by_hand): Pass entire function value
5082 to push_dummy_call.
5083
5084 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5085 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5086 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5087 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5088 * arm-tdep.c (arm_push_dummy_call): Likewise.
5089 * avr-tdep.c (avr_push_dummy_call): Likewise.
5090 * cris-tdep.c (cris_push_dummy_call): Likewise.
5091 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5092 * frv-tdep.c (frv_push_dummy_call): Likewise.
5093 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5094 * hppa-tdep.c (hppa32_push_dummy_call)
5095 (hppa64_push_dummy_call): Likewise.
5096 * i386-tdep.c (i386_push_dummy_call): Likewise.
5097 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5098 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5099 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5100 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5101 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5102 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5103 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5104 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5105 (ppc64_sysv_abi_push_dummy_call): Likewise.
5106 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5107 (ppc64_sysv_abi_push_dummy_call): Likewise.
5108 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5109 * s390-tdep.c (s390_push_dummy_call): Likewise.
5110 * sh-tdep.c (sh_push_dummy_call_fpu)
5111 (sh_push_dummy_call_nofpu): Likewise.
5112 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5113 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5114 * vax-tdep.c (vax_push_dummy_call): Likewise.
5115
4a19ea35
JB
51162004-06-04 Jim Blandy <jimb@redhat.com>
5117
8327ccee
JB
5118 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5119 gdbarch argument to register_size.
5120
a3c001ce
JB
5121 * rs6000-tdep.c (rs6000_store_return_value): Use
5122 regcache_cooked_write_part instead of
5123 deprecated_write_register_bytes.
5124 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5125 not gdbarch_deprecated_store_return_value.
5126
4a19ea35
JB
5127 * ppc-linux-nat.c (store_register, fetch_register): Remove
5128 incorrect assertions. Simplify and generalize handling of
5129 transfers whose sizes are not multiples of, or less than, sizeof
5130 (PTRACE_XFER_TYPE).
5131
b9b5d7ea
JJ
51322004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5133
5134 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5135 as a new thread event.
720c7d64 5136 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 5137 zombie, return TD_THR_ZOMBIE.
720c7d64 5138 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
5139 TD_THR_ZOMBIE, check if the thread is still on the thread list
5140 and return a -1 ptid if not found.
5141 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5142 change the status to TARGET_WAITKIND_SPURIOUS.
5143
c8a3b559
CV
51442004-06-03 Corinna Vinschen <vinschen@redhat.com>
5145
5146 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5147 double values in little endian mode.
5148
20605361
AC
51492004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5150
5151 Committed by Andrew Cagney.
5152 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5153 after last enum constant to avoid error from IBM C
5154 compiler.
5155
bc97b3ba
JB
51562004-06-02 Jim Blandy <jimb@redhat.com>
5157
5158 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5159 to 'message', and make it local to the lone block that uses it.
5160
1da28ab0
JB
5161 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5162
4c4b4cd2
PH
51632004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5164
8a2225b2
PH
5165 * ada-exp.y: Update copyright notice.
5166 Include block.h.
5167
5168 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5169 SPECIAL_VARIABLE and unify the treatment of these cases.
5170
5171 (write_attribute_call0): Remove.
5172 (write_attribute_call1): Remove.
5173 (write_attribute_calln): Remove.
5174 (save_qualifier): Add missing semicolon.
5175
5176 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5177 temporarily disabled to allow compilation with FSF head version.
5178
5179 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5180 use individual operators (OP_*) for all attributes.
5181 (exp syntax): Use write_int.
5182 Handle STRING literals with OP_STRING.
5183 (variable syntax): Add limit parameter to calls to
5184 write_object_renaming.
5185
5186 (temp_parse_space): New definition to hold entities that need
5187 only live until the next call to ada_parse.
5188 (string_to_operator): Rename fields of ada_opname_table entries.
5189
5190 (write_var_from_sym): Record block.
5191 (write_var_from_name): Minor reformatting.
5192 Make sure saved name is properly encoded in the case of multiple
5193 matches, and set its language to Ada.
5194 Update comment.
5195 Modify to indicate unresolved name as symbol in the UNRESOLVED
5196 namespace, allocated in temp_parse_space.
5197 (write_int): New function.
5198
5199 (write_object_renaming): Add max_depth parameter to limit
5200 chains of object renamings.
5201 Handle case where root of renaming expression is itself a renaming.
5202 Use temp_parse_space for temporary name buffer.
5203 Handle renamings to dereferenced pointers (___XEXA suffices).
5204
5205 (ada_parse, yyerror, string_to_operator,
5206 write_var_from_sym, write_var_from_name, write_attribute_call0,
5207 write_attribute_call1, write_attribute_calln,
5208 write_object_renaming): Protoize.
5209
5210 (_initialize_ada_exp): New function.
5211
5212 * ada-lang.c: Update copyright notice.
5213 General terminology change to conform to GNAT compiler usage:
5214 mangle => encode, demangle => decode
5215 Include gdb_obstack.h.
5216 Include gdb_regex.h
5217 Include frame.h
5218 Include hashtab.h
5219 Include completer.h
5220 Include gdb_stat.h
5221 Include block.h
5222 Include infcall.h
5223
5224 (ADA_RETAIN_DOTS): Make sure this is defined.
5225 (TRUNCATION_TOWARDS_ZERO): Define.
5226 (struct string_vector): Define.
5227 (unresolved_names): Remove definition.
5228 (xnew_string_vector): New function.
5229 (string_vector_append): New function.
5230 (extract_string): Make static.
5231 (ada_unqualified_name): New function.
5232 (add_angle_brackets): New function.
5233 (function_name_from_pc): New function.
5234 (place_on_stack): Rename to ensure_lval.
5235
5236 (ensure_lval): Renamed from place_on_stack.
5237 Make identity on lvals.
5238 Update comment.
5239 (is_nonfunction): New interface.
5240 Only symbols in LOC_CONST class can be enumerals.
5241 (fill_in_ada_prototype): Remove; now independent of language.
5242 (add_defn_to_vec): Add obstack and symtab arguments.
5243 Use obstack to hold collected definitions.
5244 (num_defns_collected): New function.
5245 (defns_collected): New function.
5246 (ada_resolve_subexp): Rename to resolve_subexp.
5247 (resolve_subexp): Renamed from ada_resolve_subexp.
5248 (ada_op_name): Return non-const result.
5249 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5250 other purposes.
5251
5252 (to_fixed_array_type): Add declaration.
5253 (coerce_unspec_val_to_type): Remove offset parameter.
5254 (find_sal_from_funcs_and_line): New interface.
5255 (find_line_in_linetable): Ditto.
5256
5257 (all_sals_for_line): Rename to ada_sals_for_line and make
5258 global.
5259 Add new parameter. When set, do not ask the user to choose the
5260 instance, but use the first one found instead.
5261 Use given line number in returned sals.
5262 Fix comment.
5263 Skip the prologue if funfirstline is set.
5264 Correct for memory leak when 0 lines found.
5265
5266 (value_pos_atr): Use pos_atr.
5267 (pos_atr): New function.
5268 (standard_lookup): Add block parameter.
5269
5270 (makeTimeStart): Remove declaration and uses.
5271 (makeTimeStop): Remove declaration and uses.
5272
5273 (ada_completer_word_break_characters): Allow for VMS.
5274 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5275 (raise_sym_name): New constant.
5276 (raise_unhandled_sym_name): New constant.
5277 (raise_assert_sym_name): New constant.
5278 (process_raise_exception_name): New constant.
5279 (longest_exception_template): New constant.
5280 (warning_limit): New variable to limit warnings during expression
5281 evaluation.
5282 (warnings_issued): New variable to keep track of warnings issued.
5283 (known_runtime_file_name_patterns): New constant.
5284 (known_auxiliary_function_name_patterns): New constant.
5285 (symbol_list_obstack): New variable.
5286
5287 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5288 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5289 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5290 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5291 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5292 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5293 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5294 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5295 and strcmp.
5296
5297 (ada_get_field_index): New function.
5298 (lim_warning): New function.
5299 (ada_translate_error_message): New function.
5300 (MAX_OF_SIZE): New function.
5301 (MIN_OF_SIZE): New function.
5302 (UMAX_OF_SIZE): New function.
5303 (UMIN_OF_SIZE): New function.
5304 (discrete_type_high_bound): New function.
5305 (discrete_type_low_bound): New function.
5306 (base_type): New function.
5307 (do_command): Remove.
5308
5309 (ada_update_initial_language): Use language_ada, not language_unknown.
5310 (ada_encode): Renamed from ada_mangle.
5311 Obey ADA_RETAIN_DOTS.
5312 (ada_decode): Renamed from ada_demangle.
5313 Update coding conventions.
5314 (decoded_names_store): New hash table.
5315 (ada_decode_symbol): New function.
5316 (ada_la_decode): New function.
5317
5318 (modify_general_field): Correct computations of offset and bit
5319 position.
5320 (desc_base_type): Handle ref types, too.
5321 (ada_is_direct_array_type): New function.
5322
5323 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5324 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5325 (ada_is_bogus_array_descriptor,ada_type_of_array,
5326 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5327 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5328 ada_is_array_descriptor_type.
5329
5330 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5331 (ada_is_packed_array_type): Handle pointers or
5332 references to packed arrays as well.
5333 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5334 (decode_packed_array_type): Search for the packed array type
5335 symbol in the currently selected block and associated
5336 superblocks too.
5337 Use lookup_symbol again.
5338
5339 (decode_packed_array): Handle pointers and references.
5340 Update call to coerce_unspec_val_to_type.
5341 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5342 (ada_value_primitive_packed_val): Improve comment.
5343
5344 (ada_index_type): Substitute int type for "undefined".
5345 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5346 ada_array_langth, ada_is_string_type): Use renamed
5347 ada_is_simple_array_type.
5348 (empty_array): New function.
5349
5350 (ada_resolve): Rename to resolve.
5351 (resolve): Make static.
5352 Call renamed resolve_subexp.
5353 Update comment.
5354 (ada_resolve_subexp): Rename to resolve_subexp.
5355 (resolve_subexp): Update comment.
5356 Decomment disabled code.
5357 Add LOC_COMPUTED* cases.
5358 Modify to use temporary struct symbols (marked as being in
5359 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5360 OP_UNRESOLVED_VALUE.
5361 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5362 Add OP_STRING case.
5363 Remove OP_ARRAY.
5364 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5365 Use new ada_lookup_symbol_list interface.
5366 Use new ada_resolve_function interface.
5367 Remove OP_TYPE case.
5368
5369 (ada_args_match): Idiot proof against null actuals.
5370 Use intermediate variables to clarify.
5371 (ada_resolve_function): Update comment and interface.
5372 (mangled_ordered_before): Rename to encoded_ordered_before and
5373 update comment.
5374 (sort_choices): Update comment and interface.
5375 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5376 (user_select_syms): New interface.
5377 Use new sort_choices interface.
5378 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5379 (possible_user_operator_p): Idiot-proof against null values.
5380 (ada_simple_renamed_entity): Don't make cleanup; rely on
5381 caller to free result string.
5382 Remove const from return type.
5383 (make_array_descriptor): Rename uses of place_on_stack to
5384 ensure_lval.
5385 Make sure that arrays are on stack.
5386
5387 (HASH_SIZE): Define.
5388 (struct cache_entry): Define.
5389 (cache_space): Define.
5390 (cache): Define.
5391 (clear_ada_sym_cache): New function.
5392 (find_entry): New function.
5393 (lookup_cached_symbol): New function.
5394 (defn_vector_size): Define.
5395 (cache_symbol): New function.
5396 (defn_symbols): Remove.
5397
5398 (standard_lookup): Use lookup_symbol_in_language to get effect of
5399 C lookup.
5400 Cache results.
5401
5402 (symbol_completion_match): New function.
5403 (symbol_completion_add): New function.
5404 (ada_make_symbol_completion_list): New function.
5405
5406 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5407 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5408 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5409 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5410
5411 (ada_lookup_simple_minsym): New function.
5412 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5413
5414 (add_symbols_from_enclosing_procs): New interface.
5415 Conditionalize more helpfully.
5416 Don't bother if program isn't running.
5417 Use new interface to get_frame_block.
5418 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5419
5420 (remove_extra_symbols): New interface.
5421 (xget_renaming_scope): New function.
5422 (is_package_name): New function.
5423 (renaming_is_visible): New function.
5424 (remove_out_of_scope_renamings): New function.
5425
5426 (ada_lookup_symbol_list): New interface.
5427 Properly reinitialize the symbol list obstack.
5428 Don't call add_symbols_from_enclosing_procs if we start from a
5429 static or global block.
5430 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5431 add_symbols_from_enclosing_procs.
5432 Add symtab data to cached entries.
5433 Handle symbols prefixed with
5434 "standard__" specially; strip prefix and don't look in local symbols.
5435 Do not include out of scope renaming symbols in list of
5436 symbols returned.
5437 Add const to block parameter.
5438 Move check for non-local, non-global symbols earlier.
5439 Remove timing stuff.
5440 (ada_lookup_symbol): New interface.
5441 Find symtab as well.
5442 (ada_lookup_symbol_nonlocal): New function.
5443
5444 (is_name_suffix): Enhance suffix detection to recognize
5445 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5446 (is_dot_digits_suffix): New function.
5447 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5448
5449 (ada_add_block_symbols): New interface. Use obstack to return results
5450 in a vector of struct ada_symbol_infos. Add symtab argument.
5451 Use new interface to add_defn_to_vec.
5452 Remove calls to fill_in_ada_prototype.
5453 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5454
5455 (ada_finish_decode_line_1): Add const qualification to local to fix
5456 warning.
5457 Start looking in static block for functions to avoid attempts
5458 to search frame chain for up-level variables.
5459 Adapt to new ada_sals_for_line interface.
5460 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5461 Handle quoting of the function name inside the spec string.
5462 Skip prologue when funfirstline is set and update the
5463 function documentation to that effect.
5464
5465 (debug_print_lines, debug_print_block, debug_print_blocks,
5466 debug_print_symtab): Remove.
5467
5468 (ada_main_name): New function.
5469 (ada_exception_breakpoint_type): New function.
5470 (is_known_support_routine): New function.
5471 (ada_find_printable_frame): Renamed from find_printable_frame and made
5472 global.
5473 Remove level parameter.
5474 Use new interface to select_frame.
5475
5476 (begin_command): Remove.
5477 (ada_adjust_exception_stop): New function.
5478 (ada_print_exception_stop): New function.
5479 (exception_name_from_cond): New function.
5480 (ada_report_exception_break): Replace disabled code with
5481 conditionalization on GNAT_GDB.
5482 Get the exception name from the condition string.
5483 Remove and move functionality into new functions
5484 ada_print_exception_breakpoint_task and
5485 ada_print_exception_breakpoint_nontask.
5486 (error_breakpoint_runtime_sym_not_found): New function.
5487 (is_runtime_sym_defined): New function.
5488 (ada_breakpoint_rewrite): Uncomment suppressed code.
5489 Use symbolic error-message and runtime-symbol names.
5490 Surround runtime symbol names in quotes.
5491 Allow non-specific breakpoints on exceptions and assertions before
5492 program starts.
5493
5494 (ada_is_tagged_type): Add parameter.
5495 (ada_is_tag_type): New function.
5496 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5497 (ada_variant_discrim_type): Ditto.
5498 (value_tag_from_contents_and_address): New function.
5499 (type_from_tag): New function.
5500 (struct tag_args): New structure used to communicate with
5501 ada_tag_name_1.
5502 (ada_tag_name_1): New function.
5503 (ada_tag_name): New function.
5504
5505 (ada_scan_number): Update comment.
5506 (find_struct_field): New function.
5507 (ada_search_struct_field): Make static.
5508 (ada_value_struct_elt): New version that returns references when
5509 given pointers or references to structs.
5510 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5511 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5512 interface.
5513 (ada_value_ind): Use new ada_to_fixed_value interface.
5514 (ada_coerce_ref): Ditto.
5515 (field_offset): Remove.
5516
5517 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5518 (ada_find_renaming_symbol): New function.
5519 (ada_prefer_type): Prefer named types over unnamed ones.
5520 (variant_field_index): New function.
5521 (contains_variant_part): Removed: subsumed by variant_field_index.
5522 (ada_template_to_fixed_record_type): New function, mostly from
5523 template_to_fixed_record_type.
5524 (template_to_fixed_record_type):
5525 Do not scan the type fields beyond the last one; prevents a
5526 potential SEGV.
5527 Handle case where variant field is listed BEFORE discriminant it
5528 depends on.
5529 Fix calculation of record length when bit length is
5530 not evenly divisible by char length.
5531 Move code to ada_template_to_fixed_record_type and call it.
5532
5533 (template_to_static_fixed_type): Revise comment.
5534 Modify to work on ordinary record types as well as templates,
5535 so as to handle fields that use ___XVE or ___XVU encodings.
5536 (to_record_with_fixed_variant_part): Fill out comment.
5537 Initialize C++ stuff in right type.
5538 Allow case where DVAL is null.
5539 Handle case where variant field is not last.
5540 Fix typo concerning record length.
5541 (to_fixed_record_type): Decomment disabled code.
5542 (to_fixed_record_type): Use variant_field_index instead of
5543 contains_variant_part.
5544 (to_fixed_variant_branch_type): Ditto.
5545 (to_fixed_array_type): Decomment disabled code.
5546 (ada_to_fixed_type): Convert tagged types to the specific type.
5547 Deactivate the size-check for array types in order to avoid
5548 some false size alarms.
5549 (to_static_fixed_type): Decomment disabled code.
5550 Modify to call template_to_static_fixed_type
5551 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5552 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5553 Remove valaddr argument, as it is never really used.
5554 (ada_to_fixed_value): Change interface to act on single struct value*
5555 operand.
5556 (adjust_pc_past_prologue): New function.
5557 (ada_attribute_name): Modify to take enum exp_opcode argument.
5558
5559 (ada_enum_name): Recognize new homonym-distinguishing convention.
5560 Adjust local variable's type to remove compiler warning.
5561 Fix a small problem in the part that unqualifies the enumeration name.
5562 (ada_value_binop): New function.
5563 (ada_value_equal): New function.
5564
5565 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5566 Don't give error message when not doing normal evaluation
5567 and a tagged type doesn't seem to contain a structure member.
5568 Give error message for packed arrays.
5569 For indexing arrays, handle pointers to packed arrays correctly.
5570 Handle case of 'first and 'last attributes of bare integral type
5571 without encoded subtype info.
5572 Remove some unnecessary casts.
5573 Fix uninitialized value of type in computing 'first, 'last, or 'length
5574 of array object.
5575 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5576 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5577 calls.
5578 Attributes are now exp_opcode values.
5579 Correct treatment of 'modulus.
5580 Better error message for taking 'length of wrong kind of type;
5581 improve comment.
5582 Change EVAL_NORMAL to noside for consistency.
5583 Use ada_value_binop for DIV, MOD, REM.
5584 Make special case out of array of length 0, since an argument
5585 of 0 upsets some platforms' malloc.
5586 Use OP_STRING instead of OP_ARRAY.
5587 For slice, add check that we have an array type before extracting
5588 a slice out of it. Avoids a SEGV.
5589 When evaluating an array slice, if the array type is a reference to
5590 an aligner type, then replace the aligner type by the actual type.
5591 Decomment disabled code.
5592 Remove some dead code.
5593 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5594 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5595 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5596 and UNOP_MBR to UNOP_IN_RANGE.
5597 If an array type has a parallel ___XVE type, then use it.
5598 Turn arrays into pointers for lvalue arrays.
5599 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5600 bounds error and handle 0-length slices.
5601 Use lim_warning.
5602 When selecting fields, apply ada_to_fixed_value (because the fields
5603 might have ___XVU or ___XVE encodings even if not dynamic.)
5604 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5605 (ada_is_system_address_type): New function.
5606
5607 (get_var_value): Use new interface to ada_lookup_symbol_list.
5608 (get_int_var_value): New interface.
5609 (to_fixed_range_type): Allow unknown bound, with warning.
5610 (ada_is_modular_type): Decomment disabled code.
5611 (ADA_OPERATORS): New definition.
5612 (ada_operator_length): New function.
5613 (ada_expr_op_name): New function.
5614 (ada_forward_operator_length): New function.
5615 (ada_dump_subexp_body): New function.
5616 (ada_print_subexp): New function.
5617 (ada_exp_descriptor): New constant.
5618 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5619 (ada_language_defn): Add ada_exp_descriptor entry.
5620 Change ada_parse => parse.
5621 Add post-parser entry.
5622 Use ada-specific non-local symbol lookup.
5623 Don't use C-style arrays.
5624 String lower-bound is 1.
5625 Decomment disabled code.
5626 (parse): New function.
5627 New fields ada_translate_error_message, ada_lookup_symbol,
5628 ada_lookup_minimal_symbol.
5629
5630 * ada-lang.h: Update copyright dates.
5631 Replace the mangle/demangle terminology throughout by the
5632 more appropriate encode/decode one.
5633 Include breakpoint.h.
5634 Forward declare struct partial_symbol, struct block.
5635 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5636 (EXTRACT_ADDRESS): Remove.
5637 (EXTRACT_INT): Remove.
5638 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5639 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5640 (MAX_RENAMING_CHAIN_LENGTH): Define.
5641 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5642
5643 (enum task_states): Remove.
5644 ada_task_states: Remove.
5645 (fat_string): Remove.
5646 (struct entry_call): Remove.
5647 (struct task_fields): Remove.
5648 (struct task_entry): Remove.
5649
5650 (struct ada_symbol_info): Define.
5651 (enum ada_attribute): Remove.
5652 (enum ada_operator): Define.
5653
5654 (ada_get_field_index): Declare.
5655 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5656 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5657 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5658 (ada_lookup_symbol_list): New interface.
5659 (ada_decode_symbol): Declare.
5660 (ada_decode): Declare.
5661 (ada_lookup_symbol): New interface.
5662 (ada_update_initial_language): Declare.
5663 (ada_lookup_simple_minsym): Declare.
5664 (user_select_syms): New interface.
5665 (ada_sals_for_line): Declare.
5666 (ada_is_tagged_type): New interface.
5667 (ada_tag_name): Declare.
5668 (ada_lookup_struct_elt_type): Remove declaration.
5669 (ada_search_struct_field): Remove declaration.
5670 (ada_attribute_name): New interface.
5671 (ada_is_system_address_type): Declare.
5672 (ada_to_fixed_value): Remove declaration.
5673 (ada_template_to_fixed_record_type_1): Declare.
5674 (get_int_var_value): New interface.
5675 (ada_find_any_symbol): Declare.
5676 (ada_find_renaming_symbol): Declare.
5677 (ada_mangle): Rename to ada_encode.
5678 (ada_simple_renamed_entity): Remove const.
5679 (ada_main_name): Declare.
5680 (get_current_task): Rename to ada_get_current_task.
5681 (get_entry_number): Remove declaration.
5682 (ada_report_exception_break): Remove declaration.
5683 (ada_print_exception_breakpoint_nontask): Declare.
5684 (ada_print_exception_breakpoint_task): Declare.
5685 (ada_find_printable_frame): Declare.
5686
5687 * ada-lex.l: Update copyright notices.
5688 Use xmalloc and xfree instead of malloc and free.
5689 Use new interface to name_lookup.
5690 Use new interface to
5691 ada_mangle=>ada_encode.
5692 Redo handling of '$...' variable to parallel current treatment
5693 in c-exp.y.
5694 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5695 digit_to_int, strtoulst, processInt, processReal, processId,
5696 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5697 yywrap): Protoize.
5698
5699 (processInt): Use cast to remove harmless warning.
5700 (processReal): Modify to get rid of compiler warning on scan formats.
5701
5702 (processId): Replace xmalloc with obstack_alloc for name and remove
5703 call to ada_name_string_cleanup.
5704 Remove obsolete disabled code.
5705 (name_lookup): Ditto.
5706 New interface.
5707 Use obsavestring on temp_parse_space instead of savestring
5708 on name, and remove call to ada_name_string_cleanup.
5709 Free string returned from ada_simple_renamed_entity.
5710 Use new interface to ada_lookup_symbol_list.
5711 Decomment disabled code.
5712 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5713 not types.
5714 When a type name lookup succeeds as a result of
5715 lookup_primitive_typename, check for regular type entry that has not
5716 yet been read in.
5717 Limit length of chain of renamed symbols we are willing to follow.
5718 Do not break names beginning with "standard__" into segments.
5719 (block_lookup): Use new interface to ada_lookup_symbol_list.
5720
5721 * ada-typeprint.c: Update copyright notice.
5722 (demangled_type_name): Rename to decoded_type_name.
5723 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5724 (print_range_bound): Correct handling of negative
5725 bounds that make the index type looked unsigned under STABS.
5726 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5727 (print_range_type_named): Use the builtin int type if no type
5728 corresponding to the given type name could be found.
5729 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5730 Add some bullet-proofing.
5731 (print_variant_clauses): Allow for variant branches with ___XVU
5732 encodings that are not dynamic fields.
5733 Use new interface to ada_is_tagged_type.
5734 (print_record_type): Allow for fields with ___XVE encodings that
5735 are not dynamic fields.
5736 Use new interface to ada_is_tagged_type.
5737 (ada_print_type): ada_is_array_descriptor =>
5738 ada_is_array_descriptor_type.
5739
5740 * ada-valprint.c: Update copyright notice.
5741 Include gdb_string.h
5742 Include infcall.h
5743 (ui_memcpy): New function.
5744 (ada_print_floating): New function.
5745 (ada_print_str): Order arguments correctly.
5746 Correct handling of empty arrays and arrays of 0-length items.
5747 ada_is_array_descriptor => ada_is_array_descriptor_type
5748 Print values of type System.Address in hexadecimal format.
5749 Use ada_print_floating to print floating-point numbers in Ada format.
5750 Print class tag values with type names.
5751 No longer print the address of reference values. Avoids
5752 a potential confusion.
5753 (ada_value_print): Stop printing the object type for reference
5754 values, but preserve that behavior for access types. Avoids
5755 a potential confusion.
5756 Simplify one conditional expression, as the first part is now
5757 necessarily true.
5758 ada_is_array_descriptor => ada_is_array_descriptor_type
5759 Add check for arrays for null records, and print them by hand.
4c4b4cd2 5760
f65f91b5
JB
57612004-06-01 Jim Blandy <jimb@redhat.com>
5762
5763 * ppc-tdep.h: Delete unused 'regoff' member.
5764 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5765
d4687fa0
MC
57662004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5767
5768 Fix PR symtab/1661.
5769 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5770 (hpread_read_struct_type): Likewise.
5771
de169ec9
AC
57722004-06-01 Andrew Cagney <cagney@gnu.org>
5773
c6902d46
AC
5774 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5775 instead of xasprintf.
5776 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5777 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5778 (mi_cmd_data_list_register_names)
5779 (mi_cmd_data_list_changed_registers)
5780 (mi_cmd_data_list_register_values)
5781 (get_register, mi_cmd_data_write_register_values)
5782 (mi_cmd_data_write_register_values)
5783 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5784 (mi_cmd_target_download, mi_cmd_target_select)
5785 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5786 (mi_execute_cli_command, mi_execute_async_cli_command)
5787 (mi_execute_async_cli_command): Ditto.
5788 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5789 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5790
6085fc2d
AC
5791 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5792 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5793 error_last_message instead of mi_error_last_message.
5794 * mi/mi-main.c (mi_error_last_message): Delete function.
5795
de169ec9
AC
5796 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5797 "invalid number of columns" error. Delete redundant "out of
5798 memory" check.
5799
1fc7d519
MK
58002004-05-31 Mark Kettenis <kettenis@gnu.org>
5801
6cfb2041
MK
5802 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5803 (gregset_t, fpregset_t): Remove typedefs.
5804 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5805 (REG_OFFSET): Rename argument.
5806 (i386bsd_r_reg_offset): Rename from reg_offset.
5807 (REG_ADDR): Remove macro.
5808 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5809 functions.
5810 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5811 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5812 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5813 instead of supply_gregset.
5814 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5815 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5816 instead of fill_gregset.
5817 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5818
1fc7d519
MK
5819 * i386bsd-nat.c: Don't include "gregset.h".
5820 (supply_gregset, fill_gregset): Make static.
5821 (supply_fpregset, fill_fpregset): Remove.
5822 * Makefile.in (i386bsd-nat.o): Update dependencies.
5823
2c34abbe
MK
58242004-05-30 Mark Kettenis <kettenis@gnu.org>
5825
448724fb
MK
5826 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5827 "gdb_assert.h". Con't include "gregset.h".
5828 (fbsd_make_corefile_notes): Use regset-based core file support
5829 instead off fill_gregset and fill_fpregset.
5830 * Makefile.in (fbsd-proc.o): Update dependencies.
5831
5ca8ca7c
MK
5832 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5833 instructions.
5834 (m88k_frame_prev_register): Simplify code a bit.
5835
593adc23
MK
5836 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5837 (amd64_collect_fpregset): New function.
5838 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5839
8d1b517b
MK
5840 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5841
7fdafb5a
MK
5842 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5843 (i386_collect_gregset): New function.
5844 (i386_supply_fpregset): Adjust comment.
5845 (i386_collect_fpregset): New function.
5846 (i386_regset_from_core_section): Use i386_collect_gregset and
5847 i386_collect_fpregset.
5848
8693c419
MK
5849 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5850 handle VALUEP being null.
5851
2c34abbe
MK
5852 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5853
45d134d8
MK
58542004-05-29 Mark Kettenis <kettenis@gnu.org>
5855
1698f4e7
MK
5856 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5857
45d134d8
MK
5858 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5859 assembler in OpenBSD 3.5-current.
5860 (amd64obsd_sigcontext_addr): Likewise.
5861
691d145a
JB
58622004-05-28 Jim Blandy <jimb@redhat.com>
5863
5864 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5865 register set, so our regcache isn't declared "legacy" and our E500
5866 pseudoregister read and write functions aren't ignored.
5867 (rs6000_register_byte, rs6000_register_raw_size,
5868 rs6000_register_virtual_type, rs6000_register_convertible,
5869 rs6000_register_convert_to_virtual,
5870 rs6000_register_convert_to_raw): Deleted.
5871 (rs6000_register_type, rs6000_convert_register_p,
5872 rs6000_register_to_value, rs6000_value_to_register): New
5873 functions.
5874 (rs6000_gdbarch_init): Don't register
5875 gdbarch_deprecated_register_size,
5876 gdbarch_deprecated_register_bytes,
5877 gdbarch_deprecated_register_byte,
5878 gdbarch_deprecated_register_raw_size,
5879 gdbarch_deprecated_register_virtual_type,
5880 gdbarch_deprecated_register_convertible,
5881 gdbarch_deprecated_register_convert_to_virtual, or
5882 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5883 register gdbarch_register_type, gdbarch_convert_register_p,
5884 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5885
18ed0c4e
JB
58862004-05-26 Jim Blandy <jimb@redhat.com>
5887
5888 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5889 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5890 functions, updated to match the register numberings used in GCC.
5891 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5892 rs6000_dwarf2_reg_to_regnum as register number conversions
5893 functions for STABS and Dwarf2.
5894
779af9e3
RC
58952004-05-26 Randolph Chung <tausq@debian.org>
5896
5897 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5898 in header file.
5899
c23968a2
JB
59002004-05-25 Joel Brobecker <brobecker@gnat.com>
5901
5902 * NEWS: Document new "start" command.
5903
3a7d1c27
RC
59042004-05-25 Randolph Chung <tausq@debian.org>
5905
5906 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5907 hppa-linux.
5908
43613416
RC
59092004-05-25 Randolph Chung <tausq@debian.org>
5910
5911 * hppa-hpux-tdep.c (offsetof): Define.
5912 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5913 (hppa32_hpux_frame_base_before_sigtramp)
5914 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5915 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5916 (hppa64_hpux_frame_base_before_sigtramp)
5917 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5918 functions.
5919 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5920 (hppa_hpux_sigtramp_frame_unwind_cache)
5921 (hppa_hpux_sigtramp_frame_this_id)
5922 (hppa_hpux_sigtramp_frame_prev_register)
5923 (hppa_hpux_sigtramp_frame_unwind)
5924 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5925 (hppa_hpux_init_abi): Register sigtramp unwinder.
5926 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5927
6d1be3f1
RC
59282004-05-25 Randolph Chung <tausq@debian.org>
5929
5930 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5931 and multiple stack unwinds.
5932 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5933
97c34f65
AC
59342004-05-25 Andrew Cagney <cagney@gnu.org>
5935
5936 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5937 * symfile-mem.h: Delete file.
5938 * symfile-mem.c: Do not include "symfile-mem.h".
5939 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5940 "struct bfd_section". When an error do not bother returning NULL.
5941 (add_symbol_file_from_memory_command): Use "struct bfd" and
5942 "struct bfd_section".
5943 * Makefile.in (symfile_mem_h): Delete.
5944 (symfile-mem.o): Update dependencies.
5945
e23cbd82
NR
59462004-05-25 Nick Roberts <nickrob@gnu.org>
5947
5948 * gdb-mi.el: New file.
5949
20d2ca3e
AC
59502004-05-25 Andrew Cagney <cagney@gnu.org>
5951
5952 * inftarg.c: Include "observer.h".
5953 (child_attach, child_create_inferior): Notify inferior_created.
5954 * corelow.c: Include "observer.h".
5955 (core_open): Notify inferior_created.
5956 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5957
c27cda74
AC
59582004-05-25 Andrew Cagney <cagney@gnu.org>
5959
5960 * target.h (struct target_ops): Add from_tty to
5961 to_create_inferior.
5962 (target_create_inferior, find_default_create_inferior): Update.
5963 * infcmd.c (run_command): Update.
5964 * wince.c (child_create_inferior): Update.
5965 * win32-nat.c (child_create_inferior): Update.
5966 * uw-thread.c (uw_thread_create_inferior): Update.
5967 * thread-db.c (thread_db_create_inferior): Update.
5968 * target.c (debug_to_create_inferior)
5969 (find_default_create_inferior): Update.
5970 (maybe_kill_then_create_inferior): Update.
5971 * sol-thread.c (sol_thread_create_inferior): Update.
5972 * remote.c (extended_remote_async_create_inferior)
5973 (extended_remote_create_inferior): Update.
5974 * remote-vx.c (vx_create_inferior): Update.
5975 * remote-st.c (st2000_create_inferior): Update.
5976 * remote-sim.c (gdbsim_create_inferior): Update.
5977 * remote-sds.c (sds_create_inferior): Update.
5978 * remote-rdp.c (remote_rdp_create_inferior): Update.
5979 * remote-rdi.c (arm_rdi_create_inferior): Update.
5980 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5981 * remote-e7000.c (e7000_create_inferior): Update.
5982 * procfs.c (procfs_create_inferior): Update.
5983 * ocd.c (ocd_create_inferior): Update.
5984 * ocd.h (ocd_create_inferior): Update.
5985 * nto-procfs.c (procfs_create_inferior): Update.
5986 * monitor.c (monitor_create_inferior): Update.
5987 * lin-lwp.c (lin_lwp_create_inferior): Update.
5988 * inftarg.c (child_create_inferior): Update.
5989 * hpux-thread.c (hpux_thread_create_inferior): Update.
5990 * gnu-nat.c (gnu_create_inferior): Update.
5991
1db2a798
AC
59922004-05-25 Andrew Cagney <cagney@gnu.com>
5993
5994 * MAINTAINERS: Update e-mail address.
5995
007d08bb
RC
59962004-05-24 Randolph Chung <tausq@debian.org>
5997
5998 * thread.c (info_threads_command, thread_apply_all_command)
5999 (thread_apply_command, thread_command, do_captured_thread_select):
6000 Remove HPUXHPPA-specific code.
6001
69e7b95e
RC
60022004-05-24 Randolph Chung <tausq@debian.org>
6003
6004 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6005 unused symbols.
6006 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6007 references.
6008
a4d5f2e0
JB
60092004-05-24 Joel Brobecker <brobecker@gnat.com>
6010
6011 * infcmd.c (kill_if_already_running): New function, extracted
6012 from run_command().
6013 (run_command): Replace extracted code by call to
6014 kill_if_already_running().
6015 (start_command): New function.
6016 (_initialize_infcmd): Add "start" command.
6017
bf2ca189
MK
60182004-05-24 Mark Kettenis <kettenis@gnu.org>
6019
6020 Add OpenBSD/m88k support.
6021 * NEWS (New native configurations): Mention OpenBSD/m88k.
6022 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6023 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6024 * Makefile.in (m88k_tdep_h): New variable.
6025 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6026 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6027 * configure.host: Add m88*-*-openbsd*.
6028 * configure.tgt: Add m88*-*-openbsd*.
6029
80fadb11
JB
60302004-05-24 Jim Blandy <jimb@redhat.com>
6031
6032 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6033 to approve changes.
6034
19e2d14b
KB
60352004-05-24 Kevin Buettner <kevinb@redhat.com>
6036
6037 * symtab.c (fixup_section): Search section table when lookup by
6038 name fails.
6039
1b07b470
RC
60402004-05-24 Randolph Chung <tausq@debian.org>
6041
6042 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6043 be "small_struct".
6044
368702b1
MK
60452004-05-24 Mark Kettenis <kettenis@gnu.org>
6046
5df97fde
MK
6047 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6048 register number in regcache_raw_collect call.
6049 (m68kbsd_collect_fpregset): Likewise.
6050 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6051
368702b1
MK
6052 * regset.h (struct regset): Add back `regset' member.
6053
a770d4ec
MK
60542004-05-23 Mark Kettenis <kettenis@gnu.org>
6055
70f9f479
MK
6056 * configure.in: Check for td_pcb in `struct thread'.
6057 * configure, config.in: Regenerated.
6058
2e16d79e
MK
6059 * dpx2-nat.c: Remove file.
6060 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6061 (dpx2-nat.o): Remove dependencies.
6062
492cf391
MK
6063 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6064 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6065 (amd64obsd_supply_pcb): New function.
6066 (_initialize_amd64obsd_nat): Enable libkvm interface.
6067 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6068 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6069 (LOADLIBES): New variable.
6070
a770d4ec
MK
6071 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6072 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6073 (sparc32nbsd_supply_pcb): New function.
6074 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6075 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6076 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6077 (LOADLIBES): New variable.
6078
9ea75c57
MK
60792004-05-22 Mark Kettenis <kettenis@gnu.org>
6080
2e0c3539
MK
6081 * bsd-kvm.c, bsd-kvm.h: New files.
6082 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6083 "bsd-kvm.h".
6084 (i386fbsd_supply_pcb): New function.
6085 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6086 (i386fbsd-nat.o): Update dependencies.
6087 (bsd_kvm_h): New variable.
6088 (bsd-kvm.o): New dependency.
6089 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6090 (LOADLIBES): New variable.
6091
9ea75c57
MK
6092 * regset.c: Tweak comment.
6093 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6094 macro.
6095 * regset.h: Update copyright year.
6096 (struct regset): Remove `descr' member, add `gdbarch' member.
6097 (regset_alloc): Adjust prototype and comment.
6098 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6099 (i386_supply_fpregset): Likewise.
6100 (i386_regset_from_core_section): Update call to regset_alloc.
6101 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6102 REGSET->arch.
6103 (i386obsd_aout_regset_from_core_section): Update call to
6104 regset_alloc.
6105 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6106 REGSET->arch.
6107 (i386nbsd_aout_regset_from_core_section): Update call to
6108 regset_alloc.
6109 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6110 REGSET->arch.
6111 (amd64_regset_from_core_section): Update call to regset_alloc.
6112 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6113 REGSET->arch.
6114 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6115 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6116 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6117 (sparc32nbsd_init_abi): Update call to regset_alloc.
6118 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6119 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6120 (sparc64obsd_init_abi): Update call to regset_alloc.
6121 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6122 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6123 (sparc64nbsd_init_abi): Update call to regset_alloc.
6124 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6125 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6126 (sparc64fbsd_init_abi): Update call to regset_alloc.
6127
867e2dc5
JB
61282004-05-22 Jim Blandy <jimb@redhat.com>
6129
6130 * ppc-tdep.h (spe_register_p): New declaration.
6131 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6132 ppc_spefscr_regnum.
6133 * rs6000-tdep.c (spe_register_p): New function.
6134 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6135 spefscr.
6136 (rs6000_gdbarch_init): Initialize the new members of the tdep
6137 structure.
6138
617a4cba
JB
61392004-05-21 Jim Blandy <jimb@redhat.com>
6140
0397dee1
JB
6141 * ppc-linux-nat.c (fetch_register): Move code back to be next
6142 to the comment that describes it. (Moved code, instead of
6143 comment, for symmetry with store_register.)
6144
617a4cba
JB
6145 Allocate regset structures in the gdbarch's obstack, not using
6146 xmalloc.
6147 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6148 Add 'arch' argument. Allocate the regset on arch's obstack, not
6149 using xmalloc.
6150 * regset.h (regset_alloc): Update declaration.
6151 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6152 gdbarch argument.
6153 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6154 * i386-tdep.c (i386_regset_from_core_section): Same.
6155 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6156 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6157 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6158 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6159 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6160 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6161
9aa3914d
JB
61622004-05-21 Joel Brobecker <brobecker@gnat.com>
6163
6164 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6165
99c87dab
JB
61662004-05-21 Jim Blandy <jimb@redhat.com>
6167
6168 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6169 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6170
c2b6b4aa
JB
61712004-05-20 Jim Blandy <jimb@redhat.com>
6172
6173 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6174
144529d0
MK
61752004-05-20 Mark Kettenis <kettenis@gnu.org>
6176
6177 * regset.h: Make prototype const-correct.
6178 * regset.c (regset_xmalloc): Make const-correct.
6179
4725b721
PH
61802004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6181
6182 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6183 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6184 (symbol_search_name): Declare.
6185
6186 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6187 (iter_name_next_hashed): Ditto.
6188 (iter_name_next_linear): Ditto.
6189 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6190
6191 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6192 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6193 (symbol_search_name): New function.
6194
6195 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6196
6197 * minsyms.c (build_minimal_symbol_hash_tables): Change
6198 test for adding to demangled hash table to check for difference
6199 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6200
be07a590
JB
62012004-05-19 Jim Blandy <jimb@redhat.com>
6202
6203 Use a constructor function to create regset structures.
6204 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6205 (struct regset): Use supply_regset_ftype. Add new
6206 'collect_regset' member.
6207 (regset_xmalloc): New declaration.
6208 * regset.c: New file.
6209 * am64-tdep.c (amd64_regset_from_core_section): Use
6210 regset_xmalloc to construct regset structures.
6211 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6212 * i386-tdep.c (i386_regset_from_core_section): Same.
6213 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6214 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6215 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6216 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6217 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6218 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6219 * Makefile.in (COMMON_OBS): Add regset.o.
6220 (regset.o): New rule.
6221
604368f5
JB
62222004-05-19 Joel Brobecker <brobecker@gnat.com>
6223
6224 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6225 and pthread_cond_wait.c.
6226
82d69f8b
JB
62272004-05-18 Jim Blandy <jimb@redhat.com>
6228
6229 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6230 before the mach-specific switch, and then let the individual cases
6231 override the defaults, rather than leaving them uninitialized
6232 until the switch and then setting them in each case.
6233
5859efe5
RC
62342004-05-18 Randolph Chung <tausq@debian.org>
6235
6236 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6237 millicode functions.
6238
9ca80cf8
RC
62392004-05-18 Randolph Chung <tausq@debian.org>
6240
6241 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6242 references to dld_flags_buffer consistent.
6243
ed70ba00
RC
62442004-05-18 Randolph Chung <tausq@debian.org>
6245
6246 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6247 it for unwinding the stack.
6248
63100632
RC
62492004-05-18 Randolph Chung <tausq@debian.org>
6250
6251 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6252 Undefine these so we can overide them using gdbarch.
6253
090ccbb7
RC
62542004-05-18 Randolph Chung <tausq@debian.org>
6255
6256 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6257 handling for 64-bit HPUX (elf).
6258
594706e6
DJ
62592004-05-18 Daniel Jacobowitz <dan@debian.org>
6260
6261 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6262 constants.
6263 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6264 * ia64-tdep.c (examine_prologue): Likewise.
6265 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6266 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6267
e5483145
MK
62682004-05-18 Mark Kettenis <kettenis@gnu.org>
6269
6270 * vax-tdep.c (vax_return_value): Implement
6271 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6272
caed1a45
MK
62732004-05-17 Mark Kettenis <kettenis@gnu.org>
6274
6275 * vax-tdep.c (vax_return_value): Fix typo.
6276
3c0b7db2
AC
62772004-05-17 Andrew Cagney <cagney@redhat.com>
6278
5aae53e5
AC
6279 * MAINTAINERS: Mark Salter was also responsible for
6280 testsuite/config/
6281
3c0b7db2
AC
6282 * NEWS: Mention signal fixes.
6283
22b0923d
RC
62842004-05-17 Randolph Chung <tausq@debian.org>
6285
6286 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6287 check to see if we are unwinding an export stub. Export stubs clobber
6288 the %rp in the call path and stores the original rp in a stack slot.
6289
22f2b2f3
JB
62902004-05-17 Jim Blandy <jimb@redhat.com>
6291
6292 * MAINTAINERS: Update address for J.T. Conklin.
6293
cea96d64
RC
62942004-05-17 Randolph Chung <tausq@debian.org>
6295
6296 * hppa-tdep.c: Remove superfluous #include's.
6297 * Makefile.in (hppa-tdep.o): Update dependencies.
6298
f08f6a4a
RC
62992004-05-17 Randolph Chung <tausq@debian.org>
6300
6301 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6302 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6303 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6304 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6305 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6306 Remove static function declarations.
6307
51da707a
MK
63082004-05-17 Mark Kettenis <kettenis@gnu.org>
6309
caed1a45
MK
6310 * alphabsd-nat.c: Update copyright year.
6311 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6312
c0c2b0db
MK
6313 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6314 and M68K_A2_REGNUM.
6315
51da707a
MK
6316 * m68k-tdep.c (m68k_svr4_return_value): Implement
6317 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6318
8d027a04
MK
63192004-05-16 Mark Kettenis <kettenis@gnu.org>
6320
6321 * sol-thread.c Update copyright year. Fix various coding
6322 standards violations. Tweak a few comments.
6323 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6324 Delete prototypes.
6325
0d99fdb9
RC
63262004-05-15 Randolph Chung <tausq@debian.org>
6327
6328 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6329 as pointer instead of array reference since HPUX compiler does
6330 not accept unsized array arguments.
6331 * somsolib.c (dld_flags_buffer): Use constant array size.
6332
f7e3843a
MK
63332004-05-15 Mark Kettenis <kettenis@gnu.org>
6334
0fe85704
MK
6335 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6336 offset with decimal offset.
6337 (amd64obsd_sigcontext_addr): Return correct address for entire
6338 signal trampoline.
6339
a54f9a00
MK
6340 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6341 instead of get_frame_base.
6342
feae6502
MK
6343 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6344 (fill_gregset): Use regcache_raw_collect.
6345
0382d099
MK
6346 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6347 ppcobsd-tdep.c.
6348
f7e3843a
MK
6349 * config/sparc/tm-nbsd64.h: Remove file.
6350 * config/tm-sunos.h: Remove file.
6351
773df3e5
JB
63522004-05-15 Joel Brobecker <brobecker@gnat.com>
6353
6354 * rs6000-tdep.c (store_param_on_stack_p): New function,
6355 an improved version of some code extracted from skip_prologue().
6356 (skip_prologue): Use store_param_on_stack_p() to detect
6357 instructions saving a parameter on the stack. Detect when r0
6358 is used to save a parameter.
6359 Do not mark "li rx, SIMM" instructions as part of the prologue,
6360 unless the following instruction is also part of the prologue.
6361
95918acb
AC
63622004-05-14 Andrew Cagney <cagney@redhat.com>
6363
06f32659
AC
6364 * infrun.c (handle_inferior_event): Simplify
6365 STEP_OVER_UNDEBUGGABLE.
6366
95918acb
AC
6367 * infrun.c (handle_step_into_function): Delete function.
6368 (handle_inferior_event): Inline calls to
6369 handle_step_into_function.
6370
40711ff1 63712004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
6372
6373 * rs6000-nat.c: Fix a comment.
6374
02f60eae
JB
63752004-05-12 David Anderson <davea@sgi.com>
6376
6377 Committed by Jim Blandy <jimb@redhat.com>:
6378 * regcache.c (struct regcache_descr): fix comment spelling.
6379
552e377b
JB
63802004-05-13 J. Brobecker <brobecker@gnat.com>
6381
6382 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6383 Fixes a link link failure.
6384
349766b2
JB
63852004-05-13 J. Brobecker <brobecker@gnat.com>
6386
6387 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6388 error that was causing the build to fail.
6389
0d4d5484
JB
63902004-05-13 J. Brobecker <brobecker@gnat.com>
6391
6392 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6393 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6394
0b30808c
AC
63952004-05-13 Andrew Cagney <cagney@redhat.com>
6396
6397 * infrun.c (handle_inferior_event): Check for
6398 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6399 calls. Update comments.
6400
cdf2c5f5
JB
64012004-05-13 Jim Blandy <jimb@redhat.com>
6402
063715bf
JB
6403 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6404 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6405 (store_regs_user_thread, store_regs_kernel_thread): Use
6406 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6407 * ppc-linux-nat.c (fill_gregset): Same.
6408 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6409 (ppc_linux_sigtramp_cache): Same.
6410 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6411 (ppcnbsd_sigtramp_cache_init): Same.
6412 * rs6000-nat.c (fetch_core_registers): Same.
6413 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6414 (rs6000_frame_cache): Same.
6415
cdf2c5f5
JB
6416 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6417 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6418 of assuming that the gprs are numbered starting with zero.
6419 * ppc-linux-nat.c (fill_gregset): Same.
6420 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6421 * ppcnbsd-nat.c (getregs_supplies): Same.
6422 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6423 * rs6000-nat.c (fetch_core_registers): Same.
6424 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6425
450bd37b
MS
64262004-05-07 Michael Snyder <msnyder@redhat.com>
6427
6428 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6429 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6430
4a72a2a6
AC
64312004-05-13 Andrew Cagney <cagney@redhat.com>
6432
6433 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6434
8edfa926
BM
64352004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6436
6437 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6438 base_address for shared libraries.
6439
723e0e3d
BM
64402004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6441
6442 * MAINTAINERS (write after approval): Add myself.
6443
00d4360e
UW
64442004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6445
6446 * breakpoint.c (bpstat_stop_status): Add new argument
6447 STOPPED_BY_WATCHPOINT. Use it instead of testing
6448 target_stopped_data_address agaist 0 to check whether
6449 or not we stopped due to a hardware watchpoint.
6450 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6451 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6452 with new argument.
6453
ec76baa5
JB
64542004-05-12 Jim Blandy <jimb@redhat.com>
6455
6456 * configure.in: When checking whether we should use the -bbigtoc
6457 option, don't forget to restore the original value of LDFLAGS.
6458 * configure: Regenerated.
6459
f2c9ca08
AC
64602004-05-12 Andrew Cagney <cagney@redhat.com>
6461
6462 * thread.c (load_infrun_state): Delete step_sp.
6463 * infrun.c (context_switch): Ditto.
6464 * inferior.h (step_sp): Ditto.
6465 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6466 * gdbthread.h (struct thread_info, save_infrun_state)
6467 (restore_infrun_state): Ditto.
6468
090ddb2a
UW
64692004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6470
6471 * MAINTAINERS (write after approval): Add myself.
6472
8aad930b
AC
64732004-05-12 Andrew Cagney <cagney@redhat.com>
6474
6475 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6476 eliminate reference to step_sp.
6477 (struct execution_control_state, init_execution_control_state)
6478 (handle_inferior_event, keep_going): Delete update_step_sp and
6479 step_sp.
6480 * infcmd.c (step_sp): Note that variable is unused.
6481
922d5ae0
AC
64822004-05-11 Andrew Cagney <cagney@redhat.com>
6483
6484 * infrun.c (step_over_function): Delete function.
6485 (handle_step_into_function): Use insert_step_resume_breakpoint.
6486 (insert_step_resume_breakpoint): Fix assertion.
6487
017c5ca5
NR
64882004-05-11 Nick Roberts <nickrob@gnu.org>
6489
6490 * utils.c (defaulted_query): Just use the normal query input type
6491 when printing the annotations.
6492
42edda50
AC
64932004-05-11 Andrew Cagney <cagney@redhat.com>
6494
6495 * infrun.c (handle_inferior_event): Simplify code handling
6496 step-into or return-from a signal trampoline.
6497
d28b44a7
AC
64982004-05-11 Andrew Cagney <cagney@redhat.com>
6499
6500 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6501 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6502
383f0f5b
JB
65032004-05-10 Jim Blandy <jimb@redhat.com>
6504
d0b57c3a
JB
6505 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6506 with a call to internal_error.
6507
383f0f5b
JB
6508 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6509 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6510 processor variant lacks those registers.
6511 (ppc_floating_point_unit_p): Change description to make it clear
6512 that this returns info about the ISA, not the ABI.
6513 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6514 return true or false by checking tdep->ppc_fp0_regnum and
6515 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6516 arch/mach switching done in rs6000_gdbarch_init; it's better to
6517 keep that logic there, and just check the results here.
6518 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6519 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6520 floating-point registers.
6521 (ppc_supply_fpregset, ppc_collect_fpregset)
6522 (rs6000_push_dummy_call, rs6000_extract_return_value)
6523 (rs6000_store_return_value): Assert that we have floating-point
6524 registers.
6525 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6526 (rs6000_frame_cache): Don't note the locations at which
6527 floating-point registers were saved if we have no fprs.
6528 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6529 registers.
6530 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6531 (store_regs_user_thread, store_regs_kernel_thread): Only call
6532 supply_fprs / fill_fprs if we actually have floating-point
6533 registers.
6534 (special_register_p): Check ppc_fpscr_regnum before matching
6535 against it.
6536 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6537 supply / collect fpscr if we don't have it.
6538 * ppc-bdm.c: #include "gdb_assert.h".
6539 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6540 have floating-point registers, since I can't test this code on
6541 FP-free systems to adapt it.
6542 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6543 fpscr and floating point register numbers if they don't exist.
6544 (fetch_register): Assert that we have floating-point registers
6545 before we reach the code that handles them.
6546 (store_register): Same. And use tdep instead of calling
6547 gdbarch_tdep again.
6548 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6549 don't have them.
6550 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6551 fprs and fpscr if we don't have them.
6552 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6553 don't have them.
6554 * ppcnbsd-nat.c: #include "gdb_assert.h".
6555 (getfpregs_supplies): Assert that we have floating-point registers.
6556 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6557 * ppcobsd-tdep.c: #include "gdb_assert.h".
6558 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6559 have floating-point registers.
6560 * rs6000-nat.c (regmap): Don't match against the fpscr and
6561 floating point register numbers if they don't exist.
6562 (fetch_inferior_registers, store_inferior_registers,
6563 fetch_core_registers): Only fetch / store / supply the
6564 floating-point registers and the fpscr if we have them.
6565 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6566 (ppcobsd-tdep.o): Update dependencies.
6567
15960608
AC
65682004-05-10 Andrew Cagney <cagney@redhat.com>
6569
6570 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6571 (context_switch): Do not switch through_sigtramp_breakpoint.
6572 * gdbthread.h (save_infrun_state, load_infrun_state)
6573 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6574 and structure member.
6575 * thread.c (load_infrun_state, save_infrun_state): Update.
6576
5ab5aa0f
MK
65772004-05-10 Mark Kettenis <kettenis@gnu.org>
6578
6579 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6580
da78b0e7
DJ
65812004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6582
6583 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6584 throughout.
6585 * aclocal.m4: Regenerate.
6586
cca0d3b0
NW
65872004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6588
6589 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6590
d303a6c7
AC
65912004-05-10 Andrew Cagney <cagney@redhat.com>
6592
6593 * infrun.c (check_sigtramp2): Delete function.
6594 (handle_inferior_event): When single stepping, and taking a
6595 signal, set a breakpoint at the signal return address. Delete
6596 redundant calls to check_sigtramp2.
6597 (insert_step_resume_breakpoint): New function.
6598 (through_sigtramp_breakpoint, handle_inferior_event)
6599 (follow_exec, wait_for_inferior, fetch_inferior_event)
6600 (currently_stepping, keep_going): Delete most uses of
6601 through_sigtramp_breakpoint, not that it should be deleted.
6602 (delete_breakpoint_current_contents): Delete function.
6603
03f4cc20
RC
66042004-05-10 Randolph Chung <tausq@debian.org>
6605
6606 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6607 target.
6608 * config/pa/tm-linux.h: New file.
6609
37fc812e
DJ
66102004-05-10 Daniel Jacobowitz <drow@mvista.com>
6611
6612 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6613 of prefixes. Don't print the prefix twice in the CLI.
6614
26c0b942
JB
66152004-05-10 Jim Blandy <jimb@redhat.com>
6616
2e56e9c1
JB
6617 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6618 collect all the gprs.
6619
26c0b942
JB
6620 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6621 loop collecting gprs.
6622
dc497459
AC
66232004-05-09 Andrew Cagney <cagney@redhat.com>
6624
6625 * remote-vx.c (net_step): Delete step-range code.
6626 * remote.c (remote_resume, init_all_packet_configs)
6627 (set_remote_protocol_E_packet_cmd)
6628 (show_remote_protocol_E_packet_cmd)
6629 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6630 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6631 (show_remote_protocol_e_packet_cmd): Ditto.
6632
0543f387
MK
66332004-05-09 Mark Kettenis <kettenis@gnu.org>
6634
c481d1ca
MK
6635 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6636
f626a069
MK
6637 * hppa-tdep.h: Update copyright year.
6638 (struct trad_frame_saved_reg): Add opaque declaration.
6639
6fa57a7d
MK
6640 * amd64-tdep.c (amd64_return_value): Implement
6641 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6642
e47577ab
MK
6643 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6644 (m68k_value_to_register): New functions.
6645 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6646 value_to_register.
6647
31db7b6c
MK
6648 * defs.h (enum return_value_convention): Add
6649 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6650 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6651 * infcmd.c (legacy_return_value): New function.
6652 (print_return_value): Rwerite to implement
6653 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6654 * values.c (using_struct_return): Check for inequality to
6655 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6656 RETURN_VALUE_STRUCT_CONVENTION.
6657 * i386-tdep.c (i386_return_value): Implement
6658 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6659
0543f387
MK
6660 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6661 include "symtab.h", "opcode/vax.h" and "inferior.h".
6662 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6663 to read_memory_unsigned_integer.
6664 (vax_gdbarch_init): Reorder.
6665 (_initialize_vax_tdep): Spell out prototype.
6666 * Makefile.in (vax-tdep.o): Update dependencies.
6667
0c93b7b6
AC
66682004-05-08 Andrew Cagney <cagney@redhat.com>
6669
e6b55ae2
AC
6670 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6671 * target.c (target_detach, target_disconnect): Ditto.
6672
1ac839b8
AC
6673 * infcall.c (call_function_by_hand): When no
6674 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6675 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6676 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6677 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6678 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6679
28954179
AC
6680 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6681 * gdbarch.h, gdbarch.c: Re-generate.
6682 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6683 deprecated_fix_call_dummy.
6684 * v850-tdep.c (v850_gdbarch_init): Ditto.
6685 * infcall.c (call_function_by_hand): Do not call
6686 DEPRECATED_FIX_CALL_DUMMY.
6687
434b87dd
AC
6688 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6689 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6690 * gdbarch.h, gdbarch.c: Re-generate.
6691 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6692 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6693 deprecated_sizeof_call_dummy_words.
6694 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6695 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6696 * v850-tdep.c (v850_gdbarch_init): Ditto.
6697 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6698 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6699 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6700 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6701 * arch-utils.h (legacy_call_dummy_words)
6702 (legacy_sizeof_call_dummy_words): Delete declarations.
6703 * arch-utils.c (legacy_call_dummy_words)
6704 (legacy_sizeof_call_dummy_words): Delete variables.
6705
58d28df8
AC
6706 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6707 * gdbarch.h, gdbarch.c: Re-generate.
6708 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6709 * infcall.c (call_function_by_hand): Eliminate call to
6710 DEPRECATED_PUSH_DUMMY_FRAME.
6711 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6712 push_dummy_frame.
6713 (ns32k_push_dummy_frame): Delete function.
6714
e4a2df64
AC
6715 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6716 deprecated_call_dummy_breakpoint_offset or
6717 deprecated_call_dummy_start_offset.
6718 * dummy-frame.c, arm-tdep.c: Update comments.
6719 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6720 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6721 * gdbarch.h, gdbarch.c: Re-generate.
6722
d3712828
AC
6723 * infcall.c (legacy_push_dummy_code): Delete function.
6724 (push_dummy_code): Delete call.
6725
7a882905
AC
6726 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6727 * gdbarch.h, gdbarch.c: Re-generate.
6728 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6729 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6730 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6731 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6732
0ec5872b
AC
6733 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6734 (struct frame_info): Delete opaque declaration.
6735 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6736 * frame.c (get_frame_type): Delete call.
6737
0c93b7b6
AC
6738 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6739 pc_in_call_dummy.
6740 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6741 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6742
75536971
MK
67432004-05-08 Mark Kettenis <kettenis@gnu.org>
6744
527ca6bb
MK
6745 * alphanbsd-tdep.c: Include "gdb_string.h".
6746 * armnbsd-tdep.c: Update copyright year.
6747 Include "gdb_string.h".
6748 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6749 dependencies.
6750
d39fdc61
MK
6751 * delta68-nat.c: Remove file.
6752 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6753 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6754 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6755 (delta68-nat.o): Remove dependency.
6756
75536971
MK
6757 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6758 function.
6759 (m68k_gdbarch_init): Don't set
6760 deprecated_frameless_function_invocation.
6761
f4ca1d1f
RC
67622004-05-07 Randolph Chung <tausq@debian.org>
6763
6764 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6765 read_memory_nobpt for code reading when doing frame unwinding.
6766 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6767
2f0e8c7a
RC
67682004-05-07 Randolph Chung <tausq@debian.org>
6769
6770 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6771 instead of sp, handle sigaltstack case.
6772 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6773 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6774 signal handler and not that of the caller.
6775 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6776 hppa_linux_sigtramp_find_sigcontext.
6777
959464ff
RC
67782004-05-07 Randolph Chung <tausq@debian.org>
6779
6780 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6781 hppa-linux-nat.c.
6782 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6783 * hppa-linux-nat.c (fetch_register, store_register): Define.
6784 (fetch_inferior_registers, store_inferior_registers): Define.
6785 (supply_gregset): Add comment and clean up some unneeded code.
6786 (fill_gregset): Add comment and fix so that it saves registers in
6787 the right place in the gregset.
6788 (fill_fpregset): Fix buffer overrun problem.
6789 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6790
0da28f8a
RC
67912004-05-07 Randolph Chung <tausq@debian.org>
6792
6793 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6794 do common handling of the pcoqt register.
6795 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6796 to use helper function.
6797 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6798 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6799 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6800 generic fallback unwinder when all else fails.
6801 (hppa_gdbarch_init): Add fallback sniffer.
6802 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6803 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6804 to use helper function.
6805
b9ec757a
JB
68062004-05-08 Joel Brobecker <brobecker@gnat.com>
6807
6808 * config/djgpp/fnchange.lst: Add translation rules for
6809 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6810
756e95f1
MK
68112004-05-08 Mark Kettenis <kettenis@gnu.org>
6812
6813 * frame.c (get_prev_frame_1): Work around GCC bug.
6814 * frame.h: Add comment about GCC bug.
6815
2b4855ab
AC
68162004-05-07 Andrew Cagney <cagney@redhat.com>
6817
6818 * observer.c: Include "commands.h" and "gdbcmd.h".
6819 (observer_debug, _initialize_observer): Add the
6820 command "set/show debug observer".
6821 * observer.sh: When observer debugging, log notify calls.
6822 * Makefile.in (observer.o): Update dependencies.
6823
ba3e8e46
JM
68242004-05-07 Jason Molenda (jmolenda@apple.com)
6825
6826 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6827
16796152
JB
68282004-05-07 Jim Blandy <jimb@redhat.com>
6829
daf6dc85
JB
6830 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6831 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6832 to recognize gpr regnums, instead of assuming that
6833 tdep->ppc_fp0_regnum marks the end of the general-purpose
6834 registers.
6835
16796152
JB
6836 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6837 the given architecture has floating-point registers.
6838
c69b8bfc
AC
68392004-05-07 Andrew Cagney <cagney@redhat.com>
6840
6841 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6842 macro defined to 1.
6843 * gdbarch.h, gdbarch.c: Re-generate.
6844 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6845 deprecated_use_generic_dummy_frames.
6846
7243600a
BF
68472004-05-07 Brian Ford <ford@vss.fsi.com>
6848
6849 * NEWS: Mention Cygwin DWARF 2 support.
6850
73c1e0a1
AC
68512004-05-07 Andrew Cagney <cagney@redhat.com>
6852
6853 * objfiles.h (struct entry_info): Delete unused fields
6854 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6855 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6856 * mipsread.c (mipscoff_symfile_read): Update.
6857 * mdebugread.c (parse_partial_symbols): Update.
6858 * dwarfread.c (read_file_scope): Update.
6859 * dwarf2read.c (read_file_scope): Update.
6860 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6861 * coffread.c (complete_symtab): Update.
6862
1d3056ac
MK
68632004-05-07 Mark Kettenis <kettenis@gnu.org>
6864
6865 * infcall.c (_initialize_infcall): Fix typo.
6866
15170568
AC
68672004-05-07 Andrew Cagney <cagney@redhat.com>
6868
6869 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6870 * command.h (add_setshow_zinteger_cmd): Declare.
6871
34f75cc1
RC
68722004-05-06 Randolph Chung <tausq@debian.org>
6873
6874 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6875 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6876 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6877 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6878 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6879 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6880 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6881 definitions ...
6882 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6883 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6884 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6885 (hppa64_hpux_frame_find_saved_regs_in_sig)
6886 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6887 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6888 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6889 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6890 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6891 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6892 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6893 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6894 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6895 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6896 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6897 (hppa32_register_type, hppa_cannot_store_register)
6898 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6899 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6900 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6901 * pa64solib.c (pa64_solib_have_load_event)
6902 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6903 (pa64_solib_unloaded_library_pathname): Likewise.
6904 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6905 (som_solib_library_pathname): Likewise.
6906
0a5e7efe
JI
69072004-05-05 Jim Ingham <jingham@apple.com>
6908
6909 * breakpoint.c (create_breakpoints): Copy the ignore count and
6910 thread id over from the pended breakpoint to the actual
6911 breakpoint.
6912
10a4b113
AC
69132004-05-05 Andrew Cagney <cagney@redhat.com>
6914
6915 * gdbarch.sh (PARM_BOUNDARY): Delete.
6916 gdbarch.h, gdbarch.c: Re-generate.
6917 * valops.c (PARM_BOUNDARY): Delete macro.
6918 (value_push): Delete PARM_BOUNDARY code.
6919 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6920
366f009f
JB
69212004-05-04 Jim Blandy <jimb@redhat.com>
6922
32b99774
JB
6923 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6924 Don't assume that the gprs, fprs, and UISA sprs are
6925 contiguous, start at register number zero, and end with fpscr.
6926 Instead, use the numbers from the tdep structure.
6927
366f009f
JB
6928 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6929 should no longer be used in code specific to the RS6000 and its
6930 derivatives.
6931 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6932 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6933 tdep->ppc_fp0_regnum.
6934 (ppc_supply_fpregset, ppc_collect_fpregset)
6935 (rs6000_push_dummy_call, rs6000_extract_return_value)
6936 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6937 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6938 FP0_REGNUM.
6939 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6940 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6941 Same.
6942 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6943 bdm_ppc_store_registers): Same.
6944 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6945 (store_register, fill_fpregset): Same.
6946 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6947 (ppc_linux_supply_fpregset): Same.
6948 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6949 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6950 Same.
6951 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6952 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6953 ppc64_sysv_abi_return_value): Same.
6954 * rs6000-nat.c (regmap, fetch_inferior_registers)
6955 (store_inferior_registers, fetch_core_registers): Same.
6956
827f338d
MK
69572004-05-01 Mark Kettenis <kettenis@gnu.org>
6958
6959 * m68knbsd-nat.c: Remove file.
6960 * m68knbsd-tdep.c: Remove file.
6961 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6962 dependencies.
6963 * configure.host: Add m68k-*-netbsdelf*.
6964 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6965 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6966 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6967 (XM_FILE): Remove.
6968 * config/m68k/nbsdelf.mh: New file.
6969 * config/m68k/nbsd.mt: New file.
6970 * config/m68k/nbsdaout.mt: Remove file.
6971 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6972 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6973 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6974 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6975 (use_struct_convention): Remove prototype.
6976 (USE_STRUCT_CONVENTION): Remove define.
6977 * config/m68k/xm-nbsd.h: Remove file.
6978
66894781
MS
69792004-05-04 Michael Snyder <msnyder@redhat.com>
6980
6981 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6982 reg_struct_return method (as gcc usually does for cross targets).
6983
f0f63663
AC
69842004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6985
6986 Committed by Andrew Cagney.
6987 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6988 alignment padding when accessing ucontext struct members.
6989
edf61169
JB
69902004-05-04 Jim Blandy <jimb@redhat.com>
6991
8bf659e8
JB
6992 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6993 'ppc_gplast_regnum' member.
6994 (ppc_num_gprs): New enum constant.
6995 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6996 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6997 * rs6000-nat.c (regmap, fetch_inferior_registers,
6998 store_inferior_registers): Same.
6999 * rs6000-tdep.c (e500_pseudo_register_read)
7000 (e500_pseudo_register_write): Same.
7001 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7002
b967e06f
JB
7003 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7004 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7005 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7006 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7007 FPLAST_REGNUM.
7008 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7009 Same.
7010 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7011 * rs6000-nat.c (regmap, fetch_inferior_registers)
7012 (store_inferior_registers): Same.
7013
edf61169
JB
7014 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7015 with FPLAST_REGNUM.
7016
58a9656e
JB
70172004-05-03 Joel Brobecker <brobecker@gnat.com>
7018
7019 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7020 failure detected by recent versions of GCC.
7021 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7022 to be consistent with the usage in dwarf2_create_include_psymtab.
7023
dc305454
MS
70242004-05-03 Michael Snyder <msnyder@redhat.com>
7025
7026 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7027 (heuristic_proc_start): Whitespace cleanup.
7028
29972665
MK
70292004-05-04 Mark Kettenis <kettenis@gnu.org>
7030
6b57680d
MK
7031 * sun3-nat.c: Remove file.
7032 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7033 dependencies.
7034 (ALLDEPFILES): Remove sun3-nat.c.
7035 (sun3-nat.o): Remove dependencies.
7036
29972665
MK
7037 * i386-interix-nat.c, i386-interix-tdep.c,
7038 config/i386/nm-interix.h, config/i386/interix.mh,
7039 config/i386/interix.mt: Remove files.
7040 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7041 dependencies.
7042
f595cb19
MK
70432004-05-03 Mark Kettenis <kettenis@gnu.org>
7044
7045 * m68k-tdep.h (struct gdbarch_tdep): Add member
7046 struct_value_regnum.
7047 (m68k_svr4_init_abi): New prototype.
7048 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7049 different calling conventions.
7050 (m68k_extract_return_value): Remove code dealing with single-field
7051 structs.
7052 (m68k_store_return_value): Remove code dealing with single-field
7053 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7054 (m68k_extract_struct_value_address): Remove function.
7055 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7056 (m68k_reg_struct_return_p, m68k_return_value)
7057 (m68k_svr4_return_value): New functions.
7058 (m68k_use_struct_convention): Remove function.
7059 (m68k_push_dummy_call): Use new struct_value_regnum member of
7060 `struct gdbarch_tdep' instead of hardcoded register number to
7061 store STRUCT_ADDR.
7062 (m68k_svr4_init_abi): New function.
7063 (m68k_gdbarch_init): Don't set extract_return_value,
7064 store_return_values, deprecated_extract_struct_value_address and
7065 use_struct_convention. Set return_value instead. Initialize new
7066 struct_value_regnum member of `struct gdbarch_tdep'.
7067 * m68klinux-tdep.c: Update copyright year.
7068 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7069 (m68k_linux_extract_struct_value_address): Remove function.
7070 (m68k_linux_init_abi): Don't set extract_return_value,
7071 store_return_values, deprecated_extract_struct_value_address and
7072 use_struct_convention. Call m68k_svr4_init_abi but override the
7073 new struct_value_regnum member of `struct gdbarch_tdep'.
7074 * Makefile.in (m68k-tdep.o): Update dependencies.
7075
aaa75496
JB
70762004-05-03 J. Brobecker <brobecker@gnat.com>
7077
7078 * dwarf2read.c (line_header): Add new included_p field in
7079 field file_names.
7080 (partial_die_info): New field has_stmt_list. New field line_offset.
7081 (dwarf2_create_include_psymtab): New function.
7082 (dwarf2_build_include_psymtabs): New function.
7083 (add_file_name): Add forward declaration. Initialize new field.
7084 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7085 to be able to determine the list of files included by the
7086 given unit, and build their associated psymtabs.
7087 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7088 files as well.
7089 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7090 (read_file_scope): Update call to dwarf_decode_lines.
7091 (read_partial_die): Handle DW_AT_stmt_list attributes.
7092
c848556f
MC
70932004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7094
7095 Unfix PR gdb/1626.
7096 * configure.in: Revert special case for osf5.*.
7097 * configure: Regenerate.
7098
eb4556d7
JB
70992004-05-02 Jim Blandy <jimb@redhat.com>
7100
7101 Move the symbol-file-from-memory functions into their own file.
7102 * symfile-mem.c, symfile-mem.h: New files.
7103 * symfile.c (symbol_file_add_from_bfd): New function.
7104 (symbol_file_add): Call symbol_file_add_from_bfd.
7105 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7106 Moved to symfile-mem.c.
7107 (_initialize_symfile): Move definition of
7108 add-symbol-file-from-memory command to symfile-mem.c.
7109 * symfile.h (symbol_file_add_from_bfd): New declaration.
7110 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7111 * config/powerpc/linux.mt (TDEPFILES): Same.
7112 * Makefile.in (SFILES): Add symfile-mem.c.
7113 (symfile_mem_h): New variable.
7114 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7115 (symfile-mem.o): New rule.
7116
80bb239e
AC
71172004-05-01 Andrew Cagney <cagney@redhat.com>
7118
7789d0fa
AC
7119 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7120 frame_find_by_id instead of frame_relative_level.
7121 (do_enable_breakpoint): Ditto.
7122 * thread.c: Update copyright.
7123 (info_threads_command): Ditto, simplify.
7124
80bb239e
AC
7125 * frame.c (deprecated_generic_get_saved_register): Delete
7126 function, moved to "xstormy16-tdep.c".
7127 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7128 deprecated_generic_get_saved_register from "frame.c".
7129 (xstormy16_frame_saved_register): Call
7130 xstormy16_get_saved_register.
7131 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7132 static.
7133 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7134 * frame.h (deprecated_generic_get_saved_register): Delete.
7135
b2a871dd
MC
71362004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7137
7138 * dwarfread.c: Update documentation on the state of dwarf-1.
7139
0e100dab
AC
71402004-05-01 Andrew Cagney <cagney@redhat.com>
7141
acd8056e
AC
7142 * stack.c (select_frame_command): Delete call to
7143 frame_relative_level.
7144 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7145 Delete #if0 code.
7146 (frame_info): Do not print FRAMELESS.
7147 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7148 (catch_info): Delete #if0 code.
7149
0e100dab
AC
7150 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7151 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7152 of frame_relative_level.
7153 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7154 to SENTINEL_FRAME.
7155 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7156 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7157 frame_relative_level.
7158
55699d59
AC
7159 * frame.h (deprecated_set_frame_type): Delete declaration.
7160 * frame.c (deprecated_set_frame_type): Delete function, update
7161 comments.
7162
fcf70625
AC
7163 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7164 * gdbarch.h, gdbarch.c: Re-generate.
7165 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7166 (shnbsd_pc_in_sigtramp): Delete.
7167 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7168 pc_in_sigtramp.
7169 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7170 pc_in_sigtramp.
7171 * frame.h: Update comments.
7172 * ppc-linux-tdep.c: Update comments.
7173 * breakpoint.c (bpstat_what): Update comments.
7174
ac5eccb7
AC
7175 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7176 m68klinux-tdep.o's dependencies, were previously added to
7177 m68klinux-nat.o.
7178
f2524b93
AC
7179 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7180 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7181 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7182 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7183 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7184
17e20bce
AC
7185 * Makefile.in (m68klinux-nat.o): Update dependencies.
7186 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7187 (m68k_linux_sigtramp_frame_cache)
7188 (m68k_linux_sigtramp_frame_this_id)
7189 (m68k_linux_sigtramp_frame_prev_register)
7190 (m68k_linux_sigtramp_frame_unwind)
7191 (m68k_linux_sigtramp_frame_sniffer)
7192 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7193 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7194 names, use trad-frame.h.
7195 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7196 (struct m68k_sigtramp_info): Delete.
7197 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7198 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7199 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7200 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7201 "m68klinux-tdep.c".
7202
c8864fa2
AC
7203 * infrun.c (check_sigtramp2): Delete check for
7204 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7205
511dd2cd
MK
72062004-05-01 Mark Kettenis <kettenis@gnu.org>
7207
7208 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7209
8c6b0e06
AC
72102004-05-01 Andrew Cagney <cagney@redhat.com>
7211
9df0bb3f
AC
7212 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7213 (frv_linux_sigtramp_frame_cache)
7214 (frv_linux_sigtramp_frame_this_id)
7215 (frv_linux_sigtramp_frame_prev_register)
7216 (frv_linux_sigtramp_frame_unwind)
7217 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7218 include "linux" in function and variable names, directly call
7219 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7220 the latest trad-frame code.
7221 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7222 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7223 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7224 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7225 * frv-tdep.c (frv_sigtramp_frame_cache)
7226 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7227 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7228 frv-linux-tdep.c.
7229 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7230 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7231 (frv_set_sigcontext_reg_addr): Delete function.
7232
8c6b0e06
AC
7233 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7234 (DEPRECATED_SIGTRAMP_END): Delete.
7235 * gdbarch.h, gdbarch.c: Re-generate.
7236 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7237 * config/vax/tm-vaxbsd.h: Update copyright.
7238 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7239 (DEPRECATED_IN_SIGTRAMP): Define.
7240 * config/m68k/tm-nbsd.h: Update copyright.
7241 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7242 (DEPRECATED_IN_SIGTRAMP): Define.
7243
50ea7769
MK
72442004-05-01 Mark Kettenis <kettenis@gnu.org>
7245
03ac2a74
MK
7246 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7247 encondings. Fixes PR gdb/1628.
7248
50ea7769
MK
7249 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7250 DW_CFA_restore state without a matching DW_CFA_remember_state
7251 instead of aborting. Fixes PR backtrace/1589.
7252
9a5d7be1
JB
72532004-04-30 Joel Brobecker <brobecker@gnat.com>
7254
7255 * MAINTAINERS: Add self as AIX maintainer.
7256 Update my e-mail address in write-after-approval section.
7257
2593d1cd
AC
72582004-04-30 Andrew Cagney <cagney@redhat.com>
7259
ce12bbf9
AC
7260 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7261 (legacy_get_prev_frame): Ditto.
7262
36710c63
AC
7263 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7264 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7265 * mipsread.c (sigtramp_address): Delete extern variable.
7266 (mipscoff_new_init): Delete reference.
7267 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7268 (fixup_sigtramp): Delete function.
7269 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7270 (fixup_sigtramp): Delete declarations.
7271
2593d1cd
AC
7272 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7273 deprecated_pc_in_sigtramp.
7274 (ppcnbsd_pc_in_sigtramp): Delete function.
7275
2a25f91c
MK
72762004-05-01 Mark Kettenis <kettenis@gnu.org>
7277
7278 * config/m68k/nm-nbsd.h: Tweak comments.
7279 * config/m68k/nm-nbsdaout.h: Likewise.
7280
0b281939
AC
72812004-04-30 Andrew Cagney <cagney@redhat.com>
7282
7283 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7284 legacy_pc_in_sigtramp.
7285 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7286
8f2d3ea0
MK
72872004-05-01 Mark Kettenis <kettenis@gnu.org>
7288
7289 Add OpenBSD/m68k support.
7290 * NEWS (New native configurations): Mention OpenBSD/m68k.
7291 * m68kbsd-tdep.c: New file.
7292 * m68kbsd-nat.c: New file.
7293 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7294 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7295 * configure.host: Add m68k-*-openbsd.
7296 * configure.tgt: Add m68k-*-openbsd.
7297 * config/m68k/tm-obsd.h: New file.
7298 * config/m68k/obsd.mt: New file.
7299 * config/m68k/obsd.mh: New file.
7300 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7301 m68kbsd-tdep.c.
7302
c40f49a4
AC
73032004-04-30 Andrew Cagney <cagney@redhat.com>
7304
7305 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7306 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7307
e81554cd
MK
73082004-04-30 Mark Kettenis <kettenis@gnu.org>
7309
7310 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7311 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7312
d4dc1a91
BF
73132004-04-30 Brian Ford <ford@vss.fsi.com>
7314
7315 Revert 2004-04-16 change.
7316 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7317 (i386_coff_init_abi): Remove.
7318 * i386-tdep.h (i386_coff_init_abi): Remove.
7319 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7320
2f72f850
AC
73212004-04-30 Andrew Cagney <cagney@redhat.com>
7322
e492f9d6
AC
7323 * blockframe.c (find_pc_partial_function): Delete use of
7324 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7325 DEPRECATED_SIGTRAMP_END.
7326
7b7adad0
AC
7327 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7328 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7329 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7330 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7331 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7332
2f72f850
AC
7333 * defs.h (deprecated_inside_entry_file): Delete declaration.
7334 * blockframe.c (deprecated_inside_entry_file): Delete function.
7335 (legacy_frame_chain_valid): Delete call.
7336 * sh64-tdep.c (sh64_frame_chain): Delete call.
7337 * objfiles.h: Update comments.
7338 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7339 call.
7340 * frame.c (get_prev_frame): Delete call, update comments.
7341
283f90a7
BF
73422004-04-30 Brian Ford <ford@vss.fsi.com>
7343
7344 * MAINTAINERS (Write After Approval): Add myself.
7345
8ee56bcf
AC
73462004-04-30 Andrew Cagney <cagney@redhat.com>
7347
7348 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7349 * gdbarch.h, gdbarch.c: Re-generate.
7350 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7351 code.
7352
ee27e1b6
AC
73532004-04-30 Andrew Cagney <cagney@redhat.com>
7354
7355 * gdb-events.sh (selected_thread_changed)
7356 (selected_frame_level_changed, target_changed): Delete.
7357 * gdb-events.h, gdb-events.c: Re-generate.
7358 * valops.c (value_assign): Update.
7359 * stack.c (select_frame_command, up_silently_base)
7360 (down_silently_base): Update.
7361
d5ac5a39
AC
73622004-04-29 Andrew Cagney <cagney@redhat.com>
7363
7364 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7365 registers correctly.
7366 (print_gp_register_row, mips32_heuristic_proc_desc)
7367 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7368 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7369 references to mips_isa_regsize.
7370
ceae6e75
AC
73712004-04-29 Andrew Cagney <cagney@redhat.com>
7372
7373 * mips-tdep.c (struct gdbarch_tdep): Delete
7374 mips_fp_register_double.
7375 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7376 mips_abi_regsize.
7377 (mips_gdbarch_init): Do not set mips_fp_register_double.
7378 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7379
a587af0b
AC
73802004-04-29 Joel Brobecker <brobecker@gnat.com>
7381
7382 Committed by Andrew Cagney.
7383 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7384 function calls.
7385
13326b4e
AC
73862004-04-29 Andrew Cagney <cagney@redhat.com>
7387
7388 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7389 gdbarch, use mips_abi, update callers.
7390 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7391 mips_abi_regsize, update callers.
7392 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7393 mips_default_abi_regsize.
7394 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7395 mips_default_abi_regsize.
7396
711cc5cd
AC
73972004-04-29 Andrew Cagney <cagney@redhat.com>
7398
1b13c4f6
AC
7399 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7400 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7401 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7402 mips_default_abi_regsize.
7403 (mips_isa_regsize): Rename mips_regisze.
7404 * mipsnbsd-tdep.c: Update.
7405 * mips-linux-tdep.c: Update.
7406 * irix5-nat.c: Update.
7407 * mips-tdep.h (mips_isa_regsize): Update.
7408
711cc5cd
AC
7409 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7410 Delete all disabled code.
7411 * gdb-events.h, gdb-events.c: Re-generate.
7412
e63bbc88
MK
74132004-04-19 Jerome Guitton <guitton@gnat.com>
7414 Mark Kettenis <kettenis@gnu.org>
7415
7416 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7417 the function begins with a branch instruction.
7418
fd35795f
MK
74192004-04-29 Mark Kettenis <kettenis@gnu.org>
7420
7421 * i386-tdep.c: Fix spelling mistakes.
7422
c960c18f
AC
74232004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7424 Andrew Cagney <cagney@redhat.com>
7425
7426 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7427 <sys/proc.h>.
7428 * acconfig.h: Provide default _KMEMUSER value.
7429 * config.in, configure: Re-generate.
7430 * NEWS: Mention fix.
7431
50306a9d
RC
74322004-04-24 Randolph Chung <tausq@debian.org>
7433
7434 * configure.host (hppa*-*-linux*): New target.
7435 * configure.tgt (hppa*-*-linux*): Likewise.
7436 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7437 gdbarch_init_osabi() call earlier so that osabi-specific frame
7438 unwinders can be registered first.
7439 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7440 hppa-linux-nat.c.
7441 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7442 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7443 * config/pa/linux.mh: New file.
7444 * config/pa/linux.mt: New file.
7445 * config/pa/nm-linux.h: New file.
7446 * config/pa/xm-linux.h: New file.
7447 * hppa-linux-nat.c: New file.
7448 * hppa-linux-tdep.c: New file.
7449
2a6228ef
RC
74502004-04-28 Randolph Chung <tausq@debian.org>
7451
7452 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7453 return values.
7454 (hppa32_push_dummy_call): Fix small struct and floating point argument
7455 passing, and make sure the stack frame is properly aligned.
7456
82c10df6
AC
74572004-04-28 Andrew Cagney <cagney@redhat.com>
7458
d762c46a
AC
7459 * stack.c (print_stack_frame): Fix description.
7460
82c10df6
AC
7461 * NEWS: Mention gdb/gdbserver/configure execute permission
7462 changed. PR server/519.
7463
0faf0076
AC
74642004-04-28 Andrew Cagney <cagney@redhat.com>
7465
7466 * stack.c (print_stack_frame_stub): Delete declaration.
7467 (struct print_stack_frame_args, print_stack_frame)
7468 (print_frame_info, print_frame): Replace "source" with print what.
7469 Replace "print" with "print_level". Replace "args" with
7470 "print_args".
7471 * frame.h (show_and_print_stack_frame, print_stack_frame)
7472 (print_frame_info): Update declarations.
7473 * stack.c (select_and_print_frame, frame_command)
7474 (current_frame_command, up_command, down_command): Update calls -
7475 use get_selected_frame, pass "enum print_what" for source, do not
7476 call frame_relative_level.
7477 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7478 * remote-rdp.c (remote_rdp_open): Ditto.
7479 * remote-mips.c (common_open): Ditto.
7480 * remote-e7000.c (e7000_start_remote): Ditto.
7481 * ocd.c (ocd_start_remote): Ditto.
7482 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7483 * infrun.c (normal_stop): Ditto.
7484 * inflow.c (kill_command): Ditto.
7485 * infcmd.c (finish_command): Ditto.
7486 * corelow.c (core_open): Ditto.
7487 * tracepoint.c (finish_tfind_command): Ditto.
7488 * thread.c (info_threads_command, info_threads_command)
7489 (restore_current_thread, do_captured_thread_select): Ditto.
7490 * ada-tasks.c (task_command): Ditto.
7491
f4c5303c
OF
74922004-04-26 Orjan Friberg <orjanf@axis.com>
7493
7494 * frame.c: Include "observer.h".
7495 (frame_observer_target_changed): New function.
7496 (_initialize_frame): Attach target_changed observer.
7497 * regcache.c: Include "observer.h".
7498 (regcache_observer_target_changed): New function.
7499 (_initialize_regcache): Attach target_changed observer.
7500 * valops.c: Include "observer.h".
7501 (value_assign): Notify target_changed event when modifying register.
7502 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7503
7270d8f2
OF
75042004-04-26 Orjan Friberg <orjanf@axis.com>
7505
7506 From Paul Koning <pkoning@equallogic.com>:
7507 * breakpoint.c (free_valchain): New function.
7508 (insert_bp_location, delete_breakpoint): Use free_valchain.
7509 (remove_breakpoint): Do not remove the valchain.
7510 (bpstat_stop_status): If not stopped by watchpoint, skip
7511 watchpoints when generating stop status list.
7512 * infrun.c (handle_inferior_event): Make
7513 stepped_after_stopped_by_watchpoint a global variable.
7514 * remote.c (remote_stopped_data_address): Return watch data
7515 address rather than zero if stepped_after_stopped_by_watchpoint is
7516 set.
7517
02d62932
MC
75182004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7519
7520 Fix PR gdb/1626.
7521 * configure.in: Check for curses after termcap.
7522 On osf5.*, do not check for ncurses.
7523 * configure: Regenerate.
7524
3e9a183c
MK
75252004-04-25 Mark Kettenis <kettenis@gnu.org>
7526
c79ac407
MK
7527 * ppcobsd-nat.c: Include "ppc-tdep.h".
7528 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7529
3e9a183c
MK
7530 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7531 Fixes PR tdep/1623 and PR tdep/1624.
7532
38cc9c28
MC
75332004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7534
7535 * xmodem.h, xmodem.c: Remove files.
7536 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7537
7f07c5b6
RC
75382004-04-23 Randolph Chung <tausq@debian.org>
7539
7540 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7541 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7542 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7543 for handling stackless frames.
7544 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7545
9f7194c3
RC
75462004-04-23 Randolph Chung <tausq@debian.org>
7547
7548 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7549 starts at a pc before the frame is created.
7550
dcff6009
JB
75512004-04-23 Joel Brobecker <brobecker@gnat.com>
7552
7553 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7554
40711ff1 75552004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
7556
7557 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7558 use convert_typed_floating to get the appropriate format.
7559
abc485a1
RC
75602004-04-22 Randolph Chung <tausq@debian.org>
7561
7562 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7563 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7564 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7565 (hppa_sign_extend): Add prototype.
7566 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7567 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7568 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7569 hppa targets will also use these functions.
7570 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7571 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7572 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7573 (hppa_gdbarch_init): Remove gdbarch setting of
7574 skip_trampoline_code, in_solib_call_trampoline and
7575 in_solib_return_trampoline.
7576 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7577 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7578 hppa_in_solib_call_trampoline.
7579 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7580 Moved from hppa-tdep.c.
7581 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7582 in_solib_call_trampoline and in_solib_return_trampoline.
7583
369aa520
RC
75842004-04-22 Randolph Chung <tausq@debian.org>
7585
7586 * hppa-tdep.c (hppa_debug): New variable.
7587 (find_unwind_entry, hppa_frame_cache): Add debug output.
7588 (_initialize_hppa_tdep): Add command to set debug flag.
7589
476be15e
AC
75902004-04-22 Andrew Cagney <cagney@redhat.com>
7591
7592 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7593 "trad-frame.h".
7594 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7595 signal trampoline unwinder.
7596 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7597
d195bc9f
MK
75982004-04-22 Mark Kettenis <kettenis@gnu.org>
7599
7600 Add OpenBSD/powerpc support.
7601 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7602 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7603 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7604 (ppc_collect_fpregset): New prototypes.
7605 * ppcobsd-nat.c: New file.
7606 * ppcobsd-tdep.c: New file.
7607 * ppcobsd-tdep.h: New file.
7608 * rs6000-tdep.c: Include "regset.h".
7609 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7610 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7611 New functions.
7612 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7613 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7614 (rs6000-tdep.o): Update dependencies.
7615 * configure.host: Add powerpc-*-openbsd.
7616 * configure.tgt: Add powerpc-*-openbsd.
7617 * config/powerpc/obsd.mh: New file.
7618 * config/powerpc/nm-obsd.h: New file.
7619 * config/powerpc/obsd.mt: New file.
7620
6f14cc33
AC
76212004-04-22 Andrew Cagney <cagney@redhat.com>
7622
fcf29e5f
AC
7623 * frame.h (show_frame_info): Delete declaration.
7624
6f14cc33
AC
7625 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7626 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7627 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7628 * frv-tdep.c (frv_frame_this_id): Ditto.
7629 * avr-tdep.c (avr_frame_this_id): Ditto.
7630
e5786a5c
EZ
76312004-04-22 Elena Zannoni <ezannoni@redhat.com>
7632
7633 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7634
26e75e5c
JB
76352004-04-22 Jim Blandy <jimb@redhat.com>
7636
7637 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7638 register number zero.
7639
d8d65dd3
MS
76402004-04-21 Michael Snyder <msnyder@redhat.com>
7641
7642 * mips-tdep.c (heuristic_proc_start):
7643 Warning() already prefixes "Warning: ".
7644
9a4105ab
AC
76452004-04-21 Andrew Cagney <cagney@redhat.com>
7646
7647 * annotate.h (deprecated_annotate_starting_hook)
7648 (deprecated_annotate_stopped_hook)
7649 (deprecated_annotate_exited_hook)
7650 (deprecated_annotate_signal_hook)
7651 (deprecated_annotate_signalled_hook): Deprecate.
7652 * tracepoint.h (deprecated_create_tracepoint_hook)
7653 (deprecated_delete_tracepoint_hook)
7654 (deprecated_modify_tracepoint_hook)
7655 (deprecated_trace_find_hook)
7656 (deprecated_trace_start_stop_hook): Deprecate.
7657 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7658 * remote.h (deprecated_target_resume_hook)
7659 (deprecated_target_wait_loop_hook): Deprecate.
7660 * gdbcore.h (deprecated_exec_file_display_hook)
7661 (deprecated_file_changed_hook): Deprecate.
7662 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7663 * defs.h (deprecated_modify_breakpoint_hook)
7664 (deprecated_command_loop_hook, deprecated_show_load_progress)
7665 (deprecated_print_frame_info_listing_hook)
7666 (deprecated_query_hook, deprecated_warning_hook)
7667 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7668 (deprecated_delete_breakpoint_hook)
7669 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7670 (deprecated_readline_begin_hook, deprecated_readline_hook)
7671 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7672 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7673 (deprecated_context_hook, deprecated_target_wait_hook)
7674 (deprecated_attach_hook, deprecated_detach_hook)
7675 (deprecated_call_command_hook, deprecated_set_hook)
7676 (deprecated_error_hook, deprecated_error_begin_hook)
7677 (deprecated_ui_load_progress_hook): Deprecate.
7678 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7679 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7680 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7681 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7682 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7683 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7684 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7685 * annotate.c, aix-thread.c: Update.
7686
62cf13cc
AC
76872004-04-21 Andrew Cagney <cagney@redhat.com>
7688
b2e31a62
AC
7689 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7690 * vaxnbsd-tdep.c: Include "gdb_string.h".
7691
62cf13cc
AC
7692 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7693 (add_symbol_file_from_memory_command): #if 0 function body, call
7694 error instead.
7695
00e32a35
AC
76962004-04-21 Andrew Cagney <cagney@redhat.com>
7697
7698 * gdbcore.h: Update copyright.
7699 (deprecated_add_core_fns): Rename add_core_fns.
7700 * win32-nat.c (_initialize_core_win32): Update.
7701 * sun3-nat.c (_initialize_core_sun3): Update.
7702 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7703 * rs6000-nat.c (_initialize_core_rs6000): Update.
7704 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7705 * nto-tdep.c (_initialize_nto_tdep): Update.
7706 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7707 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7708 * mips-nat.c (_initialize_core_mips): Update.
7709 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7710 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7711 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7712 * lynx-nat.c (_initialize_core_lynx): Update.
7713 * irix5-nat.c (_initialize_core_irix5): Update.
7714 * i386-interix-nat.c (_initialize_core_interix): Update.
7715 * cris-tdep.c (_initialize_cris_tdep): Update.
7716 * corelow.c (deprecated_add_core_fns): Update.
7717 * core-regset.c (_initialize_core_regset): Update.
7718 * core-aout.c (_initialize_core_aout): Update.
7719 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7720 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7721 * alpha-nat.c (_initialize_core_alpha): Update.
7722
13c7b1ca
JB
77232004-04-21 Jim Blandy <jimb@redhat.com>
7724
7725 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7726
7b5a2f43
DJ
77272004-04-19 Daniel Jacobowitz <drow@mvista.com>
7728
7729 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7730 Delete.
7731 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7732 (read_attribute_value): Update calls to dwarf_alloc_block.
7733 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7734 dwarf2_tmp_obstack.
7735 (psymtab_to_symtab_1): Likewise. Clean up using
7736 free_stack_comp_unit.
7737 (add_to_cu_func_list): Use the comp_unit_obstack.
7738
05cf31d1
JB
77392004-04-19 Joel Brobecker <brobecker@gnat.com>
7740
7741 * dwarf2read.c (dwarf2_flag_true_p): New function.
7742 (die_is_declaration): Use the function above. Add some comments.
7743
adf93a2f
MK
77442004-04-19 Mark Kettenis <kettenis@gnu.org>
7745
7746 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7747 architecture when registering sparcnbsd_core_osabi_sniffer.
7748 Adjust comment.
7749
748894bf
MK
77502004-04-18 Mark Kettenis <kettenis@gnu.org>
7751
f622ad42
MK
7752 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7753 return value.
7754
c4fc7f1b
MK
7755 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7756 * i386-tdep.c: Correct register numbering scheme comments
7757 throughout.
7758 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7759 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7760 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7761 (i386_gdb_arch_init): Likewise.
7762
b4ead1bd
MK
7763 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7764 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7765 ppcnbsd-tdep.o.
7766
748894bf
MK
7767 * m68k-tdep.h: Tweak comments.
7768 * m68k-tdep.c: Tweak comment.
7769
fdd72f95
RC
77702004-04-17 Randolph Chung <tausq@debian.org>
7771
7772 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7773 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7774 (hppa_hpux_som_init_abi): Set is_elf to 0.
7775 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7776 * hppa-tdep.c (low_text_segment_address): Remove global.
7777 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7778 section offset to calculate segment address.
7779 (internalize_unwinds): Define low_text_segment_address as local and
7780 pass to record_text_segment_lowaddr for ELF targets.
7781 (hppa_gdbarch_init): Zero fill tdep structure.
7782 (hppa_dump_tdep): Print tdep structure.
7783 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7784
0f8d9d59
RC
77852004-04-17 Randolph Chung <tausq@debian.org>
7786
7787 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7788 (hppa_gdbarch_init): Set pseudo_register_read.
7789 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7790 * regcache.c (supply_register): Remove check for
7791 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7792
7c46b9fb
RC
77932004-04-17 Randolph Chung <tausq@debian.org>
7794
7795 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7796 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7797 (hpread_adjust_stack_address): Move to hpread.c.
7798 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7799 obj_private_struct): Move from tm-hppa.h.
7800 * hpread.c (hppa-tdep.h): Include.
7801 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7802 (hpread_read_function_type, hpread_read_doc_function_type)
7803 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7804 directly.
7805 * pa64solib.c (hppa-tdep.h): Include.
7806 * somsolib.c (hppa-tdep.h): Include.
7807 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7808 inferior_status): Remove unused forward declarations.
7809 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7810 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7811 obj_private_struct): Move to hppa-tdep.h.
7812 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7813
8d153463
RC
78142004-04-17 Randolph Chung <tausq@debian.org>
7815
7816 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7817 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7818 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7819 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7820 Remove forward declaration and make static.
7821 (hppa_reg_struct_has_addr): Remove.
7822
350c2e5b
JB
78232004-04-16 Joel Brobecker <brobecker@gnat.com>
7824
7825 * observer.sh: Move comments in sed command to first column.
7826
bbde78fa
JM
78272004-04-16 Jason Molenda (jmolenda@apple.com)
7828
7829 * frame.c: Minor typeo corrections in comments.
7830
e0270fd9
JB
78312004-04-16 Joel Brobecker <brobecker@gnat.com>
7832
7833 * observer.c (observer_test_first_notification_function): Update
7834 function profile.
7835 (observer_test_second_notification_function): Likewise.
7836 (observer_test_third_notification_function): Likewise.
7837
3d049254
MK
78382004-04-16 Mark Kettenis <kettenis@gnu.org>
7839
7840 From Brian Ford <ford@vss.fsi.com>:
7841 * i386-tdep.c (i386_coff_init_abi): New function.
7842 * i386-tdep.h (i386_coff_init_abi): New prototype.
7843 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7844 register number translation functions for DWARF and DWARF 2.
7845
7867684d
JB
78462004-04-16 Joel Brobecker <brobecker@gnat.com>
7847
7848 * dwarf2read.c: Back out my previous change, it was incorrect.
7849
72bf9492
DJ
78502004-04-16 Daniel Jacobowitz <drow@mvista.com>
7851
7852 * dwarf2read.c: Include "hashtab.h".
7853 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7854 has_namespace_info.
7855 (struct partial_die_info): Add comments. Use bitfields to reduce
7856 memory footprint. Add scope, scope_set, has_specification,
7857 spec_offset, die_parent, die_child, and die_sibling.
7858 (peek_die_abbrev): Add prototype.
7859 (partial_read_comp_unit_head): New function, broken out from
7860 dwarf2_build_psymtabs_hard.
7861 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7862 Use partial_read_comp_unit_head. Initialize the CU and
7863 comp_unit_obstack. Update calls to read_partial_die and
7864 scan_partial_symbols. Use free_stack_comp_unit and
7865 load_partial_dies.
7866 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7867 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7868 Update calls to helper functions. Remove NAMESPACE argument.
7869 Update comments.
7870 (partial_die_parent_scope, partial_die_full_name): New functions.
7871 (add_partial_symbol): Remove namespace argument. Update call to
7872 pdi_needs_namespace. Use partial_die_full_name. Handle
7873 DW_TAG_namespace. Check has_namespace_info flag.
7874 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7875 tag. Handle namespaces.
7876 (add_partial_namespace, add_partial_enumeration): Simplify.
7877 (guess_structure_name): New function, derived from
7878 add_partial_structure.
7879 (add_partial_structure): Remove.
7880 (determine_class_name): Update comment.
7881 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7882 (is_type_tag_for_partial, load_partial_dies): New functions.
7883 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7884 Record specifications instead of following them immediately.
7885 (find_partial_die_in_comp_unit, find_partial_die)
7886 (fixup_partial_die, free_stack_comp_unit)
7887 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7888 (partial_die_hash, partial_die_eq): New functions.
7889 * Makefile.in (hashtab_h): Define.
7890 (dwarf2read.o): Update dependencies.
7891 (observer_inc, observer_h): Move to the correct section.
7892
fdc860a3
JB
78932004-04-15 Joel Brobecker <brobecker@gnat.com>
7894
7895 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7896 (die_is_declaration): Use the function above. Add comment.
7897
dc718098
JB
78982004-04-15 Joel Brobecker <brobecker@gnat.com>
7899
7900 * dwarf2read.c (read_structure_scope): Identify stub types
7901 using die_is_declaration() only.
7902
8718a420
RM
79032004-04-15 Roland McGrath <roland@redhat.com>
7904
7905 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7906 argument instead of NAME.
7907 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7908 in call to symbol_file_add_with_addrs_or_offsets.
7909 (build_addr_info): New function, helper for ...
7910 (symbol_file_add_from_memory): New function.
7911 (add_symbol_file_from_memory_command): New function using that.
7912 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7913 (pre_add_symbol_hook): Add const to argument type.
7914 * symfile.h (symbol_file_add_from_memory): Declare it.
7915
8b910bab
MK
79162004-04-15 Mark Kettenis <kettenis@gnu.org>
7917
9f076e7a
MK
7918 * NEWS (New native configurations): Mention OpenBSD/vax.
7919 * configure.host: Add vax-*-openbsd*.
7920 * config/vax/obsd.mh: New file.
7921 * config/vax/nm-obsd.h: New file.
7922
8b910bab
MK
7923 * vax-tdep.c: Include "regset.h".
7924 (vax_supply_gregset): New function.
7925 (vax_gregset): New variable.
7926 (vax_regset_from_core_section): New function.
7927 (vax_gdbarch_init): Set regset_from_core_section.
7928 * Makefile.in (vax-tdep.o): Update dependencies.
7929
7a464420
AC
79302004-04-15 Andrew Cagney <cagney@redhat.com>
7931
7932 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7933 (observer_normal_stop_notification_stub)
7934 (observer_attach_normal_stop, observer_detach_normal_stop):
7935 Delete, replaced by #include "observer.inc".
7936 * infrun.c (normal_stop): Pass "stop_bpstat" to
7937 observer_notify_normal_stop.
7938 * Makefile.in (observer_inc): Define.
7939 (observer.o): Update dependencies.
7940 (observer.h, observer.inc): New rules.
7941 * observer.h: Delete file.
7942 * observer.sh: New file.
7943
e36ad527
MK
79442004-04-15 Mark Kettenis <kettenis@gnu.org>
7945
7946 * vax-tdep.c (vax_frame_cache): Fix typo.
7947
67b441e1
MK
79482004-04-14 Mark Kettenis <kettenis@gnu.org>
7949
6f606e1c
MK
7950 * NEWS (New native configurations): Mention NetBSD/vax.
7951 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7952 * config/vax/nbsdelf.mh: New file.
7953 * config/vax/nbsdaout.mh: New file.
7954 * config/vax/nm-nbsd.h: New file.
7955 * config/vax/nm-nbsdaout.h: New file.
7956
9c5519a5
MK
7957 * vaxnbsd-tdep.c: New file.
7958 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7959 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7960 * config/vax/nbsd.mt: New file.
7961 * config/vax/tm-nbsd.h: New file.
7962
4844a614
MK
7963 * Makefile.in (vaxbsd-nat.o): New dependency.
7964
67b441e1
MK
7965 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7966 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7967 struct_addr arguments. Don't push return value address.
7968 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7969 arguments to vax_store_arguments. Store return value address in
7970 R1.
7971 (vax_store_struct_return, vax_extract_return_value)
7972 (vax_store_return_value): Remove functions.
7973 (vax_return_value): New function.
7974 (vax_gdbarch_init): Set return value. Don't set
7975 deprecated_store_struct_return, deprecated_extract_struct_return
7976 and deprecated_store_return_value.
7977
6672f2ae
AS
79782004-04-14 Andreas Schwab <schwab@suse.de>
7979
7980 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7981 value buffer.
7982 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7983
7346c184
MK
79842004-04-14 Mark Kettenis <kettenis@gnu.org>
7985
7986 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7987 (vax_unwind_dummy_id): New functions.
7988 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7989 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7990 variables.
7991 (vax_fix_call_dummy): Remove function.
7992 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7993 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7994 call_dummy_location, deprecated_call_dummy_words,
7995 deprecated_sizeof_call_dummy_words,
7996 deprecated_call_dummy_breakpoint_offset,
7997 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7998 and deprecated_dummy_write_sp.
7999
58e23df4
DC
80002004-04-13 David Carlton <carlton@kealia.com>
8001
8002 * MAINTAINERS: Move myself to "paper trail" section.
8003
5e6b39ff
MK
80042004-04-12 Mark Kettenis <kettenis@gnu.org>
8005
7def7fef
MK
8006 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8007 "trad-frame.h".
8008 (vax_frame_init_saved_regs): Remove function.
8009 (vax_sigtramp_saved_pc): Remove function.
8010 (vax_frame_saved_pc): Remove function.
8011 (vax_frame_args_address): Remove function.
8012 (vax_frame_num_args): Rewrite.
8013 (vax_frame_chain): Remove function.
8014 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8015 VAX_FP_REGNUM.
8016 (vax_pop_frame): Likewise.
8017 (vax_saved_pc_after_call): Remove function.
8018 (struct vax_frame_cache): New structure.
8019 (vax_frame_cache): New function.
8020 (vax_frame_this_id): New function.
8021 (vax_frame_prev_register): New function.
8022 (vax_frame_unwind): New variable.
8023 (vax_frame_sniffer): New function.
8024 (vax_frame_base_address): New function.
8025 (vax_frame_args_address): New function.
8026 (vax_frame_base): New variable.
8027 (vax_unwind_pc): New function.
8028 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8029 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8030 deprecated_frame_chain, deprecated_frame_saved_pc,
8031 deprecated_frame_args_address and
8032 deprecated_frame_init_saved_regs.
8033 * Makefile.in (vax-tdep.o): Update dependencies.
8034
53284fc1
MK
8035 * vaxbsd-nat.c: New file.
8036
5e6b39ff
MK
8037 * vax-tdep.h: Update copyright year. Adjust comments.
8038 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8039 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8040 (vax_regnum): New enum. Replacing...
8041 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8042 (VAX_PS_REGNUM): ... these removed macros.
8043 * vax-tdep.c (vax_register_name): Remove prototype.
8044 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8045 (vax_register_byte, vax_register_raw_size,
8046 vax_register_virtual_size, vax_register_virtual_type): Remove
8047 functions.
8048 (vax_register_type): New function.
8049 (vax_breakpoint_from_pc): Reorganize.
8050 (vax_gdbarch_init): Set register_type. Don't set
8051 deprecated_register_size, deprecated_register_bytes,
8052 deprecated_register_byte, deprecated_register_raw_size,
8053 deprecated_max_register_raw_size,
8054 deprecated_register_virtual_size,
8055 deprecated_max_register_virtual_size and
8056 deprecated_register_virtual_type. Add comment on stack direction.
8057
e9c71e9f
MK
80582004-04-11 Mark Kettenis <kettenis@gnu.org>
8059
8060 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8061 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 8062 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 8063
d46f1176 80642004-04-10 Randolph Chung <tausq@debian.org>
8718a420 8065
d46f1176
RC
8066 * MAINTAINERS (write after approval): Add myself.
8067
a2a84a72
RC
80682004-04-07 Randolph Chung <tausq@debian.org>
8069
8070 * hppa-tdep.c (hppa_inner_than): Remove.
8071 (is_pa_2): Remove unused static variable.
8718a420 8072 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 8073
e85c3284
PH
80742004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8075
8076 * language.h (language_defn): Add new la_post_parser field.
8077 * parser-defs.h (null_post_parser): New declaration (default for
8078 la_post_parser).
8718a420 8079
e85c3284
PH
8080 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8081 insert call to that function.
8082 (parse_exp_in_context): New function, including code formerly in
8718a420 8083 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
8084 prefixification.
8085 (parse_expression_in_context): New exported function.
8086 (null_post_parser): New definition.
8087 * expression.h (parse_expression_in_context): Add declaration.
8718a420 8088
e85c3284
PH
8089 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8090 * c-lang.c (c_language_defn): Ditto.
8091 (cplus_language_defn): Ditto.
8092 (asm_language_defn): Ditto.
8093 (minimal_language_defn): Ditto.
8094 * f-lang.c (f_language_defn): Ditto.
8095 * jv-lang.c (java_language_defn): Ditto.
8096 * language.c (unknown_language_defn): Ditto.
8097 (auto_language_defn): Ditto.
8098 (local_language_defn): Ditto.
8099 * m2-lang.c (m2_language_defn): Ditto.
8100 * scm-lang.c (scm_language_defn): Ditto.
8101 * obj-lang.c (objc_language_defn): Ditto.
8718a420 8102
d9f8c85b
MK
81032004-04-10 Mark Kettenis <kettenis@gnu.org>
8104
fa34704a
MK
8105 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8106 (amd64nbsd_mcontext_addr): New function.
8107 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8108 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8109 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8110
403e1656
MK
8111 * corelow.c (core_xfer_partial): Fix coding standards violation.
8112 Add support for TARGET_OBJECT_WCOOKIE.
8113
a57e5a95
MK
8114 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8115 deprecated_pc_in_sigtramp.
8116 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8117 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8118 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8119 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8120 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8121 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8122 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8123
377d9ebd
MK
8124 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8125 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8126 Fix typo.
8127
f0ef85a5
MK
8128 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8129 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8130 (amd64_collect_fxsave): Likewise.
8131
d9f8c85b
MK
8132 * i386-sol2-tdep.c: Include "gdb_string.h".
8133 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8134 name.
8135 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8136
75f501b5
MK
81372004-04-10 Mark Kettenis <kettenis@gnu.org>
8138
8139 * i386-sol2-tdep.c: Include "solib-svr4.h".
8140 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8141 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8142 * config/i386/tm-i386sol2.h: Include :solib.h".
8143 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8144 solib-svr4.o and solib-legacy.o.
8145 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8146 solib-svr4.o.
8147
b31bc724
MK
81482004-04-09 Mark Kettenis <kettenis@gnu.org>
8149
18bbbd9e
MK
8150 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8151 whether a register is supplied by PTRACE_GETFPREGS.
8152 (store_inferior_registers): Likewise.
8153 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8154 whether a register is supplied by PT_GETFPREGS.
8155 (store_inferior_registers): Likewise.
8156
3c30bf1b
MK
8157 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8158 * config/i386/linux64.mt (TDEPFILES): Likewise.
8159
a4194092
MK
8160 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8161
911bc6ee
MK
8162 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8163 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8164 the program counter is in the range specified by `struct
8165 gdbarch_tdep'.
8166 * amd64-linux-tdep.c: Include "symtab.h".
8167 (amd64_linux_pc_in_sigtramp): Remove function.
8168 (amd64_linux_sigtramp_p): New function.
8169 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8170 deprecated_pc_in_sigtramp.
8171 * amd64nbsd-tdep.c: Include "symtab.h".
8172 (amd64nbsd_sigtramp_p): New function.
8173 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8174 deprecated_pc_in_sigtramp.
8175 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8176 few comments.
8177 (amd64obsd_pc_in_sigtramp): Remove function.
8178 (amd64obsd_sigtramp_p): New function.
8179 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8180 deprecated_pc_in_sigtramp.
8181 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8182 (i386bsd_pc_ins_sigtramp): Remove prototype.
8183 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8184 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8185 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8186 the program counter is in the range specified by `struct
8187 gdbarch_tdep'.
8188 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8189 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8190 (i386_go32_pc_in_sigtramp): Remove function.
8191 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8192 Initialize TDEP->sigtramp_p.
8193 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8194 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8195 deprecated_pc_in_sigtramp.
8196 * i386-linux-tdep.c: Adjust comments.
8197 (i386_linux_pc_in_sigtramp): Remove function.
8198 (i386_linux_sigtramp_p): New function.
8199 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8200 deprecated_pc_in_sigtramp.
8201 * i386-nto-tdep.c: Update copyright year.
8202 (i386nto_pc_in_sigtramp): Remove function.
8203 (i386nto_sigtramp_p): New function.
8204 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8205 SP_REGNUM.
8206 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8207 deprecated_pc_in_sigtramp.
8208 * i386-sol2-tdep.c: Update copyright year.
8209 (i386_sol2_pc_in_sigtramp): Remove function.
8210 (i386_sol2_sigtramp_p): New function.
8211 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8212 deprecated_pc_in_sigtramp.
8213 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8214 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8215 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8216 deprecated_sigtramp_start and deprecated_sigtramp_end.
8217 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8218 (i386nbsd_pc_in_sigtramp): Remove function.
8219 (i386nbsd_sigtramp_p): New function.
8220 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8221 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8222 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8223 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8224 (i386obsd_pc_in_sigtramp): Remove function.
8225 (i386obsd_sigtramp_p): New function.
8226 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8227 functions.
8228 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8229 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8230 TDEP->sigtramp_p.
8231 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8232 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8233 dependencies.
8234
e083e6ec
MK
8235 * config/i386/i386aout.mt: Remove file.
8236
bd153b94
MK
8237 * configure.tgt: Remove i[34567]86-*-go32*,
8238 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8239 and i[34567]86-*-isc*. Set gdb_target to i386 for
8240 i[34567]86-*-netware* and i[34567]86-*-*.
8241 * config/i386/i386.mt: New file.
8242 * config/i386/embed.mt: Remove file.
8243 * config/i386/go32.mt: Remove file.
8244 * config/i386/i386nw.mt: Remove file.
8245 * config/i386/i386v.mt: Remove file.
8246 * config/i386/tm-go32.h: Remove file.
8247
4a1bcc8c
MK
8248 * tui/tui-hooks.c: Include "readline/readline.h" after
8249 "gdb_curses.h" instead of before.
8250 * tui/tui-io.c: Likewise.
8251
f9a79064
MK
8252 * tui/tui.c: Fix typo in comment.
8253
b31bc724
MK
8254 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8255
f83f82bc
AC
82562004-04-08 Andrew Cagney <cagney@redhat.com>
8257
8258 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8259 (deprecated_exception_support_initialized): Declare.
8718a420 8260 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
8261 (initialize_hp_cxx_exception_support)
8262 (child_enable_exception_callback): Update.
8263 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8264 (deprecated_exception_support_initialized): Rename
8265 deprecated_exception_catchpoints_are_fragile and
8266 deprecated_exception_support_initialized.
8267 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8268
8269 * symtab.c (deprecated_hp_som_som_object_present): Rename
8270 hp_som_som_object_present.
8271 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8272 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8273 Update. Delete extern declaration.
8274 * valops.c (hp_som_som_object_present): Ditto.
8718a420 8275 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
8276 (parse_nested_classes_for_hpacc): Ditto.
8277 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 8278 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
8279 (initialize_hp_cxx_exception_support): Ditto.
8280 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 8281 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 8282 (cp_print_class_method): Ditto.
8718a420 8283 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
8284 (c_type_print_base): Ditto.
8285 * c-exp.y (hp_som_som_object_present): Ditto.
8286
fb2be677
AC
82872004-04-08 Andrew Cagney <cagney@redhat.com>
8288
8289 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8290 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8291 (frame_unwind_find_by_frame): Re-implement the unwind code so
8292 that it can both prepend and append sniffers. Replace
8293 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8294 * tramp-frame.c (tramp_frame_append): Use
8295 frame_unwind_prepend_unwinder.
8296 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8297 frame_unwind_register_unwinder.
8298 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8299 tramp_frame_append.
8300 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 8301 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
8302 (mips_linux_init_abi): Update.
8303
67faf007
KB
83042004-04-08 Kevin Buettner <kevinb@redhat.com>
8305
8306 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8307 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8308 file support.
8309
8973ff21
KB
83102004-04-07 Kevin Buettner <kevinb@redhat.com>
8311
8312 * ia64-tdep.c (elf.h): Don't include.
8313 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8314
4a0e2f88
JM
83152004-04-07 Jason Molenda (jmolenda@apple.com)
8316
8317 * frame.h: Typeo corrections in comments.
8318
9872ad24
JB
83192004-04-07 Jim Blandy <jimb@redhat.com>
8320
8321 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8322 %esp and %ebp
8323
70b216c8
MK
83242004-04-07 Mark Kettenis <kettenis@gnu.org>
8325
11d5789c
MK
8326 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8327 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8328 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8329 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8330 and solib-legacy.o.
8331 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8332 solib-svr4.o.
8333 * config/sparc/tm-sol2.h: Update copyright year. Include
8334 "solib.h".
8335
70b216c8
MK
8336 * sparc-sol2-tdep.c: Update copyright year. Include
8337 "solib-svr4.h".
8338 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8339 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8340 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 8341 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
8342 dependencies.
8343
6339dc9e
AC
83442004-04-06 Andrew Cagney <cagney@redhat.com>
8345
8346 * infttrace.c: Include "infttrace.h".
8347 * infttrace.h: Include "target.h".
8348 * Makefile.in (infttrace_h): Update.
8349 (infttrace.o): Update.
8718a420 8350
93449403
AC
83512004-04-06 Andrew Cagney <cagney@redhat.com>
8352
6d518969
AC
8353 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8354 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8355 move extern declarations from here ...
8356 * infttrace.h: ... to here.
8357 * Makefile.in (hppah-nat.o): Update dependencies.
8358
85f4f2d8
AC
8359 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8360 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 8361 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
8362 (hppa_breakpoint_from_pc): Delete.
8363
93449403
AC
8364 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8365
71456ec6
AC
83662004-04-05 Andrew Cagney <cagney@redhat.com>
8367
8368 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8369 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8370 <sys/file.h>.
8718a420 8371
4c02c60c
AC
83722004-04-06 Randolph Chung <tausq@debian.org>
8373
8374 Committed by Andrew Cagney (mechanical change).
8375 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8376 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8377 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8378 child_enable_exception_callback, current_ex_event,
8379 null_symtab_and_line, child_get_current_exception_event,
8380 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8381 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8382 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8383 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8384 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8385 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8386 Move hpux-specific definitions ...
8387 * hppa-hpux-tdep.c: ... to here.
8388
3a515653
AC
83892004-04-05 Andrew Cagney <cagney@redhat.com>
8390
8391 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8392 skip_prologue_using_sal.
8393
c1730d02
AC
83942004-04-05 Andrew Cagney <cagney@redhat.com>
8395
8396 * config/i386/tm-i386.h: Delete file.
8397 * config/i386/tm-vxworks.h: Update copyright, do not include
8398 "tm-i386.h".
8399 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8400 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8401 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8402 * config/i386/ncr3000.mt (TM_FILE): Delete.
8403 * config/i386/interix.mt (TM_FILE): Delete.
8404 * config/i386/i386v.mt (TM_FILE): Delete.
8405 * config/i386/i386nw.mt (TM_FILE): Delete.
8406 * config/i386/i386gnu.mt (TM_FILE): Delete.
8407 * config/i386/i386aout.mt (TM_FILE): Delete.
8408 * config/i386/embed.mt (TM_FILE): Delete.
8409
8b67aa36
KB
84102004-04-05 Kevin Buettner <kevinb@redhat.com>
8411
8412 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8413 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8414 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8415 (accg7_regnum): New constants.
8416 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
8417 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8418 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
8419 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8420 for accg registers.
8421 (frv_register_sim_regno): Update spr_map[].
8422
3c7012f5
AC
84232004-04-04 Andrew Cagney <cagney@redhat.com>
8424
8425 * config/mips/xm-riscos.h: Delete.
8426 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8427 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8428 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8429 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8430 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8431 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8432 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8433 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8434 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8435 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8436 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8437 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8438 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8439 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8440 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8441 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8442 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8443 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8444 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8445 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8446 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8447 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8448 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8449 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8450 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8451 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 8452
3c7012f5
AC
8453 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8454 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8455 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8456 * configure.host: Remove m680[01]0-sun-sunos3*,
8457 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8458 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8459 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8460 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8461 mips-*-riscos*.
8462 * NEWS: Mention removed systems.
8463
99d16a21
AC
84642004-04-04 Andrew Cagney <cagney@redhat.com>
8465
8466 GDB 6.1 release created from 6.1 branch.
8467
6cdf9d98
AC
84682004-04-04 Andrew Cagney <cagney@redhat.com>
8469
98d346c3
AC
8470 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8471 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8472 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8473
6cdf9d98
AC
8474 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8475 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8476 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8477
859a326d
JB
84782004-04-03 Jim Blandy <jimb@redhat.com>
8479
8480 * MAINTAINERS: Chris Faylor has changed employers; add him to
8481 "paper trail" section, and update his E-mail address.
8482
b87178c3
AC
84832004-04-03 Andrew Cagney <cagney@redhat.com>
8484
4ea2acf0
AC
8485 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8486 generic dummy frames.
8487 * dummy-frame.c: Update copyright.
8488 (dummy_frame_sniffer): Delete check for generic dummy frames.
8489
d0bd2d18 8490 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 8491 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
8492 (REG_PARM_STACK_SPACE): Delete.
8493 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8494 Inline reference to REG_PARM_STACK_SPACE.
8495
b87178c3
AC
8496 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8497 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8498 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8499 (FRAME_BASE_BEFORE_SIGTRAMP)
8500 (hppa32_hpux_frame_base_before_sigtramp)
8501 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8502 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8503 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8504 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8505 (FRAME_BASE_BEFORE_SIGTRAMP)
8506 (hppa64_hpux_frame_base_before_sigtramp)
8507 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8508
43e2e1a0
AC
85092004-04-03 Andrew Cagney <cagney@redhat.com>
8510
8511 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8512
ddc135a4
AC
85132004-04-02 Andrew Cagney <cagney@redhat.com>
8514
8515 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8516 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8517 * dummy-frame.h: Delete out-of-date comments.
8518 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8519 * gdbarch.h, gdbarch.c: Re-generate.
8520
d15bfd3a 85212004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 8522
d15bfd3a
AC
8523 Committed by Andrew Cagney <cagney@redhat.com>.
8524 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8525 into account an instruction saving a register if we have already
8526 seen an earlier instruction saving that same register.
8527
f04ceafa
AC
85282004-04-02 Andrew Cagney <cagney@redhat.com>
8529
08be3abd
AC
8530 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8531 * gdbarch.h, gdbarch.c: Re-generate.
8532 * frame.c (legacy_get_prev_frame): Delete references to
8533 DEPRECATED_INIT_FRAME_PC_FIRST.
8534
f04ceafa
AC
8535 * infrun.c (pc_in_sigtramp): Delete function.
8536 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8537 get_frame_type.
8538
08e69816
AC
85392004-04-02 Andrew Cagney <cagney@redhat.com>
8540
8541 * infrun.c (handle_step_into_function): Delete code conditional on
8542 legacy_frame_p.
8543 (handle_inferior_event, step_over_function): Ditto.
8544
adb54772
AC
85452004-04-02 Andrew Cagney <cagney@redhat.com>
8546
8547 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8548 "previous frame inner to this frame" test.
8549
304396fb
AC
85502004-04-02 Andrew Cagney <cagney@redhat.com>
8551
8552 * frame.c (safe_frame_unwind_memory): New function.
8553 * frame.h (safe_frame_unwind_memory): Declare. Update description
8554 of /safe_/ methods.
8555 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8556 "next_frame". Use safe_frame_unwind_memory.
8557 (tramp_frame_sniffer): Update call to tramp_frame_start.
8558
6502dd73
DJ
85592004-04-01 Daniel Jacobowitz <drow@mvista.com>
8560
8561 * dwarf2read.c (dwarf2_objfile_data_key): New.
8562 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8563 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8564 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8565 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8566 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8567 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8568 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8569 Remove variables.
8570 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8571 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8572 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8573 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8574 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8575 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8576 Remove macros.
8577 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8578 data.
8579 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8580 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8581 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8582 (read_partial_die, read_full_die, read_indirect_string)
8583 (dwarf_decode_line_header, dwarf_decode_macros)
8584 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8585 Update uses of removed variables.
8586 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8587 of removed macros.
8588 (_initialize_dwarf2_read): New function.
8589 * symfile.h (dwarf2_has_info): Update prototype.
8590 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8591 * elfread.c (elf_symfile_read): Likewise.
8592
408752b0
JB
85932004-04-01 Jim Blandy <jimb@redhat.com>
8594
9f744501
JB
8595 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8596 function for register numbers on all the rs6000-derived targets.
8597 (rs6000_gdbarch_init): Don't register a separate
8598 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8599 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8600 variants.
8601
408752b0
JB
8602 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8603 numbering.
8604
2de41bce
PH
86052004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8606
8607 * valarith.c: Update copyright notice.
8608 (value_add): Handle range types.
8609 (value_sub): Ditto.
8610 (value_equal): Ditto.
8611 (value_less): Ditto.
8612 (value_neg): Ditto.
8613 (value_complement): Ditto.
8718a420 8614 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 8615 eliminiating unnecessary COERCE_ENUMs.
8718a420 8616
5613d8d3
AC
86172004-03-31 Andrew Cagney <cagney@redhat.com>
8618
8619 * frame.h (frame_unwind_id): Declare.
8620 * frame.c (frame_unwind_id): New function.
8621 (get_prev_frame_1): New function.
8622 (frame_debug_got_null_frame): New function.
8623 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8624 code proper to prev_frame, update description.
8625 * infrun.c (step_over_function): Use frame_unwind_id.
8626
c4557624
JB
86272004-04-31 J. Brobecker <brobecker@gnat.com>
8628
8629 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8630 (hppa64_push_dummy_call): Likewise.
8631
3e6bb910
JB
86322004-03-30 Jim Blandy <jimb@redhat.com>
8633
8634 From Ulrich Weigand:
8635 * utils.c (query): Do not use a va_list variable multiple times.
8636
a2f23071
DJ
86372004-03-29 Daniel Jacobowitz <drow@mvista.com>
8638
8639 * Makefile.in (linux_nat_h): Update dependencies.
8640 * configure.in: Check for <gnu/libc-version.h>.
8641 * configure: Regenerate.
8642 * config.in: Regenerate.
8643 * linux-nat.h: Include "target.h". Add waitstatus field to
8644 struct lwp_info.
8645 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8646 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8647 to.
8648 (lin_lwp_handle_extended): New function. Handle clone events.
8649 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8650 thread exit events.
8651 (child_wait): Handle clone events.
8652 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8653 * linux-nat.c (linux_enable_event_reporting): Turn on
8654 PTRACE_O_TRACECLONE.
8655 (linux_handle_extended_wait): Handle clone events.
8656 * thread-db.c: Include <gnu/libc-version.h>.
8657 (struct private_thread_info): Add dying flag.
8658 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8659 higher.
8660 (attach_thread): Update comments. Handle dying threads.
8661 (detach_thread): Set the dying flag.
8662 (check_event): Always call attach_thread.
8663
8d5f9dcb
DJ
86642004-03-29 Daniel Jacobowitz <drow@mvista.com>
8665
8666 * mips-tdep.c (mips_pdr_data): New.
8667 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8668 (_initialize_mips_tdep): Initialize mips_pdr_data.
8669
66337bb1
CV
86702004-03-29 Corinna Vinschen <vinschen@redhat.com>
8671
8672 * minsyms.c (install_minimal_symbols): Move dropping leading
8673 char from linkage name from here...
8674 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8675 test for "__gnu_compiled*" symbols.
8676
e802b915
JB
86772004-03-28 Jim Blandy <jimb@redhat.com>
8678
8679 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8680 registers to temp register r0 and byte stores as prologue
8681 instructions.
8682
72b56458
AC
86832004-03-28 Andrew Cagney <cagney@redhat.com>
8684
8685 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8686 arm*-*-*.
8687
0bfbda3b
SC
86882004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8689
8690 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8691 and switch the layout to force a display of register window.
8692
5a7225ed
JB
86932004-02-26 J. Brobecker <brobecker@gnat.com>
8694
8695 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8696 of the INTEGER class.
8697
81a07a45
JB
86982004-03-26 Jim Blandy <jimb@redhat.com>
8699
8700 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8701 bytes long on PPC GNU/Linux.
8702
8c691c7a
DC
87032004-03-26 David Carlton <carlton@kealia.com>
8704
8705 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8706
103a0089
AC
87072004-03-25 Andrew Cagney <cagney@redhat.com>
8708
8709 * PROBLEMS: Add general section titles, remove references to
8710 specific releases.
8711
7a5ea0d4
DJ
87122004-03-25 Daniel Jacobowitz <drow@mvista.com>
8713
8714 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8715 INT_REGISTER_SIZE.
8716 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8717 FP_REGISTER_VIRTUAL_SIZE.
8718 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8719 of DEPRECATED_REGISTER_RAW_SIZE.
8720 (arm_register_type): Add gdbarch argument.
8721 (arm_register_raw_size, arm_register_virtual_size): Delete.
8722 (arm_register_byte, arm_extract_return_value)
8723 (arm_store_return_value, arm_get_longjmp_target): Update references
8724 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8725 (arm_gdbarch_init): Likewise. Don't set
8726 deprecated_register_raw_size, deprecated_register_virtual_size,
8727 deprecated_max_register_raw_size,
8728 deprecated_max_register_virtual_size, or
8729 deprecated_max_register_virtual_type. Do set register_type.
8730 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8731 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8732 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8733 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8734 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8735 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8736 INT_REGISTER_SIZE.
8737 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8738 (remote_rdp_store_register): Likewise.
8739
5792a79b
DJ
87402004-03-24 Daniel Jacobowitz <drow@mvista.com>
8741
8742 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8743 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8744 to after osabi initialization.
8745 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8746 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8747 functions.
8748 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8749 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8750 variables.
8751 (mips_linux_init_abi): Append signal trampoline unwinders.
8752
1196bfda
AC
87532004-03-24 Andrew Cagney <cagney@redhat.com>
8754
8755 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8756 * tramp-frame.c: Include "gdb_assert.h".
8757 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8758 correct sizeof.
8759 (tramp_frame_append): Validate the tramp frame's instructions.
8760 * Makefile.in (tramp-frame.o): Update dependencies.
8761
4be282b4
AC
87622004-03-23 Andrew Cagney <cagney@redhat.com>
8763
8764 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8765
69aec09b
AC
87662004-03-23 Andrew Cagney <cagney@redhat.com>
8767
8768 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8769 Nasser as past testsuite/lib/ (and other) maintainers.
8770
63ed89b4
DJ
87712004-03-23 Daniel Jacobowitz <drow@mvista.com>
8772
8773 * infcmd.c (attach_command): Reread symbols if we already have
8774 an exec file.
8775
f3b36427
AC
87762004-03-23 Andrew Cagney <cagney@redhat.com>
8777
8778 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8779
aa2a3f87
AC
87802004-03-23 Andrew Cagney <cagney@redhat.com>
8781
8782 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8783 * gdbarch.h, gdbarch.c: Re-generate.
8784 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8785 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8786 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 8787 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 8788 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 8789 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
8790 (DEPRECATED_SIGTRAMP_START): Update.
8791 * blockframe.c (find_pc_sect_partial_function): Update.
8792 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8793
00cac895
DJ
87942004-03-23 Daniel Jacobowitz <drow@mvista.com>
8795
8796 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8797 if necessary.
8798
f561f026
AC
87992004-03-23 Andrew Cagney <cagney@redhat.com>
8800
8801 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8802 predicate, deprecate.
8803 * gdbarch.h, gdbarch.c: Re-generate.
8804 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8805 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8806 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8807 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8808 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8809 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8810 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8811 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8812 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8813 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8814 * blockframe.c (find_pc_partial_function): Update.
8815 * breakpoint.c (bpstat_what): Update.
8816 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8817 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8818 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8819 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8820 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8821 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8822 * i386-nto-tdep.c (i386nto_init_abi): Update.
8823 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8824 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8825 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8826 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8827 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8828 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8829 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8830 * infrun.c (pc_in_sigtramp): Update.
8831 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8832 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8833 * mips-tdep.c (mips_gdbarch_init): Update.
8834 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8835 * ppc-linux-tdep.c: Update comment.
8836 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8837 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8838 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8839 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8840 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8841 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8842 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8843 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8844 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8845 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 8846
8050c72f
AC
88472004-03-23 Andrew Cagney <cagney@redhat.com>
8848
d2259dd3
AC
8849 * tramp-frame.h, tramp-frame.h: New files.
8850 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8851 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8852
8050c72f
AC
8853 * Makefile.in: Update all dependencies.
8854
0db9b4b7
AC
88552004-03-23 Andrew Cagney <cagney@redhat.com>
8856
8857 * Makefile.in (trad_frame_h): Add $(frame_h).
8858 * trad-frame.h: Update copyright. Include "frame.h".
8859 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8860 (trad_frame_set_id, trad_frame_get_id): Declare.
8861 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8862 * trad-frame.c: Update copyright.
8863 (struct trad_frame_cache): Define.
8864 (trad_frame_cache_zalloc): New function.
8865 (trad_frame_set_id, trad_frame_get_id): New functions.
8866 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 8867
8e645ae7
AC
88682004-03-22 Andrew Cagney <cagney@redhat.com>
8869
8870 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8871 s390_pltstub_unwind_cache.
8872 (s390_stub_frame_unwind_cache): Rename
8873 s390_pltstub_frame_unwind_cache.
8874 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8875 (s390_stub_frame_prev_register): Rename
8876 s390_pltstub_frame_prev_register.
8877 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8878 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8879
8880 From Ulrich Weigand:
8881 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8882 pointer calls like PLT calls.
8883
34fcf120
DJ
88842004-03-22 Daniel Jacobowitz <drow@mvista.com>
8885
8886 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8887 PC rather than the partial function start address. Use the start
8888 address to sanity check the found PDR.
8889
5b917078
DJ
88902004-03-22 Daniel Jacobowitz <drow@mvista.com>
8891
8892 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8893 linux_handle_extended_wait.
8894
8adf9e78
AC
88952004-03-22 Andrew Cagney <cagney@redhat.com>
8896
c3122434
AC
8897 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8898 function.
8899
8adf9e78
AC
8900 * frame.h (generic_pop_current_frame): Delete declaration.
8901 (deprecate_pop_dummy_frame): Deprecate
8902 generic_pop_dummy_frame.
8903 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8904 (generic_pop_current_frame): Delete function.
8905 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8906 generic_pop_current_frame.
8907 * v850-tdep.c (v850_pop_frame): Update.
8908 * mcore-tdep.c (mcore_pop_frame): Update.
8909 * sh64-tdep.c (sh64_pop_frame): Update.
8910 * h8300-tdep.c (h8300_pop_frame): Update.
8911
90ba813f
AC
89122004-03-22 Andrew Cagney <cagney@redhat.com>
8913
8914 * frame.h (deprecated_pc_in_call_dummy): Rename
8915 generic_pc_in_call_dummy.
8916 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8917 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8918 generic_pc_in_call_dummy.
8919 (pc_in_dummy_frame): Make static.
8920 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8921 * gdbarch.h, gdbarch.c: Re-generate.
8922 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8923 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8924 (legacy_get_prev_frame): Ditto.
8925 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8926 comment.
8718a420 8927
ca4bb888
AC
89282004-03-21 Andrew Cagney <cagney@redhat.com>
8929
244675f9
AC
8930 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8931 declaration and out-of-date comment.
8932 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8933 Delete function.
8934 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8935 deprecated_pc_in_call_dummy.
8936
ca4bb888
AC
8937 * infrun.c (handle_inferior_event): For non legacy frames, use the
8938 frame ID and frame type to identify a signal trampoline. Update
8939 comments.
8940
1777c7b4
NW
89412004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8942
8943 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8944 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8945
82417da5
AC
89462004-03-21 Andrew Cagney <cagney@redhat.com>
8947
8948 * frame-unwind.h: Update copyright.
8949 (struct frame_data): Add opaque declaration.
8950 (frame_sniffer_ftype): Declare.
8951 (struct frame_unwind): Add "unwind_data" and "sniffer".
8952 (frame_unwind_register_unwinder): Declare.
8953 (frame_unwind_find_by_frame): Add parameter "this_cache".
8954 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8955 (legacy_get_prev_frame, legacy_get_prev_frame)
8956 (get_frame_type): Pass the prologue_cache to
8957 frame_unwind_find_by_frame.
8958 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8959 "unwinder".
8960 (frame_unwind_register_unwinder): New function.
8961 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8962
b2ba182e
PH
89632004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8964
8965 * bcache.c (print_percentage): Use floating point to avoid
8966 incorrect results when portion*100 overflows.
8967
81332287
KB
89682004-03-19 Kevin Buettner <kevinb@redhat.com>
8969
8970 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8971 (ppc_linux_init_extra_frame_info)
8972 (ppc_linux_frameless_function_invocation)
8973 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8974 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8975 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8976 (rs6000_frame_chain): Delete declarations.
8977 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8978 (ppc_linux_init_extra_frame_info)
8979 (ppc_linux_frameless_function_invocation)
8980 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8981 (ppc_linux_init_abi): Remove registration of above deleted functions.
8982 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8983 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8984 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8985 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8986 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8987 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8988 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8989 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8990 frame management for all OSABIs.
8991
61a65099
KB
89922004-03-19 Andrew Cagney <cagney@redhat.com>
8993
8994 Committed by Kevin Buettner <kevinb@redhat.com>.
8995
8996 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8997 Update copyright.
8998 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8999 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9000 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9001 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9002 unwinders. #ifdef legacy frame code.
9003 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9004 "frame-base.h".
9005 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9006 (struct rs6000_frame_cache, rs6000_frame_cache)
9007 (rs6000_frame_this_id, rs6000_frame_prev_register)
9008 (rs6000_frame_sniffer, rs6000_frame_unwind)
9009 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9010 (rs6000_frame_base): Implement a traditional frame unwinder.
9011 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9012 frame unwinder.
9013
88f7da05
KB
90142004-03-19 Kevin Buettner <kevinb@redhat.com>
9015
9016 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9017 breakpoint address for watchpoints or the catch eventpoints.
9018 Add new paramter ``bptype''. Adjust all callers.
9019
f826dce1
AC
90202004-03-19 Andrew Cagney <cagney@redhat.com>
9021
33cb8b0f
AC
9022 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9023
f826dce1
AC
9024 * PROBLEMS: Delete note that ARM does not use frame code, problem
9025 fixed.
9026
43b1ab88
AC
90272004-03-18 Andrew Cagney <cagney@redhat.com>
9028
292ab034
AC
9029 * stack.c (return_command): Delete code wrapped in #ifdef
9030 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9031
43b1ab88
AC
9032 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9033
dbfe4626
AC
90342004-03-18 Andrew Cagney <cagney@redhat.com>
9035
9036 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9037 DEPRECATED_IN_SIGTRAMP.
9038 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9039 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9040 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9041 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9042 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9043 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9044 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9045 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9046 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9047 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9048
0cad6aec
AC
90492004-03-18 Andrew Cagney <cagney@redhat.com>
9050
9051 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9052 (struct frame_base_table_entry): Define.
9053 (struct frame_base_table): Re-implement as a linked list.
9054 (frame_base_init): Re-implement.
9055 (frame_base_table): Delete function.
9056 (append_predicate): Delete function.
9057 (frame_base_append_sniffer): Update.
9058 (frame_base_set_default): Update.
9059 (frame_base_find_by_frame): Update.
9060 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9061 * Makefile.in (frame-base.o): Update dependencies.
9062
9982c2e7
AC
90632004-03-17 Andrew Cagney <cagney@redhat.com>
9064
9065 * frame.c (legacy_get_prev_frame): Pass correct frame to
9066 frame_unwind_find_by_frame.
9067
8dfe8985
DC
90682004-03-17 David Carlton <carlton@kealia.com>
9069
9070 * NEWS: Mention C++ nested types and namespaces
9071
ed47347a
MC
90722004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9073
9074 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9075 and "Regressions since gdb 5.3.". Add known regressions since
9076 gdb 6.0.
9077
90aeadfc
DC
90782004-03-16 David Carlton <carlton@kealia.com>
9079
9080 * dwarf2read.c (process_structure_scope): Process children even
9081 when we're a declaration.
9082
73912b9b
AC
90832004-03-16 Andrew Cagney <cagney@redhat.com>
9084
9085 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9086 * blockframe.c (find_pc_partial_function)
9087 (find_pc_sect_partial_function): Merge into a single
9088 find_pc_partial_function.
9089
283accbc
MK
90902004-03-16 Mark Kettenis <kettenis@gnu.org>
9091
9092 * i386bsd-nat.c: s/regno/regnum/g.
9093 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9094 FP0_REGNUM.
9095 (store_inferior_registers): Likewise.
9096
f5b1afdf
MK
90972004-03-16 Mark Kettenis <kettenis@gnu.org>
9098
9099 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9100 of i387_fill_fsave.
9101 (store_inferior_registers): Call i387_collect_fsave and
9102 i387_collect_fxsave instead of i387_fill_fsave and
9103 i387_fill_fxsave.
9104
41fe5eb3
AC
91052004-03-15 Andrew Cagney <cagney@redhat.com>
9106
9107 * Makefile.in (frame-unwind.o): Update dependencies.
9108 * frame-unwind.c: Include "gdb_obstack.h".
9109 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9110 parameter.
9111 (append_predicate): Delete function.
9112 (struct frame_unwind_table_entry): New structure.
9113 (struct frame_unwind_table): Replace "sniffer" with "head" and
9114 "tail".
9115 (frame_unwind_append_sniffer): Update.
9116 (frame_unwind_find_by_frame): Update.
9117 (_initialize_frame_unwind): Registe frame_unwind_init using
9118 gdbarch_data_register_pre_init.
9119
3f63813d
MK
91202004-03-15 Mark Kettenis <kettenis@gnu.org>
9121
9122 * i386bsd-nat.c: Update copyright year.
9123 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9124 define unconditionally.
9125
3248c325 91262004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
9127
9128 * i387-tdep.h (i387_collect_fsave): New prototype.
9129 * i387-tdep.c (i387_collect_fsave): New function containing most
9130 of the code from i387_fill_fsave.
3248c325 9131 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 9132
871fbe6a
MK
91332004-03-15 Mark Kettenis <kettenis@gnu.org>
9134
9135 * i386-linux-tdep.c: Update copyright year.
9136 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9137 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9138 svr4_ilp32_link_map_offsets instead of
9139 i386_linux_svr4_fetch_link_map_offsets.
9140
8176b9b8
DC
91412004-03-15 David Carlton <carlton@kealia.com>
9142
9143 Fix for PR c++/1553:
9144 * dwarf2read.c (read_structure_type): Determine type name by
9145 calling determine_class_name.
9146 (determine_class_name): New.
9147 (determine_prefix): Look at TYPE_TAG_NAME and call
9148 determine_class_name when appropriate.
9149 (determine_prefix_aux, class_name): Delete.
9d58e29d 9150 (read_namespace): Set die->type.
8176b9b8 9151
fe8bf7d7
KB
91522004-03-15 Kevin Buettner <kevinb@redhat.com>
9153
9154 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9155 unused macro definition. The definition in target.h (or perhaps
9156 elsewhere) takes precedence.
9157
ed6edd9b
AC
91582004-03-15 Andrew Cagney <cagney@redhat.com>
9159
f9be684a
AC
9160 * ppc-tdep.h: Update copyright.
9161 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9162 function signatures to match "regsets.h".
9163 * ppc-linux-tdep.c: Include "regset.h".
9164 (ELF_GREGSET_SIZE): Delete.
9165 (right_supply_register): New function.
9166 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9167 using right_supply_register.
9168 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9169 functions.
9170 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9171 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9172 (_initialize_ppc_linux_tdep): Do not register
9173 ppc_linux_regset_core_fns.
9174 (ppc_linux_regset_from_core_section): Replace
9175 fetch_core_registers.
9176 (ppc_linux_regset_core_fns): Delete.
9177 * ppc-linux-nat.c: (right_fill_reg): New function.
9178 (supply_gregset): Update call to ppc_linux_supply_gregset.
9179 (fill_gregset): Clear the register set, use right_fill_reg.
9180 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9181 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9182
ed6edd9b
AC
9183 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9184 unsigned.
9185
030f20e1
AC
91862004-03-15 Andrew Cagney <cagney@redhat.com>
9187
9188 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9189 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9190 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9191 and register_gdbarch_data.
9192 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9193 (struct gdbarch_data): Replace "init" by "pre_init" and
9194 "post_init".
9195 * gdbarch.h, gdbarch.c: Re-generate.
9196 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9197 with"obstack", use OBSTACK_ZALLOC.
9198 (dwarf2_frame_ops): Delete.
9199 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9200 (dwarf2_frame_init_reg): Use gdbarch_data.
9201 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 9202 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
9203 (_initialize_svr4_solib): Update.
9204 * user-regs.c (_initialize_user_regs): Update.
9205 * reggroups.c (_initialize_reggroup): Update.
9206 * regcache.c (_initialize_regcache): Update.
9207 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9208 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9209 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9210 * frame-unwind.c (_initialize_frame_unwind): Update.
9211 * frame-base.c (_initialize_frame_base): Update.
9212 * user-regs.c (user_reg_add): Update.
9213 * reggroups.c (reggroup_add): Update.
9214 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9215 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9216 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9217 * frame-base.c (frame_base_table): Update.
9218 * remote.c (_initialize_remote): Update.
9219 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 9220
3111a3fc
AC
92212004-03-15 Andrew Cagney <cagney@redhat.com>
9222
9223 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9224
5ecb7103
KB
92252004-03-15 Kevin Buettner <kevinb@redhat.com>
9226
9227 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9228 * frv-linux-tdep.c: New file.
9229 * frv-tdep.c (struct gdbarch_tdep): Add new field
9230 ``sigcontext_reg_addr''.
9231 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9232 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9233 (frv_sigramp_frame_sniffer): New functions.
9234 (frv_sigtramp_frame_unwind): New static global.
9235 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9236 sniffers.
9237 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9238 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9239
1ccda5e9
KB
92402004-03-15 Kevin Buettner <kevinb@redhat.com>
9241
9242 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9243 but not via a call to error(), when unable to read memory.
9244
b375a0a5
KB
92452004-03-15 Kevin Buettner <kevinb@redhat.com>
9246
9247 * frv-tdep.c (frv_call_dummy_words): Delete.
9248 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9249
4fdf6121
AC
92502004-03-15 Andrew Cagney <cagney@redhat.com>
9251
9252 * infrun.c (handle_step_into_function, step_over_function): Only
9253 update and use STEP_FRAME_ID when the system is using legacy
9254 frames. Update comments.
9255
34021503
MK
92562004-03-14 Mark Kettenis <kettenis@gnu.org>
9257
187e21d1
MK
9258 * amd64-linux-tdep.h: Remove file.
9259 * amd64-linux-tdep.c: Don't include "inferior.h" and
9260 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9261 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9262 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9263 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9264 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9265 macros.
9266 (user_to_gdb_regmap): Remove variable.
9267 (amd64_linux_gregset_reg_offset): New variable.
9268 (amd64_core_fns): Remove variable.
9269 (fetch_core_registers): Remove function.
9270 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9271 functions.
9272 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9273 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9274 * Makefile.in (amd64_linux_tdep_h): Remove.
9275 (amd64-linux-nat.o): Update dependencies.
9276 (amd64-linux-tdep.o): Update dependencies.
9277
99679982
MK
9278 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9279 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9280 functions.
9281 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9282
34021503
MK
9283 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9284 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9285
134d01f1
DJ
92862004-03-14 Daniel Jacobowitz <drow@mvista.com>
9287
9288 * dwarf2read.c (read_structure_type): Rename from
8718a420 9289 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
9290 Return immediately if die->type is set. Call read_type_die before
9291 dwarf2_add_member_fn.
9292 (process_structure_scope): New function.
9293 (read_enumeration_type, process_enumeration_scope): New functions,
9294 broken out from read_enumeration. Don't create the enumeration
9295 type if it has already been created.
9296 (read_enumeration): Removed.
9297 (process_die): Call read_structure_type, process_structure_scope,
9298 read_enumeration_type, and process_enumeration_scope. Just call
9299 new_symbol for base and subrange types. Add a comment about other
9300 type dies.
9301 (read_type_die): Call read_enumeration_type.
9302 (add_partial_structure, new_symbol): Update comments.
9303
65760afb
SC
93042004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9305
9306 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9307
10f59415
SC
93082004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9309
9310 * tui/tui-win.h (tui_get_cmd_list): Declare.
9311 * tui/tui-win.c (tui_command): New function.
9312 (tui_get_cmd_list): New function.
9313 (_initialize_tui_win): Moved initialization of tui command in
9314 tui_get_cmd_list.
9315
9316 * tui/tui-data.c (init_content_element): Setup new data members.
9317 (init_win_info): Likewise.
9318 (free_content_elements): Free it.
9319 * tui/tui-data.h (struct tui_data_element): Store the register
9320 content to print.
9321 (struct tui_data_info): Keep the current register group.
9322
9323 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9324
9325 * tui/tui-regs.h (tui_show_registers): Update prototype.
9326 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9327 (tui_resize_all): No need to calculate anything for register window.
9328 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9329 (tui_set_register_element, tui_set_general_regs_content): Remove.
9330 (tui_set_special_regs_content): Remove.
9331 (tui_set_general_and_special_regs_content): Remove.
9332 (tui_set_float_regs_content): Remove.
9333 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9334 (tui_set_regs_content): Remove.
9335 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9336 (tui_v_show_registers_command_support): Remove.
9337 (tui_show_registers): Use a reggroup to specify the registers to show.
9338 (tui_show_register_group): New function.
9339 (tui_display_registers_from): Compute the layout of register window
9340 and refresh with new API; be sure to delete old register windows.
9341 (tui_check_register_values): Update to use tui_get_register and
9342 tui_display_data.
9343 (tui_display_register): Just refresh the register window part.
9344 (tui_register_format): Format registers and save in tui_data_element.
9345 (tui_get_register): New to combine tui_reg_value_has_changed and
9346 tui_get_register_raw_value; fix to use the new gdb API.
9347 (tui_show_float_command): Renamed tui_reg_float_command.
9348 (tui_show_general_command): Renamed tui_reg_general_command.
9349 (tui_show_special_command): Renamed tui_reg_system_command.
9350 (_initialize_tui_regs): Remove unused commands.
9351
c3364ea4
MK
93522004-03-13 Mark Kettenis <kettenis@gnu.org>
9353
27d1e716
MK
9354 * NEWS (New native configurations): Mention OpenBSD/amd64.
9355
c3364ea4
MK
9356 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9357 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9358 Remove defines.
9359 * config/i386/nm-fbsd64.h: Likewise.
9360 * config/i386/nm-obsd.h: Likewise.
9361 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9362 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9363
b2d6d697
KB
93642004-03-12 Kevin Buettner <kevinb@redhat.com>
9365
9366 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
9367 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9368 New constants.
9369
76e43199
KB
9370 From Richard Sandiford <rsandifo@redhat.com>:
9371 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9372
34ce532e
KB
93732004-03-12 Kevin Buettner <kevinb@redhat.com>
9374
9375 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9376 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9377 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9378 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9379 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9380 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9381 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9382 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9383 definitions from frv-tdep.c to frv-tdep.h.
9384
c4d10515
KB
93852004-03-12 Kevin Buettner <kevinb@redhat.com>
9386
9387 Add shared library support for FR-V FDPIC ABI:
9388 * Makefile.in (solib-frv.o): Add dependencies.
9389 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9390 New functions.
9391 (frv_push_dummy_call): Add support for FDPIC ABI.
9392 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9393 for FDPIC ABI.
9394 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9395 (frv_fdpic_find_canonical_descriptor): Declare.
9396 * solib-frv.c: New file.
9397 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9398 * config/frv/tm-frv.h (solib.h): Include.
9399
ed1bd989
KB
94002004-03-12 Kevin Buettner <kevinb@redhat.com>
9401
9402 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9403 (frv-tdep.o): Update dependencies.
9404 * frv-tdep.h: New file.
9405 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9406 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9407 constants.
9408 (struct gdbarch_tdep): Add new member ``frv_abi''.
9409 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9410 functions.
9411 (new_variant): Set ``frv_abi'' field.
9412 (gdb_arch_init): Detect FDPIC executables.
9413
82b38f72
MK
94142004-03-12 Mark Kettenis <kettenis@gnu.org>
9415
9416 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9417 wrapper.
9418
db1ea9ba
AC
94192004-03-11 Andrew Cagney <cagney@redhat.com>
9420
9421 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9422
f8766ec1
KB
94232004-03-11 Kevin Buettner <kevinb@redhat.com>
9424
9425 * solist.h (master_so_list): New function.
9426 * solib.c (master_so_list): Likewise.
9427 * solib-svr4.c (enable_break): Iterate over so_list entries
9428 obtained from master list instead of entries obtained directly
9429 via svr4_current_sos().
9430
523f6a27
BE
94312004-03-10 Ben Elliston <bje@gnu.org>
9432
9433 * MAINTAINERS: Update my mail address.
9434
37814c18
KI
94352004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9436
9437 * remote-m32r-sdi.c: Support hardware watchpoint.
9438
8b9740d8
DJ
94392004-03-09 Daniel Jacobowitz <drow@mvista.com>
9440
9441 * user-regs.c: Update copyright years.
9442 (struct user_regs): Rename to gdb_user_regs.
9443 (append_user_reg, builtin_user_regs, user_regs_init)
9444 (user_reg_add, user_reg_map_name_to_regnum)
9445 (usernum_to_user_reg): Update.
9446
4bb7a0a7
DJ
94472004-03-09 Daniel Jacobowitz <drow@mvista.com>
9448
9449 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9450 (skip_children): New functions.
9451 (locate_pdi_sibling): Call skip_children.
9452
44e1a9eb
DJ
94532004-03-09 Daniel Jacobowitz <drow@mvista.com>
9454
9455 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9456 * gdbtypes.c (check_typedef): Update comments.
9457
f3dd6933
DJ
94582004-03-09 Daniel Jacobowitz <drow@mvista.com>
9459
9460 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9461 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9462 pointer. Update comment about comp_unit_head.
9463 (struct abbrev_info): Shorten two int flags.
9464 (dwarf_alloc_abbrev): Take a CU argument.
9465 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9466 each time through the loop. Update cleanup argument.
9467 (psymtab_to_symtab_1): Update cleanup call.
9468 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9469 abbrev_obstack.
9470 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9471 Just call obstack_free and clear the pointer.
9472
b40c7d58
DJ
94732004-03-09 Daniel Jacobowitz <drow@mvista.com>
9474
9475 * infrun.c (handle_inferior_event): Remove short-circuit code for
9476 events in a different thread.
9477
333dabeb
DJ
94782004-03-09 Daniel Jacobowitz <drow@mvista.com>
9479
9480 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9481 print the whole transfer.
9482 (initialize_targets): Update description of "set debug target".
9483
aa17d93e
DJ
94842004-03-09 Daniel Jacobowitz <drow@mvista.com>
9485
9486 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9487
0b71f08f
NW
94882004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9489
9490 * MAINTAINERS (write after approval): Add myself.
9491
3930f270
CV
94922004-03-08 Corinna Vinschen <vinschen@redhat.com>
9493
9494 * sh-tdep.c (sh_print_registers_info): Use for loop.
9495 Don't skip multiple registers when a float register is encountered.
9496
a2b4a96c
CV
94972004-03-08 Corinna Vinschen <vinschen@redhat.com>
9498
9499 Fix PR tdep/1291.
9500 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9501 to official SH documentation.
9502
f15a4bc0
AC
95032004-03-07 Andrew Cagney <cagney@redhat.com>
9504
9505 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9506 unused function.
9507
9498281f
DJ
95082004-03-07 Daniel Jacobowitz <drow@mvista.com>
9509
9510 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9511 (arm_get_next_pc): Handle BX and BLX.
9512
449e1137
AC
95132004-03-07 Andrew Cagney <cagney@redhat.com>
9514
eded0a31
AC
9515 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9516 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9517 HPPA_SP_REGNUM.
9518 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9519 (hppa_target_read_fp): Delete.
9520 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9521 register_virtual_size, max_register_raw_size,
9522 max_register_virtual_size, register_byte, register_size,
9523 target_read_fp, fp_regnum, and register_bytes. Set register_type
9524 instead of register_virtual_type.
9525 (hppa32_register_type, hppa64_register_type): Replace
9526 hppa32_register_virtual_type and hppa64_register_virtual_type.
9527 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9528 (HPPA_FP_REGNUM): Define.
9529
f5f907e2
AC
9530 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9531
69b4bbe4
AC
9532 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9533 (pa_do_registers_info): Delete.
9534 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 9535 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 9536 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 9537
78161e48
AC
9538 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9539 GDB_TARGET_IS_HPPA code.
9540 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 9541 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
9542 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9543 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
9544 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9545 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9546 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 9547 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
9548 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9549 (hppa_frameless_function_invocation, hppa64_store_return_value)
9550 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 9551 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 9552 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 9553 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
9554 (find_proc_framesize, deposit_21, restore_pc_queue)
9555 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 9556 (rp_saved, pc_in_linker_stub): Delete.
78161e48 9557
782eae8b
AC
9558 Unconditionally enable 64-bit frame and ABI code.
9559 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9560 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9561 push_dummy_frame, fix_call_dummy, push_arguments,
9562 call_dummy_location, extract_return_value, use_struct_convention,
9563 store_return_value, store_struct_return, saved_pc_after_call,
9564 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9565 frame_chain, frame_chain_valid, frameless_function_invocation,
9566 frame_saved_pc, and pop_frame.
78161e48 9567
449e1137
AC
9568 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9569 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9570 (hppa_gdbarch_init): Do not set PC_REGNUM.
9571
12507572
MK
95722004-03-06 Mark Kettenis <kettenis@gnu.org>
9573
9574 * config/alpha/tm-fbsd.h: Remove file.
9575 * config/alpha/fbsd.mt: Tweak comment.
9576 (TM_FILE): Set to tm-alpha.h.
9577
c107cc1b
AC
95782004-03-05 Andrew Cagney <cagney@redhat.com>
9579
9580 * infrun.c (step_over_function): When non-legacy code, and no
9581 step_frame_id, use the unwinder to get the caller's frame ID.
9582
f2e7c15d
MK
95832004-03-05 Mark Kettenis <kettenis@gnu.org>
9584
8b0c3633
MK
9585 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9586 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9587 bfd_arch_unknown. Adjust comment.
9588
f2e7c15d
MK
9589 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9590 * i386obsd-tdep.c: Correct spelling in comment.
9591 * i386nbsd-tdep.c: Correct spelling in comment.
9592 * sparc-tdep.c: Correct spelling in comments.
9593
1198ecbe
DC
95942004-03-05 David Carlton <carlton@kealia.com>
9595
9596 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9597 bug.
9598
9eb42ed1
MK
95992004-03-05 Mark Kettenis <kettenis@gnu.org>
9600
9601 * sparc-tdep.c: Fix typo in comment.
9602
52b5e991
JB
96032004-03-04 J. Brobecker <brobecker@gnat.com>
9604
9605 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9606
d8151005
DJ
96072004-03-04 Daniel Jacobowitz <drow@mvista.com>
9608
9609 * dwarf2read.c: Add comment describing memory lifetimes.
9610 (struct dwarf2_pinfo): Update comment.
9611 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9612 (read_enumeration, new_symbol): Don't use obsavestring.
9613
cbeae229
MK
96142004-03-04 Mark Kettenis <kettenis@gnu.org>
9615
722d18c2
MK
9616 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9617 instead of amd64_fill_fxsave.
9618 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9619 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9620
cbeae229
MK
9621 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9622 Reorganize code a bit.
9623
b4206d25
OF
96242004-03-04 Orjan Friberg <orjanf@axis.com>
9625
9626 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
9627 when the frame pointer is pushed. Don't set the frame pointer's
9628 address on the stack unless it's actually located there.
b4206d25
OF
9629 Set the SRP's address on the stack correctly when the PC is still in
9630 the prologue.
9631 (cris_return_value): New function.
9632 (cris_gdbarch_init): Clear deprecated store_return_value,
9633 extract_return_value.
9634
49b0b195
JB
96352004-03-02 Jim Blandy <jimb@redhat.com>
9636
9637 * stabsread.c (reg_value_complaint): The maximum register number
9638 is one less than the number of registers.
9639
e9ff708b
AC
96402004-03-02 Andrew Cagney <cagney@redhat.com>
9641
9642 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9643 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9644 trailing comma and redundant assignment of I386_ST0_REGNUM.
9645 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9646 32-bit segment registers.
9647
d4715e41
AC
96482004-03-01 Andrew Cagney <cagney@redhat.com>
9649
9650 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9651 use frame_relative_level and get_next_frame.
9652
3ce2bf18
AC
96532004-02-29 Andrew Cagney <cagney@redhat.com>
9654
9655 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9656 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9657 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9658 Delete macro.
9659
2da6aac3
DJ
96602004-02-29 Daniel Jacobowitz <drow@mvista.com>
9661
9662 * inflow.c (terminal_inferior): Don't give up the terminal if we
9663 previously couldn't get the inferior's terminal state.
9664
6ba34a8d
DJ
96652004-02-29 Daniel Jacobowitz <drow@mvista.com>
9666
9667 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9668 PC_REGNUM.
9669
faae5abe
AC
96702004-02-28 Andrew Cagney <cagney@redhat.com>
9671
9672 * NEWS: Refer to GDB 6.1.
9673 * README: Refer to GDB 6.1.
9674 * PROBLEMS: Refer to GDB 6.1.
9675
2227a3c5
DJ
96762004-02-28 Daniel Jacobowitz <drow@mvista.com>
9677
9678 * thread-db.c (disable_thread_signals): Remove unused function.
9679
80571bff
MK
96802004-02-28 Mark Kettenis <kettenis@gnu.org>
9681
041bd74b
MK
9682 * amd64-nat.c: Include "gdb_string.h".
9683 (amd64_collect_native_gregset): Zero-extend the 32-bit
9684 general-purpose registers and %eip.
9685
3c017e40
MK
9686 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9687 * amd64-tdep.c (amd64_collect_fxsave): New function.
9688 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9689
80571bff
MK
9690 * i387-tdep.h: Update copyright year.
9691 (i387_collect_fxsave): New prototype.
9692 * i387-tdep.c: Update copyright year.
9693 (i387_collect_fxsave): New function containing most of the code
9694 from i387_fill_fxsave.
9695 (i387_fill_fxsave): Call i387_collect_fxsave.
9696
50d71875
AC
96972004-02-28 Andrew Cagney <cagney@redhat.com>
9698
9699 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9700 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9701
4a28816e
MK
97022004-02-28 Mark Kettenis <kettenis@gnu.org>
9703
9704 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9705
dbda9972
AC
97062004-02-28 Andrew Cagney <cagney@redhat.com>
9707
9708 * utils.c: Use "", instead of <>, to include readline.
9709 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9710 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9711 * source.c, solib.c, exec.c, event-top.c: Ditto.
9712 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9713 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9714 * Makefile.in: Update all dependencies.
9715 (readline_tilde_h, readline_history_h): Define.
9716 (readline_headers): Delete.
9717
83277a99
MK
97182004-02-28 Mark Kettenis <kettenis@gnu.org>
9719
91ae4303
MK
9720 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9721 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9722 "config/i386/tm-lx64.h".
9723
83277a99
MK
9724 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9725 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9726 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9727
6e1d7d6c
AC
97282004-02-28 Andrew Cagney <cagney@redhat.com>
9729
ecc9ac84
AC
9730 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9731
6e1d7d6c
AC
9732 * breakpoint.c (_initialize_breakpoint): Use
9733 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9734 Add help to show command.
9735
9671aeef
MK
97362004-02-28 Mark Kettenis <kettenis@gnu.org>
9737
7fa2737c
MK
9738 * i386-nat.c: Reformat to be closer to coding standards.
9739 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9740 `retval'. Make variables `align' and `size' local to while-loop.
9741 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9742 (_initialize_i386_nat): New prototype.
9743
9671aeef
MK
9744 * tui/tui.c: Include <readline/readline.h> instead of
9745 "readline/readline.h". Include it after <term.h> and
9746 "gdb_curses.h".
9747
fca7aa43
AC
97482004-02-27 Andrew Cagney <cagney@redhat.com>
9749
412275d5
AC
9750 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9751 the new frame unwind code.
9752 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9753 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9754 PCOQ_HEAD_REGNUM.
9755
fca7aa43
AC
9756 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9757 "return_value" and "push_dummy_call".
9758 (hppa32_use_struct_convention): Delete unused function.
9759 (hppa32_store_return_value): Delete unused function.
9760 (hppa32_extract_return_value): Delete unused function.
9761 (hppa32_stack_align): Delete function.
9762
e6a8a7d2
EZ
97632004-02-27 Eli Zaretskii <eliz@elta.co.il>
9764
9765 * coffread.c (enter_linenos): Don't let rawptr reference memory
9766 outside linetab[]'s limits.
9767
1797a8f6
AC
97682004-02-27 Andrew Cagney <cagney@redhat.com>
9769
9770 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9771 inferior stack space - the stack needs to grow upwards.
9772 (hppa32_frame_align): New function.
9773 (hppa64_frame_align): Replace hppa_frame_align.
9774 (hppa_gdbarch_init): Update.
9775
2e4b5889
OF
97762004-02-26 Orjan Friberg <orjanf@axis.com>
9777
9778 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9779 (dwarf2-frame.h): Include.
9780 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9781 Remove static variables related to ABI setting.
9782 (struct gdbarch_tdep): Remove cris_abi member.
9783 (struct frame_extra_info): Remove.
9784 (cris_unwind_cache, stack_item): New structs.
9785 (cris_frame_unwind, cris_frame_base): New variables.
9786 (push_stack_item, pop_stack_item)
9787 (cris_frame_unwind_cache, cris_frame_this_id)
9788 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9789 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9790 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9791 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9792 (cris_reg_struct_has_addr): New functions.
9793 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 9794 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
9795 (cris_store_struct_return, cris_frameless_function_invocation)
9796 (cris_pop_frame, cris_skip_prologue_main)
9797 (cris_abi_original_store_return_value)
9798 (cris_abi_v2_store_return_value)
9799 (cris_abi_original_extract_return_value)
9800 (cris_abi_v2_extract_return_value)
9801 (cris_abi_original_reg_struct_has_addr)
9802 (cris_abi_v2_reg_struct_has_addr)
9803 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9804 (cris_push_return_address, cris_abi_update): Remove.
9805 (_initialize_cris_tdep): Remove ABI command.
9806 (cris_dump_tdep): Ditto.
8718a420 9807 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
9808 Set store_return_value, extract_return_value, push_dummy_code,
9809 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9810 frame_unwind_append_sniffer, frame_base_set_default.
9811 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9812 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9813 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 9814 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
9815 init_extra_frame_info, frameless_function_invocation, frame_chain,
9816 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9817 dummy_write_sp.
8718a420 9818
6b9acc27
JJ
98192004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9820
9821 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9822 * valprint.c (print_hex_chars): Change from static to external.
9823 (print_char_chars): New function.
9824 * printcmd.c (print_scalar_formatted): For integer and enum types
9825 that are longer than LONGEST, perform processing via appropriate
9826 print_*_chars routines.
9827
a431654a
AC
98282004-02-26 Andrew Cagney <cagney@redhat.com>
9829
9830 * Makefile.in: Update dependencies.
9831 Changes from Ulrich Weigand,
9832 * s390-tdep.c: Include "dwarf2-frame.h".
9833 (s390_dwarf2_frame_init_reg): New function.
9834 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9835 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9836
fa8d40ab
JJ
98372004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9838
9839 * breakpoint.c (pending_break_support): New setting variable.
9840 (break_command_1): Account for pending_break_support setting
9841 when creating pending breakpoints.
9842 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9843 (_initialize_breakpoint): Add "set breakpoint pending" and
9844 "show breakpoint pending" commands.
9845
0dcd613f
AC
98462004-02-26 Andrew Cagney <cagney@redhat.com>
9847
9848 Fix PR i18n/1570.
9849 * charset.c (backslashable, backslashed, represented): Remove 'e'
9850 from list of escaped characters, not part of ISO-C.
9851
479272a3
JB
98522004-02-25 J. Brobecker <brobecker@gnat.com>
9853
9854 From Peter Schauer <schauer@pdf.de>:
9855 * tui/tui.c: Move system header includes after local includes.
9856 Fixes a build failure on solaris systems.
9857
7613d933
JB
98582004-02-25 J. Brobecker <brobecker@gnat.com>
9859
9860 * configure.in: Refine the previous change.
9861 * configure: Regenerate.
9862
9c1488cb
MK
98632004-02-25 Mark Kettenis <kettenis@gnu.org>
9864
9865 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9866 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9867 "amd64-tdep.h" instead of "x86-64-tdep.h".
9868 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9869 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9870 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9871 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9872 and "x86-64-tdep.c".
9873 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9874 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9875 and "x86-64-tdep.c".
9876 * amd64bsd-nat.c: Update copyright year.
9877 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9878 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9879 "x86-64-tdep.h".
9880 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9881 "x86-64-tdep.h".
9882 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9883 "x86-64-tdep.h".
9884 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9885 "x86-64-tdep.h".
9886 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9887 "x86-64-tdep.h".
9888 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9889 "x86-64-tdep.h".
8718a420 9890 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
9891 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9892 * Makefile.in (amd64_linux_tdep_h): Renamed from
9893 x86_64_linux_tdep_h.
9894 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9895 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9896 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9897 (amd64obsd-tdep.o): Update dependencies.
9898 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9899 dependencies.
9900 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9901 dependencies.
9902 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9903 amd64-linux-nat.c amd64-linux-tdep.c.
9904 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9905 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9906 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9907 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9908 amd64-tdep.o and amd64-linux-tdep.o.
9909 (TM_FILE): Set to tm-linux64.h.
9910 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9911 (NAT_FILE): Set to nm-linux64.h.
9912 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9913 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9914 amd64-tdep.o.
9915 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9916 amd64-tdep.o.
9917 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9918 amd64-tdep.o.
9919
4b8dad4a
RM
99202004-02-25 Roland McGrath <roland@redhat.com>
9921
9922 * remote.c (remote_protocol_qPart_auxv): New variable.
9923 (init_all_packet_configs): Initialize it.
9924 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9925 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9926 (show_remote_cmd): Call it.
9927 (_initialize_remote): Initialize commands.
9928 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9929 service TARGET_OBJECT_AUXV requests.
9930
66745969
JB
99312004-02-25 J. Brobecker <brobecker@gnat.com>
9932
9933 * configure.in: Make sure that the wborder function is available.
9934 Otherwise, search for it in the cur_colr library.
9935 * configure: Regenerate.
9936
79508e1e
AC
99372004-02-25 Andrew Cagney <cagney@redhat.com>
9938
9939 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9940
571ee600
MK
99412004-02-25 Mark Kettenis <kettenis@gnu.org>
9942
9943 * config/i386/tm-x86-64linux.h: Tweak comments.
9944
2b1b322f 99452004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
9946
9947 * MAINTAINERS: Add self to write-after-approval list.
9948
4d2acc65
AC
99492004-02-25 Andrew Cagney <cagney@redhat.com>
9950
4b8dad4a 9951 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
9952 * cli/cli-script.c (execute_control_command): Unconditionally
9953 install a cleanup. Default "ret" to "invalid_control". Use
9954 "break" instead of "return" to escape from the switch.
9955
4cfcaf21
JB
99562004-02-24 J. Brobecker <brobecker@gnat.com>
9957
9958 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9959 with the lines macro defined in term.h on AiX.
9960 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9961 a collision with the label_width macro defined in term.h on AiX.
9962
54a5c8d8
KB
99632004-02-23 David Mosberger <davidm@hpl.hp.com>
9964
9965 Committed by Kevin Buettner <kevinb@redhat.com>.
9966
9967 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9968 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9969 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9970 instead of ia64_write_pc().
9971 * ia64-linux-tdep.c (regcache.h): Include.
9972 (ia64_linux_write_pc): New function.
4b8dad4a 9973
8a1dac83
RM
99742004-02-23 Roland McGrath <roland@redhat.com>
9975
9976 * auxv.c (info_auxv_command): Fix typos in error messages.
9977
90f90721
MK
99782004-02-23 Mark Kettenis <kettenis@gnu.org>
9979
8a1dac83 9980 * x86-64-tdep.h: Tweak comment.
90f90721
MK
9981 (enum amd64_regnum): New.
9982 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9983 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9984 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9985 (X86_64_XMM1_REGNUM): Removed.
9986 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9987 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9988 prototypes for renamed functions.
9989 * x86-64-tdep.c: Fix typo.
9990 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9991 register numbers.
9992 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9993 Use constants from `enum amd64_regnum' for register numbers.
9994 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9995 (amd64_analyze_prologue, amd64_frame_cache,
9996 amd64_sigtramp_frame_cache): Use constants from `enum
9997 amd64_regnum' for register numbers.
9998 (amd64_supply_fpregset): Adjust for renamed functions.
9999 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10000 `enum amd64_regnum' for register numbers.
10001 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10002 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10003 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10004 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10005 (amd64_linux_fill_gregset): Adjust for renamed macros.
10006 (fetch_core_registers): Adjust for renamed functions.
10007 (amd64_linux_init_abi): Adjust for renamed functions.
10008 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10009 renamed functions.
10010 * amd64-nat.c: Adjust for renamed macros.
10011 * amd64bsd-nat.c (fetch_inferior_registers)
10012 (store_inferior_registers): Use constants from `enum amd64_regnum'
10013 for register numbers. Adjust for renamed variables.
10014 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10015 renamed variables.
10016 (_initialize_amd64fbsd_nat): Use constants from `enum
10017 amd64_regnum' for register numbers.
10018 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10019 `enum amd64_regnum' for register numbers.
10020 (amd64fbsd_init_abi): Adjust for renamed functions.
10021 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10022 `enum amd64_regnum' for register numbers.
10023 (amd64nbsd_init_abi): Adjust for renamed functions.
10024 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10025 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10026 `enum amd64_regnum' for register numbers.
10027 (amd64obsd_init_abi): Adjust for renamed functions.
10028 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10029
d5479188
JJ
100302004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10031
10032 * breakpoint.c (print_one_breakpoint): Do not output spaces
10033 after printing <PENDING> for a pending breakpoint.
10034
81cb7cc9
JJ
100352004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10036
10037 * printcmd.c (print_scalar_formatted): Initialize val_long
10038 to remove compiler warning message.
10039
cbdeadca
JJ
100402004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10041
10042 * defs.h (nquery, yquery): New prototypes.
10043 * breakpoint.c (break_command_1): Use new nquery interface.
10044 * utils.c (defaulted_query, nquery, yquery): New functions.
10045
da6bab63
AC
100462004-02-23 Andrew Cagney <cagney@redhat.com>
10047
2f690297
AC
10048 * hppa-tdep.c (hppa_frame_align): New function.
10049 (hppa32_push_dummy_call): New function.
10050 (hppa64_push_dummy_call): New function.
10051 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10052 disabled.
8a1dac83 10053
da6bab63
AC
10054 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10055 FIX_CALL_DUMMY when push_dummy_call is available.
10056 (call_function_by_hand, push_dummy_code): Ditto.
10057
abf9b42d
AC
100582004-02-22 Andrew Cagney <cagney@redhat.com>
10059
10060 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10061 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10062 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10063 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10064 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10065 call_dummy_location to ON_STACK.
10066
10fc94a4
MK
100672004-02-22 Mark Kettenis <kettenis@gnu.org>
10068
51433e4b
MK
10069 * x86-64-linux-tdep.c: Tweak comment.
10070 (amd64_linux_supply_gregset): Renamed from
10071 x86_64_linux_supply_gresget.
10072 (amd64_linux_fill_gregset): Renamed from
10073 x86_64_linux_fill_gregset.
10074 (fetch_core_registers): Adjust for renamed functions.
10075 (amd64_core_fns): Renamed from x86_64_core_fns.
10076 (amd64_linux_sigtramp_start): Renamed from
10077 x86_64_linux_sigtramp_start.
10078 (amd64_linux_pc_in_sigtramp): Renamed from
10079 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10080 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10081 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10082 (amd64_linux_sigcontext_addr): Renamed from
10083 x86_64_linux_sigcontext_addr.
10084 (amd64_linux_sc_reg_offset): Renamed from
10085 x86_64_linux_sc_reg_offset.
10086 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10087 Adjust for renamed functions and variables.
10088 (_initialize_amd64_linux_tdep): Renamed from
10089 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10090 variables.
10091 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10092 Adjust for renamed functions.
10093
430eaf2e
MK
10094 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10095 from x86_64_linux_gregset64_reg_offset.
10096 (amd64_linux_gregset32_reg_offset): Rename from
10097 x86_64_linux_gregset64_reg_offset.
10098 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10099 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10100 (amd64_linux_dr_set_control): Renamed from
10101 x86_64_linux_dr_set_control. Adjust for renamed functions.
10102 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10103 Adjust for renamed functions.
10104 (amd64_linux_dr_reset_addr): Renamed from
10105 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10106 (amd64_linux_dr_get_status): Renamed from
10107 x86_64_linux_dr_get_status. Adjust for renamed functions.
10108 (_initialize_amd64_linux_nat): Renamed from
10109 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10110 functions.
10111 * config/i386/nm-x86-64linux.h: Update copyright year.
10112 Adjust for renamed functions.
10113
10fc94a4
MK
10114 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10115 amd64fbsd_sigtramp_start.
10116 (amd64fbsd_sigtramp_end_addr): Renamed from
10117 amd64fbsd_sigtramp_end.
10118 (amd64fbsd_init_abi): Adjust for renamed variables.
10119 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10120 variables.
10121 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10122 amd64fbsd_sigtramp_start.
10123 (amd64fbsd_sigtramp_end_addr): Renamed from
10124 amd64fbsd_sigtramp_end.
10125
343af405
AC
101262004-02-22 Andrew Cagney <cagney@redhat.com>
10127
537987fc
AC
10128 * hppa-tdep.c (hppa32_return_value): New function.
10129 (hppa64_return_value): New function.
10130 (hppa_gdbarch_init): Set return_value; keep disabled.
10131
fad850b2
AC
10132 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10133 struct-return and inferior function call methods.
10134
26d08f08
AC
10135 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10136 "frame-base.h".
10137 (struct hppa_frame_cache): Define.
10138 (hppa_frame_cache, hppa_frame_this_id): New functions.
10139 (hppa_frame_prev_register): New function.
10140 (hppa_frame_unwind, hppa_frame_base): New variables.
10141 (hppa_frame_unwind_sniffer): New function.
10142 (hppa_frame_base_address, hppa_unwind_pc): New function.
10143 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10144 sniffer, and frame base sniffer; keep disabled.
10145 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10146 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10147
e7d7bd65
AC
10148 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10149 to predicates for "seriously old code".
10150
e963316f
AC
10151 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10152 runtime if(0).
10153
56132691
AC
10154 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10155 unsigned.
10156 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 10157
343af405
AC
10158 * config/pa/tm-hppa.h: Update copyright.
10159 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10160 (deprecated_init_frame_pc_default): Delete declaration.
10161 (hppa_frame_init_saved_regs): Delete declaration.
10162 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10163 * hppa-tdep.c: Include "arch-utils.h".
10164 (hppa_gdbarch_init): Set deprecated init_frame_pc
10165 and deprecated frame_init_saved_regs.
10166 (hppa_frame_init_saved_regs): Make static.
10167
f5859b4d
MK
101682004-02-22 Mark Kettenis <kettenis@gnu.org>
10169
86f6f8e7 10170 Remove old 386BSD support.
cf7c5c23 10171 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
10172 * configure.host: Remove i[34567]86-*-bsd*.
10173 * configure.tgt: Remove i[34567]86-*-bsd*.
10174 * i386b-nat.c: Removed.
10175 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
10176 (i386b-nat.o): Remove dependencies.
10177
86f6f8e7
MK
10178 * config/i386/i386bsd.mh: Removed.
10179 * config/i386/i386bsd.mt: Removed.
10180 * config/i386/nm-i386bsd.h: Removed.
10181 * config/i386/tm-i386bsd.h: Removed.
10182 * config/i386/xm-i386bsd.h: Removed.
10183
971218cd
MK
10184 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10185
7e654c37
MK
10186 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10187 (amd64fbsd_init_abi): Set link map offsets.
10188 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10189 (amd64nbsd_init_abi): Set link map offsets.
10190 * amd64obsd-tdep.c: Include "solib-svr4.h".
10191 (amd64obsd_init_abi): Set link map offsets.
10192 * i386fbsd-tdep.c: Include "solib-svr4.h".
10193 (i386fbsd_init_abi): Set link map offsets.
10194 * i386nbsd-tdep.c: Include "solib-svr4.h".
10195 (i386nbsdelf_init_abi): Set link map offsets.
10196 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10197 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10198 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10199 solib-legacy.o and core-aout.o. Reformat.
10200 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10201 solib-svr4.o, solib-legacy.o. Reformat.
10202 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10203 * config/i386/nbsdelf.mh: Reformat.
10204 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10205 solib-svr4.o, solib-legacy.o and corelow.o.
10206 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10207 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10208 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10209 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10210 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10211 (TM_FILE): Set to tm-fbsd.h.
10212 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10213 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10214 solib-svr4.o.
10215 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10216 solib-svr4.o.
10217 (TM_FILE): Set to nm-nbsd.h.
10218 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10219 Simplify shared library support. Don't include "elf/common.h".
10220 (SVR4_SHARED_LIBS): Don't define.
10221 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10222 "solib.h".
10223 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10224 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10225 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10226 Don't include "i386/tm-i386.h". Include "solib.h".
10227 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10228 Don't include "i386/tm-i386.h".
10229 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10230 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10231 Include "i386/xm-i386.h".
10232 (HOST_LONG_DOUBLE_FORMAT): Remove.
10233
5d93ae8c
MK
10234 Fix OpenBSD/i386 sigtramp recognition.
10235 * i386-tdep.h: Update copyright year.
10236 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10237 (i386bsd_sigtramp_end): New prototypes.
10238 (i386fbsd_sigtramp_start_addr): Renamed from
10239 i386fbsd_sigtramp_start.
10240 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10241 (i386obsd_sigtramp_start_addr): Renamed from
10242 i386obsd_sigtramp_start.
10243 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10244 * i386bsd-tdep.c: Update copyright year.
10245 (i386bsd_pc_in_sigtramp): Make public.
10246 * i386fbsd-nat.c: Update copyright year.
10247 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10248 * i386fbsd-tdep.c: Update copyright year.
10249 (i386fbsd_sigtramp_start_addr): Renamed from
10250 i386fbsd_sigtramp_start.
10251 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10252 (i386fbsdaout_init_abi): Adjust for renamed variables.
10253 * i386obsd-nat.c: Update copyright year.
10254 (_initialize_i386obsd_nat): Adjust for renamed variables.
10255 * i386obsd-tdep.c: Include "target.h".
10256 (i386obsd_page_size): New variable.
10257 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10258 (i386obsd_sigtramp_end): New functions.
10259 (i386obsd_sigtramp_start_addr): Renamed from
10260 i386obsd_sigtramp_start.
10261 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10262 (i386obsd_init_abi): Adjust for renamed variables. Set
10263 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10264 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10265
84d04465
MK
10266 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10267 trampoline change in OpenBSD kernel.
10268
b053aceb
MK
10269 * amd64-nat.c: Update copyright year.
10270 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10271 architecture from REGCACHE.
10272
f5859b4d
MK
10273 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10274 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10275
e4bbbda8
MK
102762004-02-21 Mark Kettenis <kettenis@gnu.org>
10277
ba361932
MK
10278 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10279 i[34567]86-*-openbsd3.[0-3].
10280 * config/i386/obsdaout.mh: New file.
10281
d3e48264
MK
10282 * config/i386/obsd.mh (MH_FLAGS): Remove.
10283
60a6eeb6
MK
10284 Fix PR build/1549.
10285 * i386obsd-tdep.c: Update copyright years. Include
10286 "solib-svr4.h".
10287 (i386obsd_init_abi): Don't set regset_from_core_section here.
10288 (i386obsd_aout_init_abi): New function. Set
10289 regset_from_core_section here.
10290 (i386obsd_elf_init_abi): New function.
10291 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10292 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10293 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10294 (TM_FILE): Set to tm-nbsd.h.
10295
10296 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10297 solib-sunos.o.
10298
e4bbbda8
MK
10299 * solib-svr4.h: Update copyright year.
10300 (svr4_ilp32_fetch_link_map_offsets)
10301 (svr4_lp64_fetch_link_map_offsets): New prototype.
10302 * solib-svr4.c: Update copyright year.
10303 (svr4_ilp32_fetch_link_map_offsets)
10304 (svr4_lp64_fetch_link_map_offsets): New function.
10305
f6fe98ef
DJ
103062004-02-20 Daniel Jacobowitz <drow@mvista.com>
10307
10308 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10309 to the partial symbol table.
10310
589ca796
JB
103112004-02-20 J. brobecker <brobecker@gnat.com>
10312
10313 * PROBLEMS: Add description of problem documented under gdb/1560.
10314
2031c21a
MK
103152004-02-20 Mark Kettenis <kettenis@gnu.org>
10316
30b344b1
MK
10317 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10318 comments.
10319 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10320 functions.
10321 (amd64obsd_init_abi): Reorder initializations. Use
10322 amd64obsd_r_reg_offset to initialize the general-purpose register
10323 set details. Set regset_from_core_section.
10324 (_initialize_amd64obsd_tdep): Rename from
10325 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10326 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10327 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10328
2031c21a
MK
10329 * NEWS (New native configurations): Mention OpenBSD/alpha.
10330 * configure.tgt: Add alpha*-*-openbsd*.
10331 * configure.host: Add alpha*-*-openbsd*.
10332 * alphanbsd-tdep.c: Update copyright year.
10333 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10334
42471775
AC
103352004-02-20 Andrew Cagney <cagney@redhat.com>
10336
10337 Fix PR tdep/1372.
10338 * configure.tgt: Delete target "none-*-*".
10339 * configure.host: Delete host "none-*-*".
10340 * config/none/none.mh: Delete file.
10341 * config/none/none.mt: Delete file.
10342 * config/none/xm-none.h: Delete file.
10343 * config/none/tm-none.h: Delete file.
10344 * config/none/nm-none.h: Delete file.
10345
960ccd7d
FF
103462004-02-19 Fred Fish <fnf@redhat.com>
10347
10348 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10349 cache->uses_fp prior to setting it.
10350
5f883edd
FF
103512004-02-19 Fred Fish <fnf@redhat.com>
10352
10353 Fix for PR breakpoint/1558.
10354 * sh-tdep.c (IS_JSR): New macro.
10355 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10356
f98c22d5
JB
103572004-02-19 Jim Blandy <jimb@redhat.com>
10358
10359 * findvar.c (value_from_register): Doc fix.
10360
95051d27
JJ
103612004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10362
10363 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10364 type being greater than sizeof of host's LONGEST. Always use
10365 unpack_long() unless format 'f' chosen.
10366
ccefbec3
EZ
103672004-02-19 Joel Brobecker <brobecker@gnat.com>
10368
10369 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 10370
ccefbec3
EZ
10371 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10372 contains a symbol wich is the best, non-exact match for the given
10373 pc. Update comments.
10374
103752004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10376
2ede629f
EZ
10377 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10378 macro, which was part of the now removed Mach 3 port.
10379 * utils.c (request_quit): Ditto.
10380
567ee972
MK
103812004-02-18 Mark Kettenis <kettenis@gnu.org>
10382
10383 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10384 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10385
50cca7bb
MK
103862004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10387
10388 Committed by Mark Kettenis <kettenis@gnu.org>.
10389
10390 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10391 Define.
10392
226361c4
AC
103932004-02-18 Andrew Cagney <cagney@redhat.com>
10394
10395 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10396 CONFIG_INSTALL and CONFIG_UNINSTALL.
10397 * configure: Re-generate.
10398 * interps.h (INTERP_TUI): Define.
10399 * Makefile.in: Update dependencies.
10400 (TUI): New macro.
10401 (tui-main.o): Specify dependencies.
10402 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10403 * tui/tui-main.c: New file.
10404
49cfa46f
MK
104052004-02-18 Mark Kettenis <kettenis@gnu.org>
10406
e2879ccb
MK
10407 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10408 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10409 dependencies.
10410 * configure.host: Add x86_64-*-openbsd*.
10411 * configure.tgt: Add x86_64-*-openbsd*.
10412 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10413
c43f4bec
MK
10414 * tui/tui.c: Don't include <malloc.h>.
10415
09ae75b6
MK
10416 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10417 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10418 amd64nbsd-tdep.c.
10419
49cfa46f 10420 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 10421 static. Remove extraneous whitespace.
49cfa46f
MK
10422 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10423 static.
10424
05957fdb
JB
104252004-02-17 Jim Blandy <jimb@redhat.com>
10426
10427 * findvar.c (value_from_register): Doc fix.
10428
d0f54f9d
JB
104292004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10430
10431 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 10432
8a1dac83 10433 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
10434 CORE_ADDR as type for selectors. Correct types for GNU run time
10435 message lookup function to use double indirection.
10436 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10437 * objc-lang.h (lookup_child_selector): Adapt prototype.
10438
9cbd5950
JB
10439 * s390-nat.c (SUBOFF): New macro.
10440 (supply_gregset, fill_gregset): Use it to handle debugging
10441 of 32-bit exectuables running under a 64-bit kernel.
10442 * s390-tdep.c: Include "solib-svr4.h".
10443 (s390_svr4_fetch_link_map_offset): New function.
10444 (s390x_svr_fetch_link_map_offset): Likewise.
10445 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10446 * Makefile.in (s390-tdep.o): Update dependencies.
10447
a8c99f38
JB
10448 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10449 "frame-unwind.h".
10450 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10451 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10452 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10453 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10454 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10455 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 10456 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
10457 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10458 (struct frame_extra_info): Remove.
10459 (s390_memset_extra_info): Remove.
f73b1eff
JB
10460 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10461 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10462 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
10463 (is_rse): Renamed to ...
10464 (is_rsy): ... this. Support long displacements.
10465 (is_rxe): Renamed to ...
10466 (is_rxy): ... this. Support long displacements.
10467 (compute_x_addr): Support long displacements.
10468 (struct s390_prologue_data): New data type.
10469 (s390_on_stack): Change API to use struct s390_prologue_data.
10470 (s390_store): Reimplement.
10471 (s390_load): New function.
10472 (s390_get_signal_frame_info): Remove.
10473 (s390_get_frame_info): Remove, replace by ...
10474 (s390_analyze_prolog): ... this new function.
10475 (s390_check_function_end): Remove.
10476 (s390_function_start): Remove.
10477 (s390_frameless_function_invokation): Remove.
10478 (s390_is_sigreturn): Remove.
10479 (s390_init_frame_pc_first): Remove.
10480 (s390_init_frame_extra_info): Remove.
10481 (s390_frame_init_saved_regs): Remove.
10482 (s390_frame_saved_pc_nofix): Remove.
10483 (s390_frame_saved_pc): Remove.
10484 (s390_frame_chain): Remove.
10485 (s390_fp_regnum, s390_read_fp): Remove.
10486 (s390_pop_frame_regular, s390_pop_frame): Remove.
10487 (s390_saved_pc_after_call): Remove.
10488 (s390_skip_prologue): Reimplement.
10489 (s390_in_function_epilogue_p): Support long displacements.
10490 (struct s390_unwind_cache): New data structure.
10491 (s390_frame_unwind_cache): New function.
10492 (s390_prologue_frame_unwind_cache): Likewise.
10493 (s390_backchain_frame_unwind_cache): Likewise.
10494 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10495 (s390_frame_unwind): Define.
10496 (s390_frame_sniffer): New function.
10497 (struct s390_pltstub_unwind_cache): New data structure.
10498 (s390_pltstub_frame_unwind_cache): New function.
10499 (s390_pltstub_frame_this_id): Likewise.
10500 (s390_pltstub_frame_prev_register): Likewise.
10501 (s390_pltstub_frame_unwind): Define.
10502 (s390_pltstub_frame_sniffer): New function.
10503 (struct s390_sigtramp_unwind_cache): New data structure.
10504 (s390_sigtramp_frame_unwind_cache): New function.
10505 (s390_sigtramp_frame_this_id): Likewise.
10506 (s390_sigtramp_frame_prev_register): Likewise.
10507 (s390_sigtramp_frame_unwind): Define.
10508 (s390_sigtramp_frame_sniffer): New function.
10509 (s390_frame_base_address, s390_local_base_address): New functions.
10510 (s390_frame_base): Define.
10511 (s390_unwind_pc, s390_unwind_sp): New function.
10512 (s390_push_dummy_call): Use new frame base location.
10513 (s390_unwind_dummy_id): Likewise.
10514 (s390_gdbarch_init): Remove calls to:
10515 set_gdbarch_frameless_function_invocation,
10516 set_gdbarch_deprecated_init_frame_pc,
10517 set_gdbarch_deprecated_frame_chain,
10518 set_gdbarch_deprecated_frame_init_saved_regs,
10519 set_gdbarch_deprecated_pop_frame,
10520 set_gdbarch_deprecated_init_extra_frame_info,
10521 set_gdbarch_deprecated_init_frame_pc_first,
10522 set_gdbarch_deprecated_target_read_fp,
10523 set_gdbarch_deprecated_frame_saved_pc,
10524 set_gdbarch_deprecated_saved_pc_after_call,
10525 set_gdbarch_deprecated_fp_regnum.
10526 Add calls to:
10527 set_gdbarch_in_solib_call_trampoline,
10528 frame_unwind_append_sniffer,
10529 frame_base_set_default,
10530 set_gdbarch_unwind_pc,
10531 set_gdbarch_unwind_sp.
10532 * Makefile.in (s390-tdep.o): Update dependencies.
10533
b0cf273e
JB
10534 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10535 (S390_STACK_FRAME_OVERHEAD): Remove.
10536 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10537 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10538 (s390_promote_integer_argument): Remove.
10539 (s390_cannot_extract_struct_value_address): Remove.
10540 (s390_use_struct_convention, s390_store_struct_return): Remove.
10541 (s390_extract_return_value, s390_store_return_value): Remove.
10542 (s390_return_value_convention, s390_return_value): New functions.
10543 (is_float_singleton): Handle typedefs.
8a1dac83 10544 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
10545 Remove, replace by ...
10546 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10547 s390_function_arg_integer): ... these new functions.
10548 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10549 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10550 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10551 Fill in tdep->abi.
10552 Remove calls to:
10553 set_gdbarch_deprecated_store_struct_return,
10554 set_gdbarch_deprecated_extract_return_value,
10555 set_gdbarch_deprecated_store_return_value,
10556 set_gdbarch_use_struct_convention,
10557 set_gdbarch_extract_struct_value_address,
10558 set_gdbarch_deprecated_pc_in_call_dummy,
10559 set_gdbarch_deprecated_push_arguments,
10560 set_gdbarch_deprecated_save_dummy_frame_tos,
10561 set_gdbarch_deprecated_push_return_address,
10562 set_gdbarch_deprecated_sizeof_call_dummy_words,
10563 set_gdbarch_deprecated_call_dummy_words,
10564 set_gdbarch_deprecated_dummy_write_sp.
10565 Add calls to:
10566 set_gdbarch_push_dummy_call,
10567 set_gdbarch_unwind_dummy_id,
10568 set_gdbarch_return_value.
8a1dac83 10569
e1457d83
JB
10570 * config/s390/nm-linux.h: Update comments.
10571 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10572 (STOPPED_BY_WATCHPOINT): Redefine.
10573 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10574 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10575 (s390_stopped_by_watchpoint): Likewise.
10576 (watch_area_cnt): Remove.
10577 * s390-nat.c: Update comments.
10578 (watch_area): Remove typedef.
10579 Global replace watch_area by struct watch_area.
10580 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 10581 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
10582 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10583 (s390_fix_watch_points): Remove pid argument,
10584 use s390_inferior_tid. Recompute area spanned by watchpoints.
10585 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10586 argument. Reimplement.
10587
d0f54f9d
JB
10588 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10589 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10590 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 10591 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
10592 core-regset.o.
10593 * config/s390/s390x.mt: Remove.
10594 * config/s390/tm-s390.h: Remove.
10595 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10596 (TARGET_ELF64): Remove.
10597 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10598 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10599 s390*-*-* case; always set gdb_target to s390.
10600 * regformats/reg-s390.dat: Remove control registers.
10601 * regformats/reg-s390x.dat: Likewise.
10602 * s390-tdep.h: New file.
8a1dac83 10603 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
10604 Include "inferior.h" and "s390-tdep.h".
10605 Remove private definition of offsetof.
10606 (s390_register_u_addr): Remove.
10607 (regmap_gregset, regmap_fpregset): Define.
10608 (supply_gregset, fill_gregset): Reimplement.
10609 (supply_fpregset, fill_fpregset): Likewise.
10610 (s390_inferior_tid): New function.
10611 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10612 (fetch_inferior_registers, store_inferior_registers): Likewise.
10613 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10614 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10615 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10616 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10617 (struct gdbarch_tdep): Define.
10618 (struct s390_register_info): Define.
10619 (s390_register_info): New variable.
10620 (s390_register_name): Reimplement.
10621 (s390_register_type): New function.
10622 (s390_register_raw_size, s390x_register_raw_size): Remove.
10623 (s390_cannot_fetch_register): Remove.
10624 (s390_register_byte): Remove.
10625 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10626 (s390_dwarf_regmap): New variable.
10627 (s390_dwarf_reg_to_regnum): New function.
10628 (s390_stab_reg_to_regnum): Remove.
10629 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10630 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10631 (s390_convert_register_p): Likewise.
10632 (s390_register_to_value, s390_value_to_register): Likewise.
10633 (s390_register_reggroup_p): Likewise.
10634 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10635 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10636 (s390_supply_regset, s390_regset_from_core_section): New functions.
10637 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10638 (S390_FPR_SIZE): Likewise.
10639 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10640 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10641 (S390_NUM_GPRS): Move here from tm-s390.h.
10642 (S390_NUM_FPRS): Likewise.
10643 (s390_in_function_epilogue_p): New function.
10644 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10645 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10646 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10647 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10648 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10649 Remove calls to:
10650 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
10651 set_gdbarch_deprecated_max_register_virtual_size,
10652 set_gdbarch_deprecated_register_byte,
d0f54f9d 10653 set_gdbarch_cannot_fetch_register,
8a1dac83 10654 set_gdbarch_cannot_store_register,
d0f54f9d
JB
10655 set_gdbarch_deprecated_register_size,
10656 set_gdbarch_deprecated_register_raw_size,
10657 set_gdbarch_deprecated_register_virtual_size,
10658 set_gdbarch_deprecated_register_virtual_type,
10659 set_gdbarch_deprecated_register_bytes.
10660 Add calls to:
10661 set_gdbarch_num_pseudo_regs,
10662 set_gdbarch_register_type,
10663 set_gdbarch_convert_register_p,
10664 set_gdbarch_register_to_value,
10665 set_gdbarch_value_to_register,
10666 set_gdbarch_register_reggroup_p,
10667 set_gdbarch_regset_from_core_section,
10668 set_gdbarch_pseudo_register_read,
10669 set_gdbarch_pseudo_register_write,
10670 set_gdbarch_in_function_epilogue_p.
10671 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10672 (s390_tdep_h): New variable.
10673
8cfe231d
JB
106742004-02-17 Jim Blandy <jimb@redhat.com>
10675
4589a601
JB
10676 * findvar.c (value_from_register): If the type has no length, just
10677 return an acceptable value --- don't report an internal error.
10678
8cfe231d
JB
10679 * stabsread.c (read_type): If we find any type numbers that are
10680 forward references, complain if the references aren't resolved by
10681 the time we're finished reading.
10682 (cleanup_undefined_types): Make error message more appropriate for
10683 a complaint.
10684
5bf0017e
EZ
106852004-02-17 Elena Zannoni <ezannoni@redhat.com>
10686
9d62932d
EZ
10687 * Makefile.in (defs_h): Remove dependency on progress_h.
10688 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10689 progress.h.
10690 * main.c (captured_main): Delete use of START_PROGRESS and
10691 END_PROGRESS.
10692
106932004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10694
5bf0017e
EZ
10695 * objfiles.c (terminate_minimal_symbol_table): Add back
10696 initialization of MSYMBOL_TYPE.
10697
9fc9f5e2
AC
106982004-02-17 David Mosberger <davidm@hpl.hp.com>
10699
10700 Committed by Andrew Cagney.
10701 * Makefile.in (ia64_tdep_h): New macro.
10702 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10703 (ia64-tdep.o): Likewise.
10704 * ia64-tdep.h: New file.
10705 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10706 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10707 (ia64_aix_sigcontext_register_address): Likewise.
10708 (ia64_linux_getunwind_table): Delete declaration.
10709 * ia64-linux-tdep.c: Likewise.
10710
76cd2bd9
CV
107112004-02-17 Corinna Vinschen <vinschen@redhat.com>
10712
10713 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10714 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10715 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10716
634aa483
AC
107172004-02-17 Andrew Cagney <cagney@redhat.com>
10718
10719 * symtab.c (skip_prologue_using_sal): New function.
10720 * symtab.h (skip_prologue_using_sal): Declare.
10721 * frv-tdep.c: Include "symtab.h".
10722 (skip_prologue_using_sal): Delete function.
10723 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10724 * rs6000-tdep.c (refine_prologue_limit): Mention
10725 skip_prologue_using_sal.
10726 * ia64-tdep.c (refine_prologue_limit): Ditto.
10727 * Makefile.in: Update dependencies.
10728
107292004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 10730
39ce7b3f
AC
10731 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10732 START_INFERIOR_TRAPS_EXPECTED.
10733 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10734 START_INFERIOR_TRAPS_EXPECTED.
10735 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10736 Delete macro.
10737 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10738 macro, moved to "nm-osf.h". Update copyright.
10739 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10740 update copyright.
10741
19772a2c
AC
10742 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10743 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10744 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10745 frameless_look_for_prologue.
10746 * frame.h (legacy_frameless_look_for_prologue): Rename
10747 frameless_look_for_prologue.
10748 * gdbarch.h, gdbarch.c: Re-generate.
10749 * sh64-tdep.c (sh64_gdbarch_init): Update.
10750 * sh-tdep.c (sh_gdbarch_init): Update.
10751 * s390-tdep.c (s390_gdbarch_init): Update.
10752 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10753 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10754 * m68k-tdep.c (m68k_gdbarch_init): Update.
10755 (delta68_frame_args_address): Update.
10756 * m32r-tdep.c (m32r_gdbarch_init): Update.
10757 * hppa-tdep.c (hppa_gdbarch_init): Update.
10758 * h8300-tdep.c (h8300_gdbarch_init): Update.
10759 * frv-tdep.c (frv_gdbarch_init): Update.
10760 (frv_frameless_function_invocation): Update.
10761 * cris-tdep.c (cris_gdbarch_init): Update.
10762 (cris_frameless_function_invocation): Update.
10763 * avr-tdep.c (avr_gdbarch_init): Update.
10764 * arm-tdep.c (arm_gdbarch_init): Update.
10765 * stack.c (frame_info): Update, call predicate.
10766 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10767 * frame.c (legacy_get_prev_frame): Update, call predicate..
10768 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10769 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10770 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10771 invocation.
10772 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10773 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10774 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
10775
10776 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10777 function.
10778
7dcaac91
DJ
107792004-02-16 Daniel Jacobowitz <drow@mvista.com>
10780
10781 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10782 initializations.
10783
88289b6e
AC
107842004-02-16 Andrew Cagney <cagney@redhat.com>
10785
10786 * tui/tui-windata.c: Include "gdb_string.h".
10787 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10788 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10789 * Makefile.in: Update dependencies.
10790
9f976b41
DJ
107912004-02-16 Daniel Jacobowitz <drow@mvista.com>
10792
10793 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10794 * infrun.c: Include "gdb_assert.h".
10795 (singlestep_ptid, saved_singlestep_ptid)
10796 (stepping_past_singlestep_breakpoint): New variables.
10797 (resume): Set singlestep_ptid. Check for singlestep thread
10798 hop.
10799 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10800 (handle_inferior_event): Handle singlestep thread hop.
10801
c324d747
AC
108022004-02-16 Andrew Cagney <cagney@redhat.com>
10803
f090b9b1
AC
10804 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10805 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10806 (dwarf2_frame_init_reg): Ditto.
10807
fd33e6cb
AC
10808 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10809 suggested by Joshua Neuheisel
10810
c324d747
AC
10811 * configure.in: Always check for curses, including pdcurses.
10812 Warn, instead of error, when no curses are found. Enable TUI when
10813 curses is available.
10814 * configure: Re-generate.
10815
b66ba949
CV
108162004-02-16 Corinna Vinschen <vinschen@redhat.com>
10817
10818 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10819 sh_sh4_register_convert_to_virtual.
10820 (sh_register_convert_to_raw): Rename from
10821 sh_sh4_register_convert_to_raw.
10822 (sh_pseudo_register_read): Accomodate above name change.
10823 (sh_pseudo_register_write): Ditto.
10824
b58cbbf2
CV
108252004-02-16 Corinna Vinschen <vinschen@redhat.com>
10826
10827 * sh-tdep.c (sh_generic_register_name): Remove.
10828 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10829
5929a910
AC
108302004-02-15 Andrew Cagney <cagney@redhat.com>
10831
4566dfcf
AC
10832 * configure.in (build_warnings): Add -Wunused-function.
10833 * configure: Re-generate.
10834
db11ed55
AC
10835 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10836 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10837
46ac7a5d
AC
10838 * procfs.c (procfs_init_inferior): Assume that
10839 START_INFERIOR_TRAPS_EXPECTED is defined.
10840 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10841 * config/ns32k/tm-nbsd.h: Delete file,
10842 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10843
ba801595
AC
10844 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10845 * config/vax/tm-vax.h: Delete file.
10846
5929a910
AC
10847 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10848 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10849 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10850 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10851 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10852 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10853 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10854
8f22cb90
MK
108552004-02-15 Mark Kettenis <kettenis@gnu.org>
10856
10857 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10858 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10859 (struct dwarf2_frame_ops): New.
10860 (dwarf2_frame_default_init_reg): New function, based on
10861 dwarf2_frame_init_reg.
10862 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10863 (dwarf2_frame_init_reg): Call architecture-specific function.
10864 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10865 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10866 instead of dwarf2_frame_data.
10867 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10868 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10869
8132723e
AC
108702004-02-15 Andrew Cagney <cagney@redhat.com>
10871
046a4708
AC
10872 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10873 register_gdbarch_swap.
10874 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10875 * f-lang.c (_initialize_f_language): Update, use
10876 DEPRECATED_REGISTER_GDBARCH_SWAP.
10877 * remote.c (_initialize_remote): Ditto.
10878 * regcache.c (_initialize_regcache): Ditto.
10879 * parse.c (_initialize_parse): Ditto.
10880 * infrun.c (_initialize_infrun): Ditto.
10881 * mi/mi-main.c (_initialize_mi_main): Ditto.
10882 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 10883
549c1eea
AC
10884 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10885 poking .cacheable directly.
10886 * symfile.c (symfile_bfd_open): Ditto.
10887
0c0b39de
AC
10888 * Makefile.in: Update all dependencies.
10889
8132723e
AC
10890 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10891 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10892 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10893 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10894 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 10895
b9d26eb9
AC
108962004-02-14 Andrew Cagney <cagney@redhat.com>
10897
8e1f669a
AC
10898 * arch-utils.c (legacy_convert_register_p): Check
10899 DEPRECATED_REGISTER_CONVERTIBLE_P.
10900 * findvar.c (value_of_register): Ditto.
10901
cd0bfa36
AC
10902 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10903 * gdbarch.h, gdbarch.c: Re-generate.
10904 * arch-utils.c (deprecated_register_convertible_not): Delete.
10905 * arch-utils.h (deprecated_register_convertible_not): Delete.
10906 * mi/mi-main.c (get_register): Update. Update copyright.
10907 * infcmd.c (default_print_registers_info): Update.
10908
b9d26eb9
AC
10909 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10910 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10911 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 10912 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
10913 * frame.c (deprecated_get_next_frame_hack): Delete function.
10914 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10915 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10916 Update.
10917 * infcall.c (call_function_by_hand): Update.
10918
9ab9195f
EZ
109192004-02-14 Elena Zannoni <ezannoni@redhat.com>
10920
10921 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 10922 from here...
9ab9195f
EZ
10923 * objfiles.c (init_entry_point_info, entry_point_address):..to
10924 here.
10925 * symfile.h (init_entry_point_info, entry_point_address): Remove
10926 prototypes.
10927 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 10928 prototypes.
9ab9195f
EZ
10929 * cris-tdep.c: Remove include of symfile.h. Add include of
10930 objfiles.h.
10931 * infcall.c: Ditto.
10932 * mcore-tdep.c: Ditto.
10933 * mn10300-tdep.c: Ditto.
10934 * sh64-tdep.c: Ditto.
10935 * v850-tdep.c: Ditto.
10936 * arm-tdep.c: Remove include of symfile.h.
10937 * blockframe.c: Ditto.
10938 * coffread.c: Ditto.
10939 * dbxread.c: Ditto.
10940 * dwarf2read.c: Ditto.
10941 * dwarfread.c: Ditto.
8a1dac83 10942 * frv-tdep.c: Ditto.
9ab9195f
EZ
10943 * ia64-tdep.c: Ditto.
10944 * mdebugread.c: Ditto.
10945 * mipsread.c: Ditto.
8a1dac83 10946 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
10947 * s390-tdep.c: Ditto.
10948 * sh-tdep.c: Ditto.
8a1dac83 10949 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
10950 * gdbarch.sh: Remove include of symfile.h.
10951 * gdbarch.c: Regenerate.
10952 * solib-irix.c (enable_break): Use entry_point_address().
10953 Add comment about include file.
10954 * xcoffread.c: Add comment about include file.
8a1dac83
RM
10955 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10956 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10957 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10958 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
10959 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10960
c4c5b7ba
AC
109612004-02-13 Andrew Cagney <cagney@redhat.com>
10962
10963 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10964 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10965 copyright.
10966 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10967
3e7879de
FF
109682004-02-12 Fred Fish <fnf@redhat.com>
10969
10970 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10971 set_gdbarch_store_return_value.
10972
6a7760b6
AC
109732004-02-12 Andrew Cagney <cagney@redhat.com>
10974
10975 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10976 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10977 (interrupt_query): Ditto.
10978 (ofunc): Delete unused variable.
10979 * cris-tdep.c (cris_abi): Delete unused function.
10980 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10981 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10982 (cris_get_asr_quick_shift_steps): Ditto.
10983 (cris_skip_prologue_frameless_p): Ditto.
10984 * arm-tdep.c (arm_push_return_address): Delete unused function.
10985 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10986 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10987 * s390-tdep.c (s390_function_start): Delete unused function.
10988
31687c3c
AC
109892004-02-12 Andrew Cagney <cagney@redhat.com>
10990
10991 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10992 gdbarch.h, gdbarch.c: Re-generate.
10993 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10994 to generic_prologue_frameless_p.
10995 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10996 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10997
6de918a6
DJ
109982004-02-11 Daniel Jacobowitz <drow@mvista.com>
10999
11000 * mips-linux-tdep.c: Include "frame.h".
11001 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11002 (mips_linux_skip_resolver): New functions.
11003 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11004 and set_gdbarch_in_solib_call_trampoline.
11005 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11006 to after set_gdbarch_in_solib_return_trampoline. Only set the
11007 solib hooks to mips16 functions if the OS ABI is unknown.
11008 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11009 including "config/tm-linux.h".
11010 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11011 * Makefile.in (mips-linux-tdep.o): Update.
11012
87b3ede8
DC
110132004-02-11 David Carlton <carlton@kealia.com>
11014
11015 * linespec.c (decode_compound): Only look for a class symbol when
11016 considering all but the rightmost component.
11017
5979bc46
AC
110182004-02-11 Andrew Cagney <cagney@redhat.com>
11019
11020 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11021 abi code are are separatly grouped.
11022
5867a2fb
AC
110232004-02-11 Andrew Cagney <cagney@redhat.com>
11024
11025 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11026 * gdbarch.h, gdbarch.c: Re-generate.
11027 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11028 * v850-tdep.c (v850_gdbarch_init): Update.
11029 * sh64-tdep.c (sh64_gdbarch_init): Update.
11030 * sh-tdep.c (sh_gdbarch_init): Update.
11031 * s390-tdep.c (s390_gdbarch_init): Update.
11032 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11033 * mips-tdep.c (mips_gdbarch_init): Update.
11034 * mcore-tdep.c (mcore_gdbarch_init): Update.
11035 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11036 * m32r-tdep.c (m32r_gdbarch_init): Update.
11037 * ia64-tdep.c (ia64_gdbarch_init): Update.
11038 * hppa-tdep.c (hppa_gdbarch_init): Update.
11039 * h8300-tdep.c (h8300_gdbarch_init): Update.
11040 * frv-tdep.c (frv_gdbarch_init): Update.
11041 * d10v-tdep.c (d10v_gdbarch_init): Update.
11042 * cris-tdep.c (cris_gdbarch_init): Update.
11043 * avr-tdep.c (avr_gdbarch_init): Update.
11044 * arm-tdep.c (arm_gdbarch_init): Update.
11045 * alpha-tdep.c (alpha_gdbarch_init): Update.
11046
026a72f8
CV
110472004-02-11 Corinna Vinschen <vinschen@redhat.com>
11048
11049 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11050 comma.
11051 (sh_sh4al_dsp_register_name): Ditto.
11052
3903d437
AC
110532004-02-10 Andrew Cagney <cagney@redhat.com>
11054
11055 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11056 (mips_init_frame_pc_first): Delete function.
11057 (mips_frame_saved_pc): Delete function.
11058 (mips_frame_chain): Delete function.
11059 (mips_init_extra_frame_info): Delete function.
11060 (mips_xfer_register): Delete unused variable "reg".
11061 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11062 (mips_n32n64_return_value): Delete unused variable "reg".
11063 (mips_n32n64_return_value): Delete unused variable "pos".
11064 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11065 (mips_o32_return_value): Delete unused variable "pos".
11066 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11067 (mips_print_fp_register): Delete unused variable "namelen"
11068 (mips_print_fp_register): Delete unused variable "flt2"
11069 (get_frame_pointer): Delete function.
11070 (cached_proc_desc): Delete static variable.
11071 (mips_pop_frame): Delete function.
11072 (mips_find_saved_regs): Delete function.
11073 (mips_get_saved_register): Delete function.
11074 (mips_saved_pc_after_call): Delete function.
11075 (SIGFRAME_BASE): Delete macro.
11076 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11077 (SIGFRAME_PC_OFF): Delete macro.
11078 (SIGFRAME_REGSAVE_OFF): Delete macro.
11079 (mips_dump_tdep): Do not print deleted macro definitions.
11080
b9fb98bd
AC
110812004-02-10 Andrew Cagney <cagney@redhat.com>
11082
11083 * Makefile.in (SFILES): Remove explictly listed tui files.
11084 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11085
78ced177 110862004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 11087
78ced177
JJ
11088 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11089 to use paddr functions to format ia64 addresses and long values.
11090 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11091 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11092 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11093 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11094 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11095
6a83354a
AC
110962004-02-10 Andrew Cagney <cagney@redhat.com>
11097
11098 * defs.h: Do not include "tui.h".
11099 * gdb_curses.h: New file.
11100 * tui/tui-hooks.h: New file.
11101 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11102 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11103 (tui_initialize_io): Delete declaration.
11104 (tui_initialize_readline: Delete redundant declaration.
11105 (struct tui_point): Delete definition.
11106 * tui/tui-data.h (struct tui_point): Define.
11107 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11108 * utils.c: Include "tui/tui.h".
11109 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11110 * printcmd.c [TUI]: Include "tui/tui.h".
11111 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11112 * tui/tui-command.c: Include "gdb_curses.h".
11113 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11114 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11115 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11116 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11117 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11118 * Makefile.in: Update all dependencies.
11119 (tui_hooks_h, gdb_curses_h): Define.
11120 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11121
997470ef
EZ
111222004-02-10 Elena Zannoni <ezannoni@redhat.com>
11123
11124 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11125 auxf2. Add comments about some other rarely used fields.
11126
4ff2cc4d
AC
111272004-02-10 Andrew Cagney <cagney@redhat.com>
11128
11129 * Makefile.in (init.c): Fix script removing duplicates. Problem
11130 reported by Peter Schauer.
11131
1ab21617
EZ
111322004-02-09 Elena Zannoni <ezannoni@redhat.com>
11133
11134 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11135 obstack_specify_allocation.
11136 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 11137 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
11138 (allocate_rt_common_objfile): Ditto.
11139 * symfile.c (reread_symbols): Ditto.
11140 * gdb_obstack.h: Add comment.
11141
17763fd9
EZ
111422004-02-09 Elena Zannoni <ezannoni@redhat.com>
11143
11144 * linespec.c (decode_line_1, locate_first_half)
11145 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11146 commented out code.
11147
ec5cdd75
DJ
111482004-02-09 Daniel Jacobowitz <drow@mvista.com>
11149
11150 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11151 obstack_free.
11152
43b54b88
AC
111532004-02-09 Andrew Cagney <cagney@redhat.com>
11154
11155 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11156 fails, try find_pc_section. Fix PR c++/1267.
11157 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11158 instead of find_pc_mapped_section.
11159 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11160 not default to the section containing PC. Fix PR symtab/1519.
11161
edfae063
AC
111622004-02-09 Andrew Cagney <cagney@redhat.com>
11163
11164 * Makefile.in (mips-tdep.o): Update dependencies.
11165 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11166 "trad-frame.h".
11167 (mips_unwind_pc): Return the pseudo PC register.
11168 (mips_unwind_dummy_id): New function.
11169 (mips16_fetch_instruction): New function.
11170 (mips32_fetch_instruction): New function.
11171 (struct mips_frame_cache): Define.
11172 (mips_mdebug_frame_cache): New function.
11173 (mips_mdebug_frame_this_id): New function.
11174 (mips_mdebug_frame_prev_register): New function.
11175 (mips_mdebug_frame_unwind): Define.
11176 (mips_mdebug_frame_sniffer): New function.
11177 (mips_mdebug_frame_base_address): New function.
11178 (mips_mdebug_frame_base): Define.
11179 (mips_mdebug_frame_base_sniffer): New function.
11180 (mips_gdbarch_init): Append unwind and base sniffers. Set
11181 unwind_dummy_id.
11182
defc864c
AC
111832004-02-08 Andrew Cagney <cagney@redhat.com>
11184
6764ddad
AC
11185 * frame.c: Print both the register number and name.
11186
defc864c
AC
11187 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11188 and a sed into a single sed. Make .c and .o patterns more robust.
11189 (OBS): Delete.
11190 (INIT_FILES): Replace OBS with COMMON_OBS.
11191 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11192
645d6d10
MK
111932004-02-08 Mark Kettenis <kettenis@gnu.org>
11194
11195 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11196 the PT_WCOOKIE request.
11197
23e3c3fc
AC
111982004-02-08 Andrew Cagney <cagney@redhat.com>
11199
58dfe9ff
AC
11200 * mips-tdep.c (mips_unwind_pc): New function.
11201 (mips_gdbarch_init): Set mips_unwind_pc.
11202
1152e35e
AC
11203 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11204 (get_frame_id): Allow the UNKNOWN_FRAME.
11205 (frame_register_unwind, get_frame_type): Ditto.
11206
31b75dbf
AC
11207 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11208 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11209 unwind_dummy_id indicates a legacy frame.
11210
3483b318
AC
11211 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11212 * configure: Re-generate.
11213
23e3c3fc
AC
11214 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11215 methods.
11216
33f8ca73
AC
112172004-02-08 Andrew Cagney <cagney@redhat.com>
11218
11219 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11220 makefile macro.
11221 * configure: Re-generate.
11222 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11223 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11224 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11225 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11226 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11227 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11228 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11229 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11230 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11231 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11232
6ba8e26f 112332004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 11234
20d286a5
AC
11235 * Makefile.in: Update all dependencies.
11236
d836ee13
AC
11237 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11238 * configure: Re-generate.
11239 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11240 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11241 (COMMON_OBS): Add "main.o" and "annotate.o".
11242 (ANNOTATE_OBS): Delete.
11243 (OBS): Remove ANNOTATE_OBS.
11244 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11245 CONFIG_INITS.
11246 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11247 against CONFIG_OBS and "main.o".
11248 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11249 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11250
d02c80cd
AC
11251 * tui/tui-command.c: Include "gdb_string.h", delete register
11252 attribute, use ISO-C function signatures.
11253 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11254 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11255 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11256 * tui/tui.c: Ditto.
6ba8e26f
AC
11257
11258 * tui/tui-command.c: Change variable and function names to lower
11259 case.
11260 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11261 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11262 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11263 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11264 * tui/tui-winsource.c, tui/tui.c: Ditto.
11265
4a146b47
EZ
112662004-02-07 Elena Zannoni <ezannoni@redhat.com>
11267
11268 * buildsym.c (free_pending_blocks, finish_block)
11269 (record_pending_block, make_blockvector, end_symtab): Replace
11270 symbol_obstack with objfile_obstack.
8a1dac83 11271 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 11272 (coff_read_enum_type): Ditto.
8a1dac83 11273 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 11274 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 11275 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
11276 (dwarf2_symbol_mark_computed): Ditto.
11277 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11278 * elfread.c (elf_symtab_read): Ditto.
11279 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11280 (hpread_read_enum_type, hpread_read_function_type)
11281 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11282 Ditto.
8a1dac83 11283 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 11284 (java_link_class_type): Ditto.
8a1dac83 11285 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
11286 (new_symbol): Ditto.
11287 * minsyms.c (install_minimal_symbols): Ditto.
11288 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11289 (terminate_minimal_symbol_table): Replace symbol_obstack with
11290 objfile_obstack.
11291 (free_objfile): Remove freeing of symbol_obstack.
11292 * objfiles.h: Remove symbol_obstack field.
11293 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11294 objfile_obstack.
11295 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11296 symbol_obstack.
11297 (solib_add_common_symbols): Replace symbol_obstack with
11298 objfile_obstack.
11299 * somsolib.c (som_solib_add): Ditto.
11300 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11301 (common_block_start, common_block_end): Ditto.
11302 * symfile.c (reread_symbols): Remove freeing and init of
11303 symbol_obstack.
11304 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11305 * symfile.h: Update comment.
11306 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11307 stats printing.
11308 * symtab.c (symbol_set_names): Replace symbol_obstack with
11309 objfile_obstack.
11310 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11311 Update comments.
11312 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11313 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11314 objfile_obstack.
11315
6d012f14
AC
113162004-02-07 Andrew Cagney <cagney@redhat.com>
11317
11318 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11319 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11320 fields and variables.
11321 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11322 (m_beInvisible): Delete macro.
11323 * tui/tui-data.h: Fix case case fields and variables.
11324 (m_genWinPtrIsNull): Delete macro.
11325 (tui_win_list): Rename winList.
11326 (TUI_SRC_WIN): Rename srcWin.
11327 (TUI_DISASM_WIN): Rename disassemWin.
11328 (TUI_DATA_WIN): Rename dataWin.
11329 (TUI_CMD_WIN): Rename cmdWin.
11330 (m_genWinPtrNotNull): Delete macro.
11331 (m_winPtrIsNull): Delete macro.
11332 (m_winPtrNotNull): Delete macro.
11333 (tui_win_is_source_type): Replace m_winIsSourceType
11334 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11335 (tui_win_has_locator): Replace m_hasLocator.
11336 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11337 m_setWinHighlightOff.
11338 * tui/tui-data.c: Update references.
11339 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11340 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11341 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11342 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11343 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11344 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11345 * tui/tui-winsource.c, tui/tui.c: Ditto.
11346
7d34766b
MK
113472004-02-07 Mark Kettenis <kettenis@gnu.org>
11348
1c800673
MK
11349 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11350 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11351 StackGhost.
11352
7d34766b
MK
11353 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11354 variable `i6' to `i7'.
11355 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11356
22940a24
AC
113572004-02-07 Andrew Cagney <cagney@redhat.com>
11358
11359 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11360 (TuiPoint, TuiPointPtr): Ditto.
11361 (TuiStatus, TuiStatusPtr): Ditto.
11362 (TuiWinType, TuiWinTypePtr): Ditto.
11363 (struct tui_point): Rename _TuiPoint.
11364 (tui_get_low_disassembly_address): Rename
11365 tuiGetLowDisassemblyAddress.
11366 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11367 (tuiFree): Delete declaration.
11368 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11369 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11370 * tui/tui.c (tuiFree): Delete function.
11371 * cli/cli-cmds.c (disassemble_command): Update references.
11372 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11373 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11374 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11375 * tui/tui-winsource.c: Ditto.
11376
8b92e4d5
EZ
113772004-02-07 Elena Zannoni <ezannoni@redhat.com>
11378
11379 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11380 coffstab_build_psymtabs, elfstab_build_psymtabs)
11381 (stabsect_build_psymtabs): Replace psymbol_obstack with
11382 objfile_obstack.
11383 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11384 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11385 Ditto.
11386 * dwarfread.c (scan_compilation_units): Ditto.
11387 * elfread.c (elfstab_offset_sections): Ditto.
11388 * hppa-tdep.c (read_unwind_info): Ditto.
11389 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11390 (hpread_end_psymtab): Ditto.
11391 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11392 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11393 Ditto.
11394 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 11395 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
11396 (build_objfile_section_table): Ditto.
11397 (allocate_objfile): Remove init of psymbol_obstack.
11398 (free_objfile): Remove freeing of psymbol_obstack.
11399 * objfiles.h (struct objfile): Remove field
11400 psymbol_obstack. Update comments.
11401 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11402 psymbol_obstack with objfile_obstack.
11403 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11404 psymbol_obstack.
11405 * somread.c (som_symfile_offsets, init_import_symbols)
11406 (init_export_symbols): Replace psymbol_obstack with
11407 objfile_obstack.
11408 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11409 * symfile.c (default_symfile_offsets, syms_from_objfile)
11410 (reread_symbols): Remove freeing and init of psymbol_obstack.
11411 (cashier_psymtab): Update comment.
11412 * symmisc.c (print_objfile_statistics): Don't report stats for
11413 psymbol obstack.
11414 * symtab.h (struct general_symbol_info, struct partial_symtab):
11415 Update comments.
11416 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11417 (xcoff_symfile_offsets): Replace psymbol_obstack with
11418 objfile_obstack.
11419
b99607ea
EZ
114202004-02-07 Elena Zannoni <ezannoni@redhat.com>
11421
11422 * objfiles.h (struct objfile): Add objfile_obstack field.
11423 Remove type_obstack field.
11424
11425 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11426 read_structure_scope read_enumeration, new_symbol): Replace
11427 type_obstack with objfile_obstack.
11428 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 11429 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
11430 (lookup_fundamental_type): Ditto.
11431 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
11432 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11433 (hpread_read_doc_function_type, hpread_read_struct_type)
11434 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 11435 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 11436 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
11437 (java_link_class_type): Ditto.
11438 * mdebugread.c (parse_type): Ditto.
11439 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11440 * solib-sunos.c (solib_add_common_symbols): Ditto.
11441 * stabsread.c (define_symbol, read_type, read_member_functions,
11442 read_cpp_abbrev, read_one_struct_field): Ditto.
11443 * symfile.c (reread_symbols): Ditto.
11444 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 11445
2a8854a7
AC
114462004-02-07 Andrew Cagney <cagney@redhat.com>
11447
11448 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11449 (tui_exec_info_content): Rename TuiExecInfoContent.
11450 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11451 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11452 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11453 (TuiList, TuiListPtr): Ditto.
11454 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11455 (TuiDataType, TuiDataTypePtr): Ditto.
11456 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11457 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11458 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11459 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11460 (TuiDataElement, TuiDataElementPtr): Ditto.
11461 (TuiWinElement, TuiWinElementPtr): Ditto.
11462 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11463 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11464 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11465 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11466 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11467 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11468 * tui/tui-command.c, tui/tui-data.c: Update references.
11469 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11470 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11471 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11472 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 11473
05cbe71a
MK
114742004-02-07 Mark Kettenis <kettenis@gnu.org>
11475
11476 * dwarf2-frame.h: Update copyright.
11477 (enum dwarf2_frame_reg_rule): New.
11478 (struct dwarf2_frame_state_reg): New.
11479 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11480 * dwarf2-frame.c: Update copyright.
11481 (enum dwarf2_reg_rule): Remove.
11482 (struct dwarf2_frame_state): Remove defenition of `struct
11483 dwarf2_frame_state_reg'.
11484 (read_reg): Call get_frame_arch to get the architecture instead of
11485 using CURRENT_GDBARCH.
11486 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11487 DWARF2_FRAME_.
11488 (dwarf2_frame_init_reg): New function.
11489 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11490 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11491 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11492 tags with DWARF2_FRAME_.
11493 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11494 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11495 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11496
ec7d9e56
AC
114972004-02-06 Andrew Cagney <cagney@redhat.com>
11498
dd1abb8c
AC
11499 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11500 (enum tui_data_type): Rename _TuiDataType.
11501 (struct tui_layout_def): Rename _TuiLayoutDef.
11502 (struct tui_source_element): Rename _TuiSourceElement.
11503 (struct tui_data_element): Rename _TuiDataElement.
11504 (struct tui_command_element): Rename _TuiCommandElement.
11505 (struct tui_locator_element): Rename _TuiLocatorElement.
11506 (union tui_which_element): Define.
11507 (struct tui_win_element): Rename _TuiWinElement.
11508 (struct tui_data_info): Rename _TuiDataInfo.
11509 (struct tui_source_info): Rename _TuiSourceInfo.
11510 (struct tui_command_info): Rename _TuiCommandInfo.
11511 (tui_initialize_static_data): Rename initializeStaticData.
11512 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11513 (tui_alloc_win_info): Rename allocWinInfo.
11514 (tui_init_generic_part): Rename initGenericPart.
11515 (tui_init_win_info): Rename initWinInfo.
11516 (tui_alloc_content): Rename allocContent.
11517 (tui_add_content_elements): Rename addContentElements.
11518 (tui_init_content_element): Rename initContentElement.
11519 (tui_free_window): Rename freeWindow.
11520 (tui_free_win_content): Rename freeWinContent.
11521 (tui_free_data_content): Rename freeDataContent.
11522 (tui_free_all_source_wins_content): Rename
11523 freeAllSourceWinsContent.
11524 (tui_del_window): Rename tuiDelWindow.
11525 (tui_del_data_windows): Rename tuiDelDataWindows.
11526 (tui_partial_win_by_name): Rename partialWinByName.
11527 (tui_win_name): Rename winName.
11528 (tui_current_layout): Rename currentLayout.
11529 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11530 (tui_term_height): Rename termHeight.
11531 (tui_set_term_height_to): Rename setTermHeightTo.
11532 (tui_term_width): Rename termWidth.
11533 (tui_set_term_width_to): Rename setTermWidthTo.
11534 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11535 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11536 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11537 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11538 (tui_source_windows): Rename sourceWindows.
11539 (tui_clear_source_windows): Rename clearSourceWindows.
11540 (tui_clear_source_windows_detail): Rename
11541 clearSourceWindowsDetail.
11542 (tui_clear_win_detail): Rename clearWinDetail.
11543 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11544 (tui_default_tab_len): Rename tuiDefaultTabLen.
11545 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11546 (tui_win_with_focus): Rename tuiWinWithFocus.
11547 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11548 (tui_layout_def): Rename tuiLayoutDef.
11549 (tui_win_resized): Rename tuiWinResized.
11550 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11551 (tui_next_win): Rename tuiNextWin.
11552 (tui_prev_win): Rename tuiPrevWin.
11553 (tui_add_to_source_windows): Rename addToSourceWindows.
11554 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11555 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11556 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11557 * tui/tui.c, tui/tui-data.c: Ditto.
11558 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11559 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11560
a358af15
AC
11561 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11562 (struct symtab): Declare.
11563 (tui_set_source_content): Rename tuiSetSourceContent.
11564 (tui_show_symtab_source): Rename tuiShowSource.
11565 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11566 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11567 * tui/tui-source.c: Update copyright. Update references.
11568 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11569 * tui/tui-stack.c: Update references.
11570
a21fcd8f
AC
11571 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11572 (struct tui_win_info): Declare.
11573 (tui_scroll_forward): Rename tuiScrollForward.
11574 (tui_scroll_backward): Rename tuiScrollBackward.
11575 (tui_scroll_left): Rename tuiScrollLeft.
11576 (tui_scroll_right): Rename tuiScrollRight.
11577 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11578 (tui_resize_all): Rename tuiResizeAll.
11579 (tui_refresh_all_win): Rename tuiRefreshAll.
11580 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11581 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11582 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11583 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11584
edae1ccf
AC
11585 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11586 (tui_erase_data_content): Rename tuiEraseDataContent.
11587 (tui_display_all_data): Rename tuiDisplayAllData.
11588 (tui_check_data_values): Rename tuiCheckDataValues.
11589 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11590 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11591 (tui_first_data_element_no_in_line): Rename
11592 tuiFirstDataElementNoInLine.
11593 (tui_delete_data_content_windows): Rename
11594 tuiDeleteDataContentWindows.
11595 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11596 (tui_display_data_from): Rename tuiDisplayDataFrom.
11597 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11598 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11599 * tui/tui-win.c, tui/tui-regs.c: Update references.
11600 * tui/tui-layout.c, tui/tui.c: Update references.
11601
ec7d9e56
AC
11602 * tui/tui-wingeneral.h: Update copyright.
11603 (m_allBeVisible): Delete macro.
8a1dac83 11604 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
11605 (struct tui_gen_win_info): Declare.
11606 (struct tui_win_info): Declare.
11607 (tui_unhighlight_win): Rename unhighlightWin.
11608 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11609 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11610 (tui_make_window): Rename makeWindow.
11611 (tui_copy_win): Rename copyWin.
11612 (tui_box_win): Rename boxWin.
11613 (tui_highlight_win): Rename highlightWin.
11614 (tui_check_and_display_highlight_if_needed): Rename
11615 checkAndDisplayHighlightIfNeeded.
11616 (tui_refresh_all): Rename refreshAll.
11617 (tui_delete_win): Rename tuiDelwin.
11618 (tui_refresh_win): Rename tuiRefreshWin.
11619 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11620 (tui_make_visible, tui_make_invisible): New functions.
11621 (tui_make_all_visible, tui_make_all_invisible): New functions.
11622 (make_all_visible): Rename makeAllVisible.
11623 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11624 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11625 * tui/tui-windata.c, tui/tui-win.c: Update references.
11626 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11627 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11628
1e52e2eb
MK
116292004-02-06 Mark Kettenis <kettenis@gnu.org>
11630
11631 * proc-api.c (write_with_trace): Initialize local variable to
11632 silence compiler warning.
11633
f80bda8e
AC
116342004-02-06 Andrew Cagney <cagney@redhat.com>
11635
11636 * tui/tui-source.h: Do not include "defs.h".
11637 (struct tui_win_info): Declare.
11638 (tui_set_source_content_nil): Declare.
11639 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11640 (union tui_line_or_address): Rename _TuiLineOrAddress.
11641 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11642 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11643 (tui_update_source_window_as_is): Rename
11644 tuiUpdateSourceWindowAsIs.
11645 (tui_update_source_windows_with_addr): Rename
11646 tuiUpdateSourceWindowsWithAddr.
11647 (tui_update_source_windows_with_line): Rename
11648 tuiUpdateSourceWindowsWithLine.
11649 (tui_clear_source_content): Rename tuiClearSourceContent.
11650 (tui_erase_source_content): Rename tuiEraseSourceContent.
11651 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11652 (tui_show_source_content): Rename tuiShowSourceContent.
11653 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11654 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11655 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11656 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11657 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11658 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11659 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11660 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11661 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11662 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11663 (struct tui_win_info): Declare.
11664 * tui/tui-stack.c: Update references.
11665 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11666 * tui/tui-win.c, tui/tui-source.c: Ditto.
11667 * tui/tui.c, tui/tui-disasm.c: Ditto.
11668
9fbfb822
MK
116692004-02-06 Mark Kettenis <kettenis@gnu.org>
11670
11671 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11672 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11673
03cebad2
MK
116742004-02-05 Mark Kettenis <kettenis@gnu.org>
11675
11676 * infrun.c (handle_inferior_event): Allow for breakpoint
11677 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11678 and SIGEMT. Update comments.
11679 * NEWS (Revised SPARC target): Mention support for non-executable
11680 stack.
11681
290281b1
MK
116822004-02-04 Mark Kettenis <kettenis@gnu.org>
11683
11684 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11685 * inftarg.c: Update copyright year.
11686 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11687 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11688 (sparc_xfer_wcookie): New function.
11689 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11690 * Makefile.in (sparc-nat.o): Update dependencies.
11691 * config/sparc/nm-nbsd.h: Include "target.h".
11692 (NATIVE_XFER_WCOOKIE): New define.
11693 (sparc_xfer_wcookie): New prototype.
11694
212161df
AC
116952004-02-04 Andrew Cagney <cagney@redhat.com>
11696
11697 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11698 SYSCALL_TRAP function.
11699 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11700
6e4c6c91
DJ
117012004-02-04 Andrew Cagney <cagney@redhat.com>
11702 Daniel Jacobowitz <drow@mvista.com>
11703
11704 * objfiles.h: Delete comments refering to inside_entry_func and
11705 DEPRECATED_FRAME_CHAIN_VALID.
11706 * defs.h (inside_entry_func): Update prototype..
11707 * blockframe.c (inside_entry_func): Rename to
11708 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11709 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11710
cae688ec
JJ
117112004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11712
11713 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11714 outside of #ifdef SOLIB_ADD region.
11715 (do_restore_lang_radix_cleanup): Ditto.
11716 (resolve_pending_breakpoint): Ditto.
11717
19217676
AC
117182004-02-03 Andrew Cagney <cagney@redhat.com>
11719
11720 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11721 (process_note_abi_tag_sections): Delete unused function.
11722 (ia64_read_fp): Delete unused function.
11723 (gdbarch_extract_struct_value_address): Delete declaration.
11724
876753be
AC
117252004-02-02 Andrew Cagney <cagney@redhat.com>
11726
11727 * vax-tdep.c (vax_frame_chain): Delete call to
11728 deprecated_inside_entry_file.
11729 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11730
d4f10bf2
MK
117312004-02-02 Mark Kettenis <kettenis@gnu.org>
11732
11733 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11734 column that's "empty" or "same value" when eliminating REG_RA
11735 rules.
11736
cae688ec
JJ
117372004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11738
11739 * NEWS: Add information about new pending breakpoint support.
11740
0101ce28
JJ
117412004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11742
11743 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11744 and pending fields for pending breakpoint support.
11745 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11746 (condition_command): Only parse condition if not a pending
11747 breakpoint.
11748 (print_one_breakpoint): Add support for pending breakpoints.
11749 (describe_other_breakpoints): Add checks to verify we are not
11750 dealing with pending breakpoints.
11751 (check_duplicates): Don't check pending breakpoints.
11752 (set_raw_breakpoint): Initialize pending flag.
11753 (do_restore_lang_radix_cleanup): New cleanup routine.
11754 (resolve_pending_breakpoint): New function.
11755 (re_enable_breakpoints_in_shlibs): Try and resolve any
11756 pending breakpoints via resolve_pending_breakpoint.
11757 (mention): Add pending breakpoint support.
11758 (parse_breakpoint_sals): Add new parameter to pass to
11759 decode_line_1 to indicate silent errors when files or functions
11760 are not found. Change all callers.
11761 (do_captured_parse_breakpoint): New function.
11762 (break_command_1): Change prototype to return an rc value and to
11763 take an optional pending breakpoint pointer. Support creating
11764 a pending breakpoint if a "not found" form of error occurs when
11765 parsing the breakpoint. Also support resolving an existing pending
11766 breakpoint and be silent if the resolution fails.
11767 (create_breakpoints): Change prototype to take pending breakpoint
11768 pointer. When resolving a pending breakpoint, use the new pointer
11769 to provide a conditional or commands added by the end-user.
11770 (delete_breakpoint): Add appropriate check for pending.
11771 (breakpoint_re_set_one): Ditto.
11772 (do_enable_breakpoint): Ditto.
11773
8d577d32
DC
117742004-02-02 David Carlton <carlton@kealia.com>
11775
11776 * valops.c (enum oload_classification): New.
11777 (find_overload_match): Break implementation into separate
11778 functions; delete #if 0'd code; look for symbols within
11779 namespaces.
11780 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11781 (find_oload_champ,oload_method_static,classify_oload_match): New.
11782 * cp-support.h: Add declaration for cp_func_name; update
11783 declaration for make_symbol_overload_list.
11784 * cp-support.c (cp_func_name): New.
11785 (overload_list_add_symbol): Fix comment, use
11786 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11787 (make_symbol_overload_list): Take a function name and a namespace
11788 instead of a symbol; change implementation.
11789 (make_symbol_overload_list_using): New.
11790 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11791
22e8e3c7
FF
117922004-02-02 Fred Fish <fnf@redhat.com>
11793
11794 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 11795 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
11796 * remote-sim.c (gdb_os_write_stderr): Write output to
11797 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11798 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 11799 gdb_stderr stream and update copyright years.
22e8e3c7 11800
6b753f60
DJ
118012004-02-01 Daniel Jacobowitz <drow@mvista.com>
11802
11803 * Makefile.in (mips-linux-nat.o): Update dependencies.
11804 * mips-linux-nat.c: Include mips-tdep.h.
11805
118062004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
11807
11808 * sol-thread.c (sol_thread_xfer_partial): New function.
11809 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11810 (init_sol_core_ops): Likewise.
11811
11812 * procfs.c (procfs_xfer_partial): New function.
11813 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11814 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11815
11816 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11817 procfs_xfer_auxv function.
11818
11819 * procfs.c (procfs_make_note_section): If we can read
11820 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11821 * linux-proc.c (linux_make_note_section): Likewise.
11822
11823 * auxv.h: New file.
11824 * auxv.c: New file.
11825 * Makefile.in (auxv_h): New variable.
11826 (COMMON_OBS): Add auxv.o here.
11827 (auxv.o): New target.
11828
11829 * corelow.c (core_xfer_partial): New function.
11830 (init_core_ops): Use it for core_ops.to_xfer_partial.
11831
11832 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11833 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11834 macro if that is defined.
11835
fa5281d0
DJ
118362004-02-01 Daniel Jacobowitz <drow@mvista.com>
11837
11838 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11839 and check the specified thread for each breakpoint.
11840 * breakpoint.h (bpstat_stop_status): Update prototype.
11841 * infrun.c (handle_inferior_event): Update calls to
11842 bpstat_stop_status.
11843
26ee262d
DJ
118442004-02-01 Daniel Jacobowitz <drow@mvista.com>
11845
11846 * Makefile.in (cli-cmds.o): Add $(readline_h).
11847
d9b52655
DJ
118482004-02-01 Daniel Jacobowitz <drow@mvista.com>
11849
11850 * cli/cli-cmds.c: Include readline.h.
11851 (complete_command): Pass the start of the last word to
11852 complete_line.
11853
9709f61c
DJ
118542004-01-31 Daniel Jacobowitz <drow@mvista.com>
11855
11856 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11857 argument, and change first argument to a CORE_ADDR.
11858 * breakpoint.h (bpstat_stop_status): Update prototype.
11859 * infrun.c (adjust_pc_after_break): Add a new comment.
11860 (handle_inferior_event): Update calls to bpstat_stop_status.
11861
4f1280bb
DJ
118622004-01-31 Daniel Jacobowitz <drow@mvista.com>
11863
11864 * breakpoint.h: Update copyright years.
11865
4fa8626c
DJ
118662004-01-31 Daniel Jacobowitz <drow@mvista.com>
11867
11868 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11869 (bpstat_stop_status): Don't decrement PC.
11870 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11871 prototype.
11872 * infrun.c (adjust_pc_after_break): New function.
11873 (handle_inferior_event): Call it, early. Remove later references
11874 to DECR_PC_AFTER_BREAK.
11875 (normal_stop): Add commentary.
11876
fad0733a
DJ
118772004-01-31 Daniel Jacobowitz <drow@mvista.com>
11878
11879 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11880 2004-01-27 double-free fix.
11881
42cdca6c
MK
118822004-01-31 Mark Kettenis <kettenis@gnu.org>
11883
11884 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11885 (sparc32_frame_prev_register): Handle StackGhost.
11886 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11887
932d5416
RM
118882004-01-29 Roland McGrath <roland@redhat.com>
11889
11890 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11891 * configure: Regenerated.
11892
11893 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11894 * Makefile.in (procfs.o): Add dep.
11895
47d3492a
AC
118962004-01-28 Andrew Cagney <cagney@redhat.com>
11897
11898 * tui/tui-stack.h: Update copyright.
11899 (struct frame_info): Add opaque declaration.
11900 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11901 (tui_show_locator_content): Rename tuiShowLocatorContent.
11902 (tui_show_frame_info): Rename tuiShowFrameInfo.
11903 * tui/tui-stack.c: Update copyright. Update references.
11904 * tui/tui-winsource.c: Update references.
11905 * tui/tui-win.c: Update references.
11906 * tui/tui-layout.c: Update references.
11907 * tui/tui-hooks.c: Update copyright, update references.
11908 * tui/tui.c: Update copyright, update references.
11909 * tui/tui-disasm.c: Update references.
11910
5d51ca54
DC
119112004-01-28 David Carlton <carlton@kealia.com>
11912
11913 * dwarf2read.c (add_partial_structure): Use demangled name if
11914 namespace equals "".
11915
086ed43d
JB
119162004-01-27 Jim Blandy <jimb@redhat.com>
11917
11918 Clean up misapplied patch:
11919 * dwarf2read.c (determine_prefix): Change one of the two forward
11920 declarations for 'determine_prefix_aux' to a declaration for this.
11921 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11922 argument to 'die_specification'.
11923
2a35147e
JB
11924 * dwarf2read.c (read_func_scope): Re-indent comment.
11925
a355c7de 119262004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 11927
a355c7de
AC
11928 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11929 b->exp to NULL after freeing so that error during re-parsing or
11930 evaluation of expressions associated with breakpoint don't
11931 eventually lead to re-freeing of storage.
11932 Committed by Andrew Cagney.
11933
63ff5125
AC
119342004-01-27 Andrew Cagney <cagney@redhat.com>
11935
11936 * source.c (ambiguous_line_spec): Delete undefined declaration.
11937 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11938 (m32r_set_server_address, m32r_set_download_path): Ditto.
11939 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11940
e142c38c
DJ
119412004-01-27 Daniel Jacobowitz <drow@mvista.com>
11942
11943 * dwarf2read.c: Update calls to changed and renamed functions, and
11944 references to moved variables.
11945
11946 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11947 language, language_defn, list_in_scope, and ftypes members.
11948 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11949 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11950 (baseaddr): Remove globals.
11951
11952 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11953 (set_cu_language, die_is_declaration, die_specification)
11954 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11955 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11956 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11957 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11958
11959 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11960 cu.list_in_scope. Don't initialize cu_header_offset.
11961 (add_partial_symbol): Add local baseaddr.
11962 (psymtab_to_symtab_1): Add local baseaddr. Use
11963 objfile->section_offsets for consistency. Don't initialize
11964 cu_header_offset; do initialize cu.header.offset and
11965 cu.list_in_scope.
11966 (read_file_scope, read_func_scope, read_lexical_block_scope)
11967 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11968
c6e06ede
MC
119692004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11970
fb328ecc 11971 * PROBLEMS: Add gdb/1516.
c6e06ede 11972
48184fd4
AC
119732003-12-29 Robert Millan <robertmh@gnu.org>
11974
11975 Patch committed by Andrw Cagney.
11976 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11977 * configure.tgt: Match knetbsd*-gnu.
11978
c1321b30
AC
119792004-01-26 Andrew Cagney <cagney@redhat.com>
11980
f3699be3
AC
11981 * breakpoint.c (catch_command_1): Delete #ifdef code.
11982 (catch_fork_command_1): Delete #ifdef wrapper.
11983 (catch_exec_command_1): Ditto.
11984 (catch_load_command_1): Ditto.
11985 (catch_unload_command_1): Ditto.
11986
c1321b30
AC
11987 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11988 (catch_breakpoint): Delete #if0ed function.
11989 (disable_catch_breakpoint): Ditto.
11990 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11991 (disable_catch, enable_catch, delete_catch): Ditto.
11992
b4501125
AC
119932004-01-26 Andrew Cagney <cagney@redhat.com>
11994
11995 * remote.c (echo_check, quit_flag): Delete variables.
11996 (cisco_kernel_mode): Delete variable.
11997 (minitelnet_return, tty_input, escape_count): Delete variables.
11998 (remote_cisco_mode): Delete variable.
11999 (remote_cisco_open, remote_cisco_close): Delete function.
12000 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12001 (init_remote_cisco_ops): Delete function.
12002 (_initialize_remote): Do not install "remote cisco" code.
12003 (read_frame): Delete cisco specific code.
12004 (remote_info_process): Delete function.
12005 (remote_wait): Delete cisco specific code.
12006 (remote_cisco_section_offsets): Delete function.
12007 (remote_cisco_objfile_relocate): Delete function.
12008 (remote_async_wait): Delete cisco specific code.
12009 (minitelnet, readtty, readsocket): Delete function.
12010
74055713
AC
120112004-01-26 Andrew Cagney <cagney@redhat.com>
12012
12013 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12014 comments mentioning extract_returned_value_address.
12015 * infcmd.c (print_return_value): Update. Add comments on
12016 extract_returned_value_address.
12017 * stack.c (return_command): Add comments on
12018 extract_returned_value_address.
12019 * values.c: Update comment.
12020 * m32r-tdep.c: Update comment.
12021 * sparc-tdep.c: Update comment.
12022 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12023 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12024 * sh64-tdep.c (sh64_gdbarch_init): Update.
12025 * sh-tdep.c (sh_gdbarch_init): Update.
12026 * s390-tdep.c (s390_gdbarch_init): Update.
12027 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12028 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12029 * m68k-tdep.c (m68k_gdbarch_init): Update.
12030 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12031 * m32r-tdep.c (m32r_gdbarch_init): Update.
12032 * ia64-tdep.c (ia64_gdbarch_init): Update.
12033 * h8300-tdep.c (h8300_gdbarch_init): Update.
12034 * frv-tdep.c (frv_gdbarch_init): Update.
12035 * arm-tdep.c (arm_gdbarch_init): Update.
12036 * alpha-tdep.c (alpha_gdbarch_init): Update.
12037
a67af2b9
AC
120382004-01-26 Andrew Cagney <cagney@redhat.com>
12039
12040 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12041 SYMBOL_LOCATION_FUNCS
12042 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12043 "struct symbol_ops".
12044 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12045 type to "struct symbol_ops".
12046 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12047 (struct symbol): Replace ".aux_value.loc.funcs" and
12048 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12049 (SYMBOL_OBJFILE): Delete macro.
12050 (SYMBOL_LOCATION_FUNCS): Delete macro.
12051 (SYMBOL_LOCATION_BATON): Update.
12052 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12053 intead of SYMBOL_LOCATION_FUNCS.
12054 * ax-gdb.c (gen_var_ref): Ditto.
12055 * printcmd.c (address_info): Ditto.
12056 * findvar.c (read_var_value): Ditto.
12057 (symbol_read_needs_frame): Ditto.
12058
c034e007
AC
120592004-01-26 Andrew Cagney <cagney@redhat.com>
12060
12061 * dwarf2read.c (read_func_scope): Document frame-base hack.
12062
bb472c1e
MK
120632004-01-25 Mark Kettenis <kettenis@gnu.org>
12064
12065 * infcmd.c (print_return_value): Plug memory leak; delete
12066 ui_stream object. Rename argument `structure_return' to
12067 `struct_return'.
12068
c8e737d5
MK
120692004-01-25 Mark Kettenis <kettenis@gnu.org>
12070
f941662f
MK
12071 * infcmd.c (print_return_value): Wrap long lines.
12072 (finish_command_continuation, finish_command): Remove unused
12073 variable `funcaddr'. Fix some coding-standards problems.
12074
c558d81a 12075 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 12076 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
12077 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12078 TDEP->fpregset to zero.
12079
bf1e5861 12080 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
12081 floating-point registers for traditional NetBSD core files.
12082 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12083 TDEP->sizeof_fpregset here.
12084
4c72d57a
MK
120852004-01-25 Mark Kettenis <kettenis@gnu.org>
12086
566626fa
MK
12087 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12088 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12089 function with code split out from
12090 sparc32nbsd_sigcontext_frame_cache.
12091 (sparc32nbsd_sigcontext_frame_cache): Use
12092 sparc32nbsd_sigcontext_saved_regs.
12093 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12094 OpenBSD.
12095 * sparcobsd-tdep.c: New file.
12096 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12097 (sparcobsd-tdep.o): New dependency.
12098 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12099 * config/sparc/obsd.mt: New file.
12100
4c72d57a
MK
12101 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12102 TDEP->fpregset to be initialized to enable core file register
12103 sets.
12104
7e5e9f88
MK
121052004-01-24 Mark Kettenis <kettenis@gnu.org>
12106
f0f207fd 12107 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
12108 Add opaque declarations.
12109 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12110 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12111 function with code split out from
12112 sparc64nbsd_sigcontext_frame_cache.
12113 (sparc64nbsd_sigcontext_frame_cache): Use
12114 sparc64nbsd_sigcontext_saved_regs.
12115 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12116 OpenBSD.
12117 * sparc64obsd-tdep.c: New file.
12118 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12119 (sparc64obsd-tdep.o): New dependency.
12120 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12121 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12122 * config/sparc/obsd64.mt: New file.
12123
690668cc
MK
12124 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12125 read the instruction at PC.
12126
7e5e9f88
MK
12127 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12128 value of GDB_OSABI_DEFAULT.
12129 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12130 instead of GDB_OSABI_NETBSD_AOUT.
12131
68b6dce9
NR
121322004-01-24 Nick Roberts <nick@nick.uklinux.net>
12133
12134 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12135 copyright.
12136
080ce8c0
AC
121372004-01-23 Andrew Cagney <cagney@redhat.com>
12138
12139 * printcmd.c (display_command): Replace tui_set_display call with
12140 tui_set_layout_for_display_command.
12141 * tui/tui.h (enum tui_win_type): Define.
12142 (tui_set_layout): Delete declaration.
12143 (tui_set_layout_for_display_command): Rename set_tui_layout.
12144 * tui/tui-data.h (enum tui_layout_type): Define.
12145 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12146 "tui.h".
12147 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12148 (tui_default_win_height): Rename tuiDefaultWinHeight.
12149 (tui_default_win_viewport_height): Rename
12150 tuiDefaultWinViewportHeight.
12151 (tui_set_layout): RenametuiSetLayout.
12152 * tui/tui-layout.c: Update references.
12153 * tui/tui.c: Update references.
12154 * tui/tui-disasm.c: Update references.
12155
b368761e
DC
121562004-01-23 David Carlton <carlton@kealia.com>
12157
12158 Partial workaround for PR c++/1511:
12159 * cp-namespace.c: Include frame.h.
12160 (cp_lookup_transparent_type): New
12161 (cp_lookup_transparent_type_loop): New.
12162 * cp-support.h: Declare cp_lookup_transparent_type.
12163 * symtab.c (basic_lookup_transparent_type): Renamed from
12164 lookup_transparent_type.
12165 (lookup_transparent_type): Replace old body by a call to
12166 current_language->la_lookup_transparent_type.
12167 * symtab.h: Update copyright. Declare
12168 basic_lookup_transparent_type.
12169 * language.h: Update copyright.
12170 (struct language_defn): Add la_lookup_transparent_type.
12171 * language.c: Update copyright.
12172 (unknown_language_defn): Add basic_lookup_transparent_type.
12173 (auto_language_defn): Add basic_lookup_transparent_type.
12174 (local_language_defn): Add basic_lookup_transparent_type.
12175 * ada-lang.c: Update copyright.
12176 (ada_language_defn): Add basic_lookup_transparent_type.
12177 * c-lang.c: Update copyright.
12178 (c_language_defn): Add basic_lookup_transparent_type.
12179 (cplus_language_defn): Add basic_lookup_transparent_type.
12180 (asm_language_defn): Add basic_lookup_transparent_type.
12181 (minimal_language_defn): Add basic_lookup_transparent_type.
12182 * f-lang.c: Update copyright.
12183 (f_language_defn): Add basic_lookup_transparent_type.
12184 * jv-lang.c: Update copyright.
12185 (java_language_defn): Add basic_lookup_transparent_type.
12186 * m2-lang.c: Update copyright.
12187 (m2_language_defn): Add basic_lookup_transparent_type.
12188 * objc-lang.c: Update copyright.
12189 (objc_language_defn): Add basic_lookup_transparent_type.
12190 * p-lang.c: Update copyright.
12191 (p_language_defn): Add basic_lookup_transparent_type.
12192 * scm-lang.c: Update copyright.
12193 (scm_language_defn): Add basic_lookup_transparent_type.
12194 * Makefile.in (cp-namespace.o): Depend on frame.h.
12195
fdde2d81
DC
121962004-01-23 David Carlton <carlton@kealia.com>
12197
12198 Patch for PR c++/1520:
12199 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12200 properly if we have a specification die.
12201 (determine_prefix_aux): Rename from determine_prefix.
12202 (determine_prefix): Like the old determine_prefix, but never
12203 returns NULL.
12204
5b828b6b
TR
122052004-01-23 Theodore A. Roth <troth@openavr.org>
12206
12207 * avr-tdep.c: Update copyright.
12208 (avr_iaddr_p): Delete unused function.
12209 (avr_saddr_p): Delete unused function.
12210
a1b8c067
DC
122112004-01-23 David Carlton <carlton@kealia.com>
12212
12213 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12214 Fix for PR symtab/1534.
12215
f2cab569
MK
122162004-01-23 Mark Kettenis <kettenis@gnu.org>
12217
12218 * NEWS (New native configurations): Mention OpenBSD/sparc and
12219 OpenBSD/sparc64.
12220 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12221 * configure.host: Likewise.
12222 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12223 handler for OpenBSD.
12224 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12225
642d8300
MK
122262004-01-22 Mark Kettenis <kettenis@gnu.org>
12227
89aac506
MK
12228 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12229 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12230
36662fde
MK
12231 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12232 * cli/cli-cmds.c (shell_escape): Likewise.
12233
642d8300
MK
12234 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12235 OpenBSD .note.openbsd.ident sections.
12236
fae299cd
DC
122372004-01-22 David Carlton <carlton@kealia.com>
12238
12239 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12240 get_scope_pc_bounds.
12241 (read_file_scope): Ditto.
12242 (get_scope_pc_bounds): New function, produced by extracting code
12243 from the above two functions, consolidating it, and adding support
12244 for DW_TAG_namespace.
12245
a49d618c
MK
122462004-01-22 Mark Kettenis <kettenis@gnu.org>
12247
12248 * osabi.c (MAX_NOTESZ): New define.
12249 (check_note): New function.
12250 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12251 check_note.
12252
fe61caab
RM
122532004-01-21 Roland McGrath <roland@redhat.com>
12254
12255 * MAINTAINERS (write after approval): Add myself.
12256
ec145965
EZ
122572004-01-21 Eli Zaretskii <eliz@gnu.org>
12258
12259 * utils.c (init_page_info): Move declarations of `rows' and
12260 `cols' before the __GO32__-specific code. Move the closing brace
12261 outside the #ifdef __GO32__..#endif block.
12262 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12263
877522db
PB
122642004-01-21 Paul Brook <paul@codesourcery.com>
12265
12266 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12267 BPSTAT_WHAT_CHECK_SHLIBS.
12268
dbf5be1c
PB
122692004-01-21 Paul Brook <paul@codesourcery.com>
12270
12271 * MAINTAINERS: Add myself to write-after-approval.
12272
81f08b92
AC
122732004-01-20 Andrew Cagney <cagney@redhat.com>
12274
5a1efed7
AC
12275 * ax-gdb.c (print_axs_value): Delete unused function.
12276 * jv-lang.c (java_lookup_type): Delete unused function.
12277 * cli/cli-dump.c (dump_filetype): Delete unused function.
12278 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12279 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12280 (mips_getstring): Delete unused function.
12281 (pmon_insert_breakpoint): Delete #if0ed function.
12282 (PMON_MAX_BP): Delete #if0ed MACRO.
12283 (mips_pmon_bp_info): Delete #if0ed variable.
12284 (pmon_remove_breakpoint): Delete #if0ed function.
12285 * monitor.c (monitor_write_even_block): Delete unused function.
12286 (monitor_write_memory_block): Delete #if0ed code.
12287 * dink32-rom.c (dink32_load): Delete unused function.
12288 (_initialize_dink32_rom): Delete #if0ed code.
12289 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12290
b0a30fce
AC
12291 * tui/tui-command.c: Update references.
12292 * tui/tui-io.c: Update references.
12293 * tui/tui-command.h: Update copyright.
12294 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12295
81f08b92
AC
12296 * source.c (ambiguous_line_spec): Delete never-defined function.
12297 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12298 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12299 * cli/cli-cmds.c (validate_comname): Ditto.
12300
65f05602
AC
12301 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12302 "tui-data.h".
12303 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12304 (tui_show_disassem): Rename tuiShowDisassem.
12305 (tui_show_disassem_and_update_source): Rename
12306 tuiVerticalDisassemScroll.
12307 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12308 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12309 * tui/tui.h: Update copyright.
12310 (enum tui_status): Define.
12311 * tui/tui-data.h (enum tui_scroll_direction): Define.
12312 * tui/tui-disasm.c: Update copyright. Update references.
12313 * tui/tui-winsource.c: Update copyright. Update references.
12314 * tui/tui-win.c: Update references.
12315 * tui/tui-layout.c: Update references.
12316
6bb0384f
AC
123172004-01-20 Andrew Cagney <cagney@redhat.com>
12318
12319 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12320 sym2 to start of block.
12321
9175c9a3
MC
123222004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12323
12324 * MAINTAINERS: Delete mmalloc.
12325 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12326 * NEWS: Mention removal of --with-malloc.
12327 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12328 * config.in: Regenerate.
12329 * configure: Regenerate.
6bb0384f
AC
12330 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12331 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
12332 * gdbinit.in: Remove mmalloc.
12333 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12334 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12335 * config/i386/go32.mh: Likewise.
12336 * config/i386/interix.mh: Likewise.
12337 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12338
4fcef00a
JJ
123392004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12340
12341 * linespec.c (decode_variable, symtab_from_filename): Call
12342 error_silent with error message instead of throwing an exception
12343 directly.
12344 * defs.h (error_silent, error_output_message): Add prototypes.
12345 (catch_exceptions_with_msg): Ditto.
12346 * utils.c (error_silent, error_output_message): New functions.
12347 * top.c (catch_exceptions_with_msg): New function.
12348
8e94b928
NR
123492004-01-20 Nick Roberts <nick@nick.uklinux.net>
12350
12351 * mi/mi-cmds.h (enum print_values): Add definition.
12352
12353 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12354 type and value for simple data types and just the name and type
12355 for complex ones, if required.
12356
12357 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12358 children, if required.
12359
a02d6af8
KB
123602004-01-19 Kevin Buettner <kevinb@redhat.com>
12361
12362 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12363 unused declarations.
12364
78a4a9b9
AC
123652004-01-19 Andrew Cagney <cagney@redhat.com>
12366
12367 * top.h (mapped_symbol_files): Delete declaration.
12368 * main.c (captured_main): Delete option "m" and "mapped".
12369 * objfiles.c (mapped_symbol_files): Delete variable.
12370 * symfile.c (symbol_file_command): Delete mmap code.
12371 (symbol_file_add_with_addrs_or_offsets): Ditto.
12372 (add_symbol_file_command, reread_separate_symbols): Ditto.
12373 * objfiles.h (OBJF_MAPPED): Delete.
12374 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12375 (free_objfile) [USE_MMALLOC]: Ditto.
12376 (open_existing_mapped_file): Delete function.
12377 (open_mapped_file): Delete function.
12378 (map_to_file): Delete function.
12379
2dbd5e30
KB
123802004-01-19 Kevin Buettner <kevinb@redhat.com>
12381
12382 * infrun.c (step_into_function): Account for possible breakpoint
12383 adjustment when computing ``stop_func_start''.
12384
437b434f
KB
123852004-01-19 Kevin Buettner <kevinb@redhat.com>
12386
12387 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12388 the region size against the size of a pointer, not the size of
12389 a register as given by DEPRECATED_REGISTER_SIZE.
12390
55fb0713
AC
123912004-01-19 Andrew Cagney <cagney@redhat.com>
12392
12393 * tui/tui-regs.h: Include "tui-data.h".
12394 (tuiFirstRegElementNoInLine): Delete declaration.
12395 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12396 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12397 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12398 (tui_calculate_regs_column_count): Rename
12399 tuiCalculateRegsColumnCount.
12400 (tui_check_register_values): Rename tuiCheckRegisterValues.
12401 (tui_show_registers): Rename tuiShowRegisters.
12402 (tui_display_registers_from_line): Rename
12403 tuiDisplayRegistersFromLine.
12404 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12405 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12406 (tui_first_reg_element_no_inline): Rename
12407 tuiFirstRegElementNoInLine.
12408 * tui/tui-data.h: Update copyright.
12409 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12410 * tui/tui-windata.c: Update copyright, update references.
12411 * tui/tui-regs.c: Update copyright, update references.
12412 * tui/tui-win.c: Update copyright, update references.
12413 * tui/tui-layout.c: Update copyright, update references.
fe61caab 12414
cebe9500
AC
124152004-01-18 Andrew Cagney <cagney@redhat.com>
12416
bcdf1568
AC
12417 * tui/tui-io.c: Update copyright.
12418 (key_is_end_sequence, key_is_backspace): New functions.
12419 (key_is_command_char, key_is_start_sequence): New function.
12420 (tui_getc): Update references.
12421 * tui/tui-io.h: Update copyright.
12422 (m_tuiStartNewLine): Delete macro.
12423 (m_isBackspace, m_isDeleteChar): Delete macros.
12424 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12425 (m_isNextPage, m_isPrevPage): Delete macros.
12426 (m_isLeftArrow, m_isRightArrow): Delete macros.
12427 (m_isXdbStyleCommandChar): Delete macro.
12428 (key_is_start_sequence): Declare, replace m_isStartSequence.
12429 (key_is_end_sequence): Declare, replace m_isEndSequence.
12430 (key_is_backspace): Declare ,replace m_isBackspace.
12431 (key_is_command_char): Declare, replace m_isCommandChar.
12432 * tui/tui-command.c: Update copyright.
12433 (tuiDispatchCtrlChar): Update references.
12434
130d87e6
AC
12435 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12436 tuiSourceWin.h.
12437
d7b2e967
AC
12438 * tui/tui-command.c: Rename tui/tuiCommand.c.
12439 * tui/tui-command.h: Rename tui/tuiCommand.h.
12440 * tui/tui-data.c: Rename tui/tuiData.c.
12441 * tui/tui-data.h: Rename tui/tuiData.h.
12442 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12443 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12444 * tui/tui-io.c: Rename tui/tuiIO.c.
12445 * tui/tui-io.h: Rename tui/tuiIO.h.
12446 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12447 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12448 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12449 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12450 * tui/tui-source.c: Rename tui/tuiSource.c.
12451 * tui/tui-source.h: Rename tui/tuiSource.h.
12452 * tui/tui-stack.c: Rename tui/tuiStack.c.
12453 * tui/tui-stack.h: Rename tui/tuiStack.h.
12454 * tui/tui-win.c: Rename tui/tuiWin.c.
12455 * tui/tui-win.h: Rename tui/tuiWin.h.
12456 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12457 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12458 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12459 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12460 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12461 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12462 * tui/tui-file.c: Update includes.
12463 * tui/tui-hooks.c: Update includes.
12464 * tui/tui-interp.c: Update includes.
12465 * tui/tui.c: Update includes.
12466 * Makefile.in: Update all tui/ dependencies.
12467 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12468
b2100910
AC
12469 * Makefile.in: Update copyright. Update dependencies.
12470
cebe9500
AC
12471 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12472 problem.
12473
c6f0559b
AC
124742004-01-18 Andrew Cagney <cagney@redhat.com>
12475
43e9390b
AC
12476 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12477 instead of register_gdbarch_init.
12478
c6f0559b
AC
12479 * remote-sds.c (tohex): Delete unused function. Update copyright.
12480 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12481 * v850-tdep.c (v850_register_virtual_size): Ditto.
12482 * target.c (normal_target_post_startup_inferior): Ditto.
12483 * source.c (ambiguous_line_spec): Ditto.
12484 * remote.c (adapt_remote_get_threadinfo): Ditto.
12485 * mi/mi-out.c (out_field_fmt): Ditto.
12486 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12487 (output_control_change_notification): Ditto.
12488 * m68k-tdep.c (m68k_register_byte): Ditto.
12489 (m68k_remote_breakpoint_from_pc): Ditto.
12490 * ui-out.c (init_ui_out_state): Delete unused declaration.
12491 * stabsread.c (search_value): Ditto.
12492 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12493 * maint.c (print_section_table): Ditto.
12494 * infrun.c (set_follow_fork_mode_command): Ditto.
12495
a8504492
MK
124962004-01-18 Mark Kettenis <kettenis@gnu.org>
12497
12498 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12499 DW_CFA_def_cfa_exporession. Add support for
12500 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12501 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12502
0bd8997e
AC
125032004-01-18 Andrew Cagney <cagney@redhat.com>
12504
12505 * ocd.c: Update copyright.
12506 (bdm_read_register_command): Delete unused function.
12507 (_initialize_remote_ocd): Delete commented out reference.
12508 (get_quoted_char, reset_packet): Delete #if0ed function.
12509 (output_packet, put_quoted_char): Delete #if0ed function.
12510 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12511 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12512 (BDM_BREAKPOINT): Delete #if0ed macro.
12513 (remote_timeout): Delete #if0ed variable.
12514
31bb40e4
MK
125152004-01-18 Mark Kettenis <kettenis@gnu.org>
12516
12517 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12518 (core-sol2.o): Remove dependency.
12519 * core-sol2.c: Remove file.
12520
887432a5
AC
125212004-01-17 Andrew Cagney <cagney@redhat.com>
12522
12523 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12524 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12525 enums.
12526
29182b13
DJ
125272004-01-17 Daniel Jacobowitz <drow@mvista.com>
12528
12529 * remote.c: Update copyright years.
12530
2963ee1d
DJ
125312004-01-17 Daniel Jacobowitz <drow@mvista.com>
12532
12533 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12534
79d45cd4
AC
125352004-01-17 Andrew Cagney <cagney@redhat.com>
12536
ee300cd4
AC
12537 * mdebugread.c: Update copyright.
12538 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12539 (parse_type, parse_procedure): Ditto.
12540 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12541
fcacc9c2
AC
12542 * cris-tdep.c (cris_store_struct_return): Put back accidently
12543 deleted function.
12544
79d45cd4
AC
12545 * gdbarch.sh: Update copyright year.
12546 * gdbarch.h, gdbarch.c: Re-generate.
12547
b263358a
DJ
125482004-01-17 Daniel Jacobowitz <drow@mvista.com>
12549
12550 Suggested by George Anzinger.
12551 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12552 correct stack offset. Include unknown opcode numbers in the error
12553 message.
12554
931aecf5
AC
125552004-01-17 Andrew Cagney <cagney@redhat.com>
12556
12557 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12558 extract_struct_value_address, i386 does not set it.
12559 * sparc64-tdep.c (sparc64_init_abi): Do not set
12560 extract_struct_value_address, never called.
12561 (sparc64_extract_struct_value_address): Delete function.
12562 * m68hc11-tdep.c: Update copyright.
12563 (m68hc11_gdbarch_init): Delete redundant assignment of
12564 extract_struct_value_address.
12565 * i386-tdep.c: Update copyright.
12566 (i386_gdbarch_init): Do not set extract_struct_value_address,
12567 never called.
12568 (i386_extract_struct_value_address): Delete function.
12569 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12570 extract_struct_value_address, never called.
12571 (sparc32_extract_struct_value_address): #if 0 function. Add
12572 comments explaining its future.
12573
756fe439
DJ
125742004-01-17 Daniel Jacobowitz <drow@mvista.com>
12575
12576 * arm-tdep.c (arm_write_pc): New function.
12577 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12578
e74f0f02
DJ
125792004-01-17 Daniel Jacobowitz <drow@mvista.com>
12580
12581 * breakpoint.c (must_shift_inst_regs): Delete.
12582 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12583 and SHIFT_INST_REGS.
12584 * infcmd.c (step_1, step_1_continuation): Delete references to
12585 SHIFT_INST_REGS.
12586 * infrun.c (keep_going): Likewise.
12587 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12588 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12589
b6cb9035
AC
125902004-01-17 Andrew Cagney <cagney@redhat.com>
12591
444a1e2e
AC
12592 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12593 * gdbarch.h, gdbarch.c: Re-generate.
12594 * infcmd.c (print_return_value): Delete reference to
12595 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12596
def7e6ed
AC
12597 * cris-tdep.c (cris_gdbarch_init): Do not set
12598 deprecated_extract_struct_value_address.
12599
07be497a
AC
12600 * xstormy16-tdep.c: Update copyright.
12601 (xstormy16_extract_struct_value_address): Update to current
12602 extract struct value address interface.
12603 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12604 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12605 current extract struct value address interface.
12606 (sh64_gdbarch_init): Set extract_struct_value_address.
12607
6b4d5c91
AC
12608 * cris-tdep.c: Update copyright.
12609 (cris_extract_struct_value_address): Delete function.
12610 (struct_return_address): Delete variable.
12611 (cris_store_struct_return): Do not set struct_return_address.
12612
464e0365
AC
12613 * mcore-tdep.c: Update copyright.
12614 (mcore_extract_struct_value_address): Delete function. Update
12615 comments.
12616 (mcore_gdbarch_init): Update.
12617 * mn10300-tdep.c: Update copyright.
12618 (mn10300_extract_struct_value_address): Delete function.
12619 (mn10300_gdbarch_init): Update.
12620 * v850-tdep.c: Update copyright.
12621 (v850_extract_struct_value_address): Delete.
12622 (v850_gdbarch_init): Update.
12623 * ns32k-tdep.c: Update copyright.
12624 (ns32k_extract_struct_value_address): Delete.
12625 (ns32k_gdbarch_init): Update.
12626 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12627 (hppa_gdbarch_init): Update.
12628 * vax-tdep.c: Update copyright.
12629 (vax_extract_struct_value_address): Delete.
12630 (vax_gdbarch_init): Update.
12631
afb18d0f
AC
12632 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12633 * gdbarch.h, gdbarch.c: Re-generate.
12634 * procfs.c (procfs_fetch_registers): Delete reference to
12635 DEPRECATED_NPC_REGNUM.
12636 (procfs_store_registers): Ditto.
12637 * regcache.c (generic_target_write_pc): Simplify.
12638 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12639
a698f53e
AC
12640 * core-sol2.c (fetch_core_registers): Replace
12641 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12642
adc11376
AC
12643 * hppa-tdep.c: Update copyright year.
12644 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12645 NPC_REGNUM.
12646 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12647
b6cb9035
AC
12648 * mips-tdep.c (mips_write_pc): New function.
12649 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12650 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12651 (mips_find_saved_regs, mips_software_single_step: Ditto.
12652 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12653 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12654
6d82d43b
AC
126552004-01-17 Andrew Cagney <cagney@redhat.com>
12656
12657 * mips-tdep.c: Re-indent. Group functions by ABI.
12658
71bd6bd4
AC
126592004-01-17 Andrew Cagney <cagney@redhat.com>
12660
12661 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12662 * gdbarch.c: Re-generate.
12663 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12664 DECR_PC_AFTER_BREAK to zero.
12665 * vax-tdep.c (vax_gdbarch_init): Ditto.
12666 * v850-tdep.c (v850_gdbarch_init): Ditto.
12667 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12668 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12669 * sh-tdep.c (sh_gdbarch_init): Ditto.
12670 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12671 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12672 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12673 * mips-tdep.c (mips_gdbarch_init): Ditto.
12674 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12675 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12676 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12677 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12678 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12679 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12680 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12681 * frv-tdep.c (frv_gdbarch_init): Ditto.
12682 * cris-tdep.c (cris_gdbarch_init): Ditto.
12683 * avr-tdep.c (avr_gdbarch_init): Ditto.
12684 * arm-tdep.c (arm_gdbarch_init): Ditto.
12685 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12686
a02abb62
JB
126872004-01-17 J. Brobecker <brobecker@gnat.com>
12688
12689 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12690 Delete, no longer used.
12691 (read_subrange_type): New function, mostly extracted from
12692 read_array_type().
12693 (read_array_type): Replace extracted code by call to
12694 read_subrange_type().
12695 (dwarf2_get_attr_constant_value): New function.
12696 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12697 (add_partial_symbol): Likewise.
12698 (process_die): Likewise.
12699 (new_symbol): Likewise.
12700 (read_type_die): Likewise.
12701
cf5b2f1b
AC
127022004-01-16 Andrew Cagney <cagney@redhat.com>
12703
12704 * symfile.c: Update copyright year.
12705 (compare_symbols): Delete unused function.
12706 * stabsread.c: Update copyright year.
12707 (lrs_general_complaint): Delete unused function.
12708 (ref_search_value): Ditto.
12709 (get_substring): Delete declaration.
12710 * sh64-tdep.c: Update copyright year.
12711 (sh64_get_gdb_regnum): Delete unused function.
12712 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12713 Delete unused function.
12714
d33b9831
MK
127152004-01-17 Mark Kettenis <kettenis@gnu.org>
12716
12717 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12718 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12719
7aea86e6
AC
127202004-01-16 Andrew Cagney <cagney@redhat.com>
12721
12722 Changes from Peter Schauer.
12723 * rs6000-tdep.c: Update copyright year.
12724 (rs6000_push_dummy_call): Update the stack pointer before
12725 accessing the corresponding stack region.
12726 * rs6000-nat.c: Update copyright year.
12727 (set_host_arch): Set "info.abfd" to "exec_bfd".
12728
26b0da32
MK
127292004-01-15 Mark Kettenis <kettenis@gnu.org>
12730
12731 * blockframe.c: Update copyright year.
12732 (inside_entry_func): Don't treat a zero PC specially.
12733
86fbe6cc
EZ
127342004-01-14 Elena Zannoni <ezannoni@redhat.com>
12735
12736 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12737 variable.
12738 (gcore_create_callback): Ditto. Skip any memory segment that has
12739 no permissions set.
12740
63d06c5c
DC
127412004-01-14 David Carlton <carlton@kealia.com>
12742
12743 Change symbols for C++ nested types to contain the fully qualified
12744 name, if possible. (At least in the DWARF-2 case.) Partial fix
12745 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12746 c++/895.
12747 * c-exp.y (qualified_type): Handle types nested within classes.
12748 * cp-namespace.c: Update comments.
12749 (cp_set_block_scope): Delete #if 0.
12750 (cp_lookup_nested_type): Handle types nested within classes.
12751 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12752 when appropriate.
12753 (add_partial_symbol): Add the name of the enclosing namespace to
12754 types.
12755 (pdi_needs_namespace): New.
12756 (add_partial_namespace): Tweak comment.
12757 (add_partial_structure): New.
12758 (psymtab_to_symtab_1): Initialize processing_current_prefix
12759 here...
12760 (process_die): instead of here.
12761 (read_structure_scope): Try to figure out the name of the class or
12762 namespace that the structure might be defined within.
12763 (read_enumeration): Generate fully-qualified names, if possible.
12764 (read_namespace): Don't set name to NULL.
12765 (die_specification): New.
12766 (new_symbol): Generate fully-qualified names for types.
12767 (read_type_die): Determine appropriate prefix.
12768 (determine_prefix): New.
12769 (typename_concat): New.
12770 (class_name): New.
12771 * valops.c (value_aggregate_elt): Pass NOSIDE to
12772 value_struct_elt_for_reference.
12773 (value_struct_elt_for_reference): Make static, add NOSIDE
12774 parameter, call value_maybe_namespace_elt as a last resort.
12775 (value_namespace_elt): Break out code into
12776 value_maybe_namespace_elt.
12777 (value_maybe_namespace_elt): New.
12778
87783b8b
AC
127792004-01-12 Andrew Cagney <cagney@redhat.com>
12780
12781 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12782 cooked floating-point registers.
12783 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12784 and value_to_register.
12785
6503b91e
AC
127862004-01-13 Andrew Cagney <cagney@redhat.com>
12787
12788 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12789 * gdbarch.c: Re-generate.
12790 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12791 FUNCTION_START_OFFSET.
12792 * v850-tdep.c (v850_gdbarch_init): Ditto.
12793 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12794 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12795 * sh-tdep.c (sh_gdbarch_init): Ditto.
12796 * s390-tdep.c (s390_gdbarch_init): Ditto.
12797 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12798 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12799 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12800 * mips-tdep.c (mips_gdbarch_init): Ditto.
12801 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12802 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12803 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12804 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12805 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12806 * i386-tdep.c (i386_gdbarch_init): Ditto.
12807 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12808 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12809 * frv-tdep.c (frv_gdbarch_init): Ditto.
12810 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12811 * cris-tdep.c (cris_gdbarch_init): Ditto.
12812 * avr-tdep.c (avr_gdbarch_init): Ditto.
12813 * arm-tdep.c (arm_gdbarch_init): Ditto.
12814 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12815
ea1dd7bc
DJ
128162004-01-13 Daniel Jacobowitz <drow@mvista.com>
12817
12818 * infrun.c (follow_fork_mode_ask): Remove.
12819 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12820 (follow_fork): Simplify and remove internal error for
12821 follow_fork_mode_ask.
12822 (_initialize_infrun): Update "set follow-fork-mode" help text.
12823
0f0cffd2
AC
128242004-01-13 Andrew Cagney <cagney@redhat.com>
12825
12826 * configure.in: Update copyright year.
12827 (build_warnings): Add -Wunused-label.
12828 * configure: Re-generate.
12829
de38af99
AC
128302004-01-12 Andrew Cagney <cagney@redhat.com>
12831
954a7fba
AC
12832 * exec.h (exec_ops): Make "extern".
12833
de38af99
AC
12834 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12835 the function is void.
12836 (mips_pseudo_register_write): Ditto.
12837
1a111ce3
AC
128382004-01-12 Andrew Cagney <cagney@redhat.com>
12839
12840 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12841 call. Never defined.
12842 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12843 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12844 (struct sparc_gregset, struct regcache): Ditto.
12845 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12846
48efe704
AC
128472004-01-12 Andrew Cagney <cagney@redhat.com>
12848
12849 * mi/ChangeLog: Delete file. Renamed to ...
12850 * mi/ChangeLog-1999-2003: New file.
12851 * tui/ChangeLog: Delete file. Renamed to ...
12852 * tui/ChangeLog-1998-2003: New file.
fe61caab 12853
a54124c5
MK
128542004-01-11 Mark Kettenis <kettenis@gnu.org>
12855
2ca62865
MK
12856 * sparc64nbsd-tdep.c: Include "regset.h".
12857 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12858 Remove variables.
12859 (fetch_core_registers): Remove function.
12860 (sparc64nbsd_core_fns): Remove variable.
12861 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12862 functions.
12863 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12864 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12865 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12866
ca9d58e9
MK
12867 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12868 sparc_extract_struct_value_address.
12869 (sparc32_gdbarch_init): Set extract_struct_value_address.
12870 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12871 function.
12872 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12873 return_value_on_stack.
12874
3cc87ec0
MK
12875 * NEWS: Mention that %cs and %ss have been added to the AMD64
12876 configurations
12877
5bf00f29
MK
12878 * frame.c: Update copyright year.
12879 (get_prev_frame): Improve comment.
12880
4f7ec84e
MK
12881 * sparc64fbsd-tdep.c: Include "regset.h".
12882 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12883 Remove variables.
12884 (fetch_core_registers): Remove function.
12885 (sparc64fbsd_core_fns): Remove variable.
12886 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12887 functions.
12888 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12889 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 12890 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 12891
4e7b0cd3
MK
12892 * sparcnbsd-tdep.c: Include "regset.h".
12893 (fetch_core_registers): Remove function.
12894 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12895 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12896 functions.
12897 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12898 TDEP->fpregset.
46b58ce9 12899 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 12900
a54124c5
MK
12901 * sparc-tdep.h (struct regset): Provide opaque declaration.
12902 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12903 fpregset and sizeof_fpregset members.
12904 * sparc-tdep.c (struct regset): Provide opaque declaration.
12905 (sparc_regset_from_core_section): New function.
12906 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12907 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12908 Set regset_from_core_section when appropriate.
12909
29ff87c5
MK
129102004-01-10 Mark Kettenis <kettenis@gnu.org>
12911
79b1ab3d
MK
12912 * x86-64-tdep.c (amd64_non_pod_p): New function.
12913 (amd64_classify_aggregate): Return class memory for non-POD
12914 C++ structure types.
12915
6470d250
MK
12916 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12917 argument. Use it to reserve a register if necessary.
12918 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12919 amd64_push_arguments.
12920
562c50c2
MK
12921 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12922
af233647
MK
12923 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12924 register numbers in comments.
12925 * x86-64-tdep.h: Update copyright year.
12926 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12927 Adjust for addition of %cs and %ss.
12928 * amd64fbsd-nat.c: Update copyright year.
12929 (reg_offset): Add register offsets for %cs and %ss.
12930 * amd64fbsd-tdep.c: Update copyright year.
12931 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12932 (amd64fbsd_sc_reg_offset): Likewise.
12933 * x86-64-linux-nat.c: Update copyright year.
12934 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12935 and %ss.
12936 * amd64nbsd-nat.c: Update copyright year.
12937 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12938 * amd64nbsd-tdep.c: Update copyright year.
12939 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12940 * x86-64-linux-tdep.c: Update copyright year.
12941 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12942 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12943 * regformats/reg-x86-64.dat: Add %cs and %ss.
12944
29ff87c5
MK
12945 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12946 variables to prevent long lines. Update comments to reflect
12947 reality.
12948
38d518c9
EZ
129492004-01-09 David Carlton <carlton@kealia.com>
12950
12951 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12952 * dwarf2read.c (read_namespace): Pull out name-generating code
12953 into namespace_name. Rename previous_namespace to previous_prefix
12954 and processing_current_namespace to processing_current_prefix..
12955 (namespace_name): New function.
12956 (add_partial_symbol): Substitute uses of pdi->name with
12957 actual_name.
12958 * cp-support.h: Rename processing_current_namespace to
12959 processing_current_prefix.
12960 Update copyright year.
12961 * cp-namespace.c: Rename processing_current_namespace to
12962 processing_current_prefix.
12963 Update copyright year.
fe61caab 12964
1e4728e7
AC
129652004-01-09 Andrew Cagney <cagney@redhat.com>
12966
12967 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12968
c77c642a
MK
129692004-01-09 Mark Kettenis <kettenis@gnu.org>
12970
12971 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12972 complaining.
12973 (process_one_symbol): Deal with N_PATCH stabs.
12974
b44e9041
EZ
129752004-01-09 Elena Zannoni <ezannoni@redhat.com>
12976
12977 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12978 ifdeffed code.
12979 Update copyright year.
38d518c9 12980
eccfb640
MC
129812004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12982
12983 * config/pa/tm-hppa.h: Update extern declarations for
12984 hppa32_hpux_frame_saved_pc_in_sigtramp,
12985 hppa32_hpux_frame_base_before_sigtramp, and
12986 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12987
848c5feb
MC
129882004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12989
12990 * config/pa/tm-hppah.h: Update copyright years.
12991
3cc5d663
AC
129922004-01-08 Andrew Cagney <cagney@redhat.com>
12993
12994 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12995 (mips_o32_reg_struct_has_addr): Delete function.
12996 (mips_gdbarch_init): Update.
12997 (mips_extract_struct_value_address): Delete function.
12998
bfec0b41
JJ
129992004-01-08 David Mosberger <davidm@hpl.hp.com>
13000
13001 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13002 reality.
13003
16e109ca
AC
130042004-01-07 Andrew Cagney <cagney@redhat.com>
13005
6214a8a1
AC
13006 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13007 architecture's elf flags (when available).
13008
8d5838b5
AC
13009 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13010 FPU to the start, check the MIPS FPU when looking for an old
13011 architecture.
13012 (set_mipsfpu_single_command): Update the architecture.
13013 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13014
480d3dd2
AC
13015 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13016 (mips_mask_address_p): Add "tdep" parameter.
13017 (show_mask_address, mips_addr_bits_remove): Update.
13018 (mips_dump_tdep): Update.
13019 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13020 (MIPS_STACK_ARGSIZE): Delete macro.
13021 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13022 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13023 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13024 (mips_dump_tdep): Update.
13025 (MIPS_SAVED_REGSIZE): Delete macro.
13026 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13027 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13028 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13029 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13030 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13031 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13032 (mips_pop_frame, return_value_location): Update.
13033 (mips_n32n64_return_value, mips_dump_tdep): Update.
13034
ec03c1ac
AC
13035 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13036 MIPS ABI.
13037
16e109ca
AC
13038 * mips-tdep.c: Update copyright.
13039 (mips_gdbarch_init): Merge two code blocks handling the register
13040 name and number layout.
13041
15255275
MS
130422004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13043
13044 * tracepoint.c (validate_actionline): Fix segv at EOF
13045
9f9057da
MC
130462004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13047
13048 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13049 properly for static fields.
13050
0127c0d3 130512004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 13052 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
13053
13054 * disasm.c: Update copyright to include 2004.
13055 (do_mixed_source_and_assembly): For uiout asm list
13056 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 13057 NULL and do so prior to loop. Only reset when we close off
0127c0d3 13058 the tuple/list. Move check for whether to close off the
fe61caab 13059 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
13060 on each loop iteration.
13061
5269965e
AC
130622004-01-05 Andrew Cagney <cagney@redhat.com>
13063
54f1137d
AC
13064 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13065 should be a switch case and not a label.
13066 * mips-tdep.c (mips32_next_pc): Delete unused labels
13067 "greater_equal_branch" and "less_zero_branch".
13068 * jv-valprint.c (java_print_value_fields): Delete unused label
13069 "flush_it".
13070
5269965e
AC
13071 * target.c (unpush_target): Only close a target that is in the
13072 target stack.
13073
dbc22fa1
MK
130742004-01-05 Mark Kettenis <kettenis@gnu.org>
13075
9515395e
MK
13076 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13077 address from [sp + 64] instead of %o2.
13078
dbc22fa1
MK
13079 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13080 fixes PR backtrace/1476.
13081
5439edaa
AC
130822004-01-05 Andrew Cagney <cagney@redhat.com>
13083
13084 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13085 move to start of file.
13086 * i386-tdep.h (struct regcache): Add opaque declaration.
13087 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13088 declaration.
13089 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13090 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13091 * win32-nat.c (fake_create_process): Use ISO C style definition.
13092 * stabsread.c (define_symbol): Delete #ifndef
13093 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13094 stabs_argument_has_addr call, macro never defined.
13095
19061abe
MC
130962004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13097
13098 * op50-rom.c: Delete.
13099 * w89k-rom.c: Delete.
13100 * Makefile.in: Remove references.
13101
e53bef9f
MK
131022004-01-04 Mark Kettenis <kettenis@gnu.org>
13103
13104 * x86-64-tdep.c: Update copyright year.
13105 (struct amd64_register_info): Rename from x86_64_register_info.
13106 (amd64_register_info): Rename from x86_64_register_info.
13107 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13108 (amd64_register_name): Rename from x86_64_register_name.
13109 (amd64_register_type): Rename from x86_64_register_type.
13110 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13111 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13112 (amd64_dwarf_reg_to_regnum): Rename from
13113 x86_64_dwarf_reg_to_regnum.
13114 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13115 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13116 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13117 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13118 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13119 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13120 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13121 (amd64_frame_cache): Rename from x86_64_frame_cache.
13122 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13123 (amd64_frame_prev_register): Rename from
13124 x86_64_frame_prev_register.
13125 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13126 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13127 (amd64_sigtramp_frame_cache): Rename from
13128 x86_64_sigtramp_frame_cache.
13129 (amd64_sigtramp_frame_prev_register): Rename from
13130 x86_64_sigtramp_frame_prev_register.
13131 (amd64_sigtramp_frame_unwind): Rename from
13132 x86_64_sigtramp_frame_unwind.
13133 (amd64_sigtramp_frame_sniffer): Rename from
13134 x86_64_sigtramp_frame_sniffer.
13135 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13136 (amd64_frame_base): Rename from x86_64_frame_base.
13137 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13138 (amd64_frame_align): Rename from x86_64_frame_align.
13139 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13140 (amd64_regset_from_core_section): Rename from
13141 x86_64_regset_from_core_section.
13142 (x86_64_init_abi): Update comments.
13143
fca6aa58
NR
131442004-01-04 Nick Roberts <nick@nick.uklinux.net>
13145
13146 * MAINTAINERS (write after approval): Add myself.
13147
8ada74e3
MK
131482004-01-04 Mark Kettenis <kettenis@gnu.org>
13149
13150 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13151 `float' arguments.
13152
5154b0cd
MK
131532004-01-04 Mark Kettenis <kettenis@gnu.org>
13154
13155 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13156 such that it mentions a specific version of GCC that exhibits this
13157 bug.
13158
fb316966
MK
131592004-01-03 Mark Kettenis <kettenis@gnu.org>
13160
200cc553
MK
13161 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13162 structure that has a single `float' member, store it in %f1 in
13163 addition to %f0.
13164
e226a4a0
MK
13165 * sparc-sol2-nat.c: Add missing '\'.
13166
b9d4c5ed
MK
13167 * sparc-tdep.c (sparc32_return_value): New function.
13168 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13169 Remove functions.
13170 (sparc32_gdbarch_init): Set return_value, don't set
13171 extract_return_value, store_return_value, use_struct_convention
13172 and return_value_on_stack.
13173
fb316966
MK
13174 * sparc-sol2-nat.c: Add missing ')'.
13175
1af510a8
JB
131762004-01-03 J. Brobecker <brobecker@gnat.com>
13177
13178 * infrun.c (handle_step_into_function): New function.
13179 (handle_inferior_event): Extract out some code into the new
13180 function above.
13181
5cf4d23a
JB
131822004-01-03 J. Brobecker <brobecker@gnat.com>
13183
13184 * infrun.c (handle_inferior_event): Move the declaration of
13185 real_stop_pc inside the if blocks where it is used.
13186
60af1db2
MK
131872004-01-03 Mark Kettenis <kettenis@gnu.org>
13188
13189 * sparc64-tdep.c (sparc64_16_byte_align_p)
13190 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13191 Use check_typedef to get subtypes of structures and unions.
13192 (sparc64_store_return_value): Fix calculation of the appropriate
13193 offset into VALBUF when storing a structure or union.
13194 (sparc64_return_value): New function.
13195 (sparc64_use_struct_convention): Remove function.
13196 (sparc64_init_abi): Set return_value, don't set
13197 extract_return_value, store_return_value and
13198 use_struct_convention.
13199
1a901d3f
EZ
132002004-01-03 Eli Zaretskii <eliz@elta.co.il>
13201
13202 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13203 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13204 gdb/config/alpha/xm-alphaosf.h,
13205 gdb/config/powerpc/tm-ppcle-eabi.h,
13206 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13207 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13208 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13209 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13210 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13211 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13212 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13213 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13214 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13215 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13216 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13217 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13218 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13219 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13220 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13221 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13222 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13223 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13224 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13225 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13226 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13227 Remove lines for .cvsignore files.
13228
ef52e463
JB
132292004-01-03 J. Brobecker <brobecker@gnat.com>
13230
13231 * infrun.c: Back out the previous change.
13232
cb1bf9dc
MK
132332004-01-03 Mark Kettenis <kettenis@gnu.org>
13234
f0424ef6
MK
13235 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13236 sparc-*-sunos4* to the list of REMOVED configurations.
13237
cb1bf9dc
MK
13238 * configure.tgt: Add back sparc-*-vxworks*.
13239 * remote-vxsparc.c: Remove all includes except for "defs.h",
13240 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13241 Include "sparc-tdep.h".
13242 (SPARC_R_G1): New define.
13243 (vxsparc_gregset): New variable.
13244 (ext_format_sparc): Remove extern declaration.
13245 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13246 sparc32_supply_fpregset.
13247 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13248 sparc_collect_rwindow and sparc32_collect_fpregset.
13249 * config/sparc/tm-vxworks.h: New file, based on recently removed
13250 tm-vxsparc.h.
13251 * config/sparc/vxworks.mt: New file, based on recently removed
13252 vxworks.mt.
fe61caab 13253
5e938f9f
JB
132542004-01-03 J. Brobecker <brobecker@gnat.com>
13255
13256 * infrun.c (handle_step_into_function): New function.
13257 (handle_inferior_event): Extract out some code into the new
13258 function above.
13259
386c036b
MK
132602004-01-02 Mark Kettenis <kettenis@gnu.org>
13261
13262 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13263 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13264 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13265 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13266 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13267 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13268 (sparc_nat_h): New variable.
13269 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13270 (tm-sun4os4.h): Remove dependency.
13271 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13272 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13273 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13274 sparc-tdep.o): Update dependencies.
13275 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13276 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13277 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13278 dependencies.
13279 * configure.host: Remove existing sparc-*-lynxos*,
13280 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13281 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13282 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13283 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13284 triplets.
13285 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13286 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13287 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13288 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13289 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13290 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13291 sparc64-*-solaris2* and sparc64-*-* triplets.
13292 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13293 "symtab.h" and "objfiles.h".
13294 (BIAS): Remove define.
13295 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13296 (X_DISP19): Remove macros.
13297 (sparc_fetch_instruction): Remove function.
13298 (struct gdbarch_tdep): Remove definition.
13299 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13300 (sparc_breakpoint_from_pc): Remove function.
13301 (struct sparc64_frame_cache): Remove definition.
13302 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13303 sparc64_unwind_pc): Remove functions.
13304 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13305 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13306 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13307 (sparc64_frame_cache): Change return type to `struct
13308 sparc_frame_cache *'. Simply call sparc_frame_cache.
13309 (sparc64_frame_this_id, sparc64_frame_prev_register,
13310 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13311 instead of `struct sparc64_frame_cache.
13312 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13313 sparc_analyze_control_transfer, sparc_software_single_step,
13314 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13315 _initialize_sparc64_tdep): Remove functions.
13316 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13317 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13318 macros.
13319 (sparc64_supply_gregset, sparc64_collect_gregset,
13320 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13321 (sparc64_init_abi): New function.
13322 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13323 inclusion guard. Include "sparc-tdep.h".
13324 (BIAS): Define.
13325 (r_tstate_offset, r_fprs_offset): New defines.
13326 (enum sparc_regnum): Remove defenition.
13327 (enum sparc64_regnum): Reformat.
13328 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13329 (sparc64_init_abi, sparc64_supply_gregset,
13330 sparc64_collect_gregset, sparc64_supply_fpregset,
13331 sparc64_collect_fpregset): New prototypes.
13332 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13333 Add extern declarations.
13334 (sparc64_sol2_init_abi): New prototype.
13335 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13336 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13337 prototypes.
13338 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13339 "sparnbsd-nat.h".
13340 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13341 functions.
13342 (_initialize_sparc64fbsd_nat): Remove initialization of
13343 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13344 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 13345 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
13346 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13347 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13348 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13349 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13350 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13351 (sparc64fbsd_r_y_offset): Remove variables.
13352 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13353 Make static and const.
13354 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13355 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13356 functions.
13357 (sparc64fbsd_gregset): New variable.
13358 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13359 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13360 and sparc64_supply_fpregset.
13361 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13362 (sparc64fbsd_sigtramp_frame_this_id)
13363 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13364 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13365 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13366 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13367 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13368 * sparcnbsd-tdep.c: Update copyright year. Include
13369 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13370 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13371 "value.h" and "sparcnbsd-tdep.h".
13372 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13373 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13374 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13375 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13376 defines.
13377 (sparcnbsd_gregset): New variable.
13378 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13379 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13380 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13381 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13382 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13383 variables.
13384 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13385 (sparc32nbsd_sigcontext_frame_this_id)
13386 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13387 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13388 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13389 (sparcnbsd_get_longjmp_target_32,
13390 sparcnbsd_get_longjmp_target_64): Remove functions.
13391 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13392 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13393 sparcnbsd_init_elf): Remove.
13394 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13395 (sparcnbsd_elf_init_abi): New functions.
13396 (_initialize_sparcnbsd_tdep): New prototype.
13397 (_initialize_sparnbsd_tdep): Update.
13398 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13399 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13400 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13401 * config/sparc/linux.mh: Update comment.
13402 (XM_FILE, HOST_IPC): Remove variables.
13403 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13404 sparc-linux-nat.o.
13405 * config/sparc/linux.mt: Update comment.
13406 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13407 * config/sparc/nbsd.mt: Reformat.
13408 * config/sparc/nbsd64.mh: Update comment.
13409 (NATDEPFILES): Add sparc-nat.o.
13410 * config/sparc/nbsd64.mt: Update comment.
13411 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13412 (TM_FILE): Set to tm-nbsd.h.
13413 * config/sparc/nbsdelf.mh: Update comment.
13414 (NATDEPFILES): Add sparc-nat.o.
13415 (XM_FILE): Delete.
13416 * config/sparc/nbsdaout.mh: Update comment.
13417 (NATDEPFILES): Add sparc-nat.o
13418 (XM_FILE): Delete.
13419 * config/sparc/nm-linux.h: Update copyright year. Don't include
13420 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13421 inclusion.
13422 (KERNEL_U_SIZE): Remove define.
13423 (kernel_u_size): Remove prototype.
13424 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13425 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13426 "regcache.h".
13427 (CHILD_PREPARE_TO_STORE): Remove define.
13428 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13429 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13430 sparcnbsd-nat.c: Rewrite files.
13431 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13432 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13433 sparcnbsd-tdep.h: Remove files.
13434 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13435 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13436 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13437 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13438 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13439 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13440 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13441 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13442 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13443 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13444 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13445 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13446 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13447 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13448 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13449 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13450 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13451 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13452 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13453
ee84457a
AC
134542004-01-02 Andrew Cagney <cagney@redhat.com>
13455
13456 From 2003-12-18 Kazuhiro Inaoka:
13457 * configure.host: Add m32r-linux target.
13458
0bc2134e
MC
134592004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13460
13461 * top.c (print_gdb_version): Update year to 2004.
13462
89a72f9c
MM
134632004-01-02 Mark Mitchell <mark@codesourcery.com>
13464
13465 * MAINTAINERS: Add myself to the write-after-approval category.
13466
86b013ed
DJ
134672004-01-02 Daniel Jacobowitz <drow@mvista.com>
13468
13469 From Bernardo Innocenti <bernie@develer.com>:
13470 * configure.tgt: Add uClinux target.
13471
e42c9534
AC
134722004-01-02 Andrew Cagney <cagney@redhat.com>
13473
13474 * utils.c (do_my_cleanups): Make static, add forward declaration.
13475 * defs.h (do_my_cleanups): Delete declaration.
13476
162467d3
EZ
134772004-01-02 Eli Zaretskii <eliz@elta.co.il>
13478
13479 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13480 bfd/ChangeLog-0203.
13481
78434e59
MK
134822004-01-02 Mark Kettenis <kettenis@gnu.org>
13483
13484 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13485 in <machine/reg.h>.
13486 * configure, config.in: Regenerate.
13487
48efe704
AC
13488For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13489tui/ChangeLog-1998-2003.
c906108c
SS
13490\f
13491Local Variables:
13492mode: change-log
13493left-margin: 8
13494fill-column: 74
13495version-control: never
13496End:
This page took 1.388227 seconds and 4 git commands to generate.