* mipsread.c: Cleanup coding style.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
303d2914
MK
12004-10-30 Mark Kettenis <kettenis@gnu.org>
2
3 * mipsread.c: Cleanup coding style.
4 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
5 (mipscoff_symfile_finish): Remove prototypes.
6
72004-10-29 Mark Kettenis <kettenis@gnu.org>
8
9 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
10 (mips_mdebug_frame_cache, mips16_scan_prologue)
11 (mips32_scan_prologue, mips_stub_frame_cache)
12 (heuristic_proc_start, heuristic_proc_desc)
13 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
14 (mips_n32n64_return_value, mips_o32_push_dummy_call)
15 (mips_o32_return_value, mips_o64_push_dummy_call)
16 (mips_step_skips_delay, mips_skip_trampoline_code)
17 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
18 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
19 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
20 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
21 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
22 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
23 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
24 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
25 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
26 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
27 ZERO_REGNUM.
28 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
29 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
30 ZERO_REGNUM.
31 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
32 A0_REGNUM.
33 * mipsnbsd-nat.c: Include "mips-tdep.h".
34 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
35 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
36
1c8831c5
AC
372004-10-29 Andrew Cagney <cagney@gnu.org>
38
39 * stack.c (parse_frame_specification_1): New function based on
40 parse_frame_specification. Add message and selected_frame_p
41 paramters. Truely always return non-NULL.
42 (parse_frame_specification): Call parse_frame_specification_1.
43 (frame_info): Update. Eliminate target_has_stack check.
44 (select_frame_command): Update.
45
b04f3ab4
AC
462004-10-29 Andrew Cagney <cagney@gnu.org>
47
48 * frame.h (get_selected_frame): Add message parameter.
49 * frame.c (get_selected_frame): Add and use message parameter.
50 * stack.c (current_frame_command, return_command, locals_info)
51 (catch_info, args_info, up_silently_base, down_silently_base): Use
52 get_selected_frame with an explicit message.
53 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
54 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
55 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
56 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
57 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
58 * breakpoint.c: Update.
59
602004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
61
62 * trad-frame.c (trad_frame_get_prev_register): Use
63 frame_unwind_register instead of frame_register_unwind, do not
64 recurse the register's location.
65 * xstormy16-tdep.c (xstormy16_frame_prev_register):
66 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
67 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
68 * sh-tdep.c (sh_frame_prev_register): Ditto.
69 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
70 * i386-tdep.c (i386_frame_prev_register): Ditto.
71 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
72 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
73
7a952542
MK
742004-10-28 Mark Kettenis <kettenis@jive.nl>
75
c18c06be
MK
76 * proc-events.c: Fix several coding-style issues. Consistently
77 use #ifdef instead of #if defined().
78 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
79 ARRAY_SIZE.
80 (_initialize_proc_events): New prototype.
81
7a952542
MK
82 * proc-why.c: Fix several coding-style issues.
83 (proc_prettyfprint_why): Use ARRAY_SIZE.
84
fcad0fa4
JB
852004-10-27 Jim Blandy <jimb@redhat.com>
86
87 * remote.c (fetch_register_using_p): Construct 'p' packet in a
88 manner independent of the host byte order.
89
c163184f
MK
902004-10-27 Mark Kettenis <kettenis@gnu.org>
91
92 * mips-tdep.c (id_delayed): Remove prototype.
93
9c46b6f0
MK
942004-10-26 Mark Kettenis <kettenis@gnu.org>
95
96 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
97 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
98 to enum with register numbers.
99 (enum mips_insn_size): New enum.
100
0d0266c6
AC
1012004-10-26 Andrew Cagney <cagney@gnu.org>
102
e7d6a6d2
AC
103 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
104 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
105 (mips_gdbarch_init): Update.
106 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
107
c5115f39
AC
108 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
109 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
110 IN_SOLIB_RETURN_TRAMPOLINE.
111 * mips-tdep.c (mips_dump_tdep): Do not print
112 IN_SOLIB_RETURN_TRAMPOLINE.
113 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
114 (mips_gdbarch_init): Update.
115
0d0266c6
AC
116 * mips-tdep.h (mips_software_single_step): Move to here ...
117 * config/mips/tm-mips.h: ... from here.
118 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
119 (SOFTWARE_SINGLE_STEP): Delete.
120 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
121
156a53ca
AC
1222004-10-25 Andrew Cagney <cagney@gnu.org>
123
124 * NEWS: Add Changes since GDB 6.3 section.
125
f27cf670
AS
1262004-10-23 Andreas Schwab <schwab@suse.de>
127
156a53ca
AC
128 * ada-lang.c (grow_vect): Return the new array instead of
129 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
130 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
131
121d8485
UW
1322004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
133
134 * s390-tdep.c (enum pv_boolean): Remove.
135 (pv_is_array_ref): Remove.
136 (s390_on_stack): Remove.
137 (S390_NUM_SPILL_SLOTS): Remove.
138 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
139 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
140 (s390_store): Track all stores of orginal incoming registers to the
141 stack constant offsets relative to the CFA, instead of only tracking
142 stores into specific spill slots.
143 (s390_load): Likewise.
144 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
145 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
146 defined as call-saved by the ABI.
147 (s390_push_dummy_call): Use bottom of dummy call argument save area
148 as return value, not the top. Do not store to the called function's
149 register save area.
150 (s390_unwind_dummy_id): Adapt accordingly.
151
0a6ddd08
AC
1522004-10-23 Andrew Cagney <cagney@gnu.org>
153
154 * objfiles.h (struct objfile): Rename obj_private to
155 deprecated_obj_private, sym_private to deprecated_sym_private, and
156 sym_stab_info to deprecated_sym_stab_info.
157 * gdb-stabs.h: Update.
158 * elfread.c: Update.
159 * dbxread.c: Update.
160 * coffread.c: Update.
161 * xcoffread.c: Update.
162 * symfile.c: Update.
163 * somread.c: Update.
164 * nlmread.c: Update.
165 * mdebugread.c: Update.
166 * hpread.c: Update.
167 * coffread.c: Update.
168
abc08782
MK
1692004-10-23 Mark Kettenis <kettenis@gnu.org>
170
171 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
172 * configure.host: Add mips64*-*-openbsd*.
173 * configure.tgt: Add mips64*-*-openbsd*.
174 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
175 mips64obsd-tdep.c.
176 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
177 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
178
fc062ac6
JB
1792004-10-21 Joel Brobecker <brobecker@gnat.com>
180
181 * symtab.c (symbol_search_name): Minor reformatting.
182
5bccb4d1
JB
1832004-10-20 Joel Brobecker <brobecker@gnat.com>
184
185 * symtab.h: Fix typo in comment.
186
a738430d
MK
1872004-10-19 Mark Kettenis <kettenis@gnu.org>
188
189 * dwarf2read.c (struct comp_unit_head): Fix coding style.
190 (dwarf_decode_line_header): Likewise.
191
f2cb65ca
MC
1922004-10-19 Michael Chastain <mec.gnu@mindspring.com>
193
194 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
195
09e55376
AC
1962004-10-19 Andrew Cagney <cagney@gnu.org>
197
198 GDB 6.3 branch created.
199 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
200
bc5f45f8
JB
2012004-10-15 Joel Brobecker <brobecker@gnat.com>
202
203 * dwarf2read.c (set_cu_language): Set language to Ada for
204 DW_LANG_Ada83 and DW_LANG_Ada95.
205
2941da8c
MC
2062004-10-15 Michael Chastain <mec.gnu@mindspring.com>
207
208 From Andreas Schwab <schwab@suse.de>:
209 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
210 for xmalloc and xrealloc.
211
34a17005
AC
2122004-10-15 Andrew Cagney <cagney@gnu.org>
213
214 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
215 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
216 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
217 Update dependencies.
218
714e53ab
PH
2192004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
220
221 * ada-lang.c (ada_lookup_symbol): Correct comment.
222 (ada_evaluate_subexp): Change error message for
223 OP_FUNCALL case so as not to indicate an internal error.
224
2252004-10-15 Joel Brobecker <brobecker@gnat.com>
226
227 Committed by Paul Hilfinger.
228 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
229 type sizes in XVE/XVU types, and emit a warning when that happens,
230 instead of rounding up the size of the resulting type.
231 Some minor reformatting.
232 (ada_is_aligner_type): Do not consider a type as an aligner type
233 if there is a corresponding XVS type as well.
234 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
235 have several levels of pointer indirection to the array.
236
2372004-10-15 Jerome Guitton <guitton@gnat.com>
238
239 Committed by Paul Hilfinger.
240 * ada-lang.c (check_size): New function.
241 (coerce_unspec_val_to_type): call check_size to make sure
242 that the object size is reasonable.
243 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
244 Implements the case when we get a reference when we evaluate
245 the expression of one of the bounds of the slice.
246 (ada_value_struct_elt): when a packed array field is
247 a reference, use ada_coerce_ref to dereference it; use
248 ada_value_ind only if it is a pointer.
249
29639122
JB
2502004-10-15 Joel Brobecker <brobecker@gnat.com>
251
252 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
253 a bit to avoid the necessity of an advance declaration. Remove
254 declaration.
255 (set_reg_offset): Move implemenation up.
256 (mips16_get_imm): Likewise.
257 (mips16_scan_prologue): Likewise.
258 (reset_saved_regs): Likewise.
259 (mips32_scan_prologue): Likewise.
260
a65bbe44
JB
2612004-10-14 Joel Brobecker <brobecker@gnat.com>
262
263 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
264 Remove sp as a parameter, compute it internally instead. Move
265 prologue scanning limit from heuristic_proc_desc to here.
266 (mips16_scan_prologue): Likewise.
267 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
268 by call to mips16_scan_prologue.
269 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
270 by call to mips32_scan_prologue.
271 (heuristic_proc_desc): Remove code that's no longer necessary.
272 Update calls to mips16_scan_prologue and mips32_scan_prologue.
273 (mips_skip_prologue): Update calls to mips16_scan_prologue
274 and mips32_scan_prologue.
275
1c645fec
JB
2762004-10-14 Joel Brobecker <brobecker@gnat.com>
277
278 * mips-tdep.c (mips16_scan_prologue): Merge code from
279 mips16_skip_prologue. Now return the address of the first
280 instruction past the function prologue.
281 (mips16_skip_prologue): Remove, no longer necessary.
282 (mips_skip_prologue): Replace call to mips16_skip_prologue
283 by call to mips16_scan_prologue.
284
98b4dd94
JB
2852004-10-14 Joel Brobecker <brobecker@gnat.com>
286
287 * mips-tdep.c (mips32_scan_prologue): Merge code from
288 mips32_skip_prologue. Now return the address of the first
289 instruction past the function prologue.
290 (mips32_skip_prologue): Remove. No longer necessary.
291 (mips16_skip_prologue): Add parameter end_pc instead of
292 computing it.
293 (mips_skip_prologue): Compute the upper limit for the
294 prologue scanning. Update call to mips16_skip_prologue.
295 Replace call to mips32_skip_prologue by call to
296 mips32_scan_prologue.
297
ad4c72d2
MK
2982004-10-14 Mark Kettenis <kettenis@gnu.org>
299
dfaf8edb
MK
300 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
301 NetBSD system call stubs that store %rp in the ERP slot of the
302 stack frame.
303
3e3a28f1
MK
304 * source.c: Always define O_BINARY to 0 if not defined already.
305 (openp): Unconditionally use O_BINARY.
306
ad4c72d2
MK
307 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
308 * event-top.c (gdb_readline2): Likewise.
309
52bd1401
OF
3102004-10-14 Orjan Friberg <orjanf@axis.com>
311
312 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
313 deprecated_add_core_fns which was removed by mistake.
314
e0e25c6c
KB
3152004-10-13 Kevin Buettner <kevinb@redhat.com>
316
317 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
318 references to deprecated_registers[] with equivalent code.
319
9f335945
KB
3202004-10-13 Kevin Buettner <kevinb@redhat.com>
321
322 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
323 ``deprecated_registers'' with equivalent code. Use gdb_assert()
324 instead of explicit test and print statement.
325
06c2338d
MK
3262004-10-12 Mark Kettenis <kettenis@gnu.org>
327
1b9445c2
MK
328 * sparc-nat.c: Include "inf-ptrace.h".
329 (sparc_target): New function.
330 * sparc-nat.h: Update copyright year.
331 (sparc_target): New prototype.
332 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
333 (_initialize_sparcnbsd_nat): Construct and add target vector.
334 * sparc64nbsd-nat.c: Include "target.h".
335 (_initialize_sparc64nbsd_nat): Construct and add target vector.
336 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
337 Update dependencies.
338 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
339 inftarg.o, add inf-ptrace.o.
340 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
341 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
342 (NAT_FILE): Set to nm-bsd.h.
343 (LOADLIBES): New variable.
344 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
345 infarg.o, add inf-ptrace.o.
346 * config/sparc/nm-nbsdaout.h: Remove file.
347 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
348 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
349 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
350
06c2338d
MK
351 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
352 "fopen-same.h". Update comment.
353
3303a276
MK
3542004-10-11 Mark Kettenis <kettenis@gnu.org>
355
356 * i386gnu-nat.c: Include "gdb_string.h".
357 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
358 registers when the floating-point state isn't initialized.
359 * Makefile.in (i386gnu-nat.o): Update dependencies.
360
04c663e3
DA
3612004-10-11 David Anderson <davea@sgi.com>
362
363 * regcache.c (regcache_raw_read): Comment was missing "to".
364 Extraneous ' removed.
365 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
366 comment now describes use.
367
a5f6c8f5
OF
3682004-10-11 Orjan Friberg <orjanf@axis.com>
369
370 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
371 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
372 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
373 (cris_sigtramp_frame_sniffer): New functions.
374 (cris_gdbarch_init): Hook in signal trampoline unwinder.
375 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
376 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
377 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
378 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
379 command.
380 (cris_version_update): Remove, replace with ...
381 (set_cris_version): New function.
382 (struct gdbarch_tdep, cris_mode, cris_mode_update)
383 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
384 (_initialize_cris_tdep): Remove CRIS mode command.
385 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
386 cris-fpless-backtrace command.
387 (cris_scan_prologue): Fix prologue scanning limit.
388 (cris_register_type): Update to reflect actual registers.
389 (cris_register_bytes_ok) Remove.
390 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
391 Remove set_gdbarch_deprecated_register_size,
392 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
393
77109804
AC
3942004-10-10 Andrew Cagney <cagney@gnu.org>
395
396 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
397 comment.
398
25652d4f
JB
3992004-10-10 Joel Brobecker <brobecker@gnat.com>
400
401 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
402
1e05a7bf
JB
4032004-10-10 Joel Brobecker <brobecker@gnat.com>
404
405 * mips-tdep.c (mips16_scan_prologue): Renames
406 mips16_heuristic_proc_desc. Update comment.
407 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
408 (heuristic_proc_desc): Update calls to the 2 functions above.
409
c68a4142
JB
4102004-10-10 Joel Brobecker <brobecker@gnat.com>
411
412 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
413 Update comments. Also immediately return empty cache when the start
414 address of our function could not be found.
415 (mips_insn32_frame_cache): Likewise.
416
0fce0821
JB
4172004-10-10 Joel Brobecker <brobecker@gnat.com>
418
419 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
420 (mips_insn16_frame_cache): Pass frame cache in call to
421 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
422 Remove code that became redundant as a consequence.
423 (mips32_heuristic_proc_desc): No longer compute a fake
424 procedure descriptor. Compute the full frame cache instead.
425 Some minor comment reformatting.
426
b672553e
JB
4272004-10-10 Jim Blandy <jimb@redhat.com>
428
429 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
430 reader, tracing bytecode stuff): Remove self.
431
9cc52bde
MK
4322004-10-10 Mark Kettenis <kettenis@gnu.org>
433
cc9784b6
MK
434 * sparc64-linux-tdep.c: Update copyright year. Don't include
435 "solib-svr4.h".
436 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
437 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
438 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
439
ee8aef23
MK
440 * sparc-linux-tdep.c: Update copyright year.
441 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
442 to struct frame_info *. Use safe_frame_unwind_memory instead of
443 deprecated_read_memory_nobpt.
444 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
445 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
446 changed signature of sparc_linux_sigtramp_start.
447 (sparc32_linux_pc_in_sigtramp): Remove function.
448 (sparc32_linux_sigtramp_p): New function.
449 (sparc32_linux_sigtramp_frame_sniffer): Use
450 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
451
bc73f8cc
MK
452 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
453 Remove function.
454 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
455
a2249542
MK
456 * ada-lang.c (lim_warning): Re-implement as a varargs function.
457 (decode_packed_array_type, value_subscript_packed)
458 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
459 argument in call to lim_warning.
460
9cc52bde
MK
461 * configure.in: Really disable the TUI if an enhanced curses
462 library isn't found.
463 * configure: Regenerate.
464
151fc45b
MK
4652004-10-09 Mark Kettenis <kettenis@gnu.org>
466
467 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
468 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
469 * config/i386/nm-nbsdaout.h: Remove file.
470 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
471 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
472 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
473 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
474 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
475 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
476 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
477 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
478 (ldd, ld_un, ld_2): Remove defines.
479 * config/i386/nm-obsd.h: Likewise.
480
375c0479
PH
4812004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
482
483 * ada-lex.l: Remove useless rule whose right-context clause
484 causes unreferenced static function warning for yyrealloc.
485 (ada_flex_use): Remove the artificial reference to yyrealloc.
486
c8e73a31
AC
4872004-10-08 Andrew Cagney <cagney@gnu.org>
488
489 * target.h (struct target_ops): Rename to_xfer_memory to
490 deprecated_xfer_memory.
491 * target.c: Update.
492 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
493 * wince.c: Update.
494 * win32-nat.c: Update.
495 * v850ice.c: Update.
496 * uw-thread.c: Update.
497 * thread-db.c: Update.
498 * sol-thread.c: Update.
499 * remote.c: Update.
500 * remote-vx.c: Update.
501 * remote-st.c: Update.
502 * remote-sim.c: Update.
503 * remote-sds.c: Update.
504 * remote-rdp.c: Update.
505 * remote-rdi.c: Update.
506 * remote-mips.c: Update.
507 * remote-m32r-sdi.c: Update.
508 * remote-e7000.c: Update.
509 * procfs.c: Update.
510 * ppc-bdm.c: Update.
511 * nto-procfs.c: Update.
512 * monitor.c: Update.
513 * linux-nat.c: Update.
514 * inftarg.c: Update.
515 * hpux-thread.c: Update.
516 * go32-nat.c: Update.
517 * gnu-nat.c: Update.
518 * exec.c: Update.
519 * corelow.c: Update.
520 * bsd-kvm.c: Update.
521 * aix-thread.c: Update.
522
aa869812
AC
5232004-10-08 Andrew Cagney <cagney@gnu.org>
524
525 * target.c (debug_target): Move to near start of file.
526 (target_stopped_data_address_p): Re-org logic, add casts.
527
8dcef9cf
MK
5282004-10-02 Mark Kettenis <kettenis@gnu.org>
529
530 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
531 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
532 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
533 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
534 New defines.
535
4aa7a7f5
JJ
5362004-10-08 Jeff Johnston <jjohnstn@redhat.com>
537
538 * target.h (to_stopped_data_address): Change prototype to
539 take a CORE_ADDR pointer and return an int.
540 * target.c (update_current_target): Change to_stopped_data_address
541 to match new prototype.
542 (debug_to_stopped_data_address): Change appropriately.
543 * breakpoint.c (bpstat_stop_status): Change call to
544 target_stopped_data_address to use new prototype.
545 * frv-tdep.c (frv_have_stopped_data_address): New function.
546 (frv_stopped_data_address): Change to new prototype and
547 functionality.
548 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
549 prototype and functionality.
550 (ia64_stopped_by_watchpoint): New function.
551 * i386-nat.c (i386_stopped_data_address): Change to new
552 prototype and functionality.
553 (i386_stopped_by_watchpoint): New function.
554 * remote.c (remote_stopped_data_address): Change to new prototype
555 and functionality.
556 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
557 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
558 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
559 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
560 new i386_stopped_by_watchpoint function.
561 (i386_stopped_by_watchpoint): New prototype.
562 (i386_stoppped_data_address): Change to new prototype.
563 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
564 new ia64_stopped_by_watchpoint function.
565 (ia64_stopped_by_watchpoint): New prototype.
566 (ia64_stopped_data_address): Ditto.
567
61ee279c
PH
5682004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
569
570 * ada-typeprint.c (ada_print_type): Use int_string for printing
571 modulus of modular type.
572 * ada-lang.h (ada_modulus): Change return type to unsigned.
573 * ada-lang.c (ada_language_arch_info): Correct type of
574 string_char_type.
575 (ada_modulus): Return unsigned result.
576 (ada_lookup_symbol): Remove user disambiguation and modify comment
577 accordingly.
578
5792004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
580
581 Committed by Paul Hilfinger.
582 * ada-lang.c (decode_packed_array): On big-endian targets,
583 left-justify the value if it comes with a modular type.
584
5852004-10-08 Joel Brobecker <brobecker@gnat.com>
586
587 Committed by Paul Hilfinger.
588 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
589 (is_name_suffix): Add support for "___JM" suffixes.
590 (ada_check_typedef): Renames ada_completed_type.
591 Update all users of CHECK_TYPEDEF, check_typedef, and
592 ada_complete_type to call ada_check_typedef.
593 * ada-typeprint.c: Likewise.
594 * ada-valprint.c: Likewise.
595
b6c25a56
CV
5962004-10-08 Corinna Vinschen <vinschen@redhat.com>
597
598 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
599
83ca6a46
NR
6002004-10-08 Nick Roberts <nickrob@snap.net.nz>
601
602 * MAINTAINERS: Update e-mail address.
603
1fd8cd20
DJ
6042004-10-07 Daniel Jacobowitz <dan@debian.org>
605
606 From Maciej W. Rozycki <macro@mips.com>:
607 * mips-tdep.c (mips32_next_pc): Check the register's contents,
608 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
609
cea15572
KI
6102004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
611
612 * m32r-tdep.c (decode_prologue): Support functions written
613 in assembler language. Recognize trap instructions as the
614 end of prologue.
615 (m32r_frame_unwind_cache): Ditto.
616 (m32r_skip_prologue): Extend search limit. Quit analyzing
617 prologue if pc's location is not readable.
618
23485554
PH
6192004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
620
621 * Makefile.in (.l.c): Do conversions of names of alloc and free
622 functions that are done for .y.c files, plus special one
623 for yy_flex_realloc. Also, correct missing-file tests here.
624 * ada-lex.l (malloc, free): Remove macros.
625 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
626 xrealloc.
627 (ada_flex_use): Dummy definition to remove warnings about unused
628 functions.
629 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
630 to suppress warning.
631
c0409442
CV
6322004-10-06 Corinna Vinschen <vinschen@redhat.com>
633
634 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
635 RETURN_VALUE.
636 (sh_return_value_fpu): Ditto for CPUs with FPU.
637 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
638 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
639 Install sh_return_value_nofpu resp. sh_return_value_fpu as
640 RETURN_VALUE functions.
641
9bed62d7
CV
6422004-10-06 Corinna Vinschen <vinschen@redhat.com>
643
644 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
645 (sh_pseudo_register_write): Ditto.
646
03131d99
CV
6472004-10-06 Corinna Vinschen <vinschen@redhat.com>
648
649 * sh-tdep.c (IS_MACL_STS): New define.
650 (IS_MOVI20): Ditto.
651 (IS_MACL_LDS): Ditto.
652 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
653 instructions in prologue.
654 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
655 instructions in epilogue.
656
da962468
CV
6572004-10-06 Corinna Vinschen <vinschen@redhat.com>
658
659 * sh-tdep.c (SH_NUM_REGS): Define as 67.
660 (sh_sh_register_name): Add eight empty register names.
661 (sh_sh3_register_name): Ditto.
662 (sh_sh3e_register_name): Ditto.
663 (sh_sh2e_register_name): Ditto.
664 (sh_sh2a_register_name): New function, defining SH2A register set.
665 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
666 in nofpu case.
667 (sh_sh_dsp_register_name): Add eight empty register names.
668 (sh_sh3_dsp_register_name): Ditto.
669 (sh_sh4_register_name): Ditto.
670 (sh_sh4_nofpu_register_name): Ditto.
671 (sh_sh4al_dsp_register_name): Ditto.
672 (sh2a_show_regs): New function.
673 (sh2a_nofpu_show_regs): New function.
674 (sh_sh2a_register_type): New function.
675 (do_bank_register_info): New function.
676 (sh_print_pseudo_register): Call do_bank_register_info.
677 Call sh_print_pseudo_register for valid "bank" register.
678 (sh_sh2a_register_sim_regno): New function.
679 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
680 Increment pseudo register count by one for all sh variants with
681 pseudo registers to accomodate pseudo bank register.
682 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
683 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
684 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
685 Increment pseudo register numbers.
686
1326e61b
CV
6872004-10-06 Corinna Vinschen <vinschen@redhat.com>
688
689 * dwarf2read.c (read_subroutine_type): Call make_function_type
690 instead of lookup_function_type.
691
146c42e3
JB
6922004-10-05 Jim Blandy <jimb@redhat.com>
693
694 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
695 (Previous change missed some uses.)
696
1df84f13
AC
6972004-10-05 Andrew Cagney <cagney@gnu.org>
698
699 * target.h (deprecated_child_ops): Rename child_ops.
700 * wince.c: Update copyright. Rename child_ops.
701 * win32-nat.c: Rename child_ops.
702 * target.c: Rename child_ops.
703 * rs6000-nat.c: Rename child_ops.
704 * linux-nat.c: Rename child_ops.
705 * infttrace.c: Rename child_ops.
706 * inftarg.c: Rename child_ops.
707 * infptrace.c: Rename child_ops.
708 * hppah-nat.c: Update copyright. Rename child_ops.
709 * hpux-thread.c: Update copyright. Rename child_ops.
710
21e3b9b9
DJ
7112004-10-05 Daniel Jacobowitz <dan@debian.org>
712
713 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
714
de83afe7
AC
7152004-10-05 Andrew Cagney <cagney@gnu.org>
716
717 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
718
10b3939b
DJ
7192004-10-05 Daniel Jacobowitz <dan@debian.org>
720
721 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
722 (die_ref_table): Remove.
723 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
724 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
725 the usage of this type.
726 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
727 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
728 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
729 (dwarf2_create_include_psymtab): Update comment.
730 (find_partial_die): Remove third argument. Remove unreachable call
731 to error ().
732 (dwarf2_find_containing_comp_unit): Update comments. Change one
733 assertion to an error. Remove an unreachable error.
734 (dwarf2_find_comp_unit): Update comments.
735 (type_at_offset): Remove dead code.
736 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
737 (store_in_ref_table): Add CU argument.
738 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
739 inter-compilation-unit references.
740 (load_full_comp_unit, process_full_comp_unit): New functions, based
741 on psymtab_to_symtab_1.
742 (psymtab_to_symtab_1): Use them.
743 (dwarf2_add_dependence): New function.
744 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
745 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
746 (partial_die_parent_scope, guess_structure_name): Update for changes
747 to find_partial_die.
748 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
749 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
750 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
751 (read_die_and_children): Update call to store_in_ref_table.
752 (do_free_die_list_cleanup): Remove.
753 (fixup_partial_die): Update for changes to find_partial_die.
754 (read_full_die): Handle queueing absolute references.
755 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
756 (dwarf2_attr, die_specification, die_type)
757 (die_containing_type, dwarf2_extension): Update calls to
758 follow_die_ref.
759 (dump_die): Update DW_FORM_ref* handling.
760 (dwarf2_get_ref_die_offset): Likewise.
761 (free_one_comp_unit): Release the dies list.
762 (dwarf2_mark_helper): New function.
763 (dwarf2_mark): Use it.
764
998bdd68
MK
7652004-10-05 Mark Kettenis <kettenis@jive.nl>
766
767 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
768 when writing to memory.
769
14588880
KI
7702004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
771
772 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
773 (m32r_extract_struct_value_address): Delete function.
774 (m32r_return_value): New function.
775 (m32r_gdbarch_init): Instead of store_return_value,
776 extract_return_value, deprecated_extract_struct_value_address
777 and deprecated_use_struct_convention, set return_value.
778
dd5e6932
DJ
7792004-10-03 Daniel Jacobowitz <dan@debian.org>
780
781 * dwarf2read.c (read_subrange_type): Add comment for variable
782 sized arrays.
783
7dc1ef8d
PH
7842004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
785
786 * Makefile.in (.l.c): Modify rule for compatibility with recent
787 versions of flex, and remove most command-line options.
788 * ada-lex.l: Add %options line in place of -I -i and -s command-line
789 options.
790
1f8173e6
PH
7912004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
792
793 Turn on initial Ada support (mainly expression evaluation).
794
795 * Makefile.in (SFILES): Remove ada-tasks.c.
796 (HFILES_NO_SRCDIR): Add ada-lang.h.
797 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
798 (YYOBJ): Add ada-exp.o.
799 (rule .l.c): Generalize to not mention ada.
800 * symtab.c: Include ada-lang.h.
801 (symbol_natural_name, symbol_demangled_name)
802 (symbol_search_name): Add Ada case.
803
cb85a953
AC
8042004-10-01 Andrew Cagney <cagney@gnu.org>
805
3f3db248
AC
806 * Makefile.in (COMMON_OBS): Add inf-child.o.
807 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
808 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
809 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
810 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
811 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
812 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
813 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
814 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
815 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
816 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
817 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
818 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
819 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
820
cb85a953
AC
821 * target.c (xfer_using_stratum): Change return type to LONGEST.
822 On each iteration offset, readbuf and writebuf.
823 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
824 partial_length, and read/modify/write predicate, update comments.
825 Pass buffer.word to ptrace write.
826
963a6417
PH
8272004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
828
829 * symfile.c (init_filename_language_table): Add extensions for
830 Ada.
831 * defs.h (enum language): Add language_ada.
832 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
833 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
834 (add_symbols_from_enclosing_procs): Make a no-op for now.
835 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
836 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
837 (find_line_in_linetable, find_next_line_in_linetable)
838 (read_all_symtabs, is_plausible_func_for_line)
839 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
840 (is_runtime_sym_defined, check_size): Remove declaration.
841 (function_name_from_pc, ada_translate_error_message)
842 (ada_lookup_minimal_symbol): Remove definition.
843 (ada_add_block_symbols): Remove useless label.
844 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
845 useless declaration.
846 (ada_is_exception_sym): Likewise.
847
9b32d526
KI
8482004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
849
850 Add m32r-linux support.
851 * configure.tgt: Add m32r*-*-linux*.
852 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
853 and m32r-linux-tdep.c.
854 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
855 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
856 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
857 m32r-linux-tdep.c.
858 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
859 config/m32r/linux.mh, config/m32r/linux.mt,
860 config/m32r/nm-linux.h: New files.
861
2de118d3
JB
8622004-09-30 Joel Brobecker <brobecker@gnat.com>
863
864 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
865 (mips32_fetch_instruction): Remove, unused.
866
a9fe69d1
JB
8672004-09-30 Joel Brobecker <brobecker@gnat.com>
868
869 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
870 conditions that will always be true.
871
bc8ffc12
MK
8722004-09-30 Mark Kettenis <kettenis@gnu.org>
873
ba0cd111
MK
874 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
875 (vaxbsd_fetch_inferior_registers): Rename from
876 fetch_inferior_registers. Make static.
877 (vaxbsd_store_inferior_registers): Rename from
878 store_inferior_registers. Make static.
879 (_initialize_vaxbsd_nat): Construct and add target vector.
880 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
881 inftarg.o. Add inf-child.o and inf-ptrace.o.
882 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
883 inftarg.o. Add inf-child.o and inf-ptrace.o.
884 (NAT_FILE): Remove.
885 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
886 inftarg.o. Add inf-child.o and inf-ptrace.o.
887 (NAT_FILE): Remove.
888 * Makefile.in (vaxbsd-nat.o): Update dependencies.
889
bc8ffc12
MK
890 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
891 (m88kbsd_fetch_inferior_registers): Rename from
892 fetch_inferior_registers. Make static.
893 (m88kbsd_store_inferior_registers): Rename from
894 store_inferior_registers. Make static.
895 (_initialize_m88kbsd_nat): New prototype and function.
896 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
897 inftarg.o. Add inf-child.o and inf-ptrace.o.
898 (NAT_FILE): Remove.
899 * Makefile.in (m88kbsd-nat.o): Update dependencies.
900
27394598
AC
9012004-09-30 Andrew Cagney <cagney@gnu.org>
902
903 * target.c (target_xfer_partial): New function.
904 (target_read_memory_partial, target_write_memory_partial)
905 (default_xfer_partial, target_read_partial, target_write_partial)
906 (xfer_using_stratum): Use.
907 (debug_to_xfer_partial): Delete function.
908 (setup_target_debug): Do not override to_xfer_partial.
909
74a4fe32
MK
9102004-09-30 Mark Kettenis <kettenis@chello.nl>
911
912 * fork-child.c: Update copyright year. Fix coding style.
913
982526a1
MK
9142004-09-29 Mark Kettenis <kettenis@gnu.org>
915
916 * defs.h (msavestring, mstrsave): Remove prototypes.
917 * utils.c (msavestring, mstrsave): Remove functions.
918 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
919 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
920 of mstrsave.
921 * source.c (find_and_open_source): Use xstrdup instead of
922 mstrsave.
923
b8eb5af0
AC
9242004-09-30 Andrew Cagney <cagney@gnu.org>
925
0779438d
AC
926 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
927 (inf_ptrace_xfer_memory): Delete.
928 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
929 (target_read_memory, target_write_memory): Use xfer_using_stratum
930 when target_xfer_partial_p.
931 (debug_target): Move to start of file.
932 (target_read_memory_partial, target_write_memory_partial): Use
933 to_xfer_partial when target_xfer_partial_p.
934
f929a579
AC
935 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
936 inf_ptrace_xfer_memory with equivalent code.
937 * inftarg.c (child_xfer_partial): When performing a write, pass
938 writebuf to child_xfer_memory.
939
b8eb5af0
AC
940 * target.c (target_read_string): Use target_read_memory instead of
941 target_xfer_memory.
942
ee21b650
AC
9432004-09-29 Andrew Cagney <cagney@gnu.org>
944
d3e05d0d
AC
945 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
946 the address of status.
947
ee21b650
AC
948 * infptrace.c (ptrace_wait): Mention problem with HPUX.
949 (kill_inferior): Inline ptrace_wait call.
950 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
951 * inftarg.c (child_wait): Inline ptrace_wait call.
952
a182eed6
AC
953 * target.h (struct target_ops): Delete field to_post_wait.
954 (target_post_wait): Delete macro.
955 (child_post_wait): Delete declaration.
956 * target.c (update_current_target, update_current_target)
957 (debug_to_post_wait, setup_target_debug): Delete functions and
958 references.
959 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
960 * inftarg.c (child_post_wait): Delete.
961 (init_child_ops): Do not set to_post_wait.
962 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
963 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
964 * inf-child.c (inf_child_post_wait): Delete.
965 (inf_child_target): Do not set to_post_wait.
966 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
967 (inf_ptrace_target): Do not set to_post_wait.
968
ba0c540b
AC
969 * wince.c (child_ops): Delete.
970 * win32-nat.c (child_ops): Delete.
971
81977402
AC
972 * inftarg.c (inftarg_set_find_memory_regions)
973 (inftarg_set_make_corefile_notes): Delete functions.
974 (_initialize_linux_nat): Inline calls.
975
5ac10fd1
AC
976 * target.h (child_ops): Declare.
977 * inftarg.c (child_ops): Move from here ...
978 * target.c (child_ops): ... to here.
979 * wince.c (child_ops): Delete extern declaration.
980 * win32-nat.c (child_ops): Delete extern declaration.
981 * linux-nat.c (child_ops): Delete extern declaration.
982 * hpux-thread.c (child_ops): Delete extern declaration.
983
663408c2 9842004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
985
986 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
987
0dad8a66
MK
9882004-09-28 Mark Kettenis <kettenis@gnu.org>
989
990 * configure.in: Only set host_makefile_frag when building a native
991 debugger.
992 * configure: Regenerate.
e8d74ed3
MK
993
994 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
995 for OpenBSD ELF.
996
dba24537
AC
9972004-09-28 Andrew Cagney <cagney@gnu.org>
998
e979516b
AC
999 Problem identified by Paul Hilfinger.
1000 * Makefile.in (ada_lex_c): Define.
1001 (ada-lex.o): Delete rule.
1002
dba24537
AC
1003 * linux-proc.c: Delete file.
1004 * Makefile.in: Update.
1005 * config/sparc/linux64.mh (NATDEPFILES):
1006 * config/sparc/linux.mh (NATDEPFILES): Update.
1007 * config/s390/s390.mh (NATDEPFILES): Update.
1008 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1009 * config/powerpc/linux.mh (NATDEPFILES): Update.
1010 * config/pa/linux.mh (NATDEPFILES): Update.
1011 * config/mips/linux.mh (NATDEPFILES): Update.
1012 * config/m68k/linux.mh (NATDEPFILES): Update.
1013 * config/ia64/linux.mh (NATDEPFILES): Update.
1014 * config/i386/linux64.mh (NATDEPFILES): Update.
1015 * config/i386/linux.mh (NATDEPFILES): Update.
1016 * config/arm/linux.mh (NATDEPFILES): Update.
1017 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1018 * linux-nat.c: Update copyright. Include <sys/param.h>,
1019 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1020 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1021 (O_LARGEFILE): Possibly define.
1022 (_initialize_linux_nat, linux_proc_pending_signals)
1023 (add_line_to_sigset, linux_proc_xfer_memory)
1024 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1025 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1026 (struct linux_corefile_thread_data)
1027 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1028 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1029
d6b0e80f
AC
10302004-09-16 Andrew Cagney <cagney@gnu.org>
1031
1032 * lin-lwp.c: Delete file.
1033 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1034 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1035 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1036 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1037 (linux_nat_attach, detach_callback, linux_nat_detach)
1038 (resume_callback, resume_clear_callback, linux_nat_resume)
1039 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1040 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1041 (status_callback, running_callback, count_events_callback)
1042 (select_singlestep_lwp_callback, select_event_lwp_callback)
1043 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1044 (child_wait, stop_and_resume_callback, linux_nat_wait)
1045 (kill_callback, kill_wait_callback, linux_nat_kill)
1046 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1047 (linux_nat_xfer_memory, linux_nat_thread_alive)
1048 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1049 (_initialize_linux_nat): New functions.
1050 * Makefile.in: Update all dependencies.
1051 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1052 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1053 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1054 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1055 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1056 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1057 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1058 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1059 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1060 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1061 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1062 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1063 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1064
5a174d79
MK
10652004-09-27 Mark Kettenis <kettenis@gnu.org>
1066
2f604c28
MK
1067 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1068 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1069
5a174d79
MK
1070 * configure.in: Don't comment out NATDEPFILES in the generated
1071 Makefile if NAT_FILE is unset.
1072 * configure: Regenerate.
1073
b2ed1746
AC
10742004-09-27 Andrew Cagney <cagney@gnu.org>
1075
44cbf7b5
AC
1076 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1077 (insert_step_resume_breakpoint): Delete.
1078 (insert_step_resume_breakpoint_at_frame): New function.
1079 (insert_step_resume_breakpoint_at_sal): New function.
1080 (handle_inferior_event, step_into_function)
1081 (insert_step_resume_breakpoint): Simplify by using same.
1082
b2ed1746
AC
1083 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1084
3691b3be
MK
10852004-09-26 Mark Kettenis <kettenis@gnu.org>
1086
36f391e8
MK
1087 * fbsd-proc.c: Remove file.
1088 * Makefile.in (fbsd-proc.o): Remove dependency.
1089
771e236c
MK
1090 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1091 code together.
1092
3691b3be
MK
1093 * config/i386/nm-fbsd64.h: Remove file.
1094 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1095
6a5c78a3
MK
10962004-09-26 Mark Kettenis <kettenis@gnu.org>
1097
1098 * amd64-nat.h: Update copyright year.
1099 (amd64bsd_target): New prototype.
1100 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1101 (amd64bsd_target): New function.
1102 (amd64bsd_fetch_inferior_registers): Rename from
1103 fetch_inferior_registers. Make static.
1104 (amd64bsd_store_inferior_registers): Rename from
1105 store_inferior_registers. Make static.
1106 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1107 (_initialize_amd64fbsd_nat): Construct and add target vector.
1108 * amd64nbsd-nat.o: Include "target.h".
1109 (_initialize_amd64nbsd_nat): Construct and add target vector.
1110 * amd64obsd-nat.c: Include "target.h".
1111 (_initialize_amd64obsd_nat): Construct and add target vector.
1112 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1113 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1114 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1115 fbsd-nat.o.
1116 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1117 Remove infptrace.o and inftarg.o. Add inf-child.o and
1118 inf-ptrace.o.
1119 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1120 (amd64obsd-nat.o): Update dependencies.
1121
27acbe61
MK
11222004-09-25 Mark Kettenis <kettenis@gnu.org>
1123
509a5e7d
MK
1124 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1125 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1126 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1127 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1128 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1129
6e1e94ea
MK
1130 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1131 Inline attach call.
1132 (inf_ptrace_detach): Inline detach call.
1133
8b9cf735
MK
1134 * configure.in: Check for waddstr instead of mvwaddstr when
1135 searching for curses library. Check for wborder.
1136 * configure, config.in: Regenerate.
1137 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1138 available.
1139
27acbe61
MK
1140 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1141
b96ec7ac
AC
11422004-09-24 Robert Picco <Robert.Picco@hp.com>
1143
1144 Committed by Andrew Cagney.
1145 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1146 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1147 configuration.
1148 (fetch_register_using_p): Implement 'p' packet. Based on code by
1149 Fernando Nasser.
1150 (remote_fetch_registers): Call fetch_register_using_p.
1151 (init_all_packet_configs, show_remote_cmd)
1152 (_initialize_remote): Add p-packet.
1153
62ece330
MK
11542004-09-24 Mark Kettenis <kettenis@gnu.org>
1155
1156 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1157 instead of call_ptrace. Call wait directly instead of
1158 ptrace_wait.
1159 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1160 (inf_ptrace_wait): Inline ptrace_wait call.
1161
00937274
PH
11622004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1163
1164 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1165 rolled back instead.
1166
3f2c7a45
PH
11672004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1168
1169 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1170 the new argument order.
1171
b6fcb393
CV
11722004-09-23 Corinna Vinschen <vinschen@redhat.com>
1173
1174 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1175 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1176 (struct gdbarch_tdep): Remove.
1177 (struct xstormy16_frame_cache): New frame cache structure.
1178 (xstormy16_register_byte, xstormy16_register_raw_size)
1179 (xstormy16_reg_virtual_type, xstormy16_register_type)
1180 (xstormy16_push_arguments, xstormy16_push_return_address)
1181 (xstormy16_pop_frame, xstormy16_store_struct_return)
1182 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1183 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1184 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1185 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1186 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1187 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1188 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1189 (xstormy16_extract_return_value, xstormy16_store_return_value):
1190 Regcachify. Drop useless struct convention handling.
1191 (xstormy16_register_type, xstormy16_return_value)
1192 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1193 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1194 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1195 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1196 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1197 (xstormy16_unwind_dummy_id) : New functions.
1198 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1199 of xstormy16_scan_prologue.
1200 (xstormy16_frame_unwind): New frame_unwind structure.
1201 (xstormy16_frame_base): New frame_base structure.
1202 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1203 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1204
1285b746
MK
12052004-09-22 Mark Kettenis <kettenis@gnu.org>
1206
1207 * language.c (language_gdbarch_post_init): Fix off-by one error.
1208
1c379e20
DJ
12092004-09-21 Daniel Jacobowitz <dan@debian.org>
1210
1211 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1212 (struct dwarf2_offset_and_type): New.
1213 (set_die_type, reset_die_and_siblings_types, get_die_type)
1214 (offset_and_type_hash, offset_and_type_eq): New functions.
1215 (read_structure_type, read_enumeration_type, read_array_type)
1216 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1217 (read_tag_reference_type, read_tag_const_type)
1218 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1219 (read_typedef, read_base_type, read_subrange_type): Use
1220 set_die_type.
1221
ae038cb0
DJ
12222004-09-20 Daniel Jacobowitz <dan@debian.org>
1223
1224 * Makefile.in (dwarf2read.o): Update dependencies.
1225 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1226 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1227 and read_in_chain.
1228 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1229 mark, and has_form_ref_addr.
1230 (struct dwarf2_per_cu_data): New.
1231 (dwarf2_max_cache_age): New.
1232 (dwarf2_build_psymtabs_hard): Free cached compilation units
1233 after loading. Create and manage the list of compilation units.
1234 Remove unnecessary NULL initialization. Fix indentation.
1235 (psymtab_to_symtab_1): Initialize all of CU.
1236 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1237 (find_partial_die): Use dwarf2_find_containing_comp_unit
1238 and load_comp_unit.
1239 (free_stack_comp_unit): Update comments. Clear the per-cu
1240 pointer. Handle aging.
1241 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1242 (age_cached_comp_units, free_one_cached_comp_unit)
1243 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1244 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1245 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1246 (show_dwarf2_cmd): New.
1247 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1248 and "maint show dwarf2 max-cache-age".
1249 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1250 externs.
1251 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1252 global.
1253
987504bb
JJ
12542004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1255
1256 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1257 and dwarf2_cu struct pointer as arguments. Change function to use
1258 obstack if provided and use dwarf2_cu to determine language-specific
1259 separator.
1260 (partial_die_parent_scope): Change comment to include java. Use
1261 new version of typename_concat instead of obconcat.
1262 (partial_die_full_name): Use typename_concat.
1263 (read_namespace): Ditto.
1264 (read_enumeration_type): Use typename_concat instead of obconcat.
1265 (new_symbol): Ditto.
1266 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1267 (guess_structure_name): Ditto.
1268 (read_subroutine_type): Ditto.
1269 (read_structure_type): Ditto.
1270 (is_vtable_name): Add Java support.
1271 (determine_class_name): Switch to new typename_concat call.
1272 (determine_prefix): Switch to new typename_concat call.
1273 * jv-exp.y (FuncStart): New pattern.
1274 (MethodInvocation): Add support for simple function calls. Change
1275 warning message for other forms of inferior call currently not
1276 supported.
1277 * valarith.c (value_subscript): Treat an array with upper-bound
1278 of -1 as unknown size.
1279
d9c8471e
DJ
12802004-09-20 Daniel Jacobowitz <dan@debian.org>
1281
1282 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1283 (lookup_partial_symtab): Use symtab_to_fullname.
1284
d73f140a
JB
12852004-09-19 Jim Blandy <jimb@redhat.com>
1286
1287 * minsyms.c (lookup_minimal_symbol): Doc fix.
1288
adbef1f0
AC
12892004-09-20 Andrew Cagney <cagney@gnu.org>
1290
1291 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1292 CHILD_RESUME.
1293 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1294 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1295 KILL_INFERIOR.
1296 * infptrace.c: Update.
1297
d092d1a2
DJ
12982004-09-19 Daniel Jacobowitz <dan@debian.org>
1299
1300 * symtab.c (output_source_filename): Mark first argument as const.
1301 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1302 for "info sources" output.
1303
86d9e1d7
MK
13042004-09-20 Mark Kettenis <kettenis@gnu.org>
1305
1306 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1307 <machine/vmparam.h>.
1308 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1309 (register_u_addr): Remove prototype.
1310
9a6c8ef4
MK
13112004-09-19 Mark Kettenis <kettenis@gnu.org>
1312
9692934b
MK
1313 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1314 (i386bsd_fetch_inferior_registers): Rename from
1315 fetch_inferior_registers. Make static.
1316 (i386bsd_store_inferior_registers): Rename from
1317 store_inferior_registers. Make static.
1318 (i386bsd_target): New function.
1319 * i386bsd-nat.h: New file.
1320 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1321 "i386bsd-nat.h".
1322 (i386fbsd_resume): Rename from child_resume. Make static.
1323 (_initialize_i386fbsd_nat): Construct and add target vector.
1324 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1325 (_initialize_i386nbsd_nat): Construct and add target vector.
1326 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1327 Remove defines.
1328 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1329 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1330 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1331 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1332 (LOADLIBES): New variable.
1333 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1334 inf-ptrace.o. Remove inftarg.o.
1335 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1336 inf-ptrace.o. Remove inftarg.o.
1337 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1338 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1339 (LOADLIBES): New variable.
1340 * Makefile.in (i386bsd_nat_h): New variable.
1341 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1342 dependencies.
1343
3510d1f2
MK
1344 * sparc64nbsd-tdep.c: Include "objfiles.h".
1345 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1346 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1347 svr4_lp64_fetch_link_map_offsets.
1348 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1349 "nbsd-tdep.h".
1350 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1351 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1352 svr4_lp64_fetch_link_map_offsets.
1353 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1354 dependencies.
1355
578c1c03
MK
1356 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1357 * fbsd-nat.h: New file.
1358 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1359 (fbsd_nat_h): New variable.
1360 (fbsd-nat.o): New dependency.
1361
7a7b73b7
MK
1362 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1363 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1364
9a6c8ef4
MK
1365 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1366 comment.
1367
72d5681a
PH
13682004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1369
1370 * ada-exp.y (type_int): New function to add layer of abstraction
1371 around references to expression types.
1372 (type_long): Ditto.
1373 (type_long_long): Ditto.
1374 (type_float): Ditto.
1375 (type_double): Ditto.
1376 (type_long_double): Ditto.
1377 (type_char): Ditto.
1378 (type_system_address): Ditto.
1379 (simple_exp): Use type_* functions in place of builtin_*
1380 variables.
1381 (exp): Ditto.
1382 (write_var_from_name): Ditto.
1383 (write_object_renaming): Ditto.
1384 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1385 declaration.
1386 (build_ada_types): Remove, replacing with...
1387 (ada_language_arch_info): New function to initialize primitive
1388 type vector in language_arch_info.
1389 (ada_array_length): Remove use of builtin_type_ada_int.
1390 (value_pos_atr): Ditto.
1391 (ada_evaluate_subexp): Ditto.
1392 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1393 builtin_type_ada_long_long, builtin_type_ada_char,
1394 builtin_type_ada_float, builtin_type_ada_double,
1395 builtin_type_ada_long_double, builtin_type_ada_natural,
1396 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1397 (ada_builtin_types): Remove.
1398 (ada_language_defn): Remove entries for la_builtin_type_vector and
1399 string_char_type and use ada_language_arch_info.
1400 (_initialize_ada_language): Do type-vector initialization along
1401 the lines of c-lang.c.
1402 (ada_create_fundamental_type): Break up line.
1403 (ada_dump_symtab): Remove unused function.
1404 (enum ada_primitive_types): Define.
1405 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1406 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1407 builtin_type_ada_float, builtin_type_ada_double,
1408 builtin_type_ada_long_double, builtin_type_ada_natural,
1409 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1410 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1411 (processInt): Ditto.
1412 (processReal): Ditto.
1413 (name_lookup): Ditto.
1414 * ada-typeprint.c (print_range): Use builtin_type_int, not
1415 builtin_type_ada_int.
1416
4f0be353
MK
14172004-09-18 Mark Kettenis <kettenis@gnu.org>
1418
30b0e2d8
MK
1419 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1420
4f0be353
MK
1421 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1422 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1423 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1424 * configure.in: Improve checks for curses library by checking for
1425 mvwaddstr instead of initscr. Drop HP curses in favour of
1426 standard curses on HP-UX.
1427 * configure: Regenerated.
1428
72d5681a 14292004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
1430
1431 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1432 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1433 Minor formatting changes.
1434 (empty_array): Slight rewrite for formatting.
1435 (emit_char,parse,ada_language_defn,build_ada_types,
1436 ada_is_exception_sym, _initialize_ada_language): Move
1437 definitions around.
1438 (ada_dump_symtab): Remove unused definition.
1439 (ada_maybe_exception_partial_symbol): Remove unused definition.
1440
1c8c7407
AC
14412004-09-16 Andrew Cagney <cagney@gnu.org>
1442
7681f339
AC
1443 * inf-child.c: Include "gdb_string.h".
1444 (inf_child_core_file_to_sym_file): Delete.
1445 (inf_child_target): Set to_fetch_registers and to_store_registers.
1446 * inf-ptrace.c: Include "gdb_string.h".
1447 * Makefile.in: Update all dependencies.
1448
1c8c7407
AC
1449 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1450 problem.
1451
65596487
JB
14522004-09-14 Joel Brobecker <brobecker@gnat.com>
1453
1454 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1455 call to heuristic_proc_desc. Remove code that became redundant
1456 as a consequence.
1457 (read_next_frame_reg): Remove special case for SP_REGNUM.
1458 (set_reg_offset): Fix small typo.
1459 (reset_saved_regs): New procedure.
1460 (mips32_heuristic_proc_desc): No longer compute a fake
1461 procedure descriptor. Compute the full frame cache instead.
1462 Some minor comment reformatting.
1463
95575b2e
AC
14642004-09-14 Andrew Cagney <cagney@gnu.org>
1465
f200c492
AC
1466 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1467 maintainer.
1468
95575b2e
AC
1469 * thread-db.c (thread_db_new_objfile): Assume that there is a
1470 child process.
1471
69657671
JB
14722004-09-13 Jim Blandy <jimb@redhat.com>
1473
1474 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1475 so that its storage isn't referenced after its lifetime ends.
1476
6c4182dd
JB
1477 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1478 and never assigned to. Delete it, and the 'if (use_buffer)'
1479 clauses. Delete 'raw_buffer', since it is now unused.
1480
ee31a58d
AC
14812004-09-13 Andrew Cagney <cagney@gnu.org>
1482
2c0fc042
AC
1483 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1484 * configure: Re-generate.
1485 * nlm/Makefile.in (TAGS): Update.
1486 * Makefile.in (TAGS): Update.
1487 * config/vax/nbsd.mt (TM_FILE): Update.
1488 * config/sparc/vxworks.mt (TM_FILE): Update.
1489 * config/sparc/sol2.mt (TM_FILE): Update.
1490 * config/sparc/sol2-64.mt (TM_FILE): Update.
1491 * config/sparc/obsd64.mt (TM_FILE): Update.
1492 * config/sparc/obsd.mt (TM_FILE): Update.
1493 * config/sparc/nbsd64.mt (TM_FILE): Update.
1494 * config/sparc/nbsd.mt (TM_FILE): Update.
1495 * config/sparc/linux64.mt (TM_FILE): Update.
1496 * config/sparc/linux.mt (TM_FILE): Update.
1497 * config/sparc/fbsd.mt (TM_FILE): Update.
1498 * config/sh/wince.mt (TM_FILE): Update.
1499 * config/sh/nbsd.mt (TM_FILE): Update.
1500 * config/sh/linux.mt (TM_FILE): Update.
1501 * config/sh/embed.mt (TM_FILE): Update.
1502 * config/s390/s390.mt (TM_FILE): Update.
1503 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1504 * config/rs6000/rs6000.mt (TM_FILE): Update.
1505 * config/rs6000/aix4.mt (TM_FILE): Update.
1506 * config/powerpc/vxworks.mt (TM_FILE): Update.
1507 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1508 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1509 * config/powerpc/obsd.mt (TM_FILE): Update.
1510 * config/powerpc/nbsd.mt (TM_FILE): Update.
1511 * config/powerpc/linux.mt (TM_FILE): Update.
1512 * config/powerpc/aix.mt (TM_FILE): Update.
1513 * config/pa/obsd.mt (TM_FILE): Update.
1514 * config/pa/linux.mt (TM_FILE): Update.
1515 * config/pa/hppahpux.mt (TM_FILE): Update.
1516 * config/pa/hppa64.mt (TM_FILE): Update.
1517 * config/pa/hppa.mt (TM_FILE): Update.
1518 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1519 * config/mips/wince.mt (TM_FILE): Update.
1520 * config/mips/vxmips.mt (TM_FILE): Update.
1521 * config/mips/nbsd.mt (TM_FILE): Update.
1522 * config/mips/linux.mt (TM_FILE): Update.
1523 * config/mips/irix6.mt (TM_FILE): Update.
1524 * config/mips/irix5.mt (TM_FILE): Update.
1525 * config/mips/embed.mt (TM_FILE): Update.
1526 * config/m68k/vxworks68.mt (TM_FILE): Update.
1527 * config/m68k/st2000.mt (TM_FILE): Update.
1528 * config/m68k/os68k.mt (TM_FILE): Update.
1529 * config/m68k/obsd.mt (TM_FILE): Update.
1530 * config/m68k/nbsd.mt (TM_FILE): Update.
1531 * config/m68k/monitor.mt (TM_FILE): Update.
1532 * config/m68k/linux.mt (TM_FILE): Update.
1533 * config/m68k/cisco.mt (TM_FILE): Update.
1534 * config/ia64/linux.mt (TM_FILE): Update.
1535 * config/ia64/aix.mt (TM_FILE): Update.
1536 * config/ia64/ia64.mt (TM_FILE): Update.
1537 * config/i386/vxworks.mt (TM_FILE): Update.
1538 * config/i386/obsd64.mt (TM_FILE): Update.
1539 * config/i386/obsd.mt (TM_FILE): Update.
1540 * config/i386/nto.mt (TM_FILE): Update.
1541 * config/i386/nbsd64.mt (TM_FILE): Update.
1542 * config/i386/nbsd.mt (TM_FILE): Update.
1543 * config/i386/linux64.mt (TM_FILE): Update.
1544 * config/i386/linux.mt (TM_FILE): Update.
1545 * config/i386/i386sol2.mt (TM_FILE): Update.
1546 * config/i386/i386lynx.mt (TM_FILE): Update.
1547 * config/i386/fbsd64.mt (TM_FILE): Update.
1548 * config/i386/fbsd.mt (TM_FILE): Update.
1549 * config/i386/cygwin.mt (TM_FILE): Update.
1550 * config/h8300/h8300.mt (TM_FILE): Update.
1551 * config/frv/frv.mt (TM_FILE): Update.
1552 * config/cris/cris.mt (TM_FILE): Update.
1553 * config/arm/wince.mt (TM_FILE): Update.
1554 * config/arm/nbsd.mt (TM_FILE): Update.
1555 * config/arm/linux.mt (TM_FILE): Update.
1556 * config/arm/embed.mt (TM_FILE): Update.
1557 * config/alpha/nbsd.mt (TM_FILE): Update.
1558 * config/alpha/fbsd.mt (TM_FILE): Update.
1559 * config/alpha/alpha.mt (TM_FILE): Update.
1560 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1561 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1562
362646f5
AC
1563 Eliminate event_loop_p, always has the value 1.
1564 * defs.h (event_loop_p): Delete macro.
1565 * breakpoint.c (until_break_command): Simplify.
1566 * utils.c (prompt_for_continue): Simplify.
1567 * tracepoint.c (read_actions): Simplify.
1568 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1569 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1570 (set_prompt, init_main): Simplify.
1571 (init_signals, disconnect): Delete, unused.
1572 * remote.c (remote_async_resume)
1573 (extended_remote_async_create_inferior): Simplify.
1574 * mi/mi-interp.c (mi_input): Delete, unused.
1575 (mi_interpreter_resume, mi_command_loop): Simplify.
1576 * interps.c (current_interp_command_loop): Simplify.
1577 * infrun.c (proceed): Simplify.
1578 * infcmd.c (run_command, continue_command, step_1, jump_command)
1579 (until_command, advance_command, finish_command)
1580 (interrupt_target_command): Simplify.
1581 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1582
ee31a58d
AC
1583 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1584 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1585 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1586 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1587 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1588 * mips-tdep.c (mips_dump_tdep): Do not print same.
1589
b7ffc4a8
AC
15902004-09-12 Andrew Cagney <cagney@gnu.org>
1591
2bfb72ee
AC
1592 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1593 const.
1594 * Makefile.in (valprint.o): Delete explict rule.
1595
4f17c3c1
AC
1596 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1597 reported by Dave Anderson.
1598
f810308b
AC
1599 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1600
b7ffc4a8
AC
1601 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1602
28b41c52
AC
16032004-09-12 Salvador E. Tropea <set@users.sf.net>
1604 Andrew Cagney <cagney@gnu.org>
1605
1606 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1607 (mi_cmd_data_list_register_values)
1608 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1609 the register number computation.
1610
5bf970f9
AC
16112004-09-12 Andrew Cagney <cagney@gnu.org>
1612
1613 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1614 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1615 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1616 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1617 target.
1618 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1619 inf-ptrace.o and inf-child.o.
1620 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1621 * Makefile.in: Update dependencies.
1622
0759e0bf
AC
16232004-09-11 Andrew Cagney <cagney@gnu.org>
1624
1625 * language.c (hex_string, hex_string_custom): Move from here ...
1626 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1627 (CELLSIZE): Increase to 50.
1628 * language.h (hex_string, hex_string_custom): Move from here ...
1629 * defs.h: ... to here.
1630 * Makefile.in: Update all dependencies.
1631
bb599908
PH
16322004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1633
1634 * language.c (local_hex_format_custom): Remove.
1635 (local_hex_string): Rename to hex_string, use C format, and move to
1636 utils.c
1637 (local_hex_string_custom): Rename to hex_string_custom and change
1638 interface. Now uses C format. Move to utils.c
1639 (local_octal_format_custom): Remove.
1640 (local_decimal_format_custom): Remove.
1641 (unknown_language_defn): Remove language-specific number
1642 formatting entries.
1643 (auto_language_defn): Ditto.
1644 (local_language_defn): Ditto.
1645 * language.h (struct language_format_info): Delete declaration.
1646 (struct language_defn): Remove language_format_info fields
1647 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1648 (local_binary_format): Remove macro.
1649 (local_binary_format_prefix): Remove macro.
1650 (local_binary_format_specifier): Remove macro.
1651 (local_binary_format_suffix): Remove macro.
1652 (local_octal_format): Remove macro.
1653 (local_octal_format_prefix): Remove macro.
1654 (local_octal_format_specifier): Remove macro.
1655 (local_octal_format_suffix): Remove macro.
1656 (local_decimal_format): Remove macro.
1657 (local_decimal_format_prefix): Remove macro.
1658 (local_decimal_format_specifier): Remove macro.
1659 (local_decimal_format_suffix): Remove macro.
1660 (local_hex_format): Remove macro.
1661 (local_hex_format_prefix): Remove macro.
1662 (local_hex_format_specifier): Remove macro.
1663 (local_hex_format_suffix): Remove macro.
1664 (local_decimal_format_custom): Remove.
1665 (local_octal_format_custom): Remove.
1666 (local_hex_format_custom): Remove.
1667 (local_hex_string): Rename to hex_string and move to defs.h.
1668 (local_hex_string_custom): Rename to hex_string_custom, change
1669 interface, and move to defs.h.
1670 * utils.c: (int_string): New function.
1671 (hex_string): New function (from language.c).
1672 (hex_string_custom): New function (from language.c).
1673 (octal2str): New function.
1674 (decimal2str): Add width parameter.
1675 (paddr_u): Use new decimal2str interface.
1676 (paddr_d): Ditto.
1677 * defs.h (hex_string): Declare.
1678 (hex_string_custom): Declare.
1679 (int_string): Declare.
1680 * printcmd.c (print_scalar_formatted): Remove localized binary
1681 formatting.
1682 * valprint.c (print_longest): Use int_string.
1683 (print_floating): Use C hex format.
1684 (print_hex_chars): Ditto.
1685 (print_binary_chars): Remove language-specific formatting.
1686 (print_octal_chars): Use C octal format.
1687 (print_decimal_chars): Delocalize format.
1688 (print_decimal): Remove.
1689 * ada-lang.c (ada_language_defn): Remove language-specific number
1690 formatting entries.
1691 * p-lang.c (pascal_language_defn): Ditto.
1692 * c-lang.c (c_language_defn): Ditto.
1693 (cplus_language_defn): Ditto.
1694 (asm_language_defn): Ditto.
1695 (minimal_language_defn): Ditto.
1696 * f-lang.c (f_language_defn): Ditto.
1697 * jv-lang.c (java_language_defn): Ditto.
1698 * m2-lang.c (m2_language_defn): Ditto.
1699 * scm-lang.c (scm_language_defn): Ditto.
1700 * objc-lang.c (objc_language_defn): Ditto.
1701 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1702 new interface.
1703 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1704 * ui-out.c (ui_out_field_core_addr): Ditto.
1705 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1706 * exec.c (print_section_info): Ditto.
1707 * i387-tdep.c (print_i387_status_word): Ditto.
1708 (print_i387_control_word): Ditto.
1709 (i387_print_float_info): Ditto.
1710 * maint.c (maint_print_section_info): Ditto.
1711 * solib.c (info_sharedlibrary_command): Ditto.
1712 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1713 * symtab.c (print_msymbol_info): Ditto.
1714 * tracepoint.c (tracepoints_info): Ditto.
1715 * solib-frv.c (lm_base): Ditto.
1716 (frv_current_sos): Ditto.
1717 (enable_break2): Ditto.
1718 (enable_break): Ditto.
1719 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1720 (process_one_symbol): Ditto.
1721 * infcmd.c (program_info): Ditto.
1722 * mdebugread.c (parse_partial_symbols): Ditto.
1723 * symfile.c (add_symbol_file_command): Ditto.
1724 * cli/cli-cmds.c (edit_command): Ditto.
1725 (list_command): Ditto.
1726 * infcall.c (call_function_by_hand): Ditto.
1727 * remote-vx.c (vx_run_files_info): Ditto.
1728 (vx_wait): Ditto.
1729 (vx_attach): Ditto.
1730 (vx_detach): Ditto.
1731 (vx_kill): Ditto.
1732 * aix-thread.c (pdc_symbol_addrs): Ditto.
1733 (pdc_read_regs): Ditto.
1734 (pdc_write_regs): Ditto.
1735 (pdc_read_data): Ditto.
1736 (pdc_write_data): Ditto.
1737 * d10v-tdep.c (display_trace): Ditto.
1738 * rs6000-nat.c (find_toc_address): Ditto.
1739 * aix-thread.c: Don't include language.h.
1740 * buildsym.c: Ditto.
1741 * dbxread.c: Ditto.
1742 * mdebugread.c: Ditto.
1743 * rs6000-nat.c: Ditto.
1744 * buildsym.c (make_blockvector): Use renamed hex_string.
1745
33f2d567
JM
17462004-09-10 Jason Molenda (jmolenda@apple.com)
1747
1748 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1749 chars after 'if' or 'while' commands in user-defined commands.
1750
7b90c3f9
JB
17512004-09-08 Jim Blandy <jimb@redhat.com>
1752
1753 Fix bug reported and analyzed by Olivier Crete:
1754 * symfile.c (copy_section_addr_info): New function.
1755 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1756 original set of address arguments, instead of handwritten code
1757 that uses one length to allocate and a different length to
1758 initialize. Use make_cleanup_free_section_addr_info.
1759 * symfile.h (copy_section_addr_info): New declaration.
1760 * utils.c: #include "symfile.h".
1761 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1762 New functions.
1763 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1764 * Makefile.in (utils.o): Update dependencies.
1765
b26a6851
AC
17662004-09-08 Andrew Cagney <cagney@gnu.org>
1767
1768 * thread-db.c (keep_thread_db): Delete.
1769 (thread_db_new_objfile, thread_db_create_inferior)
1770 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1771
be24b061
MK
17722004-09-08 Mark Kettenis <kettenis@gnu.org>
1773
f6792ef4
MK
1774 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1775 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1776 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1777 (i386_frameless_signal_p): Remove prototype.
1778 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1779 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1780 I386_SSE_NUM_REGS.
1781 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1782 instead of FP0_REGNUM.
1783 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1784 of FP0_REGNUM and FPC_REGNUM.
1785
eeefdaa7
MK
1786 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1787 (sunos_solib_create_inferior_hook): Don't call
1788 sunos_relocate_main_executable.
1789
be24b061
MK
1790 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1791 solib_svr4_fetch_link_map_offsets to
1792 svr4_ilp32_fetch_link_map_offsets.
1793 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1794 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1795 svr4_ilp32_fetch_link_map_offsets.
1796 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1797
7c679d16
JB
17982004-09-07 Jim Blandy <jimb@redhat.com>
1799
1800 * frame.h (frame_register): Doc fix.
1801
1f04aa62
AC
18022004-09-07 Andrew Cagney <cagney@gnu.org>
1803
1804 * vx-share/wait.h: Delete #ifdef USG.
1805 * utils.c (request_quit): Ditto.
1806 * tui/tui.c (tui_reset): Ditto.
1807 * remote.c: Ditto.
1808 * remote-sds.c: Ditto.
1809 * remote-rdi.c: Ditto.
1810 * mdebugread.c: Ditto.
1811 * m68klinux-nat.c: Ditto.
1812 * infttrace.c: Ditto.
1813 * infptrace.c: Ditto.
1814 * i386v-nat.c: Ditto.
1815 * exec.c: Ditto.
1816 * dbxread.c: Ditto.
1817 * core-aout.c: Ditto.
1818
90edbfbc
JB
18192004-09-05 Joel Brobecker <brobecker@gnat.com>
1820
1821 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1822 heuristic_proc_desc.
1823 (mips_insn32_frame_cache): Likewise.
1824
01f4bf2b
JB
18252004-09-04 Joel Brobecker <brobecker@gnat.com>
1826
1827 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1828 left behind by error.
1829
8511a048
JB
18302004-09-04 Joel Brobecker <brobecker@gnat.com>
1831
1832 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1833 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1834
649dfe9f
JB
18352004-09-04 Joel Brobecker <brobecker@gnat.com>
1836
1837 * config/rs6000/xm-aix4.h: Remove this file.
1838 * config/rs6000/aix4.mh (XM_FILE): Delete.
1839
6e50f889
JB
18402004-09-04 Joel Brobecker <brobecker@gnat.com>
1841
1842 * config/rs6000/xm-rs6000.h: Remove this file.
1843 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1844
b8c4aece
AC
18452004-09-03 Andrew Cagney <cagney@gnu.org>
1846
fb603883
AC
1847 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1848 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1849 only use.
1850
c9343fd1
AC
1851 * mips-tdep.c (temp_saved_regs): Delete.
1852 (set_reg_offset): Replace saved_regs parameter with this_cache.
1853 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1854 (mips32_heuristic_proc_desc): Add this_cache parameter.
1855 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1856 (after_prologue): Pass a NULL this_cache.
1857
9733cfe1
AC
1858 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1859 non-kernel trap prologues.
1860
0d5febcc
AC
1861 * mips-tdep.c (find_proc_desc): Delete function.
1862 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1863 simplify.
1864 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1865 mips_insn32_frame_cache.
1866
9733cfe1 1867 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
1868 Simplify as NEXT_FRAME is NULL.
1869 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1870
177f84a3
AC
1871 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1872 local variable.
1873 (mips_skip_prologue): Update.
1874
465f7520
AC
1875 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1876 "cur_frame" parameter.
177f84a3
AC
1877 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1878 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 1879
e38b8658
AC
1880 * config/vax/nm-obsd.h: Delete file.
1881 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1882 * config/vax/nm-nbsd.h: Delete file.
1883 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1884 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1885 * config/sh/nm-nbsd.h: Delete file.
1886 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1887 * config/rs6000/nm-rs6000ly.h: Delete file.
1888 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1889 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1890 * config/powerpc/nm-obsd.h: Delete file.
1891 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1892 * config/powerpc/nm-nbsd.h: Delete file.
1893 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1894 * config/pa/nm-obsd.h: Delete file.
1895 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1896 * config/mips/nm-nbsd.h: Delete file.
1897 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1898 * config/m88k/nm-obsd.h: Delete file.
1899 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1900 * config/m68k/nm-nbsd.h: Delete file.
1901 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1902 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1903 * config/i386/nm-nbsd.h: Delete file.
1904 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1905 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1906 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1907 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1908 * config/i386/nm-i386lynx.h: Delete file.
1909 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1910 * config/arm/nm-nbsd.h: Delete file.
1911 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1912 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1913
be1ed680
AC
1914 * config/i386/tm-fbsd.h: Delete file.
1915 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1916 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1917
4b392b26
AC
1918 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1919 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1920 * config/rs6000/aix4.mt (TM_FILE): Set to
1921 config/rs6000/tm-rs6000.h.
1922 * config/powerpc/tm-ppc-aix.h: Delete file.
1923 * config/powerpc/aix.mt (TM_FILE): Set to
1924 config/rs6000/tm-rs6000.h.
1925 * config/m68k/tm-linux.h: Delete file.
1926 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1927 * config/i386/tm-linux64.h: Delete file.
1928 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1929 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1930
f3219c75
AC
1931 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1932 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1933 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1934 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1935 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1936 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1937 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1938 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1939 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1940
b8c4aece
AC
1941 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1942 gdb_host_cpu.
1943
8ac2e020
JB
19442004-09-02 Joel Brobecker <brobecker@gnat.com>
1945
1946 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1947 Minor reformatting. Some code factoring.
1948
c185a355
AC
19492004-09-02 Andrew Cagney <cagney@gnu.org>
1950
63f22f0d
AC
1951 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1952 * config/vax/tm-nbsd.h: Delete file.
1953 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1954 * config/sparc/tm-vxworks.h: Delete file.
1955 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1956 * config/sparc/tm-nbsd.h: Delete file.
1957 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1958 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1959 * config/sparc/tm-linux.h: Delete file.
1960 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1961 * config/s390/tm-linux.h: Delete file.
1962 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1963 * config/pa/tm-bsd.h: Delete file.
1964 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1965 * config/m68k/tm-obsd.h: Delete file.
1966 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1967 * config/m68k/tm-nbsd.h: Delete file.
1968 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1969 * config/i386/tm-vxworks.h: Delete file.
1970 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1971 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1972 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1973 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1974 * config/i386/tm-nbsd.h: Delete file.
1975 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1976 * config/i386/tm-i386lynx.h: Delete file.
1977 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1978 * config/cris/tm-cris.h: Delete file.
1979
0f475e27
AC
1980 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1981 * configure: Re-generate.
1982 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1983 * config/arm/tm-nbsd.h: Delete file.
1984
458ed000
AC
1985 * config/powerpc/tm-ppcle-sim.h: Delete.
1986 * config/powerpc/tm-ppcle-eabi.h: Delete.
1987 * config/powerpc/tm-nbsd.h: Delete.
1988 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1989 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1990 tm-ppcle-eabi.h.
1991
f14375f3
AC
1992 * config/i386/nto.mh (NAT_FILE): Delete.
1993 * config/i386/nm-nto.h: Delete.
1994
c34d127c
AC
1995 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1996 * config/m68k/tm-os68k.h: Ditto.
1997 * config/m68k/tm-monitor.h: Ditto.
1998 * config/m68k/tm-cisco.h: Ditto.
1999 * config/m68k/st2000.mt (TM_FILE): Delete.
2000 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2001 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2002 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2003 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2004
f7f0fe03
AC
2005 * config/m68k/tm-st2000.h: Delete.
2006 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2007 * config/sparc/fbsd.mt (TM_FILE): Delete.
2008 * config/sparc/tm-fbsd.h: Delete.
2009
a2558533
AC
2010 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2011 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2012 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2013
b78960be
AC
2014 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2015 GDB_TM_FILE and GDB_XM_FILE.
2016 * gdbarch.c: Re-generate.
2017 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2018 quotes in macro definition.
2019 * configure.in: Re-generate.
2020
4d60522e
AC
2021 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2022 validating architecture methods.
2023 * gdbarch.c: Re-generate.
2024
5010d38b
AC
2025 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2026 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2027 GDB_MULTI_ARCH_PARTIAL.
2028 * gdbarch.h: Re-generate.
2029
c185a355
AC
2030 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2031 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2032 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2033 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2034 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2035 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2036 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2037 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2038 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2039 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2040 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2041 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2042
14aaa6ab
AC
20432004-09-01 Andrew Cagney <cagney@gnu.org>
2044
2045 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2046 and main_func_highpc.
2047 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2048 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2049 * nlmread.c (nlm_symfile_read): Update.
2050
a343eb3c
JB
20512004-09-01 Joel Brobecker <brobecker@gnat.com>
2052
2053 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2054 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2055 (find_proc_desc): Remove dead code.
2056
4fbbbd07
JB
20572004-09-01 Joel Brobecker <brobecker@gnat.com>
2058
2059 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2060
84acb35a
JJ
20612004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2062
2063 * observer.sh: Add struct so_list declaration.
2064 * Makefile.in: Add dependencies on observer.h for solib.c and
2065 breakpoint.c.
2066 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2067 function.
2068 (_initialize_breakpoint): Register
2069 disable_breakpoints_in_unloaded_shlib as an observer of the
2070 "solib unloaded" observation event.
2071 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2072 call decode_line_1 so unfound breakpoint errors are silent.
2073 * solib.c (update_solib_list): When a solib is discovered to have
2074 been unloaded by the program, notify all observers of the
2075 "solib unloaded" observation event.
2076
c8cd9f6c
AC
20772004-09-01 Andrew Cagney <cagney@gnu.org>
2078
2079 * frame.c: Include "objfiles.h".
2080 (inside_main_func): New function.
2081 (get_prev_frame): Use new inside_main_func.
2082 * Makefile.in (frame.o): Update dependencies.
2083 * defs.h (inside_main_func): Delete declaration.
2084 * blockframe.c (inside_main_func): Delete function.
2085
1168df01
JB
20862004-08-31 Jim Blandy <jimb@redhat.com>
2087
2088 * dwarf2read.c (is_vtable_name): New function, based on logic from
2089 read_structure_type, but passing the correct length to strncmp,
2090 and using 'sizeof' instead of 'strlen'.
2091 (read_structure_type): Call it.
2092
f14f9744
JB
20932004-08-31 Joel Brobecker <brobecker@gnat.com>
2094
2095 * config/powerpc/aix.mh: Add comment.
2096
386d4518
PG
20972004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2098
2099 * MAINTAINERS: Add self to Write-After-Approval.
2100
7d97d5e2
MI
21012004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2102
2103 * MAINTAINERS: Add self to Write-After-Approval.
2104
68f53502
AC
21052004-08-30 Andrew Cagney <cagney@gnu.org>
2106
2107 Fix PR breakpoints/1757.
2108 * infrun.c (struct execution_control_state): Replace
2109 remove_breakpoints_on_following_step with
2110 step_after_step_resume_breakpoint.
2111 (init_execution_control_state): Update.
2112 (handle_inferior_event): For signals, when stepping off a
2113 breakpoint, set step_after_step_resume_breakpoint. When
2114 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2115 (keep_going): Delete code handling
2116 remove_breakpoints_on_following_step.
2117
7ca2d3a3
DL
21182004-08-29 David Lecomber <david@streamline-computing.com>
2119
2120 Fix PR gdb/648
2121 * language.h (enum array_ordering): New enum.
2122 * language.h (struct language_defn): New la_array_ordering
2123 attribute.
2124 * language.c (unknown_language_defn, auto_language_defn)
2125 (local_language_defn): Ditto.
2126 * ada-lang.c (ada_language_defn): Ditto.
2127 * c-lang.c (c_language_defn, cplus_language_defn)
2128 (asm_language_defn, minimal_language_defn): Ditto.
2129 * f-lang.c (f_language_defn): Ditto.
2130 * jv-lang.c (java_language_defn): Ditto.
2131 * m2-lang.c (f_language_defn): Ditto.
2132 * objc-lang.c (objc_language_defn): Ditto.
2133 * p-lang.c (pascal_language_defn): Ditto.
2134 * scm-lang.c (scm_language_defn): Ditto.
2135 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2136 oriented large to small in type structure.
2137 * dwarf2read.c (read_array_order): New function.
2138 (read_array_type): Use read_array_order to check row/column
2139 major ordering.
2140
e354df01
NW
21412004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2142
2143 * target.c (target_resize_to_sections): Check
2144 current_target.to_sections for an old value when updating.
2145
9185ddce
JB
21462004-08-27 Joel Brobecker <brobecker@gnat.com>
2147
2148 * procfs.c (dbx_link_bpt_addr): New static global variable.
2149 (dbx_link_shadow_contents): New static global variable.
2150 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2151 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2152 if we just hit it.
2153 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2154 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2155 from run to run.
2156 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2157 after the inferior has been forked.
2158 (remove_dbx_link_breakpoint): New function.
2159 (dbx_link_addr): New function.
2160 (insert_dbx_link_bpt_in_file): New function.
2161 (insert_dbx_link_bpt_in_region): New function.
2162 (insert_dbx_link_breakpoint): New function.
2163 (proc_trace_syscalls_1): New function, extracted from
2164 proc_trace_syscalls.
2165 (proc_trace_syscalls): Replace extract code by call to
2166 proc_trace_syscalls_1.
2167 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2168 is no longer valid.
2169
e6742ace
JB
21702004-08-25 Jim Blandy <jimb@redhat.com>
2171
2172 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2173
8fb3e588
AC
21742004-08-25 Andrew Cagney <cagney@gnu.org>
2175
629a41ee
AC
2176 * infrun.c (struct execution_control_state): Delete field
2177 "stepping_through_sigtramp".
2178 (init_execution_control_state): Do not set same.
2179 (context_switch): Do not pass same to save_infrun_state and
2180 load_infrun_state.
2181 * gdbthread.h (struct thread_info): Delete field
2182 stepping_through_sigtramp.
2183 (save_infrun_state, load_infrun_state): Delete parameter
2184 stepping_through_sigtramp.
2185 * thread.c (load_infrun_state, save_infrun_state): Update.
2186
8fb3e588
AC
2187 * infrun.c: Re-indent. Move expression operators to the beginning
2188 of the line. Remove long disabled #if 0 code.
2189
49c54768
AC
21902004-08-24 Andrew Cagney <cagney@gnu.org>
2191
2192 * doublest.h (floatformat_ieee_quad): Rename
2193 floatformat_ia64_quad.
2194 * doublest.c (floatformat_ieee_quad): Rename
2195 floatformat_ia64_quad.
2196 (_initialize_doublest): Update.
2197
5ca2e327
JB
21982004-08-24 Jim Blandy <jimb@redhat.com>
2199
87808bd6
JB
2200 * dwarf2expr.h (struct dwarf_expr_context): New members
2201 'num_pieces' and 'pieces', for returning the result of an
2202 expression that uses DW_OP_piece.
2203 (struct dwarf_expr_piece): New struct type.
2204 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2205 pieces.
2206 (free_dwarf_expr_context): Free pieces, if any.
2207 (add_piece): New function.
2208 (execute_stack_op): Implement DW_OP_piece.
2209 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2210 expression is a list of pieces, print an error message.
2211 (dwarf2_loc_desc_needs_frame): If the expression yields
2212 pieces, and any piece is in a register, then we need a frame.
2213
5ca2e327
JB
2214 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2215 the stack until we've decided what sort of result the evaluation
2216 has produced. Use separate variables, with more specific names.
2217
2afeb6b8
RE
22182004-08-23 Richard Earnshaw <rearnsha@arm.com>
2219
2220 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2221 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2222 (arm_netbsd_init_abi_common): Register them.
2223
5885ab49
MK
22242004-08-22 Mark Kettenis <kettenis@gnu.org>
2225
fda820a6
MK
2226 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2227
1c5bf419
MK
2228 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2229 safe_frame_unwind_memory instead of target_read_memory.
2230
8cbba7c8
MK
2231 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2232 Reorder includes.
2233 (fetch_register, store_register): Remove prototypes.
2234 (child_resume): Reorganize code and comments such that it is
2235 grouped a bit more logically.
2236 (attach): Explicitly compare errno against 0.
2237 (detach): Likewise. Use perror_with_name instead of
2238 print_sys_errmsg.
2239 * Makefile.in (infptrace.o): Update dependencies.
2240
c5fa4245
MK
2241 * ia64-linux-nat.c: Update copyright year.
2242 (fetch_debug_register, store_debug_register)
2243 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2244 PTRACE_TYPE_ARG3.
2245 * config/ia64/nm-linux.h: Update copyright year.
2246 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2247
387c058c
MK
2248 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2249 from CORE_ADDR to struct frame_info *. Use
2250 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2251 (amd64_linux_sigtramp_p): Adjust for changed signature of
2252 and64_linux_sigtramp_start
2253
277215a6
MK
2254 * gdb_ptrace.h: GNU/Linux.
2255
25f6178e
MK
2256 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2257 Remove defines.
2258
652fc137
MK
2259 * infptrace.c: Include "gdb_assert.h".
2260 (PTRACE_XFER_TYPE): Remove define.
2261 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2262 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2263 Tweak comment.
2264 (fetch_inferior_registers, store_inferior_registers): Remove
2265 redundant culry braces. Tweak comment. s/regno/regnum.
2266 * Makefile.in (infptrace.o): Update dependencies.
2267
5885ab49
MK
2268 * configure.in: Change test for return type of ptrace to default
2269 to `long' instead of `int'.
2270 * configure: Regenerate.
2271
11003ae3
MK
22722004-08-21 Mark Kettenis <kettenis@gnu.org>
2273
6b95110c
MK
2274 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2275
bcb3dc3d
MK
2276 * configure.in: Check for ttrace function.
2277 * configure, config.in: Regenerate.
2278
11003ae3
MK
2279 * gdb_ptrace.h: New file.
2280 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2281 <sys/ptrace.h>.
2282 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2283 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2284 (attach): Don't define PT_ATTACH.
2285 (detach): Don't define PT_DETACH.
2286 * Makefile.in (gdb_ptrace_h): New variable.
2287 (infptrace.o): Update dependencies.
2288
f8707cac
MK
22892004-08-16 Mark Kettenis <kettenis@gnu.org>
2290
2291 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2292 instead of `int' if not already defined.
2293 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2294 PTRACE_TYPE_ARG3.
2295 * infptrace.c (call_ptrace): Revert change that replaced
2296 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2297
655c5466
MK
22982004-08-15 Mark Kettenis <kettenis@gnu.org>
2299
156e5ba7
MK
2300 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2301 Remove defines.
2302
de9a9e51
MK
2303 * linux-nat.c (kill_inferior): Add missing third and fourth
2304 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2305
88800403
MK
2306 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2307 PTRACE_TYPE_RET.
2308
849a1d7c
MK
2309 * proc-why.c (proc_prettyfprint_why): Fix format string.
2310
61ad16d1
MK
2311 * solib-osf.c (osf_current_sos): Remove unsused label.
2312
a6ed5501
MK
2313 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2314 curses headers.
2315 * configure, config.in: Regenerate.
2316 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2317 <ncurses/ncurses.h>.
2318
016ddeca
MK
2319 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2320 * config/nm-nbsd.h: Update copyright year.
2321 (PTRACE_ARG3_TYPE): Remove define.
2322
49ec097f
MK
2323 * sparc-nat.c (fetch_inferior_registers)
2324 (store_inferior_registers, sparc_xfer_wcookie):
2325 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2326
9f8e0089
MK
2327 * alphabsd-nat.c (fetch_inferior_registers):
2328 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2329 PTRACE_TYPE_ARG3.
2330 * amd64bsd-nat.c (fetch_inferior_registers)
2331 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2332 PTRACE_TYPE_ARG3.
2333 * armnbsd-nat.c: Update copyright year.
2334 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2335 (store_register, store_regs, store_fp_register, store_fp_regs):
2336 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2337 * hppabsd-nat.c (fetch_inferior_registers)
2338 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2339 PTRACE_TYPE_ARG3.
2340 * i386bsd-nat.c (fetch_inferior_registers)
2341 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2342 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2343 * m68kbsd-nat.c (fetch_inferior_registers)
2344 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2345 PTRACE_TYPE_ARG3.
2346 * m88kbsd-nat.c (fetch_inferior_registers)
2347 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2348 PTRACE_TYPE_ARG3.
2349 * mipsnbsd-nat.c: Update copyright year.
2350 (fetch_inferior_registers, store_inferior_registers):
2351 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2352 * ns32knbsd-nat.c: Update copyright year.
2353 (fetch_inferior_registers, store_inferior_registers):
2354 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2355 * ppcnbsd-nat.c (fetch_inferior_registers):
2356 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2357 PTRACE_TYPE_ARG3.
2358 * ppcobsd-nat.c (fetch_inferior_registers):
2359 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2360 PTRACE_TYPE_ARG3.
2361 * shnbsd-nat.c: Update copyright year.
2362 (fetch_inferior_registers, store_inferior_registers):
2363 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2364 * vaxbsd-nat.c (fetch_inferior_registers)
2365 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2366 PTRACE_TYPE_ARG3.
2367
655c5466
MK
2368 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2369 PTRACE_TYPE_ARG3.
2370 * infptrace.c (call_ptrace, child_resume, attach, detach)
2371 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2372 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2373 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2374 PTRACE_TYPE_ARG3.
2375
c40d0d10
MK
23762004-08-14 Mark Kettenis <kettenis@gnu.org>
2377
5cb0ff31
MK
2378 * defs.h: Remove out-of-date comment.
2379 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2380 [!GETENV_PROVIDED] (getenv): Remove prototype.
2381
5f0f34cb
MK
2382 * standalone.c: Remove file.
2383 * Makefile.in (standalone.o): Remove dependency.
2384
7532965f
MK
2385 * i386-linux-nat.c (dummy_sse_values): Remove function and
2386 prototype.
2387 (i386_linux_dr_get): Fix typo in comment.
2388 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2389
1bdc6c53
MK
2390 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2391
c40d0d10
MK
2392 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2393 from declaration.
2394 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2395 from definition.
2396
64218d3e
MK
23972004-08-13 Mark Kettenis <kettenis@gnu.org>
2398
2399 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2400 parenthesis in definition.
2401 * configure: Regenerated.
2402
926c94e7
MC
24032004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2404
2405 * PROBLEMS: Mention build/1411.
2406
69489883
NN
24072004-08-09 Robert Millan <robertmh@gnu.org>
2408
2409 Committed by Nathanael Nerode.
2410 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2411 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2412
ebb7c577
AC
24132004-08-12 Andrew Cagney <cagney@gnu.org>
2414
2415 * NEWS: Mention fixes in GDB 6.2.1.
2416 * PROBLEMS: Remove mention of mips-irix.
2417
232d697c
JB
24182004-08-11 Joel Brobecker <brobecker@gnat.com>
2419
2420 * config/powerpc/xm-aix.h: Delete.
2421 * config/powerpc/aix.mh (MH_FILE): Remove.
2422 * config/powerpc/aix432.mh (MH_FILE): Remove.
2423
72f4e82b
JB
24242004-08-11 Joel Brobecker <brobecker@gnat.com>
2425
2426 * config/powerpc/aix.mh: Remove obsolete comment.
2427 * config/powerpc/aix432.mh: Likewise.
2428
0687ccb2
JB
24292004-08-11 Joel Brobecker <brobecker@gnat.com>
2430
2431 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2432
dbf3ada7
JB
24332004-08-11 Joel Brobecker <brobecker@gnat.com>
2434
e08e1886
JB
2435 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2436 this file is now empty.
2437 * config/xm-aix4.h: Remove, this file is no longer included
2438 anywhere.
2439
24402004-08-11 Joel Brobecker <brobecker@gnat.com>
2441
2442 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2443 that file is now empty.
dbf3ada7
JB
2444 (termdef): Remove prototype, function no longer used.
2445
4c525ef6
JB
24462004-08-11 Joel Brobecker <brobecker@gnat.com>
2447
2448 * doc/gdbint.texinfo (Host Definition): Remove documentation
2449 for USE_O_NOCTTY, no longer used.
2450 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2451 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2452
82e0b968
JB
24532004-08-11 Joel Brobecker <brobecker@gnat.com>
2454
2455 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2456 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2457 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2458
f2acbe1c
MK
24592004-08-11 Mark Kettenis <kettenis@gnu.org>
2460
daa98270
MK
2461 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2462 instead of FIVE_ARG_PTRACE.
2463
f2acbe1c
MK
2464 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2465 (new_tty): Use O_NOCTTY unconditionally.
2466
cc377e6b
MK
24672004-08-10 Mark Kettenis <kettenis@gnu.org>
2468
2469 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2470 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2471 fflush on stdout.
2472
3bcc18fa
JB
24732004-08-10 Joel Brobecker <brobecker@gnat.com>
2474
2475 * xcoff_symfile_finish: Replace last call to xmfree by call
2476 to xfree.
2477
7936743b
AC
24782004-08-10 Andrew Cagney <cagney@gnu.org>
2479
cc503c8a
AC
2480 * main.c (captured_main): Delete call to init_malloc.
2481 * defs.h (init_malloc): Delete declaration.
2482 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2483 (init_malloc): Delete functions.
2484
2dc74dc1
AC
2485 * defs.h (xmfree): Delete.
2486 * utils.c (xmfree): Delete function.
2487 (xfree): Inline calls to xmfree and mfree.
2488 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2489 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2490 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2491 * somread.c (som_symfile_finish): Ditto.
2492 * objfiles.c (allocate_objfile, free_objfile):
2493 * nlmread.c (nlm_symfile_finish): Ditto.
2494 * hpread.c (hpread_symfile_finish): Ditto.
2495 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2496 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2497 * coffread.c (coff_symfile_finish): Ditto.
2498
aa2ee5f6
AC
2499 * defs.h (xmcalloc): Delete declaration.
2500 * utils.c (xmcalloc): Delete.
2501 (xcalloc): Inline calls to xmcalloc and mcalloc.
2502 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2503 xcalloc and xfree.
2504 * symtab.c (create_demangled_names_hash): Ditto.
2505
0efffb96
AC
2506 * defs.h (xmrealloc): Delete.
2507 * utils.c (xmrealloc): Delete.
2508 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2509 * symmisc.c (extend_psymbol_list): Use xrealloc.
2510 * source.c (find_source_lines): Ditto.
2511 * hpread.c (hpread_lookup_type): Ditto.
2512 * dbxread.c (add_bincl_to_list): Ditto.
2513
7936743b
AC
2514 * utils.c (xmmalloc): Delete.
2515 (xmalloc): Inline xmmalloc and mmalloc calls.
2516 (msavestring): Use xmalloc.
2517 * defs.h (xmmalloc): Delete declaration.
2518 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2519 xmmalloc.
2520 * symmisc.c (extend_psymbol_list): Ditto.
2521 * symfile.c (init_psymbol_list): Ditto.
2522 * source.c (find_source_lines): Ditto.
2523 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2524 * elfread.c (elf_symtab_read): Ditto.
2525 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2526 * coffread.c (coff_symfile_init): Ditto.
2527
252ab814
DC
25282004-08-10 David Carlton <carlton@bactrian.org>
2529
2530 * MAINTAINERS: Remove David Carlton from c++ testsuite
2531 maintainers.
2532
8f5ba92b
JG
25332004-08-10 Jerome Guitton <guitton@gnat.com>
2534
2535 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2536 print a line feed before the prompt.
2537
21749010
MK
25382004-08-10 Mark Kettenis <kettenis@gnu.org>
2539
2540 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2541
1f011ce2
JB
25422004-08-09 Joel Brobecker <brobecker@gnat.com>
2543
2544 General cleanup of the AIX xm include file:
2545 * config/xm-aix4.h (fd_set): Remove undefine.
2546 Remove include of <sys/select.h>.
2547 (HAVE_TERMIO): Remove define.
2548 (USG): Likewise.
2549 (NULL): Remove redefine.
2550 (alloca): Remove #pragma.
2551 (vfork): Remove define.
2552 (termdef): Remove.
2553 (SIGWINCH_HANDLER): Remove.
2554 (SIGWINCH_HANDLER_BODY): Remove.
2555
cf4e7692
MK
25562004-08-09 Mark Kettenis <kettenis@gnu.org>
2557
2558 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2559 GDB_OSABI_OPENBSD_ELF.
2560
ac5754fa
MK
25612004-08-07 Robert Millan <robertmh@gnu.org>
2562
2563 * bsd-kvm.c: Check for nlist.h before including it.
2564
086ec9eb
MK
25652004-08-09 Mark Kettenis <kettenis@gnu.org>
2566
bbe06c74
MK
2567 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2568 sigcontext' offset consistency checks for ancient BSD.
2569
3aa7b3b3
MK
2570 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2571
086ec9eb
MK
2572 * configure.in: Check for <sys/types.h>. Check return and
2573 argument types of ptrace.
2574 * configure, config.in: Regenerate.
2575
09991fa0
JB
25762004-08-09 Jim Blandy <jimb@redhat.com>
2577
2578 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2579 rs6000_register_sim_regno): Doc fixes.
2580
fed7ba43
JB
25812004-08-08 Joel Brobecker <brobecker@gnat.com>
2582
2583 * mips-tdep.c: Include "floatformat.h".
2584 (n32n64_floatformat_always_valid): New function.
2585 (floatformat_n32n64_long_double_big): New constant.
2586 (mips_gdbarch_init): Set size and format of long double
2587 for N32 and N64 ABIs.
2588 * Makefile.in (mips-tdep.o): Update dependencies.
2589
456fcf94
AC
25902004-08-08 Andrew Cagney <cagney@gnu.org>
2591
2f9b146e
AC
2592 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2593 print. Improve script's error messages.
2594 * gdbarch.h: Re-generate.
2595
456fcf94
AC
2596 * gdbarch.sh (pformat): New function.
2597 (float_format, double_format, long_double_format): List with bit
2598 members. Use pformat when printing.
2599 * gdbarch.c, gdbarch.h: Re-generate.
2600
69e9e646
NW
26012004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2602
2603 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2604 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2605 (ppcnbsd_supply_pcb): New function.
2606 (_initialize_ppcnbsd_nat): New prototype and function.
2607 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2608 (LOADLIBES): New variable.
2609 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2610
5ef2d0aa
AC
26112004-08-08 Andrew Cagney <cagney@gnu.org>
2612
2613 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2614 (builtin_type_ieee_double, builtin_type_ia64_quad)
2615 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2616 BE/LE floating-point types.
2617 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2618 (builtin_type_ieee_double, builtin_type_ia64_quad)
2619 (builtin_type_ia64_spill): Declare.
2620 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2621 (floatformat_ieee_double, floatformat_arm_ext)
2622 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2623 of LE/BE floatformats.
2624 * doublest.h: (struct floatformat, floatformat_ieee_single)
2625 (floatformat_ieee_double, floatformat_arm_ext)
2626 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2627
5c7f2947
MK
26282004-08-08 Mark Kettenis <kettenis@gnu.org>
2629
ecac404d
MK
2630 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2631
9b8607ce
MK
2632 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2633 instead of regcache_raw_supply when storing the registers.
2634
f6052080
MK
2635 * i386gnu-nat.c: Update copyright year.
2636 (gnu_store_registers): Don't use deprecated_registers and
2637 deprecated_registers_valid. Use regcache_valid_p and
2638 regcache_raw_supply instead.
2639
17777823
MK
2640 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2641 frame_pc_unwind.
2642
5240ceac
MK
2643 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2644 variables. Incapitalized "process".
2645
5c7f2947
MK
2646 * configure.in: Add cursesX to the list of possible curses libs.
2647 Add cursesX.h to the list of possible curses headers.
2648 * configure, config.in: Regenerate.
2649
da7d81e3
NW
26502004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2651
2652 * configure.in: Test for struct lwp in <sys/lwp.h>.
2653 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2654 the offset of l_addr in struct lwp.
2655
7f245d65
NW
26562004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2657
2658 * bsd-kvm.c: Include "gdbcore.h"
2659 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2660
47b3f456
AC
26612004-08-07 Andrew Cagney <cagney@gnu.org>
2662
70bd8e24
AC
2663 * gdbtypes.c (build_flt, build_complex): New functions.
2664 (gdbtypes_post_init): Use.
2665
9b0dea39
AC
2666 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2667
5cf7abac
AC
2668 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2669 through to builtin_type_uint128.
2670
64d2b26d
AC
2671 * c-exp.y: Use builtin_type function to obtain builtin types.
2672
7ad6570d
AC
2673 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2674 builtin_uint128.
2675 * gdbtypes.c (gdbtypes_post_init): Update.
2676 (build_gdbtypes): Move initialization of builtin_type_int0
2677 through to builtin_type_uint128 from here ...
2678 (_initialize_gdbtypes): ... to here.
2679 * d10v-tdep.c (d10v_register_type): Update.
2680
47b3f456
AC
2681 * doublest.c: Update copyright.
2682 (floatformat_from_length): Call error when floatformat is NULL.
2683 (extract_floating_by_length): Remove NULL fmt check.
2684 (store_floating_by_length): Ditto.
2685
0a8146bf
AC
26862004-08-07 Andrew Cagney <cagney@gnu.org>
2687
2688 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2689 that the register is valid.
2690
c0ccb908
MK
26912004-08-05 Mark Kettenis <kettenis@chello.nl>
2692
8e6bed05
MK
2693 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2694 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2695 struct frame_info *. Use safe_frame_unwind_memory instead of
2696 deprecated_read_memory_nobpt.
2697 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2698 changed signature of i386_linux_sigtramp_start and
2699 i386_linux_rt_sigtramp_start.
2700
24f9f5e3
MK
2701 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2702 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2703 instead of deprecated_read_memory_nobpt.
2704 (i386nbsd_sigtramp_p): Adjust for changed signature of
2705 i386nbsd_sigtramp_offset.
2706
c822af0c
MK
2707 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2708 safe_frame_unwind_memory instead of target_read_memory.
2709
c0ccb908
MK
2710 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2711 !NO_SYS_FILE.
2712 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2713 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2714 (_initialize_kernel_u_addr): Remove prototype and function.
2715 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2716 !NO_SYS_FILE.
2717 * xcoffread.c: Likewise.
2718
b9e1c0d6
MK
27192004-08-06 Mark Kettenis <kettenis@gnu.org>
2720
2721 * vax-nat.c: New file.
2722 * vaxbsd-nat.c: Tweak comment.
2723 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2724 vaxnbsd-tdep.c.
2725 (vax-nat.o): New dependency.
2726 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2727 (vax-*-ultrix2*): Remove.
2728 * config/vax/vax.mh: New file.
2729 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2730 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2731 (vax_register_u_addr): New prototype.
2732 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2733 * config/vax/vaxult2.mh: Remove file.
2734 * config/vax/vaxult.mh: Remove file.
2735 * config/vax/vaxbsd.mh: Remove file.
2736 * config/vax/vax.mt (TM_FILE): Remove.
2737 * config/vax/tm-vaxbsd.h: Remove file.
2738
9ad7bec7
JB
27392004-08-06 Joel Brobecker <brobecker@gnat.com>
2740
2741 * aix-thread.c (get_signaled_thread): New function.
2742 (iter_trap): Delete, no longer used.
2743 (iter_tid): New function.
2744 (pd_update): Find the thread that received the SIGTRAP signal
2745 by first locating the kernel thread, and then finding its
2746 associated thread.
2747
bf0d233d
UW
27482004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2749
2750 * lin-lwp.c (child_wait): Continue inferior after processing
2751 PTRACE_EVENT_CLONE event.
2752
d0f853e1
NN
27532004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2754
2755 * MAINTAINERS: Add self to Write-After-Approval.
2756
ab14aeb0
JJ
27572004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2758
2759 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2760 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2761
9c8dbfa9
AC
27622004-08-05 Andrew Cagney <cagney@gnu.org>
2763
c8f3ca46
AC
2764 * config/xm-sysv4.h: Delete file.
2765 * config/mips/xm-irix5.h: Delete file.
2766 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2767 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2768 * config/ia64/xm-aix.h: Delete file.
2769 * config/ia64/aix.mh (XM_FILE): Delete.
2770 * config/pa/xm-hppah.h: Delete file.
2771 * config/pa/hpux11w.mh (XM_FILE): Delete.
2772 * config/pa/hpux11.mh (XM_FILE): Delete.
2773 * config/pa/hpux1020.mh (XM_FILE): Delete.
2774 * config/pa/hppahpux.mh (XM_FILE): Delete.
2775
5f7daaff
AC
2776 * config/alpha/xm-alphalinux.h: Delete file.
2777 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2778 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2779 * config/alpha/xm-alphaosf.h: Delete file.
2780 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2781 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2782 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2783 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2784
69babf95
AC
2785 * config/i386/xm-i386v.h: Delete file.
2786 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2787 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2788 * config/i386/xm-i386sco.h: Delete file.
2789 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2790 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2791 * config/i386/xm-i386v4.h: Delete file.
2792 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2793 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2794 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2795 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2796
6f009c8a
AC
2797 * config/vax/xm-vax.h: Delete file.
2798 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2799 * config/vax/xm-vaxult2.h: Delete file.
2800 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2801 * config/vax/vaxult2.mh (XM_FILE): Delete.
2802 * config/vax/xm-vaxult.h: Delete file.
2803 * config/vax/vaxult.mh (XM_FILE): Delete.
2804 * config/vax/xm-vaxbsd.h: Delete file.
2805 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2806
9c8dbfa9
AC
2807 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2808 * gdbarch.h, gdbarch.c: Re-generate.
2809 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2810 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2811 * frame.h: Delete deprecated_read_fp from comments.
2812 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2813 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2814
84367a3e
MK
28152004-08-04 Mark Kettenis <kettenis@gnu.org>
2816
9c8e3411
MK
2817 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2818 trampoline in OpenBSD 3.5-current.
2819
b87bc0d8
MK
2820 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2821 SSE registers.
2822
84367a3e
MK
2823 * Makefile.in: Remove embedded page breaks.
2824
a44bddec
JB
28252004-08-04 Jim Blandy <jimb@redhat.com>
2826
7ab3286f
JB
2827 * regcache.c (regcache_raw_read): Assert that, after calling
2828 target_fetch_registers, the register we're reading is cached.
2829
a44bddec
JB
2830 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2831 a call to 'internal_error', with a more helpful error message.
2832 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 2833 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 2834
35124113
AC
28352004-08-04 Andrew Cagney <cagney@gnu.org>
2836
2837 * Makefile.in: Update dependencies.
2838
9f643768
JB
28392004-08-04 Jim Blandy <jimb@redhat.com>
2840
6ced10dd
JB
2841 Change the layout of the PowerPC E500 raw register cache to allow
2842 the lower 32-bit halves of the GPRS to be their own raw registers,
2843 not pseudoregisters.
2844 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2845 add ppc_ev0_upper_regnum flag.
2846 * rs6000-tdep.c: #include "reggroups.h".
2847 (spe_register_p): Recognize the ev upper half registers as SPE
2848 registers.
2849 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2850 registers.
2851 (e500_move_ev_register): New function.
2852 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2853 vector registers are the pseudo-registers now, formed by splicing
2854 together the gprs and the upper-half registers.
2855 (e500_register_reggroup_p): New function.
2856 (P): Macro deleted.
2857 (P8, A4): New macro.
2858 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2859 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2860 macros.
2861 (registers_e500): Rearrange register set so that the raw register
2862 set contains 32-bit GPRs and upper-half registers, and the SPE
2863 vector registers become pseudo-registers.
2864 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2865 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2866 register numbers are now the same for the E500 as they are for
2867 other PowerPC variants. Register e500_register_reggroup_p as the
2868 register group function for the E500.
2869 * Makefile.in (rs6000-tdep.o): Update dependencies.
2870
2871 Adapt PPC E500 native support to the new raw regcache layout.
2872 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2873 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2874 (fetch_spe_register, store_spe_register): Handle fetching/storing
2875 all the SPE registers at once, if regno == -1. These now take
2876 over the job of fetch_spe_registers and store_spe_registers.
2877 (fetch_spe_registers, store_spe_registers): Deleted.
2878 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2879 unconditionally; they're always raw. Fetch/store SPE upper half
2880 registers, if present, instead of ev registers.
2881 (fetch_register, store_register): Remove sanity checks: gprs are
2882 never pseudo-registers now, so we never need to even mention any
2883 registers that are ever pseudoregisters.
2884
9f643768
JB
2885 Use a fixed register numbering when communicating with the PowerPC
2886 simulator.
2887 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2888 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2889 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2890 New functions.
2891 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2892 init_sim_regno_table.
2893 * Makefile.in (gdb_sim_ppc_h): New variable.
2894 (rs6000-tdep.o): Update dependencies.
2895
1e2279c8
AC
28962004-08-02 Andrew Cagney <cagney@gnu.org>
2897
1d94326f
AC
2898 * cris-tdep.c (cris_register_size): Restore function, still used
2899 locally.
2900
331ae7ed
AC
2901 * gdbarch.sh (deprecated_target_read_fp)
2902 (deprecated_frame_locals_address, deprecated_frame_args_address)
2903 (deprecated_frame_chain_valid, deprecated_frame_chain)
2904 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2905 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2906 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2907 * gdbarch.h, gdbarch.c: Re-generate.
2908 * regcache.c (deprecated_read_fp): Do not call
2909 DEPRECATED_TARGET_READ_FP_P.
2910 * infcmd.c (default_print_registers_info): Do not call
2911 DEPRECATED_DO_REGISTERS_INFO.
2912 * frame-base.c (default_frame_locals_address): Do not call
2913 DEPRECATED_FRAME_LOCALS_ADDRESS.
2914 (default_frame_args_address): Do not call
2915 DEPRECATED_FRAME_ARGS_ADDRESS.
2916
1e2279c8
AC
2917 * gdbarch.sh (deprecated_register_raw_size)
2918 (deprecated_register_virtual_size:int): Delete.
2919 * gdbarch.h, gdbarch.c: Re-generate.
2920 * cris-tdep.c (cris_register_size): Delete.
2921 (cris_gdbarch_init): Update.
2922 * alpha-tdep.c (alpha_register_raw_size)
2923 (alpha_register_virtual_size): Delete.
2924 (alpha_gdbarch_init): Update.
2925
a90c06b4
AC
2926 * gdbarch.sh (deprecated_register_virtual_type)
2927 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2928 (deprecated_dummy_write_sp): Delete.
2929 * gdbarch.h, gdbarch.c: Re-generate.
2930
f42accbe
AC
2931 * gdbarch.sh (deprecated_register_bytes): Delete.
2932 * gdbarch.h, gdbarch.c: Re-generate.
2933 * regcache.c (deprecated_register_bytes): New function.
2934 * regcache.h (deprecated_register_bytes): Declare.
2935 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2936 * v850-tdep.c (v850_gdbarch_init): Update.
2937 * sh64-tdep.c (sh64_gdbarch_init): Update.
2938 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2939 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2940 * mcore-tdep.c (mcore_gdbarch_init): Update.
2941 * cris-tdep.c (cris_gdbarch_init): Update.
2942 * arm-tdep.c (arm_gdbarch_init): Update.
2943 * remote.c (init_remote_state): Update.
2944 * remote-vx.c (vx_prepare_to_store): Update.
2945 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2946 * irix5-nat.c (fetch_core_registers): Update.
2947 * cris-tdep.c (cris_register_bytes_ok): Update.
2948 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2949
45c9dd44
AC
2950 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2951 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2952 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2953 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2954 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2955 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2956 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2957 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2958 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2959 with mips_insn16 and mips_insn32.
2960
3acba339
AC
2961 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2962 * rs6000-tdep.c (rs6000_push_dummy_call)
2963 (rs6000_extract_return_value): Use register_size.
2964 * xstormy16-tdep.c (xstormy16_get_saved_register)
2965 (xstormy16_extract_return_value): Ditto.
2966 * valops.c (value_assign): Ditto.
2967 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2968 * v850-tdep.c (v850_extract_return_value): Ditto.
2969 * tracepoint.c (collect_symbol): Ditto.
2970 * target.c (debug_print_register): Ditto.
2971 * stack.c (frame_info): Ditto.
2972 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2973 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2974 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2975 (store_register_using_P): Ditto.
2976 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2977 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2978 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2979 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2980 * regcache.c (deprecated_read_register_bytes)
2981 (deprecated_write_register_bytes, read_register)
2982 (write_register): Ditto.
2983 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2984 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2985 * monitor.c (monitor_supply_register, monitor_fetch_register)
2986 (monitor_store_register): Ditto.
2987 * mn10300-tdep.c (mn10300_pop_frame_regular)
2988 (mn10300_print_register): Ditto.
2989 * mipsv4-nat.c (fill_fpregset): Ditto.
2990 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2991 (mips64_fill_fpregset): Ditto.
2992 * mi/mi-main.c (register_changed_p, get_register)
2993 (mi_cmd_data_write_register_values): Ditto.
2994 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2995 * irix5-nat.c (fill_gregset, fetch_core_registers):
2996 * infrun.c (write_inferior_status_register): Ditto.
2997 * infptrace.c (fetch_register, store_register): Ditto.
2998 * infcmd.c (default_print_registers_info): Ditto.
2999 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3000 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3001 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3002 * hpux-thread.c (hpux_thread_fetch_registers)
3003 (hpux_thread_store_registers): Ditto.
3004 * hppah-nat.c (store_inferior_registers, fetch_register):
3005 * findvar.c (value_from_register): Ditto.
3006 * dve3900-rom.c (fetch_bitmapped_register):
3007 * cris-tdep.c (cris_gdbarch_init): Ditto.
3008 * alpha-tdep.h: Ditto.
3009 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3010
01e1877c
AC
3011 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3012 DEPRECATED_REGISTER_RAW_SIZE from comments.
3013 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3014 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3015 DEPRECATED_REGISTER_RAW_SIZE.
3016 * findvar.c (value_of_register): Simplify by assuming that the
3017 registers raw and virtual sizes are identical.
3018 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3019 comment.
3020 * arch-utils.c (generic_register_size): Simplify by assuming
3021 register_type.
3022
73f458fb
AC
3023 * regcache.c (legacy_read_register_gen, real_register)
3024 (legacy_write_register_gen): Delete, not used.
3025
336a3131
AC
3026 * regcache.c (struct regcache_descr): Delete legacy_p.
3027 (init_legacy_regcache_descr): Delete function.
3028 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3029 Do not use deprecated register functions.
3030 (regcache_raw_read, deprecated_write_register_gen):
3031 (deprecated_read_register_gen, regcache_raw_write): Delete code
3032 predicated on legacy_p.
3033 (register_size): Delete check against register raw size.
3034
c1d546cd
AC
3035 * cris-tdep.c (cris_register_type): Replace
3036 cris_register_virtual_type.
3037 (cris_gdbarch_init): Update, set register_type.
3038
48c2c0a6
AC
3039 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3040 * gdbarch.h, gdbarch.c: Re-generate.
3041 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3042 (arm_gdbarch_init) Do not set frameless function invocation.
3043 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3044 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3045 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3046 (frv_gdbarch_init): Do not set frameless function invocation.
3047 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3048 * sh-tdep.c (sh_gdbarch_init): Ditto.
3049 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3050 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3051 * avr-tdep.c (avr_gdbarch_init): Ditto.
3052
474093a6
AC
3053 * blockframe.c (legacy_frame_chain_valid): Delete function.
3054
3c109c8b
AC
3055 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3056 and pc. Update comments.
3057 (pc_in_dummy_frame): Delete function.
3058 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3059 use the "id".
3060 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3061 call_hi, top and pc, use the id.
3062 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3063
96860204
AC
3064 * dummy-frame.c: Include "gdb_string.h".
3065 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3066 (generic_save_dummy_frame_tos): Delete.
3067 (dummy_frame_push): New function, replaces above.
3068 * dummy-frame.h: Update copyright.
3069 (dummy_frame_push): Declare.
3070 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3071 (generic_save_call_dummy_addr): Delete declarations.
3072 * infcall.c: Include "dummy-frame.h".
3073 (call_function_by_hand): Add locals caller_regcache,
3074 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3075 with call to frame_save_as_regcache plus cleanup. Delete calls to
3076 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3077 Move clear_proceed_status to just before the resume, add call to
3078 dummy_frame_push (discard cleanup).
3079 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3080 (dummy-frame.o): Add $(gdb_string_h).
3081
d67ec5db
AC
30822004-08-01 Andrew Cagney <cagney@gnu.org>
3083
3084 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3085 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3086 * dummy-frame.c (find_dummy_frame): Delete.
3087 (struct dummy_frame_cache, dummy_frame_sniffer)
3088 (dummy_frame_prev_register, dummy_frame_this_id)
3089 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3090 frame unwinder using a dummy_frame_cache.
3091
a81dcb05
AC
30922004-08-01 Andrew Cagney <cagney@gnu.org>
3093
3094 * frame.h (frame_save_as_regcache): Declare.
3095 * frame.c (frame_save_as_regcache): New function.
3096 (do_frame_read_register): Replace do_frame_unwind_register.
3097 (frame_pop): Use frame_save_as_regcache.
3098 * dummy-frame.c (generic_push_dummy_frame): Use
3099 frame_save_as_regcache.
3100
aa495d11
JB
31012004-08-01 Joel Brobecker <brobecker@gnat.com>
3102
3103 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3104 file as included until we record the first line in the linetable.
3105
ff65ac78
AC
31062004-08-01 Andrew Cagney <cagney@gnu.org>
3107
3108 * frame.h (deprecated_pop_dummy_frame)
3109 (deprecated_read_register_dummy)
3110 (deprecated_generic_find_dummy_frame): Delete.
3111 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3112 (deprecated_read_register_dummy)
3113 (deprecated_find_dummy_frame_regcache)
3114 (discard_innermost_dummy)
3115 (deprecated_pop_dummy_frame): Delete.
3116 (dummy_frame_this_id): Simplify.
3117 (struct dummy_frame): Delete "fp" and "sp".
3118 (find_dummy_frame): Simplify.
3119 (generic_push_dummy_frame): Do not set "fp" or "sp".
3120 (fprint_dummy_frames): Do not print "fp" and "sp"
3121
37bdc87e
MK
31222004-08-01 Mark Kettenis <kettenis@gnu.org>
3123
3124 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3125 (struct i386_insn): New structure.
3126 (i386_match_insn): New function.
3127 (i386_frame_setup_skip_insns): New variable.
3128 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3129 array i386_frame_setup_insns of instructions that should be
3130 skipped inside the frame setup sequence.
3131
8241eaa6
AC
31322004-08-01 Andrew Cagney <cagney@gnu.org>
3133
5bc602c7
AC
3134 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3135 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3136 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3137 * stack.c (frame_info): Delete references to
3138 DEPRECATED_FRAME_INIT_SAVED_REGS and
3139 deprecated_get_frame_saved_regs.
3140 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3141 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3142 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3143 (frame_unwind_register_signed)
3144 (frame_unwind_register_unsigned)
3145 (frame_unwind_unsigned_register): Use register_size.
3146 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3147 (deprecated_frame_xmalloc_with_cleanup)
3148 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3149 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3150
03d363a1
AC
3151 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3152 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3153 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3154 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3155
8241eaa6
AC
3156 * infcall.c (call_function_by_hand): Do not use
3157 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3158 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3159 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3160 DEPRECATED_STACK_ALIGN.
3161
f00df8b7
AC
31622004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3163
3164 Committed by Andrew Cagney.
3165 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3166
eec63939
AC
31672004-08-01 Andrew Cagney <cagney@gnu.org>
3168
3169 * mips-tdep.c (mips16_frame_cache)
3170 (mips16_frame_this_id, mips16_frame_prev_register)
3171 (mips16_frame_unwind, mips16_frame_sniffer)
3172 (mips16_frame_base_address, mips16_frame_base)
3173 (mips16_frame_base_sniffer, mips32_frame_cache)
3174 (mips32_frame_this_id, mips32_frame_prev_register)
3175 (mips32_frame_unwind, mips32_frame_sniffer)
3176 (mips32_frame_base_address, mips32_frame_base)
3177 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3178 separate heuristic mips16 and mips32 unwinders.
3179 (mips_stub_frame_cache, mips_stub_frame_this_id)
3180 (mips_stub_frame_prev_register)
3181 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3182 (mips_stub_frame_base_address, mips_stub_frame_base)
3183 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3184 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3185 match true mdebug frames.
3186 (non_heuristic_proc_desc): Add forward declaration.
3187
e66299b3
AC
31882004-08-01 Andrew Cagney <cagney@gnu.org>
3189
83cbbf3e
AC
3190 * config/mips/tm-irix6.h: Delete file.
3191 * config/mips/tm-irix5.h: Delete file.
3192 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3193 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3194
22d41b37
AC
3195 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3196 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3197 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3198 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3199 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3200 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3201 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3202 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3203 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3204 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3205 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3206 (TARGET_SIGNAL_RAW_VALUES): Delete.
3207 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3208 Delete.
3209 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3210 (TARGET_HW_WATCH_LIMIT): Delete.
3211 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3212 * minimon.h: Delete file.
3213
e66299b3
AC
3214 * trad-frame.c (trad_frame_get_this_base)
3215 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3216 functions.
3217 * trad-frame.h (trad_frame_set_this_base)
3218 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3219
1f67027d
AC
32202004-07-31 Andrew Cagney <cagney@gnu.org>
3221
3222 * trad-frame.c (trad_frame_get_prev_register): Rename
3223 trad_frame_get_prev_register.
3224 * vax-tdep.c (vax_frame_prev_register): Update.
3225 * trad-frame.h: Update.
3226 * trad-frame.c (trad_frame_get_register): Update.
3227 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3228 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3229 Update.
3230 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3231 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3232 Update.
3233 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3234 Update.
3235 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3236 Update.
3237 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3238 Update.
3239 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3240 Update.
3241 * s390-tdep.c (s390_frame_prev_register)
3242 (s390_stub_frame_prev_register)
3243 (s390_sigtramp_frame_prev_register): Update.
3244 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3245 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3246 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3247 * m88k-tdep.c (m88k_frame_prev_register)
3248 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3249 * m32r-tdep.c (m32r_frame_prev_register): Update.
3250 * hppa-tdep.c (hppa_frame_prev_register_helper)
3251 * frv-tdep.c (frv_frame_prev_register): Update.
3252 * d10v-tdep.c (d10v_frame_prev_register): Update.
3253 * cris-tdep.c (cris_frame_prev_register): Update.
3254 * avr-tdep.c (avr_frame_prev_register): Update.
3255 * arm-tdep.c (arm_prologue_prev_register)
3256 (arm_sigtramp_prev_register): Update.
3257
c1bf6f65
AC
32582004-07-31 Andrew Cagney <cagney@gnu.org>
3259
3260 * frame.h (legacy_saved_regs_unwind)
3261 (legacy_frame_chain_valid, legacy_frame_p)
3262 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
3263 * dummy-frame.c (dummy_frame_this_id): Simplify.
3264 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
3265 * frame.c (struct frame_info): Delete the field "type".
3266 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3267 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3268 (legacy_saved_regs_unwind, legacy_frame_p)
3269 (frame_type_from_pc): Delete.
3270 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3271 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3272
dc856692
MK
32732004-07-31 Mark Kettenis <kettenis@gnu.org>
3274
5a5effe1
MK
3275 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3276 indentation.
3277
d4fd50a6
MK
3278 * mips-nat.c: Remove file.
3279 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3280 (mips-nat.o): Remove dependency.
3281
2689df5a
MK
3282 * infptrace.c: Update copyright year.
3283 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3284 explicitly setting the buffer to all zeroes.
3285
dc856692
MK
3286 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3287 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3288
763910e0
AC
32892004-07-30 Andrew Cagney <cagney@gnu.org>
3290
3291 * GDB 6.2 released from gdb_6_2-branch.
3292
0b66e38c
EZ
32932004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3294
3295 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3296
3297 * exec.c (exec_file_attach):
3298 * nto-tdep.c (nto_find_and_open_solib):
3299 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3300 * solib.c (solib_open):
3301 * somsolib.c (som_solib_sizeof_symbol_table):
3302 * source.c (is_regular_file, openp, open_source_file):
3303 * symfile.c (symfile_bfd_open):
3304 * wince.c (upload_to_device): Differentiate between the search for
3305 binary and source files.
3306
be7d7357
AC
33072004-07-30 Andrew Cagney <cagney@gnu.org>
3308
3309 * complaints.c (_initialize_complaints): Pass NULL to
3310 add_setshow_zinteger_cmd for help_doc.
3311 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3312
ddc9cd0f
AC
33132004-07-30 Andrew Cagney <cagney@gnu.org>
3314
3315 Fix PR i18n/761.
3316 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3317 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3318 $(PACKAGE).pot and update-po.
3319 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3320 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3321 (update-po): New rules.
3322 (localedir): Define using autoconf.
3323 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3324 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3325 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3326 * configure.in: Generate CATALOGS and LINGUAS from contents of
3327 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3328 * configure: Re-generate.
3329 * po/gdbtext: New file
3330
e92f3704
JG
33312004-07-30 Jerome Guitton <guitton@gnat.com>
3332
3333 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3334 order.
3335
b0f35d58
DL
33362004-07-30 David Lecomber <dsl@sources.redhat.com>
3337
3338 * dwarf2read.c (read_file_scope): Set producer if attribute
3339 present.
3340 (struct dwarf2_cu): Added new member producer.
3341
ce7d4522
JG
33422004-07-30 Jerome Guitton <guitton@gnat.com>
3343
3344 * inflow.c (kill_command): release file handles in BFD.
3345 * exec.c (exec_file_attach): Ditto.
3346 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3347
05ee07c7
AC
33482004-07-29 Andrew Cagney <cagney@gnu.org>
3349
3350 * PROBLEMS (mips-irix): Note that it is broken.
3351
62eceb47
AC
33522004-07-29 Andrew Cagney <cagney@gnu.org>
3353
e57b8d41
AC
3354 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3355 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3356
d334389b
AC
3357 * config/xm-nbsd.h: Delete file.
3358 * config/arm/xm-nbsd.h: Delete file.
3359 * config/i386/xm-nbsd.h: Delete file.
3360 * config/ns32k/xm-nbsd.h: Delete file.
3361 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3362 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3363 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3364 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3365 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3366
e910f676
AC
3367 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3368 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3369 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3370 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3371 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3372 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3373
6fa856b9
AC
3374 * config/powerpc/xm-linux.h: Delete empty file.
3375 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3376 * config/powerpc/linux.mh (XM_FILE): Delete.
3377 * config/m68k/xm-linux.h: Delete empty file.
3378 * config/m68k/linux.mh (XM_FILE): Delete.
3379 * config/ia64/xm-linux.h: Delete empty file.
3380 * config/ia64/linux.mh (XM_FILE): Delete.
3381 * config/arm/xm-linux.h: Delete empty file.
3382 * config/arm/linux.mh (XM_FILE): Delete.
3383
471ae5ae
AC
3384 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3385 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3386 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3387 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3388 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3389 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3390 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3391 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3392
62eceb47
AC
3393 * config/m68k/xm-m68k.h: Delete file.
3394 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3395 copyright.
3396 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3397 * config/pa/xm-linux.h: Delete empty file.
3398 * config/pa/linux.mh (XM_FILE): Delete.
3399 * config/i386/xm-i386.h: Delete empty file.
3400 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3401 "i386/xm-i386.h".
3402 * config/i386/obsdaout.mh (XM_FILE): Delete.
3403 * config/i386/obsd64.mh (XM_FILE): Delete.
3404 * config/i386/fbsd64.mh (XM_FILE): Delete.
3405 * config/i386/nto.mh (XM_FILE): Delete.
3406 * config/i386/obsd.mh (XM_FILE): Delete.
3407 * config/i386/linux64.mh (XM_FILE): Delete.
3408 * config/i386/linux.mh (XM_FILE): Delete.
3409 * config/i386/i386sol2.mh (XM_FILE): Delete.
3410 * config/i386/i386gnu.mh (XM_FILE): Delete.
3411 * config/i386/fbsd.mh (XM_FILE): Delete.
3412 * config/i386/nbsd64.mh (XM_FILE): Delete.
3413
c35f4ffc
AC
34142004-07-29 Andrew Cagney <cagney@gnu.org>
3415
3416 * config/pa/xm-linux.h: Do not include "floatformat.h".
3417 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3418 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3419 * config/i386/xm-i386.h: Do not include "floatformat.h".
3420 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3421 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3422 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3423 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3424 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3425 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3426 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3427 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3428 * configure, config.in: Regenerate.
3429 * configure.host (gdb_host_float_format, gdb_host_double_format)
3430 (gdb_host_long_double_format): Set according to the host.
3431
624a44a3
AC
34322004-07-29 Andrew Cagney <cagney@gnu.org>
3433
3434 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3435
0dea2468
AC
34362004-07-28 Andrew Cagney <cagney@gnu.org>
3437
3438 * PROBLEMS: Mention threads/1650.
3439 * NEWS: Mention the NPTL fix.
3440
b3f42336
AC
34412004-07-28 Andrew Cagney <cagney@gnu.org>
3442
3443 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3444 (add_setshow_cmd_full): Make static.
3445 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3446 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3447 * cli/cli-decode.c (add_setshow_filename_cmd)
3448 (add_setshow_string_cmd): New functions.
3449 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3450 * mips-tdep.c (_initialize_mips_tdep): Update.
3451 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3452 * cli/cli-logging.c (_initialize_cli_logging): Update.
3453 * complaints.c (_initialize_complaints): Update.
3454 * remote.c (_initialize_remote): Update.
3455
3b64bf98
AC
34562004-07-28 Andrew Cagney <cagney@gnu.org>
3457
3458 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3459 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3460 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3461 print parameters. Make string parameters constant.
3462 * command.h: Update. Update copyright.
3463 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3464 * observer.c (_initialize_observer): Ditto.
3465 * frame.c (_initialize_frame): Ditto.
3466 * complaints.c (_initialize_complaints): Ditto.
3467 * maint.c (_initialize_maint_cmds): Ditto.
3468 * target.c (initialize_targets): Ditto.
3469 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3470 * infcall.c (_initialize_infcall): Ditto.
3471 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3472 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3473 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3474 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3475 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3476
e9667a65
AC
34772004-07-28 Andrew Cagney <cagney@gnu.org>
3478
54a5b07d
AC
3479 * gdbtypes.c (lookup_primitive_typename): Delete function.
3480 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3481 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3482 * gdbtypes.c (lookup_typename): Ditto.
3483 * f-exp.y (yylex): Ditto.
3484 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3485
e9667a65
AC
3486 * scm-lang.c (c_builtin_types): Delete extern declaration.
3487 (scm_language_defn): Replace
3488 string_char_type and primitive_type_vector with
3489 la_language_arch_info.
3490 * jv-lang.c (java_language_defn): Replace
3491 string_char_type and primitive_type_vector with
3492 la_language_arch_info.
3493 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3494 c_builtin_types in comment.
3495 * c-lang.h (struct language_arch_info): Declare opaque.
3496 (c_language_arch_info): Declare.
3497 (c_builtin_types): Delete declaration.
3498 * c-lang.c (c_language_arch_info): Set string_char_type to
3499 builtin_char, not builtin_true_char. Make global.
3500 (c_builtin_types): Delete array.
3501 (asm_language_defn, minimal_language_defn): Replace
3502 string_char_type and primitive_type_vector with
3503 la_language_arch_info.
3504
685419e2
AC
35052004-07-28 Andrew Cagney <cagney@gnu.org>
3506
3507 * gdbtypes.h (struct builtin_type): Rename true_char to
3508 builtin_true_char.
3509 * gdbtypes.c (gdbtypes_post_init): Update.
3510 * c-lang.c (arch_info): New function.
3511 (enum c_primitive_types): New enum.
3512 (c_language_defn): Instead of string_char_type and
3513 primitive_type_vector set la_language_arch_info.
3514
5a44ea29
AC
35152004-07-28 Andrew Cagney <cagney@gnu.org>
3516
3517 * language.h (struct language_arch_info): Fix typo
3518 s/primative/primitive/.
3519 * gdbtypes.c (lookup_primitive_typename): Ditto.
3520 * language.c (language_lookup_primitive_type_by_name)
3521 (unknown_language_arch_info): Ditto.
3522
f290d38e
AC
35232004-07-27 Andrew Cagney <cagney@gnu.org>
3524
3525 * defs.h (enum language): Add nr_languages.
3526 * language.h (struct language_arch_info): Define.
3527 (struct language_defn): Add la_language_arch_info.
3528 (language_lookup_primative_type_by_name): Declare.
3529 (language_string_char_type): Declare.
3530 * language.c (_initialize_language, language_gdbarch_post_init)
3531 (struct language_gdbarch, language_gdbarch_data): Implement
3532 per-architecture language information.
3533 (unknown_language_arch_info, language_string_char_type)
3534 (language_lookup_primative_type_by_name): New functions.
3535 (unknown_language_defn, auto_language_defn)
3536 (local_language_defn): Set la_language_arch_info to
3537 unknown_language_arch_info.
3538 (unknown_builtin_types): Delete.
3539 * gdbtypes.c (lookup_primitive_typename): Use
3540 language_lookup_primative_type_by_name.
3541 (create_string_type): Use language_string_char_type.
3542 * values.c (value_from_string): Use language_string_char_type.
3543 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3544 * p-lang.c (pascal_language_defn): Ditto.
3545 * m2-lang.c (m2_language_defn): Ditto.
3546 * jv-lang.c (java_language_defn): Ditto.
3547 * objc-lang.c (objc_language_defn): Ditto.
3548 * f-lang.c (f_language_defn): Ditto.
3549 * c-lang.c (c_language_defn, cplus_language_defn)
3550 (asm_language_defn, minimal_language_defn): Ditto.
3551
000177f0
AC
35522004-07-27 Andrew Cagney <cagney@gnu.org>
3553
3554 * gdbtypes.h (struct builtin_type): Declare.
3555 (builtin_type): Declare.
3556 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3557 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3558 (gdbtypes_post_init): New function.
3559 (builtin_type): New function.
3560
e22f895c
KI
35612004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3562
3563 * remote-m32r-sdi.c: Fix breakpoint bug.
3564 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3565 recv_char_data, recv_long_data): New functions to replace communication
3566 sequences.
3567
536517dd
MC
35682004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3569
3570 Document PR threads/1650.
3571 * PROBLEMS (Threads): Document problem with many threads
3572
a0a44d18
AC
35732004-07-26 Andrew Cagney <cagney@gnu.org>
3574
3575 * gdb-mi.el: Move from here ...
3576 * mi/gdb-mi.el: ... to here.
3577
7ac4ac06
AC
35782004-07-26 Andrew Cagney <cagney@gnu.org>
3579
3580 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3581 * main.c (captured_main): When in batch mode always detach.
3582
a1b461bf
AC
35832004-07-26 Andrew Cagney <cagney@gnu.org>
3584
3585 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3586 and h8300 as broken.
3587 * NEWS: END-OF-LIFE frame compatibility module.
3588 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3589 specific comments.
3590
cb1a6d5f
AC
35912004-07-26 Andrew Cagney <cagney@gnu.org>
3592
3593 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3594 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3595 * wince.c (_initialize_wince): Update.
3596 * win32-nat.c (_initialize_win32_nat): Update.
3597 * varobj.c (_initialize_varobj): Update.
3598 * valops.c (_initialize_valops): Update.
3599 * utils.c (initialize_utils, initialize_utils): Update.
3600 * tui/tui-win.c (_initialize_tui_win): Update.
3601 * top.c (init_main): Update.
3602 * symfile.c (_initialize_symfile): Update.
3603 * source.c (_initialize_source): Update.
3604 * somsolib.c (_initialize_som_solib): Update.
3605 * solib.c (_initialize_solib): Update.
3606 * solib-frv.c (_initialize_frv_solib): Update.
3607 * serial.c (_initialize_serial): Update.
3608 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3609 * remote.c (_initialize_remote, _initialize_remote): Update.
3610 * remote-vx.c (_initialize_vx): Update.
3611 * remote-utils.c (_initialize_sr_support): Update.
3612 * remote-sds.c (_initialize_remote_sds): Update.
3613 * remote-mips.c (_initialize_remote_mips): Update.
3614 * remote-e7000.c (_initialize_remote_e7000): Update.
3615 * proc-api.c (_initialize_proc_api): Update.
3616 * printcmd.c: Update.
3617 * parse.c (_initialize_parse): Update.
3618 * pa64solib.c (_initialize_pa64_solib): Update.
3619 * p-valprint.c (_initialize_pascal_valprint): Update.
3620 * monitor.c (_initialize_remote_monitors): Update.
3621 * mips-tdep.c (_initialize_mips_tdep): Update.
3622 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3623 * maint.c (_initialize_maint_cmds): Update.
3624 * lin-lwp.c (_initialize_lin_lwp): Update.
3625 * language.c (_initialize_language): Update.
3626 * kod.c (_initialize_kod): Update.
3627 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3628 * i386-tdep.c (_initialize_i386_tdep): Update.
3629 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3630 * gdbarch.sh: Update.
3631 * gdbarch.c: Re-generate.
3632 * gdb-events.sh: Update.
3633 * gdb-events.c: Re-generate.
3634 * frame.c (_initialize_frame): Update.
3635 * exec.c: Update.
3636 * demangle.c (_initialize_demangler): Update.
3637 * dcache.c (_initialize_dcache): Update.
3638 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3639 * cp-valprint.c (_initialize_cp_valprint): Update.
3640 * corefile.c (_initialize_core): Update.
3641 * command.h: Update.
3642 * cli/cli-decode.h: Update.
3643 * cli/cli-cmds.c (init_cli_cmds): Update.
3644 * charset.c (_initialize_charset): Update.
3645 * breakpoint.c (_initialize_breakpoint): Update.
3646 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3647 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3648 * aix-thread.c (_initialize_aix_thread): Update.
3649
b4632131
MK
36502004-07-24 Mark Kettenis <kettenis@gnu.org>
3651
3652 Partial fix for PR backtrace/1718.
3653 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3654 that GCC migrates into the prolugue. Don't handle any
3655 instructions that clobber %ebx.
3656
822c9732
AC
36572004-07-23 Andrew Cagney <cagney@gnu.org>
3658
3659 Use regcache_raw_collect instead of regcache_collect.
3660 * regcache.h (regcache_collect): Delete declaration.
3661 * regcache.c (regcache_colect): Delete function.
3662 * win32-nat.c (do_child_store_inferior_registers): Update.
3663 * sol-thread.c (sol_thread_store_registers): Update.
3664 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3665 * rs6000-nat.c (store_register): Update.
3666 * remote.c (store_register_using_P, remote_store_registers): Update.
3667 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3668 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3669 (fill_vrregset, store_spe_registers, fill_gregset)
3670 (fill_gregset): Update.
3671 * nto-procfs.c (procfs_store_registers): Update.
3672 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3673 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3674 * m68klinux-nat.c (store_register, fill_gregset): Update.
3675 * m68k-tdep.c (fill_gregset): Update.
3676 * infptrace.c (store_register): Update.
3677 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3678 * i386-linux-nat.c (store_register, fill_gregset): Update.
3679 * hppa-linux-nat.c (fill_gregset): Update.
3680 * go32-nat.c (store_register): Update.
3681 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3682 (store_fp_regs): Update.
3683 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3684 (store_nwfpe_extended, store_fpregister, store_fpregs)
3685 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3686 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3687 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3688 (store_regs_user_thread, store_regs_kernel_thread): Update.
3689
32b05c07
MK
36902004-07-24 Mark Kettenis <kettenis@gnu.org>
3691
3692 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3693 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3694 encoding.
3695 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3696 member of `struct comp_unit'.
3697
8567c30f
AC
36982004-07-23 Andrew Cagney <cagney@gnu.org>
3699
3700 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3701 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3702
f6da8dd8
MH
37032004-07-23 Martin Hunt <hunt@redhat.com>
3704 Kevin Buettner <kevinb@redhat.com>
3705
3706 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3707 alignment was being added to the offset instead of multiplied.
3708
bd921882
MK
37092004-07-23 Mark Kettenis <kettenis@gnu.org>
3710
24f033e8
MK
3711 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3712 changed signal trampoline in OpenBSD 3.5-current.
3713
90f3cecd
MK
3714 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3715 <machine/pcb.h> and "bsd-kvm.h".
3716 (sparc64nbsd_supply_pcb): New function.
3717 (_initialize_sparc64nbsd_nat): Renamed from
3718 _initialize_sparcnbsd_nat. Enable libkvm interface.
3719 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3720 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3721 (LOADLIBES): New variable.
3722
a4954a62
MK
3723 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3724
bd921882
MK
3725 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3726
23a6d369
AC
37272004-07-21 Andrew Cagney <cagney@gnu.org>
3728
3729 Use regcache_raw_supply instead of supply_register.
3730 * regcache.h (supply_register): Delete declaration.
3731 * regcache.c (supply_register): Delete function.
3732 * wince.c (do_child_fetch_inferior_registers): Update.
3733 * win32-nat.c (do_child_fetch_inferior_registers)
3734 (fetch_elf_core_registers): Update.
3735 * v850ice.c (v850ice_fetch_registers): Update.
3736 * thread-db.c (thread_db_store_registers): Update.
3737 * sol-thread.c (sol_thread_store_registers): Update.
3738 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3739 * rs6000-nat.c (fetch_register): Update.
3740 * rom68k-rom.c (rom68k_supply_one_register): Update.
3741 * remote.c (remote_wait, remote_async_wait): Update.
3742 * remote-st.c (get_hex_regs): Update.
3743 * remote-sim.c (gdbsim_fetch_register): Update.
3744 * remote-sds.c (sds_fetch_registers): Update.
3745 * remote-rdp.c (remote_rdp_fetch_register): Update.
3746 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3747 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3748 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3749 * remote-hms.c (init_hms_cmds): Update.
3750 * remote-est.c (init_est_cmds): Update.
3751 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3752 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3753 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3754 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3755 (fetch_register, supply_vrregset, supply_vrregset)
3756 (fetch_spe_registers): Update.
3757 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3758 * monitor.c (monitor_supply_register): Update.
3759 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3760 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3761 (mipsnbsd_supply_fpreg): Update.
3762 * mips-nat.c (fetch_inferior_registers)
3763 (fetch_core_registers): Update.
3764 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3765 (supply_fpregset, mips64_supply_gregset)
3766 (mips64_supply_fpregset): Update.
3767 * m68klinux-nat.c (fetch_register, supply_gregset)
3768 (supply_fpregset): Update.
3769 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3770 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3771 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3772 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3773 * infptrace.c (fetch_register): Update.
3774 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3775 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3776 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3777 (gnu_fetch_registers, gnu_store_registers): Update.
3778 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3779 * i386-linux-nat.c (fetch_register, supply_gregset)
3780 (dummy_sse_values): Update.
3781 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3782 * hppah-nat.c (fetch_register): Update.
3783 * hppa-linux-nat.c (fetch_register, supply_gregset)
3784 (supply_fpregset): Update.
3785 * go32-nat.c (fetch_register): Update.
3786 * dve3900-rom.c (fetch_bitmapped_register)
3787 (_initialize_r3900_rom): Update.
3788 * cris-tdep.c (supply_gregset): Update.
3789 * abug-rom.c (init_abug_cmds): Update.
3790 * core-aout.c (fetch_core_registers): Update.
3791 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3792 (fetch_register, fetch_fp_register): Update.
3793 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3794 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3795 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3796 * alphanbsd-tdep.c (fetch_core_registers): Update.
3797 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3798 * alpha-nat.c (fetch_osf_core_registers)
3799 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3800 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3801 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3802
73cc75f3
AC
38032004-07-21 Andrew Cagney <cagney@gnu.org>
3804
3805 * PROBLEMS: Mention breakpoints/1702.
3806 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3807 that is known to work.
3808
a53c66de
AC
38092004-07-21 Andrew Cagney <cagney@gnu.org>
3810
3811 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3812 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3813 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3814 (handle_inferior_event): Wrap call to deprecated
3815 IGNORE_HELPER_CALL in #ifdef.
3816 * config/mips/tm-nbsd.h: Update.
3817
708ff411
JB
38182004-07-20 Jim Blandy <jimb@redhat.com>
3819
412b3060
JB
3820 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3821 bfd_mach_ppc has no segment registers.
3822
13ac140c
JB
3823 Include PowerPC SPR numbers for special-purpose registers.
3824 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3825 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3826 new member in initializer.
3827 (S, S4, SN4, S64): New macros for defining special-purpose
3828 registers.
3829 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3830 registers_403, registers_403GC, registers_505, registers_860,
3831 registers_601, registers_602, registers_603, registers_604,
3832 registers_750, registers_e500): Use them.
3833
708ff411
JB
3834 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3835 replace references with expression used to initialize variable.
3836
1f602b35
AC
38372004-07-20 Andrew Cagney <cagney@gnu.org>
3838
3839 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3840 read_memory_nobpt.
3841 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3842 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3843 (s390_sigtramp_frame_sniffer): Update.
3844 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3845 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3846 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3847 (mips32_fetch_instruction): Update.
3848 * mcore-tdep.c (get_insn): Update.
3849 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3850 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3851 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3852 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3853 (i386_linux_rt_sigtramp_start): Update.
3854 * i386-linux-nat.c (child_resume): Update.
3855 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3856 * hppa-linux-tdep.c (insns_match_pattern): Update.
3857 * gdbcore.h: Update.
3858 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3859 * frame.c (safe_frame_unwind_memory): Update.
3860 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3861 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3862 * alpha-tdep.c (alpha_read_insn): Update.
3863
2cd8546d
AC
38642004-07-20 Andrew Cagney <cagney@gnu.org>
3865
3866 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3867 containing both bytes and mask. Add "frame_type".
3868 * tramp-frame.c (tramp_frame_start): Update.
3869 (tramp_frame_prepend_unwinder): Update.
3870 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3871 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3872 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3873 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3874
f928dd62
EZ
38752004-07-19 Eli Zaretskii <eliz@gnu.org>
3876
3877 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3878 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3879 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3880 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3881
d5c560f7
AC
38822004-07-17 Andrew Cagney <cagney@gnu.org>
3883
860660cb
AC
3884 * NEWS, PROBLEMS: Update for 6.2.
3885
8c266f54
AC
3886 * README: Update to 6.2.
3887
a552edd9
AC
3888 * utils.c (xvasprintf): Call xstrvprintf.
3889
c4a172b5
AC
3890 * parse.c: Update copyright.
3891 (null_post_parser): Eliminate ARGSUSED.
3892
da745b36
AC
3893 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3894 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3895 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3896
9cbc6ef0
AC
3897 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3898 * ppc-linux-nat.c: Use "Linux kernel".
3899 * hppa-linux-tdep.c: Use GNU/Linux.
3900 * hppa-linux-nat.c: Use GNU/Linux.
3901 * dwarfread.c: Add [sic] to use of Linux.
3902
1b89295f
AC
3903 * hppa-linux-nat.c: Do not include <string.h>.
3904 (supply_fpregset): Remove "register" attribute.
3905
d5c560f7
AC
3906 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3907
7ddd7709
MK
39082004-07-17 Mark Kettenis <kettenis@gnu.org>
3909
b1d19a62
MK
3910 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3911 * configure, config.in: Regenerated.
3912
7ddd7709
MK
3913 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3914 "bsd-kvm.h".
3915 (vaxbsd_supply_pcb): New function.
3916 (_initialize_vaxbsd_nat): New prototype and function.
3917 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3918 solib-sunos.o.
3919 (LOADLIBES): New variable.
3920 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3921 (LOADLIBES): New variable.
3922 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3923 (LOADLIBES): New variable.
3924 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3925
2c07db7a
AC
39262004-07-16 Andrew Cagney <cagney@gnu.org>
3927
3928 * defs.h (event_loop_p): Replace variable declaration with macro,
3929 always 1.
3930 * main.c (captured_main): Delete options "-async" and "-noasync".
3931 (event_loop_p): Delete variable.
3932 * NEWS: Mention that "-async" and "-noasync" were removed.
3933
717eb1cf
AC
39342004-07-16 Andrew Cagney <cagney@gnu.org>
3935
3936 * remote-m32r-sdi.c: Re-indent.
3937
c101bc14
JB
39382004-07-16 Jim Blandy <jimb@redhat.com>
3939
5109a438
JB
3940 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3941 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3942 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3943 missing MPC823 SPRs.
3944 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3945 incorrect. (This was corrected in GDB's register name tables on
3946 2004-07-14.)
3947
c101bc14
JB
3948 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3949 should be "esasrr" ("ESA Save and Restore Register").
3950
7ce450bd
AC
39512004-07-16 Andrew Cagney <cagney@gnu.org>
3952
3953 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3954 calls, no longer applicable. Update comments and rename parameter
3955 "step_frame" to "return_frame".
3956
ca73dd9d
AC
39572004-07-16 Andrew Cagney <cagney@gnu.org>
3958
3959 * frame.c (fprint_field): New function.
3960 (fprint_frame_id): Use fprint_field.
3961
31941f6d
JB
39622004-07-15 Joel Brobecker <brobecker@gnat.com>
3963
3964 * ada-lang.c (ada_language_defn): Remove commented out code.
3965
f86a7158
JB
39662004-07-15 Jim Blandy <jimb@redhat.com>
3967
3968 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3969 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3970
c24791ec
JB
39712004-07-14 Jim Blandy <jimb@redhat.com>
3972
29bb1356
JB
3973 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3974
cc98b5cc
JB
3975 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3976
8f088af7
JB
3977 * ppc-tdep.h (ppc_num_srs): New enum constant.
3978
0ea0ec5f
JB
3979 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3980 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3981 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3982 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3983 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3984 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3985 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3986 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3987 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3988 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3989 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3990 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3991 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3992 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3993 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3994 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3995 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3996 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3997 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3998 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3999 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4000 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4001 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4002 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4003 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4004 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4005 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4006 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4007 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4008 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4009 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4010 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4011 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4012 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4013 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4014 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4015 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4016 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4017 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4018 special-purpose register numbers.
4019
c24791ec
JB
4020 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4021 manual mentions 'md_twb', but many mention 'm_twb', and at that
4022 point in the register list.)
4023
d833db3b
AC
40242004-07-14 Andrew Cagney <cagney@gnu.org>
4025
4026 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4027 instead of "internal-error".
4028
080228b2
JB
40292004-07-10 Joel Brobecker <brobecker@gnat.com>
4030
4031 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4032 that was inserted inside a comment.
4033
c268433a
RC
40342004-07-10 Randolph Chung <tausq@debian.org>
4035
4036 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4037 function.
4038 (hppa_hpux_push_dummy_code): New function.
4039 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4040 Set find_global_pointer method.
4041
71009278
MK
40422004-07-10 Mark Kettenis <kettenis@gnu.org>
4043
4044 * NEWS: Mention BSD libkvm interface.
4045
b2fa5097
MS
40462004-07-10 Michael Snyder <msnyder@redhat.com>
4047
4048 * symfile.c (generic_load): Comment typo.
4049 * stack.c (get_selected_block): Ditto.
4050 * regcache.c (regcache_cooked_read): Ditto.
4051 * monitor.c (monitor_debug): Ditto.
4052 * mips-tdep.c (mips_read_pc): Ditto.
4053 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4054 * gdb_mbuild.sh: Ditto.
4055 * gdbarch.sh: Ditto.
4056 * gdbarch.h: Ditto.
4057
c3e5cd34
PH
40582004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4059
8a2225b2
PH
4060 * ada-tasks.c: Remove file.
4061
c3e5cd34
PH
4062 Remove ARI problems:
4063
4064 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4065 beginning of line.
4066
4067 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4068 Add comment.
4069 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4070 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4071 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4072 (UMIN_OF_SIZE): Remove.
4073 (max_of_type): New function to replace orphan macro in gdbtypes.h
4074 (min_of_type): Ditto.
4075 (discrete_type_high_bound): Use max_of_type.
4076 (discrete_type_low_bound): Use min_of_type.
4077 (possible_user_operator_p): Move operator to beginning of line.
4078 (ada_is_variant_part): Ditto.
4079 (ensure_lval): Rewrite to avoid deprecated operations.
4080 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4081 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4082 (ada_enum_name): Remove assignments in 'if' statements.
4083 (build_ada_types): Add gdbarch parameter.
4084 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4085 with gdbarch_data_register_post_init.
4086 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4087 add_show_from_set.
4088
4089 * ada-valprint.c (inspect_it): Remove declaration.
4090 (repeat_count_threshold): Remove declaration.
4091 (ada_print_floating): Remove assignments in 'if' statements.
4092 (print_str): Move operator to beginning of line.
4093
61ce229a
JB
40942004-07-08 Jim Blandy <jimb@redhat.com>
4095
4096 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4097
09bcec80
BR
40982004-07-08 Bob Rossi <bob@brasko.net>
4099
4100 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4101
31c27f77
JJ
41022004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4103
4104 * language.h (struct_language_defn): Add new function pointer:
4105 la_class_name_from_physname. Also add new prototype for
4106 language_class_name_from_physname.
4107 * language.c (language_class_name_from_physname): New function.
4108 (unk_lang_class_name): Ditto.
4109 (unknown_language_defn, auto_language_defn): Change
4110 to add unk_lang_class_name function pointer for
4111 la_class_name_from_physname.
4112 (local_language_defn): Ditto.
4113 * dwarf2read.c (guess_structure_name): Change to call
4114 language_class_name_from_physname.
4115 (determine_class_name): Ditto.
4116 * cp-support.c (class_name_from_physname): Renamed.
4117 (cp_class_name_from_physname): New name of function.
4118 * cp-support.h: Ditto.
4119 * c-lang.c (c_language_defn): Change to add NULL
4120 for class_name_from_physname function pointer.
4121 (cplus_language_defn): Change to add cp_class_name_from_physname.
4122 * jv-lang.c (java_class_name_physname): New function.
4123 (java_find_last_component): New static routine.
4124 (java_language_defn): Add java_class_name_from_physname pointer.
4125 * ada-lang.c (ada_language_defn): Change to add NULL
4126 for class_name_from_physname function pointer.
4127 * f-lang.c (f_language_defn): Ditto.
4128 * m2-lang.c (m2_language_defn): Ditto.
4129 * objc-lang.c (objc_language_defn): Ditto.
4130 * p-lang.c (pascal_language_defn): Ditto.
4131 * scm-lang.c (scm_language_defn): Ditto.
4132
ee28ca0f
AC
41332004-07-06 Andrew Cagney <cagney@gnu.org>
4134
4135 Patch from Bart Robinson.
4136 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4137 (O_LARGEFILE): Define to 0, if not defined.
4138
fdb1bf9d
MK
41392004-07-03 Mark Kettenis <kettenis@gnu.org>
4140
cb162ff6
MK
4141 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4142 <machine/pcb.h> and "bsd-kvm.h".
4143 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4144 (m68kbsd_supply_pcb): New function.
4145 (_initialize_m68kbsd_nat): New prototype and function.
4146 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4147 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4148 (LOADLIBES): New variable.
4149 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4150 (LOADLIBES): New variable.
4151
fdb1bf9d
MK
4152 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4153
963c4174
MK
41542004-07-03 Mark Kettenis <kettenis@gnu.org>
4155
4156 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4157 <sys/proc.h>.
4158 (bsd_kvm_cmdlist): New variable.
4159 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4160 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4161 command and "kvm proc" command.
4162 * Makefile.in (bsd-kvm.o): Update dependencies.
4163
533f1d8f
MK
41642004-07-02 Mark Kettenis <kettenis@gnu.org>
4165
4166 * osabi.c: Update copyright year.
4167 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4168 notes if EI_OSABI is set to ELFOSABI_HPUX.
4169
6780dcde
MS
41702004-07-01 Michael Snyder <msnyder@redhat.com>
4171
4172 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4173 that seems to have gotten whacked out of line.
4174
67bebe79
MK
41752004-07-01 Mark Kettenis <kettenis@gnu.org>
4176
4177 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4178 code.
4179
0b5d8877
PH
41802004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4181
4182 * ada-lang.c (decode_packed_array): Minor change to comment.
4183 (ada_value_slice_ptr): New function.
4184 (ada_value_slice): New function.
4185 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4186 test. Don't know why it is there.
4187 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4188 to avoid dereferencing huge arrays from which one is slicing.
4189 (empty_array): Correct to return an array rather than
4190 a subrange value.
4191 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4192 on empty arrays (let'em use 'FIRST instead).
4193
19c1ef65
PH
41942004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4195
4196 Address complaints from gdb_ari.sh:
4197
4198 * ada-exp.y: Include gdb_string.h rather than string.h.
4199 (convert_char_literal): Reformat declaration.
4200 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4201 * ada-lex.l: Change use of free to xfree (the macro would do so
4202 anyway, but this is harmless).
4203 Include gdb_string.h rather than string.h.
4204 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4205
4206 * ada-lang.c (parse): Remove K&Rism in parameter list.
4207 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4208
d81cbc94
MK
42092004-06-30 Mark Kettenis <kettenis@gnu.org>
4210
4211 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4212 dead code.
4213
07681759
MK
42142004-06-30 Mark Kettenis <kettenis@gnu.org>
4215
4216 * alphabsd-nat.c: Update copyright year.
4217 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4218
f7948b5f
JB
42192004-06-29 Joel Brobecker <brobecker@gnat.com>
4220
6e0cdd28 4221 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
4222 (i386_cygwin_in_solib_call_trampoline): New function.
4223 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4224 and skip_trampoline_code gdbarch methods.
4225
8f113c9a
JB
42262004-06-29 Jim Blandy <jimb@redhat.com>
4227
4228 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4229 name actually used in the dependency lists.
4230
97dc871c
RC
42312004-06-29 Randolph Chung <tausq@debian.org>
4232
4233 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4234
47216e51
CV
42352004-06-29 Corinna Vinschen <vinschen@redhat.com>
4236
4237 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 4238 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
4239 functionality.
4240
e623b504
AC
42412004-06-28 Andrew Cagney <cagney@gnu.org>
4242
4243 * defs.h (xstrvprintf): Declare.
4244 * utils.c (xstrvprintf): New function.
4245 (internal_vproblem, xstrprintf, xasprintf)
4246 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4247 * serial.c (serial_printf): Ditto.
4248 * complaints.c (vcomplaint): Ditto.
4249
79acc9b3
CV
42502004-06-29 Corinna Vinschen <vinschen@redhat.com>
4251
4252 * infcmd.c (attach_command): Move call to target_terminal_inferior
4253 behind loading symbol table.
4254
1daf35d9
AC
42552004-06-28 Andrew Cagney <cagney@gnu.org>
4256
4257 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4258 change - add back extern deprecated_ui_loop_hook declaration.
4259
b435e160
AC
42602004-06-28 Andrew Cagney <cagney@gnu.org>
4261
4262 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4263 xstrprintf.
4264 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4265 (c_value_of_variable): Ditto.
4266 * utils.c (internal_vproblem): Ditto.
4267 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4268 * remote.c (add_packet_config_cmd): Ditto.
4269 * remote-rdp.c (rdp_set_command_line): Ditto.
4270 * regcache.c (regcache_dump): Ditto.
4271 * frv-tdep.c (new_variant, new_variant): Ditto.
4272 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4273 (fbsd_find_memory_regions): Ditto.
4274 * breakpoint.c (create_thread_event_breakpoint)
4275 (create_breakpoints): Ditto.
4276 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4277 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4278
06d5cf63
JB
42792004-06-28 Joel Brobecker <brobecker@gnat.com>
4280
4281 * ada-lang.c: Re-indent file, with some massaging to help indent
4282 a bit when the result is otherwise really too ugly.
4283
35809fad
UW
42842004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4285
4286 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4287 code_addr_p and special_addr_p to 'unsigned int'.
4288
40e20472
MK
42892004-06-27 Mark Kettenis <kettenis@gnu.org>
4290
4291 * i386v4-nat.c: Update copyright year and tweak comment.
4292 (regmap): Remove trailing comma.
4293 (supply_gregset): Rename local variable i to regnum. Call
4294 regcache_raw_supply instead of supply_register.
4295 (fill_gregset): Rename argument regno to regnum. Call
4296 regcache_raw_collect instead of regcache_collect.
4297
12b0b6de
UW
42982004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4299
4300 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4301 and special_addr_p.
4302 (frame_id_build, frame_id_build_special): Update comments.
4303 (frame_id_build_wild): New prototype.
4304 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4305 struct frame_id fields.
4306 (frame_id_build_wild): New function.
4307 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4308
47b42a3e
MK
43092004-06-27 Mark Kettenis <kettenis@gnu.org>
4310
4311 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4312 hppabsd-tdep.c.
4313
1265e4aa
JB
43142004-06-27 Joel Brobecker <brobecker@gnat.com>
4315
4316 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4317
76a01679
JB
43182004-06-27 Joel Brobecker <brobecker@gnat.com>
4319
4320 * ada-lang.c: Re-indent file.
4321
7aca490a
JB
43222004-06-27 Joel Brobecker <brobecker@gnat.com>
4323
4324 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4325 (no_symtab_msg): Likewise.
4326
5e987968
AS
43272004-06-27 Andreas Schwab <schwab@suse.de>
4328
4329 * source.c: Fix whitespace.
4330
315c4276
MK
43312004-06-27 Mark Kettenis <kettenis@gnu.org>
4332
d15be926
MK
4333 * configure.in: Include <sys/param.h> for td_pcb test.
4334 * configure: Regenerated.
4335
9062529b
MK
4336 * i386nbsd-nat.c: New file.
4337 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4338 i386obsd-nat.c and i386obsd-tdep.c.
4339 (i386nbsd-nat.o): New dependency.
4340 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4341 bsd-kvm.o.
4342 (LOADLIBES): New variable.
4343 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4344 bsd-kvm.o.
4345 (LOADLIBES): New variable.
4346
8010310e
MK
4347 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4348 (LOADLIBES): New variable.
4349
efe1d7b9
MK
4350 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4351 fetching from BSD_KVM_PADDR. Correctly lookup address for
4352 "_thread0".
4353
315c4276
MK
4354 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4355 "bsd-kvm.h".
4356 (amd64fbsd_supply_pcb): New funcion.
4357 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4358
399cfac6
DL
43592004-06-27 <david@streamline-computing.com>
4360
4361 Partial fix for PR cli/1056.
4362 * valarith.c: Check for zero in division and remainder
4363 evaluation.
4364
6235f9c8
MK
43652004-06-27 Mark Kettenis <kettenis@gnu.org>
4366
4367 * i387-tdep.c: Remove excessive whitespace.
4368
2726dafc
AC
43692004-06-26 Andrew Cagney <cagney@gnu.org>
4370
4371 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4372 * gdb-events.h, gdb-events.c: Re-generate.
4373 * tui/tui-hooks.c (tui_install_hooks): Update.
4374 (tui_remove_hooks): Update.
4375 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4376
0e56aeaf
MK
43772004-06-26 Mark Kettenis <kettenis@gnu.org>
4378
cb461069
MK
4379 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4380 (gregset_t, fpregset_t): Remove typedefs.
4381 (REG_OFFSET): Rename argument.
4382 (amd64bsd_r_reg_offset): Rename from reg_offset.
4383 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4384 Remove functions.
4385 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4386 of reg_offset.
4387 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4388
ecba89de
MK
4389 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4390
4cd80476
MK
4391 * vax-tdep.c: Tweak comment.
4392
0e56aeaf
MK
4393 Add OpenBSD/hppa support.
4394 * NEWS (New native configurations): Mention OpenBSD/hppa.
4395 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4396 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4397 files.
4398 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4399 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4400 * configure.host: Add hppa*-*-openbsd*.
4401 * configure.tgt: Add hppa*-*-openbsd*.
4402
98bbd631
AC
44032004-06-25 Andrew Cagney <cagney@gnu.org>
4404
4405 * defs.h (deprecated_ui_loop_hook): Deprecated.
4406 * wince.c (child_wait): Update.
4407 * win32-nat.c (child_wait): Update.
4408 * v850ice.c (v850ice_wait): Update.
4409 * top.c (deprecated_ui_loop_hook): Update.
4410 * serial.h: Update.
4411 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4412 (do_unix_readchar): Update.
4413 * ser-tcp.c (net_open): Update.
4414 * remote-sim.c (gdb_os_poll_quit): Update.
4415 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4416
769d7dc4
AC
44172004-06-24 Andrew Cagney <cagney@gnu.org>
4418
4419 * defs.h (deprecated_pre_add_symbol_hook)
4420 (deprecated_post_add_symbol_hook): Deprecated.
4421 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4422 (symbol_file_add_with_addrs_or_offsets): Update references.
4423
11c949aa
AC
44242004-06-24 Andrew Cagney <cagney@gnu.org>
4425
4426 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4427 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4428 * wince.c (ui_loop_hook): Delete extern declaration.
4429 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4430 * v850ice.c (ui_loop_hook): Delete extern declaration..
4431 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4432 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4433 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4434 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4435 ui_loop_hook declaration.
4436
eedc19af
AC
44372004-06-24 Andrew Cagney <cagney@gnu.org>
4438
4439 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4440 entry_func_highpc fields.
4441 * objfiles.c (init_entry_point_info): Do not clear
4442 entry_func_lowpc and entry_func_highpc.
4443 (objfile_relocate): Do not relocate entry_func_lowpc and
4444 entry_func_highpc.
4445 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4446 entry_func_highpc.
4447 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4448 entry_func_highpc.
4449 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4450 entry_func_lowpc and entry_func_highpc with call to
4451 inside_entry_func.
4452
d47079be
MK
44532004-06-24 Mark Kettenis <kettenis@gnu.org>
4454
4455 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4456 quad-precision floating point arguments in registers.
4457
2107e348
MK
44582004-06-24 Mark Kettenis <kettenis@gnu.org>
4459
4460 From Michael Mueller <m.mueller99@kay-mueller.de>:
4461 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4462 account.
4463
46587c42
JJ
44642004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4465
4466 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4467 to -1.
4468 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4469 untriggered watchpoints to a separate if clause. Update function
4470 comment regarding STOPPED_BY_WATCHPOINT argument.
4471
226f5cf4
JB
44722004-06-22 Jim Blandy <jimb@redhat.com>
4473
4474 * gdbarch.sh: Doc fix.
4475
f10683bb
MH
44762004-06-21 Martin Hunt <hunt@redhat.com>
4477 Kevin Buettner <kevinb@redhat.com>
4478
4479 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4480 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4481 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4482 to set_gdbarch_sp_regnum(). Use cooked register number.
4483 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4484
412d5987
AC
44852004-06-21 Andrew Cagney <cagney@gnu.org>
4486
4487 * gdbarch.sh: When the macro field is empty, do not generate a
4488 macro definition. When the macro field is "=", generate the macro
4489 name from the upper-case function name.
4490 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4491 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4492 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4493 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4494 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4495 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4496 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4497 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4498 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4499 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4500 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4501 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4502 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4503 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4504 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4505 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4506 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4507 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4508 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4509 (DEPRECATED_USE_STRUCT_CONVENTION)
4510 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4511 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4512 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4513 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4514 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4515 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4516 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4517 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4518 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4519 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4520 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4521 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4522 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4523 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4524 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4525 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4526 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4527 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4528
68908a3e
AC
45292004-06-21 Andrew Cagney <cagney@gnu.org>
4530
48f7351b
AC
4531 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4532 macro name, and the function rather than macro value. Only wrap
4533 macro print statements in #ifdef. Move format logic to where it
4534 is needed.
4535 * gdbarch.c: Re-generate.
4536
283354d8
AC
4537 * gdbarch.sh (read): Delete "print_p" and "description", add
4538 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4539 Delete references to print_p.
4540 (TARGET_ARCHITECTURE): Delete print predicate.
4541 * gdbarch.c: Re-generate.
4542
68908a3e
AC
4543 * gdbarch.sh: Check that multi-arch methods do not provide a
4544 macro.
4545 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4546 (print_registers_info, print_float_info, print_vector_info)
4547 (adjust_breakpoint_address, remote_translate_xfer_address)
4548 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4549 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4550 name from the multi-arch definition.
4551
a2428dbe
AC
45522004-06-20 Andrew Cagney <cagney@gnu.org>
4553
4554 * gdbarch.sh: Sort by the function, instead of macro name.
4555 * gdbarch.c: Re-generate.
4556
750eb019
AC
45572004-06-20 Andrew Cagney <cagney@gnu.org>
4558
66d659b1
AC
4559 * gdbarch.sh: Use the function, instead of macro name in
4560 errors and the log file.
4561 (return_value): Remove stray ":" in spec.
4562
750eb019
AC
4563 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4564 * gdbarch.h, gdbarch.c: Re-generate.
4565 * Makefile.in (arch-utils.o): Update dependencies.
4566 * values.c (using_struct_return): Move code calling
4567 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4568 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4569 to legacy_return_value, simplify.
4570 * infcmd.c (print_return_value): Move code calling
4571 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4572 to legacy_return_value, simplify.
4573 * infcall.c (call_function_by_hand): Move code calling
4574 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4575 * arch-utils.c: Update copyright. Include "gdbcore.h".
4576 (legacy_return_value): New function.
4577 * arch-utils.h: Update copyright.
4578 (legacy_return_value): Declare.
4579
b5622e8d
AC
45802004-06-20 Andrew Cagney <cagney@gnu.org>
4581
4582 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4583 * gdbarch.h, gdbarch.c: Re-generate.
4584 * values.c (using_struct_return): Update call.
4585 * mcore-tdep.c: Update comment.
4586 * infcall.c (call_function_by_hand): Update comment.
4587 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4588 * arch-utils.h (always_use_struct_convention): Update.
4589 * v850-tdep.c (v850_gdbarch_init): Update.
4590 * sh64-tdep.c (sh64_gdbarch_init): Update.
4591 * sh-tdep.c (sh_gdbarch_init): Update.
4592 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4593 * mips-tdep.c (mips_gdbarch_init): Update.
4594 * mcore-tdep.c (mcore_gdbarch_init): Update.
4595 * m32r-tdep.c (m32r_gdbarch_init): Update.
4596 * ia64-tdep.c (ia64_gdbarch_init): Update.
4597 * h8300-tdep.c (h8300_gdbarch_init): Update.
4598 * frv-tdep.c (frv_gdbarch_init): Update.
4599 * cris-tdep.c (cris_gdbarch_init): Update.
4600 * arm-tdep.c (arm_gdbarch_init): Update.
4601 * alpha-tdep.c (alpha_gdbarch_init): Update.
4602
5191de37
MC
46032004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4604
4605 * PROBLEMS: Add more specific information, and a work-around,
4606 for PR gdb/1458.
4607
782263ab
AC
46082004-06-18 Andrew Cagney <cagney@gnu.org>
4609
4610 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4611 * gdbarch.h, gdbarch.c: Re-generate.
4612 * ada-lang.c (ada_finish_decode_line_1): Update.
4613 * infrun.c (handle_inferior_event): Update.
4614 * infcall.c (find_function_addr): Update.
4615 * linespec.c (minsym_found): Update.
4616 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4617 Update.
4618 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4619 * cli/cli-cmds.c (disassemble_command): Update.
4620 * vax-tdep.c (vax_gdbarch_init): Update.
4621
2f305df1
MK
46222004-06-18 Mark Kettenis <kettenis@gnu.org>
4623
4624 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4625
e5fe55f7
AC
46262004-06-17 Andrew Cagney <cagney@gnu.org>
4627
4628 GDB 6.1.1 released from the GDB 6.1 branch.
4629 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4630 * PROBLEMS: Ditto.
4631
473b7be6
DJ
46322004-06-16 Daniel Jacobowitz <dan@debian.org>
4633
4634 PR gdb/1658
4635 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4636 operation as a uleb128. Found by Michael Coulter.
4637
96d887e8
PH
46382004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4639
4640 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4641 make it non-static.
4642 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4643 to ada-lang.h; this is needed to be able to implement the kill command
4644 in multi-task mode.
4645 (task_ptid): Ditto.
4646 (task_entry): Ditto.
4647 (task_list): Ditto.
4648 (ada_build_task_list): Ditto.
4649
4650 * ada-lang.c: Conditionalize routines and data structures related
4651 to breakpoints, exceptions, completion, and symbol caching on
4652 GNAT_GDB, since these are not yet used in the submitted public sources.
4653 (ada_main_name): Editorial: Move definition out of exception-related
4654 code.
4655
31eef181
AC
46562004-06-15 Andrew Cagney <cagney@gnu.org>
4657
4658 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4659 deprecated_pc_in_call_dummy.
4660
2c500098
AM
46612004-06-15 Alan Modra <amodra@bigpond.net.au>
4662
4663 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4664 bfd_get_section_size_before_reloc or _raw_size.
4665 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4666 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4667 (dwarf2_read_section): Likewise.
4668 * elfread.c (elf_locate_sections): Likewise.
4669 * gcore.c (derive_heap_segment): Likewise.
4670 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4671 * remote-e7000.c (e7000_load): Likewise.
4672 * remote-m32r-sdi.c (m32r_load): Likewise.
4673 * remote-mips.c (mips_load_srec): Likewise.
4674 (pmon_load_fast): Likewise.
4675 * remote.c (compare_sections_command): Likewise.
4676 * symfile.c (add_section_size_callback): Likewise.
4677 (load_section_callback): Likewise.
4678 (pc_in_unmapped_range): Likewise.
4679 (pc_in_mapped_range): Likewise.
4680 (sections_overlap): Likewise.
4681 (list_overlays_command): Likewise.
4682 (simple_overlay_update_1): Likewise.
4683 (simple_overlay_update): Likewise.
4684 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4685 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4686
90f943f1
RC
46872004-06-14 Randolph Chung <tausq@debian.org>
4688
4689 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4690 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4691 static.
4692 (hppa_hpux_inferior_created): New function.
4693 (hppa_hpux_init_abi): Register observer.
4694 * symfile.c (hp_cxx_exception_support_initialized)
4695 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4696 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4697
700c15aa
RC
46982004-06-14 Randolph Chung <tausq@debian.org>
4699
3973a7d3
AC
4700 * MAINTAINERS (Write After Approval): Alphabetize my entry
4701 correctly.
700c15aa 4702
cea4838c
AC
47032004-06-14 Andrew Cagney <cagney@gnu.org>
4704
4705 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4706 testsuite maintainer.
4707
97092415
AC
47082004-06-13 Andrew Cagney <cagney@gnu.org>
4709
e8c3165b
AC
4710 * infcmd.c (print_return_value): Fix logic, allow
4711 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4712
bceabdd8
AC
4713 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4714 defining any macros.
4715 * gdbarch.h: Re-generate.
4716
57010b1c
AC
4717 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4718 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4719 * gdbarch.h: Re-generate.
4720
bc87dfa0
AC
4721 * values.c (generic_use_struct_convention): Don't check gcc_p.
4722
15ac804d
AC
4723 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4724 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4725 * gdbarch.h, gdbarch.c: Regenerate.
4726 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4727 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4728 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4729 deprecated_max_register_raw_size and
4730 deprecated_max_register_virtual_size.
4731 * v850-tdep.c (v850_gdbarch_init): Ditto.
4732 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4733 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4734 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4735 * cris-tdep.c (cris_gdbarch_init): Ditto.
4736
97092415
AC
4737 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4738 * gdbarch.h, gdbarch.c: Re-generate.
4739 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4740 (m68hc11_use_struct_convention): Delete function.
4741 (m68hc11_extract_struct_value_address): Delete function.
4742 (m68hc11_return_value): New function.
4743 (m68hc11_gdbarch_init): Instead of store_return_value,
4744 extract_return_value, return_value_on_stack,
4745 deprecated_extract_struct_value_address and use_struct_convention,
4746 set return_value.
4747 * values.c (using_struct_return): Do not call
4748 RETURN_VALUE_ON_STACK.
4749 * arch-utils.h (generic_return_value_on_stack_not): Delete
4750 declaration.
4751 * arch-utils.c (generic_return_value_on_stack_not): Delete
4752 function.
4753
44e5158b
AC
47542004-06-12 Andrew Cagney <cagney@gnu.org>
4755
4756 * values.c (register_value_being_returned): Delete function.
4757 * infcmd.c (legacy_return_value): Delete function.
4758 * infcall.c (call_function_by_hand): Inline
4759 "register_value_being_returned", simplify.
4760 * values.c (using_struct_return): Update comment, refer to
4761 print_return_value instead of register_value_being_returned.
4762 * infcmd.c (print_return_value): Inline calls to
4763 register_value_being_returned and legacy_return_value. Simplify.
4764
b887c273
RC
47652004-06-11 Randolph Chung <tausq@debian.org>
4766
4767 * somread.c (som_symtab_read): Exclude gcc local symbols.
4768
1b2bfbb9
RC
47692004-06-11 Randolph Chung <tausq@debian.org>
4770
3973a7d3
AC
4771 * infrun.c (handle_inferior_event): Handle the case when a
4772 trampoline ends up in the runtime resolver, and if the trampoline
4773 has no name. Rearrange the code so that all the trampoline
4774 processing happens before other step-out-of-range handling.
1b2bfbb9 4775
a9d61c86
MH
47762004-06-11 Martin Hunt <hunt@redhat.com>
4777
4778 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4779 has no fpu.
4780
2c87cf5a
AC
47812004-06-10 Andrew Cagney <cagney@gnu.org>
4782
4783 * blockframe.c (legacy_inside_entry_func): Delete.
4784 (legacy_frame_chain_valid): Inline call to
4785 legacy_inside_entry_func, simplify.
4786
0b67b468 47872004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
4788
4789 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
4790 * dwarf2read.c (partial_die_info): Add dirname field.
4791 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4792 (read_partial_die): Save away DW_AT_comp_dir.
4793 * defs.h (symtab_to_filename): Removed.
4794 * source.c (find_and_open_source): Added.
57c22c6c 4795 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
4796 (symtab_to_filename): Removed.
4797 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
4798 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4799 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4800 symtab_to_filename.
4801 * symtab.h (partial_symtab): Add dirname field.
4802 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
4803 (mi_cmd_file_list_exec_source_file): Call new function
4804 symtab_to_fullname to find fullname.
57c22c6c 4805 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 4806 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
4807 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4808
9a1dd1ad
AC
48092004-06-10 Andrew Cagney <cagney@gnu.org>
4810
239ae8c7
AC
4811 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4812 to generic_use_struct_convention, the default value.
4813
fc720350
AC
4814 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4815 of abort.
4816
9a1dd1ad
AC
4817 * ns32k-tdep.c (ns32k_push_arguments): New function.
4818 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4819 * infcall.c (call_function_by_hand): Call error instead of
4820 legacy_push_arguments.
4821 * value.h (legacy_push_arguments): Delete declaration.
4822 * valops.c (legacy_push_arguments): Delete function.
4823 (value_push): Delete function.
4824
fea25152
BF
48252004-06-10 Brian Ford <ford@vss.fsi.com>
4826
4827 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4828 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4829 info.
4830 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4831
30a4a8e0
AC
48322004-06-10 Andrew Cagney <cagney@gnu.org>
4833
4834 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4835 * gdbarch.h, gdbarch.c: Re-generate.
4836 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4837 parameters.
4838 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4839 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4840 deprecated_pc_in_call_dummy instead of
4841 DEPRECATED_PC_IN_CALL_DUMMY.
4842 (arm_skip_prologue): Ditto.
4843 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4844 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4845 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4846 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4847 Ditto.
4848 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4849 (sh64_init_extra_frame_info, sh64_get_saved_register)
4850 (sh64_pop_frame): Ditto.
4851 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4852 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4853 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4854 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4855 (h8300_pop_frame): Ditto.
4856 * blockframe.c (legacy_inside_entry_func)
4857 (legacy_frame_chain_valid): Ditto.
4858 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4859 to deprecated_pc_in_call_dummy.
4860
81cfbe54
AC
48612004-06-09 Andrew Cagney <cagney@gnu.org>
4862
a1f4a1b6
AC
4863 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4864 provide a default value.
4865 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4866 * gdbarch.h, gdbarch.c: Re-generate.
4867 * arch-utils.c (generic_convert_register_p): Rename
4868 legacy_convert_register_p
4869 (legacy_register_to_value, legacy_value_to_register): Delete
4870 functions.
4871 * arch-utils.h (generic_convert_register_p): Rename
4872 legacy_convert_register_p.
4873 (legacy_register_to_value, legacy_value_to_register): Delete
4874 declarations.
4875
9730f241
AC
4876 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4877 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4878 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4879 * gdbarch.h, gdbarch.c: Re-generate.
4880 * infcmd.c (default_print_registers_info): Simplify.
4881 * findvar.c (value_of_register): Simplify.
4882 * mi/mi-main.c (get_register): Simplify.
4883 * arch-utils.c (legacy_convert_register_p): Always return 0.
4884 (legacy_register_to_value, legacy_value_to_register): Always call
4885 internal_error.
4886
8a1bf479
AC
4887 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4888 #ifdef CLEAR_INSN_CACHE code.
4889 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4890 Delete #ifdef CLEAR_DEFERRED_STORES code.
4891
4b38d6f1
AC
4892 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4893
2d62ecc7
AC
4894 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4895 copyright.
4896 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4897
be4f7469
AC
4898 * config/mips/mipsv4.mh: Delete file.
4899
81cfbe54
AC
4900 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4901 unreferenced macro.
4902 (hpread_adjust_stack_address): Delete declaration.
4903
d966f0cb
AC
49042004-06-08 Andrew Cagney <cagney@gnu.org>
4905
4906 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4907 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4908 PTRACE_ATTACH / PTRACE_DETACH available call error.
4909 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4910 * infttrace.c (update_thread_state_after_attach, attach, detach):
4911 Remove #ifdef wrappers.
4912 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4913 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4914 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4915 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4916 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4917 * config/nm-linux.h (ATTACH_DETACH): Delete.
4918 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4919 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4920 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4921 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4922 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4923
d91670b9
CV
49242004-06-08 Corinna Vinschen <vinschen@redhat.com>
4925
4926 * configure.in: Set $configdir to the right OS specific value.
4927 Use value when setting $tcldir and $tkdir.
4928 * configure: Regenerate.
4929
28ba0b33
PB
49302004-06-06 Paul Brook <paul@codesourcery.com>
4931
4932 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4933 records.
4934
f26caa11
PH
49352004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4936
4937 * ada-lang.c (lookup_symbol_in_language): New function to allow
4938 re-use of another language's symbol lookup code. (Placed here
4939 temporarily while Ada support is being integrated into the public
4940 tree).
4941 (restore_language): New auxiliary function for
4942 lookup_symbol_in_language.
4943 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4944 temporarily while Ada support is being integrated into the public
4945 tree).
4946
d560a54b
AO
49472004-06-08 Alexandre Oliva <aoliva@redhat.com>
4948
e75d110c
AO
4949 * Makefile.in (check//%): New.
4950
d560a54b
AO
4951 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4952 (mn10300_store_return_value): Rewrite.
4953 (mn10300_type_align): New.
4954 (mn10300_use_struct_convention): Rewrite.
4955 (mn10300_return_value): New, using all of the above.
4956 (mn10300_pop_frame_regular): Add saved_regs_size.
4957 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4958
a72fbdb7
AO
4959 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4960 regs if PC is on movm.
4961
01904826
JB
49622004-06-07 Jim Blandy <jimb@redhat.com>
4963
4964 Add native Linux support for the PowerPC E500.
4965 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4966 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4967 all architectures except the E500.
4968 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4969 #definitions.
4970 (struct gdb_evrregset_t): New type.
4971 (have_ptrace_getsetevrregs): New variable.
4972 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4973 fetch_spe_registers): New functions.
4974 (fetch_register): Call fetch_spe_register as appropriate.
4975 Assert that we're only passed raw register numbers.
4976 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4977 Don't fetch gprs if they're pseudoregisters.
4978 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4979 store_spe_registers): New functions.
4980 (store_register): Call store_spe_register as appropriate.
4981 Assert that we're only passed raw register numbers.
4982 (store_ppc_registers): Call store_spe_registers as appropriate.
4983 Don't store gprs if they're pseudoregisters.
4984
f90ef764
JJ
49852004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4986
4987 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4988 struct if one exists, even if we are dealing with a zombie thread.
4989
45b75230
AC
49902004-06-07 Andrew Cagney <cagney@gnu.org>
4991
4992 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4993 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4994 Rename PC_REQUIRES_RUN_BEFORE_USE.
4995 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4996 #ifdef.
4997
1658da49
RC
49982004-06-07 Randolph Chung <tausq@debian.org>
4999
5000 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5001 unwinding after sp has been saved to the stack but before the end
5002 of the prologue, and after the fp has been modified but before it has
5003 been saved to the stack.
5004 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5005 Remove superfluous definitions.
5006 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5007
9a727a3c
RC
50082004-06-07 Guy Martin <gmsoft@gentoo.org>
5009
5010 Committed by Randolph Chung.
5011 * hppa-linux-nat.c: Include the correct version of the header file
5012 depending on the kernel version.
5013
9e500012
RC
50142004-06-06 Randolph Chung <tausq@debian.org>
5015
5016 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5017 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5018
3388d7ff
RC
50192004-06-06 Randolph Chung <tausq@debian.org>
5020
5021 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5022 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5023 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5024 * hppa-tdep.c (hppa_symbol_address): New function definition.
5025 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5026
d49771ef
RC
50272004-06-06 Randolph Chung <tausq@debian.org>
5028
5029 * hppa-tdep.h (struct value): Forward declaration.
5030 (gdbarch_tdep): Define tdep find_global_pointer method.
5031 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5032 associated with the function we are trying to call, and write it
5033 to the gp register.
5034 (hppa32_convert_from_funct_ptr_addr): New function.
5035 (hppa_find_global_pointer): New function.
5036 (hppa_gdbarch_init): Set default find_global_pointer method; set
5037 convert_from_func_ptr_addr method.
5038 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5039 (hppa_linux_init_abi): Set find_global_pointer method.
5040 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5041
7d9b040b
RC
50422004-06-06 Randolph Chung <tausq@debian.org>
5043
5044 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5045 to struct value *function.
5046 * gdbarch.c: Regenerate.
5047 * gdbarch.h: Likewise.
5048 * infcall.c (call_function_by_hand): Pass entire function value
5049 to push_dummy_call.
5050
5051 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5052 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5053 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5054 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5055 * arm-tdep.c (arm_push_dummy_call): Likewise.
5056 * avr-tdep.c (avr_push_dummy_call): Likewise.
5057 * cris-tdep.c (cris_push_dummy_call): Likewise.
5058 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5059 * frv-tdep.c (frv_push_dummy_call): Likewise.
5060 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5061 * hppa-tdep.c (hppa32_push_dummy_call)
5062 (hppa64_push_dummy_call): Likewise.
5063 * i386-tdep.c (i386_push_dummy_call): Likewise.
5064 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5065 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5066 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5067 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5068 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5069 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5070 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5071 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5072 (ppc64_sysv_abi_push_dummy_call): Likewise.
5073 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5074 (ppc64_sysv_abi_push_dummy_call): Likewise.
5075 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5076 * s390-tdep.c (s390_push_dummy_call): Likewise.
5077 * sh-tdep.c (sh_push_dummy_call_fpu)
5078 (sh_push_dummy_call_nofpu): Likewise.
5079 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5080 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5081 * vax-tdep.c (vax_push_dummy_call): Likewise.
5082
4a19ea35
JB
50832004-06-04 Jim Blandy <jimb@redhat.com>
5084
8327ccee
JB
5085 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5086 gdbarch argument to register_size.
5087
a3c001ce
JB
5088 * rs6000-tdep.c (rs6000_store_return_value): Use
5089 regcache_cooked_write_part instead of
5090 deprecated_write_register_bytes.
5091 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5092 not gdbarch_deprecated_store_return_value.
5093
4a19ea35
JB
5094 * ppc-linux-nat.c (store_register, fetch_register): Remove
5095 incorrect assertions. Simplify and generalize handling of
5096 transfers whose sizes are not multiples of, or less than, sizeof
5097 (PTRACE_XFER_TYPE).
5098
b9b5d7ea
JJ
50992004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5100
5101 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5102 as a new thread event.
720c7d64 5103 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 5104 zombie, return TD_THR_ZOMBIE.
720c7d64 5105 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
5106 TD_THR_ZOMBIE, check if the thread is still on the thread list
5107 and return a -1 ptid if not found.
5108 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5109 change the status to TARGET_WAITKIND_SPURIOUS.
5110
c8a3b559
CV
51112004-06-03 Corinna Vinschen <vinschen@redhat.com>
5112
5113 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5114 double values in little endian mode.
5115
20605361
AC
51162004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5117
5118 Committed by Andrew Cagney.
5119 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5120 after last enum constant to avoid error from IBM C
5121 compiler.
5122
bc97b3ba
JB
51232004-06-02 Jim Blandy <jimb@redhat.com>
5124
5125 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5126 to 'message', and make it local to the lone block that uses it.
5127
1da28ab0
JB
5128 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5129
4c4b4cd2
PH
51302004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5131
8a2225b2
PH
5132 * ada-exp.y: Update copyright notice.
5133 Include block.h.
5134
5135 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5136 SPECIAL_VARIABLE and unify the treatment of these cases.
5137
5138 (write_attribute_call0): Remove.
5139 (write_attribute_call1): Remove.
5140 (write_attribute_calln): Remove.
5141 (save_qualifier): Add missing semicolon.
5142
5143 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5144 temporarily disabled to allow compilation with FSF head version.
5145
5146 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5147 use individual operators (OP_*) for all attributes.
5148 (exp syntax): Use write_int.
5149 Handle STRING literals with OP_STRING.
5150 (variable syntax): Add limit parameter to calls to
5151 write_object_renaming.
5152
5153 (temp_parse_space): New definition to hold entities that need
5154 only live until the next call to ada_parse.
5155 (string_to_operator): Rename fields of ada_opname_table entries.
5156
5157 (write_var_from_sym): Record block.
5158 (write_var_from_name): Minor reformatting.
5159 Make sure saved name is properly encoded in the case of multiple
5160 matches, and set its language to Ada.
5161 Update comment.
5162 Modify to indicate unresolved name as symbol in the UNRESOLVED
5163 namespace, allocated in temp_parse_space.
5164 (write_int): New function.
5165
5166 (write_object_renaming): Add max_depth parameter to limit
5167 chains of object renamings.
5168 Handle case where root of renaming expression is itself a renaming.
5169 Use temp_parse_space for temporary name buffer.
5170 Handle renamings to dereferenced pointers (___XEXA suffices).
5171
5172 (ada_parse, yyerror, string_to_operator,
5173 write_var_from_sym, write_var_from_name, write_attribute_call0,
5174 write_attribute_call1, write_attribute_calln,
5175 write_object_renaming): Protoize.
5176
5177 (_initialize_ada_exp): New function.
5178
5179 * ada-lang.c: Update copyright notice.
5180 General terminology change to conform to GNAT compiler usage:
5181 mangle => encode, demangle => decode
5182 Include gdb_obstack.h.
5183 Include gdb_regex.h
5184 Include frame.h
5185 Include hashtab.h
5186 Include completer.h
5187 Include gdb_stat.h
5188 Include block.h
5189 Include infcall.h
5190
5191 (ADA_RETAIN_DOTS): Make sure this is defined.
5192 (TRUNCATION_TOWARDS_ZERO): Define.
5193 (struct string_vector): Define.
5194 (unresolved_names): Remove definition.
5195 (xnew_string_vector): New function.
5196 (string_vector_append): New function.
5197 (extract_string): Make static.
5198 (ada_unqualified_name): New function.
5199 (add_angle_brackets): New function.
5200 (function_name_from_pc): New function.
5201 (place_on_stack): Rename to ensure_lval.
5202
5203 (ensure_lval): Renamed from place_on_stack.
5204 Make identity on lvals.
5205 Update comment.
5206 (is_nonfunction): New interface.
5207 Only symbols in LOC_CONST class can be enumerals.
5208 (fill_in_ada_prototype): Remove; now independent of language.
5209 (add_defn_to_vec): Add obstack and symtab arguments.
5210 Use obstack to hold collected definitions.
5211 (num_defns_collected): New function.
5212 (defns_collected): New function.
5213 (ada_resolve_subexp): Rename to resolve_subexp.
5214 (resolve_subexp): Renamed from ada_resolve_subexp.
5215 (ada_op_name): Return non-const result.
5216 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5217 other purposes.
5218
5219 (to_fixed_array_type): Add declaration.
5220 (coerce_unspec_val_to_type): Remove offset parameter.
5221 (find_sal_from_funcs_and_line): New interface.
5222 (find_line_in_linetable): Ditto.
5223
5224 (all_sals_for_line): Rename to ada_sals_for_line and make
5225 global.
5226 Add new parameter. When set, do not ask the user to choose the
5227 instance, but use the first one found instead.
5228 Use given line number in returned sals.
5229 Fix comment.
5230 Skip the prologue if funfirstline is set.
5231 Correct for memory leak when 0 lines found.
5232
5233 (value_pos_atr): Use pos_atr.
5234 (pos_atr): New function.
5235 (standard_lookup): Add block parameter.
5236
5237 (makeTimeStart): Remove declaration and uses.
5238 (makeTimeStop): Remove declaration and uses.
5239
5240 (ada_completer_word_break_characters): Allow for VMS.
5241 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5242 (raise_sym_name): New constant.
5243 (raise_unhandled_sym_name): New constant.
5244 (raise_assert_sym_name): New constant.
5245 (process_raise_exception_name): New constant.
5246 (longest_exception_template): New constant.
5247 (warning_limit): New variable to limit warnings during expression
5248 evaluation.
5249 (warnings_issued): New variable to keep track of warnings issued.
5250 (known_runtime_file_name_patterns): New constant.
5251 (known_auxiliary_function_name_patterns): New constant.
5252 (symbol_list_obstack): New variable.
5253
5254 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5255 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5256 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5257 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5258 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5259 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5260 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5261 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5262 and strcmp.
5263
5264 (ada_get_field_index): New function.
5265 (lim_warning): New function.
5266 (ada_translate_error_message): New function.
5267 (MAX_OF_SIZE): New function.
5268 (MIN_OF_SIZE): New function.
5269 (UMAX_OF_SIZE): New function.
5270 (UMIN_OF_SIZE): New function.
5271 (discrete_type_high_bound): New function.
5272 (discrete_type_low_bound): New function.
5273 (base_type): New function.
5274 (do_command): Remove.
5275
5276 (ada_update_initial_language): Use language_ada, not language_unknown.
5277 (ada_encode): Renamed from ada_mangle.
5278 Obey ADA_RETAIN_DOTS.
5279 (ada_decode): Renamed from ada_demangle.
5280 Update coding conventions.
5281 (decoded_names_store): New hash table.
5282 (ada_decode_symbol): New function.
5283 (ada_la_decode): New function.
5284
5285 (modify_general_field): Correct computations of offset and bit
5286 position.
5287 (desc_base_type): Handle ref types, too.
5288 (ada_is_direct_array_type): New function.
5289
5290 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5291 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5292 (ada_is_bogus_array_descriptor,ada_type_of_array,
5293 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5294 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5295 ada_is_array_descriptor_type.
5296
5297 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5298 (ada_is_packed_array_type): Handle pointers or
5299 references to packed arrays as well.
5300 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5301 (decode_packed_array_type): Search for the packed array type
5302 symbol in the currently selected block and associated
5303 superblocks too.
5304 Use lookup_symbol again.
5305
5306 (decode_packed_array): Handle pointers and references.
5307 Update call to coerce_unspec_val_to_type.
5308 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5309 (ada_value_primitive_packed_val): Improve comment.
5310
5311 (ada_index_type): Substitute int type for "undefined".
5312 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5313 ada_array_langth, ada_is_string_type): Use renamed
5314 ada_is_simple_array_type.
5315 (empty_array): New function.
5316
5317 (ada_resolve): Rename to resolve.
5318 (resolve): Make static.
5319 Call renamed resolve_subexp.
5320 Update comment.
5321 (ada_resolve_subexp): Rename to resolve_subexp.
5322 (resolve_subexp): Update comment.
5323 Decomment disabled code.
5324 Add LOC_COMPUTED* cases.
5325 Modify to use temporary struct symbols (marked as being in
5326 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5327 OP_UNRESOLVED_VALUE.
5328 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5329 Add OP_STRING case.
5330 Remove OP_ARRAY.
5331 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5332 Use new ada_lookup_symbol_list interface.
5333 Use new ada_resolve_function interface.
5334 Remove OP_TYPE case.
5335
5336 (ada_args_match): Idiot proof against null actuals.
5337 Use intermediate variables to clarify.
5338 (ada_resolve_function): Update comment and interface.
5339 (mangled_ordered_before): Rename to encoded_ordered_before and
5340 update comment.
5341 (sort_choices): Update comment and interface.
5342 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5343 (user_select_syms): New interface.
5344 Use new sort_choices interface.
5345 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5346 (possible_user_operator_p): Idiot-proof against null values.
5347 (ada_simple_renamed_entity): Don't make cleanup; rely on
5348 caller to free result string.
5349 Remove const from return type.
5350 (make_array_descriptor): Rename uses of place_on_stack to
5351 ensure_lval.
5352 Make sure that arrays are on stack.
5353
5354 (HASH_SIZE): Define.
5355 (struct cache_entry): Define.
5356 (cache_space): Define.
5357 (cache): Define.
5358 (clear_ada_sym_cache): New function.
5359 (find_entry): New function.
5360 (lookup_cached_symbol): New function.
5361 (defn_vector_size): Define.
5362 (cache_symbol): New function.
5363 (defn_symbols): Remove.
5364
5365 (standard_lookup): Use lookup_symbol_in_language to get effect of
5366 C lookup.
5367 Cache results.
5368
5369 (symbol_completion_match): New function.
5370 (symbol_completion_add): New function.
5371 (ada_make_symbol_completion_list): New function.
5372
5373 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5374 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5375 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5376 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5377
5378 (ada_lookup_simple_minsym): New function.
5379 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5380
5381 (add_symbols_from_enclosing_procs): New interface.
5382 Conditionalize more helpfully.
5383 Don't bother if program isn't running.
5384 Use new interface to get_frame_block.
5385 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5386
5387 (remove_extra_symbols): New interface.
5388 (xget_renaming_scope): New function.
5389 (is_package_name): New function.
5390 (renaming_is_visible): New function.
5391 (remove_out_of_scope_renamings): New function.
5392
5393 (ada_lookup_symbol_list): New interface.
5394 Properly reinitialize the symbol list obstack.
5395 Don't call add_symbols_from_enclosing_procs if we start from a
5396 static or global block.
5397 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5398 add_symbols_from_enclosing_procs.
5399 Add symtab data to cached entries.
5400 Handle symbols prefixed with
5401 "standard__" specially; strip prefix and don't look in local symbols.
5402 Do not include out of scope renaming symbols in list of
5403 symbols returned.
5404 Add const to block parameter.
5405 Move check for non-local, non-global symbols earlier.
5406 Remove timing stuff.
5407 (ada_lookup_symbol): New interface.
5408 Find symtab as well.
5409 (ada_lookup_symbol_nonlocal): New function.
5410
5411 (is_name_suffix): Enhance suffix detection to recognize
5412 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5413 (is_dot_digits_suffix): New function.
5414 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5415
5416 (ada_add_block_symbols): New interface. Use obstack to return results
5417 in a vector of struct ada_symbol_infos. Add symtab argument.
5418 Use new interface to add_defn_to_vec.
5419 Remove calls to fill_in_ada_prototype.
5420 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5421
5422 (ada_finish_decode_line_1): Add const qualification to local to fix
5423 warning.
5424 Start looking in static block for functions to avoid attempts
5425 to search frame chain for up-level variables.
5426 Adapt to new ada_sals_for_line interface.
5427 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5428 Handle quoting of the function name inside the spec string.
5429 Skip prologue when funfirstline is set and update the
5430 function documentation to that effect.
5431
5432 (debug_print_lines, debug_print_block, debug_print_blocks,
5433 debug_print_symtab): Remove.
5434
5435 (ada_main_name): New function.
5436 (ada_exception_breakpoint_type): New function.
5437 (is_known_support_routine): New function.
5438 (ada_find_printable_frame): Renamed from find_printable_frame and made
5439 global.
5440 Remove level parameter.
5441 Use new interface to select_frame.
5442
5443 (begin_command): Remove.
5444 (ada_adjust_exception_stop): New function.
5445 (ada_print_exception_stop): New function.
5446 (exception_name_from_cond): New function.
5447 (ada_report_exception_break): Replace disabled code with
5448 conditionalization on GNAT_GDB.
5449 Get the exception name from the condition string.
5450 Remove and move functionality into new functions
5451 ada_print_exception_breakpoint_task and
5452 ada_print_exception_breakpoint_nontask.
5453 (error_breakpoint_runtime_sym_not_found): New function.
5454 (is_runtime_sym_defined): New function.
5455 (ada_breakpoint_rewrite): Uncomment suppressed code.
5456 Use symbolic error-message and runtime-symbol names.
5457 Surround runtime symbol names in quotes.
5458 Allow non-specific breakpoints on exceptions and assertions before
5459 program starts.
5460
5461 (ada_is_tagged_type): Add parameter.
5462 (ada_is_tag_type): New function.
5463 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5464 (ada_variant_discrim_type): Ditto.
5465 (value_tag_from_contents_and_address): New function.
5466 (type_from_tag): New function.
5467 (struct tag_args): New structure used to communicate with
5468 ada_tag_name_1.
5469 (ada_tag_name_1): New function.
5470 (ada_tag_name): New function.
5471
5472 (ada_scan_number): Update comment.
5473 (find_struct_field): New function.
5474 (ada_search_struct_field): Make static.
5475 (ada_value_struct_elt): New version that returns references when
5476 given pointers or references to structs.
5477 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5478 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5479 interface.
5480 (ada_value_ind): Use new ada_to_fixed_value interface.
5481 (ada_coerce_ref): Ditto.
5482 (field_offset): Remove.
5483
5484 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5485 (ada_find_renaming_symbol): New function.
5486 (ada_prefer_type): Prefer named types over unnamed ones.
5487 (variant_field_index): New function.
5488 (contains_variant_part): Removed: subsumed by variant_field_index.
5489 (ada_template_to_fixed_record_type): New function, mostly from
5490 template_to_fixed_record_type.
5491 (template_to_fixed_record_type):
5492 Do not scan the type fields beyond the last one; prevents a
5493 potential SEGV.
5494 Handle case where variant field is listed BEFORE discriminant it
5495 depends on.
5496 Fix calculation of record length when bit length is
5497 not evenly divisible by char length.
5498 Move code to ada_template_to_fixed_record_type and call it.
5499
5500 (template_to_static_fixed_type): Revise comment.
5501 Modify to work on ordinary record types as well as templates,
5502 so as to handle fields that use ___XVE or ___XVU encodings.
5503 (to_record_with_fixed_variant_part): Fill out comment.
5504 Initialize C++ stuff in right type.
5505 Allow case where DVAL is null.
5506 Handle case where variant field is not last.
5507 Fix typo concerning record length.
5508 (to_fixed_record_type): Decomment disabled code.
5509 (to_fixed_record_type): Use variant_field_index instead of
5510 contains_variant_part.
5511 (to_fixed_variant_branch_type): Ditto.
5512 (to_fixed_array_type): Decomment disabled code.
5513 (ada_to_fixed_type): Convert tagged types to the specific type.
5514 Deactivate the size-check for array types in order to avoid
5515 some false size alarms.
5516 (to_static_fixed_type): Decomment disabled code.
5517 Modify to call template_to_static_fixed_type
5518 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5519 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5520 Remove valaddr argument, as it is never really used.
5521 (ada_to_fixed_value): Change interface to act on single struct value*
5522 operand.
5523 (adjust_pc_past_prologue): New function.
5524 (ada_attribute_name): Modify to take enum exp_opcode argument.
5525
5526 (ada_enum_name): Recognize new homonym-distinguishing convention.
5527 Adjust local variable's type to remove compiler warning.
5528 Fix a small problem in the part that unqualifies the enumeration name.
5529 (ada_value_binop): New function.
5530 (ada_value_equal): New function.
5531
5532 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5533 Don't give error message when not doing normal evaluation
5534 and a tagged type doesn't seem to contain a structure member.
5535 Give error message for packed arrays.
5536 For indexing arrays, handle pointers to packed arrays correctly.
5537 Handle case of 'first and 'last attributes of bare integral type
5538 without encoded subtype info.
5539 Remove some unnecessary casts.
5540 Fix uninitialized value of type in computing 'first, 'last, or 'length
5541 of array object.
5542 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5543 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5544 calls.
5545 Attributes are now exp_opcode values.
5546 Correct treatment of 'modulus.
5547 Better error message for taking 'length of wrong kind of type;
5548 improve comment.
5549 Change EVAL_NORMAL to noside for consistency.
5550 Use ada_value_binop for DIV, MOD, REM.
5551 Make special case out of array of length 0, since an argument
5552 of 0 upsets some platforms' malloc.
5553 Use OP_STRING instead of OP_ARRAY.
5554 For slice, add check that we have an array type before extracting
5555 a slice out of it. Avoids a SEGV.
5556 When evaluating an array slice, if the array type is a reference to
5557 an aligner type, then replace the aligner type by the actual type.
5558 Decomment disabled code.
5559 Remove some dead code.
5560 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5561 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5562 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5563 and UNOP_MBR to UNOP_IN_RANGE.
5564 If an array type has a parallel ___XVE type, then use it.
5565 Turn arrays into pointers for lvalue arrays.
5566 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5567 bounds error and handle 0-length slices.
5568 Use lim_warning.
5569 When selecting fields, apply ada_to_fixed_value (because the fields
5570 might have ___XVU or ___XVE encodings even if not dynamic.)
5571 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5572 (ada_is_system_address_type): New function.
5573
5574 (get_var_value): Use new interface to ada_lookup_symbol_list.
5575 (get_int_var_value): New interface.
5576 (to_fixed_range_type): Allow unknown bound, with warning.
5577 (ada_is_modular_type): Decomment disabled code.
5578 (ADA_OPERATORS): New definition.
5579 (ada_operator_length): New function.
5580 (ada_expr_op_name): New function.
5581 (ada_forward_operator_length): New function.
5582 (ada_dump_subexp_body): New function.
5583 (ada_print_subexp): New function.
5584 (ada_exp_descriptor): New constant.
5585 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5586 (ada_language_defn): Add ada_exp_descriptor entry.
5587 Change ada_parse => parse.
5588 Add post-parser entry.
5589 Use ada-specific non-local symbol lookup.
5590 Don't use C-style arrays.
5591 String lower-bound is 1.
5592 Decomment disabled code.
5593 (parse): New function.
5594 New fields ada_translate_error_message, ada_lookup_symbol,
5595 ada_lookup_minimal_symbol.
5596
5597 * ada-lang.h: Update copyright dates.
5598 Replace the mangle/demangle terminology throughout by the
5599 more appropriate encode/decode one.
5600 Include breakpoint.h.
5601 Forward declare struct partial_symbol, struct block.
5602 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5603 (EXTRACT_ADDRESS): Remove.
5604 (EXTRACT_INT): Remove.
5605 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5606 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5607 (MAX_RENAMING_CHAIN_LENGTH): Define.
5608 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5609
5610 (enum task_states): Remove.
5611 ada_task_states: Remove.
5612 (fat_string): Remove.
5613 (struct entry_call): Remove.
5614 (struct task_fields): Remove.
5615 (struct task_entry): Remove.
5616
5617 (struct ada_symbol_info): Define.
5618 (enum ada_attribute): Remove.
5619 (enum ada_operator): Define.
5620
5621 (ada_get_field_index): Declare.
5622 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5623 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5624 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5625 (ada_lookup_symbol_list): New interface.
5626 (ada_decode_symbol): Declare.
5627 (ada_decode): Declare.
5628 (ada_lookup_symbol): New interface.
5629 (ada_update_initial_language): Declare.
5630 (ada_lookup_simple_minsym): Declare.
5631 (user_select_syms): New interface.
5632 (ada_sals_for_line): Declare.
5633 (ada_is_tagged_type): New interface.
5634 (ada_tag_name): Declare.
5635 (ada_lookup_struct_elt_type): Remove declaration.
5636 (ada_search_struct_field): Remove declaration.
5637 (ada_attribute_name): New interface.
5638 (ada_is_system_address_type): Declare.
5639 (ada_to_fixed_value): Remove declaration.
5640 (ada_template_to_fixed_record_type_1): Declare.
5641 (get_int_var_value): New interface.
5642 (ada_find_any_symbol): Declare.
5643 (ada_find_renaming_symbol): Declare.
5644 (ada_mangle): Rename to ada_encode.
5645 (ada_simple_renamed_entity): Remove const.
5646 (ada_main_name): Declare.
5647 (get_current_task): Rename to ada_get_current_task.
5648 (get_entry_number): Remove declaration.
5649 (ada_report_exception_break): Remove declaration.
5650 (ada_print_exception_breakpoint_nontask): Declare.
5651 (ada_print_exception_breakpoint_task): Declare.
5652 (ada_find_printable_frame): Declare.
5653
5654 * ada-lex.l: Update copyright notices.
5655 Use xmalloc and xfree instead of malloc and free.
5656 Use new interface to name_lookup.
5657 Use new interface to
5658 ada_mangle=>ada_encode.
5659 Redo handling of '$...' variable to parallel current treatment
5660 in c-exp.y.
5661 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5662 digit_to_int, strtoulst, processInt, processReal, processId,
5663 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5664 yywrap): Protoize.
5665
5666 (processInt): Use cast to remove harmless warning.
5667 (processReal): Modify to get rid of compiler warning on scan formats.
5668
5669 (processId): Replace xmalloc with obstack_alloc for name and remove
5670 call to ada_name_string_cleanup.
5671 Remove obsolete disabled code.
5672 (name_lookup): Ditto.
5673 New interface.
5674 Use obsavestring on temp_parse_space instead of savestring
5675 on name, and remove call to ada_name_string_cleanup.
5676 Free string returned from ada_simple_renamed_entity.
5677 Use new interface to ada_lookup_symbol_list.
5678 Decomment disabled code.
5679 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5680 not types.
5681 When a type name lookup succeeds as a result of
5682 lookup_primitive_typename, check for regular type entry that has not
5683 yet been read in.
5684 Limit length of chain of renamed symbols we are willing to follow.
5685 Do not break names beginning with "standard__" into segments.
5686 (block_lookup): Use new interface to ada_lookup_symbol_list.
5687
5688 * ada-typeprint.c: Update copyright notice.
5689 (demangled_type_name): Rename to decoded_type_name.
5690 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5691 (print_range_bound): Correct handling of negative
5692 bounds that make the index type looked unsigned under STABS.
5693 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5694 (print_range_type_named): Use the builtin int type if no type
5695 corresponding to the given type name could be found.
5696 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5697 Add some bullet-proofing.
5698 (print_variant_clauses): Allow for variant branches with ___XVU
5699 encodings that are not dynamic fields.
5700 Use new interface to ada_is_tagged_type.
5701 (print_record_type): Allow for fields with ___XVE encodings that
5702 are not dynamic fields.
5703 Use new interface to ada_is_tagged_type.
5704 (ada_print_type): ada_is_array_descriptor =>
5705 ada_is_array_descriptor_type.
5706
5707 * ada-valprint.c: Update copyright notice.
5708 Include gdb_string.h
5709 Include infcall.h
5710 (ui_memcpy): New function.
5711 (ada_print_floating): New function.
5712 (ada_print_str): Order arguments correctly.
5713 Correct handling of empty arrays and arrays of 0-length items.
5714 ada_is_array_descriptor => ada_is_array_descriptor_type
5715 Print values of type System.Address in hexadecimal format.
5716 Use ada_print_floating to print floating-point numbers in Ada format.
5717 Print class tag values with type names.
5718 No longer print the address of reference values. Avoids
5719 a potential confusion.
5720 (ada_value_print): Stop printing the object type for reference
5721 values, but preserve that behavior for access types. Avoids
5722 a potential confusion.
5723 Simplify one conditional expression, as the first part is now
5724 necessarily true.
5725 ada_is_array_descriptor => ada_is_array_descriptor_type
5726 Add check for arrays for null records, and print them by hand.
4c4b4cd2 5727
f65f91b5
JB
57282004-06-01 Jim Blandy <jimb@redhat.com>
5729
5730 * ppc-tdep.h: Delete unused 'regoff' member.
5731 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5732
d4687fa0
MC
57332004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5734
5735 Fix PR symtab/1661.
5736 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5737 (hpread_read_struct_type): Likewise.
5738
de169ec9
AC
57392004-06-01 Andrew Cagney <cagney@gnu.org>
5740
c6902d46
AC
5741 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5742 instead of xasprintf.
5743 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5744 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5745 (mi_cmd_data_list_register_names)
5746 (mi_cmd_data_list_changed_registers)
5747 (mi_cmd_data_list_register_values)
5748 (get_register, mi_cmd_data_write_register_values)
5749 (mi_cmd_data_write_register_values)
5750 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5751 (mi_cmd_target_download, mi_cmd_target_select)
5752 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5753 (mi_execute_cli_command, mi_execute_async_cli_command)
5754 (mi_execute_async_cli_command): Ditto.
5755 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5756 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5757
6085fc2d
AC
5758 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5759 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5760 error_last_message instead of mi_error_last_message.
5761 * mi/mi-main.c (mi_error_last_message): Delete function.
5762
de169ec9
AC
5763 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5764 "invalid number of columns" error. Delete redundant "out of
5765 memory" check.
5766
1fc7d519
MK
57672004-05-31 Mark Kettenis <kettenis@gnu.org>
5768
6cfb2041
MK
5769 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5770 (gregset_t, fpregset_t): Remove typedefs.
5771 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5772 (REG_OFFSET): Rename argument.
5773 (i386bsd_r_reg_offset): Rename from reg_offset.
5774 (REG_ADDR): Remove macro.
5775 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5776 functions.
5777 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5778 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5779 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5780 instead of supply_gregset.
5781 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5782 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5783 instead of fill_gregset.
5784 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5785
1fc7d519
MK
5786 * i386bsd-nat.c: Don't include "gregset.h".
5787 (supply_gregset, fill_gregset): Make static.
5788 (supply_fpregset, fill_fpregset): Remove.
5789 * Makefile.in (i386bsd-nat.o): Update dependencies.
5790
2c34abbe
MK
57912004-05-30 Mark Kettenis <kettenis@gnu.org>
5792
448724fb
MK
5793 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5794 "gdb_assert.h". Con't include "gregset.h".
5795 (fbsd_make_corefile_notes): Use regset-based core file support
5796 instead off fill_gregset and fill_fpregset.
5797 * Makefile.in (fbsd-proc.o): Update dependencies.
5798
5ca8ca7c
MK
5799 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5800 instructions.
5801 (m88k_frame_prev_register): Simplify code a bit.
5802
593adc23
MK
5803 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5804 (amd64_collect_fpregset): New function.
5805 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5806
8d1b517b
MK
5807 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5808
7fdafb5a
MK
5809 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5810 (i386_collect_gregset): New function.
5811 (i386_supply_fpregset): Adjust comment.
5812 (i386_collect_fpregset): New function.
5813 (i386_regset_from_core_section): Use i386_collect_gregset and
5814 i386_collect_fpregset.
5815
8693c419
MK
5816 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5817 handle VALUEP being null.
5818
2c34abbe
MK
5819 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5820
45d134d8
MK
58212004-05-29 Mark Kettenis <kettenis@gnu.org>
5822
1698f4e7
MK
5823 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5824
45d134d8
MK
5825 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5826 assembler in OpenBSD 3.5-current.
5827 (amd64obsd_sigcontext_addr): Likewise.
5828
691d145a
JB
58292004-05-28 Jim Blandy <jimb@redhat.com>
5830
5831 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5832 register set, so our regcache isn't declared "legacy" and our E500
5833 pseudoregister read and write functions aren't ignored.
5834 (rs6000_register_byte, rs6000_register_raw_size,
5835 rs6000_register_virtual_type, rs6000_register_convertible,
5836 rs6000_register_convert_to_virtual,
5837 rs6000_register_convert_to_raw): Deleted.
5838 (rs6000_register_type, rs6000_convert_register_p,
5839 rs6000_register_to_value, rs6000_value_to_register): New
5840 functions.
5841 (rs6000_gdbarch_init): Don't register
5842 gdbarch_deprecated_register_size,
5843 gdbarch_deprecated_register_bytes,
5844 gdbarch_deprecated_register_byte,
5845 gdbarch_deprecated_register_raw_size,
5846 gdbarch_deprecated_register_virtual_type,
5847 gdbarch_deprecated_register_convertible,
5848 gdbarch_deprecated_register_convert_to_virtual, or
5849 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5850 register gdbarch_register_type, gdbarch_convert_register_p,
5851 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5852
18ed0c4e
JB
58532004-05-26 Jim Blandy <jimb@redhat.com>
5854
5855 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5856 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5857 functions, updated to match the register numberings used in GCC.
5858 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5859 rs6000_dwarf2_reg_to_regnum as register number conversions
5860 functions for STABS and Dwarf2.
5861
779af9e3
RC
58622004-05-26 Randolph Chung <tausq@debian.org>
5863
5864 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5865 in header file.
5866
c23968a2
JB
58672004-05-25 Joel Brobecker <brobecker@gnat.com>
5868
5869 * NEWS: Document new "start" command.
5870
3a7d1c27
RC
58712004-05-25 Randolph Chung <tausq@debian.org>
5872
5873 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5874 hppa-linux.
5875
43613416
RC
58762004-05-25 Randolph Chung <tausq@debian.org>
5877
5878 * hppa-hpux-tdep.c (offsetof): Define.
5879 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5880 (hppa32_hpux_frame_base_before_sigtramp)
5881 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5882 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5883 (hppa64_hpux_frame_base_before_sigtramp)
5884 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5885 functions.
5886 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5887 (hppa_hpux_sigtramp_frame_unwind_cache)
5888 (hppa_hpux_sigtramp_frame_this_id)
5889 (hppa_hpux_sigtramp_frame_prev_register)
5890 (hppa_hpux_sigtramp_frame_unwind)
5891 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5892 (hppa_hpux_init_abi): Register sigtramp unwinder.
5893 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5894
6d1be3f1
RC
58952004-05-25 Randolph Chung <tausq@debian.org>
5896
5897 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5898 and multiple stack unwinds.
5899 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5900
97c34f65
AC
59012004-05-25 Andrew Cagney <cagney@gnu.org>
5902
5903 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5904 * symfile-mem.h: Delete file.
5905 * symfile-mem.c: Do not include "symfile-mem.h".
5906 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5907 "struct bfd_section". When an error do not bother returning NULL.
5908 (add_symbol_file_from_memory_command): Use "struct bfd" and
5909 "struct bfd_section".
5910 * Makefile.in (symfile_mem_h): Delete.
5911 (symfile-mem.o): Update dependencies.
5912
e23cbd82
NR
59132004-05-25 Nick Roberts <nickrob@gnu.org>
5914
5915 * gdb-mi.el: New file.
5916
20d2ca3e
AC
59172004-05-25 Andrew Cagney <cagney@gnu.org>
5918
5919 * inftarg.c: Include "observer.h".
5920 (child_attach, child_create_inferior): Notify inferior_created.
5921 * corelow.c: Include "observer.h".
5922 (core_open): Notify inferior_created.
5923 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5924
c27cda74
AC
59252004-05-25 Andrew Cagney <cagney@gnu.org>
5926
5927 * target.h (struct target_ops): Add from_tty to
5928 to_create_inferior.
5929 (target_create_inferior, find_default_create_inferior): Update.
5930 * infcmd.c (run_command): Update.
5931 * wince.c (child_create_inferior): Update.
5932 * win32-nat.c (child_create_inferior): Update.
5933 * uw-thread.c (uw_thread_create_inferior): Update.
5934 * thread-db.c (thread_db_create_inferior): Update.
5935 * target.c (debug_to_create_inferior)
5936 (find_default_create_inferior): Update.
5937 (maybe_kill_then_create_inferior): Update.
5938 * sol-thread.c (sol_thread_create_inferior): Update.
5939 * remote.c (extended_remote_async_create_inferior)
5940 (extended_remote_create_inferior): Update.
5941 * remote-vx.c (vx_create_inferior): Update.
5942 * remote-st.c (st2000_create_inferior): Update.
5943 * remote-sim.c (gdbsim_create_inferior): Update.
5944 * remote-sds.c (sds_create_inferior): Update.
5945 * remote-rdp.c (remote_rdp_create_inferior): Update.
5946 * remote-rdi.c (arm_rdi_create_inferior): Update.
5947 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5948 * remote-e7000.c (e7000_create_inferior): Update.
5949 * procfs.c (procfs_create_inferior): Update.
5950 * ocd.c (ocd_create_inferior): Update.
5951 * ocd.h (ocd_create_inferior): Update.
5952 * nto-procfs.c (procfs_create_inferior): Update.
5953 * monitor.c (monitor_create_inferior): Update.
5954 * lin-lwp.c (lin_lwp_create_inferior): Update.
5955 * inftarg.c (child_create_inferior): Update.
5956 * hpux-thread.c (hpux_thread_create_inferior): Update.
5957 * gnu-nat.c (gnu_create_inferior): Update.
5958
1db2a798
AC
59592004-05-25 Andrew Cagney <cagney@gnu.com>
5960
5961 * MAINTAINERS: Update e-mail address.
5962
007d08bb
RC
59632004-05-24 Randolph Chung <tausq@debian.org>
5964
5965 * thread.c (info_threads_command, thread_apply_all_command)
5966 (thread_apply_command, thread_command, do_captured_thread_select):
5967 Remove HPUXHPPA-specific code.
5968
69e7b95e
RC
59692004-05-24 Randolph Chung <tausq@debian.org>
5970
5971 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5972 unused symbols.
5973 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5974 references.
5975
a4d5f2e0
JB
59762004-05-24 Joel Brobecker <brobecker@gnat.com>
5977
5978 * infcmd.c (kill_if_already_running): New function, extracted
5979 from run_command().
5980 (run_command): Replace extracted code by call to
5981 kill_if_already_running().
5982 (start_command): New function.
5983 (_initialize_infcmd): Add "start" command.
5984
bf2ca189
MK
59852004-05-24 Mark Kettenis <kettenis@gnu.org>
5986
5987 Add OpenBSD/m88k support.
5988 * NEWS (New native configurations): Mention OpenBSD/m88k.
5989 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5990 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5991 * Makefile.in (m88k_tdep_h): New variable.
5992 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5993 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5994 * configure.host: Add m88*-*-openbsd*.
5995 * configure.tgt: Add m88*-*-openbsd*.
5996
80fadb11
JB
59972004-05-24 Jim Blandy <jimb@redhat.com>
5998
5999 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6000 to approve changes.
6001
19e2d14b
KB
60022004-05-24 Kevin Buettner <kevinb@redhat.com>
6003
6004 * symtab.c (fixup_section): Search section table when lookup by
6005 name fails.
6006
1b07b470
RC
60072004-05-24 Randolph Chung <tausq@debian.org>
6008
6009 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6010 be "small_struct".
6011
368702b1
MK
60122004-05-24 Mark Kettenis <kettenis@gnu.org>
6013
5df97fde
MK
6014 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6015 register number in regcache_raw_collect call.
6016 (m68kbsd_collect_fpregset): Likewise.
6017 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6018
368702b1
MK
6019 * regset.h (struct regset): Add back `regset' member.
6020
a770d4ec
MK
60212004-05-23 Mark Kettenis <kettenis@gnu.org>
6022
70f9f479
MK
6023 * configure.in: Check for td_pcb in `struct thread'.
6024 * configure, config.in: Regenerated.
6025
2e16d79e
MK
6026 * dpx2-nat.c: Remove file.
6027 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6028 (dpx2-nat.o): Remove dependencies.
6029
492cf391
MK
6030 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6031 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6032 (amd64obsd_supply_pcb): New function.
6033 (_initialize_amd64obsd_nat): Enable libkvm interface.
6034 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6035 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6036 (LOADLIBES): New variable.
6037
a770d4ec
MK
6038 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6039 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6040 (sparc32nbsd_supply_pcb): New function.
6041 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6042 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6043 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6044 (LOADLIBES): New variable.
6045
9ea75c57
MK
60462004-05-22 Mark Kettenis <kettenis@gnu.org>
6047
2e0c3539
MK
6048 * bsd-kvm.c, bsd-kvm.h: New files.
6049 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6050 "bsd-kvm.h".
6051 (i386fbsd_supply_pcb): New function.
6052 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6053 (i386fbsd-nat.o): Update dependencies.
6054 (bsd_kvm_h): New variable.
6055 (bsd-kvm.o): New dependency.
6056 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6057 (LOADLIBES): New variable.
6058
9ea75c57
MK
6059 * regset.c: Tweak comment.
6060 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6061 macro.
6062 * regset.h: Update copyright year.
6063 (struct regset): Remove `descr' member, add `gdbarch' member.
6064 (regset_alloc): Adjust prototype and comment.
6065 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6066 (i386_supply_fpregset): Likewise.
6067 (i386_regset_from_core_section): Update call to regset_alloc.
6068 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6069 REGSET->arch.
6070 (i386obsd_aout_regset_from_core_section): Update call to
6071 regset_alloc.
6072 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6073 REGSET->arch.
6074 (i386nbsd_aout_regset_from_core_section): Update call to
6075 regset_alloc.
6076 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6077 REGSET->arch.
6078 (amd64_regset_from_core_section): Update call to regset_alloc.
6079 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6080 REGSET->arch.
6081 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6082 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6083 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6084 (sparc32nbsd_init_abi): Update call to regset_alloc.
6085 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6086 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6087 (sparc64obsd_init_abi): Update call to regset_alloc.
6088 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6089 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6090 (sparc64nbsd_init_abi): Update call to regset_alloc.
6091 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6092 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6093 (sparc64fbsd_init_abi): Update call to regset_alloc.
6094
867e2dc5
JB
60952004-05-22 Jim Blandy <jimb@redhat.com>
6096
6097 * ppc-tdep.h (spe_register_p): New declaration.
6098 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6099 ppc_spefscr_regnum.
6100 * rs6000-tdep.c (spe_register_p): New function.
6101 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6102 spefscr.
6103 (rs6000_gdbarch_init): Initialize the new members of the tdep
6104 structure.
6105
617a4cba
JB
61062004-05-21 Jim Blandy <jimb@redhat.com>
6107
0397dee1
JB
6108 * ppc-linux-nat.c (fetch_register): Move code back to be next
6109 to the comment that describes it. (Moved code, instead of
6110 comment, for symmetry with store_register.)
6111
617a4cba
JB
6112 Allocate regset structures in the gdbarch's obstack, not using
6113 xmalloc.
6114 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6115 Add 'arch' argument. Allocate the regset on arch's obstack, not
6116 using xmalloc.
6117 * regset.h (regset_alloc): Update declaration.
6118 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6119 gdbarch argument.
6120 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6121 * i386-tdep.c (i386_regset_from_core_section): Same.
6122 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6123 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6124 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6125 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6126 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6127 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6128
9aa3914d
JB
61292004-05-21 Joel Brobecker <brobecker@gnat.com>
6130
6131 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6132
99c87dab
JB
61332004-05-21 Jim Blandy <jimb@redhat.com>
6134
6135 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6136 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6137
c2b6b4aa
JB
61382004-05-20 Jim Blandy <jimb@redhat.com>
6139
6140 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6141
144529d0
MK
61422004-05-20 Mark Kettenis <kettenis@gnu.org>
6143
6144 * regset.h: Make prototype const-correct.
6145 * regset.c (regset_xmalloc): Make const-correct.
6146
4725b721
PH
61472004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6148
6149 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6150 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6151 (symbol_search_name): Declare.
6152
6153 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6154 (iter_name_next_hashed): Ditto.
6155 (iter_name_next_linear): Ditto.
6156 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6157
6158 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6159 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6160 (symbol_search_name): New function.
6161
6162 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6163
6164 * minsyms.c (build_minimal_symbol_hash_tables): Change
6165 test for adding to demangled hash table to check for difference
6166 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6167
be07a590
JB
61682004-05-19 Jim Blandy <jimb@redhat.com>
6169
6170 Use a constructor function to create regset structures.
6171 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6172 (struct regset): Use supply_regset_ftype. Add new
6173 'collect_regset' member.
6174 (regset_xmalloc): New declaration.
6175 * regset.c: New file.
6176 * am64-tdep.c (amd64_regset_from_core_section): Use
6177 regset_xmalloc to construct regset structures.
6178 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6179 * i386-tdep.c (i386_regset_from_core_section): Same.
6180 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6181 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6182 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6183 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6184 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6185 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6186 * Makefile.in (COMMON_OBS): Add regset.o.
6187 (regset.o): New rule.
6188
604368f5
JB
61892004-05-19 Joel Brobecker <brobecker@gnat.com>
6190
6191 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6192 and pthread_cond_wait.c.
6193
82d69f8b
JB
61942004-05-18 Jim Blandy <jimb@redhat.com>
6195
6196 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6197 before the mach-specific switch, and then let the individual cases
6198 override the defaults, rather than leaving them uninitialized
6199 until the switch and then setting them in each case.
6200
5859efe5
RC
62012004-05-18 Randolph Chung <tausq@debian.org>
6202
6203 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6204 millicode functions.
6205
9ca80cf8
RC
62062004-05-18 Randolph Chung <tausq@debian.org>
6207
6208 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6209 references to dld_flags_buffer consistent.
6210
ed70ba00
RC
62112004-05-18 Randolph Chung <tausq@debian.org>
6212
6213 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6214 it for unwinding the stack.
6215
63100632
RC
62162004-05-18 Randolph Chung <tausq@debian.org>
6217
6218 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6219 Undefine these so we can overide them using gdbarch.
6220
090ccbb7
RC
62212004-05-18 Randolph Chung <tausq@debian.org>
6222
6223 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6224 handling for 64-bit HPUX (elf).
6225
594706e6
DJ
62262004-05-18 Daniel Jacobowitz <dan@debian.org>
6227
6228 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6229 constants.
6230 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6231 * ia64-tdep.c (examine_prologue): Likewise.
6232 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6233 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6234
e5483145
MK
62352004-05-18 Mark Kettenis <kettenis@gnu.org>
6236
6237 * vax-tdep.c (vax_return_value): Implement
6238 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6239
caed1a45
MK
62402004-05-17 Mark Kettenis <kettenis@gnu.org>
6241
6242 * vax-tdep.c (vax_return_value): Fix typo.
6243
3c0b7db2
AC
62442004-05-17 Andrew Cagney <cagney@redhat.com>
6245
5aae53e5
AC
6246 * MAINTAINERS: Mark Salter was also responsible for
6247 testsuite/config/
6248
3c0b7db2
AC
6249 * NEWS: Mention signal fixes.
6250
22b0923d
RC
62512004-05-17 Randolph Chung <tausq@debian.org>
6252
6253 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6254 check to see if we are unwinding an export stub. Export stubs clobber
6255 the %rp in the call path and stores the original rp in a stack slot.
6256
22f2b2f3
JB
62572004-05-17 Jim Blandy <jimb@redhat.com>
6258
6259 * MAINTAINERS: Update address for J.T. Conklin.
6260
cea96d64
RC
62612004-05-17 Randolph Chung <tausq@debian.org>
6262
6263 * hppa-tdep.c: Remove superfluous #include's.
6264 * Makefile.in (hppa-tdep.o): Update dependencies.
6265
f08f6a4a
RC
62662004-05-17 Randolph Chung <tausq@debian.org>
6267
6268 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6269 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6270 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6271 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6272 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6273 Remove static function declarations.
6274
51da707a
MK
62752004-05-17 Mark Kettenis <kettenis@gnu.org>
6276
caed1a45
MK
6277 * alphabsd-nat.c: Update copyright year.
6278 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6279
c0c2b0db
MK
6280 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6281 and M68K_A2_REGNUM.
6282
51da707a
MK
6283 * m68k-tdep.c (m68k_svr4_return_value): Implement
6284 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6285
8d027a04
MK
62862004-05-16 Mark Kettenis <kettenis@gnu.org>
6287
6288 * sol-thread.c Update copyright year. Fix various coding
6289 standards violations. Tweak a few comments.
6290 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6291 Delete prototypes.
6292
0d99fdb9
RC
62932004-05-15 Randolph Chung <tausq@debian.org>
6294
6295 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6296 as pointer instead of array reference since HPUX compiler does
6297 not accept unsized array arguments.
6298 * somsolib.c (dld_flags_buffer): Use constant array size.
6299
f7e3843a
MK
63002004-05-15 Mark Kettenis <kettenis@gnu.org>
6301
0fe85704
MK
6302 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6303 offset with decimal offset.
6304 (amd64obsd_sigcontext_addr): Return correct address for entire
6305 signal trampoline.
6306
a54f9a00
MK
6307 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6308 instead of get_frame_base.
6309
feae6502
MK
6310 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6311 (fill_gregset): Use regcache_raw_collect.
6312
0382d099
MK
6313 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6314 ppcobsd-tdep.c.
6315
f7e3843a
MK
6316 * config/sparc/tm-nbsd64.h: Remove file.
6317 * config/tm-sunos.h: Remove file.
6318
773df3e5
JB
63192004-05-15 Joel Brobecker <brobecker@gnat.com>
6320
6321 * rs6000-tdep.c (store_param_on_stack_p): New function,
6322 an improved version of some code extracted from skip_prologue().
6323 (skip_prologue): Use store_param_on_stack_p() to detect
6324 instructions saving a parameter on the stack. Detect when r0
6325 is used to save a parameter.
6326 Do not mark "li rx, SIMM" instructions as part of the prologue,
6327 unless the following instruction is also part of the prologue.
6328
95918acb
AC
63292004-05-14 Andrew Cagney <cagney@redhat.com>
6330
06f32659
AC
6331 * infrun.c (handle_inferior_event): Simplify
6332 STEP_OVER_UNDEBUGGABLE.
6333
95918acb
AC
6334 * infrun.c (handle_step_into_function): Delete function.
6335 (handle_inferior_event): Inline calls to
6336 handle_step_into_function.
6337
40711ff1 63382004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
6339
6340 * rs6000-nat.c: Fix a comment.
6341
02f60eae
JB
63422004-05-12 David Anderson <davea@sgi.com>
6343
6344 Committed by Jim Blandy <jimb@redhat.com>:
6345 * regcache.c (struct regcache_descr): fix comment spelling.
6346
552e377b
JB
63472004-05-13 J. Brobecker <brobecker@gnat.com>
6348
6349 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6350 Fixes a link link failure.
6351
349766b2
JB
63522004-05-13 J. Brobecker <brobecker@gnat.com>
6353
6354 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6355 error that was causing the build to fail.
6356
0d4d5484
JB
63572004-05-13 J. Brobecker <brobecker@gnat.com>
6358
6359 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6360 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6361
0b30808c
AC
63622004-05-13 Andrew Cagney <cagney@redhat.com>
6363
6364 * infrun.c (handle_inferior_event): Check for
6365 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6366 calls. Update comments.
6367
cdf2c5f5
JB
63682004-05-13 Jim Blandy <jimb@redhat.com>
6369
063715bf
JB
6370 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6371 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6372 (store_regs_user_thread, store_regs_kernel_thread): Use
6373 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6374 * ppc-linux-nat.c (fill_gregset): Same.
6375 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6376 (ppc_linux_sigtramp_cache): Same.
6377 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6378 (ppcnbsd_sigtramp_cache_init): Same.
6379 * rs6000-nat.c (fetch_core_registers): Same.
6380 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6381 (rs6000_frame_cache): Same.
6382
cdf2c5f5
JB
6383 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6384 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6385 of assuming that the gprs are numbered starting with zero.
6386 * ppc-linux-nat.c (fill_gregset): Same.
6387 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6388 * ppcnbsd-nat.c (getregs_supplies): Same.
6389 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6390 * rs6000-nat.c (fetch_core_registers): Same.
6391 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6392
450bd37b
MS
63932004-05-07 Michael Snyder <msnyder@redhat.com>
6394
6395 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6396 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6397
4a72a2a6
AC
63982004-05-13 Andrew Cagney <cagney@redhat.com>
6399
6400 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6401
8edfa926
BM
64022004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6403
6404 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6405 base_address for shared libraries.
6406
723e0e3d
BM
64072004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6408
6409 * MAINTAINERS (write after approval): Add myself.
6410
00d4360e
UW
64112004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6412
6413 * breakpoint.c (bpstat_stop_status): Add new argument
6414 STOPPED_BY_WATCHPOINT. Use it instead of testing
6415 target_stopped_data_address agaist 0 to check whether
6416 or not we stopped due to a hardware watchpoint.
6417 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6418 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6419 with new argument.
6420
ec76baa5
JB
64212004-05-12 Jim Blandy <jimb@redhat.com>
6422
6423 * configure.in: When checking whether we should use the -bbigtoc
6424 option, don't forget to restore the original value of LDFLAGS.
6425 * configure: Regenerated.
6426
f2c9ca08
AC
64272004-05-12 Andrew Cagney <cagney@redhat.com>
6428
6429 * thread.c (load_infrun_state): Delete step_sp.
6430 * infrun.c (context_switch): Ditto.
6431 * inferior.h (step_sp): Ditto.
6432 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6433 * gdbthread.h (struct thread_info, save_infrun_state)
6434 (restore_infrun_state): Ditto.
6435
090ddb2a
UW
64362004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6437
6438 * MAINTAINERS (write after approval): Add myself.
6439
8aad930b
AC
64402004-05-12 Andrew Cagney <cagney@redhat.com>
6441
6442 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6443 eliminate reference to step_sp.
6444 (struct execution_control_state, init_execution_control_state)
6445 (handle_inferior_event, keep_going): Delete update_step_sp and
6446 step_sp.
6447 * infcmd.c (step_sp): Note that variable is unused.
6448
922d5ae0
AC
64492004-05-11 Andrew Cagney <cagney@redhat.com>
6450
6451 * infrun.c (step_over_function): Delete function.
6452 (handle_step_into_function): Use insert_step_resume_breakpoint.
6453 (insert_step_resume_breakpoint): Fix assertion.
6454
017c5ca5
NR
64552004-05-11 Nick Roberts <nickrob@gnu.org>
6456
6457 * utils.c (defaulted_query): Just use the normal query input type
6458 when printing the annotations.
6459
42edda50
AC
64602004-05-11 Andrew Cagney <cagney@redhat.com>
6461
6462 * infrun.c (handle_inferior_event): Simplify code handling
6463 step-into or return-from a signal trampoline.
6464
d28b44a7
AC
64652004-05-11 Andrew Cagney <cagney@redhat.com>
6466
6467 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6468 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6469
383f0f5b
JB
64702004-05-10 Jim Blandy <jimb@redhat.com>
6471
d0b57c3a
JB
6472 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6473 with a call to internal_error.
6474
383f0f5b
JB
6475 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6476 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6477 processor variant lacks those registers.
6478 (ppc_floating_point_unit_p): Change description to make it clear
6479 that this returns info about the ISA, not the ABI.
6480 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6481 return true or false by checking tdep->ppc_fp0_regnum and
6482 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6483 arch/mach switching done in rs6000_gdbarch_init; it's better to
6484 keep that logic there, and just check the results here.
6485 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6486 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6487 floating-point registers.
6488 (ppc_supply_fpregset, ppc_collect_fpregset)
6489 (rs6000_push_dummy_call, rs6000_extract_return_value)
6490 (rs6000_store_return_value): Assert that we have floating-point
6491 registers.
6492 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6493 (rs6000_frame_cache): Don't note the locations at which
6494 floating-point registers were saved if we have no fprs.
6495 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6496 registers.
6497 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6498 (store_regs_user_thread, store_regs_kernel_thread): Only call
6499 supply_fprs / fill_fprs if we actually have floating-point
6500 registers.
6501 (special_register_p): Check ppc_fpscr_regnum before matching
6502 against it.
6503 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6504 supply / collect fpscr if we don't have it.
6505 * ppc-bdm.c: #include "gdb_assert.h".
6506 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6507 have floating-point registers, since I can't test this code on
6508 FP-free systems to adapt it.
6509 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6510 fpscr and floating point register numbers if they don't exist.
6511 (fetch_register): Assert that we have floating-point registers
6512 before we reach the code that handles them.
6513 (store_register): Same. And use tdep instead of calling
6514 gdbarch_tdep again.
6515 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6516 don't have them.
6517 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6518 fprs and fpscr if we don't have them.
6519 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6520 don't have them.
6521 * ppcnbsd-nat.c: #include "gdb_assert.h".
6522 (getfpregs_supplies): Assert that we have floating-point registers.
6523 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6524 * ppcobsd-tdep.c: #include "gdb_assert.h".
6525 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6526 have floating-point registers.
6527 * rs6000-nat.c (regmap): Don't match against the fpscr and
6528 floating point register numbers if they don't exist.
6529 (fetch_inferior_registers, store_inferior_registers,
6530 fetch_core_registers): Only fetch / store / supply the
6531 floating-point registers and the fpscr if we have them.
6532 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6533 (ppcobsd-tdep.o): Update dependencies.
6534
15960608
AC
65352004-05-10 Andrew Cagney <cagney@redhat.com>
6536
6537 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6538 (context_switch): Do not switch through_sigtramp_breakpoint.
6539 * gdbthread.h (save_infrun_state, load_infrun_state)
6540 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6541 and structure member.
6542 * thread.c (load_infrun_state, save_infrun_state): Update.
6543
5ab5aa0f
MK
65442004-05-10 Mark Kettenis <kettenis@gnu.org>
6545
6546 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6547
da78b0e7
DJ
65482004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6549
6550 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6551 throughout.
6552 * aclocal.m4: Regenerate.
6553
cca0d3b0
NW
65542004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6555
6556 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6557
d303a6c7
AC
65582004-05-10 Andrew Cagney <cagney@redhat.com>
6559
6560 * infrun.c (check_sigtramp2): Delete function.
6561 (handle_inferior_event): When single stepping, and taking a
6562 signal, set a breakpoint at the signal return address. Delete
6563 redundant calls to check_sigtramp2.
6564 (insert_step_resume_breakpoint): New function.
6565 (through_sigtramp_breakpoint, handle_inferior_event)
6566 (follow_exec, wait_for_inferior, fetch_inferior_event)
6567 (currently_stepping, keep_going): Delete most uses of
6568 through_sigtramp_breakpoint, not that it should be deleted.
6569 (delete_breakpoint_current_contents): Delete function.
6570
03f4cc20
RC
65712004-05-10 Randolph Chung <tausq@debian.org>
6572
6573 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6574 target.
6575 * config/pa/tm-linux.h: New file.
6576
37fc812e
DJ
65772004-05-10 Daniel Jacobowitz <drow@mvista.com>
6578
6579 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6580 of prefixes. Don't print the prefix twice in the CLI.
6581
26c0b942
JB
65822004-05-10 Jim Blandy <jimb@redhat.com>
6583
2e56e9c1
JB
6584 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6585 collect all the gprs.
6586
26c0b942
JB
6587 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6588 loop collecting gprs.
6589
dc497459
AC
65902004-05-09 Andrew Cagney <cagney@redhat.com>
6591
6592 * remote-vx.c (net_step): Delete step-range code.
6593 * remote.c (remote_resume, init_all_packet_configs)
6594 (set_remote_protocol_E_packet_cmd)
6595 (show_remote_protocol_E_packet_cmd)
6596 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6597 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6598 (show_remote_protocol_e_packet_cmd): Ditto.
6599
0543f387
MK
66002004-05-09 Mark Kettenis <kettenis@gnu.org>
6601
c481d1ca
MK
6602 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6603
f626a069
MK
6604 * hppa-tdep.h: Update copyright year.
6605 (struct trad_frame_saved_reg): Add opaque declaration.
6606
6fa57a7d
MK
6607 * amd64-tdep.c (amd64_return_value): Implement
6608 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6609
e47577ab
MK
6610 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6611 (m68k_value_to_register): New functions.
6612 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6613 value_to_register.
6614
31db7b6c
MK
6615 * defs.h (enum return_value_convention): Add
6616 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6617 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6618 * infcmd.c (legacy_return_value): New function.
6619 (print_return_value): Rwerite to implement
6620 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6621 * values.c (using_struct_return): Check for inequality to
6622 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6623 RETURN_VALUE_STRUCT_CONVENTION.
6624 * i386-tdep.c (i386_return_value): Implement
6625 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6626
0543f387
MK
6627 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6628 include "symtab.h", "opcode/vax.h" and "inferior.h".
6629 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6630 to read_memory_unsigned_integer.
6631 (vax_gdbarch_init): Reorder.
6632 (_initialize_vax_tdep): Spell out prototype.
6633 * Makefile.in (vax-tdep.o): Update dependencies.
6634
0c93b7b6
AC
66352004-05-08 Andrew Cagney <cagney@redhat.com>
6636
e6b55ae2
AC
6637 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6638 * target.c (target_detach, target_disconnect): Ditto.
6639
1ac839b8
AC
6640 * infcall.c (call_function_by_hand): When no
6641 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6642 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6643 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6644 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6645 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6646
28954179
AC
6647 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6648 * gdbarch.h, gdbarch.c: Re-generate.
6649 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6650 deprecated_fix_call_dummy.
6651 * v850-tdep.c (v850_gdbarch_init): Ditto.
6652 * infcall.c (call_function_by_hand): Do not call
6653 DEPRECATED_FIX_CALL_DUMMY.
6654
434b87dd
AC
6655 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6656 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6657 * gdbarch.h, gdbarch.c: Re-generate.
6658 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6659 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6660 deprecated_sizeof_call_dummy_words.
6661 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6662 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6663 * v850-tdep.c (v850_gdbarch_init): Ditto.
6664 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6665 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6666 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6667 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6668 * arch-utils.h (legacy_call_dummy_words)
6669 (legacy_sizeof_call_dummy_words): Delete declarations.
6670 * arch-utils.c (legacy_call_dummy_words)
6671 (legacy_sizeof_call_dummy_words): Delete variables.
6672
58d28df8
AC
6673 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6674 * gdbarch.h, gdbarch.c: Re-generate.
6675 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6676 * infcall.c (call_function_by_hand): Eliminate call to
6677 DEPRECATED_PUSH_DUMMY_FRAME.
6678 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6679 push_dummy_frame.
6680 (ns32k_push_dummy_frame): Delete function.
6681
e4a2df64
AC
6682 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6683 deprecated_call_dummy_breakpoint_offset or
6684 deprecated_call_dummy_start_offset.
6685 * dummy-frame.c, arm-tdep.c: Update comments.
6686 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6687 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6688 * gdbarch.h, gdbarch.c: Re-generate.
6689
d3712828
AC
6690 * infcall.c (legacy_push_dummy_code): Delete function.
6691 (push_dummy_code): Delete call.
6692
7a882905
AC
6693 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6694 * gdbarch.h, gdbarch.c: Re-generate.
6695 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6696 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6697 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6698 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6699
0ec5872b
AC
6700 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6701 (struct frame_info): Delete opaque declaration.
6702 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6703 * frame.c (get_frame_type): Delete call.
6704
0c93b7b6
AC
6705 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6706 pc_in_call_dummy.
6707 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6708 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6709
75536971
MK
67102004-05-08 Mark Kettenis <kettenis@gnu.org>
6711
527ca6bb
MK
6712 * alphanbsd-tdep.c: Include "gdb_string.h".
6713 * armnbsd-tdep.c: Update copyright year.
6714 Include "gdb_string.h".
6715 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6716 dependencies.
6717
d39fdc61
MK
6718 * delta68-nat.c: Remove file.
6719 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6720 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6721 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6722 (delta68-nat.o): Remove dependency.
6723
75536971
MK
6724 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6725 function.
6726 (m68k_gdbarch_init): Don't set
6727 deprecated_frameless_function_invocation.
6728
f4ca1d1f
RC
67292004-05-07 Randolph Chung <tausq@debian.org>
6730
6731 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6732 read_memory_nobpt for code reading when doing frame unwinding.
6733 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6734
2f0e8c7a
RC
67352004-05-07 Randolph Chung <tausq@debian.org>
6736
6737 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6738 instead of sp, handle sigaltstack case.
6739 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6740 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6741 signal handler and not that of the caller.
6742 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6743 hppa_linux_sigtramp_find_sigcontext.
6744
959464ff
RC
67452004-05-07 Randolph Chung <tausq@debian.org>
6746
6747 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6748 hppa-linux-nat.c.
6749 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6750 * hppa-linux-nat.c (fetch_register, store_register): Define.
6751 (fetch_inferior_registers, store_inferior_registers): Define.
6752 (supply_gregset): Add comment and clean up some unneeded code.
6753 (fill_gregset): Add comment and fix so that it saves registers in
6754 the right place in the gregset.
6755 (fill_fpregset): Fix buffer overrun problem.
6756 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6757
0da28f8a
RC
67582004-05-07 Randolph Chung <tausq@debian.org>
6759
6760 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6761 do common handling of the pcoqt register.
6762 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6763 to use helper function.
6764 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6765 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6766 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6767 generic fallback unwinder when all else fails.
6768 (hppa_gdbarch_init): Add fallback sniffer.
6769 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6770 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6771 to use helper function.
6772
b9ec757a
JB
67732004-05-08 Joel Brobecker <brobecker@gnat.com>
6774
6775 * config/djgpp/fnchange.lst: Add translation rules for
6776 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6777
756e95f1
MK
67782004-05-08 Mark Kettenis <kettenis@gnu.org>
6779
6780 * frame.c (get_prev_frame_1): Work around GCC bug.
6781 * frame.h: Add comment about GCC bug.
6782
2b4855ab
AC
67832004-05-07 Andrew Cagney <cagney@redhat.com>
6784
6785 * observer.c: Include "commands.h" and "gdbcmd.h".
6786 (observer_debug, _initialize_observer): Add the
6787 command "set/show debug observer".
6788 * observer.sh: When observer debugging, log notify calls.
6789 * Makefile.in (observer.o): Update dependencies.
6790
ba3e8e46
JM
67912004-05-07 Jason Molenda (jmolenda@apple.com)
6792
6793 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6794
16796152
JB
67952004-05-07 Jim Blandy <jimb@redhat.com>
6796
daf6dc85
JB
6797 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6798 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6799 to recognize gpr regnums, instead of assuming that
6800 tdep->ppc_fp0_regnum marks the end of the general-purpose
6801 registers.
6802
16796152
JB
6803 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6804 the given architecture has floating-point registers.
6805
c69b8bfc
AC
68062004-05-07 Andrew Cagney <cagney@redhat.com>
6807
6808 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6809 macro defined to 1.
6810 * gdbarch.h, gdbarch.c: Re-generate.
6811 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6812 deprecated_use_generic_dummy_frames.
6813
7243600a
BF
68142004-05-07 Brian Ford <ford@vss.fsi.com>
6815
6816 * NEWS: Mention Cygwin DWARF 2 support.
6817
73c1e0a1
AC
68182004-05-07 Andrew Cagney <cagney@redhat.com>
6819
6820 * objfiles.h (struct entry_info): Delete unused fields
6821 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6822 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6823 * mipsread.c (mipscoff_symfile_read): Update.
6824 * mdebugread.c (parse_partial_symbols): Update.
6825 * dwarfread.c (read_file_scope): Update.
6826 * dwarf2read.c (read_file_scope): Update.
6827 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6828 * coffread.c (complete_symtab): Update.
6829
1d3056ac
MK
68302004-05-07 Mark Kettenis <kettenis@gnu.org>
6831
6832 * infcall.c (_initialize_infcall): Fix typo.
6833
15170568
AC
68342004-05-07 Andrew Cagney <cagney@redhat.com>
6835
6836 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6837 * command.h (add_setshow_zinteger_cmd): Declare.
6838
34f75cc1
RC
68392004-05-06 Randolph Chung <tausq@debian.org>
6840
6841 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6842 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6843 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6844 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6845 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6846 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6847 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6848 definitions ...
6849 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6850 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6851 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6852 (hppa64_hpux_frame_find_saved_regs_in_sig)
6853 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6854 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6855 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6856 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6857 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6858 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6859 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6860 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6861 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6862 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6863 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6864 (hppa32_register_type, hppa_cannot_store_register)
6865 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6866 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6867 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6868 * pa64solib.c (pa64_solib_have_load_event)
6869 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6870 (pa64_solib_unloaded_library_pathname): Likewise.
6871 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6872 (som_solib_library_pathname): Likewise.
6873
0a5e7efe
JI
68742004-05-05 Jim Ingham <jingham@apple.com>
6875
6876 * breakpoint.c (create_breakpoints): Copy the ignore count and
6877 thread id over from the pended breakpoint to the actual
6878 breakpoint.
6879
10a4b113
AC
68802004-05-05 Andrew Cagney <cagney@redhat.com>
6881
6882 * gdbarch.sh (PARM_BOUNDARY): Delete.
6883 gdbarch.h, gdbarch.c: Re-generate.
6884 * valops.c (PARM_BOUNDARY): Delete macro.
6885 (value_push): Delete PARM_BOUNDARY code.
6886 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6887
366f009f
JB
68882004-05-04 Jim Blandy <jimb@redhat.com>
6889
32b99774
JB
6890 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6891 Don't assume that the gprs, fprs, and UISA sprs are
6892 contiguous, start at register number zero, and end with fpscr.
6893 Instead, use the numbers from the tdep structure.
6894
366f009f
JB
6895 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6896 should no longer be used in code specific to the RS6000 and its
6897 derivatives.
6898 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6899 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6900 tdep->ppc_fp0_regnum.
6901 (ppc_supply_fpregset, ppc_collect_fpregset)
6902 (rs6000_push_dummy_call, rs6000_extract_return_value)
6903 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6904 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6905 FP0_REGNUM.
6906 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6907 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6908 Same.
6909 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6910 bdm_ppc_store_registers): Same.
6911 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6912 (store_register, fill_fpregset): Same.
6913 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6914 (ppc_linux_supply_fpregset): Same.
6915 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6916 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6917 Same.
6918 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6919 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6920 ppc64_sysv_abi_return_value): Same.
6921 * rs6000-nat.c (regmap, fetch_inferior_registers)
6922 (store_inferior_registers, fetch_core_registers): Same.
6923
827f338d
MK
69242004-05-01 Mark Kettenis <kettenis@gnu.org>
6925
6926 * m68knbsd-nat.c: Remove file.
6927 * m68knbsd-tdep.c: Remove file.
6928 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6929 dependencies.
6930 * configure.host: Add m68k-*-netbsdelf*.
6931 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6932 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6933 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6934 (XM_FILE): Remove.
6935 * config/m68k/nbsdelf.mh: New file.
6936 * config/m68k/nbsd.mt: New file.
6937 * config/m68k/nbsdaout.mt: Remove file.
6938 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6939 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6940 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6941 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6942 (use_struct_convention): Remove prototype.
6943 (USE_STRUCT_CONVENTION): Remove define.
6944 * config/m68k/xm-nbsd.h: Remove file.
6945
66894781
MS
69462004-05-04 Michael Snyder <msnyder@redhat.com>
6947
6948 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6949 reg_struct_return method (as gcc usually does for cross targets).
6950
f0f63663
AC
69512004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6952
6953 Committed by Andrew Cagney.
6954 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6955 alignment padding when accessing ucontext struct members.
6956
edf61169
JB
69572004-05-04 Jim Blandy <jimb@redhat.com>
6958
8bf659e8
JB
6959 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6960 'ppc_gplast_regnum' member.
6961 (ppc_num_gprs): New enum constant.
6962 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6963 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6964 * rs6000-nat.c (regmap, fetch_inferior_registers,
6965 store_inferior_registers): Same.
6966 * rs6000-tdep.c (e500_pseudo_register_read)
6967 (e500_pseudo_register_write): Same.
6968 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6969
b967e06f
JB
6970 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6971 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6972 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6973 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6974 FPLAST_REGNUM.
6975 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6976 Same.
6977 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6978 * rs6000-nat.c (regmap, fetch_inferior_registers)
6979 (store_inferior_registers): Same.
6980
edf61169
JB
6981 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6982 with FPLAST_REGNUM.
6983
58a9656e
JB
69842004-05-03 Joel Brobecker <brobecker@gnat.com>
6985
6986 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6987 failure detected by recent versions of GCC.
6988 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6989 to be consistent with the usage in dwarf2_create_include_psymtab.
6990
dc305454
MS
69912004-05-03 Michael Snyder <msnyder@redhat.com>
6992
6993 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6994 (heuristic_proc_start): Whitespace cleanup.
6995
29972665
MK
69962004-05-04 Mark Kettenis <kettenis@gnu.org>
6997
6b57680d
MK
6998 * sun3-nat.c: Remove file.
6999 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7000 dependencies.
7001 (ALLDEPFILES): Remove sun3-nat.c.
7002 (sun3-nat.o): Remove dependencies.
7003
29972665
MK
7004 * i386-interix-nat.c, i386-interix-tdep.c,
7005 config/i386/nm-interix.h, config/i386/interix.mh,
7006 config/i386/interix.mt: Remove files.
7007 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7008 dependencies.
7009
f595cb19
MK
70102004-05-03 Mark Kettenis <kettenis@gnu.org>
7011
7012 * m68k-tdep.h (struct gdbarch_tdep): Add member
7013 struct_value_regnum.
7014 (m68k_svr4_init_abi): New prototype.
7015 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7016 different calling conventions.
7017 (m68k_extract_return_value): Remove code dealing with single-field
7018 structs.
7019 (m68k_store_return_value): Remove code dealing with single-field
7020 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7021 (m68k_extract_struct_value_address): Remove function.
7022 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7023 (m68k_reg_struct_return_p, m68k_return_value)
7024 (m68k_svr4_return_value): New functions.
7025 (m68k_use_struct_convention): Remove function.
7026 (m68k_push_dummy_call): Use new struct_value_regnum member of
7027 `struct gdbarch_tdep' instead of hardcoded register number to
7028 store STRUCT_ADDR.
7029 (m68k_svr4_init_abi): New function.
7030 (m68k_gdbarch_init): Don't set extract_return_value,
7031 store_return_values, deprecated_extract_struct_value_address and
7032 use_struct_convention. Set return_value instead. Initialize new
7033 struct_value_regnum member of `struct gdbarch_tdep'.
7034 * m68klinux-tdep.c: Update copyright year.
7035 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7036 (m68k_linux_extract_struct_value_address): Remove function.
7037 (m68k_linux_init_abi): Don't set extract_return_value,
7038 store_return_values, deprecated_extract_struct_value_address and
7039 use_struct_convention. Call m68k_svr4_init_abi but override the
7040 new struct_value_regnum member of `struct gdbarch_tdep'.
7041 * Makefile.in (m68k-tdep.o): Update dependencies.
7042
aaa75496
JB
70432004-05-03 J. Brobecker <brobecker@gnat.com>
7044
7045 * dwarf2read.c (line_header): Add new included_p field in
7046 field file_names.
7047 (partial_die_info): New field has_stmt_list. New field line_offset.
7048 (dwarf2_create_include_psymtab): New function.
7049 (dwarf2_build_include_psymtabs): New function.
7050 (add_file_name): Add forward declaration. Initialize new field.
7051 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7052 to be able to determine the list of files included by the
7053 given unit, and build their associated psymtabs.
7054 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7055 files as well.
7056 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7057 (read_file_scope): Update call to dwarf_decode_lines.
7058 (read_partial_die): Handle DW_AT_stmt_list attributes.
7059
c848556f
MC
70602004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7061
7062 Unfix PR gdb/1626.
7063 * configure.in: Revert special case for osf5.*.
7064 * configure: Regenerate.
7065
eb4556d7
JB
70662004-05-02 Jim Blandy <jimb@redhat.com>
7067
7068 Move the symbol-file-from-memory functions into their own file.
7069 * symfile-mem.c, symfile-mem.h: New files.
7070 * symfile.c (symbol_file_add_from_bfd): New function.
7071 (symbol_file_add): Call symbol_file_add_from_bfd.
7072 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7073 Moved to symfile-mem.c.
7074 (_initialize_symfile): Move definition of
7075 add-symbol-file-from-memory command to symfile-mem.c.
7076 * symfile.h (symbol_file_add_from_bfd): New declaration.
7077 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7078 * config/powerpc/linux.mt (TDEPFILES): Same.
7079 * Makefile.in (SFILES): Add symfile-mem.c.
7080 (symfile_mem_h): New variable.
7081 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7082 (symfile-mem.o): New rule.
7083
80bb239e
AC
70842004-05-01 Andrew Cagney <cagney@redhat.com>
7085
7789d0fa
AC
7086 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7087 frame_find_by_id instead of frame_relative_level.
7088 (do_enable_breakpoint): Ditto.
7089 * thread.c: Update copyright.
7090 (info_threads_command): Ditto, simplify.
7091
80bb239e
AC
7092 * frame.c (deprecated_generic_get_saved_register): Delete
7093 function, moved to "xstormy16-tdep.c".
7094 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7095 deprecated_generic_get_saved_register from "frame.c".
7096 (xstormy16_frame_saved_register): Call
7097 xstormy16_get_saved_register.
7098 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7099 static.
7100 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7101 * frame.h (deprecated_generic_get_saved_register): Delete.
7102
b2a871dd
MC
71032004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7104
7105 * dwarfread.c: Update documentation on the state of dwarf-1.
7106
0e100dab
AC
71072004-05-01 Andrew Cagney <cagney@redhat.com>
7108
acd8056e
AC
7109 * stack.c (select_frame_command): Delete call to
7110 frame_relative_level.
7111 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7112 Delete #if0 code.
7113 (frame_info): Do not print FRAMELESS.
7114 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7115 (catch_info): Delete #if0 code.
7116
0e100dab
AC
7117 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7118 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7119 of frame_relative_level.
7120 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7121 to SENTINEL_FRAME.
7122 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7123 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7124 frame_relative_level.
7125
55699d59
AC
7126 * frame.h (deprecated_set_frame_type): Delete declaration.
7127 * frame.c (deprecated_set_frame_type): Delete function, update
7128 comments.
7129
fcf70625
AC
7130 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7131 * gdbarch.h, gdbarch.c: Re-generate.
7132 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7133 (shnbsd_pc_in_sigtramp): Delete.
7134 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7135 pc_in_sigtramp.
7136 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7137 pc_in_sigtramp.
7138 * frame.h: Update comments.
7139 * ppc-linux-tdep.c: Update comments.
7140 * breakpoint.c (bpstat_what): Update comments.
7141
ac5eccb7
AC
7142 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7143 m68klinux-tdep.o's dependencies, were previously added to
7144 m68klinux-nat.o.
7145
f2524b93
AC
7146 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7147 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7148 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7149 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7150 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7151
17e20bce
AC
7152 * Makefile.in (m68klinux-nat.o): Update dependencies.
7153 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7154 (m68k_linux_sigtramp_frame_cache)
7155 (m68k_linux_sigtramp_frame_this_id)
7156 (m68k_linux_sigtramp_frame_prev_register)
7157 (m68k_linux_sigtramp_frame_unwind)
7158 (m68k_linux_sigtramp_frame_sniffer)
7159 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7160 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7161 names, use trad-frame.h.
7162 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7163 (struct m68k_sigtramp_info): Delete.
7164 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7165 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7166 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7167 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7168 "m68klinux-tdep.c".
7169
c8864fa2
AC
7170 * infrun.c (check_sigtramp2): Delete check for
7171 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7172
511dd2cd
MK
71732004-05-01 Mark Kettenis <kettenis@gnu.org>
7174
7175 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7176
8c6b0e06
AC
71772004-05-01 Andrew Cagney <cagney@redhat.com>
7178
9df0bb3f
AC
7179 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7180 (frv_linux_sigtramp_frame_cache)
7181 (frv_linux_sigtramp_frame_this_id)
7182 (frv_linux_sigtramp_frame_prev_register)
7183 (frv_linux_sigtramp_frame_unwind)
7184 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7185 include "linux" in function and variable names, directly call
7186 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7187 the latest trad-frame code.
7188 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7189 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7190 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7191 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7192 * frv-tdep.c (frv_sigtramp_frame_cache)
7193 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7194 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7195 frv-linux-tdep.c.
7196 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7197 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7198 (frv_set_sigcontext_reg_addr): Delete function.
7199
8c6b0e06
AC
7200 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7201 (DEPRECATED_SIGTRAMP_END): Delete.
7202 * gdbarch.h, gdbarch.c: Re-generate.
7203 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7204 * config/vax/tm-vaxbsd.h: Update copyright.
7205 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7206 (DEPRECATED_IN_SIGTRAMP): Define.
7207 * config/m68k/tm-nbsd.h: Update copyright.
7208 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7209 (DEPRECATED_IN_SIGTRAMP): Define.
7210
50ea7769
MK
72112004-05-01 Mark Kettenis <kettenis@gnu.org>
7212
03ac2a74
MK
7213 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7214 encondings. Fixes PR gdb/1628.
7215
50ea7769
MK
7216 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7217 DW_CFA_restore state without a matching DW_CFA_remember_state
7218 instead of aborting. Fixes PR backtrace/1589.
7219
9a5d7be1
JB
72202004-04-30 Joel Brobecker <brobecker@gnat.com>
7221
7222 * MAINTAINERS: Add self as AIX maintainer.
7223 Update my e-mail address in write-after-approval section.
7224
2593d1cd
AC
72252004-04-30 Andrew Cagney <cagney@redhat.com>
7226
ce12bbf9
AC
7227 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7228 (legacy_get_prev_frame): Ditto.
7229
36710c63
AC
7230 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7231 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7232 * mipsread.c (sigtramp_address): Delete extern variable.
7233 (mipscoff_new_init): Delete reference.
7234 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7235 (fixup_sigtramp): Delete function.
7236 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7237 (fixup_sigtramp): Delete declarations.
7238
2593d1cd
AC
7239 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7240 deprecated_pc_in_sigtramp.
7241 (ppcnbsd_pc_in_sigtramp): Delete function.
7242
2a25f91c
MK
72432004-05-01 Mark Kettenis <kettenis@gnu.org>
7244
7245 * config/m68k/nm-nbsd.h: Tweak comments.
7246 * config/m68k/nm-nbsdaout.h: Likewise.
7247
0b281939
AC
72482004-04-30 Andrew Cagney <cagney@redhat.com>
7249
7250 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7251 legacy_pc_in_sigtramp.
7252 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7253
8f2d3ea0
MK
72542004-05-01 Mark Kettenis <kettenis@gnu.org>
7255
7256 Add OpenBSD/m68k support.
7257 * NEWS (New native configurations): Mention OpenBSD/m68k.
7258 * m68kbsd-tdep.c: New file.
7259 * m68kbsd-nat.c: New file.
7260 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7261 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7262 * configure.host: Add m68k-*-openbsd.
7263 * configure.tgt: Add m68k-*-openbsd.
7264 * config/m68k/tm-obsd.h: New file.
7265 * config/m68k/obsd.mt: New file.
7266 * config/m68k/obsd.mh: New file.
7267 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7268 m68kbsd-tdep.c.
7269
c40f49a4
AC
72702004-04-30 Andrew Cagney <cagney@redhat.com>
7271
7272 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7273 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7274
e81554cd
MK
72752004-04-30 Mark Kettenis <kettenis@gnu.org>
7276
7277 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7278 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7279
d4dc1a91
BF
72802004-04-30 Brian Ford <ford@vss.fsi.com>
7281
7282 Revert 2004-04-16 change.
7283 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7284 (i386_coff_init_abi): Remove.
7285 * i386-tdep.h (i386_coff_init_abi): Remove.
7286 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7287
2f72f850
AC
72882004-04-30 Andrew Cagney <cagney@redhat.com>
7289
e492f9d6
AC
7290 * blockframe.c (find_pc_partial_function): Delete use of
7291 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7292 DEPRECATED_SIGTRAMP_END.
7293
7b7adad0
AC
7294 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7295 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7296 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7297 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7298 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7299
2f72f850
AC
7300 * defs.h (deprecated_inside_entry_file): Delete declaration.
7301 * blockframe.c (deprecated_inside_entry_file): Delete function.
7302 (legacy_frame_chain_valid): Delete call.
7303 * sh64-tdep.c (sh64_frame_chain): Delete call.
7304 * objfiles.h: Update comments.
7305 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7306 call.
7307 * frame.c (get_prev_frame): Delete call, update comments.
7308
283f90a7
BF
73092004-04-30 Brian Ford <ford@vss.fsi.com>
7310
7311 * MAINTAINERS (Write After Approval): Add myself.
7312
8ee56bcf
AC
73132004-04-30 Andrew Cagney <cagney@redhat.com>
7314
7315 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7316 * gdbarch.h, gdbarch.c: Re-generate.
7317 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7318 code.
7319
ee27e1b6
AC
73202004-04-30 Andrew Cagney <cagney@redhat.com>
7321
7322 * gdb-events.sh (selected_thread_changed)
7323 (selected_frame_level_changed, target_changed): Delete.
7324 * gdb-events.h, gdb-events.c: Re-generate.
7325 * valops.c (value_assign): Update.
7326 * stack.c (select_frame_command, up_silently_base)
7327 (down_silently_base): Update.
7328
d5ac5a39
AC
73292004-04-29 Andrew Cagney <cagney@redhat.com>
7330
7331 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7332 registers correctly.
7333 (print_gp_register_row, mips32_heuristic_proc_desc)
7334 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7335 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7336 references to mips_isa_regsize.
7337
ceae6e75
AC
73382004-04-29 Andrew Cagney <cagney@redhat.com>
7339
7340 * mips-tdep.c (struct gdbarch_tdep): Delete
7341 mips_fp_register_double.
7342 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7343 mips_abi_regsize.
7344 (mips_gdbarch_init): Do not set mips_fp_register_double.
7345 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7346
a587af0b
AC
73472004-04-29 Joel Brobecker <brobecker@gnat.com>
7348
7349 Committed by Andrew Cagney.
7350 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7351 function calls.
7352
13326b4e
AC
73532004-04-29 Andrew Cagney <cagney@redhat.com>
7354
7355 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7356 gdbarch, use mips_abi, update callers.
7357 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7358 mips_abi_regsize, update callers.
7359 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7360 mips_default_abi_regsize.
7361 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7362 mips_default_abi_regsize.
7363
711cc5cd
AC
73642004-04-29 Andrew Cagney <cagney@redhat.com>
7365
1b13c4f6
AC
7366 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7367 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7368 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7369 mips_default_abi_regsize.
7370 (mips_isa_regsize): Rename mips_regisze.
7371 * mipsnbsd-tdep.c: Update.
7372 * mips-linux-tdep.c: Update.
7373 * irix5-nat.c: Update.
7374 * mips-tdep.h (mips_isa_regsize): Update.
7375
711cc5cd
AC
7376 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7377 Delete all disabled code.
7378 * gdb-events.h, gdb-events.c: Re-generate.
7379
e63bbc88
MK
73802004-04-19 Jerome Guitton <guitton@gnat.com>
7381 Mark Kettenis <kettenis@gnu.org>
7382
7383 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7384 the function begins with a branch instruction.
7385
fd35795f
MK
73862004-04-29 Mark Kettenis <kettenis@gnu.org>
7387
7388 * i386-tdep.c: Fix spelling mistakes.
7389
c960c18f
AC
73902004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7391 Andrew Cagney <cagney@redhat.com>
7392
7393 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7394 <sys/proc.h>.
7395 * acconfig.h: Provide default _KMEMUSER value.
7396 * config.in, configure: Re-generate.
7397 * NEWS: Mention fix.
7398
50306a9d
RC
73992004-04-24 Randolph Chung <tausq@debian.org>
7400
7401 * configure.host (hppa*-*-linux*): New target.
7402 * configure.tgt (hppa*-*-linux*): Likewise.
7403 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7404 gdbarch_init_osabi() call earlier so that osabi-specific frame
7405 unwinders can be registered first.
7406 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7407 hppa-linux-nat.c.
7408 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7409 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7410 * config/pa/linux.mh: New file.
7411 * config/pa/linux.mt: New file.
7412 * config/pa/nm-linux.h: New file.
7413 * config/pa/xm-linux.h: New file.
7414 * hppa-linux-nat.c: New file.
7415 * hppa-linux-tdep.c: New file.
7416
2a6228ef
RC
74172004-04-28 Randolph Chung <tausq@debian.org>
7418
7419 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7420 return values.
7421 (hppa32_push_dummy_call): Fix small struct and floating point argument
7422 passing, and make sure the stack frame is properly aligned.
7423
82c10df6
AC
74242004-04-28 Andrew Cagney <cagney@redhat.com>
7425
d762c46a
AC
7426 * stack.c (print_stack_frame): Fix description.
7427
82c10df6
AC
7428 * NEWS: Mention gdb/gdbserver/configure execute permission
7429 changed. PR server/519.
7430
0faf0076
AC
74312004-04-28 Andrew Cagney <cagney@redhat.com>
7432
7433 * stack.c (print_stack_frame_stub): Delete declaration.
7434 (struct print_stack_frame_args, print_stack_frame)
7435 (print_frame_info, print_frame): Replace "source" with print what.
7436 Replace "print" with "print_level". Replace "args" with
7437 "print_args".
7438 * frame.h (show_and_print_stack_frame, print_stack_frame)
7439 (print_frame_info): Update declarations.
7440 * stack.c (select_and_print_frame, frame_command)
7441 (current_frame_command, up_command, down_command): Update calls -
7442 use get_selected_frame, pass "enum print_what" for source, do not
7443 call frame_relative_level.
7444 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7445 * remote-rdp.c (remote_rdp_open): Ditto.
7446 * remote-mips.c (common_open): Ditto.
7447 * remote-e7000.c (e7000_start_remote): Ditto.
7448 * ocd.c (ocd_start_remote): Ditto.
7449 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7450 * infrun.c (normal_stop): Ditto.
7451 * inflow.c (kill_command): Ditto.
7452 * infcmd.c (finish_command): Ditto.
7453 * corelow.c (core_open): Ditto.
7454 * tracepoint.c (finish_tfind_command): Ditto.
7455 * thread.c (info_threads_command, info_threads_command)
7456 (restore_current_thread, do_captured_thread_select): Ditto.
7457 * ada-tasks.c (task_command): Ditto.
7458
f4c5303c
OF
74592004-04-26 Orjan Friberg <orjanf@axis.com>
7460
7461 * frame.c: Include "observer.h".
7462 (frame_observer_target_changed): New function.
7463 (_initialize_frame): Attach target_changed observer.
7464 * regcache.c: Include "observer.h".
7465 (regcache_observer_target_changed): New function.
7466 (_initialize_regcache): Attach target_changed observer.
7467 * valops.c: Include "observer.h".
7468 (value_assign): Notify target_changed event when modifying register.
7469 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7470
7270d8f2
OF
74712004-04-26 Orjan Friberg <orjanf@axis.com>
7472
7473 From Paul Koning <pkoning@equallogic.com>:
7474 * breakpoint.c (free_valchain): New function.
7475 (insert_bp_location, delete_breakpoint): Use free_valchain.
7476 (remove_breakpoint): Do not remove the valchain.
7477 (bpstat_stop_status): If not stopped by watchpoint, skip
7478 watchpoints when generating stop status list.
7479 * infrun.c (handle_inferior_event): Make
7480 stepped_after_stopped_by_watchpoint a global variable.
7481 * remote.c (remote_stopped_data_address): Return watch data
7482 address rather than zero if stepped_after_stopped_by_watchpoint is
7483 set.
7484
02d62932
MC
74852004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7486
7487 Fix PR gdb/1626.
7488 * configure.in: Check for curses after termcap.
7489 On osf5.*, do not check for ncurses.
7490 * configure: Regenerate.
7491
3e9a183c
MK
74922004-04-25 Mark Kettenis <kettenis@gnu.org>
7493
c79ac407
MK
7494 * ppcobsd-nat.c: Include "ppc-tdep.h".
7495 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7496
3e9a183c
MK
7497 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7498 Fixes PR tdep/1623 and PR tdep/1624.
7499
38cc9c28
MC
75002004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7501
7502 * xmodem.h, xmodem.c: Remove files.
7503 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7504
7f07c5b6
RC
75052004-04-23 Randolph Chung <tausq@debian.org>
7506
7507 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7508 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7509 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7510 for handling stackless frames.
7511 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7512
9f7194c3
RC
75132004-04-23 Randolph Chung <tausq@debian.org>
7514
7515 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7516 starts at a pc before the frame is created.
7517
dcff6009
JB
75182004-04-23 Joel Brobecker <brobecker@gnat.com>
7519
7520 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7521
40711ff1 75222004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
7523
7524 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7525 use convert_typed_floating to get the appropriate format.
7526
abc485a1
RC
75272004-04-22 Randolph Chung <tausq@debian.org>
7528
7529 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7530 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7531 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7532 (hppa_sign_extend): Add prototype.
7533 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7534 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7535 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7536 hppa targets will also use these functions.
7537 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7538 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7539 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7540 (hppa_gdbarch_init): Remove gdbarch setting of
7541 skip_trampoline_code, in_solib_call_trampoline and
7542 in_solib_return_trampoline.
7543 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7544 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7545 hppa_in_solib_call_trampoline.
7546 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7547 Moved from hppa-tdep.c.
7548 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7549 in_solib_call_trampoline and in_solib_return_trampoline.
7550
369aa520
RC
75512004-04-22 Randolph Chung <tausq@debian.org>
7552
7553 * hppa-tdep.c (hppa_debug): New variable.
7554 (find_unwind_entry, hppa_frame_cache): Add debug output.
7555 (_initialize_hppa_tdep): Add command to set debug flag.
7556
476be15e
AC
75572004-04-22 Andrew Cagney <cagney@redhat.com>
7558
7559 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7560 "trad-frame.h".
7561 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7562 signal trampoline unwinder.
7563 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7564
d195bc9f
MK
75652004-04-22 Mark Kettenis <kettenis@gnu.org>
7566
7567 Add OpenBSD/powerpc support.
7568 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7569 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7570 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7571 (ppc_collect_fpregset): New prototypes.
7572 * ppcobsd-nat.c: New file.
7573 * ppcobsd-tdep.c: New file.
7574 * ppcobsd-tdep.h: New file.
7575 * rs6000-tdep.c: Include "regset.h".
7576 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7577 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7578 New functions.
7579 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7580 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7581 (rs6000-tdep.o): Update dependencies.
7582 * configure.host: Add powerpc-*-openbsd.
7583 * configure.tgt: Add powerpc-*-openbsd.
7584 * config/powerpc/obsd.mh: New file.
7585 * config/powerpc/nm-obsd.h: New file.
7586 * config/powerpc/obsd.mt: New file.
7587
6f14cc33
AC
75882004-04-22 Andrew Cagney <cagney@redhat.com>
7589
fcf29e5f
AC
7590 * frame.h (show_frame_info): Delete declaration.
7591
6f14cc33
AC
7592 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7593 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7594 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7595 * frv-tdep.c (frv_frame_this_id): Ditto.
7596 * avr-tdep.c (avr_frame_this_id): Ditto.
7597
e5786a5c
EZ
75982004-04-22 Elena Zannoni <ezannoni@redhat.com>
7599
7600 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7601
26e75e5c
JB
76022004-04-22 Jim Blandy <jimb@redhat.com>
7603
7604 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7605 register number zero.
7606
d8d65dd3
MS
76072004-04-21 Michael Snyder <msnyder@redhat.com>
7608
7609 * mips-tdep.c (heuristic_proc_start):
7610 Warning() already prefixes "Warning: ".
7611
9a4105ab
AC
76122004-04-21 Andrew Cagney <cagney@redhat.com>
7613
7614 * annotate.h (deprecated_annotate_starting_hook)
7615 (deprecated_annotate_stopped_hook)
7616 (deprecated_annotate_exited_hook)
7617 (deprecated_annotate_signal_hook)
7618 (deprecated_annotate_signalled_hook): Deprecate.
7619 * tracepoint.h (deprecated_create_tracepoint_hook)
7620 (deprecated_delete_tracepoint_hook)
7621 (deprecated_modify_tracepoint_hook)
7622 (deprecated_trace_find_hook)
7623 (deprecated_trace_start_stop_hook): Deprecate.
7624 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7625 * remote.h (deprecated_target_resume_hook)
7626 (deprecated_target_wait_loop_hook): Deprecate.
7627 * gdbcore.h (deprecated_exec_file_display_hook)
7628 (deprecated_file_changed_hook): Deprecate.
7629 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7630 * defs.h (deprecated_modify_breakpoint_hook)
7631 (deprecated_command_loop_hook, deprecated_show_load_progress)
7632 (deprecated_print_frame_info_listing_hook)
7633 (deprecated_query_hook, deprecated_warning_hook)
7634 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7635 (deprecated_delete_breakpoint_hook)
7636 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7637 (deprecated_readline_begin_hook, deprecated_readline_hook)
7638 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7639 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7640 (deprecated_context_hook, deprecated_target_wait_hook)
7641 (deprecated_attach_hook, deprecated_detach_hook)
7642 (deprecated_call_command_hook, deprecated_set_hook)
7643 (deprecated_error_hook, deprecated_error_begin_hook)
7644 (deprecated_ui_load_progress_hook): Deprecate.
7645 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7646 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7647 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7648 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7649 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7650 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7651 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7652 * annotate.c, aix-thread.c: Update.
7653
62cf13cc
AC
76542004-04-21 Andrew Cagney <cagney@redhat.com>
7655
b2e31a62
AC
7656 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7657 * vaxnbsd-tdep.c: Include "gdb_string.h".
7658
62cf13cc
AC
7659 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7660 (add_symbol_file_from_memory_command): #if 0 function body, call
7661 error instead.
7662
00e32a35
AC
76632004-04-21 Andrew Cagney <cagney@redhat.com>
7664
7665 * gdbcore.h: Update copyright.
7666 (deprecated_add_core_fns): Rename add_core_fns.
7667 * win32-nat.c (_initialize_core_win32): Update.
7668 * sun3-nat.c (_initialize_core_sun3): Update.
7669 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7670 * rs6000-nat.c (_initialize_core_rs6000): Update.
7671 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7672 * nto-tdep.c (_initialize_nto_tdep): Update.
7673 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7674 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7675 * mips-nat.c (_initialize_core_mips): Update.
7676 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7677 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7678 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7679 * lynx-nat.c (_initialize_core_lynx): Update.
7680 * irix5-nat.c (_initialize_core_irix5): Update.
7681 * i386-interix-nat.c (_initialize_core_interix): Update.
7682 * cris-tdep.c (_initialize_cris_tdep): Update.
7683 * corelow.c (deprecated_add_core_fns): Update.
7684 * core-regset.c (_initialize_core_regset): Update.
7685 * core-aout.c (_initialize_core_aout): Update.
7686 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7687 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7688 * alpha-nat.c (_initialize_core_alpha): Update.
7689
13c7b1ca
JB
76902004-04-21 Jim Blandy <jimb@redhat.com>
7691
7692 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7693
7b5a2f43
DJ
76942004-04-19 Daniel Jacobowitz <drow@mvista.com>
7695
7696 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7697 Delete.
7698 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7699 (read_attribute_value): Update calls to dwarf_alloc_block.
7700 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7701 dwarf2_tmp_obstack.
7702 (psymtab_to_symtab_1): Likewise. Clean up using
7703 free_stack_comp_unit.
7704 (add_to_cu_func_list): Use the comp_unit_obstack.
7705
05cf31d1
JB
77062004-04-19 Joel Brobecker <brobecker@gnat.com>
7707
7708 * dwarf2read.c (dwarf2_flag_true_p): New function.
7709 (die_is_declaration): Use the function above. Add some comments.
7710
adf93a2f
MK
77112004-04-19 Mark Kettenis <kettenis@gnu.org>
7712
7713 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7714 architecture when registering sparcnbsd_core_osabi_sniffer.
7715 Adjust comment.
7716
748894bf
MK
77172004-04-18 Mark Kettenis <kettenis@gnu.org>
7718
f622ad42
MK
7719 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7720 return value.
7721
c4fc7f1b
MK
7722 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7723 * i386-tdep.c: Correct register numbering scheme comments
7724 throughout.
7725 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7726 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7727 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7728 (i386_gdb_arch_init): Likewise.
7729
b4ead1bd
MK
7730 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7731 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7732 ppcnbsd-tdep.o.
7733
748894bf
MK
7734 * m68k-tdep.h: Tweak comments.
7735 * m68k-tdep.c: Tweak comment.
7736
fdd72f95
RC
77372004-04-17 Randolph Chung <tausq@debian.org>
7738
7739 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7740 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7741 (hppa_hpux_som_init_abi): Set is_elf to 0.
7742 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7743 * hppa-tdep.c (low_text_segment_address): Remove global.
7744 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7745 section offset to calculate segment address.
7746 (internalize_unwinds): Define low_text_segment_address as local and
7747 pass to record_text_segment_lowaddr for ELF targets.
7748 (hppa_gdbarch_init): Zero fill tdep structure.
7749 (hppa_dump_tdep): Print tdep structure.
7750 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7751
0f8d9d59
RC
77522004-04-17 Randolph Chung <tausq@debian.org>
7753
7754 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7755 (hppa_gdbarch_init): Set pseudo_register_read.
7756 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7757 * regcache.c (supply_register): Remove check for
7758 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7759
7c46b9fb
RC
77602004-04-17 Randolph Chung <tausq@debian.org>
7761
7762 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7763 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7764 (hpread_adjust_stack_address): Move to hpread.c.
7765 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7766 obj_private_struct): Move from tm-hppa.h.
7767 * hpread.c (hppa-tdep.h): Include.
7768 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7769 (hpread_read_function_type, hpread_read_doc_function_type)
7770 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7771 directly.
7772 * pa64solib.c (hppa-tdep.h): Include.
7773 * somsolib.c (hppa-tdep.h): Include.
7774 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7775 inferior_status): Remove unused forward declarations.
7776 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7777 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7778 obj_private_struct): Move to hppa-tdep.h.
7779 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7780
8d153463
RC
77812004-04-17 Randolph Chung <tausq@debian.org>
7782
7783 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7784 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7785 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7786 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7787 Remove forward declaration and make static.
7788 (hppa_reg_struct_has_addr): Remove.
7789
350c2e5b
JB
77902004-04-16 Joel Brobecker <brobecker@gnat.com>
7791
7792 * observer.sh: Move comments in sed command to first column.
7793
bbde78fa
JM
77942004-04-16 Jason Molenda (jmolenda@apple.com)
7795
7796 * frame.c: Minor typeo corrections in comments.
7797
e0270fd9
JB
77982004-04-16 Joel Brobecker <brobecker@gnat.com>
7799
7800 * observer.c (observer_test_first_notification_function): Update
7801 function profile.
7802 (observer_test_second_notification_function): Likewise.
7803 (observer_test_third_notification_function): Likewise.
7804
3d049254
MK
78052004-04-16 Mark Kettenis <kettenis@gnu.org>
7806
7807 From Brian Ford <ford@vss.fsi.com>:
7808 * i386-tdep.c (i386_coff_init_abi): New function.
7809 * i386-tdep.h (i386_coff_init_abi): New prototype.
7810 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7811 register number translation functions for DWARF and DWARF 2.
7812
7867684d
JB
78132004-04-16 Joel Brobecker <brobecker@gnat.com>
7814
7815 * dwarf2read.c: Back out my previous change, it was incorrect.
7816
72bf9492
DJ
78172004-04-16 Daniel Jacobowitz <drow@mvista.com>
7818
7819 * dwarf2read.c: Include "hashtab.h".
7820 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7821 has_namespace_info.
7822 (struct partial_die_info): Add comments. Use bitfields to reduce
7823 memory footprint. Add scope, scope_set, has_specification,
7824 spec_offset, die_parent, die_child, and die_sibling.
7825 (peek_die_abbrev): Add prototype.
7826 (partial_read_comp_unit_head): New function, broken out from
7827 dwarf2_build_psymtabs_hard.
7828 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7829 Use partial_read_comp_unit_head. Initialize the CU and
7830 comp_unit_obstack. Update calls to read_partial_die and
7831 scan_partial_symbols. Use free_stack_comp_unit and
7832 load_partial_dies.
7833 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7834 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7835 Update calls to helper functions. Remove NAMESPACE argument.
7836 Update comments.
7837 (partial_die_parent_scope, partial_die_full_name): New functions.
7838 (add_partial_symbol): Remove namespace argument. Update call to
7839 pdi_needs_namespace. Use partial_die_full_name. Handle
7840 DW_TAG_namespace. Check has_namespace_info flag.
7841 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7842 tag. Handle namespaces.
7843 (add_partial_namespace, add_partial_enumeration): Simplify.
7844 (guess_structure_name): New function, derived from
7845 add_partial_structure.
7846 (add_partial_structure): Remove.
7847 (determine_class_name): Update comment.
7848 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7849 (is_type_tag_for_partial, load_partial_dies): New functions.
7850 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7851 Record specifications instead of following them immediately.
7852 (find_partial_die_in_comp_unit, find_partial_die)
7853 (fixup_partial_die, free_stack_comp_unit)
7854 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7855 (partial_die_hash, partial_die_eq): New functions.
7856 * Makefile.in (hashtab_h): Define.
7857 (dwarf2read.o): Update dependencies.
7858 (observer_inc, observer_h): Move to the correct section.
7859
fdc860a3
JB
78602004-04-15 Joel Brobecker <brobecker@gnat.com>
7861
7862 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7863 (die_is_declaration): Use the function above. Add comment.
7864
dc718098
JB
78652004-04-15 Joel Brobecker <brobecker@gnat.com>
7866
7867 * dwarf2read.c (read_structure_scope): Identify stub types
7868 using die_is_declaration() only.
7869
8718a420
RM
78702004-04-15 Roland McGrath <roland@redhat.com>
7871
7872 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7873 argument instead of NAME.
7874 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7875 in call to symbol_file_add_with_addrs_or_offsets.
7876 (build_addr_info): New function, helper for ...
7877 (symbol_file_add_from_memory): New function.
7878 (add_symbol_file_from_memory_command): New function using that.
7879 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7880 (pre_add_symbol_hook): Add const to argument type.
7881 * symfile.h (symbol_file_add_from_memory): Declare it.
7882
8b910bab
MK
78832004-04-15 Mark Kettenis <kettenis@gnu.org>
7884
9f076e7a
MK
7885 * NEWS (New native configurations): Mention OpenBSD/vax.
7886 * configure.host: Add vax-*-openbsd*.
7887 * config/vax/obsd.mh: New file.
7888 * config/vax/nm-obsd.h: New file.
7889
8b910bab
MK
7890 * vax-tdep.c: Include "regset.h".
7891 (vax_supply_gregset): New function.
7892 (vax_gregset): New variable.
7893 (vax_regset_from_core_section): New function.
7894 (vax_gdbarch_init): Set regset_from_core_section.
7895 * Makefile.in (vax-tdep.o): Update dependencies.
7896
7a464420
AC
78972004-04-15 Andrew Cagney <cagney@redhat.com>
7898
7899 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7900 (observer_normal_stop_notification_stub)
7901 (observer_attach_normal_stop, observer_detach_normal_stop):
7902 Delete, replaced by #include "observer.inc".
7903 * infrun.c (normal_stop): Pass "stop_bpstat" to
7904 observer_notify_normal_stop.
7905 * Makefile.in (observer_inc): Define.
7906 (observer.o): Update dependencies.
7907 (observer.h, observer.inc): New rules.
7908 * observer.h: Delete file.
7909 * observer.sh: New file.
7910
e36ad527
MK
79112004-04-15 Mark Kettenis <kettenis@gnu.org>
7912
7913 * vax-tdep.c (vax_frame_cache): Fix typo.
7914
67b441e1
MK
79152004-04-14 Mark Kettenis <kettenis@gnu.org>
7916
6f606e1c
MK
7917 * NEWS (New native configurations): Mention NetBSD/vax.
7918 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7919 * config/vax/nbsdelf.mh: New file.
7920 * config/vax/nbsdaout.mh: New file.
7921 * config/vax/nm-nbsd.h: New file.
7922 * config/vax/nm-nbsdaout.h: New file.
7923
9c5519a5
MK
7924 * vaxnbsd-tdep.c: New file.
7925 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7926 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7927 * config/vax/nbsd.mt: New file.
7928 * config/vax/tm-nbsd.h: New file.
7929
4844a614
MK
7930 * Makefile.in (vaxbsd-nat.o): New dependency.
7931
67b441e1
MK
7932 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7933 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7934 struct_addr arguments. Don't push return value address.
7935 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7936 arguments to vax_store_arguments. Store return value address in
7937 R1.
7938 (vax_store_struct_return, vax_extract_return_value)
7939 (vax_store_return_value): Remove functions.
7940 (vax_return_value): New function.
7941 (vax_gdbarch_init): Set return value. Don't set
7942 deprecated_store_struct_return, deprecated_extract_struct_return
7943 and deprecated_store_return_value.
7944
6672f2ae
AS
79452004-04-14 Andreas Schwab <schwab@suse.de>
7946
7947 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7948 value buffer.
7949 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7950
7346c184
MK
79512004-04-14 Mark Kettenis <kettenis@gnu.org>
7952
7953 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7954 (vax_unwind_dummy_id): New functions.
7955 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7956 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7957 variables.
7958 (vax_fix_call_dummy): Remove function.
7959 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7960 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7961 call_dummy_location, deprecated_call_dummy_words,
7962 deprecated_sizeof_call_dummy_words,
7963 deprecated_call_dummy_breakpoint_offset,
7964 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7965 and deprecated_dummy_write_sp.
7966
58e23df4
DC
79672004-04-13 David Carlton <carlton@kealia.com>
7968
7969 * MAINTAINERS: Move myself to "paper trail" section.
7970
5e6b39ff
MK
79712004-04-12 Mark Kettenis <kettenis@gnu.org>
7972
7def7fef
MK
7973 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7974 "trad-frame.h".
7975 (vax_frame_init_saved_regs): Remove function.
7976 (vax_sigtramp_saved_pc): Remove function.
7977 (vax_frame_saved_pc): Remove function.
7978 (vax_frame_args_address): Remove function.
7979 (vax_frame_num_args): Rewrite.
7980 (vax_frame_chain): Remove function.
7981 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7982 VAX_FP_REGNUM.
7983 (vax_pop_frame): Likewise.
7984 (vax_saved_pc_after_call): Remove function.
7985 (struct vax_frame_cache): New structure.
7986 (vax_frame_cache): New function.
7987 (vax_frame_this_id): New function.
7988 (vax_frame_prev_register): New function.
7989 (vax_frame_unwind): New variable.
7990 (vax_frame_sniffer): New function.
7991 (vax_frame_base_address): New function.
7992 (vax_frame_args_address): New function.
7993 (vax_frame_base): New variable.
7994 (vax_unwind_pc): New function.
7995 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7996 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7997 deprecated_frame_chain, deprecated_frame_saved_pc,
7998 deprecated_frame_args_address and
7999 deprecated_frame_init_saved_regs.
8000 * Makefile.in (vax-tdep.o): Update dependencies.
8001
53284fc1
MK
8002 * vaxbsd-nat.c: New file.
8003
5e6b39ff
MK
8004 * vax-tdep.h: Update copyright year. Adjust comments.
8005 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8006 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8007 (vax_regnum): New enum. Replacing...
8008 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8009 (VAX_PS_REGNUM): ... these removed macros.
8010 * vax-tdep.c (vax_register_name): Remove prototype.
8011 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8012 (vax_register_byte, vax_register_raw_size,
8013 vax_register_virtual_size, vax_register_virtual_type): Remove
8014 functions.
8015 (vax_register_type): New function.
8016 (vax_breakpoint_from_pc): Reorganize.
8017 (vax_gdbarch_init): Set register_type. Don't set
8018 deprecated_register_size, deprecated_register_bytes,
8019 deprecated_register_byte, deprecated_register_raw_size,
8020 deprecated_max_register_raw_size,
8021 deprecated_register_virtual_size,
8022 deprecated_max_register_virtual_size and
8023 deprecated_register_virtual_type. Add comment on stack direction.
8024
e9c71e9f
MK
80252004-04-11 Mark Kettenis <kettenis@gnu.org>
8026
8027 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8028 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 8029 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 8030
d46f1176 80312004-04-10 Randolph Chung <tausq@debian.org>
8718a420 8032
d46f1176
RC
8033 * MAINTAINERS (write after approval): Add myself.
8034
a2a84a72
RC
80352004-04-07 Randolph Chung <tausq@debian.org>
8036
8037 * hppa-tdep.c (hppa_inner_than): Remove.
8038 (is_pa_2): Remove unused static variable.
8718a420 8039 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 8040
e85c3284
PH
80412004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8042
8043 * language.h (language_defn): Add new la_post_parser field.
8044 * parser-defs.h (null_post_parser): New declaration (default for
8045 la_post_parser).
8718a420 8046
e85c3284
PH
8047 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8048 insert call to that function.
8049 (parse_exp_in_context): New function, including code formerly in
8718a420 8050 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
8051 prefixification.
8052 (parse_expression_in_context): New exported function.
8053 (null_post_parser): New definition.
8054 * expression.h (parse_expression_in_context): Add declaration.
8718a420 8055
e85c3284
PH
8056 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8057 * c-lang.c (c_language_defn): Ditto.
8058 (cplus_language_defn): Ditto.
8059 (asm_language_defn): Ditto.
8060 (minimal_language_defn): Ditto.
8061 * f-lang.c (f_language_defn): Ditto.
8062 * jv-lang.c (java_language_defn): Ditto.
8063 * language.c (unknown_language_defn): Ditto.
8064 (auto_language_defn): Ditto.
8065 (local_language_defn): Ditto.
8066 * m2-lang.c (m2_language_defn): Ditto.
8067 * scm-lang.c (scm_language_defn): Ditto.
8068 * obj-lang.c (objc_language_defn): Ditto.
8718a420 8069
d9f8c85b
MK
80702004-04-10 Mark Kettenis <kettenis@gnu.org>
8071
fa34704a
MK
8072 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8073 (amd64nbsd_mcontext_addr): New function.
8074 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8075 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8076 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8077
403e1656
MK
8078 * corelow.c (core_xfer_partial): Fix coding standards violation.
8079 Add support for TARGET_OBJECT_WCOOKIE.
8080
a57e5a95
MK
8081 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8082 deprecated_pc_in_sigtramp.
8083 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8084 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8085 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8086 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8087 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8088 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8089 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8090
377d9ebd
MK
8091 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8092 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8093 Fix typo.
8094
f0ef85a5
MK
8095 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8096 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8097 (amd64_collect_fxsave): Likewise.
8098
d9f8c85b
MK
8099 * i386-sol2-tdep.c: Include "gdb_string.h".
8100 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8101 name.
8102 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8103
75f501b5
MK
81042004-04-10 Mark Kettenis <kettenis@gnu.org>
8105
8106 * i386-sol2-tdep.c: Include "solib-svr4.h".
8107 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8108 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8109 * config/i386/tm-i386sol2.h: Include :solib.h".
8110 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8111 solib-svr4.o and solib-legacy.o.
8112 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8113 solib-svr4.o.
8114
b31bc724
MK
81152004-04-09 Mark Kettenis <kettenis@gnu.org>
8116
18bbbd9e
MK
8117 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8118 whether a register is supplied by PTRACE_GETFPREGS.
8119 (store_inferior_registers): Likewise.
8120 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8121 whether a register is supplied by PT_GETFPREGS.
8122 (store_inferior_registers): Likewise.
8123
3c30bf1b
MK
8124 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8125 * config/i386/linux64.mt (TDEPFILES): Likewise.
8126
a4194092
MK
8127 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8128
911bc6ee
MK
8129 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8130 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8131 the program counter is in the range specified by `struct
8132 gdbarch_tdep'.
8133 * amd64-linux-tdep.c: Include "symtab.h".
8134 (amd64_linux_pc_in_sigtramp): Remove function.
8135 (amd64_linux_sigtramp_p): New function.
8136 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8137 deprecated_pc_in_sigtramp.
8138 * amd64nbsd-tdep.c: Include "symtab.h".
8139 (amd64nbsd_sigtramp_p): New function.
8140 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8141 deprecated_pc_in_sigtramp.
8142 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8143 few comments.
8144 (amd64obsd_pc_in_sigtramp): Remove function.
8145 (amd64obsd_sigtramp_p): New function.
8146 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8147 deprecated_pc_in_sigtramp.
8148 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8149 (i386bsd_pc_ins_sigtramp): Remove prototype.
8150 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8151 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8152 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8153 the program counter is in the range specified by `struct
8154 gdbarch_tdep'.
8155 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8156 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8157 (i386_go32_pc_in_sigtramp): Remove function.
8158 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8159 Initialize TDEP->sigtramp_p.
8160 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8161 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8162 deprecated_pc_in_sigtramp.
8163 * i386-linux-tdep.c: Adjust comments.
8164 (i386_linux_pc_in_sigtramp): Remove function.
8165 (i386_linux_sigtramp_p): New function.
8166 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8167 deprecated_pc_in_sigtramp.
8168 * i386-nto-tdep.c: Update copyright year.
8169 (i386nto_pc_in_sigtramp): Remove function.
8170 (i386nto_sigtramp_p): New function.
8171 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8172 SP_REGNUM.
8173 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8174 deprecated_pc_in_sigtramp.
8175 * i386-sol2-tdep.c: Update copyright year.
8176 (i386_sol2_pc_in_sigtramp): Remove function.
8177 (i386_sol2_sigtramp_p): New function.
8178 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8179 deprecated_pc_in_sigtramp.
8180 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8181 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8182 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8183 deprecated_sigtramp_start and deprecated_sigtramp_end.
8184 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8185 (i386nbsd_pc_in_sigtramp): Remove function.
8186 (i386nbsd_sigtramp_p): New function.
8187 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8188 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8189 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8190 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8191 (i386obsd_pc_in_sigtramp): Remove function.
8192 (i386obsd_sigtramp_p): New function.
8193 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8194 functions.
8195 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8196 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8197 TDEP->sigtramp_p.
8198 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8199 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8200 dependencies.
8201
e083e6ec
MK
8202 * config/i386/i386aout.mt: Remove file.
8203
bd153b94
MK
8204 * configure.tgt: Remove i[34567]86-*-go32*,
8205 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8206 and i[34567]86-*-isc*. Set gdb_target to i386 for
8207 i[34567]86-*-netware* and i[34567]86-*-*.
8208 * config/i386/i386.mt: New file.
8209 * config/i386/embed.mt: Remove file.
8210 * config/i386/go32.mt: Remove file.
8211 * config/i386/i386nw.mt: Remove file.
8212 * config/i386/i386v.mt: Remove file.
8213 * config/i386/tm-go32.h: Remove file.
8214
4a1bcc8c
MK
8215 * tui/tui-hooks.c: Include "readline/readline.h" after
8216 "gdb_curses.h" instead of before.
8217 * tui/tui-io.c: Likewise.
8218
f9a79064
MK
8219 * tui/tui.c: Fix typo in comment.
8220
b31bc724
MK
8221 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8222
f83f82bc
AC
82232004-04-08 Andrew Cagney <cagney@redhat.com>
8224
8225 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8226 (deprecated_exception_support_initialized): Declare.
8718a420 8227 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
8228 (initialize_hp_cxx_exception_support)
8229 (child_enable_exception_callback): Update.
8230 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8231 (deprecated_exception_support_initialized): Rename
8232 deprecated_exception_catchpoints_are_fragile and
8233 deprecated_exception_support_initialized.
8234 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8235
8236 * symtab.c (deprecated_hp_som_som_object_present): Rename
8237 hp_som_som_object_present.
8238 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8239 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8240 Update. Delete extern declaration.
8241 * valops.c (hp_som_som_object_present): Ditto.
8718a420 8242 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
8243 (parse_nested_classes_for_hpacc): Ditto.
8244 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 8245 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
8246 (initialize_hp_cxx_exception_support): Ditto.
8247 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 8248 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 8249 (cp_print_class_method): Ditto.
8718a420 8250 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
8251 (c_type_print_base): Ditto.
8252 * c-exp.y (hp_som_som_object_present): Ditto.
8253
fb2be677
AC
82542004-04-08 Andrew Cagney <cagney@redhat.com>
8255
8256 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8257 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8258 (frame_unwind_find_by_frame): Re-implement the unwind code so
8259 that it can both prepend and append sniffers. Replace
8260 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8261 * tramp-frame.c (tramp_frame_append): Use
8262 frame_unwind_prepend_unwinder.
8263 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8264 frame_unwind_register_unwinder.
8265 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8266 tramp_frame_append.
8267 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 8268 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
8269 (mips_linux_init_abi): Update.
8270
67faf007
KB
82712004-04-08 Kevin Buettner <kevinb@redhat.com>
8272
8273 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8274 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8275 file support.
8276
8973ff21
KB
82772004-04-07 Kevin Buettner <kevinb@redhat.com>
8278
8279 * ia64-tdep.c (elf.h): Don't include.
8280 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8281
4a0e2f88
JM
82822004-04-07 Jason Molenda (jmolenda@apple.com)
8283
8284 * frame.h: Typeo corrections in comments.
8285
9872ad24
JB
82862004-04-07 Jim Blandy <jimb@redhat.com>
8287
8288 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8289 %esp and %ebp
8290
70b216c8
MK
82912004-04-07 Mark Kettenis <kettenis@gnu.org>
8292
11d5789c
MK
8293 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8294 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8295 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8296 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8297 and solib-legacy.o.
8298 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8299 solib-svr4.o.
8300 * config/sparc/tm-sol2.h: Update copyright year. Include
8301 "solib.h".
8302
70b216c8
MK
8303 * sparc-sol2-tdep.c: Update copyright year. Include
8304 "solib-svr4.h".
8305 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8306 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8307 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 8308 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
8309 dependencies.
8310
6339dc9e
AC
83112004-04-06 Andrew Cagney <cagney@redhat.com>
8312
8313 * infttrace.c: Include "infttrace.h".
8314 * infttrace.h: Include "target.h".
8315 * Makefile.in (infttrace_h): Update.
8316 (infttrace.o): Update.
8718a420 8317
93449403
AC
83182004-04-06 Andrew Cagney <cagney@redhat.com>
8319
6d518969
AC
8320 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8321 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8322 move extern declarations from here ...
8323 * infttrace.h: ... to here.
8324 * Makefile.in (hppah-nat.o): Update dependencies.
8325
85f4f2d8
AC
8326 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8327 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 8328 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
8329 (hppa_breakpoint_from_pc): Delete.
8330
93449403
AC
8331 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8332
71456ec6
AC
83332004-04-05 Andrew Cagney <cagney@redhat.com>
8334
8335 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8336 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8337 <sys/file.h>.
8718a420 8338
4c02c60c
AC
83392004-04-06 Randolph Chung <tausq@debian.org>
8340
8341 Committed by Andrew Cagney (mechanical change).
8342 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8343 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8344 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8345 child_enable_exception_callback, current_ex_event,
8346 null_symtab_and_line, child_get_current_exception_event,
8347 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8348 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8349 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8350 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8351 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8352 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8353 Move hpux-specific definitions ...
8354 * hppa-hpux-tdep.c: ... to here.
8355
3a515653
AC
83562004-04-05 Andrew Cagney <cagney@redhat.com>
8357
8358 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8359 skip_prologue_using_sal.
8360
c1730d02
AC
83612004-04-05 Andrew Cagney <cagney@redhat.com>
8362
8363 * config/i386/tm-i386.h: Delete file.
8364 * config/i386/tm-vxworks.h: Update copyright, do not include
8365 "tm-i386.h".
8366 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8367 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8368 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8369 * config/i386/ncr3000.mt (TM_FILE): Delete.
8370 * config/i386/interix.mt (TM_FILE): Delete.
8371 * config/i386/i386v.mt (TM_FILE): Delete.
8372 * config/i386/i386nw.mt (TM_FILE): Delete.
8373 * config/i386/i386gnu.mt (TM_FILE): Delete.
8374 * config/i386/i386aout.mt (TM_FILE): Delete.
8375 * config/i386/embed.mt (TM_FILE): Delete.
8376
8b67aa36
KB
83772004-04-05 Kevin Buettner <kevinb@redhat.com>
8378
8379 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8380 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8381 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8382 (accg7_regnum): New constants.
8383 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
8384 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8385 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
8386 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8387 for accg registers.
8388 (frv_register_sim_regno): Update spr_map[].
8389
3c7012f5
AC
83902004-04-04 Andrew Cagney <cagney@redhat.com>
8391
8392 * config/mips/xm-riscos.h: Delete.
8393 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8394 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8395 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8396 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8397 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8398 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8399 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8400 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8401 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8402 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8403 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8404 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8405 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8406 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8407 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8408 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8409 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8410 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8411 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8412 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8413 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8414 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8415 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8416 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8417 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8418 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 8419
3c7012f5
AC
8420 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8421 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8422 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8423 * configure.host: Remove m680[01]0-sun-sunos3*,
8424 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8425 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8426 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8427 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8428 mips-*-riscos*.
8429 * NEWS: Mention removed systems.
8430
99d16a21
AC
84312004-04-04 Andrew Cagney <cagney@redhat.com>
8432
8433 GDB 6.1 release created from 6.1 branch.
8434
6cdf9d98
AC
84352004-04-04 Andrew Cagney <cagney@redhat.com>
8436
98d346c3
AC
8437 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8438 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8439 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8440
6cdf9d98
AC
8441 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8442 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8443 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8444
859a326d
JB
84452004-04-03 Jim Blandy <jimb@redhat.com>
8446
8447 * MAINTAINERS: Chris Faylor has changed employers; add him to
8448 "paper trail" section, and update his E-mail address.
8449
b87178c3
AC
84502004-04-03 Andrew Cagney <cagney@redhat.com>
8451
4ea2acf0
AC
8452 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8453 generic dummy frames.
8454 * dummy-frame.c: Update copyright.
8455 (dummy_frame_sniffer): Delete check for generic dummy frames.
8456
d0bd2d18 8457 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 8458 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
8459 (REG_PARM_STACK_SPACE): Delete.
8460 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8461 Inline reference to REG_PARM_STACK_SPACE.
8462
b87178c3
AC
8463 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8464 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8465 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8466 (FRAME_BASE_BEFORE_SIGTRAMP)
8467 (hppa32_hpux_frame_base_before_sigtramp)
8468 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8469 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8470 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8471 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8472 (FRAME_BASE_BEFORE_SIGTRAMP)
8473 (hppa64_hpux_frame_base_before_sigtramp)
8474 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8475
43e2e1a0
AC
84762004-04-03 Andrew Cagney <cagney@redhat.com>
8477
8478 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8479
ddc135a4
AC
84802004-04-02 Andrew Cagney <cagney@redhat.com>
8481
8482 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8483 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8484 * dummy-frame.h: Delete out-of-date comments.
8485 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8486 * gdbarch.h, gdbarch.c: Re-generate.
8487
d15bfd3a 84882004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 8489
d15bfd3a
AC
8490 Committed by Andrew Cagney <cagney@redhat.com>.
8491 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8492 into account an instruction saving a register if we have already
8493 seen an earlier instruction saving that same register.
8494
f04ceafa
AC
84952004-04-02 Andrew Cagney <cagney@redhat.com>
8496
08be3abd
AC
8497 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8498 * gdbarch.h, gdbarch.c: Re-generate.
8499 * frame.c (legacy_get_prev_frame): Delete references to
8500 DEPRECATED_INIT_FRAME_PC_FIRST.
8501
f04ceafa
AC
8502 * infrun.c (pc_in_sigtramp): Delete function.
8503 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8504 get_frame_type.
8505
08e69816
AC
85062004-04-02 Andrew Cagney <cagney@redhat.com>
8507
8508 * infrun.c (handle_step_into_function): Delete code conditional on
8509 legacy_frame_p.
8510 (handle_inferior_event, step_over_function): Ditto.
8511
adb54772
AC
85122004-04-02 Andrew Cagney <cagney@redhat.com>
8513
8514 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8515 "previous frame inner to this frame" test.
8516
304396fb
AC
85172004-04-02 Andrew Cagney <cagney@redhat.com>
8518
8519 * frame.c (safe_frame_unwind_memory): New function.
8520 * frame.h (safe_frame_unwind_memory): Declare. Update description
8521 of /safe_/ methods.
8522 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8523 "next_frame". Use safe_frame_unwind_memory.
8524 (tramp_frame_sniffer): Update call to tramp_frame_start.
8525
6502dd73
DJ
85262004-04-01 Daniel Jacobowitz <drow@mvista.com>
8527
8528 * dwarf2read.c (dwarf2_objfile_data_key): New.
8529 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8530 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8531 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8532 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8533 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8534 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8535 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8536 Remove variables.
8537 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8538 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8539 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8540 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8541 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8542 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8543 Remove macros.
8544 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8545 data.
8546 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8547 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8548 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8549 (read_partial_die, read_full_die, read_indirect_string)
8550 (dwarf_decode_line_header, dwarf_decode_macros)
8551 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8552 Update uses of removed variables.
8553 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8554 of removed macros.
8555 (_initialize_dwarf2_read): New function.
8556 * symfile.h (dwarf2_has_info): Update prototype.
8557 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8558 * elfread.c (elf_symfile_read): Likewise.
8559
408752b0
JB
85602004-04-01 Jim Blandy <jimb@redhat.com>
8561
9f744501
JB
8562 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8563 function for register numbers on all the rs6000-derived targets.
8564 (rs6000_gdbarch_init): Don't register a separate
8565 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8566 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8567 variants.
8568
408752b0
JB
8569 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8570 numbering.
8571
2de41bce
PH
85722004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8573
8574 * valarith.c: Update copyright notice.
8575 (value_add): Handle range types.
8576 (value_sub): Ditto.
8577 (value_equal): Ditto.
8578 (value_less): Ditto.
8579 (value_neg): Ditto.
8580 (value_complement): Ditto.
8718a420 8581 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 8582 eliminiating unnecessary COERCE_ENUMs.
8718a420 8583
5613d8d3
AC
85842004-03-31 Andrew Cagney <cagney@redhat.com>
8585
8586 * frame.h (frame_unwind_id): Declare.
8587 * frame.c (frame_unwind_id): New function.
8588 (get_prev_frame_1): New function.
8589 (frame_debug_got_null_frame): New function.
8590 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8591 code proper to prev_frame, update description.
8592 * infrun.c (step_over_function): Use frame_unwind_id.
8593
c4557624
JB
85942004-04-31 J. Brobecker <brobecker@gnat.com>
8595
8596 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8597 (hppa64_push_dummy_call): Likewise.
8598
3e6bb910
JB
85992004-03-30 Jim Blandy <jimb@redhat.com>
8600
8601 From Ulrich Weigand:
8602 * utils.c (query): Do not use a va_list variable multiple times.
8603
a2f23071
DJ
86042004-03-29 Daniel Jacobowitz <drow@mvista.com>
8605
8606 * Makefile.in (linux_nat_h): Update dependencies.
8607 * configure.in: Check for <gnu/libc-version.h>.
8608 * configure: Regenerate.
8609 * config.in: Regenerate.
8610 * linux-nat.h: Include "target.h". Add waitstatus field to
8611 struct lwp_info.
8612 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8613 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8614 to.
8615 (lin_lwp_handle_extended): New function. Handle clone events.
8616 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8617 thread exit events.
8618 (child_wait): Handle clone events.
8619 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8620 * linux-nat.c (linux_enable_event_reporting): Turn on
8621 PTRACE_O_TRACECLONE.
8622 (linux_handle_extended_wait): Handle clone events.
8623 * thread-db.c: Include <gnu/libc-version.h>.
8624 (struct private_thread_info): Add dying flag.
8625 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8626 higher.
8627 (attach_thread): Update comments. Handle dying threads.
8628 (detach_thread): Set the dying flag.
8629 (check_event): Always call attach_thread.
8630
8d5f9dcb
DJ
86312004-03-29 Daniel Jacobowitz <drow@mvista.com>
8632
8633 * mips-tdep.c (mips_pdr_data): New.
8634 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8635 (_initialize_mips_tdep): Initialize mips_pdr_data.
8636
66337bb1
CV
86372004-03-29 Corinna Vinschen <vinschen@redhat.com>
8638
8639 * minsyms.c (install_minimal_symbols): Move dropping leading
8640 char from linkage name from here...
8641 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8642 test for "__gnu_compiled*" symbols.
8643
e802b915
JB
86442004-03-28 Jim Blandy <jimb@redhat.com>
8645
8646 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8647 registers to temp register r0 and byte stores as prologue
8648 instructions.
8649
72b56458
AC
86502004-03-28 Andrew Cagney <cagney@redhat.com>
8651
8652 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8653 arm*-*-*.
8654
0bfbda3b
SC
86552004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8656
8657 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8658 and switch the layout to force a display of register window.
8659
5a7225ed
JB
86602004-02-26 J. Brobecker <brobecker@gnat.com>
8661
8662 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8663 of the INTEGER class.
8664
81a07a45
JB
86652004-03-26 Jim Blandy <jimb@redhat.com>
8666
8667 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8668 bytes long on PPC GNU/Linux.
8669
8c691c7a
DC
86702004-03-26 David Carlton <carlton@kealia.com>
8671
8672 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8673
103a0089
AC
86742004-03-25 Andrew Cagney <cagney@redhat.com>
8675
8676 * PROBLEMS: Add general section titles, remove references to
8677 specific releases.
8678
7a5ea0d4
DJ
86792004-03-25 Daniel Jacobowitz <drow@mvista.com>
8680
8681 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8682 INT_REGISTER_SIZE.
8683 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8684 FP_REGISTER_VIRTUAL_SIZE.
8685 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8686 of DEPRECATED_REGISTER_RAW_SIZE.
8687 (arm_register_type): Add gdbarch argument.
8688 (arm_register_raw_size, arm_register_virtual_size): Delete.
8689 (arm_register_byte, arm_extract_return_value)
8690 (arm_store_return_value, arm_get_longjmp_target): Update references
8691 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8692 (arm_gdbarch_init): Likewise. Don't set
8693 deprecated_register_raw_size, deprecated_register_virtual_size,
8694 deprecated_max_register_raw_size,
8695 deprecated_max_register_virtual_size, or
8696 deprecated_max_register_virtual_type. Do set register_type.
8697 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8698 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8699 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8700 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8701 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8702 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8703 INT_REGISTER_SIZE.
8704 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8705 (remote_rdp_store_register): Likewise.
8706
5792a79b
DJ
87072004-03-24 Daniel Jacobowitz <drow@mvista.com>
8708
8709 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8710 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8711 to after osabi initialization.
8712 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8713 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8714 functions.
8715 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8716 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8717 variables.
8718 (mips_linux_init_abi): Append signal trampoline unwinders.
8719
1196bfda
AC
87202004-03-24 Andrew Cagney <cagney@redhat.com>
8721
8722 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8723 * tramp-frame.c: Include "gdb_assert.h".
8724 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8725 correct sizeof.
8726 (tramp_frame_append): Validate the tramp frame's instructions.
8727 * Makefile.in (tramp-frame.o): Update dependencies.
8728
4be282b4
AC
87292004-03-23 Andrew Cagney <cagney@redhat.com>
8730
8731 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8732
69aec09b
AC
87332004-03-23 Andrew Cagney <cagney@redhat.com>
8734
8735 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8736 Nasser as past testsuite/lib/ (and other) maintainers.
8737
63ed89b4
DJ
87382004-03-23 Daniel Jacobowitz <drow@mvista.com>
8739
8740 * infcmd.c (attach_command): Reread symbols if we already have
8741 an exec file.
8742
f3b36427
AC
87432004-03-23 Andrew Cagney <cagney@redhat.com>
8744
8745 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8746
aa2a3f87
AC
87472004-03-23 Andrew Cagney <cagney@redhat.com>
8748
8749 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8750 * gdbarch.h, gdbarch.c: Re-generate.
8751 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8752 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8753 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 8754 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 8755 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 8756 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
8757 (DEPRECATED_SIGTRAMP_START): Update.
8758 * blockframe.c (find_pc_sect_partial_function): Update.
8759 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8760
00cac895
DJ
87612004-03-23 Daniel Jacobowitz <drow@mvista.com>
8762
8763 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8764 if necessary.
8765
f561f026
AC
87662004-03-23 Andrew Cagney <cagney@redhat.com>
8767
8768 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8769 predicate, deprecate.
8770 * gdbarch.h, gdbarch.c: Re-generate.
8771 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8772 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8773 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8774 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8775 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8776 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8777 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8778 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8779 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8780 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8781 * blockframe.c (find_pc_partial_function): Update.
8782 * breakpoint.c (bpstat_what): Update.
8783 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8784 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8785 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8786 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8787 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8788 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8789 * i386-nto-tdep.c (i386nto_init_abi): Update.
8790 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8791 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8792 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8793 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8794 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8795 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8796 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8797 * infrun.c (pc_in_sigtramp): Update.
8798 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8799 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8800 * mips-tdep.c (mips_gdbarch_init): Update.
8801 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8802 * ppc-linux-tdep.c: Update comment.
8803 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8804 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8805 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8806 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8807 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8808 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8809 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8810 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8811 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8812 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 8813
8050c72f
AC
88142004-03-23 Andrew Cagney <cagney@redhat.com>
8815
d2259dd3
AC
8816 * tramp-frame.h, tramp-frame.h: New files.
8817 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8818 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8819
8050c72f
AC
8820 * Makefile.in: Update all dependencies.
8821
0db9b4b7
AC
88222004-03-23 Andrew Cagney <cagney@redhat.com>
8823
8824 * Makefile.in (trad_frame_h): Add $(frame_h).
8825 * trad-frame.h: Update copyright. Include "frame.h".
8826 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8827 (trad_frame_set_id, trad_frame_get_id): Declare.
8828 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8829 * trad-frame.c: Update copyright.
8830 (struct trad_frame_cache): Define.
8831 (trad_frame_cache_zalloc): New function.
8832 (trad_frame_set_id, trad_frame_get_id): New functions.
8833 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 8834
8e645ae7
AC
88352004-03-22 Andrew Cagney <cagney@redhat.com>
8836
8837 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8838 s390_pltstub_unwind_cache.
8839 (s390_stub_frame_unwind_cache): Rename
8840 s390_pltstub_frame_unwind_cache.
8841 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8842 (s390_stub_frame_prev_register): Rename
8843 s390_pltstub_frame_prev_register.
8844 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8845 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8846
8847 From Ulrich Weigand:
8848 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8849 pointer calls like PLT calls.
8850
34fcf120
DJ
88512004-03-22 Daniel Jacobowitz <drow@mvista.com>
8852
8853 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8854 PC rather than the partial function start address. Use the start
8855 address to sanity check the found PDR.
8856
5b917078
DJ
88572004-03-22 Daniel Jacobowitz <drow@mvista.com>
8858
8859 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8860 linux_handle_extended_wait.
8861
8adf9e78
AC
88622004-03-22 Andrew Cagney <cagney@redhat.com>
8863
c3122434
AC
8864 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8865 function.
8866
8adf9e78
AC
8867 * frame.h (generic_pop_current_frame): Delete declaration.
8868 (deprecate_pop_dummy_frame): Deprecate
8869 generic_pop_dummy_frame.
8870 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8871 (generic_pop_current_frame): Delete function.
8872 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8873 generic_pop_current_frame.
8874 * v850-tdep.c (v850_pop_frame): Update.
8875 * mcore-tdep.c (mcore_pop_frame): Update.
8876 * sh64-tdep.c (sh64_pop_frame): Update.
8877 * h8300-tdep.c (h8300_pop_frame): Update.
8878
90ba813f
AC
88792004-03-22 Andrew Cagney <cagney@redhat.com>
8880
8881 * frame.h (deprecated_pc_in_call_dummy): Rename
8882 generic_pc_in_call_dummy.
8883 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8884 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8885 generic_pc_in_call_dummy.
8886 (pc_in_dummy_frame): Make static.
8887 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8888 * gdbarch.h, gdbarch.c: Re-generate.
8889 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8890 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8891 (legacy_get_prev_frame): Ditto.
8892 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8893 comment.
8718a420 8894
ca4bb888
AC
88952004-03-21 Andrew Cagney <cagney@redhat.com>
8896
244675f9
AC
8897 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8898 declaration and out-of-date comment.
8899 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8900 Delete function.
8901 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8902 deprecated_pc_in_call_dummy.
8903
ca4bb888
AC
8904 * infrun.c (handle_inferior_event): For non legacy frames, use the
8905 frame ID and frame type to identify a signal trampoline. Update
8906 comments.
8907
1777c7b4
NW
89082004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8909
8910 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8911 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8912
82417da5
AC
89132004-03-21 Andrew Cagney <cagney@redhat.com>
8914
8915 * frame-unwind.h: Update copyright.
8916 (struct frame_data): Add opaque declaration.
8917 (frame_sniffer_ftype): Declare.
8918 (struct frame_unwind): Add "unwind_data" and "sniffer".
8919 (frame_unwind_register_unwinder): Declare.
8920 (frame_unwind_find_by_frame): Add parameter "this_cache".
8921 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8922 (legacy_get_prev_frame, legacy_get_prev_frame)
8923 (get_frame_type): Pass the prologue_cache to
8924 frame_unwind_find_by_frame.
8925 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8926 "unwinder".
8927 (frame_unwind_register_unwinder): New function.
8928 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8929
b2ba182e
PH
89302004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8931
8932 * bcache.c (print_percentage): Use floating point to avoid
8933 incorrect results when portion*100 overflows.
8934
81332287
KB
89352004-03-19 Kevin Buettner <kevinb@redhat.com>
8936
8937 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8938 (ppc_linux_init_extra_frame_info)
8939 (ppc_linux_frameless_function_invocation)
8940 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8941 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8942 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8943 (rs6000_frame_chain): Delete declarations.
8944 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8945 (ppc_linux_init_extra_frame_info)
8946 (ppc_linux_frameless_function_invocation)
8947 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8948 (ppc_linux_init_abi): Remove registration of above deleted functions.
8949 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8950 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8951 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8952 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8953 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8954 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8955 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8956 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8957 frame management for all OSABIs.
8958
61a65099
KB
89592004-03-19 Andrew Cagney <cagney@redhat.com>
8960
8961 Committed by Kevin Buettner <kevinb@redhat.com>.
8962
8963 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8964 Update copyright.
8965 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8966 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8967 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8968 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8969 unwinders. #ifdef legacy frame code.
8970 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8971 "frame-base.h".
8972 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8973 (struct rs6000_frame_cache, rs6000_frame_cache)
8974 (rs6000_frame_this_id, rs6000_frame_prev_register)
8975 (rs6000_frame_sniffer, rs6000_frame_unwind)
8976 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8977 (rs6000_frame_base): Implement a traditional frame unwinder.
8978 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8979 frame unwinder.
8980
88f7da05
KB
89812004-03-19 Kevin Buettner <kevinb@redhat.com>
8982
8983 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8984 breakpoint address for watchpoints or the catch eventpoints.
8985 Add new paramter ``bptype''. Adjust all callers.
8986
f826dce1
AC
89872004-03-19 Andrew Cagney <cagney@redhat.com>
8988
33cb8b0f
AC
8989 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8990
f826dce1
AC
8991 * PROBLEMS: Delete note that ARM does not use frame code, problem
8992 fixed.
8993
43b1ab88
AC
89942004-03-18 Andrew Cagney <cagney@redhat.com>
8995
292ab034
AC
8996 * stack.c (return_command): Delete code wrapped in #ifdef
8997 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8998
43b1ab88
AC
8999 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9000
dbfe4626
AC
90012004-03-18 Andrew Cagney <cagney@redhat.com>
9002
9003 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9004 DEPRECATED_IN_SIGTRAMP.
9005 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9006 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9007 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9008 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9009 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9010 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9011 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9012 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9013 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9014 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9015
0cad6aec
AC
90162004-03-18 Andrew Cagney <cagney@redhat.com>
9017
9018 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9019 (struct frame_base_table_entry): Define.
9020 (struct frame_base_table): Re-implement as a linked list.
9021 (frame_base_init): Re-implement.
9022 (frame_base_table): Delete function.
9023 (append_predicate): Delete function.
9024 (frame_base_append_sniffer): Update.
9025 (frame_base_set_default): Update.
9026 (frame_base_find_by_frame): Update.
9027 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9028 * Makefile.in (frame-base.o): Update dependencies.
9029
9982c2e7
AC
90302004-03-17 Andrew Cagney <cagney@redhat.com>
9031
9032 * frame.c (legacy_get_prev_frame): Pass correct frame to
9033 frame_unwind_find_by_frame.
9034
8dfe8985
DC
90352004-03-17 David Carlton <carlton@kealia.com>
9036
9037 * NEWS: Mention C++ nested types and namespaces
9038
ed47347a
MC
90392004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9040
9041 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9042 and "Regressions since gdb 5.3.". Add known regressions since
9043 gdb 6.0.
9044
90aeadfc
DC
90452004-03-16 David Carlton <carlton@kealia.com>
9046
9047 * dwarf2read.c (process_structure_scope): Process children even
9048 when we're a declaration.
9049
73912b9b
AC
90502004-03-16 Andrew Cagney <cagney@redhat.com>
9051
9052 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9053 * blockframe.c (find_pc_partial_function)
9054 (find_pc_sect_partial_function): Merge into a single
9055 find_pc_partial_function.
9056
283accbc
MK
90572004-03-16 Mark Kettenis <kettenis@gnu.org>
9058
9059 * i386bsd-nat.c: s/regno/regnum/g.
9060 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9061 FP0_REGNUM.
9062 (store_inferior_registers): Likewise.
9063
f5b1afdf
MK
90642004-03-16 Mark Kettenis <kettenis@gnu.org>
9065
9066 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9067 of i387_fill_fsave.
9068 (store_inferior_registers): Call i387_collect_fsave and
9069 i387_collect_fxsave instead of i387_fill_fsave and
9070 i387_fill_fxsave.
9071
41fe5eb3
AC
90722004-03-15 Andrew Cagney <cagney@redhat.com>
9073
9074 * Makefile.in (frame-unwind.o): Update dependencies.
9075 * frame-unwind.c: Include "gdb_obstack.h".
9076 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9077 parameter.
9078 (append_predicate): Delete function.
9079 (struct frame_unwind_table_entry): New structure.
9080 (struct frame_unwind_table): Replace "sniffer" with "head" and
9081 "tail".
9082 (frame_unwind_append_sniffer): Update.
9083 (frame_unwind_find_by_frame): Update.
9084 (_initialize_frame_unwind): Registe frame_unwind_init using
9085 gdbarch_data_register_pre_init.
9086
3f63813d
MK
90872004-03-15 Mark Kettenis <kettenis@gnu.org>
9088
9089 * i386bsd-nat.c: Update copyright year.
9090 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9091 define unconditionally.
9092
3248c325 90932004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
9094
9095 * i387-tdep.h (i387_collect_fsave): New prototype.
9096 * i387-tdep.c (i387_collect_fsave): New function containing most
9097 of the code from i387_fill_fsave.
3248c325 9098 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 9099
871fbe6a
MK
91002004-03-15 Mark Kettenis <kettenis@gnu.org>
9101
9102 * i386-linux-tdep.c: Update copyright year.
9103 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9104 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9105 svr4_ilp32_link_map_offsets instead of
9106 i386_linux_svr4_fetch_link_map_offsets.
9107
8176b9b8
DC
91082004-03-15 David Carlton <carlton@kealia.com>
9109
9110 Fix for PR c++/1553:
9111 * dwarf2read.c (read_structure_type): Determine type name by
9112 calling determine_class_name.
9113 (determine_class_name): New.
9114 (determine_prefix): Look at TYPE_TAG_NAME and call
9115 determine_class_name when appropriate.
9116 (determine_prefix_aux, class_name): Delete.
9d58e29d 9117 (read_namespace): Set die->type.
8176b9b8 9118
fe8bf7d7
KB
91192004-03-15 Kevin Buettner <kevinb@redhat.com>
9120
9121 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9122 unused macro definition. The definition in target.h (or perhaps
9123 elsewhere) takes precedence.
9124
ed6edd9b
AC
91252004-03-15 Andrew Cagney <cagney@redhat.com>
9126
f9be684a
AC
9127 * ppc-tdep.h: Update copyright.
9128 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9129 function signatures to match "regsets.h".
9130 * ppc-linux-tdep.c: Include "regset.h".
9131 (ELF_GREGSET_SIZE): Delete.
9132 (right_supply_register): New function.
9133 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9134 using right_supply_register.
9135 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9136 functions.
9137 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9138 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9139 (_initialize_ppc_linux_tdep): Do not register
9140 ppc_linux_regset_core_fns.
9141 (ppc_linux_regset_from_core_section): Replace
9142 fetch_core_registers.
9143 (ppc_linux_regset_core_fns): Delete.
9144 * ppc-linux-nat.c: (right_fill_reg): New function.
9145 (supply_gregset): Update call to ppc_linux_supply_gregset.
9146 (fill_gregset): Clear the register set, use right_fill_reg.
9147 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9148 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9149
ed6edd9b
AC
9150 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9151 unsigned.
9152
030f20e1
AC
91532004-03-15 Andrew Cagney <cagney@redhat.com>
9154
9155 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9156 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9157 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9158 and register_gdbarch_data.
9159 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9160 (struct gdbarch_data): Replace "init" by "pre_init" and
9161 "post_init".
9162 * gdbarch.h, gdbarch.c: Re-generate.
9163 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9164 with"obstack", use OBSTACK_ZALLOC.
9165 (dwarf2_frame_ops): Delete.
9166 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9167 (dwarf2_frame_init_reg): Use gdbarch_data.
9168 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 9169 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
9170 (_initialize_svr4_solib): Update.
9171 * user-regs.c (_initialize_user_regs): Update.
9172 * reggroups.c (_initialize_reggroup): Update.
9173 * regcache.c (_initialize_regcache): Update.
9174 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9175 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9176 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9177 * frame-unwind.c (_initialize_frame_unwind): Update.
9178 * frame-base.c (_initialize_frame_base): Update.
9179 * user-regs.c (user_reg_add): Update.
9180 * reggroups.c (reggroup_add): Update.
9181 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9182 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9183 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9184 * frame-base.c (frame_base_table): Update.
9185 * remote.c (_initialize_remote): Update.
9186 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 9187
3111a3fc
AC
91882004-03-15 Andrew Cagney <cagney@redhat.com>
9189
9190 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9191
5ecb7103
KB
91922004-03-15 Kevin Buettner <kevinb@redhat.com>
9193
9194 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9195 * frv-linux-tdep.c: New file.
9196 * frv-tdep.c (struct gdbarch_tdep): Add new field
9197 ``sigcontext_reg_addr''.
9198 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9199 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9200 (frv_sigramp_frame_sniffer): New functions.
9201 (frv_sigtramp_frame_unwind): New static global.
9202 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9203 sniffers.
9204 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9205 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9206
1ccda5e9
KB
92072004-03-15 Kevin Buettner <kevinb@redhat.com>
9208
9209 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9210 but not via a call to error(), when unable to read memory.
9211
b375a0a5
KB
92122004-03-15 Kevin Buettner <kevinb@redhat.com>
9213
9214 * frv-tdep.c (frv_call_dummy_words): Delete.
9215 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9216
4fdf6121
AC
92172004-03-15 Andrew Cagney <cagney@redhat.com>
9218
9219 * infrun.c (handle_step_into_function, step_over_function): Only
9220 update and use STEP_FRAME_ID when the system is using legacy
9221 frames. Update comments.
9222
34021503
MK
92232004-03-14 Mark Kettenis <kettenis@gnu.org>
9224
187e21d1
MK
9225 * amd64-linux-tdep.h: Remove file.
9226 * amd64-linux-tdep.c: Don't include "inferior.h" and
9227 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9228 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9229 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9230 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9231 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9232 macros.
9233 (user_to_gdb_regmap): Remove variable.
9234 (amd64_linux_gregset_reg_offset): New variable.
9235 (amd64_core_fns): Remove variable.
9236 (fetch_core_registers): Remove function.
9237 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9238 functions.
9239 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9240 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9241 * Makefile.in (amd64_linux_tdep_h): Remove.
9242 (amd64-linux-nat.o): Update dependencies.
9243 (amd64-linux-tdep.o): Update dependencies.
9244
99679982
MK
9245 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9246 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9247 functions.
9248 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9249
34021503
MK
9250 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9251 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9252
134d01f1
DJ
92532004-03-14 Daniel Jacobowitz <drow@mvista.com>
9254
9255 * dwarf2read.c (read_structure_type): Rename from
8718a420 9256 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
9257 Return immediately if die->type is set. Call read_type_die before
9258 dwarf2_add_member_fn.
9259 (process_structure_scope): New function.
9260 (read_enumeration_type, process_enumeration_scope): New functions,
9261 broken out from read_enumeration. Don't create the enumeration
9262 type if it has already been created.
9263 (read_enumeration): Removed.
9264 (process_die): Call read_structure_type, process_structure_scope,
9265 read_enumeration_type, and process_enumeration_scope. Just call
9266 new_symbol for base and subrange types. Add a comment about other
9267 type dies.
9268 (read_type_die): Call read_enumeration_type.
9269 (add_partial_structure, new_symbol): Update comments.
9270
65760afb
SC
92712004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9272
9273 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9274
10f59415
SC
92752004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9276
9277 * tui/tui-win.h (tui_get_cmd_list): Declare.
9278 * tui/tui-win.c (tui_command): New function.
9279 (tui_get_cmd_list): New function.
9280 (_initialize_tui_win): Moved initialization of tui command in
9281 tui_get_cmd_list.
9282
9283 * tui/tui-data.c (init_content_element): Setup new data members.
9284 (init_win_info): Likewise.
9285 (free_content_elements): Free it.
9286 * tui/tui-data.h (struct tui_data_element): Store the register
9287 content to print.
9288 (struct tui_data_info): Keep the current register group.
9289
9290 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9291
9292 * tui/tui-regs.h (tui_show_registers): Update prototype.
9293 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9294 (tui_resize_all): No need to calculate anything for register window.
9295 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9296 (tui_set_register_element, tui_set_general_regs_content): Remove.
9297 (tui_set_special_regs_content): Remove.
9298 (tui_set_general_and_special_regs_content): Remove.
9299 (tui_set_float_regs_content): Remove.
9300 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9301 (tui_set_regs_content): Remove.
9302 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9303 (tui_v_show_registers_command_support): Remove.
9304 (tui_show_registers): Use a reggroup to specify the registers to show.
9305 (tui_show_register_group): New function.
9306 (tui_display_registers_from): Compute the layout of register window
9307 and refresh with new API; be sure to delete old register windows.
9308 (tui_check_register_values): Update to use tui_get_register and
9309 tui_display_data.
9310 (tui_display_register): Just refresh the register window part.
9311 (tui_register_format): Format registers and save in tui_data_element.
9312 (tui_get_register): New to combine tui_reg_value_has_changed and
9313 tui_get_register_raw_value; fix to use the new gdb API.
9314 (tui_show_float_command): Renamed tui_reg_float_command.
9315 (tui_show_general_command): Renamed tui_reg_general_command.
9316 (tui_show_special_command): Renamed tui_reg_system_command.
9317 (_initialize_tui_regs): Remove unused commands.
9318
c3364ea4
MK
93192004-03-13 Mark Kettenis <kettenis@gnu.org>
9320
27d1e716
MK
9321 * NEWS (New native configurations): Mention OpenBSD/amd64.
9322
c3364ea4
MK
9323 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9324 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9325 Remove defines.
9326 * config/i386/nm-fbsd64.h: Likewise.
9327 * config/i386/nm-obsd.h: Likewise.
9328 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9329 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9330
b2d6d697
KB
93312004-03-12 Kevin Buettner <kevinb@redhat.com>
9332
9333 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
9334 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9335 New constants.
9336
76e43199
KB
9337 From Richard Sandiford <rsandifo@redhat.com>:
9338 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9339
34ce532e
KB
93402004-03-12 Kevin Buettner <kevinb@redhat.com>
9341
9342 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9343 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9344 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9345 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9346 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9347 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9348 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9349 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9350 definitions from frv-tdep.c to frv-tdep.h.
9351
c4d10515
KB
93522004-03-12 Kevin Buettner <kevinb@redhat.com>
9353
9354 Add shared library support for FR-V FDPIC ABI:
9355 * Makefile.in (solib-frv.o): Add dependencies.
9356 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9357 New functions.
9358 (frv_push_dummy_call): Add support for FDPIC ABI.
9359 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9360 for FDPIC ABI.
9361 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9362 (frv_fdpic_find_canonical_descriptor): Declare.
9363 * solib-frv.c: New file.
9364 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9365 * config/frv/tm-frv.h (solib.h): Include.
9366
ed1bd989
KB
93672004-03-12 Kevin Buettner <kevinb@redhat.com>
9368
9369 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9370 (frv-tdep.o): Update dependencies.
9371 * frv-tdep.h: New file.
9372 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9373 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9374 constants.
9375 (struct gdbarch_tdep): Add new member ``frv_abi''.
9376 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9377 functions.
9378 (new_variant): Set ``frv_abi'' field.
9379 (gdb_arch_init): Detect FDPIC executables.
9380
82b38f72
MK
93812004-03-12 Mark Kettenis <kettenis@gnu.org>
9382
9383 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9384 wrapper.
9385
db1ea9ba
AC
93862004-03-11 Andrew Cagney <cagney@redhat.com>
9387
9388 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9389
f8766ec1
KB
93902004-03-11 Kevin Buettner <kevinb@redhat.com>
9391
9392 * solist.h (master_so_list): New function.
9393 * solib.c (master_so_list): Likewise.
9394 * solib-svr4.c (enable_break): Iterate over so_list entries
9395 obtained from master list instead of entries obtained directly
9396 via svr4_current_sos().
9397
523f6a27
BE
93982004-03-10 Ben Elliston <bje@gnu.org>
9399
9400 * MAINTAINERS: Update my mail address.
9401
37814c18
KI
94022004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9403
9404 * remote-m32r-sdi.c: Support hardware watchpoint.
9405
8b9740d8
DJ
94062004-03-09 Daniel Jacobowitz <drow@mvista.com>
9407
9408 * user-regs.c: Update copyright years.
9409 (struct user_regs): Rename to gdb_user_regs.
9410 (append_user_reg, builtin_user_regs, user_regs_init)
9411 (user_reg_add, user_reg_map_name_to_regnum)
9412 (usernum_to_user_reg): Update.
9413
4bb7a0a7
DJ
94142004-03-09 Daniel Jacobowitz <drow@mvista.com>
9415
9416 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9417 (skip_children): New functions.
9418 (locate_pdi_sibling): Call skip_children.
9419
44e1a9eb
DJ
94202004-03-09 Daniel Jacobowitz <drow@mvista.com>
9421
9422 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9423 * gdbtypes.c (check_typedef): Update comments.
9424
f3dd6933
DJ
94252004-03-09 Daniel Jacobowitz <drow@mvista.com>
9426
9427 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9428 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9429 pointer. Update comment about comp_unit_head.
9430 (struct abbrev_info): Shorten two int flags.
9431 (dwarf_alloc_abbrev): Take a CU argument.
9432 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9433 each time through the loop. Update cleanup argument.
9434 (psymtab_to_symtab_1): Update cleanup call.
9435 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9436 abbrev_obstack.
9437 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9438 Just call obstack_free and clear the pointer.
9439
b40c7d58
DJ
94402004-03-09 Daniel Jacobowitz <drow@mvista.com>
9441
9442 * infrun.c (handle_inferior_event): Remove short-circuit code for
9443 events in a different thread.
9444
333dabeb
DJ
94452004-03-09 Daniel Jacobowitz <drow@mvista.com>
9446
9447 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9448 print the whole transfer.
9449 (initialize_targets): Update description of "set debug target".
9450
aa17d93e
DJ
94512004-03-09 Daniel Jacobowitz <drow@mvista.com>
9452
9453 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9454
0b71f08f
NW
94552004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9456
9457 * MAINTAINERS (write after approval): Add myself.
9458
3930f270
CV
94592004-03-08 Corinna Vinschen <vinschen@redhat.com>
9460
9461 * sh-tdep.c (sh_print_registers_info): Use for loop.
9462 Don't skip multiple registers when a float register is encountered.
9463
a2b4a96c
CV
94642004-03-08 Corinna Vinschen <vinschen@redhat.com>
9465
9466 Fix PR tdep/1291.
9467 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9468 to official SH documentation.
9469
f15a4bc0
AC
94702004-03-07 Andrew Cagney <cagney@redhat.com>
9471
9472 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9473 unused function.
9474
9498281f
DJ
94752004-03-07 Daniel Jacobowitz <drow@mvista.com>
9476
9477 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9478 (arm_get_next_pc): Handle BX and BLX.
9479
449e1137
AC
94802004-03-07 Andrew Cagney <cagney@redhat.com>
9481
eded0a31
AC
9482 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9483 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9484 HPPA_SP_REGNUM.
9485 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9486 (hppa_target_read_fp): Delete.
9487 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9488 register_virtual_size, max_register_raw_size,
9489 max_register_virtual_size, register_byte, register_size,
9490 target_read_fp, fp_regnum, and register_bytes. Set register_type
9491 instead of register_virtual_type.
9492 (hppa32_register_type, hppa64_register_type): Replace
9493 hppa32_register_virtual_type and hppa64_register_virtual_type.
9494 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9495 (HPPA_FP_REGNUM): Define.
9496
f5f907e2
AC
9497 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9498
69b4bbe4
AC
9499 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9500 (pa_do_registers_info): Delete.
9501 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 9502 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 9503 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 9504
78161e48
AC
9505 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9506 GDB_TARGET_IS_HPPA code.
9507 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 9508 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
9509 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9510 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
9511 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9512 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9513 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 9514 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
9515 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9516 (hppa_frameless_function_invocation, hppa64_store_return_value)
9517 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 9518 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 9519 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 9520 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
9521 (find_proc_framesize, deposit_21, restore_pc_queue)
9522 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 9523 (rp_saved, pc_in_linker_stub): Delete.
78161e48 9524
782eae8b
AC
9525 Unconditionally enable 64-bit frame and ABI code.
9526 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9527 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9528 push_dummy_frame, fix_call_dummy, push_arguments,
9529 call_dummy_location, extract_return_value, use_struct_convention,
9530 store_return_value, store_struct_return, saved_pc_after_call,
9531 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9532 frame_chain, frame_chain_valid, frameless_function_invocation,
9533 frame_saved_pc, and pop_frame.
78161e48 9534
449e1137
AC
9535 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9536 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9537 (hppa_gdbarch_init): Do not set PC_REGNUM.
9538
12507572
MK
95392004-03-06 Mark Kettenis <kettenis@gnu.org>
9540
9541 * config/alpha/tm-fbsd.h: Remove file.
9542 * config/alpha/fbsd.mt: Tweak comment.
9543 (TM_FILE): Set to tm-alpha.h.
9544
c107cc1b
AC
95452004-03-05 Andrew Cagney <cagney@redhat.com>
9546
9547 * infrun.c (step_over_function): When non-legacy code, and no
9548 step_frame_id, use the unwinder to get the caller's frame ID.
9549
f2e7c15d
MK
95502004-03-05 Mark Kettenis <kettenis@gnu.org>
9551
8b0c3633
MK
9552 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9553 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9554 bfd_arch_unknown. Adjust comment.
9555
f2e7c15d
MK
9556 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9557 * i386obsd-tdep.c: Correct spelling in comment.
9558 * i386nbsd-tdep.c: Correct spelling in comment.
9559 * sparc-tdep.c: Correct spelling in comments.
9560
1198ecbe
DC
95612004-03-05 David Carlton <carlton@kealia.com>
9562
9563 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9564 bug.
9565
9eb42ed1
MK
95662004-03-05 Mark Kettenis <kettenis@gnu.org>
9567
9568 * sparc-tdep.c: Fix typo in comment.
9569
52b5e991
JB
95702004-03-04 J. Brobecker <brobecker@gnat.com>
9571
9572 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9573
d8151005
DJ
95742004-03-04 Daniel Jacobowitz <drow@mvista.com>
9575
9576 * dwarf2read.c: Add comment describing memory lifetimes.
9577 (struct dwarf2_pinfo): Update comment.
9578 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9579 (read_enumeration, new_symbol): Don't use obsavestring.
9580
cbeae229
MK
95812004-03-04 Mark Kettenis <kettenis@gnu.org>
9582
722d18c2
MK
9583 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9584 instead of amd64_fill_fxsave.
9585 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9586 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9587
cbeae229
MK
9588 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9589 Reorganize code a bit.
9590
b4206d25
OF
95912004-03-04 Orjan Friberg <orjanf@axis.com>
9592
9593 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
9594 when the frame pointer is pushed. Don't set the frame pointer's
9595 address on the stack unless it's actually located there.
b4206d25
OF
9596 Set the SRP's address on the stack correctly when the PC is still in
9597 the prologue.
9598 (cris_return_value): New function.
9599 (cris_gdbarch_init): Clear deprecated store_return_value,
9600 extract_return_value.
9601
49b0b195
JB
96022004-03-02 Jim Blandy <jimb@redhat.com>
9603
9604 * stabsread.c (reg_value_complaint): The maximum register number
9605 is one less than the number of registers.
9606
e9ff708b
AC
96072004-03-02 Andrew Cagney <cagney@redhat.com>
9608
9609 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9610 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9611 trailing comma and redundant assignment of I386_ST0_REGNUM.
9612 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9613 32-bit segment registers.
9614
d4715e41
AC
96152004-03-01 Andrew Cagney <cagney@redhat.com>
9616
9617 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9618 use frame_relative_level and get_next_frame.
9619
3ce2bf18
AC
96202004-02-29 Andrew Cagney <cagney@redhat.com>
9621
9622 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9623 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9624 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9625 Delete macro.
9626
2da6aac3
DJ
96272004-02-29 Daniel Jacobowitz <drow@mvista.com>
9628
9629 * inflow.c (terminal_inferior): Don't give up the terminal if we
9630 previously couldn't get the inferior's terminal state.
9631
6ba34a8d
DJ
96322004-02-29 Daniel Jacobowitz <drow@mvista.com>
9633
9634 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9635 PC_REGNUM.
9636
faae5abe
AC
96372004-02-28 Andrew Cagney <cagney@redhat.com>
9638
9639 * NEWS: Refer to GDB 6.1.
9640 * README: Refer to GDB 6.1.
9641 * PROBLEMS: Refer to GDB 6.1.
9642
2227a3c5
DJ
96432004-02-28 Daniel Jacobowitz <drow@mvista.com>
9644
9645 * thread-db.c (disable_thread_signals): Remove unused function.
9646
80571bff
MK
96472004-02-28 Mark Kettenis <kettenis@gnu.org>
9648
041bd74b
MK
9649 * amd64-nat.c: Include "gdb_string.h".
9650 (amd64_collect_native_gregset): Zero-extend the 32-bit
9651 general-purpose registers and %eip.
9652
3c017e40
MK
9653 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9654 * amd64-tdep.c (amd64_collect_fxsave): New function.
9655 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9656
80571bff
MK
9657 * i387-tdep.h: Update copyright year.
9658 (i387_collect_fxsave): New prototype.
9659 * i387-tdep.c: Update copyright year.
9660 (i387_collect_fxsave): New function containing most of the code
9661 from i387_fill_fxsave.
9662 (i387_fill_fxsave): Call i387_collect_fxsave.
9663
50d71875
AC
96642004-02-28 Andrew Cagney <cagney@redhat.com>
9665
9666 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9667 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9668
4a28816e
MK
96692004-02-28 Mark Kettenis <kettenis@gnu.org>
9670
9671 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9672
dbda9972
AC
96732004-02-28 Andrew Cagney <cagney@redhat.com>
9674
9675 * utils.c: Use "", instead of <>, to include readline.
9676 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9677 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9678 * source.c, solib.c, exec.c, event-top.c: Ditto.
9679 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9680 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9681 * Makefile.in: Update all dependencies.
9682 (readline_tilde_h, readline_history_h): Define.
9683 (readline_headers): Delete.
9684
83277a99
MK
96852004-02-28 Mark Kettenis <kettenis@gnu.org>
9686
91ae4303
MK
9687 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9688 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9689 "config/i386/tm-lx64.h".
9690
83277a99
MK
9691 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9692 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9693 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9694
6e1d7d6c
AC
96952004-02-28 Andrew Cagney <cagney@redhat.com>
9696
ecc9ac84
AC
9697 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9698
6e1d7d6c
AC
9699 * breakpoint.c (_initialize_breakpoint): Use
9700 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9701 Add help to show command.
9702
9671aeef
MK
97032004-02-28 Mark Kettenis <kettenis@gnu.org>
9704
7fa2737c
MK
9705 * i386-nat.c: Reformat to be closer to coding standards.
9706 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9707 `retval'. Make variables `align' and `size' local to while-loop.
9708 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9709 (_initialize_i386_nat): New prototype.
9710
9671aeef
MK
9711 * tui/tui.c: Include <readline/readline.h> instead of
9712 "readline/readline.h". Include it after <term.h> and
9713 "gdb_curses.h".
9714
fca7aa43
AC
97152004-02-27 Andrew Cagney <cagney@redhat.com>
9716
412275d5
AC
9717 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9718 the new frame unwind code.
9719 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9720 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9721 PCOQ_HEAD_REGNUM.
9722
fca7aa43
AC
9723 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9724 "return_value" and "push_dummy_call".
9725 (hppa32_use_struct_convention): Delete unused function.
9726 (hppa32_store_return_value): Delete unused function.
9727 (hppa32_extract_return_value): Delete unused function.
9728 (hppa32_stack_align): Delete function.
9729
e6a8a7d2
EZ
97302004-02-27 Eli Zaretskii <eliz@elta.co.il>
9731
9732 * coffread.c (enter_linenos): Don't let rawptr reference memory
9733 outside linetab[]'s limits.
9734
1797a8f6
AC
97352004-02-27 Andrew Cagney <cagney@redhat.com>
9736
9737 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9738 inferior stack space - the stack needs to grow upwards.
9739 (hppa32_frame_align): New function.
9740 (hppa64_frame_align): Replace hppa_frame_align.
9741 (hppa_gdbarch_init): Update.
9742
2e4b5889
OF
97432004-02-26 Orjan Friberg <orjanf@axis.com>
9744
9745 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9746 (dwarf2-frame.h): Include.
9747 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9748 Remove static variables related to ABI setting.
9749 (struct gdbarch_tdep): Remove cris_abi member.
9750 (struct frame_extra_info): Remove.
9751 (cris_unwind_cache, stack_item): New structs.
9752 (cris_frame_unwind, cris_frame_base): New variables.
9753 (push_stack_item, pop_stack_item)
9754 (cris_frame_unwind_cache, cris_frame_this_id)
9755 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9756 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9757 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9758 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9759 (cris_reg_struct_has_addr): New functions.
9760 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 9761 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
9762 (cris_store_struct_return, cris_frameless_function_invocation)
9763 (cris_pop_frame, cris_skip_prologue_main)
9764 (cris_abi_original_store_return_value)
9765 (cris_abi_v2_store_return_value)
9766 (cris_abi_original_extract_return_value)
9767 (cris_abi_v2_extract_return_value)
9768 (cris_abi_original_reg_struct_has_addr)
9769 (cris_abi_v2_reg_struct_has_addr)
9770 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9771 (cris_push_return_address, cris_abi_update): Remove.
9772 (_initialize_cris_tdep): Remove ABI command.
9773 (cris_dump_tdep): Ditto.
8718a420 9774 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
9775 Set store_return_value, extract_return_value, push_dummy_code,
9776 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9777 frame_unwind_append_sniffer, frame_base_set_default.
9778 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9779 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9780 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 9781 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
9782 init_extra_frame_info, frameless_function_invocation, frame_chain,
9783 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9784 dummy_write_sp.
8718a420 9785
6b9acc27
JJ
97862004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9787
9788 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9789 * valprint.c (print_hex_chars): Change from static to external.
9790 (print_char_chars): New function.
9791 * printcmd.c (print_scalar_formatted): For integer and enum types
9792 that are longer than LONGEST, perform processing via appropriate
9793 print_*_chars routines.
9794
a431654a
AC
97952004-02-26 Andrew Cagney <cagney@redhat.com>
9796
9797 * Makefile.in: Update dependencies.
9798 Changes from Ulrich Weigand,
9799 * s390-tdep.c: Include "dwarf2-frame.h".
9800 (s390_dwarf2_frame_init_reg): New function.
9801 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9802 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9803
fa8d40ab
JJ
98042004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9805
9806 * breakpoint.c (pending_break_support): New setting variable.
9807 (break_command_1): Account for pending_break_support setting
9808 when creating pending breakpoints.
9809 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9810 (_initialize_breakpoint): Add "set breakpoint pending" and
9811 "show breakpoint pending" commands.
9812
0dcd613f
AC
98132004-02-26 Andrew Cagney <cagney@redhat.com>
9814
9815 Fix PR i18n/1570.
9816 * charset.c (backslashable, backslashed, represented): Remove 'e'
9817 from list of escaped characters, not part of ISO-C.
9818
479272a3
JB
98192004-02-25 J. Brobecker <brobecker@gnat.com>
9820
9821 From Peter Schauer <schauer@pdf.de>:
9822 * tui/tui.c: Move system header includes after local includes.
9823 Fixes a build failure on solaris systems.
9824
7613d933
JB
98252004-02-25 J. Brobecker <brobecker@gnat.com>
9826
9827 * configure.in: Refine the previous change.
9828 * configure: Regenerate.
9829
9c1488cb
MK
98302004-02-25 Mark Kettenis <kettenis@gnu.org>
9831
9832 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9833 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9834 "amd64-tdep.h" instead of "x86-64-tdep.h".
9835 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9836 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9837 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9838 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9839 and "x86-64-tdep.c".
9840 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9841 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9842 and "x86-64-tdep.c".
9843 * amd64bsd-nat.c: Update copyright year.
9844 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9845 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9846 "x86-64-tdep.h".
9847 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9848 "x86-64-tdep.h".
9849 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9850 "x86-64-tdep.h".
9851 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9852 "x86-64-tdep.h".
9853 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9854 "x86-64-tdep.h".
9855 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9856 "x86-64-tdep.h".
8718a420 9857 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
9858 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9859 * Makefile.in (amd64_linux_tdep_h): Renamed from
9860 x86_64_linux_tdep_h.
9861 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9862 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9863 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9864 (amd64obsd-tdep.o): Update dependencies.
9865 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9866 dependencies.
9867 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9868 dependencies.
9869 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9870 amd64-linux-nat.c amd64-linux-tdep.c.
9871 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9872 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9873 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9874 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9875 amd64-tdep.o and amd64-linux-tdep.o.
9876 (TM_FILE): Set to tm-linux64.h.
9877 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9878 (NAT_FILE): Set to nm-linux64.h.
9879 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9880 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9881 amd64-tdep.o.
9882 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9883 amd64-tdep.o.
9884 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9885 amd64-tdep.o.
9886
4b8dad4a
RM
98872004-02-25 Roland McGrath <roland@redhat.com>
9888
9889 * remote.c (remote_protocol_qPart_auxv): New variable.
9890 (init_all_packet_configs): Initialize it.
9891 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9892 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9893 (show_remote_cmd): Call it.
9894 (_initialize_remote): Initialize commands.
9895 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9896 service TARGET_OBJECT_AUXV requests.
9897
66745969
JB
98982004-02-25 J. Brobecker <brobecker@gnat.com>
9899
9900 * configure.in: Make sure that the wborder function is available.
9901 Otherwise, search for it in the cur_colr library.
9902 * configure: Regenerate.
9903
79508e1e
AC
99042004-02-25 Andrew Cagney <cagney@redhat.com>
9905
9906 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9907
571ee600
MK
99082004-02-25 Mark Kettenis <kettenis@gnu.org>
9909
9910 * config/i386/tm-x86-64linux.h: Tweak comments.
9911
2b1b322f 99122004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
9913
9914 * MAINTAINERS: Add self to write-after-approval list.
9915
4d2acc65
AC
99162004-02-25 Andrew Cagney <cagney@redhat.com>
9917
4b8dad4a 9918 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
9919 * cli/cli-script.c (execute_control_command): Unconditionally
9920 install a cleanup. Default "ret" to "invalid_control". Use
9921 "break" instead of "return" to escape from the switch.
9922
4cfcaf21
JB
99232004-02-24 J. Brobecker <brobecker@gnat.com>
9924
9925 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9926 with the lines macro defined in term.h on AiX.
9927 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9928 a collision with the label_width macro defined in term.h on AiX.
9929
54a5c8d8
KB
99302004-02-23 David Mosberger <davidm@hpl.hp.com>
9931
9932 Committed by Kevin Buettner <kevinb@redhat.com>.
9933
9934 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9935 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9936 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9937 instead of ia64_write_pc().
9938 * ia64-linux-tdep.c (regcache.h): Include.
9939 (ia64_linux_write_pc): New function.
4b8dad4a 9940
8a1dac83
RM
99412004-02-23 Roland McGrath <roland@redhat.com>
9942
9943 * auxv.c (info_auxv_command): Fix typos in error messages.
9944
90f90721
MK
99452004-02-23 Mark Kettenis <kettenis@gnu.org>
9946
8a1dac83 9947 * x86-64-tdep.h: Tweak comment.
90f90721
MK
9948 (enum amd64_regnum): New.
9949 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9950 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9951 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9952 (X86_64_XMM1_REGNUM): Removed.
9953 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9954 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9955 prototypes for renamed functions.
9956 * x86-64-tdep.c: Fix typo.
9957 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9958 register numbers.
9959 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9960 Use constants from `enum amd64_regnum' for register numbers.
9961 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9962 (amd64_analyze_prologue, amd64_frame_cache,
9963 amd64_sigtramp_frame_cache): Use constants from `enum
9964 amd64_regnum' for register numbers.
9965 (amd64_supply_fpregset): Adjust for renamed functions.
9966 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9967 `enum amd64_regnum' for register numbers.
9968 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9969 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9970 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9971 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9972 (amd64_linux_fill_gregset): Adjust for renamed macros.
9973 (fetch_core_registers): Adjust for renamed functions.
9974 (amd64_linux_init_abi): Adjust for renamed functions.
9975 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9976 renamed functions.
9977 * amd64-nat.c: Adjust for renamed macros.
9978 * amd64bsd-nat.c (fetch_inferior_registers)
9979 (store_inferior_registers): Use constants from `enum amd64_regnum'
9980 for register numbers. Adjust for renamed variables.
9981 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9982 renamed variables.
9983 (_initialize_amd64fbsd_nat): Use constants from `enum
9984 amd64_regnum' for register numbers.
9985 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9986 `enum amd64_regnum' for register numbers.
9987 (amd64fbsd_init_abi): Adjust for renamed functions.
9988 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9989 `enum amd64_regnum' for register numbers.
9990 (amd64nbsd_init_abi): Adjust for renamed functions.
9991 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9992 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9993 `enum amd64_regnum' for register numbers.
9994 (amd64obsd_init_abi): Adjust for renamed functions.
9995 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9996
d5479188
JJ
99972004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9998
9999 * breakpoint.c (print_one_breakpoint): Do not output spaces
10000 after printing <PENDING> for a pending breakpoint.
10001
81cb7cc9
JJ
100022004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10003
10004 * printcmd.c (print_scalar_formatted): Initialize val_long
10005 to remove compiler warning message.
10006
cbdeadca
JJ
100072004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10008
10009 * defs.h (nquery, yquery): New prototypes.
10010 * breakpoint.c (break_command_1): Use new nquery interface.
10011 * utils.c (defaulted_query, nquery, yquery): New functions.
10012
da6bab63
AC
100132004-02-23 Andrew Cagney <cagney@redhat.com>
10014
2f690297
AC
10015 * hppa-tdep.c (hppa_frame_align): New function.
10016 (hppa32_push_dummy_call): New function.
10017 (hppa64_push_dummy_call): New function.
10018 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10019 disabled.
8a1dac83 10020
da6bab63
AC
10021 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10022 FIX_CALL_DUMMY when push_dummy_call is available.
10023 (call_function_by_hand, push_dummy_code): Ditto.
10024
abf9b42d
AC
100252004-02-22 Andrew Cagney <cagney@redhat.com>
10026
10027 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10028 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10029 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10030 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10031 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10032 call_dummy_location to ON_STACK.
10033
10fc94a4
MK
100342004-02-22 Mark Kettenis <kettenis@gnu.org>
10035
51433e4b
MK
10036 * x86-64-linux-tdep.c: Tweak comment.
10037 (amd64_linux_supply_gregset): Renamed from
10038 x86_64_linux_supply_gresget.
10039 (amd64_linux_fill_gregset): Renamed from
10040 x86_64_linux_fill_gregset.
10041 (fetch_core_registers): Adjust for renamed functions.
10042 (amd64_core_fns): Renamed from x86_64_core_fns.
10043 (amd64_linux_sigtramp_start): Renamed from
10044 x86_64_linux_sigtramp_start.
10045 (amd64_linux_pc_in_sigtramp): Renamed from
10046 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10047 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10048 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10049 (amd64_linux_sigcontext_addr): Renamed from
10050 x86_64_linux_sigcontext_addr.
10051 (amd64_linux_sc_reg_offset): Renamed from
10052 x86_64_linux_sc_reg_offset.
10053 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10054 Adjust for renamed functions and variables.
10055 (_initialize_amd64_linux_tdep): Renamed from
10056 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10057 variables.
10058 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10059 Adjust for renamed functions.
10060
430eaf2e
MK
10061 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10062 from x86_64_linux_gregset64_reg_offset.
10063 (amd64_linux_gregset32_reg_offset): Rename from
10064 x86_64_linux_gregset64_reg_offset.
10065 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10066 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10067 (amd64_linux_dr_set_control): Renamed from
10068 x86_64_linux_dr_set_control. Adjust for renamed functions.
10069 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10070 Adjust for renamed functions.
10071 (amd64_linux_dr_reset_addr): Renamed from
10072 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10073 (amd64_linux_dr_get_status): Renamed from
10074 x86_64_linux_dr_get_status. Adjust for renamed functions.
10075 (_initialize_amd64_linux_nat): Renamed from
10076 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10077 functions.
10078 * config/i386/nm-x86-64linux.h: Update copyright year.
10079 Adjust for renamed functions.
10080
10fc94a4
MK
10081 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10082 amd64fbsd_sigtramp_start.
10083 (amd64fbsd_sigtramp_end_addr): Renamed from
10084 amd64fbsd_sigtramp_end.
10085 (amd64fbsd_init_abi): Adjust for renamed variables.
10086 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10087 variables.
10088 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10089 amd64fbsd_sigtramp_start.
10090 (amd64fbsd_sigtramp_end_addr): Renamed from
10091 amd64fbsd_sigtramp_end.
10092
343af405
AC
100932004-02-22 Andrew Cagney <cagney@redhat.com>
10094
537987fc
AC
10095 * hppa-tdep.c (hppa32_return_value): New function.
10096 (hppa64_return_value): New function.
10097 (hppa_gdbarch_init): Set return_value; keep disabled.
10098
fad850b2
AC
10099 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10100 struct-return and inferior function call methods.
10101
26d08f08
AC
10102 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10103 "frame-base.h".
10104 (struct hppa_frame_cache): Define.
10105 (hppa_frame_cache, hppa_frame_this_id): New functions.
10106 (hppa_frame_prev_register): New function.
10107 (hppa_frame_unwind, hppa_frame_base): New variables.
10108 (hppa_frame_unwind_sniffer): New function.
10109 (hppa_frame_base_address, hppa_unwind_pc): New function.
10110 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10111 sniffer, and frame base sniffer; keep disabled.
10112 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10113 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10114
e7d7bd65
AC
10115 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10116 to predicates for "seriously old code".
10117
e963316f
AC
10118 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10119 runtime if(0).
10120
56132691
AC
10121 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10122 unsigned.
10123 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 10124
343af405
AC
10125 * config/pa/tm-hppa.h: Update copyright.
10126 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10127 (deprecated_init_frame_pc_default): Delete declaration.
10128 (hppa_frame_init_saved_regs): Delete declaration.
10129 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10130 * hppa-tdep.c: Include "arch-utils.h".
10131 (hppa_gdbarch_init): Set deprecated init_frame_pc
10132 and deprecated frame_init_saved_regs.
10133 (hppa_frame_init_saved_regs): Make static.
10134
f5859b4d
MK
101352004-02-22 Mark Kettenis <kettenis@gnu.org>
10136
86f6f8e7 10137 Remove old 386BSD support.
cf7c5c23 10138 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
10139 * configure.host: Remove i[34567]86-*-bsd*.
10140 * configure.tgt: Remove i[34567]86-*-bsd*.
10141 * i386b-nat.c: Removed.
10142 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
10143 (i386b-nat.o): Remove dependencies.
10144
86f6f8e7
MK
10145 * config/i386/i386bsd.mh: Removed.
10146 * config/i386/i386bsd.mt: Removed.
10147 * config/i386/nm-i386bsd.h: Removed.
10148 * config/i386/tm-i386bsd.h: Removed.
10149 * config/i386/xm-i386bsd.h: Removed.
10150
971218cd
MK
10151 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10152
7e654c37
MK
10153 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10154 (amd64fbsd_init_abi): Set link map offsets.
10155 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10156 (amd64nbsd_init_abi): Set link map offsets.
10157 * amd64obsd-tdep.c: Include "solib-svr4.h".
10158 (amd64obsd_init_abi): Set link map offsets.
10159 * i386fbsd-tdep.c: Include "solib-svr4.h".
10160 (i386fbsd_init_abi): Set link map offsets.
10161 * i386nbsd-tdep.c: Include "solib-svr4.h".
10162 (i386nbsdelf_init_abi): Set link map offsets.
10163 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10164 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10165 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10166 solib-legacy.o and core-aout.o. Reformat.
10167 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10168 solib-svr4.o, solib-legacy.o. Reformat.
10169 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10170 * config/i386/nbsdelf.mh: Reformat.
10171 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10172 solib-svr4.o, solib-legacy.o and corelow.o.
10173 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10174 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10175 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10176 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10177 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10178 (TM_FILE): Set to tm-fbsd.h.
10179 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10180 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10181 solib-svr4.o.
10182 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10183 solib-svr4.o.
10184 (TM_FILE): Set to nm-nbsd.h.
10185 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10186 Simplify shared library support. Don't include "elf/common.h".
10187 (SVR4_SHARED_LIBS): Don't define.
10188 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10189 "solib.h".
10190 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10191 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10192 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10193 Don't include "i386/tm-i386.h". Include "solib.h".
10194 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10195 Don't include "i386/tm-i386.h".
10196 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10197 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10198 Include "i386/xm-i386.h".
10199 (HOST_LONG_DOUBLE_FORMAT): Remove.
10200
5d93ae8c
MK
10201 Fix OpenBSD/i386 sigtramp recognition.
10202 * i386-tdep.h: Update copyright year.
10203 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10204 (i386bsd_sigtramp_end): New prototypes.
10205 (i386fbsd_sigtramp_start_addr): Renamed from
10206 i386fbsd_sigtramp_start.
10207 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10208 (i386obsd_sigtramp_start_addr): Renamed from
10209 i386obsd_sigtramp_start.
10210 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10211 * i386bsd-tdep.c: Update copyright year.
10212 (i386bsd_pc_in_sigtramp): Make public.
10213 * i386fbsd-nat.c: Update copyright year.
10214 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10215 * i386fbsd-tdep.c: Update copyright year.
10216 (i386fbsd_sigtramp_start_addr): Renamed from
10217 i386fbsd_sigtramp_start.
10218 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10219 (i386fbsdaout_init_abi): Adjust for renamed variables.
10220 * i386obsd-nat.c: Update copyright year.
10221 (_initialize_i386obsd_nat): Adjust for renamed variables.
10222 * i386obsd-tdep.c: Include "target.h".
10223 (i386obsd_page_size): New variable.
10224 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10225 (i386obsd_sigtramp_end): New functions.
10226 (i386obsd_sigtramp_start_addr): Renamed from
10227 i386obsd_sigtramp_start.
10228 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10229 (i386obsd_init_abi): Adjust for renamed variables. Set
10230 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10231 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10232
84d04465
MK
10233 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10234 trampoline change in OpenBSD kernel.
10235
b053aceb
MK
10236 * amd64-nat.c: Update copyright year.
10237 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10238 architecture from REGCACHE.
10239
f5859b4d
MK
10240 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10241 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10242
e4bbbda8
MK
102432004-02-21 Mark Kettenis <kettenis@gnu.org>
10244
ba361932
MK
10245 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10246 i[34567]86-*-openbsd3.[0-3].
10247 * config/i386/obsdaout.mh: New file.
10248
d3e48264
MK
10249 * config/i386/obsd.mh (MH_FLAGS): Remove.
10250
60a6eeb6
MK
10251 Fix PR build/1549.
10252 * i386obsd-tdep.c: Update copyright years. Include
10253 "solib-svr4.h".
10254 (i386obsd_init_abi): Don't set regset_from_core_section here.
10255 (i386obsd_aout_init_abi): New function. Set
10256 regset_from_core_section here.
10257 (i386obsd_elf_init_abi): New function.
10258 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10259 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10260 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10261 (TM_FILE): Set to tm-nbsd.h.
10262
10263 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10264 solib-sunos.o.
10265
e4bbbda8
MK
10266 * solib-svr4.h: Update copyright year.
10267 (svr4_ilp32_fetch_link_map_offsets)
10268 (svr4_lp64_fetch_link_map_offsets): New prototype.
10269 * solib-svr4.c: Update copyright year.
10270 (svr4_ilp32_fetch_link_map_offsets)
10271 (svr4_lp64_fetch_link_map_offsets): New function.
10272
f6fe98ef
DJ
102732004-02-20 Daniel Jacobowitz <drow@mvista.com>
10274
10275 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10276 to the partial symbol table.
10277
589ca796
JB
102782004-02-20 J. brobecker <brobecker@gnat.com>
10279
10280 * PROBLEMS: Add description of problem documented under gdb/1560.
10281
2031c21a
MK
102822004-02-20 Mark Kettenis <kettenis@gnu.org>
10283
30b344b1
MK
10284 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10285 comments.
10286 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10287 functions.
10288 (amd64obsd_init_abi): Reorder initializations. Use
10289 amd64obsd_r_reg_offset to initialize the general-purpose register
10290 set details. Set regset_from_core_section.
10291 (_initialize_amd64obsd_tdep): Rename from
10292 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10293 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10294 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10295
2031c21a
MK
10296 * NEWS (New native configurations): Mention OpenBSD/alpha.
10297 * configure.tgt: Add alpha*-*-openbsd*.
10298 * configure.host: Add alpha*-*-openbsd*.
10299 * alphanbsd-tdep.c: Update copyright year.
10300 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10301
42471775
AC
103022004-02-20 Andrew Cagney <cagney@redhat.com>
10303
10304 Fix PR tdep/1372.
10305 * configure.tgt: Delete target "none-*-*".
10306 * configure.host: Delete host "none-*-*".
10307 * config/none/none.mh: Delete file.
10308 * config/none/none.mt: Delete file.
10309 * config/none/xm-none.h: Delete file.
10310 * config/none/tm-none.h: Delete file.
10311 * config/none/nm-none.h: Delete file.
10312
960ccd7d
FF
103132004-02-19 Fred Fish <fnf@redhat.com>
10314
10315 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10316 cache->uses_fp prior to setting it.
10317
5f883edd
FF
103182004-02-19 Fred Fish <fnf@redhat.com>
10319
10320 Fix for PR breakpoint/1558.
10321 * sh-tdep.c (IS_JSR): New macro.
10322 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10323
f98c22d5
JB
103242004-02-19 Jim Blandy <jimb@redhat.com>
10325
10326 * findvar.c (value_from_register): Doc fix.
10327
95051d27
JJ
103282004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10329
10330 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10331 type being greater than sizeof of host's LONGEST. Always use
10332 unpack_long() unless format 'f' chosen.
10333
ccefbec3
EZ
103342004-02-19 Joel Brobecker <brobecker@gnat.com>
10335
10336 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 10337
ccefbec3
EZ
10338 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10339 contains a symbol wich is the best, non-exact match for the given
10340 pc. Update comments.
10341
103422004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10343
2ede629f
EZ
10344 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10345 macro, which was part of the now removed Mach 3 port.
10346 * utils.c (request_quit): Ditto.
10347
567ee972
MK
103482004-02-18 Mark Kettenis <kettenis@gnu.org>
10349
10350 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10351 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10352
50cca7bb
MK
103532004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10354
10355 Committed by Mark Kettenis <kettenis@gnu.org>.
10356
10357 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10358 Define.
10359
226361c4
AC
103602004-02-18 Andrew Cagney <cagney@redhat.com>
10361
10362 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10363 CONFIG_INSTALL and CONFIG_UNINSTALL.
10364 * configure: Re-generate.
10365 * interps.h (INTERP_TUI): Define.
10366 * Makefile.in: Update dependencies.
10367 (TUI): New macro.
10368 (tui-main.o): Specify dependencies.
10369 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10370 * tui/tui-main.c: New file.
10371
49cfa46f
MK
103722004-02-18 Mark Kettenis <kettenis@gnu.org>
10373
e2879ccb
MK
10374 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10375 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10376 dependencies.
10377 * configure.host: Add x86_64-*-openbsd*.
10378 * configure.tgt: Add x86_64-*-openbsd*.
10379 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10380
c43f4bec
MK
10381 * tui/tui.c: Don't include <malloc.h>.
10382
09ae75b6
MK
10383 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10384 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10385 amd64nbsd-tdep.c.
10386
49cfa46f 10387 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 10388 static. Remove extraneous whitespace.
49cfa46f
MK
10389 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10390 static.
10391
05957fdb
JB
103922004-02-17 Jim Blandy <jimb@redhat.com>
10393
10394 * findvar.c (value_from_register): Doc fix.
10395
d0f54f9d
JB
103962004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10397
10398 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 10399
8a1dac83 10400 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
10401 CORE_ADDR as type for selectors. Correct types for GNU run time
10402 message lookup function to use double indirection.
10403 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10404 * objc-lang.h (lookup_child_selector): Adapt prototype.
10405
9cbd5950
JB
10406 * s390-nat.c (SUBOFF): New macro.
10407 (supply_gregset, fill_gregset): Use it to handle debugging
10408 of 32-bit exectuables running under a 64-bit kernel.
10409 * s390-tdep.c: Include "solib-svr4.h".
10410 (s390_svr4_fetch_link_map_offset): New function.
10411 (s390x_svr_fetch_link_map_offset): Likewise.
10412 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10413 * Makefile.in (s390-tdep.o): Update dependencies.
10414
a8c99f38
JB
10415 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10416 "frame-unwind.h".
10417 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10418 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10419 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10420 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10421 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10422 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 10423 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
10424 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10425 (struct frame_extra_info): Remove.
10426 (s390_memset_extra_info): Remove.
f73b1eff
JB
10427 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10428 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10429 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
10430 (is_rse): Renamed to ...
10431 (is_rsy): ... this. Support long displacements.
10432 (is_rxe): Renamed to ...
10433 (is_rxy): ... this. Support long displacements.
10434 (compute_x_addr): Support long displacements.
10435 (struct s390_prologue_data): New data type.
10436 (s390_on_stack): Change API to use struct s390_prologue_data.
10437 (s390_store): Reimplement.
10438 (s390_load): New function.
10439 (s390_get_signal_frame_info): Remove.
10440 (s390_get_frame_info): Remove, replace by ...
10441 (s390_analyze_prolog): ... this new function.
10442 (s390_check_function_end): Remove.
10443 (s390_function_start): Remove.
10444 (s390_frameless_function_invokation): Remove.
10445 (s390_is_sigreturn): Remove.
10446 (s390_init_frame_pc_first): Remove.
10447 (s390_init_frame_extra_info): Remove.
10448 (s390_frame_init_saved_regs): Remove.
10449 (s390_frame_saved_pc_nofix): Remove.
10450 (s390_frame_saved_pc): Remove.
10451 (s390_frame_chain): Remove.
10452 (s390_fp_regnum, s390_read_fp): Remove.
10453 (s390_pop_frame_regular, s390_pop_frame): Remove.
10454 (s390_saved_pc_after_call): Remove.
10455 (s390_skip_prologue): Reimplement.
10456 (s390_in_function_epilogue_p): Support long displacements.
10457 (struct s390_unwind_cache): New data structure.
10458 (s390_frame_unwind_cache): New function.
10459 (s390_prologue_frame_unwind_cache): Likewise.
10460 (s390_backchain_frame_unwind_cache): Likewise.
10461 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10462 (s390_frame_unwind): Define.
10463 (s390_frame_sniffer): New function.
10464 (struct s390_pltstub_unwind_cache): New data structure.
10465 (s390_pltstub_frame_unwind_cache): New function.
10466 (s390_pltstub_frame_this_id): Likewise.
10467 (s390_pltstub_frame_prev_register): Likewise.
10468 (s390_pltstub_frame_unwind): Define.
10469 (s390_pltstub_frame_sniffer): New function.
10470 (struct s390_sigtramp_unwind_cache): New data structure.
10471 (s390_sigtramp_frame_unwind_cache): New function.
10472 (s390_sigtramp_frame_this_id): Likewise.
10473 (s390_sigtramp_frame_prev_register): Likewise.
10474 (s390_sigtramp_frame_unwind): Define.
10475 (s390_sigtramp_frame_sniffer): New function.
10476 (s390_frame_base_address, s390_local_base_address): New functions.
10477 (s390_frame_base): Define.
10478 (s390_unwind_pc, s390_unwind_sp): New function.
10479 (s390_push_dummy_call): Use new frame base location.
10480 (s390_unwind_dummy_id): Likewise.
10481 (s390_gdbarch_init): Remove calls to:
10482 set_gdbarch_frameless_function_invocation,
10483 set_gdbarch_deprecated_init_frame_pc,
10484 set_gdbarch_deprecated_frame_chain,
10485 set_gdbarch_deprecated_frame_init_saved_regs,
10486 set_gdbarch_deprecated_pop_frame,
10487 set_gdbarch_deprecated_init_extra_frame_info,
10488 set_gdbarch_deprecated_init_frame_pc_first,
10489 set_gdbarch_deprecated_target_read_fp,
10490 set_gdbarch_deprecated_frame_saved_pc,
10491 set_gdbarch_deprecated_saved_pc_after_call,
10492 set_gdbarch_deprecated_fp_regnum.
10493 Add calls to:
10494 set_gdbarch_in_solib_call_trampoline,
10495 frame_unwind_append_sniffer,
10496 frame_base_set_default,
10497 set_gdbarch_unwind_pc,
10498 set_gdbarch_unwind_sp.
10499 * Makefile.in (s390-tdep.o): Update dependencies.
10500
b0cf273e
JB
10501 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10502 (S390_STACK_FRAME_OVERHEAD): Remove.
10503 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10504 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10505 (s390_promote_integer_argument): Remove.
10506 (s390_cannot_extract_struct_value_address): Remove.
10507 (s390_use_struct_convention, s390_store_struct_return): Remove.
10508 (s390_extract_return_value, s390_store_return_value): Remove.
10509 (s390_return_value_convention, s390_return_value): New functions.
10510 (is_float_singleton): Handle typedefs.
8a1dac83 10511 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
10512 Remove, replace by ...
10513 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10514 s390_function_arg_integer): ... these new functions.
10515 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10516 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10517 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10518 Fill in tdep->abi.
10519 Remove calls to:
10520 set_gdbarch_deprecated_store_struct_return,
10521 set_gdbarch_deprecated_extract_return_value,
10522 set_gdbarch_deprecated_store_return_value,
10523 set_gdbarch_use_struct_convention,
10524 set_gdbarch_extract_struct_value_address,
10525 set_gdbarch_deprecated_pc_in_call_dummy,
10526 set_gdbarch_deprecated_push_arguments,
10527 set_gdbarch_deprecated_save_dummy_frame_tos,
10528 set_gdbarch_deprecated_push_return_address,
10529 set_gdbarch_deprecated_sizeof_call_dummy_words,
10530 set_gdbarch_deprecated_call_dummy_words,
10531 set_gdbarch_deprecated_dummy_write_sp.
10532 Add calls to:
10533 set_gdbarch_push_dummy_call,
10534 set_gdbarch_unwind_dummy_id,
10535 set_gdbarch_return_value.
8a1dac83 10536
e1457d83
JB
10537 * config/s390/nm-linux.h: Update comments.
10538 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10539 (STOPPED_BY_WATCHPOINT): Redefine.
10540 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10541 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10542 (s390_stopped_by_watchpoint): Likewise.
10543 (watch_area_cnt): Remove.
10544 * s390-nat.c: Update comments.
10545 (watch_area): Remove typedef.
10546 Global replace watch_area by struct watch_area.
10547 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 10548 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
10549 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10550 (s390_fix_watch_points): Remove pid argument,
10551 use s390_inferior_tid. Recompute area spanned by watchpoints.
10552 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10553 argument. Reimplement.
10554
d0f54f9d
JB
10555 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10556 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10557 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 10558 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
10559 core-regset.o.
10560 * config/s390/s390x.mt: Remove.
10561 * config/s390/tm-s390.h: Remove.
10562 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10563 (TARGET_ELF64): Remove.
10564 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10565 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10566 s390*-*-* case; always set gdb_target to s390.
10567 * regformats/reg-s390.dat: Remove control registers.
10568 * regformats/reg-s390x.dat: Likewise.
10569 * s390-tdep.h: New file.
8a1dac83 10570 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
10571 Include "inferior.h" and "s390-tdep.h".
10572 Remove private definition of offsetof.
10573 (s390_register_u_addr): Remove.
10574 (regmap_gregset, regmap_fpregset): Define.
10575 (supply_gregset, fill_gregset): Reimplement.
10576 (supply_fpregset, fill_fpregset): Likewise.
10577 (s390_inferior_tid): New function.
10578 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10579 (fetch_inferior_registers, store_inferior_registers): Likewise.
10580 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10581 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10582 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10583 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10584 (struct gdbarch_tdep): Define.
10585 (struct s390_register_info): Define.
10586 (s390_register_info): New variable.
10587 (s390_register_name): Reimplement.
10588 (s390_register_type): New function.
10589 (s390_register_raw_size, s390x_register_raw_size): Remove.
10590 (s390_cannot_fetch_register): Remove.
10591 (s390_register_byte): Remove.
10592 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10593 (s390_dwarf_regmap): New variable.
10594 (s390_dwarf_reg_to_regnum): New function.
10595 (s390_stab_reg_to_regnum): Remove.
10596 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10597 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10598 (s390_convert_register_p): Likewise.
10599 (s390_register_to_value, s390_value_to_register): Likewise.
10600 (s390_register_reggroup_p): Likewise.
10601 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10602 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10603 (s390_supply_regset, s390_regset_from_core_section): New functions.
10604 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10605 (S390_FPR_SIZE): Likewise.
10606 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10607 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10608 (S390_NUM_GPRS): Move here from tm-s390.h.
10609 (S390_NUM_FPRS): Likewise.
10610 (s390_in_function_epilogue_p): New function.
10611 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10612 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10613 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10614 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10615 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10616 Remove calls to:
10617 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
10618 set_gdbarch_deprecated_max_register_virtual_size,
10619 set_gdbarch_deprecated_register_byte,
d0f54f9d 10620 set_gdbarch_cannot_fetch_register,
8a1dac83 10621 set_gdbarch_cannot_store_register,
d0f54f9d
JB
10622 set_gdbarch_deprecated_register_size,
10623 set_gdbarch_deprecated_register_raw_size,
10624 set_gdbarch_deprecated_register_virtual_size,
10625 set_gdbarch_deprecated_register_virtual_type,
10626 set_gdbarch_deprecated_register_bytes.
10627 Add calls to:
10628 set_gdbarch_num_pseudo_regs,
10629 set_gdbarch_register_type,
10630 set_gdbarch_convert_register_p,
10631 set_gdbarch_register_to_value,
10632 set_gdbarch_value_to_register,
10633 set_gdbarch_register_reggroup_p,
10634 set_gdbarch_regset_from_core_section,
10635 set_gdbarch_pseudo_register_read,
10636 set_gdbarch_pseudo_register_write,
10637 set_gdbarch_in_function_epilogue_p.
10638 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10639 (s390_tdep_h): New variable.
10640
8cfe231d
JB
106412004-02-17 Jim Blandy <jimb@redhat.com>
10642
4589a601
JB
10643 * findvar.c (value_from_register): If the type has no length, just
10644 return an acceptable value --- don't report an internal error.
10645
8cfe231d
JB
10646 * stabsread.c (read_type): If we find any type numbers that are
10647 forward references, complain if the references aren't resolved by
10648 the time we're finished reading.
10649 (cleanup_undefined_types): Make error message more appropriate for
10650 a complaint.
10651
5bf0017e
EZ
106522004-02-17 Elena Zannoni <ezannoni@redhat.com>
10653
9d62932d
EZ
10654 * Makefile.in (defs_h): Remove dependency on progress_h.
10655 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10656 progress.h.
10657 * main.c (captured_main): Delete use of START_PROGRESS and
10658 END_PROGRESS.
10659
106602004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10661
5bf0017e
EZ
10662 * objfiles.c (terminate_minimal_symbol_table): Add back
10663 initialization of MSYMBOL_TYPE.
10664
9fc9f5e2
AC
106652004-02-17 David Mosberger <davidm@hpl.hp.com>
10666
10667 Committed by Andrew Cagney.
10668 * Makefile.in (ia64_tdep_h): New macro.
10669 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10670 (ia64-tdep.o): Likewise.
10671 * ia64-tdep.h: New file.
10672 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10673 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10674 (ia64_aix_sigcontext_register_address): Likewise.
10675 (ia64_linux_getunwind_table): Delete declaration.
10676 * ia64-linux-tdep.c: Likewise.
10677
76cd2bd9
CV
106782004-02-17 Corinna Vinschen <vinschen@redhat.com>
10679
10680 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10681 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10682 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10683
634aa483
AC
106842004-02-17 Andrew Cagney <cagney@redhat.com>
10685
10686 * symtab.c (skip_prologue_using_sal): New function.
10687 * symtab.h (skip_prologue_using_sal): Declare.
10688 * frv-tdep.c: Include "symtab.h".
10689 (skip_prologue_using_sal): Delete function.
10690 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10691 * rs6000-tdep.c (refine_prologue_limit): Mention
10692 skip_prologue_using_sal.
10693 * ia64-tdep.c (refine_prologue_limit): Ditto.
10694 * Makefile.in: Update dependencies.
10695
106962004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 10697
39ce7b3f
AC
10698 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10699 START_INFERIOR_TRAPS_EXPECTED.
10700 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10701 START_INFERIOR_TRAPS_EXPECTED.
10702 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10703 Delete macro.
10704 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10705 macro, moved to "nm-osf.h". Update copyright.
10706 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10707 update copyright.
10708
19772a2c
AC
10709 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10710 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10711 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10712 frameless_look_for_prologue.
10713 * frame.h (legacy_frameless_look_for_prologue): Rename
10714 frameless_look_for_prologue.
10715 * gdbarch.h, gdbarch.c: Re-generate.
10716 * sh64-tdep.c (sh64_gdbarch_init): Update.
10717 * sh-tdep.c (sh_gdbarch_init): Update.
10718 * s390-tdep.c (s390_gdbarch_init): Update.
10719 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10720 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10721 * m68k-tdep.c (m68k_gdbarch_init): Update.
10722 (delta68_frame_args_address): Update.
10723 * m32r-tdep.c (m32r_gdbarch_init): Update.
10724 * hppa-tdep.c (hppa_gdbarch_init): Update.
10725 * h8300-tdep.c (h8300_gdbarch_init): Update.
10726 * frv-tdep.c (frv_gdbarch_init): Update.
10727 (frv_frameless_function_invocation): Update.
10728 * cris-tdep.c (cris_gdbarch_init): Update.
10729 (cris_frameless_function_invocation): Update.
10730 * avr-tdep.c (avr_gdbarch_init): Update.
10731 * arm-tdep.c (arm_gdbarch_init): Update.
10732 * stack.c (frame_info): Update, call predicate.
10733 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10734 * frame.c (legacy_get_prev_frame): Update, call predicate..
10735 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10736 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10737 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10738 invocation.
10739 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10740 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10741 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
10742
10743 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10744 function.
10745
7dcaac91
DJ
107462004-02-16 Daniel Jacobowitz <drow@mvista.com>
10747
10748 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10749 initializations.
10750
88289b6e
AC
107512004-02-16 Andrew Cagney <cagney@redhat.com>
10752
10753 * tui/tui-windata.c: Include "gdb_string.h".
10754 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10755 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10756 * Makefile.in: Update dependencies.
10757
9f976b41
DJ
107582004-02-16 Daniel Jacobowitz <drow@mvista.com>
10759
10760 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10761 * infrun.c: Include "gdb_assert.h".
10762 (singlestep_ptid, saved_singlestep_ptid)
10763 (stepping_past_singlestep_breakpoint): New variables.
10764 (resume): Set singlestep_ptid. Check for singlestep thread
10765 hop.
10766 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10767 (handle_inferior_event): Handle singlestep thread hop.
10768
c324d747
AC
107692004-02-16 Andrew Cagney <cagney@redhat.com>
10770
f090b9b1
AC
10771 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10772 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10773 (dwarf2_frame_init_reg): Ditto.
10774
fd33e6cb
AC
10775 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10776 suggested by Joshua Neuheisel
10777
c324d747
AC
10778 * configure.in: Always check for curses, including pdcurses.
10779 Warn, instead of error, when no curses are found. Enable TUI when
10780 curses is available.
10781 * configure: Re-generate.
10782
b66ba949
CV
107832004-02-16 Corinna Vinschen <vinschen@redhat.com>
10784
10785 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10786 sh_sh4_register_convert_to_virtual.
10787 (sh_register_convert_to_raw): Rename from
10788 sh_sh4_register_convert_to_raw.
10789 (sh_pseudo_register_read): Accomodate above name change.
10790 (sh_pseudo_register_write): Ditto.
10791
b58cbbf2
CV
107922004-02-16 Corinna Vinschen <vinschen@redhat.com>
10793
10794 * sh-tdep.c (sh_generic_register_name): Remove.
10795 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10796
5929a910
AC
107972004-02-15 Andrew Cagney <cagney@redhat.com>
10798
4566dfcf
AC
10799 * configure.in (build_warnings): Add -Wunused-function.
10800 * configure: Re-generate.
10801
db11ed55
AC
10802 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10803 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10804
46ac7a5d
AC
10805 * procfs.c (procfs_init_inferior): Assume that
10806 START_INFERIOR_TRAPS_EXPECTED is defined.
10807 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10808 * config/ns32k/tm-nbsd.h: Delete file,
10809 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10810
ba801595
AC
10811 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10812 * config/vax/tm-vax.h: Delete file.
10813
5929a910
AC
10814 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10815 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10816 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10817 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10818 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10819 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10820 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10821
8f22cb90
MK
108222004-02-15 Mark Kettenis <kettenis@gnu.org>
10823
10824 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10825 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10826 (struct dwarf2_frame_ops): New.
10827 (dwarf2_frame_default_init_reg): New function, based on
10828 dwarf2_frame_init_reg.
10829 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10830 (dwarf2_frame_init_reg): Call architecture-specific function.
10831 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10832 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10833 instead of dwarf2_frame_data.
10834 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10835 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10836
8132723e
AC
108372004-02-15 Andrew Cagney <cagney@redhat.com>
10838
046a4708
AC
10839 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10840 register_gdbarch_swap.
10841 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10842 * f-lang.c (_initialize_f_language): Update, use
10843 DEPRECATED_REGISTER_GDBARCH_SWAP.
10844 * remote.c (_initialize_remote): Ditto.
10845 * regcache.c (_initialize_regcache): Ditto.
10846 * parse.c (_initialize_parse): Ditto.
10847 * infrun.c (_initialize_infrun): Ditto.
10848 * mi/mi-main.c (_initialize_mi_main): Ditto.
10849 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 10850
549c1eea
AC
10851 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10852 poking .cacheable directly.
10853 * symfile.c (symfile_bfd_open): Ditto.
10854
0c0b39de
AC
10855 * Makefile.in: Update all dependencies.
10856
8132723e
AC
10857 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10858 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10859 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10860 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10861 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 10862
b9d26eb9
AC
108632004-02-14 Andrew Cagney <cagney@redhat.com>
10864
8e1f669a
AC
10865 * arch-utils.c (legacy_convert_register_p): Check
10866 DEPRECATED_REGISTER_CONVERTIBLE_P.
10867 * findvar.c (value_of_register): Ditto.
10868
cd0bfa36
AC
10869 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10870 * gdbarch.h, gdbarch.c: Re-generate.
10871 * arch-utils.c (deprecated_register_convertible_not): Delete.
10872 * arch-utils.h (deprecated_register_convertible_not): Delete.
10873 * mi/mi-main.c (get_register): Update. Update copyright.
10874 * infcmd.c (default_print_registers_info): Update.
10875
b9d26eb9
AC
10876 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10877 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10878 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 10879 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
10880 * frame.c (deprecated_get_next_frame_hack): Delete function.
10881 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10882 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10883 Update.
10884 * infcall.c (call_function_by_hand): Update.
10885
9ab9195f
EZ
108862004-02-14 Elena Zannoni <ezannoni@redhat.com>
10887
10888 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 10889 from here...
9ab9195f
EZ
10890 * objfiles.c (init_entry_point_info, entry_point_address):..to
10891 here.
10892 * symfile.h (init_entry_point_info, entry_point_address): Remove
10893 prototypes.
10894 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 10895 prototypes.
9ab9195f
EZ
10896 * cris-tdep.c: Remove include of symfile.h. Add include of
10897 objfiles.h.
10898 * infcall.c: Ditto.
10899 * mcore-tdep.c: Ditto.
10900 * mn10300-tdep.c: Ditto.
10901 * sh64-tdep.c: Ditto.
10902 * v850-tdep.c: Ditto.
10903 * arm-tdep.c: Remove include of symfile.h.
10904 * blockframe.c: Ditto.
10905 * coffread.c: Ditto.
10906 * dbxread.c: Ditto.
10907 * dwarf2read.c: Ditto.
10908 * dwarfread.c: Ditto.
8a1dac83 10909 * frv-tdep.c: Ditto.
9ab9195f
EZ
10910 * ia64-tdep.c: Ditto.
10911 * mdebugread.c: Ditto.
10912 * mipsread.c: Ditto.
8a1dac83 10913 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
10914 * s390-tdep.c: Ditto.
10915 * sh-tdep.c: Ditto.
8a1dac83 10916 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
10917 * gdbarch.sh: Remove include of symfile.h.
10918 * gdbarch.c: Regenerate.
10919 * solib-irix.c (enable_break): Use entry_point_address().
10920 Add comment about include file.
10921 * xcoffread.c: Add comment about include file.
8a1dac83
RM
10922 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10923 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10924 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10925 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
10926 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10927
c4c5b7ba
AC
109282004-02-13 Andrew Cagney <cagney@redhat.com>
10929
10930 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10931 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10932 copyright.
10933 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10934
3e7879de
FF
109352004-02-12 Fred Fish <fnf@redhat.com>
10936
10937 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10938 set_gdbarch_store_return_value.
10939
6a7760b6
AC
109402004-02-12 Andrew Cagney <cagney@redhat.com>
10941
10942 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10943 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10944 (interrupt_query): Ditto.
10945 (ofunc): Delete unused variable.
10946 * cris-tdep.c (cris_abi): Delete unused function.
10947 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10948 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10949 (cris_get_asr_quick_shift_steps): Ditto.
10950 (cris_skip_prologue_frameless_p): Ditto.
10951 * arm-tdep.c (arm_push_return_address): Delete unused function.
10952 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10953 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10954 * s390-tdep.c (s390_function_start): Delete unused function.
10955
31687c3c
AC
109562004-02-12 Andrew Cagney <cagney@redhat.com>
10957
10958 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10959 gdbarch.h, gdbarch.c: Re-generate.
10960 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10961 to generic_prologue_frameless_p.
10962 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10963 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10964
6de918a6
DJ
109652004-02-11 Daniel Jacobowitz <drow@mvista.com>
10966
10967 * mips-linux-tdep.c: Include "frame.h".
10968 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10969 (mips_linux_skip_resolver): New functions.
10970 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10971 and set_gdbarch_in_solib_call_trampoline.
10972 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10973 to after set_gdbarch_in_solib_return_trampoline. Only set the
10974 solib hooks to mips16 functions if the OS ABI is unknown.
10975 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10976 including "config/tm-linux.h".
10977 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10978 * Makefile.in (mips-linux-tdep.o): Update.
10979
87b3ede8
DC
109802004-02-11 David Carlton <carlton@kealia.com>
10981
10982 * linespec.c (decode_compound): Only look for a class symbol when
10983 considering all but the rightmost component.
10984
5979bc46
AC
109852004-02-11 Andrew Cagney <cagney@redhat.com>
10986
10987 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10988 abi code are are separatly grouped.
10989
5867a2fb
AC
109902004-02-11 Andrew Cagney <cagney@redhat.com>
10991
10992 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10993 * gdbarch.h, gdbarch.c: Re-generate.
10994 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10995 * v850-tdep.c (v850_gdbarch_init): Update.
10996 * sh64-tdep.c (sh64_gdbarch_init): Update.
10997 * sh-tdep.c (sh_gdbarch_init): Update.
10998 * s390-tdep.c (s390_gdbarch_init): Update.
10999 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11000 * mips-tdep.c (mips_gdbarch_init): Update.
11001 * mcore-tdep.c (mcore_gdbarch_init): Update.
11002 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11003 * m32r-tdep.c (m32r_gdbarch_init): Update.
11004 * ia64-tdep.c (ia64_gdbarch_init): Update.
11005 * hppa-tdep.c (hppa_gdbarch_init): Update.
11006 * h8300-tdep.c (h8300_gdbarch_init): Update.
11007 * frv-tdep.c (frv_gdbarch_init): Update.
11008 * d10v-tdep.c (d10v_gdbarch_init): Update.
11009 * cris-tdep.c (cris_gdbarch_init): Update.
11010 * avr-tdep.c (avr_gdbarch_init): Update.
11011 * arm-tdep.c (arm_gdbarch_init): Update.
11012 * alpha-tdep.c (alpha_gdbarch_init): Update.
11013
026a72f8
CV
110142004-02-11 Corinna Vinschen <vinschen@redhat.com>
11015
11016 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11017 comma.
11018 (sh_sh4al_dsp_register_name): Ditto.
11019
3903d437
AC
110202004-02-10 Andrew Cagney <cagney@redhat.com>
11021
11022 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11023 (mips_init_frame_pc_first): Delete function.
11024 (mips_frame_saved_pc): Delete function.
11025 (mips_frame_chain): Delete function.
11026 (mips_init_extra_frame_info): Delete function.
11027 (mips_xfer_register): Delete unused variable "reg".
11028 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11029 (mips_n32n64_return_value): Delete unused variable "reg".
11030 (mips_n32n64_return_value): Delete unused variable "pos".
11031 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11032 (mips_o32_return_value): Delete unused variable "pos".
11033 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11034 (mips_print_fp_register): Delete unused variable "namelen"
11035 (mips_print_fp_register): Delete unused variable "flt2"
11036 (get_frame_pointer): Delete function.
11037 (cached_proc_desc): Delete static variable.
11038 (mips_pop_frame): Delete function.
11039 (mips_find_saved_regs): Delete function.
11040 (mips_get_saved_register): Delete function.
11041 (mips_saved_pc_after_call): Delete function.
11042 (SIGFRAME_BASE): Delete macro.
11043 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11044 (SIGFRAME_PC_OFF): Delete macro.
11045 (SIGFRAME_REGSAVE_OFF): Delete macro.
11046 (mips_dump_tdep): Do not print deleted macro definitions.
11047
b9fb98bd
AC
110482004-02-10 Andrew Cagney <cagney@redhat.com>
11049
11050 * Makefile.in (SFILES): Remove explictly listed tui files.
11051 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11052
78ced177 110532004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 11054
78ced177
JJ
11055 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11056 to use paddr functions to format ia64 addresses and long values.
11057 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11058 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11059 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11060 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11061 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11062
6a83354a
AC
110632004-02-10 Andrew Cagney <cagney@redhat.com>
11064
11065 * defs.h: Do not include "tui.h".
11066 * gdb_curses.h: New file.
11067 * tui/tui-hooks.h: New file.
11068 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11069 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11070 (tui_initialize_io): Delete declaration.
11071 (tui_initialize_readline: Delete redundant declaration.
11072 (struct tui_point): Delete definition.
11073 * tui/tui-data.h (struct tui_point): Define.
11074 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11075 * utils.c: Include "tui/tui.h".
11076 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11077 * printcmd.c [TUI]: Include "tui/tui.h".
11078 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11079 * tui/tui-command.c: Include "gdb_curses.h".
11080 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11081 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11082 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11083 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11084 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11085 * Makefile.in: Update all dependencies.
11086 (tui_hooks_h, gdb_curses_h): Define.
11087 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11088
997470ef
EZ
110892004-02-10 Elena Zannoni <ezannoni@redhat.com>
11090
11091 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11092 auxf2. Add comments about some other rarely used fields.
11093
4ff2cc4d
AC
110942004-02-10 Andrew Cagney <cagney@redhat.com>
11095
11096 * Makefile.in (init.c): Fix script removing duplicates. Problem
11097 reported by Peter Schauer.
11098
1ab21617
EZ
110992004-02-09 Elena Zannoni <ezannoni@redhat.com>
11100
11101 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11102 obstack_specify_allocation.
11103 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 11104 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
11105 (allocate_rt_common_objfile): Ditto.
11106 * symfile.c (reread_symbols): Ditto.
11107 * gdb_obstack.h: Add comment.
11108
17763fd9
EZ
111092004-02-09 Elena Zannoni <ezannoni@redhat.com>
11110
11111 * linespec.c (decode_line_1, locate_first_half)
11112 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11113 commented out code.
11114
ec5cdd75
DJ
111152004-02-09 Daniel Jacobowitz <drow@mvista.com>
11116
11117 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11118 obstack_free.
11119
43b54b88
AC
111202004-02-09 Andrew Cagney <cagney@redhat.com>
11121
11122 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11123 fails, try find_pc_section. Fix PR c++/1267.
11124 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11125 instead of find_pc_mapped_section.
11126 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11127 not default to the section containing PC. Fix PR symtab/1519.
11128
edfae063
AC
111292004-02-09 Andrew Cagney <cagney@redhat.com>
11130
11131 * Makefile.in (mips-tdep.o): Update dependencies.
11132 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11133 "trad-frame.h".
11134 (mips_unwind_pc): Return the pseudo PC register.
11135 (mips_unwind_dummy_id): New function.
11136 (mips16_fetch_instruction): New function.
11137 (mips32_fetch_instruction): New function.
11138 (struct mips_frame_cache): Define.
11139 (mips_mdebug_frame_cache): New function.
11140 (mips_mdebug_frame_this_id): New function.
11141 (mips_mdebug_frame_prev_register): New function.
11142 (mips_mdebug_frame_unwind): Define.
11143 (mips_mdebug_frame_sniffer): New function.
11144 (mips_mdebug_frame_base_address): New function.
11145 (mips_mdebug_frame_base): Define.
11146 (mips_mdebug_frame_base_sniffer): New function.
11147 (mips_gdbarch_init): Append unwind and base sniffers. Set
11148 unwind_dummy_id.
11149
defc864c
AC
111502004-02-08 Andrew Cagney <cagney@redhat.com>
11151
6764ddad
AC
11152 * frame.c: Print both the register number and name.
11153
defc864c
AC
11154 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11155 and a sed into a single sed. Make .c and .o patterns more robust.
11156 (OBS): Delete.
11157 (INIT_FILES): Replace OBS with COMMON_OBS.
11158 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11159
645d6d10
MK
111602004-02-08 Mark Kettenis <kettenis@gnu.org>
11161
11162 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11163 the PT_WCOOKIE request.
11164
23e3c3fc
AC
111652004-02-08 Andrew Cagney <cagney@redhat.com>
11166
58dfe9ff
AC
11167 * mips-tdep.c (mips_unwind_pc): New function.
11168 (mips_gdbarch_init): Set mips_unwind_pc.
11169
1152e35e
AC
11170 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11171 (get_frame_id): Allow the UNKNOWN_FRAME.
11172 (frame_register_unwind, get_frame_type): Ditto.
11173
31b75dbf
AC
11174 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11175 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11176 unwind_dummy_id indicates a legacy frame.
11177
3483b318
AC
11178 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11179 * configure: Re-generate.
11180
23e3c3fc
AC
11181 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11182 methods.
11183
33f8ca73
AC
111842004-02-08 Andrew Cagney <cagney@redhat.com>
11185
11186 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11187 makefile macro.
11188 * configure: Re-generate.
11189 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11190 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11191 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11192 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11193 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11194 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11195 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11196 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11197 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11198 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11199
6ba8e26f 112002004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 11201
20d286a5
AC
11202 * Makefile.in: Update all dependencies.
11203
d836ee13
AC
11204 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11205 * configure: Re-generate.
11206 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11207 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11208 (COMMON_OBS): Add "main.o" and "annotate.o".
11209 (ANNOTATE_OBS): Delete.
11210 (OBS): Remove ANNOTATE_OBS.
11211 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11212 CONFIG_INITS.
11213 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11214 against CONFIG_OBS and "main.o".
11215 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11216 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11217
d02c80cd
AC
11218 * tui/tui-command.c: Include "gdb_string.h", delete register
11219 attribute, use ISO-C function signatures.
11220 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11221 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11222 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11223 * tui/tui.c: Ditto.
6ba8e26f
AC
11224
11225 * tui/tui-command.c: Change variable and function names to lower
11226 case.
11227 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11228 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11229 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11230 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11231 * tui/tui-winsource.c, tui/tui.c: Ditto.
11232
4a146b47
EZ
112332004-02-07 Elena Zannoni <ezannoni@redhat.com>
11234
11235 * buildsym.c (free_pending_blocks, finish_block)
11236 (record_pending_block, make_blockvector, end_symtab): Replace
11237 symbol_obstack with objfile_obstack.
8a1dac83 11238 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 11239 (coff_read_enum_type): Ditto.
8a1dac83 11240 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 11241 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 11242 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
11243 (dwarf2_symbol_mark_computed): Ditto.
11244 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11245 * elfread.c (elf_symtab_read): Ditto.
11246 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11247 (hpread_read_enum_type, hpread_read_function_type)
11248 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11249 Ditto.
8a1dac83 11250 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 11251 (java_link_class_type): Ditto.
8a1dac83 11252 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
11253 (new_symbol): Ditto.
11254 * minsyms.c (install_minimal_symbols): Ditto.
11255 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11256 (terminate_minimal_symbol_table): Replace symbol_obstack with
11257 objfile_obstack.
11258 (free_objfile): Remove freeing of symbol_obstack.
11259 * objfiles.h: Remove symbol_obstack field.
11260 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11261 objfile_obstack.
11262 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11263 symbol_obstack.
11264 (solib_add_common_symbols): Replace symbol_obstack with
11265 objfile_obstack.
11266 * somsolib.c (som_solib_add): Ditto.
11267 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11268 (common_block_start, common_block_end): Ditto.
11269 * symfile.c (reread_symbols): Remove freeing and init of
11270 symbol_obstack.
11271 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11272 * symfile.h: Update comment.
11273 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11274 stats printing.
11275 * symtab.c (symbol_set_names): Replace symbol_obstack with
11276 objfile_obstack.
11277 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11278 Update comments.
11279 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11280 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11281 objfile_obstack.
11282
6d012f14
AC
112832004-02-07 Andrew Cagney <cagney@redhat.com>
11284
11285 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11286 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11287 fields and variables.
11288 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11289 (m_beInvisible): Delete macro.
11290 * tui/tui-data.h: Fix case case fields and variables.
11291 (m_genWinPtrIsNull): Delete macro.
11292 (tui_win_list): Rename winList.
11293 (TUI_SRC_WIN): Rename srcWin.
11294 (TUI_DISASM_WIN): Rename disassemWin.
11295 (TUI_DATA_WIN): Rename dataWin.
11296 (TUI_CMD_WIN): Rename cmdWin.
11297 (m_genWinPtrNotNull): Delete macro.
11298 (m_winPtrIsNull): Delete macro.
11299 (m_winPtrNotNull): Delete macro.
11300 (tui_win_is_source_type): Replace m_winIsSourceType
11301 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11302 (tui_win_has_locator): Replace m_hasLocator.
11303 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11304 m_setWinHighlightOff.
11305 * tui/tui-data.c: Update references.
11306 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11307 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11308 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11309 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11310 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11311 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11312 * tui/tui-winsource.c, tui/tui.c: Ditto.
11313
7d34766b
MK
113142004-02-07 Mark Kettenis <kettenis@gnu.org>
11315
1c800673
MK
11316 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11317 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11318 StackGhost.
11319
7d34766b
MK
11320 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11321 variable `i6' to `i7'.
11322 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11323
22940a24
AC
113242004-02-07 Andrew Cagney <cagney@redhat.com>
11325
11326 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11327 (TuiPoint, TuiPointPtr): Ditto.
11328 (TuiStatus, TuiStatusPtr): Ditto.
11329 (TuiWinType, TuiWinTypePtr): Ditto.
11330 (struct tui_point): Rename _TuiPoint.
11331 (tui_get_low_disassembly_address): Rename
11332 tuiGetLowDisassemblyAddress.
11333 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11334 (tuiFree): Delete declaration.
11335 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11336 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11337 * tui/tui.c (tuiFree): Delete function.
11338 * cli/cli-cmds.c (disassemble_command): Update references.
11339 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11340 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11341 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11342 * tui/tui-winsource.c: Ditto.
11343
8b92e4d5
EZ
113442004-02-07 Elena Zannoni <ezannoni@redhat.com>
11345
11346 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11347 coffstab_build_psymtabs, elfstab_build_psymtabs)
11348 (stabsect_build_psymtabs): Replace psymbol_obstack with
11349 objfile_obstack.
11350 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11351 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11352 Ditto.
11353 * dwarfread.c (scan_compilation_units): Ditto.
11354 * elfread.c (elfstab_offset_sections): Ditto.
11355 * hppa-tdep.c (read_unwind_info): Ditto.
11356 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11357 (hpread_end_psymtab): Ditto.
11358 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11359 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11360 Ditto.
11361 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 11362 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
11363 (build_objfile_section_table): Ditto.
11364 (allocate_objfile): Remove init of psymbol_obstack.
11365 (free_objfile): Remove freeing of psymbol_obstack.
11366 * objfiles.h (struct objfile): Remove field
11367 psymbol_obstack. Update comments.
11368 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11369 psymbol_obstack with objfile_obstack.
11370 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11371 psymbol_obstack.
11372 * somread.c (som_symfile_offsets, init_import_symbols)
11373 (init_export_symbols): Replace psymbol_obstack with
11374 objfile_obstack.
11375 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11376 * symfile.c (default_symfile_offsets, syms_from_objfile)
11377 (reread_symbols): Remove freeing and init of psymbol_obstack.
11378 (cashier_psymtab): Update comment.
11379 * symmisc.c (print_objfile_statistics): Don't report stats for
11380 psymbol obstack.
11381 * symtab.h (struct general_symbol_info, struct partial_symtab):
11382 Update comments.
11383 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11384 (xcoff_symfile_offsets): Replace psymbol_obstack with
11385 objfile_obstack.
11386
b99607ea
EZ
113872004-02-07 Elena Zannoni <ezannoni@redhat.com>
11388
11389 * objfiles.h (struct objfile): Add objfile_obstack field.
11390 Remove type_obstack field.
11391
11392 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11393 read_structure_scope read_enumeration, new_symbol): Replace
11394 type_obstack with objfile_obstack.
11395 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 11396 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
11397 (lookup_fundamental_type): Ditto.
11398 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
11399 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11400 (hpread_read_doc_function_type, hpread_read_struct_type)
11401 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 11402 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 11403 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
11404 (java_link_class_type): Ditto.
11405 * mdebugread.c (parse_type): Ditto.
11406 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11407 * solib-sunos.c (solib_add_common_symbols): Ditto.
11408 * stabsread.c (define_symbol, read_type, read_member_functions,
11409 read_cpp_abbrev, read_one_struct_field): Ditto.
11410 * symfile.c (reread_symbols): Ditto.
11411 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 11412
2a8854a7
AC
114132004-02-07 Andrew Cagney <cagney@redhat.com>
11414
11415 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11416 (tui_exec_info_content): Rename TuiExecInfoContent.
11417 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11418 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11419 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11420 (TuiList, TuiListPtr): Ditto.
11421 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11422 (TuiDataType, TuiDataTypePtr): Ditto.
11423 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11424 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11425 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11426 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11427 (TuiDataElement, TuiDataElementPtr): Ditto.
11428 (TuiWinElement, TuiWinElementPtr): Ditto.
11429 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11430 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11431 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11432 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11433 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11434 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11435 * tui/tui-command.c, tui/tui-data.c: Update references.
11436 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11437 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11438 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11439 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 11440
05cbe71a
MK
114412004-02-07 Mark Kettenis <kettenis@gnu.org>
11442
11443 * dwarf2-frame.h: Update copyright.
11444 (enum dwarf2_frame_reg_rule): New.
11445 (struct dwarf2_frame_state_reg): New.
11446 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11447 * dwarf2-frame.c: Update copyright.
11448 (enum dwarf2_reg_rule): Remove.
11449 (struct dwarf2_frame_state): Remove defenition of `struct
11450 dwarf2_frame_state_reg'.
11451 (read_reg): Call get_frame_arch to get the architecture instead of
11452 using CURRENT_GDBARCH.
11453 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11454 DWARF2_FRAME_.
11455 (dwarf2_frame_init_reg): New function.
11456 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11457 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11458 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11459 tags with DWARF2_FRAME_.
11460 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11461 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11462 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11463
ec7d9e56
AC
114642004-02-06 Andrew Cagney <cagney@redhat.com>
11465
dd1abb8c
AC
11466 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11467 (enum tui_data_type): Rename _TuiDataType.
11468 (struct tui_layout_def): Rename _TuiLayoutDef.
11469 (struct tui_source_element): Rename _TuiSourceElement.
11470 (struct tui_data_element): Rename _TuiDataElement.
11471 (struct tui_command_element): Rename _TuiCommandElement.
11472 (struct tui_locator_element): Rename _TuiLocatorElement.
11473 (union tui_which_element): Define.
11474 (struct tui_win_element): Rename _TuiWinElement.
11475 (struct tui_data_info): Rename _TuiDataInfo.
11476 (struct tui_source_info): Rename _TuiSourceInfo.
11477 (struct tui_command_info): Rename _TuiCommandInfo.
11478 (tui_initialize_static_data): Rename initializeStaticData.
11479 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11480 (tui_alloc_win_info): Rename allocWinInfo.
11481 (tui_init_generic_part): Rename initGenericPart.
11482 (tui_init_win_info): Rename initWinInfo.
11483 (tui_alloc_content): Rename allocContent.
11484 (tui_add_content_elements): Rename addContentElements.
11485 (tui_init_content_element): Rename initContentElement.
11486 (tui_free_window): Rename freeWindow.
11487 (tui_free_win_content): Rename freeWinContent.
11488 (tui_free_data_content): Rename freeDataContent.
11489 (tui_free_all_source_wins_content): Rename
11490 freeAllSourceWinsContent.
11491 (tui_del_window): Rename tuiDelWindow.
11492 (tui_del_data_windows): Rename tuiDelDataWindows.
11493 (tui_partial_win_by_name): Rename partialWinByName.
11494 (tui_win_name): Rename winName.
11495 (tui_current_layout): Rename currentLayout.
11496 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11497 (tui_term_height): Rename termHeight.
11498 (tui_set_term_height_to): Rename setTermHeightTo.
11499 (tui_term_width): Rename termWidth.
11500 (tui_set_term_width_to): Rename setTermWidthTo.
11501 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11502 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11503 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11504 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11505 (tui_source_windows): Rename sourceWindows.
11506 (tui_clear_source_windows): Rename clearSourceWindows.
11507 (tui_clear_source_windows_detail): Rename
11508 clearSourceWindowsDetail.
11509 (tui_clear_win_detail): Rename clearWinDetail.
11510 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11511 (tui_default_tab_len): Rename tuiDefaultTabLen.
11512 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11513 (tui_win_with_focus): Rename tuiWinWithFocus.
11514 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11515 (tui_layout_def): Rename tuiLayoutDef.
11516 (tui_win_resized): Rename tuiWinResized.
11517 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11518 (tui_next_win): Rename tuiNextWin.
11519 (tui_prev_win): Rename tuiPrevWin.
11520 (tui_add_to_source_windows): Rename addToSourceWindows.
11521 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11522 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11523 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11524 * tui/tui.c, tui/tui-data.c: Ditto.
11525 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11526 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11527
a358af15
AC
11528 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11529 (struct symtab): Declare.
11530 (tui_set_source_content): Rename tuiSetSourceContent.
11531 (tui_show_symtab_source): Rename tuiShowSource.
11532 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11533 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11534 * tui/tui-source.c: Update copyright. Update references.
11535 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11536 * tui/tui-stack.c: Update references.
11537
a21fcd8f
AC
11538 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11539 (struct tui_win_info): Declare.
11540 (tui_scroll_forward): Rename tuiScrollForward.
11541 (tui_scroll_backward): Rename tuiScrollBackward.
11542 (tui_scroll_left): Rename tuiScrollLeft.
11543 (tui_scroll_right): Rename tuiScrollRight.
11544 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11545 (tui_resize_all): Rename tuiResizeAll.
11546 (tui_refresh_all_win): Rename tuiRefreshAll.
11547 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11548 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11549 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11550 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11551
edae1ccf
AC
11552 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11553 (tui_erase_data_content): Rename tuiEraseDataContent.
11554 (tui_display_all_data): Rename tuiDisplayAllData.
11555 (tui_check_data_values): Rename tuiCheckDataValues.
11556 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11557 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11558 (tui_first_data_element_no_in_line): Rename
11559 tuiFirstDataElementNoInLine.
11560 (tui_delete_data_content_windows): Rename
11561 tuiDeleteDataContentWindows.
11562 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11563 (tui_display_data_from): Rename tuiDisplayDataFrom.
11564 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11565 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11566 * tui/tui-win.c, tui/tui-regs.c: Update references.
11567 * tui/tui-layout.c, tui/tui.c: Update references.
11568
ec7d9e56
AC
11569 * tui/tui-wingeneral.h: Update copyright.
11570 (m_allBeVisible): Delete macro.
8a1dac83 11571 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
11572 (struct tui_gen_win_info): Declare.
11573 (struct tui_win_info): Declare.
11574 (tui_unhighlight_win): Rename unhighlightWin.
11575 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11576 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11577 (tui_make_window): Rename makeWindow.
11578 (tui_copy_win): Rename copyWin.
11579 (tui_box_win): Rename boxWin.
11580 (tui_highlight_win): Rename highlightWin.
11581 (tui_check_and_display_highlight_if_needed): Rename
11582 checkAndDisplayHighlightIfNeeded.
11583 (tui_refresh_all): Rename refreshAll.
11584 (tui_delete_win): Rename tuiDelwin.
11585 (tui_refresh_win): Rename tuiRefreshWin.
11586 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11587 (tui_make_visible, tui_make_invisible): New functions.
11588 (tui_make_all_visible, tui_make_all_invisible): New functions.
11589 (make_all_visible): Rename makeAllVisible.
11590 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11591 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11592 * tui/tui-windata.c, tui/tui-win.c: Update references.
11593 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11594 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11595
1e52e2eb
MK
115962004-02-06 Mark Kettenis <kettenis@gnu.org>
11597
11598 * proc-api.c (write_with_trace): Initialize local variable to
11599 silence compiler warning.
11600
f80bda8e
AC
116012004-02-06 Andrew Cagney <cagney@redhat.com>
11602
11603 * tui/tui-source.h: Do not include "defs.h".
11604 (struct tui_win_info): Declare.
11605 (tui_set_source_content_nil): Declare.
11606 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11607 (union tui_line_or_address): Rename _TuiLineOrAddress.
11608 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11609 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11610 (tui_update_source_window_as_is): Rename
11611 tuiUpdateSourceWindowAsIs.
11612 (tui_update_source_windows_with_addr): Rename
11613 tuiUpdateSourceWindowsWithAddr.
11614 (tui_update_source_windows_with_line): Rename
11615 tuiUpdateSourceWindowsWithLine.
11616 (tui_clear_source_content): Rename tuiClearSourceContent.
11617 (tui_erase_source_content): Rename tuiEraseSourceContent.
11618 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11619 (tui_show_source_content): Rename tuiShowSourceContent.
11620 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11621 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11622 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11623 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11624 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11625 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11626 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11627 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11628 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11629 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11630 (struct tui_win_info): Declare.
11631 * tui/tui-stack.c: Update references.
11632 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11633 * tui/tui-win.c, tui/tui-source.c: Ditto.
11634 * tui/tui.c, tui/tui-disasm.c: Ditto.
11635
9fbfb822
MK
116362004-02-06 Mark Kettenis <kettenis@gnu.org>
11637
11638 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11639 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11640
03cebad2
MK
116412004-02-05 Mark Kettenis <kettenis@gnu.org>
11642
11643 * infrun.c (handle_inferior_event): Allow for breakpoint
11644 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11645 and SIGEMT. Update comments.
11646 * NEWS (Revised SPARC target): Mention support for non-executable
11647 stack.
11648
290281b1
MK
116492004-02-04 Mark Kettenis <kettenis@gnu.org>
11650
11651 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11652 * inftarg.c: Update copyright year.
11653 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11654 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11655 (sparc_xfer_wcookie): New function.
11656 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11657 * Makefile.in (sparc-nat.o): Update dependencies.
11658 * config/sparc/nm-nbsd.h: Include "target.h".
11659 (NATIVE_XFER_WCOOKIE): New define.
11660 (sparc_xfer_wcookie): New prototype.
11661
212161df
AC
116622004-02-04 Andrew Cagney <cagney@redhat.com>
11663
11664 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11665 SYSCALL_TRAP function.
11666 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11667
6e4c6c91
DJ
116682004-02-04 Andrew Cagney <cagney@redhat.com>
11669 Daniel Jacobowitz <drow@mvista.com>
11670
11671 * objfiles.h: Delete comments refering to inside_entry_func and
11672 DEPRECATED_FRAME_CHAIN_VALID.
11673 * defs.h (inside_entry_func): Update prototype..
11674 * blockframe.c (inside_entry_func): Rename to
11675 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11676 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11677
cae688ec
JJ
116782004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11679
11680 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11681 outside of #ifdef SOLIB_ADD region.
11682 (do_restore_lang_radix_cleanup): Ditto.
11683 (resolve_pending_breakpoint): Ditto.
11684
19217676
AC
116852004-02-03 Andrew Cagney <cagney@redhat.com>
11686
11687 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11688 (process_note_abi_tag_sections): Delete unused function.
11689 (ia64_read_fp): Delete unused function.
11690 (gdbarch_extract_struct_value_address): Delete declaration.
11691
876753be
AC
116922004-02-02 Andrew Cagney <cagney@redhat.com>
11693
11694 * vax-tdep.c (vax_frame_chain): Delete call to
11695 deprecated_inside_entry_file.
11696 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11697
d4f10bf2
MK
116982004-02-02 Mark Kettenis <kettenis@gnu.org>
11699
11700 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11701 column that's "empty" or "same value" when eliminating REG_RA
11702 rules.
11703
cae688ec
JJ
117042004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11705
11706 * NEWS: Add information about new pending breakpoint support.
11707
0101ce28
JJ
117082004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11709
11710 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11711 and pending fields for pending breakpoint support.
11712 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11713 (condition_command): Only parse condition if not a pending
11714 breakpoint.
11715 (print_one_breakpoint): Add support for pending breakpoints.
11716 (describe_other_breakpoints): Add checks to verify we are not
11717 dealing with pending breakpoints.
11718 (check_duplicates): Don't check pending breakpoints.
11719 (set_raw_breakpoint): Initialize pending flag.
11720 (do_restore_lang_radix_cleanup): New cleanup routine.
11721 (resolve_pending_breakpoint): New function.
11722 (re_enable_breakpoints_in_shlibs): Try and resolve any
11723 pending breakpoints via resolve_pending_breakpoint.
11724 (mention): Add pending breakpoint support.
11725 (parse_breakpoint_sals): Add new parameter to pass to
11726 decode_line_1 to indicate silent errors when files or functions
11727 are not found. Change all callers.
11728 (do_captured_parse_breakpoint): New function.
11729 (break_command_1): Change prototype to return an rc value and to
11730 take an optional pending breakpoint pointer. Support creating
11731 a pending breakpoint if a "not found" form of error occurs when
11732 parsing the breakpoint. Also support resolving an existing pending
11733 breakpoint and be silent if the resolution fails.
11734 (create_breakpoints): Change prototype to take pending breakpoint
11735 pointer. When resolving a pending breakpoint, use the new pointer
11736 to provide a conditional or commands added by the end-user.
11737 (delete_breakpoint): Add appropriate check for pending.
11738 (breakpoint_re_set_one): Ditto.
11739 (do_enable_breakpoint): Ditto.
11740
8d577d32
DC
117412004-02-02 David Carlton <carlton@kealia.com>
11742
11743 * valops.c (enum oload_classification): New.
11744 (find_overload_match): Break implementation into separate
11745 functions; delete #if 0'd code; look for symbols within
11746 namespaces.
11747 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11748 (find_oload_champ,oload_method_static,classify_oload_match): New.
11749 * cp-support.h: Add declaration for cp_func_name; update
11750 declaration for make_symbol_overload_list.
11751 * cp-support.c (cp_func_name): New.
11752 (overload_list_add_symbol): Fix comment, use
11753 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11754 (make_symbol_overload_list): Take a function name and a namespace
11755 instead of a symbol; change implementation.
11756 (make_symbol_overload_list_using): New.
11757 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11758
22e8e3c7
FF
117592004-02-02 Fred Fish <fnf@redhat.com>
11760
11761 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 11762 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
11763 * remote-sim.c (gdb_os_write_stderr): Write output to
11764 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11765 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 11766 gdb_stderr stream and update copyright years.
22e8e3c7 11767
6b753f60
DJ
117682004-02-01 Daniel Jacobowitz <drow@mvista.com>
11769
11770 * Makefile.in (mips-linux-nat.o): Update dependencies.
11771 * mips-linux-nat.c: Include mips-tdep.h.
11772
117732004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
11774
11775 * sol-thread.c (sol_thread_xfer_partial): New function.
11776 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11777 (init_sol_core_ops): Likewise.
11778
11779 * procfs.c (procfs_xfer_partial): New function.
11780 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11781 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11782
11783 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11784 procfs_xfer_auxv function.
11785
11786 * procfs.c (procfs_make_note_section): If we can read
11787 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11788 * linux-proc.c (linux_make_note_section): Likewise.
11789
11790 * auxv.h: New file.
11791 * auxv.c: New file.
11792 * Makefile.in (auxv_h): New variable.
11793 (COMMON_OBS): Add auxv.o here.
11794 (auxv.o): New target.
11795
11796 * corelow.c (core_xfer_partial): New function.
11797 (init_core_ops): Use it for core_ops.to_xfer_partial.
11798
11799 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11800 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11801 macro if that is defined.
11802
fa5281d0
DJ
118032004-02-01 Daniel Jacobowitz <drow@mvista.com>
11804
11805 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11806 and check the specified thread for each breakpoint.
11807 * breakpoint.h (bpstat_stop_status): Update prototype.
11808 * infrun.c (handle_inferior_event): Update calls to
11809 bpstat_stop_status.
11810
26ee262d
DJ
118112004-02-01 Daniel Jacobowitz <drow@mvista.com>
11812
11813 * Makefile.in (cli-cmds.o): Add $(readline_h).
11814
d9b52655
DJ
118152004-02-01 Daniel Jacobowitz <drow@mvista.com>
11816
11817 * cli/cli-cmds.c: Include readline.h.
11818 (complete_command): Pass the start of the last word to
11819 complete_line.
11820
9709f61c
DJ
118212004-01-31 Daniel Jacobowitz <drow@mvista.com>
11822
11823 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11824 argument, and change first argument to a CORE_ADDR.
11825 * breakpoint.h (bpstat_stop_status): Update prototype.
11826 * infrun.c (adjust_pc_after_break): Add a new comment.
11827 (handle_inferior_event): Update calls to bpstat_stop_status.
11828
4f1280bb
DJ
118292004-01-31 Daniel Jacobowitz <drow@mvista.com>
11830
11831 * breakpoint.h: Update copyright years.
11832
4fa8626c
DJ
118332004-01-31 Daniel Jacobowitz <drow@mvista.com>
11834
11835 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11836 (bpstat_stop_status): Don't decrement PC.
11837 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11838 prototype.
11839 * infrun.c (adjust_pc_after_break): New function.
11840 (handle_inferior_event): Call it, early. Remove later references
11841 to DECR_PC_AFTER_BREAK.
11842 (normal_stop): Add commentary.
11843
fad0733a
DJ
118442004-01-31 Daniel Jacobowitz <drow@mvista.com>
11845
11846 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11847 2004-01-27 double-free fix.
11848
42cdca6c
MK
118492004-01-31 Mark Kettenis <kettenis@gnu.org>
11850
11851 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11852 (sparc32_frame_prev_register): Handle StackGhost.
11853 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11854
932d5416
RM
118552004-01-29 Roland McGrath <roland@redhat.com>
11856
11857 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11858 * configure: Regenerated.
11859
11860 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11861 * Makefile.in (procfs.o): Add dep.
11862
47d3492a
AC
118632004-01-28 Andrew Cagney <cagney@redhat.com>
11864
11865 * tui/tui-stack.h: Update copyright.
11866 (struct frame_info): Add opaque declaration.
11867 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11868 (tui_show_locator_content): Rename tuiShowLocatorContent.
11869 (tui_show_frame_info): Rename tuiShowFrameInfo.
11870 * tui/tui-stack.c: Update copyright. Update references.
11871 * tui/tui-winsource.c: Update references.
11872 * tui/tui-win.c: Update references.
11873 * tui/tui-layout.c: Update references.
11874 * tui/tui-hooks.c: Update copyright, update references.
11875 * tui/tui.c: Update copyright, update references.
11876 * tui/tui-disasm.c: Update references.
11877
5d51ca54
DC
118782004-01-28 David Carlton <carlton@kealia.com>
11879
11880 * dwarf2read.c (add_partial_structure): Use demangled name if
11881 namespace equals "".
11882
086ed43d
JB
118832004-01-27 Jim Blandy <jimb@redhat.com>
11884
11885 Clean up misapplied patch:
11886 * dwarf2read.c (determine_prefix): Change one of the two forward
11887 declarations for 'determine_prefix_aux' to a declaration for this.
11888 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11889 argument to 'die_specification'.
11890
2a35147e
JB
11891 * dwarf2read.c (read_func_scope): Re-indent comment.
11892
a355c7de 118932004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 11894
a355c7de
AC
11895 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11896 b->exp to NULL after freeing so that error during re-parsing or
11897 evaluation of expressions associated with breakpoint don't
11898 eventually lead to re-freeing of storage.
11899 Committed by Andrew Cagney.
11900
63ff5125
AC
119012004-01-27 Andrew Cagney <cagney@redhat.com>
11902
11903 * source.c (ambiguous_line_spec): Delete undefined declaration.
11904 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11905 (m32r_set_server_address, m32r_set_download_path): Ditto.
11906 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11907
e142c38c
DJ
119082004-01-27 Daniel Jacobowitz <drow@mvista.com>
11909
11910 * dwarf2read.c: Update calls to changed and renamed functions, and
11911 references to moved variables.
11912
11913 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11914 language, language_defn, list_in_scope, and ftypes members.
11915 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11916 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11917 (baseaddr): Remove globals.
11918
11919 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11920 (set_cu_language, die_is_declaration, die_specification)
11921 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11922 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11923 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11924 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11925
11926 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11927 cu.list_in_scope. Don't initialize cu_header_offset.
11928 (add_partial_symbol): Add local baseaddr.
11929 (psymtab_to_symtab_1): Add local baseaddr. Use
11930 objfile->section_offsets for consistency. Don't initialize
11931 cu_header_offset; do initialize cu.header.offset and
11932 cu.list_in_scope.
11933 (read_file_scope, read_func_scope, read_lexical_block_scope)
11934 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11935
c6e06ede
MC
119362004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11937
fb328ecc 11938 * PROBLEMS: Add gdb/1516.
c6e06ede 11939
48184fd4
AC
119402003-12-29 Robert Millan <robertmh@gnu.org>
11941
11942 Patch committed by Andrw Cagney.
11943 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11944 * configure.tgt: Match knetbsd*-gnu.
11945
c1321b30
AC
119462004-01-26 Andrew Cagney <cagney@redhat.com>
11947
f3699be3
AC
11948 * breakpoint.c (catch_command_1): Delete #ifdef code.
11949 (catch_fork_command_1): Delete #ifdef wrapper.
11950 (catch_exec_command_1): Ditto.
11951 (catch_load_command_1): Ditto.
11952 (catch_unload_command_1): Ditto.
11953
c1321b30
AC
11954 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11955 (catch_breakpoint): Delete #if0ed function.
11956 (disable_catch_breakpoint): Ditto.
11957 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11958 (disable_catch, enable_catch, delete_catch): Ditto.
11959
b4501125
AC
119602004-01-26 Andrew Cagney <cagney@redhat.com>
11961
11962 * remote.c (echo_check, quit_flag): Delete variables.
11963 (cisco_kernel_mode): Delete variable.
11964 (minitelnet_return, tty_input, escape_count): Delete variables.
11965 (remote_cisco_mode): Delete variable.
11966 (remote_cisco_open, remote_cisco_close): Delete function.
11967 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11968 (init_remote_cisco_ops): Delete function.
11969 (_initialize_remote): Do not install "remote cisco" code.
11970 (read_frame): Delete cisco specific code.
11971 (remote_info_process): Delete function.
11972 (remote_wait): Delete cisco specific code.
11973 (remote_cisco_section_offsets): Delete function.
11974 (remote_cisco_objfile_relocate): Delete function.
11975 (remote_async_wait): Delete cisco specific code.
11976 (minitelnet, readtty, readsocket): Delete function.
11977
74055713
AC
119782004-01-26 Andrew Cagney <cagney@redhat.com>
11979
11980 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11981 comments mentioning extract_returned_value_address.
11982 * infcmd.c (print_return_value): Update. Add comments on
11983 extract_returned_value_address.
11984 * stack.c (return_command): Add comments on
11985 extract_returned_value_address.
11986 * values.c: Update comment.
11987 * m32r-tdep.c: Update comment.
11988 * sparc-tdep.c: Update comment.
11989 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11990 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11991 * sh64-tdep.c (sh64_gdbarch_init): Update.
11992 * sh-tdep.c (sh_gdbarch_init): Update.
11993 * s390-tdep.c (s390_gdbarch_init): Update.
11994 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11995 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11996 * m68k-tdep.c (m68k_gdbarch_init): Update.
11997 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11998 * m32r-tdep.c (m32r_gdbarch_init): Update.
11999 * ia64-tdep.c (ia64_gdbarch_init): Update.
12000 * h8300-tdep.c (h8300_gdbarch_init): Update.
12001 * frv-tdep.c (frv_gdbarch_init): Update.
12002 * arm-tdep.c (arm_gdbarch_init): Update.
12003 * alpha-tdep.c (alpha_gdbarch_init): Update.
12004
a67af2b9
AC
120052004-01-26 Andrew Cagney <cagney@redhat.com>
12006
12007 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12008 SYMBOL_LOCATION_FUNCS
12009 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12010 "struct symbol_ops".
12011 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12012 type to "struct symbol_ops".
12013 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12014 (struct symbol): Replace ".aux_value.loc.funcs" and
12015 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12016 (SYMBOL_OBJFILE): Delete macro.
12017 (SYMBOL_LOCATION_FUNCS): Delete macro.
12018 (SYMBOL_LOCATION_BATON): Update.
12019 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12020 intead of SYMBOL_LOCATION_FUNCS.
12021 * ax-gdb.c (gen_var_ref): Ditto.
12022 * printcmd.c (address_info): Ditto.
12023 * findvar.c (read_var_value): Ditto.
12024 (symbol_read_needs_frame): Ditto.
12025
c034e007
AC
120262004-01-26 Andrew Cagney <cagney@redhat.com>
12027
12028 * dwarf2read.c (read_func_scope): Document frame-base hack.
12029
bb472c1e
MK
120302004-01-25 Mark Kettenis <kettenis@gnu.org>
12031
12032 * infcmd.c (print_return_value): Plug memory leak; delete
12033 ui_stream object. Rename argument `structure_return' to
12034 `struct_return'.
12035
c8e737d5
MK
120362004-01-25 Mark Kettenis <kettenis@gnu.org>
12037
f941662f
MK
12038 * infcmd.c (print_return_value): Wrap long lines.
12039 (finish_command_continuation, finish_command): Remove unused
12040 variable `funcaddr'. Fix some coding-standards problems.
12041
c558d81a 12042 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 12043 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
12044 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12045 TDEP->fpregset to zero.
12046
bf1e5861 12047 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
12048 floating-point registers for traditional NetBSD core files.
12049 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12050 TDEP->sizeof_fpregset here.
12051
4c72d57a
MK
120522004-01-25 Mark Kettenis <kettenis@gnu.org>
12053
566626fa
MK
12054 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12055 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12056 function with code split out from
12057 sparc32nbsd_sigcontext_frame_cache.
12058 (sparc32nbsd_sigcontext_frame_cache): Use
12059 sparc32nbsd_sigcontext_saved_regs.
12060 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12061 OpenBSD.
12062 * sparcobsd-tdep.c: New file.
12063 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12064 (sparcobsd-tdep.o): New dependency.
12065 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12066 * config/sparc/obsd.mt: New file.
12067
4c72d57a
MK
12068 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12069 TDEP->fpregset to be initialized to enable core file register
12070 sets.
12071
7e5e9f88
MK
120722004-01-24 Mark Kettenis <kettenis@gnu.org>
12073
f0f207fd 12074 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
12075 Add opaque declarations.
12076 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12077 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12078 function with code split out from
12079 sparc64nbsd_sigcontext_frame_cache.
12080 (sparc64nbsd_sigcontext_frame_cache): Use
12081 sparc64nbsd_sigcontext_saved_regs.
12082 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12083 OpenBSD.
12084 * sparc64obsd-tdep.c: New file.
12085 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12086 (sparc64obsd-tdep.o): New dependency.
12087 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12088 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12089 * config/sparc/obsd64.mt: New file.
12090
690668cc
MK
12091 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12092 read the instruction at PC.
12093
7e5e9f88
MK
12094 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12095 value of GDB_OSABI_DEFAULT.
12096 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12097 instead of GDB_OSABI_NETBSD_AOUT.
12098
68b6dce9
NR
120992004-01-24 Nick Roberts <nick@nick.uklinux.net>
12100
12101 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12102 copyright.
12103
080ce8c0
AC
121042004-01-23 Andrew Cagney <cagney@redhat.com>
12105
12106 * printcmd.c (display_command): Replace tui_set_display call with
12107 tui_set_layout_for_display_command.
12108 * tui/tui.h (enum tui_win_type): Define.
12109 (tui_set_layout): Delete declaration.
12110 (tui_set_layout_for_display_command): Rename set_tui_layout.
12111 * tui/tui-data.h (enum tui_layout_type): Define.
12112 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12113 "tui.h".
12114 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12115 (tui_default_win_height): Rename tuiDefaultWinHeight.
12116 (tui_default_win_viewport_height): Rename
12117 tuiDefaultWinViewportHeight.
12118 (tui_set_layout): RenametuiSetLayout.
12119 * tui/tui-layout.c: Update references.
12120 * tui/tui.c: Update references.
12121 * tui/tui-disasm.c: Update references.
12122
b368761e
DC
121232004-01-23 David Carlton <carlton@kealia.com>
12124
12125 Partial workaround for PR c++/1511:
12126 * cp-namespace.c: Include frame.h.
12127 (cp_lookup_transparent_type): New
12128 (cp_lookup_transparent_type_loop): New.
12129 * cp-support.h: Declare cp_lookup_transparent_type.
12130 * symtab.c (basic_lookup_transparent_type): Renamed from
12131 lookup_transparent_type.
12132 (lookup_transparent_type): Replace old body by a call to
12133 current_language->la_lookup_transparent_type.
12134 * symtab.h: Update copyright. Declare
12135 basic_lookup_transparent_type.
12136 * language.h: Update copyright.
12137 (struct language_defn): Add la_lookup_transparent_type.
12138 * language.c: Update copyright.
12139 (unknown_language_defn): Add basic_lookup_transparent_type.
12140 (auto_language_defn): Add basic_lookup_transparent_type.
12141 (local_language_defn): Add basic_lookup_transparent_type.
12142 * ada-lang.c: Update copyright.
12143 (ada_language_defn): Add basic_lookup_transparent_type.
12144 * c-lang.c: Update copyright.
12145 (c_language_defn): Add basic_lookup_transparent_type.
12146 (cplus_language_defn): Add basic_lookup_transparent_type.
12147 (asm_language_defn): Add basic_lookup_transparent_type.
12148 (minimal_language_defn): Add basic_lookup_transparent_type.
12149 * f-lang.c: Update copyright.
12150 (f_language_defn): Add basic_lookup_transparent_type.
12151 * jv-lang.c: Update copyright.
12152 (java_language_defn): Add basic_lookup_transparent_type.
12153 * m2-lang.c: Update copyright.
12154 (m2_language_defn): Add basic_lookup_transparent_type.
12155 * objc-lang.c: Update copyright.
12156 (objc_language_defn): Add basic_lookup_transparent_type.
12157 * p-lang.c: Update copyright.
12158 (p_language_defn): Add basic_lookup_transparent_type.
12159 * scm-lang.c: Update copyright.
12160 (scm_language_defn): Add basic_lookup_transparent_type.
12161 * Makefile.in (cp-namespace.o): Depend on frame.h.
12162
fdde2d81
DC
121632004-01-23 David Carlton <carlton@kealia.com>
12164
12165 Patch for PR c++/1520:
12166 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12167 properly if we have a specification die.
12168 (determine_prefix_aux): Rename from determine_prefix.
12169 (determine_prefix): Like the old determine_prefix, but never
12170 returns NULL.
12171
5b828b6b
TR
121722004-01-23 Theodore A. Roth <troth@openavr.org>
12173
12174 * avr-tdep.c: Update copyright.
12175 (avr_iaddr_p): Delete unused function.
12176 (avr_saddr_p): Delete unused function.
12177
a1b8c067
DC
121782004-01-23 David Carlton <carlton@kealia.com>
12179
12180 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12181 Fix for PR symtab/1534.
12182
f2cab569
MK
121832004-01-23 Mark Kettenis <kettenis@gnu.org>
12184
12185 * NEWS (New native configurations): Mention OpenBSD/sparc and
12186 OpenBSD/sparc64.
12187 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12188 * configure.host: Likewise.
12189 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12190 handler for OpenBSD.
12191 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12192
642d8300
MK
121932004-01-22 Mark Kettenis <kettenis@gnu.org>
12194
89aac506
MK
12195 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12196 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12197
36662fde
MK
12198 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12199 * cli/cli-cmds.c (shell_escape): Likewise.
12200
642d8300
MK
12201 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12202 OpenBSD .note.openbsd.ident sections.
12203
fae299cd
DC
122042004-01-22 David Carlton <carlton@kealia.com>
12205
12206 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12207 get_scope_pc_bounds.
12208 (read_file_scope): Ditto.
12209 (get_scope_pc_bounds): New function, produced by extracting code
12210 from the above two functions, consolidating it, and adding support
12211 for DW_TAG_namespace.
12212
a49d618c
MK
122132004-01-22 Mark Kettenis <kettenis@gnu.org>
12214
12215 * osabi.c (MAX_NOTESZ): New define.
12216 (check_note): New function.
12217 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12218 check_note.
12219
fe61caab
RM
122202004-01-21 Roland McGrath <roland@redhat.com>
12221
12222 * MAINTAINERS (write after approval): Add myself.
12223
ec145965
EZ
122242004-01-21 Eli Zaretskii <eliz@gnu.org>
12225
12226 * utils.c (init_page_info): Move declarations of `rows' and
12227 `cols' before the __GO32__-specific code. Move the closing brace
12228 outside the #ifdef __GO32__..#endif block.
12229 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12230
877522db
PB
122312004-01-21 Paul Brook <paul@codesourcery.com>
12232
12233 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12234 BPSTAT_WHAT_CHECK_SHLIBS.
12235
dbf5be1c
PB
122362004-01-21 Paul Brook <paul@codesourcery.com>
12237
12238 * MAINTAINERS: Add myself to write-after-approval.
12239
81f08b92
AC
122402004-01-20 Andrew Cagney <cagney@redhat.com>
12241
5a1efed7
AC
12242 * ax-gdb.c (print_axs_value): Delete unused function.
12243 * jv-lang.c (java_lookup_type): Delete unused function.
12244 * cli/cli-dump.c (dump_filetype): Delete unused function.
12245 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12246 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12247 (mips_getstring): Delete unused function.
12248 (pmon_insert_breakpoint): Delete #if0ed function.
12249 (PMON_MAX_BP): Delete #if0ed MACRO.
12250 (mips_pmon_bp_info): Delete #if0ed variable.
12251 (pmon_remove_breakpoint): Delete #if0ed function.
12252 * monitor.c (monitor_write_even_block): Delete unused function.
12253 (monitor_write_memory_block): Delete #if0ed code.
12254 * dink32-rom.c (dink32_load): Delete unused function.
12255 (_initialize_dink32_rom): Delete #if0ed code.
12256 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12257
b0a30fce
AC
12258 * tui/tui-command.c: Update references.
12259 * tui/tui-io.c: Update references.
12260 * tui/tui-command.h: Update copyright.
12261 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12262
81f08b92
AC
12263 * source.c (ambiguous_line_spec): Delete never-defined function.
12264 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12265 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12266 * cli/cli-cmds.c (validate_comname): Ditto.
12267
65f05602
AC
12268 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12269 "tui-data.h".
12270 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12271 (tui_show_disassem): Rename tuiShowDisassem.
12272 (tui_show_disassem_and_update_source): Rename
12273 tuiVerticalDisassemScroll.
12274 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12275 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12276 * tui/tui.h: Update copyright.
12277 (enum tui_status): Define.
12278 * tui/tui-data.h (enum tui_scroll_direction): Define.
12279 * tui/tui-disasm.c: Update copyright. Update references.
12280 * tui/tui-winsource.c: Update copyright. Update references.
12281 * tui/tui-win.c: Update references.
12282 * tui/tui-layout.c: Update references.
12283
6bb0384f
AC
122842004-01-20 Andrew Cagney <cagney@redhat.com>
12285
12286 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12287 sym2 to start of block.
12288
9175c9a3
MC
122892004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12290
12291 * MAINTAINERS: Delete mmalloc.
12292 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12293 * NEWS: Mention removal of --with-malloc.
12294 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12295 * config.in: Regenerate.
12296 * configure: Regenerate.
6bb0384f
AC
12297 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12298 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
12299 * gdbinit.in: Remove mmalloc.
12300 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12301 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12302 * config/i386/go32.mh: Likewise.
12303 * config/i386/interix.mh: Likewise.
12304 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12305
4fcef00a
JJ
123062004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12307
12308 * linespec.c (decode_variable, symtab_from_filename): Call
12309 error_silent with error message instead of throwing an exception
12310 directly.
12311 * defs.h (error_silent, error_output_message): Add prototypes.
12312 (catch_exceptions_with_msg): Ditto.
12313 * utils.c (error_silent, error_output_message): New functions.
12314 * top.c (catch_exceptions_with_msg): New function.
12315
8e94b928
NR
123162004-01-20 Nick Roberts <nick@nick.uklinux.net>
12317
12318 * mi/mi-cmds.h (enum print_values): Add definition.
12319
12320 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12321 type and value for simple data types and just the name and type
12322 for complex ones, if required.
12323
12324 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12325 children, if required.
12326
a02d6af8
KB
123272004-01-19 Kevin Buettner <kevinb@redhat.com>
12328
12329 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12330 unused declarations.
12331
78a4a9b9
AC
123322004-01-19 Andrew Cagney <cagney@redhat.com>
12333
12334 * top.h (mapped_symbol_files): Delete declaration.
12335 * main.c (captured_main): Delete option "m" and "mapped".
12336 * objfiles.c (mapped_symbol_files): Delete variable.
12337 * symfile.c (symbol_file_command): Delete mmap code.
12338 (symbol_file_add_with_addrs_or_offsets): Ditto.
12339 (add_symbol_file_command, reread_separate_symbols): Ditto.
12340 * objfiles.h (OBJF_MAPPED): Delete.
12341 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12342 (free_objfile) [USE_MMALLOC]: Ditto.
12343 (open_existing_mapped_file): Delete function.
12344 (open_mapped_file): Delete function.
12345 (map_to_file): Delete function.
12346
2dbd5e30
KB
123472004-01-19 Kevin Buettner <kevinb@redhat.com>
12348
12349 * infrun.c (step_into_function): Account for possible breakpoint
12350 adjustment when computing ``stop_func_start''.
12351
437b434f
KB
123522004-01-19 Kevin Buettner <kevinb@redhat.com>
12353
12354 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12355 the region size against the size of a pointer, not the size of
12356 a register as given by DEPRECATED_REGISTER_SIZE.
12357
55fb0713
AC
123582004-01-19 Andrew Cagney <cagney@redhat.com>
12359
12360 * tui/tui-regs.h: Include "tui-data.h".
12361 (tuiFirstRegElementNoInLine): Delete declaration.
12362 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12363 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12364 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12365 (tui_calculate_regs_column_count): Rename
12366 tuiCalculateRegsColumnCount.
12367 (tui_check_register_values): Rename tuiCheckRegisterValues.
12368 (tui_show_registers): Rename tuiShowRegisters.
12369 (tui_display_registers_from_line): Rename
12370 tuiDisplayRegistersFromLine.
12371 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12372 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12373 (tui_first_reg_element_no_inline): Rename
12374 tuiFirstRegElementNoInLine.
12375 * tui/tui-data.h: Update copyright.
12376 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12377 * tui/tui-windata.c: Update copyright, update references.
12378 * tui/tui-regs.c: Update copyright, update references.
12379 * tui/tui-win.c: Update copyright, update references.
12380 * tui/tui-layout.c: Update copyright, update references.
fe61caab 12381
cebe9500
AC
123822004-01-18 Andrew Cagney <cagney@redhat.com>
12383
bcdf1568
AC
12384 * tui/tui-io.c: Update copyright.
12385 (key_is_end_sequence, key_is_backspace): New functions.
12386 (key_is_command_char, key_is_start_sequence): New function.
12387 (tui_getc): Update references.
12388 * tui/tui-io.h: Update copyright.
12389 (m_tuiStartNewLine): Delete macro.
12390 (m_isBackspace, m_isDeleteChar): Delete macros.
12391 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12392 (m_isNextPage, m_isPrevPage): Delete macros.
12393 (m_isLeftArrow, m_isRightArrow): Delete macros.
12394 (m_isXdbStyleCommandChar): Delete macro.
12395 (key_is_start_sequence): Declare, replace m_isStartSequence.
12396 (key_is_end_sequence): Declare, replace m_isEndSequence.
12397 (key_is_backspace): Declare ,replace m_isBackspace.
12398 (key_is_command_char): Declare, replace m_isCommandChar.
12399 * tui/tui-command.c: Update copyright.
12400 (tuiDispatchCtrlChar): Update references.
12401
130d87e6
AC
12402 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12403 tuiSourceWin.h.
12404
d7b2e967
AC
12405 * tui/tui-command.c: Rename tui/tuiCommand.c.
12406 * tui/tui-command.h: Rename tui/tuiCommand.h.
12407 * tui/tui-data.c: Rename tui/tuiData.c.
12408 * tui/tui-data.h: Rename tui/tuiData.h.
12409 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12410 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12411 * tui/tui-io.c: Rename tui/tuiIO.c.
12412 * tui/tui-io.h: Rename tui/tuiIO.h.
12413 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12414 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12415 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12416 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12417 * tui/tui-source.c: Rename tui/tuiSource.c.
12418 * tui/tui-source.h: Rename tui/tuiSource.h.
12419 * tui/tui-stack.c: Rename tui/tuiStack.c.
12420 * tui/tui-stack.h: Rename tui/tuiStack.h.
12421 * tui/tui-win.c: Rename tui/tuiWin.c.
12422 * tui/tui-win.h: Rename tui/tuiWin.h.
12423 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12424 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12425 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12426 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12427 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12428 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12429 * tui/tui-file.c: Update includes.
12430 * tui/tui-hooks.c: Update includes.
12431 * tui/tui-interp.c: Update includes.
12432 * tui/tui.c: Update includes.
12433 * Makefile.in: Update all tui/ dependencies.
12434 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12435
b2100910
AC
12436 * Makefile.in: Update copyright. Update dependencies.
12437
cebe9500
AC
12438 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12439 problem.
12440
c6f0559b
AC
124412004-01-18 Andrew Cagney <cagney@redhat.com>
12442
43e9390b
AC
12443 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12444 instead of register_gdbarch_init.
12445
c6f0559b
AC
12446 * remote-sds.c (tohex): Delete unused function. Update copyright.
12447 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12448 * v850-tdep.c (v850_register_virtual_size): Ditto.
12449 * target.c (normal_target_post_startup_inferior): Ditto.
12450 * source.c (ambiguous_line_spec): Ditto.
12451 * remote.c (adapt_remote_get_threadinfo): Ditto.
12452 * mi/mi-out.c (out_field_fmt): Ditto.
12453 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12454 (output_control_change_notification): Ditto.
12455 * m68k-tdep.c (m68k_register_byte): Ditto.
12456 (m68k_remote_breakpoint_from_pc): Ditto.
12457 * ui-out.c (init_ui_out_state): Delete unused declaration.
12458 * stabsread.c (search_value): Ditto.
12459 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12460 * maint.c (print_section_table): Ditto.
12461 * infrun.c (set_follow_fork_mode_command): Ditto.
12462
a8504492
MK
124632004-01-18 Mark Kettenis <kettenis@gnu.org>
12464
12465 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12466 DW_CFA_def_cfa_exporession. Add support for
12467 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12468 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12469
0bd8997e
AC
124702004-01-18 Andrew Cagney <cagney@redhat.com>
12471
12472 * ocd.c: Update copyright.
12473 (bdm_read_register_command): Delete unused function.
12474 (_initialize_remote_ocd): Delete commented out reference.
12475 (get_quoted_char, reset_packet): Delete #if0ed function.
12476 (output_packet, put_quoted_char): Delete #if0ed function.
12477 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12478 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12479 (BDM_BREAKPOINT): Delete #if0ed macro.
12480 (remote_timeout): Delete #if0ed variable.
12481
31bb40e4
MK
124822004-01-18 Mark Kettenis <kettenis@gnu.org>
12483
12484 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12485 (core-sol2.o): Remove dependency.
12486 * core-sol2.c: Remove file.
12487
887432a5
AC
124882004-01-17 Andrew Cagney <cagney@redhat.com>
12489
12490 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12491 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12492 enums.
12493
29182b13
DJ
124942004-01-17 Daniel Jacobowitz <drow@mvista.com>
12495
12496 * remote.c: Update copyright years.
12497
2963ee1d
DJ
124982004-01-17 Daniel Jacobowitz <drow@mvista.com>
12499
12500 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12501
79d45cd4
AC
125022004-01-17 Andrew Cagney <cagney@redhat.com>
12503
ee300cd4
AC
12504 * mdebugread.c: Update copyright.
12505 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12506 (parse_type, parse_procedure): Ditto.
12507 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12508
fcacc9c2
AC
12509 * cris-tdep.c (cris_store_struct_return): Put back accidently
12510 deleted function.
12511
79d45cd4
AC
12512 * gdbarch.sh: Update copyright year.
12513 * gdbarch.h, gdbarch.c: Re-generate.
12514
b263358a
DJ
125152004-01-17 Daniel Jacobowitz <drow@mvista.com>
12516
12517 Suggested by George Anzinger.
12518 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12519 correct stack offset. Include unknown opcode numbers in the error
12520 message.
12521
931aecf5
AC
125222004-01-17 Andrew Cagney <cagney@redhat.com>
12523
12524 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12525 extract_struct_value_address, i386 does not set it.
12526 * sparc64-tdep.c (sparc64_init_abi): Do not set
12527 extract_struct_value_address, never called.
12528 (sparc64_extract_struct_value_address): Delete function.
12529 * m68hc11-tdep.c: Update copyright.
12530 (m68hc11_gdbarch_init): Delete redundant assignment of
12531 extract_struct_value_address.
12532 * i386-tdep.c: Update copyright.
12533 (i386_gdbarch_init): Do not set extract_struct_value_address,
12534 never called.
12535 (i386_extract_struct_value_address): Delete function.
12536 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12537 extract_struct_value_address, never called.
12538 (sparc32_extract_struct_value_address): #if 0 function. Add
12539 comments explaining its future.
12540
756fe439
DJ
125412004-01-17 Daniel Jacobowitz <drow@mvista.com>
12542
12543 * arm-tdep.c (arm_write_pc): New function.
12544 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12545
e74f0f02
DJ
125462004-01-17 Daniel Jacobowitz <drow@mvista.com>
12547
12548 * breakpoint.c (must_shift_inst_regs): Delete.
12549 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12550 and SHIFT_INST_REGS.
12551 * infcmd.c (step_1, step_1_continuation): Delete references to
12552 SHIFT_INST_REGS.
12553 * infrun.c (keep_going): Likewise.
12554 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12555 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12556
b6cb9035
AC
125572004-01-17 Andrew Cagney <cagney@redhat.com>
12558
444a1e2e
AC
12559 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12560 * gdbarch.h, gdbarch.c: Re-generate.
12561 * infcmd.c (print_return_value): Delete reference to
12562 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12563
def7e6ed
AC
12564 * cris-tdep.c (cris_gdbarch_init): Do not set
12565 deprecated_extract_struct_value_address.
12566
07be497a
AC
12567 * xstormy16-tdep.c: Update copyright.
12568 (xstormy16_extract_struct_value_address): Update to current
12569 extract struct value address interface.
12570 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12571 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12572 current extract struct value address interface.
12573 (sh64_gdbarch_init): Set extract_struct_value_address.
12574
6b4d5c91
AC
12575 * cris-tdep.c: Update copyright.
12576 (cris_extract_struct_value_address): Delete function.
12577 (struct_return_address): Delete variable.
12578 (cris_store_struct_return): Do not set struct_return_address.
12579
464e0365
AC
12580 * mcore-tdep.c: Update copyright.
12581 (mcore_extract_struct_value_address): Delete function. Update
12582 comments.
12583 (mcore_gdbarch_init): Update.
12584 * mn10300-tdep.c: Update copyright.
12585 (mn10300_extract_struct_value_address): Delete function.
12586 (mn10300_gdbarch_init): Update.
12587 * v850-tdep.c: Update copyright.
12588 (v850_extract_struct_value_address): Delete.
12589 (v850_gdbarch_init): Update.
12590 * ns32k-tdep.c: Update copyright.
12591 (ns32k_extract_struct_value_address): Delete.
12592 (ns32k_gdbarch_init): Update.
12593 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12594 (hppa_gdbarch_init): Update.
12595 * vax-tdep.c: Update copyright.
12596 (vax_extract_struct_value_address): Delete.
12597 (vax_gdbarch_init): Update.
12598
afb18d0f
AC
12599 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12600 * gdbarch.h, gdbarch.c: Re-generate.
12601 * procfs.c (procfs_fetch_registers): Delete reference to
12602 DEPRECATED_NPC_REGNUM.
12603 (procfs_store_registers): Ditto.
12604 * regcache.c (generic_target_write_pc): Simplify.
12605 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12606
a698f53e
AC
12607 * core-sol2.c (fetch_core_registers): Replace
12608 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12609
adc11376
AC
12610 * hppa-tdep.c: Update copyright year.
12611 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12612 NPC_REGNUM.
12613 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12614
b6cb9035
AC
12615 * mips-tdep.c (mips_write_pc): New function.
12616 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12617 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12618 (mips_find_saved_regs, mips_software_single_step: Ditto.
12619 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12620 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12621
6d82d43b
AC
126222004-01-17 Andrew Cagney <cagney@redhat.com>
12623
12624 * mips-tdep.c: Re-indent. Group functions by ABI.
12625
71bd6bd4
AC
126262004-01-17 Andrew Cagney <cagney@redhat.com>
12627
12628 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12629 * gdbarch.c: Re-generate.
12630 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12631 DECR_PC_AFTER_BREAK to zero.
12632 * vax-tdep.c (vax_gdbarch_init): Ditto.
12633 * v850-tdep.c (v850_gdbarch_init): Ditto.
12634 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12635 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12636 * sh-tdep.c (sh_gdbarch_init): Ditto.
12637 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12638 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12639 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12640 * mips-tdep.c (mips_gdbarch_init): Ditto.
12641 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12642 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12643 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12644 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12645 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12646 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12647 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12648 * frv-tdep.c (frv_gdbarch_init): Ditto.
12649 * cris-tdep.c (cris_gdbarch_init): Ditto.
12650 * avr-tdep.c (avr_gdbarch_init): Ditto.
12651 * arm-tdep.c (arm_gdbarch_init): Ditto.
12652 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12653
a02abb62
JB
126542004-01-17 J. Brobecker <brobecker@gnat.com>
12655
12656 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12657 Delete, no longer used.
12658 (read_subrange_type): New function, mostly extracted from
12659 read_array_type().
12660 (read_array_type): Replace extracted code by call to
12661 read_subrange_type().
12662 (dwarf2_get_attr_constant_value): New function.
12663 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12664 (add_partial_symbol): Likewise.
12665 (process_die): Likewise.
12666 (new_symbol): Likewise.
12667 (read_type_die): Likewise.
12668
cf5b2f1b
AC
126692004-01-16 Andrew Cagney <cagney@redhat.com>
12670
12671 * symfile.c: Update copyright year.
12672 (compare_symbols): Delete unused function.
12673 * stabsread.c: Update copyright year.
12674 (lrs_general_complaint): Delete unused function.
12675 (ref_search_value): Ditto.
12676 (get_substring): Delete declaration.
12677 * sh64-tdep.c: Update copyright year.
12678 (sh64_get_gdb_regnum): Delete unused function.
12679 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12680 Delete unused function.
12681
d33b9831
MK
126822004-01-17 Mark Kettenis <kettenis@gnu.org>
12683
12684 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12685 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12686
7aea86e6
AC
126872004-01-16 Andrew Cagney <cagney@redhat.com>
12688
12689 Changes from Peter Schauer.
12690 * rs6000-tdep.c: Update copyright year.
12691 (rs6000_push_dummy_call): Update the stack pointer before
12692 accessing the corresponding stack region.
12693 * rs6000-nat.c: Update copyright year.
12694 (set_host_arch): Set "info.abfd" to "exec_bfd".
12695
26b0da32
MK
126962004-01-15 Mark Kettenis <kettenis@gnu.org>
12697
12698 * blockframe.c: Update copyright year.
12699 (inside_entry_func): Don't treat a zero PC specially.
12700
86fbe6cc
EZ
127012004-01-14 Elena Zannoni <ezannoni@redhat.com>
12702
12703 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12704 variable.
12705 (gcore_create_callback): Ditto. Skip any memory segment that has
12706 no permissions set.
12707
63d06c5c
DC
127082004-01-14 David Carlton <carlton@kealia.com>
12709
12710 Change symbols for C++ nested types to contain the fully qualified
12711 name, if possible. (At least in the DWARF-2 case.) Partial fix
12712 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12713 c++/895.
12714 * c-exp.y (qualified_type): Handle types nested within classes.
12715 * cp-namespace.c: Update comments.
12716 (cp_set_block_scope): Delete #if 0.
12717 (cp_lookup_nested_type): Handle types nested within classes.
12718 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12719 when appropriate.
12720 (add_partial_symbol): Add the name of the enclosing namespace to
12721 types.
12722 (pdi_needs_namespace): New.
12723 (add_partial_namespace): Tweak comment.
12724 (add_partial_structure): New.
12725 (psymtab_to_symtab_1): Initialize processing_current_prefix
12726 here...
12727 (process_die): instead of here.
12728 (read_structure_scope): Try to figure out the name of the class or
12729 namespace that the structure might be defined within.
12730 (read_enumeration): Generate fully-qualified names, if possible.
12731 (read_namespace): Don't set name to NULL.
12732 (die_specification): New.
12733 (new_symbol): Generate fully-qualified names for types.
12734 (read_type_die): Determine appropriate prefix.
12735 (determine_prefix): New.
12736 (typename_concat): New.
12737 (class_name): New.
12738 * valops.c (value_aggregate_elt): Pass NOSIDE to
12739 value_struct_elt_for_reference.
12740 (value_struct_elt_for_reference): Make static, add NOSIDE
12741 parameter, call value_maybe_namespace_elt as a last resort.
12742 (value_namespace_elt): Break out code into
12743 value_maybe_namespace_elt.
12744 (value_maybe_namespace_elt): New.
12745
87783b8b
AC
127462004-01-12 Andrew Cagney <cagney@redhat.com>
12747
12748 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12749 cooked floating-point registers.
12750 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12751 and value_to_register.
12752
6503b91e
AC
127532004-01-13 Andrew Cagney <cagney@redhat.com>
12754
12755 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12756 * gdbarch.c: Re-generate.
12757 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12758 FUNCTION_START_OFFSET.
12759 * v850-tdep.c (v850_gdbarch_init): Ditto.
12760 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12761 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12762 * sh-tdep.c (sh_gdbarch_init): Ditto.
12763 * s390-tdep.c (s390_gdbarch_init): Ditto.
12764 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12765 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12766 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12767 * mips-tdep.c (mips_gdbarch_init): Ditto.
12768 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12769 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12770 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12771 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12772 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12773 * i386-tdep.c (i386_gdbarch_init): Ditto.
12774 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12775 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12776 * frv-tdep.c (frv_gdbarch_init): Ditto.
12777 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12778 * cris-tdep.c (cris_gdbarch_init): Ditto.
12779 * avr-tdep.c (avr_gdbarch_init): Ditto.
12780 * arm-tdep.c (arm_gdbarch_init): Ditto.
12781 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12782
ea1dd7bc
DJ
127832004-01-13 Daniel Jacobowitz <drow@mvista.com>
12784
12785 * infrun.c (follow_fork_mode_ask): Remove.
12786 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12787 (follow_fork): Simplify and remove internal error for
12788 follow_fork_mode_ask.
12789 (_initialize_infrun): Update "set follow-fork-mode" help text.
12790
0f0cffd2
AC
127912004-01-13 Andrew Cagney <cagney@redhat.com>
12792
12793 * configure.in: Update copyright year.
12794 (build_warnings): Add -Wunused-label.
12795 * configure: Re-generate.
12796
de38af99
AC
127972004-01-12 Andrew Cagney <cagney@redhat.com>
12798
954a7fba
AC
12799 * exec.h (exec_ops): Make "extern".
12800
de38af99
AC
12801 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12802 the function is void.
12803 (mips_pseudo_register_write): Ditto.
12804
1a111ce3
AC
128052004-01-12 Andrew Cagney <cagney@redhat.com>
12806
12807 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12808 call. Never defined.
12809 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12810 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12811 (struct sparc_gregset, struct regcache): Ditto.
12812 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12813
48efe704
AC
128142004-01-12 Andrew Cagney <cagney@redhat.com>
12815
12816 * mi/ChangeLog: Delete file. Renamed to ...
12817 * mi/ChangeLog-1999-2003: New file.
12818 * tui/ChangeLog: Delete file. Renamed to ...
12819 * tui/ChangeLog-1998-2003: New file.
fe61caab 12820
a54124c5
MK
128212004-01-11 Mark Kettenis <kettenis@gnu.org>
12822
2ca62865
MK
12823 * sparc64nbsd-tdep.c: Include "regset.h".
12824 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12825 Remove variables.
12826 (fetch_core_registers): Remove function.
12827 (sparc64nbsd_core_fns): Remove variable.
12828 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12829 functions.
12830 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12831 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12832 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12833
ca9d58e9
MK
12834 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12835 sparc_extract_struct_value_address.
12836 (sparc32_gdbarch_init): Set extract_struct_value_address.
12837 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12838 function.
12839 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12840 return_value_on_stack.
12841
3cc87ec0
MK
12842 * NEWS: Mention that %cs and %ss have been added to the AMD64
12843 configurations
12844
5bf00f29
MK
12845 * frame.c: Update copyright year.
12846 (get_prev_frame): Improve comment.
12847
4f7ec84e
MK
12848 * sparc64fbsd-tdep.c: Include "regset.h".
12849 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12850 Remove variables.
12851 (fetch_core_registers): Remove function.
12852 (sparc64fbsd_core_fns): Remove variable.
12853 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12854 functions.
12855 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12856 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 12857 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 12858
4e7b0cd3
MK
12859 * sparcnbsd-tdep.c: Include "regset.h".
12860 (fetch_core_registers): Remove function.
12861 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12862 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12863 functions.
12864 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12865 TDEP->fpregset.
46b58ce9 12866 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 12867
a54124c5
MK
12868 * sparc-tdep.h (struct regset): Provide opaque declaration.
12869 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12870 fpregset and sizeof_fpregset members.
12871 * sparc-tdep.c (struct regset): Provide opaque declaration.
12872 (sparc_regset_from_core_section): New function.
12873 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12874 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12875 Set regset_from_core_section when appropriate.
12876
29ff87c5
MK
128772004-01-10 Mark Kettenis <kettenis@gnu.org>
12878
79b1ab3d
MK
12879 * x86-64-tdep.c (amd64_non_pod_p): New function.
12880 (amd64_classify_aggregate): Return class memory for non-POD
12881 C++ structure types.
12882
6470d250
MK
12883 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12884 argument. Use it to reserve a register if necessary.
12885 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12886 amd64_push_arguments.
12887
562c50c2
MK
12888 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12889
af233647
MK
12890 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12891 register numbers in comments.
12892 * x86-64-tdep.h: Update copyright year.
12893 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12894 Adjust for addition of %cs and %ss.
12895 * amd64fbsd-nat.c: Update copyright year.
12896 (reg_offset): Add register offsets for %cs and %ss.
12897 * amd64fbsd-tdep.c: Update copyright year.
12898 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12899 (amd64fbsd_sc_reg_offset): Likewise.
12900 * x86-64-linux-nat.c: Update copyright year.
12901 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12902 and %ss.
12903 * amd64nbsd-nat.c: Update copyright year.
12904 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12905 * amd64nbsd-tdep.c: Update copyright year.
12906 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12907 * x86-64-linux-tdep.c: Update copyright year.
12908 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12909 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12910 * regformats/reg-x86-64.dat: Add %cs and %ss.
12911
29ff87c5
MK
12912 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12913 variables to prevent long lines. Update comments to reflect
12914 reality.
12915
38d518c9
EZ
129162004-01-09 David Carlton <carlton@kealia.com>
12917
12918 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12919 * dwarf2read.c (read_namespace): Pull out name-generating code
12920 into namespace_name. Rename previous_namespace to previous_prefix
12921 and processing_current_namespace to processing_current_prefix..
12922 (namespace_name): New function.
12923 (add_partial_symbol): Substitute uses of pdi->name with
12924 actual_name.
12925 * cp-support.h: Rename processing_current_namespace to
12926 processing_current_prefix.
12927 Update copyright year.
12928 * cp-namespace.c: Rename processing_current_namespace to
12929 processing_current_prefix.
12930 Update copyright year.
fe61caab 12931
1e4728e7
AC
129322004-01-09 Andrew Cagney <cagney@redhat.com>
12933
12934 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12935
c77c642a
MK
129362004-01-09 Mark Kettenis <kettenis@gnu.org>
12937
12938 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12939 complaining.
12940 (process_one_symbol): Deal with N_PATCH stabs.
12941
b44e9041
EZ
129422004-01-09 Elena Zannoni <ezannoni@redhat.com>
12943
12944 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12945 ifdeffed code.
12946 Update copyright year.
38d518c9 12947
eccfb640
MC
129482004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12949
12950 * config/pa/tm-hppa.h: Update extern declarations for
12951 hppa32_hpux_frame_saved_pc_in_sigtramp,
12952 hppa32_hpux_frame_base_before_sigtramp, and
12953 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12954
848c5feb
MC
129552004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12956
12957 * config/pa/tm-hppah.h: Update copyright years.
12958
3cc5d663
AC
129592004-01-08 Andrew Cagney <cagney@redhat.com>
12960
12961 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12962 (mips_o32_reg_struct_has_addr): Delete function.
12963 (mips_gdbarch_init): Update.
12964 (mips_extract_struct_value_address): Delete function.
12965
bfec0b41
JJ
129662004-01-08 David Mosberger <davidm@hpl.hp.com>
12967
12968 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12969 reality.
12970
16e109ca
AC
129712004-01-07 Andrew Cagney <cagney@redhat.com>
12972
6214a8a1
AC
12973 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12974 architecture's elf flags (when available).
12975
8d5838b5
AC
12976 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12977 FPU to the start, check the MIPS FPU when looking for an old
12978 architecture.
12979 (set_mipsfpu_single_command): Update the architecture.
12980 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12981
480d3dd2
AC
12982 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12983 (mips_mask_address_p): Add "tdep" parameter.
12984 (show_mask_address, mips_addr_bits_remove): Update.
12985 (mips_dump_tdep): Update.
12986 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12987 (MIPS_STACK_ARGSIZE): Delete macro.
12988 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12989 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12990 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12991 (mips_dump_tdep): Update.
12992 (MIPS_SAVED_REGSIZE): Delete macro.
12993 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12994 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12995 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12996 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12997 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12998 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12999 (mips_pop_frame, return_value_location): Update.
13000 (mips_n32n64_return_value, mips_dump_tdep): Update.
13001
ec03c1ac
AC
13002 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13003 MIPS ABI.
13004
16e109ca
AC
13005 * mips-tdep.c: Update copyright.
13006 (mips_gdbarch_init): Merge two code blocks handling the register
13007 name and number layout.
13008
15255275
MS
130092004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13010
13011 * tracepoint.c (validate_actionline): Fix segv at EOF
13012
9f9057da
MC
130132004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13014
13015 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13016 properly for static fields.
13017
0127c0d3 130182004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 13019 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
13020
13021 * disasm.c: Update copyright to include 2004.
13022 (do_mixed_source_and_assembly): For uiout asm list
13023 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 13024 NULL and do so prior to loop. Only reset when we close off
0127c0d3 13025 the tuple/list. Move check for whether to close off the
fe61caab 13026 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
13027 on each loop iteration.
13028
5269965e
AC
130292004-01-05 Andrew Cagney <cagney@redhat.com>
13030
54f1137d
AC
13031 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13032 should be a switch case and not a label.
13033 * mips-tdep.c (mips32_next_pc): Delete unused labels
13034 "greater_equal_branch" and "less_zero_branch".
13035 * jv-valprint.c (java_print_value_fields): Delete unused label
13036 "flush_it".
13037
5269965e
AC
13038 * target.c (unpush_target): Only close a target that is in the
13039 target stack.
13040
dbc22fa1
MK
130412004-01-05 Mark Kettenis <kettenis@gnu.org>
13042
9515395e
MK
13043 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13044 address from [sp + 64] instead of %o2.
13045
dbc22fa1
MK
13046 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13047 fixes PR backtrace/1476.
13048
5439edaa
AC
130492004-01-05 Andrew Cagney <cagney@redhat.com>
13050
13051 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13052 move to start of file.
13053 * i386-tdep.h (struct regcache): Add opaque declaration.
13054 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13055 declaration.
13056 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13057 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13058 * win32-nat.c (fake_create_process): Use ISO C style definition.
13059 * stabsread.c (define_symbol): Delete #ifndef
13060 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13061 stabs_argument_has_addr call, macro never defined.
13062
19061abe
MC
130632004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13064
13065 * op50-rom.c: Delete.
13066 * w89k-rom.c: Delete.
13067 * Makefile.in: Remove references.
13068
e53bef9f
MK
130692004-01-04 Mark Kettenis <kettenis@gnu.org>
13070
13071 * x86-64-tdep.c: Update copyright year.
13072 (struct amd64_register_info): Rename from x86_64_register_info.
13073 (amd64_register_info): Rename from x86_64_register_info.
13074 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13075 (amd64_register_name): Rename from x86_64_register_name.
13076 (amd64_register_type): Rename from x86_64_register_type.
13077 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13078 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13079 (amd64_dwarf_reg_to_regnum): Rename from
13080 x86_64_dwarf_reg_to_regnum.
13081 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13082 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13083 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13084 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13085 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13086 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13087 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13088 (amd64_frame_cache): Rename from x86_64_frame_cache.
13089 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13090 (amd64_frame_prev_register): Rename from
13091 x86_64_frame_prev_register.
13092 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13093 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13094 (amd64_sigtramp_frame_cache): Rename from
13095 x86_64_sigtramp_frame_cache.
13096 (amd64_sigtramp_frame_prev_register): Rename from
13097 x86_64_sigtramp_frame_prev_register.
13098 (amd64_sigtramp_frame_unwind): Rename from
13099 x86_64_sigtramp_frame_unwind.
13100 (amd64_sigtramp_frame_sniffer): Rename from
13101 x86_64_sigtramp_frame_sniffer.
13102 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13103 (amd64_frame_base): Rename from x86_64_frame_base.
13104 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13105 (amd64_frame_align): Rename from x86_64_frame_align.
13106 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13107 (amd64_regset_from_core_section): Rename from
13108 x86_64_regset_from_core_section.
13109 (x86_64_init_abi): Update comments.
13110
fca6aa58
NR
131112004-01-04 Nick Roberts <nick@nick.uklinux.net>
13112
13113 * MAINTAINERS (write after approval): Add myself.
13114
8ada74e3
MK
131152004-01-04 Mark Kettenis <kettenis@gnu.org>
13116
13117 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13118 `float' arguments.
13119
5154b0cd
MK
131202004-01-04 Mark Kettenis <kettenis@gnu.org>
13121
13122 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13123 such that it mentions a specific version of GCC that exhibits this
13124 bug.
13125
fb316966
MK
131262004-01-03 Mark Kettenis <kettenis@gnu.org>
13127
200cc553
MK
13128 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13129 structure that has a single `float' member, store it in %f1 in
13130 addition to %f0.
13131
e226a4a0
MK
13132 * sparc-sol2-nat.c: Add missing '\'.
13133
b9d4c5ed
MK
13134 * sparc-tdep.c (sparc32_return_value): New function.
13135 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13136 Remove functions.
13137 (sparc32_gdbarch_init): Set return_value, don't set
13138 extract_return_value, store_return_value, use_struct_convention
13139 and return_value_on_stack.
13140
fb316966
MK
13141 * sparc-sol2-nat.c: Add missing ')'.
13142
1af510a8
JB
131432004-01-03 J. Brobecker <brobecker@gnat.com>
13144
13145 * infrun.c (handle_step_into_function): New function.
13146 (handle_inferior_event): Extract out some code into the new
13147 function above.
13148
5cf4d23a
JB
131492004-01-03 J. Brobecker <brobecker@gnat.com>
13150
13151 * infrun.c (handle_inferior_event): Move the declaration of
13152 real_stop_pc inside the if blocks where it is used.
13153
60af1db2
MK
131542004-01-03 Mark Kettenis <kettenis@gnu.org>
13155
13156 * sparc64-tdep.c (sparc64_16_byte_align_p)
13157 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13158 Use check_typedef to get subtypes of structures and unions.
13159 (sparc64_store_return_value): Fix calculation of the appropriate
13160 offset into VALBUF when storing a structure or union.
13161 (sparc64_return_value): New function.
13162 (sparc64_use_struct_convention): Remove function.
13163 (sparc64_init_abi): Set return_value, don't set
13164 extract_return_value, store_return_value and
13165 use_struct_convention.
13166
1a901d3f
EZ
131672004-01-03 Eli Zaretskii <eliz@elta.co.il>
13168
13169 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13170 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13171 gdb/config/alpha/xm-alphaosf.h,
13172 gdb/config/powerpc/tm-ppcle-eabi.h,
13173 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13174 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13175 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13176 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13177 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13178 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13179 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13180 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13181 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13182 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13183 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13184 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13185 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13186 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13187 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13188 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13189 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13190 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13191 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13192 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13193 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13194 Remove lines for .cvsignore files.
13195
ef52e463
JB
131962004-01-03 J. Brobecker <brobecker@gnat.com>
13197
13198 * infrun.c: Back out the previous change.
13199
cb1bf9dc
MK
132002004-01-03 Mark Kettenis <kettenis@gnu.org>
13201
f0424ef6
MK
13202 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13203 sparc-*-sunos4* to the list of REMOVED configurations.
13204
cb1bf9dc
MK
13205 * configure.tgt: Add back sparc-*-vxworks*.
13206 * remote-vxsparc.c: Remove all includes except for "defs.h",
13207 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13208 Include "sparc-tdep.h".
13209 (SPARC_R_G1): New define.
13210 (vxsparc_gregset): New variable.
13211 (ext_format_sparc): Remove extern declaration.
13212 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13213 sparc32_supply_fpregset.
13214 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13215 sparc_collect_rwindow and sparc32_collect_fpregset.
13216 * config/sparc/tm-vxworks.h: New file, based on recently removed
13217 tm-vxsparc.h.
13218 * config/sparc/vxworks.mt: New file, based on recently removed
13219 vxworks.mt.
fe61caab 13220
5e938f9f
JB
132212004-01-03 J. Brobecker <brobecker@gnat.com>
13222
13223 * infrun.c (handle_step_into_function): New function.
13224 (handle_inferior_event): Extract out some code into the new
13225 function above.
13226
386c036b
MK
132272004-01-02 Mark Kettenis <kettenis@gnu.org>
13228
13229 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13230 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13231 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13232 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13233 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13234 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13235 (sparc_nat_h): New variable.
13236 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13237 (tm-sun4os4.h): Remove dependency.
13238 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13239 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13240 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13241 sparc-tdep.o): Update dependencies.
13242 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13243 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13244 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13245 dependencies.
13246 * configure.host: Remove existing sparc-*-lynxos*,
13247 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13248 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13249 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13250 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13251 triplets.
13252 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13253 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13254 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13255 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13256 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13257 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13258 sparc64-*-solaris2* and sparc64-*-* triplets.
13259 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13260 "symtab.h" and "objfiles.h".
13261 (BIAS): Remove define.
13262 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13263 (X_DISP19): Remove macros.
13264 (sparc_fetch_instruction): Remove function.
13265 (struct gdbarch_tdep): Remove definition.
13266 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13267 (sparc_breakpoint_from_pc): Remove function.
13268 (struct sparc64_frame_cache): Remove definition.
13269 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13270 sparc64_unwind_pc): Remove functions.
13271 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13272 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13273 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13274 (sparc64_frame_cache): Change return type to `struct
13275 sparc_frame_cache *'. Simply call sparc_frame_cache.
13276 (sparc64_frame_this_id, sparc64_frame_prev_register,
13277 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13278 instead of `struct sparc64_frame_cache.
13279 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13280 sparc_analyze_control_transfer, sparc_software_single_step,
13281 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13282 _initialize_sparc64_tdep): Remove functions.
13283 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13284 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13285 macros.
13286 (sparc64_supply_gregset, sparc64_collect_gregset,
13287 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13288 (sparc64_init_abi): New function.
13289 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13290 inclusion guard. Include "sparc-tdep.h".
13291 (BIAS): Define.
13292 (r_tstate_offset, r_fprs_offset): New defines.
13293 (enum sparc_regnum): Remove defenition.
13294 (enum sparc64_regnum): Reformat.
13295 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13296 (sparc64_init_abi, sparc64_supply_gregset,
13297 sparc64_collect_gregset, sparc64_supply_fpregset,
13298 sparc64_collect_fpregset): New prototypes.
13299 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13300 Add extern declarations.
13301 (sparc64_sol2_init_abi): New prototype.
13302 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13303 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13304 prototypes.
13305 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13306 "sparnbsd-nat.h".
13307 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13308 functions.
13309 (_initialize_sparc64fbsd_nat): Remove initialization of
13310 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13311 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 13312 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
13313 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13314 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13315 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13316 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13317 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13318 (sparc64fbsd_r_y_offset): Remove variables.
13319 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13320 Make static and const.
13321 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13322 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13323 functions.
13324 (sparc64fbsd_gregset): New variable.
13325 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13326 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13327 and sparc64_supply_fpregset.
13328 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13329 (sparc64fbsd_sigtramp_frame_this_id)
13330 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13331 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13332 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13333 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13334 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13335 * sparcnbsd-tdep.c: Update copyright year. Include
13336 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13337 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13338 "value.h" and "sparcnbsd-tdep.h".
13339 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13340 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13341 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13342 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13343 defines.
13344 (sparcnbsd_gregset): New variable.
13345 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13346 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13347 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13348 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13349 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13350 variables.
13351 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13352 (sparc32nbsd_sigcontext_frame_this_id)
13353 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13354 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13355 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13356 (sparcnbsd_get_longjmp_target_32,
13357 sparcnbsd_get_longjmp_target_64): Remove functions.
13358 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13359 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13360 sparcnbsd_init_elf): Remove.
13361 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13362 (sparcnbsd_elf_init_abi): New functions.
13363 (_initialize_sparcnbsd_tdep): New prototype.
13364 (_initialize_sparnbsd_tdep): Update.
13365 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13366 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13367 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13368 * config/sparc/linux.mh: Update comment.
13369 (XM_FILE, HOST_IPC): Remove variables.
13370 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13371 sparc-linux-nat.o.
13372 * config/sparc/linux.mt: Update comment.
13373 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13374 * config/sparc/nbsd.mt: Reformat.
13375 * config/sparc/nbsd64.mh: Update comment.
13376 (NATDEPFILES): Add sparc-nat.o.
13377 * config/sparc/nbsd64.mt: Update comment.
13378 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13379 (TM_FILE): Set to tm-nbsd.h.
13380 * config/sparc/nbsdelf.mh: Update comment.
13381 (NATDEPFILES): Add sparc-nat.o.
13382 (XM_FILE): Delete.
13383 * config/sparc/nbsdaout.mh: Update comment.
13384 (NATDEPFILES): Add sparc-nat.o
13385 (XM_FILE): Delete.
13386 * config/sparc/nm-linux.h: Update copyright year. Don't include
13387 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13388 inclusion.
13389 (KERNEL_U_SIZE): Remove define.
13390 (kernel_u_size): Remove prototype.
13391 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13392 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13393 "regcache.h".
13394 (CHILD_PREPARE_TO_STORE): Remove define.
13395 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13396 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13397 sparcnbsd-nat.c: Rewrite files.
13398 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13399 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13400 sparcnbsd-tdep.h: Remove files.
13401 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13402 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13403 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13404 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13405 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13406 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13407 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13408 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13409 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13410 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13411 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13412 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13413 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13414 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13415 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13416 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13417 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13418 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13419 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13420
ee84457a
AC
134212004-01-02 Andrew Cagney <cagney@redhat.com>
13422
13423 From 2003-12-18 Kazuhiro Inaoka:
13424 * configure.host: Add m32r-linux target.
13425
0bc2134e
MC
134262004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13427
13428 * top.c (print_gdb_version): Update year to 2004.
13429
89a72f9c
MM
134302004-01-02 Mark Mitchell <mark@codesourcery.com>
13431
13432 * MAINTAINERS: Add myself to the write-after-approval category.
13433
86b013ed
DJ
134342004-01-02 Daniel Jacobowitz <drow@mvista.com>
13435
13436 From Bernardo Innocenti <bernie@develer.com>:
13437 * configure.tgt: Add uClinux target.
13438
e42c9534
AC
134392004-01-02 Andrew Cagney <cagney@redhat.com>
13440
13441 * utils.c (do_my_cleanups): Make static, add forward declaration.
13442 * defs.h (do_my_cleanups): Delete declaration.
13443
162467d3
EZ
134442004-01-02 Eli Zaretskii <eliz@elta.co.il>
13445
13446 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13447 bfd/ChangeLog-0203.
13448
78434e59
MK
134492004-01-02 Mark Kettenis <kettenis@gnu.org>
13450
13451 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13452 in <machine/reg.h>.
13453 * configure, config.in: Regenerate.
13454
48efe704
AC
13455For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13456tui/ChangeLog-1998-2003.
c906108c
SS
13457\f
13458Local Variables:
13459mode: change-log
13460left-margin: 8
13461fill-column: 74
13462version-control: never
13463End:
This page took 1.448881 seconds and 4 git commands to generate.