2004-10-29 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-10-29 Andrew Cagney <cagney@gnu.org>
2
3 * stack.c (parse_frame_specification_1): New function based on
4 parse_frame_specification. Add message and selected_frame_p
5 paramters. Truely always return non-NULL.
6 (parse_frame_specification): Call parse_frame_specification_1.
7 (frame_info): Update. Eliminate target_has_stack check.
8 (select_frame_command): Update.
9
10 2004-10-29 Andrew Cagney <cagney@gnu.org>
11
12 * frame.h (get_selected_frame): Add message parameter.
13 * frame.c (get_selected_frame): Add and use message parameter.
14 * stack.c (current_frame_command, return_command, locals_info)
15 (catch_info, args_info, up_silently_base, down_silently_base): Use
16 get_selected_frame with an explicit message.
17 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
18 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
19 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
20 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
21 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
22 * breakpoint.c: Update.
23
24 2004-10-29 Andrew Cagney <cagney@gnu.org>
25
26 * trad-frame.c (trad_frame_get_prev_register): Use
27 frame_unwind_register instead of frame_register_unwind, do not
28 recurse the register's location.
29 * xstormy16-tdep.c (xstormy16_frame_prev_register):
30 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
31 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
32 * sh-tdep.c (sh_frame_prev_register): Ditto.
33 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
34 * i386-tdep.c (i386_frame_prev_register): Ditto.
35 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
36 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
37
38 2004-10-28 Mark Kettenis <kettenis@jive.nl>
39
40 * proc-events.c: Fix several coding-style issues. Consistently
41 use #ifdef instead of #if defined().
42 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
43 ARRAY_SIZE.
44 (_initialize_proc_events): New prototype.
45
46 * proc-why.c: Fix several coding-style issues.
47 (proc_prettyfprint_why): Use ARRAY_SIZE.
48
49 2004-10-27 Jim Blandy <jimb@redhat.com>
50
51 * remote.c (fetch_register_using_p): Construct 'p' packet in a
52 manner independent of the host byte order.
53
54 2004-10-27 Mark Kettenis <kettenis@gnu.org>
55
56 * mips-tdep.c (id_delayed): Remove prototype.
57
58 2004-10-26 Mark Kettenis <kettenis@gnu.org>
59
60 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
61 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
62 to enum with register numbers.
63 (enum mips_insn_size): New enum.
64
65 2004-10-26 Andrew Cagney <cagney@gnu.org>
66
67 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
68 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
69 (mips_gdbarch_init): Update.
70 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
71
72 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
73 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
74 IN_SOLIB_RETURN_TRAMPOLINE.
75 * mips-tdep.c (mips_dump_tdep): Do not print
76 IN_SOLIB_RETURN_TRAMPOLINE.
77 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
78 (mips_gdbarch_init): Update.
79
80 * mips-tdep.h (mips_software_single_step): Move to here ...
81 * config/mips/tm-mips.h: ... from here.
82 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
83 (SOFTWARE_SINGLE_STEP): Delete.
84 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
85
86 2004-10-25 Andrew Cagney <cagney@gnu.org>
87
88 * NEWS: Add Changes since GDB 6.3 section.
89
90 2004-10-23 Andreas Schwab <schwab@suse.de>
91
92 * ada-lang.c (grow_vect): Return the new array instead of
93 expecting pointer to pointer to avoid violation of aliasing rules.
94 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
95
96 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
97
98 * s390-tdep.c (enum pv_boolean): Remove.
99 (pv_is_array_ref): Remove.
100 (s390_on_stack): Remove.
101 (S390_NUM_SPILL_SLOTS): Remove.
102 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
103 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
104 (s390_store): Track all stores of orginal incoming registers to the
105 stack constant offsets relative to the CFA, instead of only tracking
106 stores into specific spill slots.
107 (s390_load): Likewise.
108 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
109 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
110 defined as call-saved by the ABI.
111 (s390_push_dummy_call): Use bottom of dummy call argument save area
112 as return value, not the top. Do not store to the called function's
113 register save area.
114 (s390_unwind_dummy_id): Adapt accordingly.
115
116 2004-10-23 Andrew Cagney <cagney@gnu.org>
117
118 * objfiles.h (struct objfile): Rename obj_private to
119 deprecated_obj_private, sym_private to deprecated_sym_private, and
120 sym_stab_info to deprecated_sym_stab_info.
121 * gdb-stabs.h: Update.
122 * elfread.c: Update.
123 * dbxread.c: Update.
124 * coffread.c: Update.
125 * xcoffread.c: Update.
126 * symfile.c: Update.
127 * somread.c: Update.
128 * nlmread.c: Update.
129 * mdebugread.c: Update.
130 * hpread.c: Update.
131 * coffread.c: Update.
132
133 2004-10-23 Mark Kettenis <kettenis@gnu.org>
134
135 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
136 * configure.host: Add mips64*-*-openbsd*.
137 * configure.tgt: Add mips64*-*-openbsd*.
138 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
139 mips64obsd-tdep.c.
140 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
141 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
142
143 2004-10-21 Joel Brobecker <brobecker@gnat.com>
144
145 * symtab.c (symbol_search_name): Minor reformatting.
146
147 2004-10-20 Joel Brobecker <brobecker@gnat.com>
148
149 * symtab.h: Fix typo in comment.
150
151 2004-10-19 Mark Kettenis <kettenis@gnu.org>
152
153 * dwarf2read.c (struct comp_unit_head): Fix coding style.
154 (dwarf_decode_line_header): Likewise.
155
156 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
157
158 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
159
160 2004-10-19 Andrew Cagney <cagney@gnu.org>
161
162 GDB 6.3 branch created.
163 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
164
165 2004-10-15 Joel Brobecker <brobecker@gnat.com>
166
167 * dwarf2read.c (set_cu_language): Set language to Ada for
168 DW_LANG_Ada83 and DW_LANG_Ada95.
169
170 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
171
172 From Andreas Schwab <schwab@suse.de>:
173 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
174 for xmalloc and xrealloc.
175
176 2004-10-15 Andrew Cagney <cagney@gnu.org>
177
178 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
179 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
180 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
181 Update dependencies.
182
183 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
184
185 * ada-lang.c (ada_lookup_symbol): Correct comment.
186 (ada_evaluate_subexp): Change error message for
187 OP_FUNCALL case so as not to indicate an internal error.
188
189 2004-10-15 Joel Brobecker <brobecker@gnat.com>
190
191 Committed by Paul Hilfinger.
192 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
193 type sizes in XVE/XVU types, and emit a warning when that happens,
194 instead of rounding up the size of the resulting type.
195 Some minor reformatting.
196 (ada_is_aligner_type): Do not consider a type as an aligner type
197 if there is a corresponding XVS type as well.
198 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
199 have several levels of pointer indirection to the array.
200
201 2004-10-15 Jerome Guitton <guitton@gnat.com>
202
203 Committed by Paul Hilfinger.
204 * ada-lang.c (check_size): New function.
205 (coerce_unspec_val_to_type): call check_size to make sure
206 that the object size is reasonable.
207 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
208 Implements the case when we get a reference when we evaluate
209 the expression of one of the bounds of the slice.
210 (ada_value_struct_elt): when a packed array field is
211 a reference, use ada_coerce_ref to dereference it; use
212 ada_value_ind only if it is a pointer.
213
214 2004-10-15 Joel Brobecker <brobecker@gnat.com>
215
216 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
217 a bit to avoid the necessity of an advance declaration. Remove
218 declaration.
219 (set_reg_offset): Move implemenation up.
220 (mips16_get_imm): Likewise.
221 (mips16_scan_prologue): Likewise.
222 (reset_saved_regs): Likewise.
223 (mips32_scan_prologue): Likewise.
224
225 2004-10-14 Joel Brobecker <brobecker@gnat.com>
226
227 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
228 Remove sp as a parameter, compute it internally instead. Move
229 prologue scanning limit from heuristic_proc_desc to here.
230 (mips16_scan_prologue): Likewise.
231 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
232 by call to mips16_scan_prologue.
233 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
234 by call to mips32_scan_prologue.
235 (heuristic_proc_desc): Remove code that's no longer necessary.
236 Update calls to mips16_scan_prologue and mips32_scan_prologue.
237 (mips_skip_prologue): Update calls to mips16_scan_prologue
238 and mips32_scan_prologue.
239
240 2004-10-14 Joel Brobecker <brobecker@gnat.com>
241
242 * mips-tdep.c (mips16_scan_prologue): Merge code from
243 mips16_skip_prologue. Now return the address of the first
244 instruction past the function prologue.
245 (mips16_skip_prologue): Remove, no longer necessary.
246 (mips_skip_prologue): Replace call to mips16_skip_prologue
247 by call to mips16_scan_prologue.
248
249 2004-10-14 Joel Brobecker <brobecker@gnat.com>
250
251 * mips-tdep.c (mips32_scan_prologue): Merge code from
252 mips32_skip_prologue. Now return the address of the first
253 instruction past the function prologue.
254 (mips32_skip_prologue): Remove. No longer necessary.
255 (mips16_skip_prologue): Add parameter end_pc instead of
256 computing it.
257 (mips_skip_prologue): Compute the upper limit for the
258 prologue scanning. Update call to mips16_skip_prologue.
259 Replace call to mips32_skip_prologue by call to
260 mips32_scan_prologue.
261
262 2004-10-14 Mark Kettenis <kettenis@gnu.org>
263
264 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
265 NetBSD system call stubs that store %rp in the ERP slot of the
266 stack frame.
267
268 * source.c: Always define O_BINARY to 0 if not defined already.
269 (openp): Unconditionally use O_BINARY.
270
271 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
272 * event-top.c (gdb_readline2): Likewise.
273
274 2004-10-14 Orjan Friberg <orjanf@axis.com>
275
276 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
277 deprecated_add_core_fns which was removed by mistake.
278
279 2004-10-13 Kevin Buettner <kevinb@redhat.com>
280
281 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
282 references to deprecated_registers[] with equivalent code.
283
284 2004-10-13 Kevin Buettner <kevinb@redhat.com>
285
286 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
287 ``deprecated_registers'' with equivalent code. Use gdb_assert()
288 instead of explicit test and print statement.
289
290 2004-10-12 Mark Kettenis <kettenis@gnu.org>
291
292 * sparc-nat.c: Include "inf-ptrace.h".
293 (sparc_target): New function.
294 * sparc-nat.h: Update copyright year.
295 (sparc_target): New prototype.
296 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
297 (_initialize_sparcnbsd_nat): Construct and add target vector.
298 * sparc64nbsd-nat.c: Include "target.h".
299 (_initialize_sparc64nbsd_nat): Construct and add target vector.
300 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
301 Update dependencies.
302 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
303 inftarg.o, add inf-ptrace.o.
304 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
305 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
306 (NAT_FILE): Set to nm-bsd.h.
307 (LOADLIBES): New variable.
308 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
309 infarg.o, add inf-ptrace.o.
310 * config/sparc/nm-nbsdaout.h: Remove file.
311 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
312 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
313 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
314
315 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
316 "fopen-same.h". Update comment.
317
318 2004-10-11 Mark Kettenis <kettenis@gnu.org>
319
320 * i386gnu-nat.c: Include "gdb_string.h".
321 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
322 registers when the floating-point state isn't initialized.
323 * Makefile.in (i386gnu-nat.o): Update dependencies.
324
325 2004-10-11 David Anderson <davea@sgi.com>
326
327 * regcache.c (regcache_raw_read): Comment was missing "to".
328 Extraneous ' removed.
329 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
330 comment now describes use.
331
332 2004-10-11 Orjan Friberg <orjanf@axis.com>
333
334 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
335 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
336 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
337 (cris_sigtramp_frame_sniffer): New functions.
338 (cris_gdbarch_init): Hook in signal trampoline unwinder.
339 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
340 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
341 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
342 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
343 command.
344 (cris_version_update): Remove, replace with ...
345 (set_cris_version): New function.
346 (struct gdbarch_tdep, cris_mode, cris_mode_update)
347 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
348 (_initialize_cris_tdep): Remove CRIS mode command.
349 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
350 cris-fpless-backtrace command.
351 (cris_scan_prologue): Fix prologue scanning limit.
352 (cris_register_type): Update to reflect actual registers.
353 (cris_register_bytes_ok) Remove.
354 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
355 Remove set_gdbarch_deprecated_register_size,
356 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
357
358 2004-10-10 Andrew Cagney <cagney@gnu.org>
359
360 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
361 comment.
362
363 2004-10-10 Joel Brobecker <brobecker@gnat.com>
364
365 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
366
367 2004-10-10 Joel Brobecker <brobecker@gnat.com>
368
369 * mips-tdep.c (mips16_scan_prologue): Renames
370 mips16_heuristic_proc_desc. Update comment.
371 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
372 (heuristic_proc_desc): Update calls to the 2 functions above.
373
374 2004-10-10 Joel Brobecker <brobecker@gnat.com>
375
376 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
377 Update comments. Also immediately return empty cache when the start
378 address of our function could not be found.
379 (mips_insn32_frame_cache): Likewise.
380
381 2004-10-10 Joel Brobecker <brobecker@gnat.com>
382
383 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
384 (mips_insn16_frame_cache): Pass frame cache in call to
385 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
386 Remove code that became redundant as a consequence.
387 (mips32_heuristic_proc_desc): No longer compute a fake
388 procedure descriptor. Compute the full frame cache instead.
389 Some minor comment reformatting.
390
391 2004-10-10 Jim Blandy <jimb@redhat.com>
392
393 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
394 reader, tracing bytecode stuff): Remove self.
395
396 2004-10-10 Mark Kettenis <kettenis@gnu.org>
397
398 * sparc64-linux-tdep.c: Update copyright year. Don't include
399 "solib-svr4.h".
400 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
401 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
402 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
403
404 * sparc-linux-tdep.c: Update copyright year.
405 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
406 to struct frame_info *. Use safe_frame_unwind_memory instead of
407 deprecated_read_memory_nobpt.
408 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
409 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
410 changed signature of sparc_linux_sigtramp_start.
411 (sparc32_linux_pc_in_sigtramp): Remove function.
412 (sparc32_linux_sigtramp_p): New function.
413 (sparc32_linux_sigtramp_frame_sniffer): Use
414 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
415
416 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
417 Remove function.
418 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
419
420 * ada-lang.c (lim_warning): Re-implement as a varargs function.
421 (decode_packed_array_type, value_subscript_packed)
422 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
423 argument in call to lim_warning.
424
425 * configure.in: Really disable the TUI if an enhanced curses
426 library isn't found.
427 * configure: Regenerate.
428
429 2004-10-09 Mark Kettenis <kettenis@gnu.org>
430
431 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
432 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
433 * config/i386/nm-nbsdaout.h: Remove file.
434 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
435 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
436 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
437 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
438 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
439 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
440 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
441 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
442 (ldd, ld_un, ld_2): Remove defines.
443 * config/i386/nm-obsd.h: Likewise.
444
445 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
446
447 * ada-lex.l: Remove useless rule whose right-context clause
448 causes unreferenced static function warning for yyrealloc.
449 (ada_flex_use): Remove the artificial reference to yyrealloc.
450
451 2004-10-08 Andrew Cagney <cagney@gnu.org>
452
453 * target.h (struct target_ops): Rename to_xfer_memory to
454 deprecated_xfer_memory.
455 * target.c: Update.
456 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
457 * wince.c: Update.
458 * win32-nat.c: Update.
459 * v850ice.c: Update.
460 * uw-thread.c: Update.
461 * thread-db.c: Update.
462 * sol-thread.c: Update.
463 * remote.c: Update.
464 * remote-vx.c: Update.
465 * remote-st.c: Update.
466 * remote-sim.c: Update.
467 * remote-sds.c: Update.
468 * remote-rdp.c: Update.
469 * remote-rdi.c: Update.
470 * remote-mips.c: Update.
471 * remote-m32r-sdi.c: Update.
472 * remote-e7000.c: Update.
473 * procfs.c: Update.
474 * ppc-bdm.c: Update.
475 * nto-procfs.c: Update.
476 * monitor.c: Update.
477 * linux-nat.c: Update.
478 * inftarg.c: Update.
479 * hpux-thread.c: Update.
480 * go32-nat.c: Update.
481 * gnu-nat.c: Update.
482 * exec.c: Update.
483 * corelow.c: Update.
484 * bsd-kvm.c: Update.
485 * aix-thread.c: Update.
486
487 2004-10-08 Andrew Cagney <cagney@gnu.org>
488
489 * target.c (debug_target): Move to near start of file.
490 (target_stopped_data_address_p): Re-org logic, add casts.
491
492 2004-10-02 Mark Kettenis <kettenis@gnu.org>
493
494 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
495 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
496 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
497 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
498 New defines.
499
500 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
501
502 * target.h (to_stopped_data_address): Change prototype to
503 take a CORE_ADDR pointer and return an int.
504 * target.c (update_current_target): Change to_stopped_data_address
505 to match new prototype.
506 (debug_to_stopped_data_address): Change appropriately.
507 * breakpoint.c (bpstat_stop_status): Change call to
508 target_stopped_data_address to use new prototype.
509 * frv-tdep.c (frv_have_stopped_data_address): New function.
510 (frv_stopped_data_address): Change to new prototype and
511 functionality.
512 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
513 prototype and functionality.
514 (ia64_stopped_by_watchpoint): New function.
515 * i386-nat.c (i386_stopped_data_address): Change to new
516 prototype and functionality.
517 (i386_stopped_by_watchpoint): New function.
518 * remote.c (remote_stopped_data_address): Change to new prototype
519 and functionality.
520 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
521 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
522 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
523 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
524 new i386_stopped_by_watchpoint function.
525 (i386_stopped_by_watchpoint): New prototype.
526 (i386_stoppped_data_address): Change to new prototype.
527 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
528 new ia64_stopped_by_watchpoint function.
529 (ia64_stopped_by_watchpoint): New prototype.
530 (ia64_stopped_data_address): Ditto.
531
532 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
533
534 * ada-typeprint.c (ada_print_type): Use int_string for printing
535 modulus of modular type.
536 * ada-lang.h (ada_modulus): Change return type to unsigned.
537 * ada-lang.c (ada_language_arch_info): Correct type of
538 string_char_type.
539 (ada_modulus): Return unsigned result.
540 (ada_lookup_symbol): Remove user disambiguation and modify comment
541 accordingly.
542
543 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
544
545 Committed by Paul Hilfinger.
546 * ada-lang.c (decode_packed_array): On big-endian targets,
547 left-justify the value if it comes with a modular type.
548
549 2004-10-08 Joel Brobecker <brobecker@gnat.com>
550
551 Committed by Paul Hilfinger.
552 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
553 (is_name_suffix): Add support for "___JM" suffixes.
554 (ada_check_typedef): Renames ada_completed_type.
555 Update all users of CHECK_TYPEDEF, check_typedef, and
556 ada_complete_type to call ada_check_typedef.
557 * ada-typeprint.c: Likewise.
558 * ada-valprint.c: Likewise.
559
560 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
561
562 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
563
564 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
565
566 * MAINTAINERS: Update e-mail address.
567
568 2004-10-07 Daniel Jacobowitz <dan@debian.org>
569
570 From Maciej W. Rozycki <macro@mips.com>:
571 * mips-tdep.c (mips32_next_pc): Check the register's contents,
572 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
573
574 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
575
576 * m32r-tdep.c (decode_prologue): Support functions written
577 in assembler language. Recognize trap instructions as the
578 end of prologue.
579 (m32r_frame_unwind_cache): Ditto.
580 (m32r_skip_prologue): Extend search limit. Quit analyzing
581 prologue if pc's location is not readable.
582
583 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
584
585 * Makefile.in (.l.c): Do conversions of names of alloc and free
586 functions that are done for .y.c files, plus special one
587 for yy_flex_realloc. Also, correct missing-file tests here.
588 * ada-lex.l (malloc, free): Remove macros.
589 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
590 xrealloc.
591 (ada_flex_use): Dummy definition to remove warnings about unused
592 functions.
593 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
594 to suppress warning.
595
596 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
597
598 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
599 RETURN_VALUE.
600 (sh_return_value_fpu): Ditto for CPUs with FPU.
601 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
602 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
603 Install sh_return_value_nofpu resp. sh_return_value_fpu as
604 RETURN_VALUE functions.
605
606 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
607
608 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
609 (sh_pseudo_register_write): Ditto.
610
611 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
612
613 * sh-tdep.c (IS_MACL_STS): New define.
614 (IS_MOVI20): Ditto.
615 (IS_MACL_LDS): Ditto.
616 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
617 instructions in prologue.
618 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
619 instructions in epilogue.
620
621 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
622
623 * sh-tdep.c (SH_NUM_REGS): Define as 67.
624 (sh_sh_register_name): Add eight empty register names.
625 (sh_sh3_register_name): Ditto.
626 (sh_sh3e_register_name): Ditto.
627 (sh_sh2e_register_name): Ditto.
628 (sh_sh2a_register_name): New function, defining SH2A register set.
629 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
630 in nofpu case.
631 (sh_sh_dsp_register_name): Add eight empty register names.
632 (sh_sh3_dsp_register_name): Ditto.
633 (sh_sh4_register_name): Ditto.
634 (sh_sh4_nofpu_register_name): Ditto.
635 (sh_sh4al_dsp_register_name): Ditto.
636 (sh2a_show_regs): New function.
637 (sh2a_nofpu_show_regs): New function.
638 (sh_sh2a_register_type): New function.
639 (do_bank_register_info): New function.
640 (sh_print_pseudo_register): Call do_bank_register_info.
641 Call sh_print_pseudo_register for valid "bank" register.
642 (sh_sh2a_register_sim_regno): New function.
643 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
644 Increment pseudo register count by one for all sh variants with
645 pseudo registers to accomodate pseudo bank register.
646 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
647 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
648 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
649 Increment pseudo register numbers.
650
651 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
652
653 * dwarf2read.c (read_subroutine_type): Call make_function_type
654 instead of lookup_function_type.
655
656 2004-10-05 Jim Blandy <jimb@redhat.com>
657
658 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
659 (Previous change missed some uses.)
660
661 2004-10-05 Andrew Cagney <cagney@gnu.org>
662
663 * target.h (deprecated_child_ops): Rename child_ops.
664 * wince.c: Update copyright. Rename child_ops.
665 * win32-nat.c: Rename child_ops.
666 * target.c: Rename child_ops.
667 * rs6000-nat.c: Rename child_ops.
668 * linux-nat.c: Rename child_ops.
669 * infttrace.c: Rename child_ops.
670 * inftarg.c: Rename child_ops.
671 * infptrace.c: Rename child_ops.
672 * hppah-nat.c: Update copyright. Rename child_ops.
673 * hpux-thread.c: Update copyright. Rename child_ops.
674
675 2004-10-05 Daniel Jacobowitz <dan@debian.org>
676
677 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
678
679 2004-10-05 Andrew Cagney <cagney@gnu.org>
680
681 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
682
683 2004-10-05 Daniel Jacobowitz <dan@debian.org>
684
685 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
686 (die_ref_table): Remove.
687 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
688 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
689 the usage of this type.
690 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
691 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
692 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
693 (dwarf2_create_include_psymtab): Update comment.
694 (find_partial_die): Remove third argument. Remove unreachable call
695 to error ().
696 (dwarf2_find_containing_comp_unit): Update comments. Change one
697 assertion to an error. Remove an unreachable error.
698 (dwarf2_find_comp_unit): Update comments.
699 (type_at_offset): Remove dead code.
700 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
701 (store_in_ref_table): Add CU argument.
702 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
703 inter-compilation-unit references.
704 (load_full_comp_unit, process_full_comp_unit): New functions, based
705 on psymtab_to_symtab_1.
706 (psymtab_to_symtab_1): Use them.
707 (dwarf2_add_dependence): New function.
708 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
709 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
710 (partial_die_parent_scope, guess_structure_name): Update for changes
711 to find_partial_die.
712 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
713 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
714 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
715 (read_die_and_children): Update call to store_in_ref_table.
716 (do_free_die_list_cleanup): Remove.
717 (fixup_partial_die): Update for changes to find_partial_die.
718 (read_full_die): Handle queueing absolute references.
719 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
720 (dwarf2_attr, die_specification, die_type)
721 (die_containing_type, dwarf2_extension): Update calls to
722 follow_die_ref.
723 (dump_die): Update DW_FORM_ref* handling.
724 (dwarf2_get_ref_die_offset): Likewise.
725 (free_one_comp_unit): Release the dies list.
726 (dwarf2_mark_helper): New function.
727 (dwarf2_mark): Use it.
728
729 2004-10-05 Mark Kettenis <kettenis@jive.nl>
730
731 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
732 when writing to memory.
733
734 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
735
736 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
737 (m32r_extract_struct_value_address): Delete function.
738 (m32r_return_value): New function.
739 (m32r_gdbarch_init): Instead of store_return_value,
740 extract_return_value, deprecated_extract_struct_value_address
741 and deprecated_use_struct_convention, set return_value.
742
743 2004-10-03 Daniel Jacobowitz <dan@debian.org>
744
745 * dwarf2read.c (read_subrange_type): Add comment for variable
746 sized arrays.
747
748 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
749
750 * Makefile.in (.l.c): Modify rule for compatibility with recent
751 versions of flex, and remove most command-line options.
752 * ada-lex.l: Add %options line in place of -I -i and -s command-line
753 options.
754
755 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
756
757 Turn on initial Ada support (mainly expression evaluation).
758
759 * Makefile.in (SFILES): Remove ada-tasks.c.
760 (HFILES_NO_SRCDIR): Add ada-lang.h.
761 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
762 (YYOBJ): Add ada-exp.o.
763 (rule .l.c): Generalize to not mention ada.
764 * symtab.c: Include ada-lang.h.
765 (symbol_natural_name, symbol_demangled_name)
766 (symbol_search_name): Add Ada case.
767
768 2004-10-01 Andrew Cagney <cagney@gnu.org>
769
770 * Makefile.in (COMMON_OBS): Add inf-child.o.
771 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
772 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
773 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
774 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
775 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
776 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
777 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
778 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
779 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
780 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
781 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
782 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
783 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
784
785 * target.c (xfer_using_stratum): Change return type to LONGEST.
786 On each iteration offset, readbuf and writebuf.
787 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
788 partial_length, and read/modify/write predicate, update comments.
789 Pass buffer.word to ptrace write.
790
791 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
792
793 * symfile.c (init_filename_language_table): Add extensions for
794 Ada.
795 * defs.h (enum language): Add language_ada.
796 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
797 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
798 (add_symbols_from_enclosing_procs): Make a no-op for now.
799 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
800 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
801 (find_line_in_linetable, find_next_line_in_linetable)
802 (read_all_symtabs, is_plausible_func_for_line)
803 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
804 (is_runtime_sym_defined, check_size): Remove declaration.
805 (function_name_from_pc, ada_translate_error_message)
806 (ada_lookup_minimal_symbol): Remove definition.
807 (ada_add_block_symbols): Remove useless label.
808 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
809 useless declaration.
810 (ada_is_exception_sym): Likewise.
811
812 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
813
814 Add m32r-linux support.
815 * configure.tgt: Add m32r*-*-linux*.
816 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
817 and m32r-linux-tdep.c.
818 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
819 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
820 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
821 m32r-linux-tdep.c.
822 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
823 config/m32r/linux.mh, config/m32r/linux.mt,
824 config/m32r/nm-linux.h: New files.
825
826 2004-09-30 Joel Brobecker <brobecker@gnat.com>
827
828 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
829 (mips32_fetch_instruction): Remove, unused.
830
831 2004-09-30 Joel Brobecker <brobecker@gnat.com>
832
833 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
834 conditions that will always be true.
835
836 2004-09-30 Mark Kettenis <kettenis@gnu.org>
837
838 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
839 (vaxbsd_fetch_inferior_registers): Rename from
840 fetch_inferior_registers. Make static.
841 (vaxbsd_store_inferior_registers): Rename from
842 store_inferior_registers. Make static.
843 (_initialize_vaxbsd_nat): Construct and add target vector.
844 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
845 inftarg.o. Add inf-child.o and inf-ptrace.o.
846 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
847 inftarg.o. Add inf-child.o and inf-ptrace.o.
848 (NAT_FILE): Remove.
849 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
850 inftarg.o. Add inf-child.o and inf-ptrace.o.
851 (NAT_FILE): Remove.
852 * Makefile.in (vaxbsd-nat.o): Update dependencies.
853
854 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
855 (m88kbsd_fetch_inferior_registers): Rename from
856 fetch_inferior_registers. Make static.
857 (m88kbsd_store_inferior_registers): Rename from
858 store_inferior_registers. Make static.
859 (_initialize_m88kbsd_nat): New prototype and function.
860 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
861 inftarg.o. Add inf-child.o and inf-ptrace.o.
862 (NAT_FILE): Remove.
863 * Makefile.in (m88kbsd-nat.o): Update dependencies.
864
865 2004-09-30 Andrew Cagney <cagney@gnu.org>
866
867 * target.c (target_xfer_partial): New function.
868 (target_read_memory_partial, target_write_memory_partial)
869 (default_xfer_partial, target_read_partial, target_write_partial)
870 (xfer_using_stratum): Use.
871 (debug_to_xfer_partial): Delete function.
872 (setup_target_debug): Do not override to_xfer_partial.
873
874 2004-09-30 Mark Kettenis <kettenis@chello.nl>
875
876 * fork-child.c: Update copyright year. Fix coding style.
877
878 2004-09-29 Mark Kettenis <kettenis@gnu.org>
879
880 * defs.h (msavestring, mstrsave): Remove prototypes.
881 * utils.c (msavestring, mstrsave): Remove functions.
882 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
883 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
884 of mstrsave.
885 * source.c (find_and_open_source): Use xstrdup instead of
886 mstrsave.
887
888 2004-09-30 Andrew Cagney <cagney@gnu.org>
889
890 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
891 (inf_ptrace_xfer_memory): Delete.
892 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
893 (target_read_memory, target_write_memory): Use xfer_using_stratum
894 when target_xfer_partial_p.
895 (debug_target): Move to start of file.
896 (target_read_memory_partial, target_write_memory_partial): Use
897 to_xfer_partial when target_xfer_partial_p.
898
899 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
900 inf_ptrace_xfer_memory with equivalent code.
901 * inftarg.c (child_xfer_partial): When performing a write, pass
902 writebuf to child_xfer_memory.
903
904 * target.c (target_read_string): Use target_read_memory instead of
905 target_xfer_memory.
906
907 2004-09-29 Andrew Cagney <cagney@gnu.org>
908
909 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
910 the address of status.
911
912 * infptrace.c (ptrace_wait): Mention problem with HPUX.
913 (kill_inferior): Inline ptrace_wait call.
914 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
915 * inftarg.c (child_wait): Inline ptrace_wait call.
916
917 * target.h (struct target_ops): Delete field to_post_wait.
918 (target_post_wait): Delete macro.
919 (child_post_wait): Delete declaration.
920 * target.c (update_current_target, update_current_target)
921 (debug_to_post_wait, setup_target_debug): Delete functions and
922 references.
923 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
924 * inftarg.c (child_post_wait): Delete.
925 (init_child_ops): Do not set to_post_wait.
926 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
927 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
928 * inf-child.c (inf_child_post_wait): Delete.
929 (inf_child_target): Do not set to_post_wait.
930 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
931 (inf_ptrace_target): Do not set to_post_wait.
932
933 * wince.c (child_ops): Delete.
934 * win32-nat.c (child_ops): Delete.
935
936 * inftarg.c (inftarg_set_find_memory_regions)
937 (inftarg_set_make_corefile_notes): Delete functions.
938 (_initialize_linux_nat): Inline calls.
939
940 * target.h (child_ops): Declare.
941 * inftarg.c (child_ops): Move from here ...
942 * target.c (child_ops): ... to here.
943 * wince.c (child_ops): Delete extern declaration.
944 * win32-nat.c (child_ops): Delete extern declaration.
945 * linux-nat.c (child_ops): Delete extern declaration.
946 * hpux-thread.c (child_ops): Delete extern declaration.
947
948 2004-09-28 Mark Kettenis <kettenis@gnu.org>
949
950 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
951
952 2004-09-28 Mark Kettenis <kettenis@gnu.org>
953
954 * configure.in: Only set host_makefile_frag when building a native
955 debugger.
956 * configure: Regenerate.
957
958 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
959 for OpenBSD ELF.
960
961 2004-09-28 Andrew Cagney <cagney@gnu.org>
962
963 Problem identified by Paul Hilfinger.
964 * Makefile.in (ada_lex_c): Define.
965 (ada-lex.o): Delete rule.
966
967 * linux-proc.c: Delete file.
968 * Makefile.in: Update.
969 * config/sparc/linux64.mh (NATDEPFILES):
970 * config/sparc/linux.mh (NATDEPFILES): Update.
971 * config/s390/s390.mh (NATDEPFILES): Update.
972 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
973 * config/powerpc/linux.mh (NATDEPFILES): Update.
974 * config/pa/linux.mh (NATDEPFILES): Update.
975 * config/mips/linux.mh (NATDEPFILES): Update.
976 * config/m68k/linux.mh (NATDEPFILES): Update.
977 * config/ia64/linux.mh (NATDEPFILES): Update.
978 * config/i386/linux64.mh (NATDEPFILES): Update.
979 * config/i386/linux.mh (NATDEPFILES): Update.
980 * config/arm/linux.mh (NATDEPFILES): Update.
981 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
982 * linux-nat.c: Update copyright. Include <sys/param.h>,
983 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
984 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
985 (O_LARGEFILE): Possibly define.
986 (_initialize_linux_nat, linux_proc_pending_signals)
987 (add_line_to_sigset, linux_proc_xfer_memory)
988 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
989 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
990 (struct linux_corefile_thread_data)
991 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
992 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
993
994 2004-09-16 Andrew Cagney <cagney@gnu.org>
995
996 * lin-lwp.c: Delete file.
997 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
998 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
999 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1000 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1001 (linux_nat_attach, detach_callback, linux_nat_detach)
1002 (resume_callback, resume_clear_callback, linux_nat_resume)
1003 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1004 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1005 (status_callback, running_callback, count_events_callback)
1006 (select_singlestep_lwp_callback, select_event_lwp_callback)
1007 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1008 (child_wait, stop_and_resume_callback, linux_nat_wait)
1009 (kill_callback, kill_wait_callback, linux_nat_kill)
1010 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1011 (linux_nat_xfer_memory, linux_nat_thread_alive)
1012 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1013 (_initialize_linux_nat): New functions.
1014 * Makefile.in: Update all dependencies.
1015 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1016 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1017 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1018 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1019 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1020 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1021 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1022 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1023 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1024 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1025 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1026 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1027 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1028
1029 2004-09-27 Mark Kettenis <kettenis@gnu.org>
1030
1031 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1032 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1033
1034 * configure.in: Don't comment out NATDEPFILES in the generated
1035 Makefile if NAT_FILE is unset.
1036 * configure: Regenerate.
1037
1038 2004-09-27 Andrew Cagney <cagney@gnu.org>
1039
1040 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1041 (insert_step_resume_breakpoint): Delete.
1042 (insert_step_resume_breakpoint_at_frame): New function.
1043 (insert_step_resume_breakpoint_at_sal): New function.
1044 (handle_inferior_event, step_into_function)
1045 (insert_step_resume_breakpoint): Simplify by using same.
1046
1047 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1048
1049 2004-09-26 Mark Kettenis <kettenis@gnu.org>
1050
1051 * fbsd-proc.c: Remove file.
1052 * Makefile.in (fbsd-proc.o): Remove dependency.
1053
1054 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1055 code together.
1056
1057 * config/i386/nm-fbsd64.h: Remove file.
1058 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1059
1060 2004-09-26 Mark Kettenis <kettenis@gnu.org>
1061
1062 * amd64-nat.h: Update copyright year.
1063 (amd64bsd_target): New prototype.
1064 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1065 (amd64bsd_target): New function.
1066 (amd64bsd_fetch_inferior_registers): Rename from
1067 fetch_inferior_registers. Make static.
1068 (amd64bsd_store_inferior_registers): Rename from
1069 store_inferior_registers. Make static.
1070 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1071 (_initialize_amd64fbsd_nat): Construct and add target vector.
1072 * amd64nbsd-nat.o: Include "target.h".
1073 (_initialize_amd64nbsd_nat): Construct and add target vector.
1074 * amd64obsd-nat.c: Include "target.h".
1075 (_initialize_amd64obsd_nat): Construct and add target vector.
1076 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1077 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1078 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1079 fbsd-nat.o.
1080 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1081 Remove infptrace.o and inftarg.o. Add inf-child.o and
1082 inf-ptrace.o.
1083 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1084 (amd64obsd-nat.o): Update dependencies.
1085
1086 2004-09-25 Mark Kettenis <kettenis@gnu.org>
1087
1088 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1089 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1090 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1091 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1092 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1093
1094 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1095 Inline attach call.
1096 (inf_ptrace_detach): Inline detach call.
1097
1098 * configure.in: Check for waddstr instead of mvwaddstr when
1099 searching for curses library. Check for wborder.
1100 * configure, config.in: Regenerate.
1101 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1102 available.
1103
1104 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1105
1106 2004-09-24 Robert Picco <Robert.Picco@hp.com>
1107
1108 Committed by Andrew Cagney.
1109 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1110 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1111 configuration.
1112 (fetch_register_using_p): Implement 'p' packet. Based on code by
1113 Fernando Nasser.
1114 (remote_fetch_registers): Call fetch_register_using_p.
1115 (init_all_packet_configs, show_remote_cmd)
1116 (_initialize_remote): Add p-packet.
1117
1118 2004-09-24 Mark Kettenis <kettenis@gnu.org>
1119
1120 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1121 instead of call_ptrace. Call wait directly instead of
1122 ptrace_wait.
1123 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1124 (inf_ptrace_wait): Inline ptrace_wait call.
1125
1126 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1127
1128 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1129 rolled back instead.
1130
1131 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1132
1133 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1134 the new argument order.
1135
1136 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
1137
1138 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1139 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1140 (struct gdbarch_tdep): Remove.
1141 (struct xstormy16_frame_cache): New frame cache structure.
1142 (xstormy16_register_byte, xstormy16_register_raw_size)
1143 (xstormy16_reg_virtual_type, xstormy16_register_type)
1144 (xstormy16_push_arguments, xstormy16_push_return_address)
1145 (xstormy16_pop_frame, xstormy16_store_struct_return)
1146 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1147 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1148 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1149 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1150 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1151 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1152 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1153 (xstormy16_extract_return_value, xstormy16_store_return_value):
1154 Regcachify. Drop useless struct convention handling.
1155 (xstormy16_register_type, xstormy16_return_value)
1156 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1157 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1158 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1159 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1160 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1161 (xstormy16_unwind_dummy_id) : New functions.
1162 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1163 of xstormy16_scan_prologue.
1164 (xstormy16_frame_unwind): New frame_unwind structure.
1165 (xstormy16_frame_base): New frame_base structure.
1166 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1167 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1168
1169 2004-09-22 Mark Kettenis <kettenis@gnu.org>
1170
1171 * language.c (language_gdbarch_post_init): Fix off-by one error.
1172
1173 2004-09-21 Daniel Jacobowitz <dan@debian.org>
1174
1175 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1176 (struct dwarf2_offset_and_type): New.
1177 (set_die_type, reset_die_and_siblings_types, get_die_type)
1178 (offset_and_type_hash, offset_and_type_eq): New functions.
1179 (read_structure_type, read_enumeration_type, read_array_type)
1180 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1181 (read_tag_reference_type, read_tag_const_type)
1182 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1183 (read_typedef, read_base_type, read_subrange_type): Use
1184 set_die_type.
1185
1186 2004-09-20 Daniel Jacobowitz <dan@debian.org>
1187
1188 * Makefile.in (dwarf2read.o): Update dependencies.
1189 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1190 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1191 and read_in_chain.
1192 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1193 mark, and has_form_ref_addr.
1194 (struct dwarf2_per_cu_data): New.
1195 (dwarf2_max_cache_age): New.
1196 (dwarf2_build_psymtabs_hard): Free cached compilation units
1197 after loading. Create and manage the list of compilation units.
1198 Remove unnecessary NULL initialization. Fix indentation.
1199 (psymtab_to_symtab_1): Initialize all of CU.
1200 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1201 (find_partial_die): Use dwarf2_find_containing_comp_unit
1202 and load_comp_unit.
1203 (free_stack_comp_unit): Update comments. Clear the per-cu
1204 pointer. Handle aging.
1205 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1206 (age_cached_comp_units, free_one_cached_comp_unit)
1207 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1208 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1209 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1210 (show_dwarf2_cmd): New.
1211 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1212 and "maint show dwarf2 max-cache-age".
1213 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1214 externs.
1215 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1216 global.
1217
1218 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1219
1220 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1221 and dwarf2_cu struct pointer as arguments. Change function to use
1222 obstack if provided and use dwarf2_cu to determine language-specific
1223 separator.
1224 (partial_die_parent_scope): Change comment to include java. Use
1225 new version of typename_concat instead of obconcat.
1226 (partial_die_full_name): Use typename_concat.
1227 (read_namespace): Ditto.
1228 (read_enumeration_type): Use typename_concat instead of obconcat.
1229 (new_symbol): Ditto.
1230 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1231 (guess_structure_name): Ditto.
1232 (read_subroutine_type): Ditto.
1233 (read_structure_type): Ditto.
1234 (is_vtable_name): Add Java support.
1235 (determine_class_name): Switch to new typename_concat call.
1236 (determine_prefix): Switch to new typename_concat call.
1237 * jv-exp.y (FuncStart): New pattern.
1238 (MethodInvocation): Add support for simple function calls. Change
1239 warning message for other forms of inferior call currently not
1240 supported.
1241 * valarith.c (value_subscript): Treat an array with upper-bound
1242 of -1 as unknown size.
1243
1244 2004-09-20 Daniel Jacobowitz <dan@debian.org>
1245
1246 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1247 (lookup_partial_symtab): Use symtab_to_fullname.
1248
1249 2004-09-19 Jim Blandy <jimb@redhat.com>
1250
1251 * minsyms.c (lookup_minimal_symbol): Doc fix.
1252
1253 2004-09-20 Andrew Cagney <cagney@gnu.org>
1254
1255 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1256 CHILD_RESUME.
1257 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1258 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1259 KILL_INFERIOR.
1260 * infptrace.c: Update.
1261
1262 2004-09-19 Daniel Jacobowitz <dan@debian.org>
1263
1264 * symtab.c (output_source_filename): Mark first argument as const.
1265 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1266 for "info sources" output.
1267
1268 2004-09-20 Mark Kettenis <kettenis@gnu.org>
1269
1270 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1271 <machine/vmparam.h>.
1272 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1273 (register_u_addr): Remove prototype.
1274
1275 2004-09-19 Mark Kettenis <kettenis@gnu.org>
1276
1277 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1278 (i386bsd_fetch_inferior_registers): Rename from
1279 fetch_inferior_registers. Make static.
1280 (i386bsd_store_inferior_registers): Rename from
1281 store_inferior_registers. Make static.
1282 (i386bsd_target): New function.
1283 * i386bsd-nat.h: New file.
1284 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1285 "i386bsd-nat.h".
1286 (i386fbsd_resume): Rename from child_resume. Make static.
1287 (_initialize_i386fbsd_nat): Construct and add target vector.
1288 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1289 (_initialize_i386nbsd_nat): Construct and add target vector.
1290 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1291 Remove defines.
1292 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1293 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1294 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1295 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1296 (LOADLIBES): New variable.
1297 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1298 inf-ptrace.o. Remove inftarg.o.
1299 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1300 inf-ptrace.o. Remove inftarg.o.
1301 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1302 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1303 (LOADLIBES): New variable.
1304 * Makefile.in (i386bsd_nat_h): New variable.
1305 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1306 dependencies.
1307
1308 * sparc64nbsd-tdep.c: Include "objfiles.h".
1309 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1310 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1311 svr4_lp64_fetch_link_map_offsets.
1312 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1313 "nbsd-tdep.h".
1314 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1315 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1316 svr4_lp64_fetch_link_map_offsets.
1317 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1318 dependencies.
1319
1320 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1321 * fbsd-nat.h: New file.
1322 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1323 (fbsd_nat_h): New variable.
1324 (fbsd-nat.o): New dependency.
1325
1326 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1327 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1328
1329 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1330 comment.
1331
1332 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1333
1334 * ada-exp.y (type_int): New function to add layer of abstraction
1335 around references to expression types.
1336 (type_long): Ditto.
1337 (type_long_long): Ditto.
1338 (type_float): Ditto.
1339 (type_double): Ditto.
1340 (type_long_double): Ditto.
1341 (type_char): Ditto.
1342 (type_system_address): Ditto.
1343 (simple_exp): Use type_* functions in place of builtin_*
1344 variables.
1345 (exp): Ditto.
1346 (write_var_from_name): Ditto.
1347 (write_object_renaming): Ditto.
1348 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1349 declaration.
1350 (build_ada_types): Remove, replacing with...
1351 (ada_language_arch_info): New function to initialize primitive
1352 type vector in language_arch_info.
1353 (ada_array_length): Remove use of builtin_type_ada_int.
1354 (value_pos_atr): Ditto.
1355 (ada_evaluate_subexp): Ditto.
1356 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1357 builtin_type_ada_long_long, builtin_type_ada_char,
1358 builtin_type_ada_float, builtin_type_ada_double,
1359 builtin_type_ada_long_double, builtin_type_ada_natural,
1360 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1361 (ada_builtin_types): Remove.
1362 (ada_language_defn): Remove entries for la_builtin_type_vector and
1363 string_char_type and use ada_language_arch_info.
1364 (_initialize_ada_language): Do type-vector initialization along
1365 the lines of c-lang.c.
1366 (ada_create_fundamental_type): Break up line.
1367 (ada_dump_symtab): Remove unused function.
1368 (enum ada_primitive_types): Define.
1369 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1370 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1371 builtin_type_ada_float, builtin_type_ada_double,
1372 builtin_type_ada_long_double, builtin_type_ada_natural,
1373 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1374 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1375 (processInt): Ditto.
1376 (processReal): Ditto.
1377 (name_lookup): Ditto.
1378 * ada-typeprint.c (print_range): Use builtin_type_int, not
1379 builtin_type_ada_int.
1380
1381 2004-09-18 Mark Kettenis <kettenis@gnu.org>
1382
1383 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1384
1385 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1386 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1387 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1388 * configure.in: Improve checks for curses library by checking for
1389 mvwaddstr instead of initscr. Drop HP curses in favour of
1390 standard curses on HP-UX.
1391 * configure: Regenerated.
1392
1393 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1394
1395 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1396 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1397 Minor formatting changes.
1398 (empty_array): Slight rewrite for formatting.
1399 (emit_char,parse,ada_language_defn,build_ada_types,
1400 ada_is_exception_sym, _initialize_ada_language): Move
1401 definitions around.
1402 (ada_dump_symtab): Remove unused definition.
1403 (ada_maybe_exception_partial_symbol): Remove unused definition.
1404
1405 2004-09-16 Andrew Cagney <cagney@gnu.org>
1406
1407 * inf-child.c: Include "gdb_string.h".
1408 (inf_child_core_file_to_sym_file): Delete.
1409 (inf_child_target): Set to_fetch_registers and to_store_registers.
1410 * inf-ptrace.c: Include "gdb_string.h".
1411 * Makefile.in: Update all dependencies.
1412
1413 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1414 problem.
1415
1416 2004-09-14 Joel Brobecker <brobecker@gnat.com>
1417
1418 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1419 call to heuristic_proc_desc. Remove code that became redundant
1420 as a consequence.
1421 (read_next_frame_reg): Remove special case for SP_REGNUM.
1422 (set_reg_offset): Fix small typo.
1423 (reset_saved_regs): New procedure.
1424 (mips32_heuristic_proc_desc): No longer compute a fake
1425 procedure descriptor. Compute the full frame cache instead.
1426 Some minor comment reformatting.
1427
1428 2004-09-14 Andrew Cagney <cagney@gnu.org>
1429
1430 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1431 maintainer.
1432
1433 * thread-db.c (thread_db_new_objfile): Assume that there is a
1434 child process.
1435
1436 2004-09-13 Jim Blandy <jimb@redhat.com>
1437
1438 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1439 so that its storage isn't referenced after its lifetime ends.
1440
1441 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1442 and never assigned to. Delete it, and the 'if (use_buffer)'
1443 clauses. Delete 'raw_buffer', since it is now unused.
1444
1445 2004-09-13 Andrew Cagney <cagney@gnu.org>
1446
1447 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1448 * configure: Re-generate.
1449 * nlm/Makefile.in (TAGS): Update.
1450 * Makefile.in (TAGS): Update.
1451 * config/vax/nbsd.mt (TM_FILE): Update.
1452 * config/sparc/vxworks.mt (TM_FILE): Update.
1453 * config/sparc/sol2.mt (TM_FILE): Update.
1454 * config/sparc/sol2-64.mt (TM_FILE): Update.
1455 * config/sparc/obsd64.mt (TM_FILE): Update.
1456 * config/sparc/obsd.mt (TM_FILE): Update.
1457 * config/sparc/nbsd64.mt (TM_FILE): Update.
1458 * config/sparc/nbsd.mt (TM_FILE): Update.
1459 * config/sparc/linux64.mt (TM_FILE): Update.
1460 * config/sparc/linux.mt (TM_FILE): Update.
1461 * config/sparc/fbsd.mt (TM_FILE): Update.
1462 * config/sh/wince.mt (TM_FILE): Update.
1463 * config/sh/nbsd.mt (TM_FILE): Update.
1464 * config/sh/linux.mt (TM_FILE): Update.
1465 * config/sh/embed.mt (TM_FILE): Update.
1466 * config/s390/s390.mt (TM_FILE): Update.
1467 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1468 * config/rs6000/rs6000.mt (TM_FILE): Update.
1469 * config/rs6000/aix4.mt (TM_FILE): Update.
1470 * config/powerpc/vxworks.mt (TM_FILE): Update.
1471 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1472 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1473 * config/powerpc/obsd.mt (TM_FILE): Update.
1474 * config/powerpc/nbsd.mt (TM_FILE): Update.
1475 * config/powerpc/linux.mt (TM_FILE): Update.
1476 * config/powerpc/aix.mt (TM_FILE): Update.
1477 * config/pa/obsd.mt (TM_FILE): Update.
1478 * config/pa/linux.mt (TM_FILE): Update.
1479 * config/pa/hppahpux.mt (TM_FILE): Update.
1480 * config/pa/hppa64.mt (TM_FILE): Update.
1481 * config/pa/hppa.mt (TM_FILE): Update.
1482 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1483 * config/mips/wince.mt (TM_FILE): Update.
1484 * config/mips/vxmips.mt (TM_FILE): Update.
1485 * config/mips/nbsd.mt (TM_FILE): Update.
1486 * config/mips/linux.mt (TM_FILE): Update.
1487 * config/mips/irix6.mt (TM_FILE): Update.
1488 * config/mips/irix5.mt (TM_FILE): Update.
1489 * config/mips/embed.mt (TM_FILE): Update.
1490 * config/m68k/vxworks68.mt (TM_FILE): Update.
1491 * config/m68k/st2000.mt (TM_FILE): Update.
1492 * config/m68k/os68k.mt (TM_FILE): Update.
1493 * config/m68k/obsd.mt (TM_FILE): Update.
1494 * config/m68k/nbsd.mt (TM_FILE): Update.
1495 * config/m68k/monitor.mt (TM_FILE): Update.
1496 * config/m68k/linux.mt (TM_FILE): Update.
1497 * config/m68k/cisco.mt (TM_FILE): Update.
1498 * config/ia64/linux.mt (TM_FILE): Update.
1499 * config/ia64/aix.mt (TM_FILE): Update.
1500 * config/ia64/ia64.mt (TM_FILE): Update.
1501 * config/i386/vxworks.mt (TM_FILE): Update.
1502 * config/i386/obsd64.mt (TM_FILE): Update.
1503 * config/i386/obsd.mt (TM_FILE): Update.
1504 * config/i386/nto.mt (TM_FILE): Update.
1505 * config/i386/nbsd64.mt (TM_FILE): Update.
1506 * config/i386/nbsd.mt (TM_FILE): Update.
1507 * config/i386/linux64.mt (TM_FILE): Update.
1508 * config/i386/linux.mt (TM_FILE): Update.
1509 * config/i386/i386sol2.mt (TM_FILE): Update.
1510 * config/i386/i386lynx.mt (TM_FILE): Update.
1511 * config/i386/fbsd64.mt (TM_FILE): Update.
1512 * config/i386/fbsd.mt (TM_FILE): Update.
1513 * config/i386/cygwin.mt (TM_FILE): Update.
1514 * config/h8300/h8300.mt (TM_FILE): Update.
1515 * config/frv/frv.mt (TM_FILE): Update.
1516 * config/cris/cris.mt (TM_FILE): Update.
1517 * config/arm/wince.mt (TM_FILE): Update.
1518 * config/arm/nbsd.mt (TM_FILE): Update.
1519 * config/arm/linux.mt (TM_FILE): Update.
1520 * config/arm/embed.mt (TM_FILE): Update.
1521 * config/alpha/nbsd.mt (TM_FILE): Update.
1522 * config/alpha/fbsd.mt (TM_FILE): Update.
1523 * config/alpha/alpha.mt (TM_FILE): Update.
1524 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1525 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1526
1527 Eliminate event_loop_p, always has the value 1.
1528 * defs.h (event_loop_p): Delete macro.
1529 * breakpoint.c (until_break_command): Simplify.
1530 * utils.c (prompt_for_continue): Simplify.
1531 * tracepoint.c (read_actions): Simplify.
1532 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1533 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1534 (set_prompt, init_main): Simplify.
1535 (init_signals, disconnect): Delete, unused.
1536 * remote.c (remote_async_resume)
1537 (extended_remote_async_create_inferior): Simplify.
1538 * mi/mi-interp.c (mi_input): Delete, unused.
1539 (mi_interpreter_resume, mi_command_loop): Simplify.
1540 * interps.c (current_interp_command_loop): Simplify.
1541 * infrun.c (proceed): Simplify.
1542 * infcmd.c (run_command, continue_command, step_1, jump_command)
1543 (until_command, advance_command, finish_command)
1544 (interrupt_target_command): Simplify.
1545 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1546
1547 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1548 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1549 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1550 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1551 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1552 * mips-tdep.c (mips_dump_tdep): Do not print same.
1553
1554 2004-09-12 Andrew Cagney <cagney@gnu.org>
1555
1556 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1557 const.
1558 * Makefile.in (valprint.o): Delete explict rule.
1559
1560 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1561 reported by Dave Anderson.
1562
1563 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1564
1565 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1566
1567 2004-09-12 Salvador E. Tropea <set@users.sf.net>
1568 Andrew Cagney <cagney@gnu.org>
1569
1570 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1571 (mi_cmd_data_list_register_values)
1572 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1573 the register number computation.
1574
1575 2004-09-12 Andrew Cagney <cagney@gnu.org>
1576
1577 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1578 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1579 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1580 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1581 target.
1582 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1583 inf-ptrace.o and inf-child.o.
1584 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1585 * Makefile.in: Update dependencies.
1586
1587 2004-09-11 Andrew Cagney <cagney@gnu.org>
1588
1589 * language.c (hex_string, hex_string_custom): Move from here ...
1590 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1591 (CELLSIZE): Increase to 50.
1592 * language.h (hex_string, hex_string_custom): Move from here ...
1593 * defs.h: ... to here.
1594 * Makefile.in: Update all dependencies.
1595
1596 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1597
1598 * language.c (local_hex_format_custom): Remove.
1599 (local_hex_string): Rename to hex_string, use C format, and move to
1600 utils.c
1601 (local_hex_string_custom): Rename to hex_string_custom and change
1602 interface. Now uses C format. Move to utils.c
1603 (local_octal_format_custom): Remove.
1604 (local_decimal_format_custom): Remove.
1605 (unknown_language_defn): Remove language-specific number
1606 formatting entries.
1607 (auto_language_defn): Ditto.
1608 (local_language_defn): Ditto.
1609 * language.h (struct language_format_info): Delete declaration.
1610 (struct language_defn): Remove language_format_info fields
1611 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1612 (local_binary_format): Remove macro.
1613 (local_binary_format_prefix): Remove macro.
1614 (local_binary_format_specifier): Remove macro.
1615 (local_binary_format_suffix): Remove macro.
1616 (local_octal_format): Remove macro.
1617 (local_octal_format_prefix): Remove macro.
1618 (local_octal_format_specifier): Remove macro.
1619 (local_octal_format_suffix): Remove macro.
1620 (local_decimal_format): Remove macro.
1621 (local_decimal_format_prefix): Remove macro.
1622 (local_decimal_format_specifier): Remove macro.
1623 (local_decimal_format_suffix): Remove macro.
1624 (local_hex_format): Remove macro.
1625 (local_hex_format_prefix): Remove macro.
1626 (local_hex_format_specifier): Remove macro.
1627 (local_hex_format_suffix): Remove macro.
1628 (local_decimal_format_custom): Remove.
1629 (local_octal_format_custom): Remove.
1630 (local_hex_format_custom): Remove.
1631 (local_hex_string): Rename to hex_string and move to defs.h.
1632 (local_hex_string_custom): Rename to hex_string_custom, change
1633 interface, and move to defs.h.
1634 * utils.c: (int_string): New function.
1635 (hex_string): New function (from language.c).
1636 (hex_string_custom): New function (from language.c).
1637 (octal2str): New function.
1638 (decimal2str): Add width parameter.
1639 (paddr_u): Use new decimal2str interface.
1640 (paddr_d): Ditto.
1641 * defs.h (hex_string): Declare.
1642 (hex_string_custom): Declare.
1643 (int_string): Declare.
1644 * printcmd.c (print_scalar_formatted): Remove localized binary
1645 formatting.
1646 * valprint.c (print_longest): Use int_string.
1647 (print_floating): Use C hex format.
1648 (print_hex_chars): Ditto.
1649 (print_binary_chars): Remove language-specific formatting.
1650 (print_octal_chars): Use C octal format.
1651 (print_decimal_chars): Delocalize format.
1652 (print_decimal): Remove.
1653 * ada-lang.c (ada_language_defn): Remove language-specific number
1654 formatting entries.
1655 * p-lang.c (pascal_language_defn): Ditto.
1656 * c-lang.c (c_language_defn): Ditto.
1657 (cplus_language_defn): Ditto.
1658 (asm_language_defn): Ditto.
1659 (minimal_language_defn): Ditto.
1660 * f-lang.c (f_language_defn): Ditto.
1661 * jv-lang.c (java_language_defn): Ditto.
1662 * m2-lang.c (m2_language_defn): Ditto.
1663 * scm-lang.c (scm_language_defn): Ditto.
1664 * objc-lang.c (objc_language_defn): Ditto.
1665 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1666 new interface.
1667 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1668 * ui-out.c (ui_out_field_core_addr): Ditto.
1669 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1670 * exec.c (print_section_info): Ditto.
1671 * i387-tdep.c (print_i387_status_word): Ditto.
1672 (print_i387_control_word): Ditto.
1673 (i387_print_float_info): Ditto.
1674 * maint.c (maint_print_section_info): Ditto.
1675 * solib.c (info_sharedlibrary_command): Ditto.
1676 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1677 * symtab.c (print_msymbol_info): Ditto.
1678 * tracepoint.c (tracepoints_info): Ditto.
1679 * solib-frv.c (lm_base): Ditto.
1680 (frv_current_sos): Ditto.
1681 (enable_break2): Ditto.
1682 (enable_break): Ditto.
1683 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1684 (process_one_symbol): Ditto.
1685 * infcmd.c (program_info): Ditto.
1686 * mdebugread.c (parse_partial_symbols): Ditto.
1687 * symfile.c (add_symbol_file_command): Ditto.
1688 * cli/cli-cmds.c (edit_command): Ditto.
1689 (list_command): Ditto.
1690 * infcall.c (call_function_by_hand): Ditto.
1691 * remote-vx.c (vx_run_files_info): Ditto.
1692 (vx_wait): Ditto.
1693 (vx_attach): Ditto.
1694 (vx_detach): Ditto.
1695 (vx_kill): Ditto.
1696 * aix-thread.c (pdc_symbol_addrs): Ditto.
1697 (pdc_read_regs): Ditto.
1698 (pdc_write_regs): Ditto.
1699 (pdc_read_data): Ditto.
1700 (pdc_write_data): Ditto.
1701 * d10v-tdep.c (display_trace): Ditto.
1702 * rs6000-nat.c (find_toc_address): Ditto.
1703 * aix-thread.c: Don't include language.h.
1704 * buildsym.c: Ditto.
1705 * dbxread.c: Ditto.
1706 * mdebugread.c: Ditto.
1707 * rs6000-nat.c: Ditto.
1708 * buildsym.c (make_blockvector): Use renamed hex_string.
1709
1710 2004-09-10 Jason Molenda (jmolenda@apple.com)
1711
1712 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1713 chars after 'if' or 'while' commands in user-defined commands.
1714
1715 2004-09-08 Jim Blandy <jimb@redhat.com>
1716
1717 Fix bug reported and analyzed by Olivier Crete:
1718 * symfile.c (copy_section_addr_info): New function.
1719 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1720 original set of address arguments, instead of handwritten code
1721 that uses one length to allocate and a different length to
1722 initialize. Use make_cleanup_free_section_addr_info.
1723 * symfile.h (copy_section_addr_info): New declaration.
1724 * utils.c: #include "symfile.h".
1725 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1726 New functions.
1727 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1728 * Makefile.in (utils.o): Update dependencies.
1729
1730 2004-09-08 Andrew Cagney <cagney@gnu.org>
1731
1732 * thread-db.c (keep_thread_db): Delete.
1733 (thread_db_new_objfile, thread_db_create_inferior)
1734 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1735
1736 2004-09-08 Mark Kettenis <kettenis@gnu.org>
1737
1738 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1739 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1740 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1741 (i386_frameless_signal_p): Remove prototype.
1742 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1743 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1744 I386_SSE_NUM_REGS.
1745 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1746 instead of FP0_REGNUM.
1747 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1748 of FP0_REGNUM and FPC_REGNUM.
1749
1750 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1751 (sunos_solib_create_inferior_hook): Don't call
1752 sunos_relocate_main_executable.
1753
1754 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1755 solib_svr4_fetch_link_map_offsets to
1756 svr4_ilp32_fetch_link_map_offsets.
1757 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1758 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1759 svr4_ilp32_fetch_link_map_offsets.
1760 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1761
1762 2004-09-07 Jim Blandy <jimb@redhat.com>
1763
1764 * frame.h (frame_register): Doc fix.
1765
1766 2004-09-07 Andrew Cagney <cagney@gnu.org>
1767
1768 * vx-share/wait.h: Delete #ifdef USG.
1769 * utils.c (request_quit): Ditto.
1770 * tui/tui.c (tui_reset): Ditto.
1771 * remote.c: Ditto.
1772 * remote-sds.c: Ditto.
1773 * remote-rdi.c: Ditto.
1774 * mdebugread.c: Ditto.
1775 * m68klinux-nat.c: Ditto.
1776 * infttrace.c: Ditto.
1777 * infptrace.c: Ditto.
1778 * i386v-nat.c: Ditto.
1779 * exec.c: Ditto.
1780 * dbxread.c: Ditto.
1781 * core-aout.c: Ditto.
1782
1783 2004-09-05 Joel Brobecker <brobecker@gnat.com>
1784
1785 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1786 heuristic_proc_desc.
1787 (mips_insn32_frame_cache): Likewise.
1788
1789 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1790
1791 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1792 left behind by error.
1793
1794 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1795
1796 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1797 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1798
1799 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1800
1801 * config/rs6000/xm-aix4.h: Remove this file.
1802 * config/rs6000/aix4.mh (XM_FILE): Delete.
1803
1804 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1805
1806 * config/rs6000/xm-rs6000.h: Remove this file.
1807 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1808
1809 2004-09-03 Andrew Cagney <cagney@gnu.org>
1810
1811 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1812 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1813 only use.
1814
1815 * mips-tdep.c (temp_saved_regs): Delete.
1816 (set_reg_offset): Replace saved_regs parameter with this_cache.
1817 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1818 (mips32_heuristic_proc_desc): Add this_cache parameter.
1819 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1820 (after_prologue): Pass a NULL this_cache.
1821
1822 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1823 non-kernel trap prologues.
1824
1825 * mips-tdep.c (find_proc_desc): Delete function.
1826 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1827 simplify.
1828 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1829 mips_insn32_frame_cache.
1830
1831 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
1832 Simplify as NEXT_FRAME is NULL.
1833 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1834
1835 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1836 local variable.
1837 (mips_skip_prologue): Update.
1838
1839 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1840 "cur_frame" parameter.
1841 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1842 (mips_insn32_frame_cache, find_proc_desc): Update
1843
1844 * config/vax/nm-obsd.h: Delete file.
1845 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1846 * config/vax/nm-nbsd.h: Delete file.
1847 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1848 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1849 * config/sh/nm-nbsd.h: Delete file.
1850 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1851 * config/rs6000/nm-rs6000ly.h: Delete file.
1852 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1853 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1854 * config/powerpc/nm-obsd.h: Delete file.
1855 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1856 * config/powerpc/nm-nbsd.h: Delete file.
1857 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1858 * config/pa/nm-obsd.h: Delete file.
1859 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1860 * config/mips/nm-nbsd.h: Delete file.
1861 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1862 * config/m88k/nm-obsd.h: Delete file.
1863 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1864 * config/m68k/nm-nbsd.h: Delete file.
1865 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1866 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1867 * config/i386/nm-nbsd.h: Delete file.
1868 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1869 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1870 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1871 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1872 * config/i386/nm-i386lynx.h: Delete file.
1873 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1874 * config/arm/nm-nbsd.h: Delete file.
1875 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1876 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1877
1878 * config/i386/tm-fbsd.h: Delete file.
1879 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1880 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1881
1882 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1883 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1884 * config/rs6000/aix4.mt (TM_FILE): Set to
1885 config/rs6000/tm-rs6000.h.
1886 * config/powerpc/tm-ppc-aix.h: Delete file.
1887 * config/powerpc/aix.mt (TM_FILE): Set to
1888 config/rs6000/tm-rs6000.h.
1889 * config/m68k/tm-linux.h: Delete file.
1890 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1891 * config/i386/tm-linux64.h: Delete file.
1892 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1893 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1894
1895 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1896 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1897 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1898 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1899 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1900 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1901 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1902 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1903 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1904
1905 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1906 gdb_host_cpu.
1907
1908 2004-09-02 Joel Brobecker <brobecker@gnat.com>
1909
1910 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1911 Minor reformatting. Some code factoring.
1912
1913 2004-09-02 Andrew Cagney <cagney@gnu.org>
1914
1915 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1916 * config/vax/tm-nbsd.h: Delete file.
1917 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1918 * config/sparc/tm-vxworks.h: Delete file.
1919 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1920 * config/sparc/tm-nbsd.h: Delete file.
1921 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1922 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1923 * config/sparc/tm-linux.h: Delete file.
1924 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1925 * config/s390/tm-linux.h: Delete file.
1926 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1927 * config/pa/tm-bsd.h: Delete file.
1928 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1929 * config/m68k/tm-obsd.h: Delete file.
1930 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1931 * config/m68k/tm-nbsd.h: Delete file.
1932 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1933 * config/i386/tm-vxworks.h: Delete file.
1934 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1935 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1936 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1937 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1938 * config/i386/tm-nbsd.h: Delete file.
1939 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1940 * config/i386/tm-i386lynx.h: Delete file.
1941 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1942 * config/cris/tm-cris.h: Delete file.
1943
1944 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1945 * configure: Re-generate.
1946 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1947 * config/arm/tm-nbsd.h: Delete file.
1948
1949 * config/powerpc/tm-ppcle-sim.h: Delete.
1950 * config/powerpc/tm-ppcle-eabi.h: Delete.
1951 * config/powerpc/tm-nbsd.h: Delete.
1952 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1953 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1954 tm-ppcle-eabi.h.
1955
1956 * config/i386/nto.mh (NAT_FILE): Delete.
1957 * config/i386/nm-nto.h: Delete.
1958
1959 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1960 * config/m68k/tm-os68k.h: Ditto.
1961 * config/m68k/tm-monitor.h: Ditto.
1962 * config/m68k/tm-cisco.h: Ditto.
1963 * config/m68k/st2000.mt (TM_FILE): Delete.
1964 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1965 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1966 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1967 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1968
1969 * config/m68k/tm-st2000.h: Delete.
1970 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1971 * config/sparc/fbsd.mt (TM_FILE): Delete.
1972 * config/sparc/tm-fbsd.h: Delete.
1973
1974 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1975 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1976 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1977
1978 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1979 GDB_TM_FILE and GDB_XM_FILE.
1980 * gdbarch.c: Re-generate.
1981 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1982 quotes in macro definition.
1983 * configure.in: Re-generate.
1984
1985 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1986 validating architecture methods.
1987 * gdbarch.c: Re-generate.
1988
1989 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1990 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1991 GDB_MULTI_ARCH_PARTIAL.
1992 * gdbarch.h: Re-generate.
1993
1994 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1995 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1996 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1997 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1998 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1999 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2000 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2001 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2002 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2003 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2004 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2005 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2006
2007 2004-09-01 Andrew Cagney <cagney@gnu.org>
2008
2009 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2010 and main_func_highpc.
2011 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2012 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2013 * nlmread.c (nlm_symfile_read): Update.
2014
2015 2004-09-01 Joel Brobecker <brobecker@gnat.com>
2016
2017 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2018 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2019 (find_proc_desc): Remove dead code.
2020
2021 2004-09-01 Joel Brobecker <brobecker@gnat.com>
2022
2023 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2024
2025 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2026
2027 * observer.sh: Add struct so_list declaration.
2028 * Makefile.in: Add dependencies on observer.h for solib.c and
2029 breakpoint.c.
2030 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2031 function.
2032 (_initialize_breakpoint): Register
2033 disable_breakpoints_in_unloaded_shlib as an observer of the
2034 "solib unloaded" observation event.
2035 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2036 call decode_line_1 so unfound breakpoint errors are silent.
2037 * solib.c (update_solib_list): When a solib is discovered to have
2038 been unloaded by the program, notify all observers of the
2039 "solib unloaded" observation event.
2040
2041 2004-09-01 Andrew Cagney <cagney@gnu.org>
2042
2043 * frame.c: Include "objfiles.h".
2044 (inside_main_func): New function.
2045 (get_prev_frame): Use new inside_main_func.
2046 * Makefile.in (frame.o): Update dependencies.
2047 * defs.h (inside_main_func): Delete declaration.
2048 * blockframe.c (inside_main_func): Delete function.
2049
2050 2004-08-31 Jim Blandy <jimb@redhat.com>
2051
2052 * dwarf2read.c (is_vtable_name): New function, based on logic from
2053 read_structure_type, but passing the correct length to strncmp,
2054 and using 'sizeof' instead of 'strlen'.
2055 (read_structure_type): Call it.
2056
2057 2004-08-31 Joel Brobecker <brobecker@gnat.com>
2058
2059 * config/powerpc/aix.mh: Add comment.
2060
2061 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2062
2063 * MAINTAINERS: Add self to Write-After-Approval.
2064
2065 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2066
2067 * MAINTAINERS: Add self to Write-After-Approval.
2068
2069 2004-08-30 Andrew Cagney <cagney@gnu.org>
2070
2071 Fix PR breakpoints/1757.
2072 * infrun.c (struct execution_control_state): Replace
2073 remove_breakpoints_on_following_step with
2074 step_after_step_resume_breakpoint.
2075 (init_execution_control_state): Update.
2076 (handle_inferior_event): For signals, when stepping off a
2077 breakpoint, set step_after_step_resume_breakpoint. When
2078 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2079 (keep_going): Delete code handling
2080 remove_breakpoints_on_following_step.
2081
2082 2004-08-29 David Lecomber <david@streamline-computing.com>
2083
2084 Fix PR gdb/648
2085 * language.h (enum array_ordering): New enum.
2086 * language.h (struct language_defn): New la_array_ordering
2087 attribute.
2088 * language.c (unknown_language_defn, auto_language_defn)
2089 (local_language_defn): Ditto.
2090 * ada-lang.c (ada_language_defn): Ditto.
2091 * c-lang.c (c_language_defn, cplus_language_defn)
2092 (asm_language_defn, minimal_language_defn): Ditto.
2093 * f-lang.c (f_language_defn): Ditto.
2094 * jv-lang.c (java_language_defn): Ditto.
2095 * m2-lang.c (f_language_defn): Ditto.
2096 * objc-lang.c (objc_language_defn): Ditto.
2097 * p-lang.c (pascal_language_defn): Ditto.
2098 * scm-lang.c (scm_language_defn): Ditto.
2099 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2100 oriented large to small in type structure.
2101 * dwarf2read.c (read_array_order): New function.
2102 (read_array_type): Use read_array_order to check row/column
2103 major ordering.
2104
2105 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2106
2107 * target.c (target_resize_to_sections): Check
2108 current_target.to_sections for an old value when updating.
2109
2110 2004-08-27 Joel Brobecker <brobecker@gnat.com>
2111
2112 * procfs.c (dbx_link_bpt_addr): New static global variable.
2113 (dbx_link_shadow_contents): New static global variable.
2114 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2115 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2116 if we just hit it.
2117 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2118 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2119 from run to run.
2120 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2121 after the inferior has been forked.
2122 (remove_dbx_link_breakpoint): New function.
2123 (dbx_link_addr): New function.
2124 (insert_dbx_link_bpt_in_file): New function.
2125 (insert_dbx_link_bpt_in_region): New function.
2126 (insert_dbx_link_breakpoint): New function.
2127 (proc_trace_syscalls_1): New function, extracted from
2128 proc_trace_syscalls.
2129 (proc_trace_syscalls): Replace extract code by call to
2130 proc_trace_syscalls_1.
2131 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2132 is no longer valid.
2133
2134 2004-08-25 Jim Blandy <jimb@redhat.com>
2135
2136 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2137
2138 2004-08-25 Andrew Cagney <cagney@gnu.org>
2139
2140 * infrun.c (struct execution_control_state): Delete field
2141 "stepping_through_sigtramp".
2142 (init_execution_control_state): Do not set same.
2143 (context_switch): Do not pass same to save_infrun_state and
2144 load_infrun_state.
2145 * gdbthread.h (struct thread_info): Delete field
2146 stepping_through_sigtramp.
2147 (save_infrun_state, load_infrun_state): Delete parameter
2148 stepping_through_sigtramp.
2149 * thread.c (load_infrun_state, save_infrun_state): Update.
2150
2151 * infrun.c: Re-indent. Move expression operators to the beginning
2152 of the line. Remove long disabled #if 0 code.
2153
2154 2004-08-24 Andrew Cagney <cagney@gnu.org>
2155
2156 * doublest.h (floatformat_ieee_quad): Rename
2157 floatformat_ia64_quad.
2158 * doublest.c (floatformat_ieee_quad): Rename
2159 floatformat_ia64_quad.
2160 (_initialize_doublest): Update.
2161
2162 2004-08-24 Jim Blandy <jimb@redhat.com>
2163
2164 * dwarf2expr.h (struct dwarf_expr_context): New members
2165 'num_pieces' and 'pieces', for returning the result of an
2166 expression that uses DW_OP_piece.
2167 (struct dwarf_expr_piece): New struct type.
2168 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2169 pieces.
2170 (free_dwarf_expr_context): Free pieces, if any.
2171 (add_piece): New function.
2172 (execute_stack_op): Implement DW_OP_piece.
2173 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2174 expression is a list of pieces, print an error message.
2175 (dwarf2_loc_desc_needs_frame): If the expression yields
2176 pieces, and any piece is in a register, then we need a frame.
2177
2178 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2179 the stack until we've decided what sort of result the evaluation
2180 has produced. Use separate variables, with more specific names.
2181
2182 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
2183
2184 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2185 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2186 (arm_netbsd_init_abi_common): Register them.
2187
2188 2004-08-22 Mark Kettenis <kettenis@gnu.org>
2189
2190 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2191
2192 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2193 safe_frame_unwind_memory instead of target_read_memory.
2194
2195 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2196 Reorder includes.
2197 (fetch_register, store_register): Remove prototypes.
2198 (child_resume): Reorganize code and comments such that it is
2199 grouped a bit more logically.
2200 (attach): Explicitly compare errno against 0.
2201 (detach): Likewise. Use perror_with_name instead of
2202 print_sys_errmsg.
2203 * Makefile.in (infptrace.o): Update dependencies.
2204
2205 * ia64-linux-nat.c: Update copyright year.
2206 (fetch_debug_register, store_debug_register)
2207 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2208 PTRACE_TYPE_ARG3.
2209 * config/ia64/nm-linux.h: Update copyright year.
2210 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2211
2212 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2213 from CORE_ADDR to struct frame_info *. Use
2214 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2215 (amd64_linux_sigtramp_p): Adjust for changed signature of
2216 and64_linux_sigtramp_start
2217
2218 * gdb_ptrace.h: GNU/Linux.
2219
2220 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2221 Remove defines.
2222
2223 * infptrace.c: Include "gdb_assert.h".
2224 (PTRACE_XFER_TYPE): Remove define.
2225 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2226 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2227 Tweak comment.
2228 (fetch_inferior_registers, store_inferior_registers): Remove
2229 redundant culry braces. Tweak comment. s/regno/regnum.
2230 * Makefile.in (infptrace.o): Update dependencies.
2231
2232 * configure.in: Change test for return type of ptrace to default
2233 to `long' instead of `int'.
2234 * configure: Regenerate.
2235
2236 2004-08-21 Mark Kettenis <kettenis@gnu.org>
2237
2238 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2239
2240 * configure.in: Check for ttrace function.
2241 * configure, config.in: Regenerate.
2242
2243 * gdb_ptrace.h: New file.
2244 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2245 <sys/ptrace.h>.
2246 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2247 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2248 (attach): Don't define PT_ATTACH.
2249 (detach): Don't define PT_DETACH.
2250 * Makefile.in (gdb_ptrace_h): New variable.
2251 (infptrace.o): Update dependencies.
2252
2253 2004-08-16 Mark Kettenis <kettenis@gnu.org>
2254
2255 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2256 instead of `int' if not already defined.
2257 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2258 PTRACE_TYPE_ARG3.
2259 * infptrace.c (call_ptrace): Revert change that replaced
2260 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2261
2262 2004-08-15 Mark Kettenis <kettenis@gnu.org>
2263
2264 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2265 Remove defines.
2266
2267 * linux-nat.c (kill_inferior): Add missing third and fourth
2268 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2269
2270 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2271 PTRACE_TYPE_RET.
2272
2273 * proc-why.c (proc_prettyfprint_why): Fix format string.
2274
2275 * solib-osf.c (osf_current_sos): Remove unsused label.
2276
2277 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2278 curses headers.
2279 * configure, config.in: Regenerate.
2280 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2281 <ncurses/ncurses.h>.
2282
2283 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2284 * config/nm-nbsd.h: Update copyright year.
2285 (PTRACE_ARG3_TYPE): Remove define.
2286
2287 * sparc-nat.c (fetch_inferior_registers)
2288 (store_inferior_registers, sparc_xfer_wcookie):
2289 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2290
2291 * alphabsd-nat.c (fetch_inferior_registers):
2292 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2293 PTRACE_TYPE_ARG3.
2294 * amd64bsd-nat.c (fetch_inferior_registers)
2295 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2296 PTRACE_TYPE_ARG3.
2297 * armnbsd-nat.c: Update copyright year.
2298 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2299 (store_register, store_regs, store_fp_register, store_fp_regs):
2300 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2301 * hppabsd-nat.c (fetch_inferior_registers)
2302 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2303 PTRACE_TYPE_ARG3.
2304 * i386bsd-nat.c (fetch_inferior_registers)
2305 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2306 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2307 * m68kbsd-nat.c (fetch_inferior_registers)
2308 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2309 PTRACE_TYPE_ARG3.
2310 * m88kbsd-nat.c (fetch_inferior_registers)
2311 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2312 PTRACE_TYPE_ARG3.
2313 * mipsnbsd-nat.c: Update copyright year.
2314 (fetch_inferior_registers, store_inferior_registers):
2315 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2316 * ns32knbsd-nat.c: Update copyright year.
2317 (fetch_inferior_registers, store_inferior_registers):
2318 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2319 * ppcnbsd-nat.c (fetch_inferior_registers):
2320 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2321 PTRACE_TYPE_ARG3.
2322 * ppcobsd-nat.c (fetch_inferior_registers):
2323 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2324 PTRACE_TYPE_ARG3.
2325 * shnbsd-nat.c: Update copyright year.
2326 (fetch_inferior_registers, store_inferior_registers):
2327 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2328 * vaxbsd-nat.c (fetch_inferior_registers)
2329 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2330 PTRACE_TYPE_ARG3.
2331
2332 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2333 PTRACE_TYPE_ARG3.
2334 * infptrace.c (call_ptrace, child_resume, attach, detach)
2335 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2336 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2337 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2338 PTRACE_TYPE_ARG3.
2339
2340 2004-08-14 Mark Kettenis <kettenis@gnu.org>
2341
2342 * defs.h: Remove out-of-date comment.
2343 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2344 [!GETENV_PROVIDED] (getenv): Remove prototype.
2345
2346 * standalone.c: Remove file.
2347 * Makefile.in (standalone.o): Remove dependency.
2348
2349 * i386-linux-nat.c (dummy_sse_values): Remove function and
2350 prototype.
2351 (i386_linux_dr_get): Fix typo in comment.
2352 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2353
2354 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2355
2356 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2357 from declaration.
2358 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2359 from definition.
2360
2361 2004-08-13 Mark Kettenis <kettenis@gnu.org>
2362
2363 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2364 parenthesis in definition.
2365 * configure: Regenerated.
2366
2367 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2368
2369 * PROBLEMS: Mention build/1411.
2370
2371 2004-08-09 Robert Millan <robertmh@gnu.org>
2372
2373 Committed by Nathanael Nerode.
2374 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2375 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2376
2377 2004-08-12 Andrew Cagney <cagney@gnu.org>
2378
2379 * NEWS: Mention fixes in GDB 6.2.1.
2380 * PROBLEMS: Remove mention of mips-irix.
2381
2382 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2383
2384 * config/powerpc/xm-aix.h: Delete.
2385 * config/powerpc/aix.mh (MH_FILE): Remove.
2386 * config/powerpc/aix432.mh (MH_FILE): Remove.
2387
2388 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2389
2390 * config/powerpc/aix.mh: Remove obsolete comment.
2391 * config/powerpc/aix432.mh: Likewise.
2392
2393 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2394
2395 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2396
2397 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2398
2399 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2400 this file is now empty.
2401 * config/xm-aix4.h: Remove, this file is no longer included
2402 anywhere.
2403
2404 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2405
2406 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2407 that file is now empty.
2408 (termdef): Remove prototype, function no longer used.
2409
2410 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2411
2412 * doc/gdbint.texinfo (Host Definition): Remove documentation
2413 for USE_O_NOCTTY, no longer used.
2414 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2415 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2416
2417 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2418
2419 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2420 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2421 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2422
2423 2004-08-11 Mark Kettenis <kettenis@gnu.org>
2424
2425 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2426 instead of FIVE_ARG_PTRACE.
2427
2428 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2429 (new_tty): Use O_NOCTTY unconditionally.
2430
2431 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2432
2433 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2434 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2435 fflush on stdout.
2436
2437 2004-08-10 Joel Brobecker <brobecker@gnat.com>
2438
2439 * xcoff_symfile_finish: Replace last call to xmfree by call
2440 to xfree.
2441
2442 2004-08-10 Andrew Cagney <cagney@gnu.org>
2443
2444 * main.c (captured_main): Delete call to init_malloc.
2445 * defs.h (init_malloc): Delete declaration.
2446 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2447 (init_malloc): Delete functions.
2448
2449 * defs.h (xmfree): Delete.
2450 * utils.c (xmfree): Delete function.
2451 (xfree): Inline calls to xmfree and mfree.
2452 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2453 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2454 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2455 * somread.c (som_symfile_finish): Ditto.
2456 * objfiles.c (allocate_objfile, free_objfile):
2457 * nlmread.c (nlm_symfile_finish): Ditto.
2458 * hpread.c (hpread_symfile_finish): Ditto.
2459 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2460 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2461 * coffread.c (coff_symfile_finish): Ditto.
2462
2463 * defs.h (xmcalloc): Delete declaration.
2464 * utils.c (xmcalloc): Delete.
2465 (xcalloc): Inline calls to xmcalloc and mcalloc.
2466 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2467 xcalloc and xfree.
2468 * symtab.c (create_demangled_names_hash): Ditto.
2469
2470 * defs.h (xmrealloc): Delete.
2471 * utils.c (xmrealloc): Delete.
2472 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2473 * symmisc.c (extend_psymbol_list): Use xrealloc.
2474 * source.c (find_source_lines): Ditto.
2475 * hpread.c (hpread_lookup_type): Ditto.
2476 * dbxread.c (add_bincl_to_list): Ditto.
2477
2478 * utils.c (xmmalloc): Delete.
2479 (xmalloc): Inline xmmalloc and mmalloc calls.
2480 (msavestring): Use xmalloc.
2481 * defs.h (xmmalloc): Delete declaration.
2482 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2483 xmmalloc.
2484 * symmisc.c (extend_psymbol_list): Ditto.
2485 * symfile.c (init_psymbol_list): Ditto.
2486 * source.c (find_source_lines): Ditto.
2487 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2488 * elfread.c (elf_symtab_read): Ditto.
2489 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2490 * coffread.c (coff_symfile_init): Ditto.
2491
2492 2004-08-10 David Carlton <carlton@bactrian.org>
2493
2494 * MAINTAINERS: Remove David Carlton from c++ testsuite
2495 maintainers.
2496
2497 2004-08-10 Jerome Guitton <guitton@gnat.com>
2498
2499 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2500 print a line feed before the prompt.
2501
2502 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2503
2504 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2505
2506 2004-08-09 Joel Brobecker <brobecker@gnat.com>
2507
2508 General cleanup of the AIX xm include file:
2509 * config/xm-aix4.h (fd_set): Remove undefine.
2510 Remove include of <sys/select.h>.
2511 (HAVE_TERMIO): Remove define.
2512 (USG): Likewise.
2513 (NULL): Remove redefine.
2514 (alloca): Remove #pragma.
2515 (vfork): Remove define.
2516 (termdef): Remove.
2517 (SIGWINCH_HANDLER): Remove.
2518 (SIGWINCH_HANDLER_BODY): Remove.
2519
2520 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2521
2522 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2523 GDB_OSABI_OPENBSD_ELF.
2524
2525 2004-08-07 Robert Millan <robertmh@gnu.org>
2526
2527 * bsd-kvm.c: Check for nlist.h before including it.
2528
2529 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2530
2531 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2532 sigcontext' offset consistency checks for ancient BSD.
2533
2534 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2535
2536 * configure.in: Check for <sys/types.h>. Check return and
2537 argument types of ptrace.
2538 * configure, config.in: Regenerate.
2539
2540 2004-08-09 Jim Blandy <jimb@redhat.com>
2541
2542 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2543 rs6000_register_sim_regno): Doc fixes.
2544
2545 2004-08-08 Joel Brobecker <brobecker@gnat.com>
2546
2547 * mips-tdep.c: Include "floatformat.h".
2548 (n32n64_floatformat_always_valid): New function.
2549 (floatformat_n32n64_long_double_big): New constant.
2550 (mips_gdbarch_init): Set size and format of long double
2551 for N32 and N64 ABIs.
2552 * Makefile.in (mips-tdep.o): Update dependencies.
2553
2554 2004-08-08 Andrew Cagney <cagney@gnu.org>
2555
2556 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2557 print. Improve script's error messages.
2558 * gdbarch.h: Re-generate.
2559
2560 * gdbarch.sh (pformat): New function.
2561 (float_format, double_format, long_double_format): List with bit
2562 members. Use pformat when printing.
2563 * gdbarch.c, gdbarch.h: Re-generate.
2564
2565 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2566
2567 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2568 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2569 (ppcnbsd_supply_pcb): New function.
2570 (_initialize_ppcnbsd_nat): New prototype and function.
2571 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2572 (LOADLIBES): New variable.
2573 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2574
2575 2004-08-08 Andrew Cagney <cagney@gnu.org>
2576
2577 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2578 (builtin_type_ieee_double, builtin_type_ia64_quad)
2579 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2580 BE/LE floating-point types.
2581 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2582 (builtin_type_ieee_double, builtin_type_ia64_quad)
2583 (builtin_type_ia64_spill): Declare.
2584 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2585 (floatformat_ieee_double, floatformat_arm_ext)
2586 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2587 of LE/BE floatformats.
2588 * doublest.h: (struct floatformat, floatformat_ieee_single)
2589 (floatformat_ieee_double, floatformat_arm_ext)
2590 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2591
2592 2004-08-08 Mark Kettenis <kettenis@gnu.org>
2593
2594 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2595
2596 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2597 instead of regcache_raw_supply when storing the registers.
2598
2599 * i386gnu-nat.c: Update copyright year.
2600 (gnu_store_registers): Don't use deprecated_registers and
2601 deprecated_registers_valid. Use regcache_valid_p and
2602 regcache_raw_supply instead.
2603
2604 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2605 frame_pc_unwind.
2606
2607 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2608 variables. Incapitalized "process".
2609
2610 * configure.in: Add cursesX to the list of possible curses libs.
2611 Add cursesX.h to the list of possible curses headers.
2612 * configure, config.in: Regenerate.
2613
2614 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2615
2616 * configure.in: Test for struct lwp in <sys/lwp.h>.
2617 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2618 the offset of l_addr in struct lwp.
2619
2620 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2621
2622 * bsd-kvm.c: Include "gdbcore.h"
2623 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2624
2625 2004-08-07 Andrew Cagney <cagney@gnu.org>
2626
2627 * gdbtypes.c (build_flt, build_complex): New functions.
2628 (gdbtypes_post_init): Use.
2629
2630 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2631
2632 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2633 through to builtin_type_uint128.
2634
2635 * c-exp.y: Use builtin_type function to obtain builtin types.
2636
2637 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2638 builtin_uint128.
2639 * gdbtypes.c (gdbtypes_post_init): Update.
2640 (build_gdbtypes): Move initialization of builtin_type_int0
2641 through to builtin_type_uint128 from here ...
2642 (_initialize_gdbtypes): ... to here.
2643 * d10v-tdep.c (d10v_register_type): Update.
2644
2645 * doublest.c: Update copyright.
2646 (floatformat_from_length): Call error when floatformat is NULL.
2647 (extract_floating_by_length): Remove NULL fmt check.
2648 (store_floating_by_length): Ditto.
2649
2650 2004-08-07 Andrew Cagney <cagney@gnu.org>
2651
2652 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2653 that the register is valid.
2654
2655 2004-08-05 Mark Kettenis <kettenis@chello.nl>
2656
2657 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2658 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2659 struct frame_info *. Use safe_frame_unwind_memory instead of
2660 deprecated_read_memory_nobpt.
2661 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2662 changed signature of i386_linux_sigtramp_start and
2663 i386_linux_rt_sigtramp_start.
2664
2665 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2666 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2667 instead of deprecated_read_memory_nobpt.
2668 (i386nbsd_sigtramp_p): Adjust for changed signature of
2669 i386nbsd_sigtramp_offset.
2670
2671 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2672 safe_frame_unwind_memory instead of target_read_memory.
2673
2674 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2675 !NO_SYS_FILE.
2676 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2677 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2678 (_initialize_kernel_u_addr): Remove prototype and function.
2679 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2680 !NO_SYS_FILE.
2681 * xcoffread.c: Likewise.
2682
2683 2004-08-06 Mark Kettenis <kettenis@gnu.org>
2684
2685 * vax-nat.c: New file.
2686 * vaxbsd-nat.c: Tweak comment.
2687 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2688 vaxnbsd-tdep.c.
2689 (vax-nat.o): New dependency.
2690 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2691 (vax-*-ultrix2*): Remove.
2692 * config/vax/vax.mh: New file.
2693 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2694 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2695 (vax_register_u_addr): New prototype.
2696 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2697 * config/vax/vaxult2.mh: Remove file.
2698 * config/vax/vaxult.mh: Remove file.
2699 * config/vax/vaxbsd.mh: Remove file.
2700 * config/vax/vax.mt (TM_FILE): Remove.
2701 * config/vax/tm-vaxbsd.h: Remove file.
2702
2703 2004-08-06 Joel Brobecker <brobecker@gnat.com>
2704
2705 * aix-thread.c (get_signaled_thread): New function.
2706 (iter_trap): Delete, no longer used.
2707 (iter_tid): New function.
2708 (pd_update): Find the thread that received the SIGTRAP signal
2709 by first locating the kernel thread, and then finding its
2710 associated thread.
2711
2712 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2713
2714 * lin-lwp.c (child_wait): Continue inferior after processing
2715 PTRACE_EVENT_CLONE event.
2716
2717 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2718
2719 * MAINTAINERS: Add self to Write-After-Approval.
2720
2721 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2722
2723 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2724 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2725
2726 2004-08-05 Andrew Cagney <cagney@gnu.org>
2727
2728 * config/xm-sysv4.h: Delete file.
2729 * config/mips/xm-irix5.h: Delete file.
2730 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2731 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2732 * config/ia64/xm-aix.h: Delete file.
2733 * config/ia64/aix.mh (XM_FILE): Delete.
2734 * config/pa/xm-hppah.h: Delete file.
2735 * config/pa/hpux11w.mh (XM_FILE): Delete.
2736 * config/pa/hpux11.mh (XM_FILE): Delete.
2737 * config/pa/hpux1020.mh (XM_FILE): Delete.
2738 * config/pa/hppahpux.mh (XM_FILE): Delete.
2739
2740 * config/alpha/xm-alphalinux.h: Delete file.
2741 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2742 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2743 * config/alpha/xm-alphaosf.h: Delete file.
2744 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2745 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2746 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2747 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2748
2749 * config/i386/xm-i386v.h: Delete file.
2750 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2751 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2752 * config/i386/xm-i386sco.h: Delete file.
2753 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2754 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2755 * config/i386/xm-i386v4.h: Delete file.
2756 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2757 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2758 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2759 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2760
2761 * config/vax/xm-vax.h: Delete file.
2762 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2763 * config/vax/xm-vaxult2.h: Delete file.
2764 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2765 * config/vax/vaxult2.mh (XM_FILE): Delete.
2766 * config/vax/xm-vaxult.h: Delete file.
2767 * config/vax/vaxult.mh (XM_FILE): Delete.
2768 * config/vax/xm-vaxbsd.h: Delete file.
2769 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2770
2771 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2772 * gdbarch.h, gdbarch.c: Re-generate.
2773 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2774 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2775 * frame.h: Delete deprecated_read_fp from comments.
2776 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2777 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2778
2779 2004-08-04 Mark Kettenis <kettenis@gnu.org>
2780
2781 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2782 trampoline in OpenBSD 3.5-current.
2783
2784 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2785 SSE registers.
2786
2787 * Makefile.in: Remove embedded page breaks.
2788
2789 2004-08-04 Jim Blandy <jimb@redhat.com>
2790
2791 * regcache.c (regcache_raw_read): Assert that, after calling
2792 target_fetch_registers, the register we're reading is cached.
2793
2794 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2795 a call to 'internal_error', with a more helpful error message.
2796 * rs6000-tdep.c (e500_pseudo_register_read,
2797 e500_pseudo_register_write, rs6000_store_return_value): Same.
2798
2799 2004-08-04 Andrew Cagney <cagney@gnu.org>
2800
2801 * Makefile.in: Update dependencies.
2802
2803 2004-08-04 Jim Blandy <jimb@redhat.com>
2804
2805 Change the layout of the PowerPC E500 raw register cache to allow
2806 the lower 32-bit halves of the GPRS to be their own raw registers,
2807 not pseudoregisters.
2808 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2809 add ppc_ev0_upper_regnum flag.
2810 * rs6000-tdep.c: #include "reggroups.h".
2811 (spe_register_p): Recognize the ev upper half registers as SPE
2812 registers.
2813 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2814 registers.
2815 (e500_move_ev_register): New function.
2816 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2817 vector registers are the pseudo-registers now, formed by splicing
2818 together the gprs and the upper-half registers.
2819 (e500_register_reggroup_p): New function.
2820 (P): Macro deleted.
2821 (P8, A4): New macro.
2822 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2823 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2824 macros.
2825 (registers_e500): Rearrange register set so that the raw register
2826 set contains 32-bit GPRs and upper-half registers, and the SPE
2827 vector registers become pseudo-registers.
2828 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2829 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2830 register numbers are now the same for the E500 as they are for
2831 other PowerPC variants. Register e500_register_reggroup_p as the
2832 register group function for the E500.
2833 * Makefile.in (rs6000-tdep.o): Update dependencies.
2834
2835 Adapt PPC E500 native support to the new raw regcache layout.
2836 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2837 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2838 (fetch_spe_register, store_spe_register): Handle fetching/storing
2839 all the SPE registers at once, if regno == -1. These now take
2840 over the job of fetch_spe_registers and store_spe_registers.
2841 (fetch_spe_registers, store_spe_registers): Deleted.
2842 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2843 unconditionally; they're always raw. Fetch/store SPE upper half
2844 registers, if present, instead of ev registers.
2845 (fetch_register, store_register): Remove sanity checks: gprs are
2846 never pseudo-registers now, so we never need to even mention any
2847 registers that are ever pseudoregisters.
2848
2849 Use a fixed register numbering when communicating with the PowerPC
2850 simulator.
2851 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2852 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2853 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2854 New functions.
2855 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2856 init_sim_regno_table.
2857 * Makefile.in (gdb_sim_ppc_h): New variable.
2858 (rs6000-tdep.o): Update dependencies.
2859
2860 2004-08-02 Andrew Cagney <cagney@gnu.org>
2861
2862 * cris-tdep.c (cris_register_size): Restore function, still used
2863 locally.
2864
2865 * gdbarch.sh (deprecated_target_read_fp)
2866 (deprecated_frame_locals_address, deprecated_frame_args_address)
2867 (deprecated_frame_chain_valid, deprecated_frame_chain)
2868 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2869 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2870 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2871 * gdbarch.h, gdbarch.c: Re-generate.
2872 * regcache.c (deprecated_read_fp): Do not call
2873 DEPRECATED_TARGET_READ_FP_P.
2874 * infcmd.c (default_print_registers_info): Do not call
2875 DEPRECATED_DO_REGISTERS_INFO.
2876 * frame-base.c (default_frame_locals_address): Do not call
2877 DEPRECATED_FRAME_LOCALS_ADDRESS.
2878 (default_frame_args_address): Do not call
2879 DEPRECATED_FRAME_ARGS_ADDRESS.
2880
2881 * gdbarch.sh (deprecated_register_raw_size)
2882 (deprecated_register_virtual_size:int): Delete.
2883 * gdbarch.h, gdbarch.c: Re-generate.
2884 * cris-tdep.c (cris_register_size): Delete.
2885 (cris_gdbarch_init): Update.
2886 * alpha-tdep.c (alpha_register_raw_size)
2887 (alpha_register_virtual_size): Delete.
2888 (alpha_gdbarch_init): Update.
2889
2890 * gdbarch.sh (deprecated_register_virtual_type)
2891 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2892 (deprecated_dummy_write_sp): Delete.
2893 * gdbarch.h, gdbarch.c: Re-generate.
2894
2895 * gdbarch.sh (deprecated_register_bytes): Delete.
2896 * gdbarch.h, gdbarch.c: Re-generate.
2897 * regcache.c (deprecated_register_bytes): New function.
2898 * regcache.h (deprecated_register_bytes): Declare.
2899 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2900 * v850-tdep.c (v850_gdbarch_init): Update.
2901 * sh64-tdep.c (sh64_gdbarch_init): Update.
2902 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2903 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2904 * mcore-tdep.c (mcore_gdbarch_init): Update.
2905 * cris-tdep.c (cris_gdbarch_init): Update.
2906 * arm-tdep.c (arm_gdbarch_init): Update.
2907 * remote.c (init_remote_state): Update.
2908 * remote-vx.c (vx_prepare_to_store): Update.
2909 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2910 * irix5-nat.c (fetch_core_registers): Update.
2911 * cris-tdep.c (cris_register_bytes_ok): Update.
2912 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2913
2914 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2915 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2916 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2917 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2918 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2919 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2920 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2921 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2922 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2923 with mips_insn16 and mips_insn32.
2924
2925 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2926 * rs6000-tdep.c (rs6000_push_dummy_call)
2927 (rs6000_extract_return_value): Use register_size.
2928 * xstormy16-tdep.c (xstormy16_get_saved_register)
2929 (xstormy16_extract_return_value): Ditto.
2930 * valops.c (value_assign): Ditto.
2931 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2932 * v850-tdep.c (v850_extract_return_value): Ditto.
2933 * tracepoint.c (collect_symbol): Ditto.
2934 * target.c (debug_print_register): Ditto.
2935 * stack.c (frame_info): Ditto.
2936 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2937 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2938 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2939 (store_register_using_P): Ditto.
2940 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2941 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2942 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2943 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2944 * regcache.c (deprecated_read_register_bytes)
2945 (deprecated_write_register_bytes, read_register)
2946 (write_register): Ditto.
2947 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2948 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2949 * monitor.c (monitor_supply_register, monitor_fetch_register)
2950 (monitor_store_register): Ditto.
2951 * mn10300-tdep.c (mn10300_pop_frame_regular)
2952 (mn10300_print_register): Ditto.
2953 * mipsv4-nat.c (fill_fpregset): Ditto.
2954 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2955 (mips64_fill_fpregset): Ditto.
2956 * mi/mi-main.c (register_changed_p, get_register)
2957 (mi_cmd_data_write_register_values): Ditto.
2958 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2959 * irix5-nat.c (fill_gregset, fetch_core_registers):
2960 * infrun.c (write_inferior_status_register): Ditto.
2961 * infptrace.c (fetch_register, store_register): Ditto.
2962 * infcmd.c (default_print_registers_info): Ditto.
2963 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2964 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2965 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2966 * hpux-thread.c (hpux_thread_fetch_registers)
2967 (hpux_thread_store_registers): Ditto.
2968 * hppah-nat.c (store_inferior_registers, fetch_register):
2969 * findvar.c (value_from_register): Ditto.
2970 * dve3900-rom.c (fetch_bitmapped_register):
2971 * cris-tdep.c (cris_gdbarch_init): Ditto.
2972 * alpha-tdep.h: Ditto.
2973 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2974
2975 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2976 DEPRECATED_REGISTER_RAW_SIZE from comments.
2977 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2978 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2979 DEPRECATED_REGISTER_RAW_SIZE.
2980 * findvar.c (value_of_register): Simplify by assuming that the
2981 registers raw and virtual sizes are identical.
2982 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2983 comment.
2984 * arch-utils.c (generic_register_size): Simplify by assuming
2985 register_type.
2986
2987 * regcache.c (legacy_read_register_gen, real_register)
2988 (legacy_write_register_gen): Delete, not used.
2989
2990 * regcache.c (struct regcache_descr): Delete legacy_p.
2991 (init_legacy_regcache_descr): Delete function.
2992 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2993 Do not use deprecated register functions.
2994 (regcache_raw_read, deprecated_write_register_gen):
2995 (deprecated_read_register_gen, regcache_raw_write): Delete code
2996 predicated on legacy_p.
2997 (register_size): Delete check against register raw size.
2998
2999 * cris-tdep.c (cris_register_type): Replace
3000 cris_register_virtual_type.
3001 (cris_gdbarch_init): Update, set register_type.
3002
3003 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3004 * gdbarch.h, gdbarch.c: Re-generate.
3005 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3006 (arm_gdbarch_init) Do not set frameless function invocation.
3007 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3008 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3009 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3010 (frv_gdbarch_init): Do not set frameless function invocation.
3011 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3012 * sh-tdep.c (sh_gdbarch_init): Ditto.
3013 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3014 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3015 * avr-tdep.c (avr_gdbarch_init): Ditto.
3016
3017 * blockframe.c (legacy_frame_chain_valid): Delete function.
3018
3019 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3020 and pc. Update comments.
3021 (pc_in_dummy_frame): Delete function.
3022 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3023 use the "id".
3024 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3025 call_hi, top and pc, use the id.
3026 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3027
3028 * dummy-frame.c: Include "gdb_string.h".
3029 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3030 (generic_save_dummy_frame_tos): Delete.
3031 (dummy_frame_push): New function, replaces above.
3032 * dummy-frame.h: Update copyright.
3033 (dummy_frame_push): Declare.
3034 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3035 (generic_save_call_dummy_addr): Delete declarations.
3036 * infcall.c: Include "dummy-frame.h".
3037 (call_function_by_hand): Add locals caller_regcache,
3038 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3039 with call to frame_save_as_regcache plus cleanup. Delete calls to
3040 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3041 Move clear_proceed_status to just before the resume, add call to
3042 dummy_frame_push (discard cleanup).
3043 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3044 (dummy-frame.o): Add $(gdb_string_h).
3045
3046 2004-08-01 Andrew Cagney <cagney@gnu.org>
3047
3048 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3049 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3050 * dummy-frame.c (find_dummy_frame): Delete.
3051 (struct dummy_frame_cache, dummy_frame_sniffer)
3052 (dummy_frame_prev_register, dummy_frame_this_id)
3053 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3054 frame unwinder using a dummy_frame_cache.
3055
3056 2004-08-01 Andrew Cagney <cagney@gnu.org>
3057
3058 * frame.h (frame_save_as_regcache): Declare.
3059 * frame.c (frame_save_as_regcache): New function.
3060 (do_frame_read_register): Replace do_frame_unwind_register.
3061 (frame_pop): Use frame_save_as_regcache.
3062 * dummy-frame.c (generic_push_dummy_frame): Use
3063 frame_save_as_regcache.
3064
3065 2004-08-01 Joel Brobecker <brobecker@gnat.com>
3066
3067 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3068 file as included until we record the first line in the linetable.
3069
3070 2004-08-01 Andrew Cagney <cagney@gnu.org>
3071
3072 * frame.h (deprecated_pop_dummy_frame)
3073 (deprecated_read_register_dummy)
3074 (deprecated_generic_find_dummy_frame): Delete.
3075 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3076 (deprecated_read_register_dummy)
3077 (deprecated_find_dummy_frame_regcache)
3078 (discard_innermost_dummy)
3079 (deprecated_pop_dummy_frame): Delete.
3080 (dummy_frame_this_id): Simplify.
3081 (struct dummy_frame): Delete "fp" and "sp".
3082 (find_dummy_frame): Simplify.
3083 (generic_push_dummy_frame): Do not set "fp" or "sp".
3084 (fprint_dummy_frames): Do not print "fp" and "sp"
3085
3086 2004-08-01 Mark Kettenis <kettenis@gnu.org>
3087
3088 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3089 (struct i386_insn): New structure.
3090 (i386_match_insn): New function.
3091 (i386_frame_setup_skip_insns): New variable.
3092 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3093 array i386_frame_setup_insns of instructions that should be
3094 skipped inside the frame setup sequence.
3095
3096 2004-08-01 Andrew Cagney <cagney@gnu.org>
3097
3098 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3099 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3100 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3101 * stack.c (frame_info): Delete references to
3102 DEPRECATED_FRAME_INIT_SAVED_REGS and
3103 deprecated_get_frame_saved_regs.
3104 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3105 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3106 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3107 (frame_unwind_register_signed)
3108 (frame_unwind_register_unsigned)
3109 (frame_unwind_unsigned_register): Use register_size.
3110 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3111 (deprecated_frame_xmalloc_with_cleanup)
3112 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3113 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3114
3115 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3116 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3117 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3118 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3119
3120 * infcall.c (call_function_by_hand): Do not use
3121 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3122 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3123 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3124 DEPRECATED_STACK_ALIGN.
3125
3126 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3127
3128 Committed by Andrew Cagney.
3129 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3130
3131 2004-08-01 Andrew Cagney <cagney@gnu.org>
3132
3133 * mips-tdep.c (mips16_frame_cache)
3134 (mips16_frame_this_id, mips16_frame_prev_register)
3135 (mips16_frame_unwind, mips16_frame_sniffer)
3136 (mips16_frame_base_address, mips16_frame_base)
3137 (mips16_frame_base_sniffer, mips32_frame_cache)
3138 (mips32_frame_this_id, mips32_frame_prev_register)
3139 (mips32_frame_unwind, mips32_frame_sniffer)
3140 (mips32_frame_base_address, mips32_frame_base)
3141 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3142 separate heuristic mips16 and mips32 unwinders.
3143 (mips_stub_frame_cache, mips_stub_frame_this_id)
3144 (mips_stub_frame_prev_register)
3145 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3146 (mips_stub_frame_base_address, mips_stub_frame_base)
3147 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3148 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3149 match true mdebug frames.
3150 (non_heuristic_proc_desc): Add forward declaration.
3151
3152 2004-08-01 Andrew Cagney <cagney@gnu.org>
3153
3154 * config/mips/tm-irix6.h: Delete file.
3155 * config/mips/tm-irix5.h: Delete file.
3156 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3157 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3158
3159 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3160 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3161 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3162 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3163 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3164 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3165 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3166 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3167 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3168 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3169 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3170 (TARGET_SIGNAL_RAW_VALUES): Delete.
3171 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3172 Delete.
3173 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3174 (TARGET_HW_WATCH_LIMIT): Delete.
3175 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3176 * minimon.h: Delete file.
3177
3178 * trad-frame.c (trad_frame_get_this_base)
3179 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3180 functions.
3181 * trad-frame.h (trad_frame_set_this_base)
3182 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3183
3184 2004-07-31 Andrew Cagney <cagney@gnu.org>
3185
3186 * trad-frame.c (trad_frame_get_prev_register): Rename
3187 trad_frame_get_prev_register.
3188 * vax-tdep.c (vax_frame_prev_register): Update.
3189 * trad-frame.h: Update.
3190 * trad-frame.c (trad_frame_get_register): Update.
3191 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3192 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3193 Update.
3194 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3195 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3196 Update.
3197 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3198 Update.
3199 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3200 Update.
3201 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3202 Update.
3203 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3204 Update.
3205 * s390-tdep.c (s390_frame_prev_register)
3206 (s390_stub_frame_prev_register)
3207 (s390_sigtramp_frame_prev_register): Update.
3208 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3209 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3210 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3211 * m88k-tdep.c (m88k_frame_prev_register)
3212 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3213 * m32r-tdep.c (m32r_frame_prev_register): Update.
3214 * hppa-tdep.c (hppa_frame_prev_register_helper)
3215 * frv-tdep.c (frv_frame_prev_register): Update.
3216 * d10v-tdep.c (d10v_frame_prev_register): Update.
3217 * cris-tdep.c (cris_frame_prev_register): Update.
3218 * avr-tdep.c (avr_frame_prev_register): Update.
3219 * arm-tdep.c (arm_prologue_prev_register)
3220 (arm_sigtramp_prev_register): Update.
3221
3222 2004-07-31 Andrew Cagney <cagney@gnu.org>
3223
3224 * frame.h (legacy_saved_regs_unwind)
3225 (legacy_frame_chain_valid, legacy_frame_p)
3226 (enum frame_type): Delete UNKNOWN_FRAME.
3227 * dummy-frame.c (dummy_frame_this_id): Simplify.
3228 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
3229 * frame.c (struct frame_info): Delete the field "type".
3230 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3231 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3232 (legacy_saved_regs_unwind, legacy_frame_p)
3233 (frame_type_from_pc): Delete.
3234 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3235 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3236
3237 2004-07-31 Mark Kettenis <kettenis@gnu.org>
3238
3239 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3240 indentation.
3241
3242 * mips-nat.c: Remove file.
3243 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3244 (mips-nat.o): Remove dependency.
3245
3246 * infptrace.c: Update copyright year.
3247 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3248 explicitly setting the buffer to all zeroes.
3249
3250 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3251 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3252
3253 2004-07-30 Andrew Cagney <cagney@gnu.org>
3254
3255 * GDB 6.2 released from gdb_6_2-branch.
3256
3257 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3258
3259 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3260
3261 * exec.c (exec_file_attach):
3262 * nto-tdep.c (nto_find_and_open_solib):
3263 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3264 * solib.c (solib_open):
3265 * somsolib.c (som_solib_sizeof_symbol_table):
3266 * source.c (is_regular_file, openp, open_source_file):
3267 * symfile.c (symfile_bfd_open):
3268 * wince.c (upload_to_device): Differentiate between the search for
3269 binary and source files.
3270
3271 2004-07-30 Andrew Cagney <cagney@gnu.org>
3272
3273 * complaints.c (_initialize_complaints): Pass NULL to
3274 add_setshow_zinteger_cmd for help_doc.
3275 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3276
3277 2004-07-30 Andrew Cagney <cagney@gnu.org>
3278
3279 Fix PR i18n/761.
3280 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3281 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3282 $(PACKAGE).pot and update-po.
3283 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3284 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3285 (update-po): New rules.
3286 (localedir): Define using autoconf.
3287 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3288 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3289 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3290 * configure.in: Generate CATALOGS and LINGUAS from contents of
3291 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3292 * configure: Re-generate.
3293 * po/gdbtext: New file
3294
3295 2004-07-30 Jerome Guitton <guitton@gnat.com>
3296
3297 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3298 order.
3299
3300 2004-07-30 David Lecomber <dsl@sources.redhat.com>
3301
3302 * dwarf2read.c (read_file_scope): Set producer if attribute
3303 present.
3304 (struct dwarf2_cu): Added new member producer.
3305
3306 2004-07-30 Jerome Guitton <guitton@gnat.com>
3307
3308 * inflow.c (kill_command): release file handles in BFD.
3309 * exec.c (exec_file_attach): Ditto.
3310 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3311
3312 2004-07-29 Andrew Cagney <cagney@gnu.org>
3313
3314 * PROBLEMS (mips-irix): Note that it is broken.
3315
3316 2004-07-29 Andrew Cagney <cagney@gnu.org>
3317
3318 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3319 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3320
3321 * config/xm-nbsd.h: Delete file.
3322 * config/arm/xm-nbsd.h: Delete file.
3323 * config/i386/xm-nbsd.h: Delete file.
3324 * config/ns32k/xm-nbsd.h: Delete file.
3325 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3326 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3327 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3328 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3329 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3330
3331 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3332 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3333 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3334 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3335 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3336 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3337
3338 * config/powerpc/xm-linux.h: Delete empty file.
3339 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3340 * config/powerpc/linux.mh (XM_FILE): Delete.
3341 * config/m68k/xm-linux.h: Delete empty file.
3342 * config/m68k/linux.mh (XM_FILE): Delete.
3343 * config/ia64/xm-linux.h: Delete empty file.
3344 * config/ia64/linux.mh (XM_FILE): Delete.
3345 * config/arm/xm-linux.h: Delete empty file.
3346 * config/arm/linux.mh (XM_FILE): Delete.
3347
3348 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3349 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3350 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3351 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3352 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3353 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3354 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3355 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3356
3357 * config/m68k/xm-m68k.h: Delete file.
3358 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3359 copyright.
3360 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3361 * config/pa/xm-linux.h: Delete empty file.
3362 * config/pa/linux.mh (XM_FILE): Delete.
3363 * config/i386/xm-i386.h: Delete empty file.
3364 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3365 "i386/xm-i386.h".
3366 * config/i386/obsdaout.mh (XM_FILE): Delete.
3367 * config/i386/obsd64.mh (XM_FILE): Delete.
3368 * config/i386/fbsd64.mh (XM_FILE): Delete.
3369 * config/i386/nto.mh (XM_FILE): Delete.
3370 * config/i386/obsd.mh (XM_FILE): Delete.
3371 * config/i386/linux64.mh (XM_FILE): Delete.
3372 * config/i386/linux.mh (XM_FILE): Delete.
3373 * config/i386/i386sol2.mh (XM_FILE): Delete.
3374 * config/i386/i386gnu.mh (XM_FILE): Delete.
3375 * config/i386/fbsd.mh (XM_FILE): Delete.
3376 * config/i386/nbsd64.mh (XM_FILE): Delete.
3377
3378 2004-07-29 Andrew Cagney <cagney@gnu.org>
3379
3380 * config/pa/xm-linux.h: Do not include "floatformat.h".
3381 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3382 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3383 * config/i386/xm-i386.h: Do not include "floatformat.h".
3384 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3385 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3386 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3387 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3388 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3389 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3390 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3391 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3392 * configure, config.in: Regenerate.
3393 * configure.host (gdb_host_float_format, gdb_host_double_format)
3394 (gdb_host_long_double_format): Set according to the host.
3395
3396 2004-07-29 Andrew Cagney <cagney@gnu.org>
3397
3398 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3399
3400 2004-07-28 Andrew Cagney <cagney@gnu.org>
3401
3402 * PROBLEMS: Mention threads/1650.
3403 * NEWS: Mention the NPTL fix.
3404
3405 2004-07-28 Andrew Cagney <cagney@gnu.org>
3406
3407 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3408 (add_setshow_cmd_full): Make static.
3409 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3410 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3411 * cli/cli-decode.c (add_setshow_filename_cmd)
3412 (add_setshow_string_cmd): New functions.
3413 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3414 * mips-tdep.c (_initialize_mips_tdep): Update.
3415 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3416 * cli/cli-logging.c (_initialize_cli_logging): Update.
3417 * complaints.c (_initialize_complaints): Update.
3418 * remote.c (_initialize_remote): Update.
3419
3420 2004-07-28 Andrew Cagney <cagney@gnu.org>
3421
3422 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3423 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3424 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3425 print parameters. Make string parameters constant.
3426 * command.h: Update. Update copyright.
3427 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3428 * observer.c (_initialize_observer): Ditto.
3429 * frame.c (_initialize_frame): Ditto.
3430 * complaints.c (_initialize_complaints): Ditto.
3431 * maint.c (_initialize_maint_cmds): Ditto.
3432 * target.c (initialize_targets): Ditto.
3433 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3434 * infcall.c (_initialize_infcall): Ditto.
3435 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3436 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3437 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3438 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3439 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3440
3441 2004-07-28 Andrew Cagney <cagney@gnu.org>
3442
3443 * gdbtypes.c (lookup_primitive_typename): Delete function.
3444 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3445 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3446 * gdbtypes.c (lookup_typename): Ditto.
3447 * f-exp.y (yylex): Ditto.
3448 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3449
3450 * scm-lang.c (c_builtin_types): Delete extern declaration.
3451 (scm_language_defn): Replace
3452 string_char_type and primitive_type_vector with
3453 la_language_arch_info.
3454 * jv-lang.c (java_language_defn): Replace
3455 string_char_type and primitive_type_vector with
3456 la_language_arch_info.
3457 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3458 c_builtin_types in comment.
3459 * c-lang.h (struct language_arch_info): Declare opaque.
3460 (c_language_arch_info): Declare.
3461 (c_builtin_types): Delete declaration.
3462 * c-lang.c (c_language_arch_info): Set string_char_type to
3463 builtin_char, not builtin_true_char. Make global.
3464 (c_builtin_types): Delete array.
3465 (asm_language_defn, minimal_language_defn): Replace
3466 string_char_type and primitive_type_vector with
3467 la_language_arch_info.
3468
3469 2004-07-28 Andrew Cagney <cagney@gnu.org>
3470
3471 * gdbtypes.h (struct builtin_type): Rename true_char to
3472 builtin_true_char.
3473 * gdbtypes.c (gdbtypes_post_init): Update.
3474 * c-lang.c (arch_info): New function.
3475 (enum c_primitive_types): New enum.
3476 (c_language_defn): Instead of string_char_type and
3477 primitive_type_vector set la_language_arch_info.
3478
3479 2004-07-28 Andrew Cagney <cagney@gnu.org>
3480
3481 * language.h (struct language_arch_info): Fix typo
3482 s/primative/primitive/.
3483 * gdbtypes.c (lookup_primitive_typename): Ditto.
3484 * language.c (language_lookup_primitive_type_by_name)
3485 (unknown_language_arch_info): Ditto.
3486
3487 2004-07-27 Andrew Cagney <cagney@gnu.org>
3488
3489 * defs.h (enum language): Add nr_languages.
3490 * language.h (struct language_arch_info): Define.
3491 (struct language_defn): Add la_language_arch_info.
3492 (language_lookup_primative_type_by_name): Declare.
3493 (language_string_char_type): Declare.
3494 * language.c (_initialize_language, language_gdbarch_post_init)
3495 (struct language_gdbarch, language_gdbarch_data): Implement
3496 per-architecture language information.
3497 (unknown_language_arch_info, language_string_char_type)
3498 (language_lookup_primative_type_by_name): New functions.
3499 (unknown_language_defn, auto_language_defn)
3500 (local_language_defn): Set la_language_arch_info to
3501 unknown_language_arch_info.
3502 (unknown_builtin_types): Delete.
3503 * gdbtypes.c (lookup_primitive_typename): Use
3504 language_lookup_primative_type_by_name.
3505 (create_string_type): Use language_string_char_type.
3506 * values.c (value_from_string): Use language_string_char_type.
3507 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3508 * p-lang.c (pascal_language_defn): Ditto.
3509 * m2-lang.c (m2_language_defn): Ditto.
3510 * jv-lang.c (java_language_defn): Ditto.
3511 * objc-lang.c (objc_language_defn): Ditto.
3512 * f-lang.c (f_language_defn): Ditto.
3513 * c-lang.c (c_language_defn, cplus_language_defn)
3514 (asm_language_defn, minimal_language_defn): Ditto.
3515
3516 2004-07-27 Andrew Cagney <cagney@gnu.org>
3517
3518 * gdbtypes.h (struct builtin_type): Declare.
3519 (builtin_type): Declare.
3520 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3521 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3522 (gdbtypes_post_init): New function.
3523 (builtin_type): New function.
3524
3525 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3526
3527 * remote-m32r-sdi.c: Fix breakpoint bug.
3528 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3529 recv_char_data, recv_long_data): New functions to replace communication
3530 sequences.
3531
3532 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3533
3534 Document PR threads/1650.
3535 * PROBLEMS (Threads): Document problem with many threads
3536
3537 2004-07-26 Andrew Cagney <cagney@gnu.org>
3538
3539 * gdb-mi.el: Move from here ...
3540 * mi/gdb-mi.el: ... to here.
3541
3542 2004-07-26 Andrew Cagney <cagney@gnu.org>
3543
3544 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3545 * main.c (captured_main): When in batch mode always detach.
3546
3547 2004-07-26 Andrew Cagney <cagney@gnu.org>
3548
3549 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3550 and h8300 as broken.
3551 * NEWS: END-OF-LIFE frame compatibility module.
3552 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3553 specific comments.
3554
3555 2004-07-26 Andrew Cagney <cagney@gnu.org>
3556
3557 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3558 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3559 * wince.c (_initialize_wince): Update.
3560 * win32-nat.c (_initialize_win32_nat): Update.
3561 * varobj.c (_initialize_varobj): Update.
3562 * valops.c (_initialize_valops): Update.
3563 * utils.c (initialize_utils, initialize_utils): Update.
3564 * tui/tui-win.c (_initialize_tui_win): Update.
3565 * top.c (init_main): Update.
3566 * symfile.c (_initialize_symfile): Update.
3567 * source.c (_initialize_source): Update.
3568 * somsolib.c (_initialize_som_solib): Update.
3569 * solib.c (_initialize_solib): Update.
3570 * solib-frv.c (_initialize_frv_solib): Update.
3571 * serial.c (_initialize_serial): Update.
3572 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3573 * remote.c (_initialize_remote, _initialize_remote): Update.
3574 * remote-vx.c (_initialize_vx): Update.
3575 * remote-utils.c (_initialize_sr_support): Update.
3576 * remote-sds.c (_initialize_remote_sds): Update.
3577 * remote-mips.c (_initialize_remote_mips): Update.
3578 * remote-e7000.c (_initialize_remote_e7000): Update.
3579 * proc-api.c (_initialize_proc_api): Update.
3580 * printcmd.c: Update.
3581 * parse.c (_initialize_parse): Update.
3582 * pa64solib.c (_initialize_pa64_solib): Update.
3583 * p-valprint.c (_initialize_pascal_valprint): Update.
3584 * monitor.c (_initialize_remote_monitors): Update.
3585 * mips-tdep.c (_initialize_mips_tdep): Update.
3586 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3587 * maint.c (_initialize_maint_cmds): Update.
3588 * lin-lwp.c (_initialize_lin_lwp): Update.
3589 * language.c (_initialize_language): Update.
3590 * kod.c (_initialize_kod): Update.
3591 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3592 * i386-tdep.c (_initialize_i386_tdep): Update.
3593 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3594 * gdbarch.sh: Update.
3595 * gdbarch.c: Re-generate.
3596 * gdb-events.sh: Update.
3597 * gdb-events.c: Re-generate.
3598 * frame.c (_initialize_frame): Update.
3599 * exec.c: Update.
3600 * demangle.c (_initialize_demangler): Update.
3601 * dcache.c (_initialize_dcache): Update.
3602 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3603 * cp-valprint.c (_initialize_cp_valprint): Update.
3604 * corefile.c (_initialize_core): Update.
3605 * command.h: Update.
3606 * cli/cli-decode.h: Update.
3607 * cli/cli-cmds.c (init_cli_cmds): Update.
3608 * charset.c (_initialize_charset): Update.
3609 * breakpoint.c (_initialize_breakpoint): Update.
3610 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3611 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3612 * aix-thread.c (_initialize_aix_thread): Update.
3613
3614 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3615
3616 Partial fix for PR backtrace/1718.
3617 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3618 that GCC migrates into the prolugue. Don't handle any
3619 instructions that clobber %ebx.
3620
3621 2004-07-23 Andrew Cagney <cagney@gnu.org>
3622
3623 Use regcache_raw_collect instead of regcache_collect.
3624 * regcache.h (regcache_collect): Delete declaration.
3625 * regcache.c (regcache_colect): Delete function.
3626 * win32-nat.c (do_child_store_inferior_registers): Update.
3627 * sol-thread.c (sol_thread_store_registers): Update.
3628 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3629 * rs6000-nat.c (store_register): Update.
3630 * remote.c (store_register_using_P, remote_store_registers): Update.
3631 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3632 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3633 (fill_vrregset, store_spe_registers, fill_gregset)
3634 (fill_gregset): Update.
3635 * nto-procfs.c (procfs_store_registers): Update.
3636 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3637 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3638 * m68klinux-nat.c (store_register, fill_gregset): Update.
3639 * m68k-tdep.c (fill_gregset): Update.
3640 * infptrace.c (store_register): Update.
3641 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3642 * i386-linux-nat.c (store_register, fill_gregset): Update.
3643 * hppa-linux-nat.c (fill_gregset): Update.
3644 * go32-nat.c (store_register): Update.
3645 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3646 (store_fp_regs): Update.
3647 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3648 (store_nwfpe_extended, store_fpregister, store_fpregs)
3649 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3650 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3651 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3652 (store_regs_user_thread, store_regs_kernel_thread): Update.
3653
3654 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3655
3656 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3657 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3658 encoding.
3659 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3660 member of `struct comp_unit'.
3661
3662 2004-07-23 Andrew Cagney <cagney@gnu.org>
3663
3664 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3665 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3666
3667 2004-07-23 Martin Hunt <hunt@redhat.com>
3668 Kevin Buettner <kevinb@redhat.com>
3669
3670 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3671 alignment was being added to the offset instead of multiplied.
3672
3673 2004-07-23 Mark Kettenis <kettenis@gnu.org>
3674
3675 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3676 changed signal trampoline in OpenBSD 3.5-current.
3677
3678 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3679 <machine/pcb.h> and "bsd-kvm.h".
3680 (sparc64nbsd_supply_pcb): New function.
3681 (_initialize_sparc64nbsd_nat): Renamed from
3682 _initialize_sparcnbsd_nat. Enable libkvm interface.
3683 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3684 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3685 (LOADLIBES): New variable.
3686
3687 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3688
3689 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3690
3691 2004-07-21 Andrew Cagney <cagney@gnu.org>
3692
3693 Use regcache_raw_supply instead of supply_register.
3694 * regcache.h (supply_register): Delete declaration.
3695 * regcache.c (supply_register): Delete function.
3696 * wince.c (do_child_fetch_inferior_registers): Update.
3697 * win32-nat.c (do_child_fetch_inferior_registers)
3698 (fetch_elf_core_registers): Update.
3699 * v850ice.c (v850ice_fetch_registers): Update.
3700 * thread-db.c (thread_db_store_registers): Update.
3701 * sol-thread.c (sol_thread_store_registers): Update.
3702 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3703 * rs6000-nat.c (fetch_register): Update.
3704 * rom68k-rom.c (rom68k_supply_one_register): Update.
3705 * remote.c (remote_wait, remote_async_wait): Update.
3706 * remote-st.c (get_hex_regs): Update.
3707 * remote-sim.c (gdbsim_fetch_register): Update.
3708 * remote-sds.c (sds_fetch_registers): Update.
3709 * remote-rdp.c (remote_rdp_fetch_register): Update.
3710 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3711 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3712 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3713 * remote-hms.c (init_hms_cmds): Update.
3714 * remote-est.c (init_est_cmds): Update.
3715 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3716 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3717 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3718 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3719 (fetch_register, supply_vrregset, supply_vrregset)
3720 (fetch_spe_registers): Update.
3721 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3722 * monitor.c (monitor_supply_register): Update.
3723 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3724 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3725 (mipsnbsd_supply_fpreg): Update.
3726 * mips-nat.c (fetch_inferior_registers)
3727 (fetch_core_registers): Update.
3728 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3729 (supply_fpregset, mips64_supply_gregset)
3730 (mips64_supply_fpregset): Update.
3731 * m68klinux-nat.c (fetch_register, supply_gregset)
3732 (supply_fpregset): Update.
3733 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3734 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3735 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3736 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3737 * infptrace.c (fetch_register): Update.
3738 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3739 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3740 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3741 (gnu_fetch_registers, gnu_store_registers): Update.
3742 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3743 * i386-linux-nat.c (fetch_register, supply_gregset)
3744 (dummy_sse_values): Update.
3745 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3746 * hppah-nat.c (fetch_register): Update.
3747 * hppa-linux-nat.c (fetch_register, supply_gregset)
3748 (supply_fpregset): Update.
3749 * go32-nat.c (fetch_register): Update.
3750 * dve3900-rom.c (fetch_bitmapped_register)
3751 (_initialize_r3900_rom): Update.
3752 * cris-tdep.c (supply_gregset): Update.
3753 * abug-rom.c (init_abug_cmds): Update.
3754 * core-aout.c (fetch_core_registers): Update.
3755 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3756 (fetch_register, fetch_fp_register): Update.
3757 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3758 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3759 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3760 * alphanbsd-tdep.c (fetch_core_registers): Update.
3761 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3762 * alpha-nat.c (fetch_osf_core_registers)
3763 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3764 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3765 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3766
3767 2004-07-21 Andrew Cagney <cagney@gnu.org>
3768
3769 * PROBLEMS: Mention breakpoints/1702.
3770 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3771 that is known to work.
3772
3773 2004-07-21 Andrew Cagney <cagney@gnu.org>
3774
3775 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3776 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3777 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3778 (handle_inferior_event): Wrap call to deprecated
3779 IGNORE_HELPER_CALL in #ifdef.
3780 * config/mips/tm-nbsd.h: Update.
3781
3782 2004-07-20 Jim Blandy <jimb@redhat.com>
3783
3784 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3785 bfd_mach_ppc has no segment registers.
3786
3787 Include PowerPC SPR numbers for special-purpose registers.
3788 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3789 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3790 new member in initializer.
3791 (S, S4, SN4, S64): New macros for defining special-purpose
3792 registers.
3793 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3794 registers_403, registers_403GC, registers_505, registers_860,
3795 registers_601, registers_602, registers_603, registers_604,
3796 registers_750, registers_e500): Use them.
3797
3798 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3799 replace references with expression used to initialize variable.
3800
3801 2004-07-20 Andrew Cagney <cagney@gnu.org>
3802
3803 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3804 read_memory_nobpt.
3805 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3806 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3807 (s390_sigtramp_frame_sniffer): Update.
3808 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3809 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3810 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3811 (mips32_fetch_instruction): Update.
3812 * mcore-tdep.c (get_insn): Update.
3813 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3814 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3815 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3816 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3817 (i386_linux_rt_sigtramp_start): Update.
3818 * i386-linux-nat.c (child_resume): Update.
3819 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3820 * hppa-linux-tdep.c (insns_match_pattern): Update.
3821 * gdbcore.h: Update.
3822 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3823 * frame.c (safe_frame_unwind_memory): Update.
3824 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3825 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3826 * alpha-tdep.c (alpha_read_insn): Update.
3827
3828 2004-07-20 Andrew Cagney <cagney@gnu.org>
3829
3830 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3831 containing both bytes and mask. Add "frame_type".
3832 * tramp-frame.c (tramp_frame_start): Update.
3833 (tramp_frame_prepend_unwinder): Update.
3834 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3835 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3836 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3837 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3838
3839 2004-07-19 Eli Zaretskii <eliz@gnu.org>
3840
3841 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3842 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3843 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3844 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3845
3846 2004-07-17 Andrew Cagney <cagney@gnu.org>
3847
3848 * NEWS, PROBLEMS: Update for 6.2.
3849
3850 * README: Update to 6.2.
3851
3852 * utils.c (xvasprintf): Call xstrvprintf.
3853
3854 * parse.c: Update copyright.
3855 (null_post_parser): Eliminate ARGSUSED.
3856
3857 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3858 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3859 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3860
3861 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3862 * ppc-linux-nat.c: Use "Linux kernel".
3863 * hppa-linux-tdep.c: Use GNU/Linux.
3864 * hppa-linux-nat.c: Use GNU/Linux.
3865 * dwarfread.c: Add [sic] to use of Linux.
3866
3867 * hppa-linux-nat.c: Do not include <string.h>.
3868 (supply_fpregset): Remove "register" attribute.
3869
3870 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3871
3872 2004-07-17 Mark Kettenis <kettenis@gnu.org>
3873
3874 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3875 * configure, config.in: Regenerated.
3876
3877 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3878 "bsd-kvm.h".
3879 (vaxbsd_supply_pcb): New function.
3880 (_initialize_vaxbsd_nat): New prototype and function.
3881 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3882 solib-sunos.o.
3883 (LOADLIBES): New variable.
3884 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3885 (LOADLIBES): New variable.
3886 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3887 (LOADLIBES): New variable.
3888 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3889
3890 2004-07-16 Andrew Cagney <cagney@gnu.org>
3891
3892 * defs.h (event_loop_p): Replace variable declaration with macro,
3893 always 1.
3894 * main.c (captured_main): Delete options "-async" and "-noasync".
3895 (event_loop_p): Delete variable.
3896 * NEWS: Mention that "-async" and "-noasync" were removed.
3897
3898 2004-07-16 Andrew Cagney <cagney@gnu.org>
3899
3900 * remote-m32r-sdi.c: Re-indent.
3901
3902 2004-07-16 Jim Blandy <jimb@redhat.com>
3903
3904 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3905 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3906 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3907 missing MPC823 SPRs.
3908 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3909 incorrect. (This was corrected in GDB's register name tables on
3910 2004-07-14.)
3911
3912 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3913 should be "esasrr" ("ESA Save and Restore Register").
3914
3915 2004-07-16 Andrew Cagney <cagney@gnu.org>
3916
3917 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3918 calls, no longer applicable. Update comments and rename parameter
3919 "step_frame" to "return_frame".
3920
3921 2004-07-16 Andrew Cagney <cagney@gnu.org>
3922
3923 * frame.c (fprint_field): New function.
3924 (fprint_frame_id): Use fprint_field.
3925
3926 2004-07-15 Joel Brobecker <brobecker@gnat.com>
3927
3928 * ada-lang.c (ada_language_defn): Remove commented out code.
3929
3930 2004-07-15 Jim Blandy <jimb@redhat.com>
3931
3932 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3933 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3934
3935 2004-07-14 Jim Blandy <jimb@redhat.com>
3936
3937 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3938
3939 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3940
3941 * ppc-tdep.h (ppc_num_srs): New enum constant.
3942
3943 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3944 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3945 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3946 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3947 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3948 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3949 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3950 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3951 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3952 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3953 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3954 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3955 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3956 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3957 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3958 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3959 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3960 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3961 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3962 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3963 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3964 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3965 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3966 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3967 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3968 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3969 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3970 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3971 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3972 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3973 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3974 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3975 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3976 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3977 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3978 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3979 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3980 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3981 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3982 special-purpose register numbers.
3983
3984 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3985 manual mentions 'md_twb', but many mention 'm_twb', and at that
3986 point in the register list.)
3987
3988 2004-07-14 Andrew Cagney <cagney@gnu.org>
3989
3990 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3991 instead of "internal-error".
3992
3993 2004-07-10 Joel Brobecker <brobecker@gnat.com>
3994
3995 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3996 that was inserted inside a comment.
3997
3998 2004-07-10 Randolph Chung <tausq@debian.org>
3999
4000 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4001 function.
4002 (hppa_hpux_push_dummy_code): New function.
4003 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4004 Set find_global_pointer method.
4005
4006 2004-07-10 Mark Kettenis <kettenis@gnu.org>
4007
4008 * NEWS: Mention BSD libkvm interface.
4009
4010 2004-07-10 Michael Snyder <msnyder@redhat.com>
4011
4012 * symfile.c (generic_load): Comment typo.
4013 * stack.c (get_selected_block): Ditto.
4014 * regcache.c (regcache_cooked_read): Ditto.
4015 * monitor.c (monitor_debug): Ditto.
4016 * mips-tdep.c (mips_read_pc): Ditto.
4017 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4018 * gdb_mbuild.sh: Ditto.
4019 * gdbarch.sh: Ditto.
4020 * gdbarch.h: Ditto.
4021
4022 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4023
4024 * ada-tasks.c: Remove file.
4025
4026 Remove ARI problems:
4027
4028 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4029 beginning of line.
4030
4031 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4032 Add comment.
4033 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4034 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4035 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4036 (UMIN_OF_SIZE): Remove.
4037 (max_of_type): New function to replace orphan macro in gdbtypes.h
4038 (min_of_type): Ditto.
4039 (discrete_type_high_bound): Use max_of_type.
4040 (discrete_type_low_bound): Use min_of_type.
4041 (possible_user_operator_p): Move operator to beginning of line.
4042 (ada_is_variant_part): Ditto.
4043 (ensure_lval): Rewrite to avoid deprecated operations.
4044 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4045 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4046 (ada_enum_name): Remove assignments in 'if' statements.
4047 (build_ada_types): Add gdbarch parameter.
4048 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4049 with gdbarch_data_register_post_init.
4050 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4051 add_show_from_set.
4052
4053 * ada-valprint.c (inspect_it): Remove declaration.
4054 (repeat_count_threshold): Remove declaration.
4055 (ada_print_floating): Remove assignments in 'if' statements.
4056 (print_str): Move operator to beginning of line.
4057
4058 2004-07-08 Jim Blandy <jimb@redhat.com>
4059
4060 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4061
4062 2004-07-08 Bob Rossi <bob@brasko.net>
4063
4064 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4065
4066 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4067
4068 * language.h (struct_language_defn): Add new function pointer:
4069 la_class_name_from_physname. Also add new prototype for
4070 language_class_name_from_physname.
4071 * language.c (language_class_name_from_physname): New function.
4072 (unk_lang_class_name): Ditto.
4073 (unknown_language_defn, auto_language_defn): Change
4074 to add unk_lang_class_name function pointer for
4075 la_class_name_from_physname.
4076 (local_language_defn): Ditto.
4077 * dwarf2read.c (guess_structure_name): Change to call
4078 language_class_name_from_physname.
4079 (determine_class_name): Ditto.
4080 * cp-support.c (class_name_from_physname): Renamed.
4081 (cp_class_name_from_physname): New name of function.
4082 * cp-support.h: Ditto.
4083 * c-lang.c (c_language_defn): Change to add NULL
4084 for class_name_from_physname function pointer.
4085 (cplus_language_defn): Change to add cp_class_name_from_physname.
4086 * jv-lang.c (java_class_name_physname): New function.
4087 (java_find_last_component): New static routine.
4088 (java_language_defn): Add java_class_name_from_physname pointer.
4089 * ada-lang.c (ada_language_defn): Change to add NULL
4090 for class_name_from_physname function pointer.
4091 * f-lang.c (f_language_defn): Ditto.
4092 * m2-lang.c (m2_language_defn): Ditto.
4093 * objc-lang.c (objc_language_defn): Ditto.
4094 * p-lang.c (pascal_language_defn): Ditto.
4095 * scm-lang.c (scm_language_defn): Ditto.
4096
4097 2004-07-06 Andrew Cagney <cagney@gnu.org>
4098
4099 Patch from Bart Robinson.
4100 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4101 (O_LARGEFILE): Define to 0, if not defined.
4102
4103 2004-07-03 Mark Kettenis <kettenis@gnu.org>
4104
4105 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4106 <machine/pcb.h> and "bsd-kvm.h".
4107 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4108 (m68kbsd_supply_pcb): New function.
4109 (_initialize_m68kbsd_nat): New prototype and function.
4110 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4111 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4112 (LOADLIBES): New variable.
4113 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4114 (LOADLIBES): New variable.
4115
4116 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4117
4118 2004-07-03 Mark Kettenis <kettenis@gnu.org>
4119
4120 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4121 <sys/proc.h>.
4122 (bsd_kvm_cmdlist): New variable.
4123 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4124 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4125 command and "kvm proc" command.
4126 * Makefile.in (bsd-kvm.o): Update dependencies.
4127
4128 2004-07-02 Mark Kettenis <kettenis@gnu.org>
4129
4130 * osabi.c: Update copyright year.
4131 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4132 notes if EI_OSABI is set to ELFOSABI_HPUX.
4133
4134 2004-07-01 Michael Snyder <msnyder@redhat.com>
4135
4136 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4137 that seems to have gotten whacked out of line.
4138
4139 2004-07-01 Mark Kettenis <kettenis@gnu.org>
4140
4141 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4142 code.
4143
4144 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4145
4146 * ada-lang.c (decode_packed_array): Minor change to comment.
4147 (ada_value_slice_ptr): New function.
4148 (ada_value_slice): New function.
4149 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4150 test. Don't know why it is there.
4151 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4152 to avoid dereferencing huge arrays from which one is slicing.
4153 (empty_array): Correct to return an array rather than
4154 a subrange value.
4155 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4156 on empty arrays (let'em use 'FIRST instead).
4157
4158 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4159
4160 Address complaints from gdb_ari.sh:
4161
4162 * ada-exp.y: Include gdb_string.h rather than string.h.
4163 (convert_char_literal): Reformat declaration.
4164 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4165 * ada-lex.l: Change use of free to xfree (the macro would do so
4166 anyway, but this is harmless).
4167 Include gdb_string.h rather than string.h.
4168 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4169
4170 * ada-lang.c (parse): Remove K&Rism in parameter list.
4171 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4172
4173 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4174
4175 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4176 dead code.
4177
4178 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4179
4180 * alphabsd-nat.c: Update copyright year.
4181 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4182
4183 2004-06-29 Joel Brobecker <brobecker@gnat.com>
4184
4185 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
4186 (i386_cygwin_in_solib_call_trampoline): New function.
4187 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4188 and skip_trampoline_code gdbarch methods.
4189
4190 2004-06-29 Jim Blandy <jimb@redhat.com>
4191
4192 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4193 name actually used in the dependency lists.
4194
4195 2004-06-29 Randolph Chung <tausq@debian.org>
4196
4197 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4198
4199 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4200
4201 * win32-nat.c (child_pid_to_exec_file): New function.
4202 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
4203 functionality.
4204
4205 2004-06-28 Andrew Cagney <cagney@gnu.org>
4206
4207 * defs.h (xstrvprintf): Declare.
4208 * utils.c (xstrvprintf): New function.
4209 (internal_vproblem, xstrprintf, xasprintf)
4210 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4211 * serial.c (serial_printf): Ditto.
4212 * complaints.c (vcomplaint): Ditto.
4213
4214 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4215
4216 * infcmd.c (attach_command): Move call to target_terminal_inferior
4217 behind loading symbol table.
4218
4219 2004-06-28 Andrew Cagney <cagney@gnu.org>
4220
4221 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4222 change - add back extern deprecated_ui_loop_hook declaration.
4223
4224 2004-06-28 Andrew Cagney <cagney@gnu.org>
4225
4226 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4227 xstrprintf.
4228 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4229 (c_value_of_variable): Ditto.
4230 * utils.c (internal_vproblem): Ditto.
4231 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4232 * remote.c (add_packet_config_cmd): Ditto.
4233 * remote-rdp.c (rdp_set_command_line): Ditto.
4234 * regcache.c (regcache_dump): Ditto.
4235 * frv-tdep.c (new_variant, new_variant): Ditto.
4236 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4237 (fbsd_find_memory_regions): Ditto.
4238 * breakpoint.c (create_thread_event_breakpoint)
4239 (create_breakpoints): Ditto.
4240 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4241 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4242
4243 2004-06-28 Joel Brobecker <brobecker@gnat.com>
4244
4245 * ada-lang.c: Re-indent file, with some massaging to help indent
4246 a bit when the result is otherwise really too ugly.
4247
4248 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4249
4250 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4251 code_addr_p and special_addr_p to 'unsigned int'.
4252
4253 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4254
4255 * i386v4-nat.c: Update copyright year and tweak comment.
4256 (regmap): Remove trailing comma.
4257 (supply_gregset): Rename local variable i to regnum. Call
4258 regcache_raw_supply instead of supply_register.
4259 (fill_gregset): Rename argument regno to regnum. Call
4260 regcache_raw_collect instead of regcache_collect.
4261
4262 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4263
4264 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4265 and special_addr_p.
4266 (frame_id_build, frame_id_build_special): Update comments.
4267 (frame_id_build_wild): New prototype.
4268 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4269 struct frame_id fields.
4270 (frame_id_build_wild): New function.
4271 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4272
4273 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4274
4275 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4276 hppabsd-tdep.c.
4277
4278 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4279
4280 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4281
4282 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4283
4284 * ada-lang.c: Re-indent file.
4285
4286 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4287
4288 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4289 (no_symtab_msg): Likewise.
4290
4291 2004-06-27 Andreas Schwab <schwab@suse.de>
4292
4293 * source.c: Fix whitespace.
4294
4295 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4296
4297 * configure.in: Include <sys/param.h> for td_pcb test.
4298 * configure: Regenerated.
4299
4300 * i386nbsd-nat.c: New file.
4301 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4302 i386obsd-nat.c and i386obsd-tdep.c.
4303 (i386nbsd-nat.o): New dependency.
4304 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4305 bsd-kvm.o.
4306 (LOADLIBES): New variable.
4307 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4308 bsd-kvm.o.
4309 (LOADLIBES): New variable.
4310
4311 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4312 (LOADLIBES): New variable.
4313
4314 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4315 fetching from BSD_KVM_PADDR. Correctly lookup address for
4316 "_thread0".
4317
4318 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4319 "bsd-kvm.h".
4320 (amd64fbsd_supply_pcb): New funcion.
4321 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4322
4323 2004-06-27 <david@streamline-computing.com>
4324
4325 Partial fix for PR cli/1056.
4326 * valarith.c: Check for zero in division and remainder
4327 evaluation.
4328
4329 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4330
4331 * i387-tdep.c: Remove excessive whitespace.
4332
4333 2004-06-26 Andrew Cagney <cagney@gnu.org>
4334
4335 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4336 * gdb-events.h, gdb-events.c: Re-generate.
4337 * tui/tui-hooks.c (tui_install_hooks): Update.
4338 (tui_remove_hooks): Update.
4339 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4340
4341 2004-06-26 Mark Kettenis <kettenis@gnu.org>
4342
4343 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4344 (gregset_t, fpregset_t): Remove typedefs.
4345 (REG_OFFSET): Rename argument.
4346 (amd64bsd_r_reg_offset): Rename from reg_offset.
4347 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4348 Remove functions.
4349 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4350 of reg_offset.
4351 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4352
4353 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4354
4355 * vax-tdep.c: Tweak comment.
4356
4357 Add OpenBSD/hppa support.
4358 * NEWS (New native configurations): Mention OpenBSD/hppa.
4359 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4360 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4361 files.
4362 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4363 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4364 * configure.host: Add hppa*-*-openbsd*.
4365 * configure.tgt: Add hppa*-*-openbsd*.
4366
4367 2004-06-25 Andrew Cagney <cagney@gnu.org>
4368
4369 * defs.h (deprecated_ui_loop_hook): Deprecated.
4370 * wince.c (child_wait): Update.
4371 * win32-nat.c (child_wait): Update.
4372 * v850ice.c (v850ice_wait): Update.
4373 * top.c (deprecated_ui_loop_hook): Update.
4374 * serial.h: Update.
4375 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4376 (do_unix_readchar): Update.
4377 * ser-tcp.c (net_open): Update.
4378 * remote-sim.c (gdb_os_poll_quit): Update.
4379 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4380
4381 2004-06-24 Andrew Cagney <cagney@gnu.org>
4382
4383 * defs.h (deprecated_pre_add_symbol_hook)
4384 (deprecated_post_add_symbol_hook): Deprecated.
4385 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4386 (symbol_file_add_with_addrs_or_offsets): Update references.
4387
4388 2004-06-24 Andrew Cagney <cagney@gnu.org>
4389
4390 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4391 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4392 * wince.c (ui_loop_hook): Delete extern declaration.
4393 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4394 * v850ice.c (ui_loop_hook): Delete extern declaration..
4395 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4396 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4397 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4398 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4399 ui_loop_hook declaration.
4400
4401 2004-06-24 Andrew Cagney <cagney@gnu.org>
4402
4403 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4404 entry_func_highpc fields.
4405 * objfiles.c (init_entry_point_info): Do not clear
4406 entry_func_lowpc and entry_func_highpc.
4407 (objfile_relocate): Do not relocate entry_func_lowpc and
4408 entry_func_highpc.
4409 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4410 entry_func_highpc.
4411 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4412 entry_func_highpc.
4413 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4414 entry_func_lowpc and entry_func_highpc with call to
4415 inside_entry_func.
4416
4417 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4418
4419 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4420 quad-precision floating point arguments in registers.
4421
4422 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4423
4424 From Michael Mueller <m.mueller99@kay-mueller.de>:
4425 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4426 account.
4427
4428 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4429
4430 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4431 to -1.
4432 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4433 untriggered watchpoints to a separate if clause. Update function
4434 comment regarding STOPPED_BY_WATCHPOINT argument.
4435
4436 2004-06-22 Jim Blandy <jimb@redhat.com>
4437
4438 * gdbarch.sh: Doc fix.
4439
4440 2004-06-21 Martin Hunt <hunt@redhat.com>
4441 Kevin Buettner <kevinb@redhat.com>
4442
4443 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4444 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4445 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4446 to set_gdbarch_sp_regnum(). Use cooked register number.
4447 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4448
4449 2004-06-21 Andrew Cagney <cagney@gnu.org>
4450
4451 * gdbarch.sh: When the macro field is empty, do not generate a
4452 macro definition. When the macro field is "=", generate the macro
4453 name from the upper-case function name.
4454 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4455 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4456 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4457 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4458 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4459 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4460 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4461 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4462 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4463 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4464 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4465 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4466 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4467 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4468 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4469 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4470 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4471 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4472 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4473 (DEPRECATED_USE_STRUCT_CONVENTION)
4474 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4475 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4476 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4477 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4478 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4479 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4480 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4481 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4482 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4483 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4484 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4485 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4486 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4487 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4488 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4489 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4490 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4491 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4492
4493 2004-06-21 Andrew Cagney <cagney@gnu.org>
4494
4495 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4496 macro name, and the function rather than macro value. Only wrap
4497 macro print statements in #ifdef. Move format logic to where it
4498 is needed.
4499 * gdbarch.c: Re-generate.
4500
4501 * gdbarch.sh (read): Delete "print_p" and "description", add
4502 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4503 Delete references to print_p.
4504 (TARGET_ARCHITECTURE): Delete print predicate.
4505 * gdbarch.c: Re-generate.
4506
4507 * gdbarch.sh: Check that multi-arch methods do not provide a
4508 macro.
4509 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4510 (print_registers_info, print_float_info, print_vector_info)
4511 (adjust_breakpoint_address, remote_translate_xfer_address)
4512 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4513 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4514 name from the multi-arch definition.
4515
4516 2004-06-20 Andrew Cagney <cagney@gnu.org>
4517
4518 * gdbarch.sh: Sort by the function, instead of macro name.
4519 * gdbarch.c: Re-generate.
4520
4521 2004-06-20 Andrew Cagney <cagney@gnu.org>
4522
4523 * gdbarch.sh: Use the function, instead of macro name in
4524 errors and the log file.
4525 (return_value): Remove stray ":" in spec.
4526
4527 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4528 * gdbarch.h, gdbarch.c: Re-generate.
4529 * Makefile.in (arch-utils.o): Update dependencies.
4530 * values.c (using_struct_return): Move code calling
4531 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4532 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4533 to legacy_return_value, simplify.
4534 * infcmd.c (print_return_value): Move code calling
4535 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4536 to legacy_return_value, simplify.
4537 * infcall.c (call_function_by_hand): Move code calling
4538 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4539 * arch-utils.c: Update copyright. Include "gdbcore.h".
4540 (legacy_return_value): New function.
4541 * arch-utils.h: Update copyright.
4542 (legacy_return_value): Declare.
4543
4544 2004-06-20 Andrew Cagney <cagney@gnu.org>
4545
4546 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4547 * gdbarch.h, gdbarch.c: Re-generate.
4548 * values.c (using_struct_return): Update call.
4549 * mcore-tdep.c: Update comment.
4550 * infcall.c (call_function_by_hand): Update comment.
4551 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4552 * arch-utils.h (always_use_struct_convention): Update.
4553 * v850-tdep.c (v850_gdbarch_init): Update.
4554 * sh64-tdep.c (sh64_gdbarch_init): Update.
4555 * sh-tdep.c (sh_gdbarch_init): Update.
4556 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4557 * mips-tdep.c (mips_gdbarch_init): Update.
4558 * mcore-tdep.c (mcore_gdbarch_init): Update.
4559 * m32r-tdep.c (m32r_gdbarch_init): Update.
4560 * ia64-tdep.c (ia64_gdbarch_init): Update.
4561 * h8300-tdep.c (h8300_gdbarch_init): Update.
4562 * frv-tdep.c (frv_gdbarch_init): Update.
4563 * cris-tdep.c (cris_gdbarch_init): Update.
4564 * arm-tdep.c (arm_gdbarch_init): Update.
4565 * alpha-tdep.c (alpha_gdbarch_init): Update.
4566
4567 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4568
4569 * PROBLEMS: Add more specific information, and a work-around,
4570 for PR gdb/1458.
4571
4572 2004-06-18 Andrew Cagney <cagney@gnu.org>
4573
4574 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4575 * gdbarch.h, gdbarch.c: Re-generate.
4576 * ada-lang.c (ada_finish_decode_line_1): Update.
4577 * infrun.c (handle_inferior_event): Update.
4578 * infcall.c (find_function_addr): Update.
4579 * linespec.c (minsym_found): Update.
4580 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4581 Update.
4582 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4583 * cli/cli-cmds.c (disassemble_command): Update.
4584 * vax-tdep.c (vax_gdbarch_init): Update.
4585
4586 2004-06-18 Mark Kettenis <kettenis@gnu.org>
4587
4588 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4589
4590 2004-06-17 Andrew Cagney <cagney@gnu.org>
4591
4592 GDB 6.1.1 released from the GDB 6.1 branch.
4593 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4594 * PROBLEMS: Ditto.
4595
4596 2004-06-16 Daniel Jacobowitz <dan@debian.org>
4597
4598 PR gdb/1658
4599 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4600 operation as a uleb128. Found by Michael Coulter.
4601
4602 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4603
4604 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4605 make it non-static.
4606 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4607 to ada-lang.h; this is needed to be able to implement the kill command
4608 in multi-task mode.
4609 (task_ptid): Ditto.
4610 (task_entry): Ditto.
4611 (task_list): Ditto.
4612 (ada_build_task_list): Ditto.
4613
4614 * ada-lang.c: Conditionalize routines and data structures related
4615 to breakpoints, exceptions, completion, and symbol caching on
4616 GNAT_GDB, since these are not yet used in the submitted public sources.
4617 (ada_main_name): Editorial: Move definition out of exception-related
4618 code.
4619
4620 2004-06-15 Andrew Cagney <cagney@gnu.org>
4621
4622 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4623 deprecated_pc_in_call_dummy.
4624
4625 2004-06-15 Alan Modra <amodra@bigpond.net.au>
4626
4627 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4628 bfd_get_section_size_before_reloc or _raw_size.
4629 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4630 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4631 (dwarf2_read_section): Likewise.
4632 * elfread.c (elf_locate_sections): Likewise.
4633 * gcore.c (derive_heap_segment): Likewise.
4634 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4635 * remote-e7000.c (e7000_load): Likewise.
4636 * remote-m32r-sdi.c (m32r_load): Likewise.
4637 * remote-mips.c (mips_load_srec): Likewise.
4638 (pmon_load_fast): Likewise.
4639 * remote.c (compare_sections_command): Likewise.
4640 * symfile.c (add_section_size_callback): Likewise.
4641 (load_section_callback): Likewise.
4642 (pc_in_unmapped_range): Likewise.
4643 (pc_in_mapped_range): Likewise.
4644 (sections_overlap): Likewise.
4645 (list_overlays_command): Likewise.
4646 (simple_overlay_update_1): Likewise.
4647 (simple_overlay_update): Likewise.
4648 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4649 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4650
4651 2004-06-14 Randolph Chung <tausq@debian.org>
4652
4653 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4654 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4655 static.
4656 (hppa_hpux_inferior_created): New function.
4657 (hppa_hpux_init_abi): Register observer.
4658 * symfile.c (hp_cxx_exception_support_initialized)
4659 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4660 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4661
4662 2004-06-14 Randolph Chung <tausq@debian.org>
4663
4664 * MAINTAINERS (Write After Approval): Alphabetize my entry
4665 correctly.
4666
4667 2004-06-14 Andrew Cagney <cagney@gnu.org>
4668
4669 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4670 testsuite maintainer.
4671
4672 2004-06-13 Andrew Cagney <cagney@gnu.org>
4673
4674 * infcmd.c (print_return_value): Fix logic, allow
4675 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4676
4677 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4678 defining any macros.
4679 * gdbarch.h: Re-generate.
4680
4681 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4682 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4683 * gdbarch.h: Re-generate.
4684
4685 * values.c (generic_use_struct_convention): Don't check gcc_p.
4686
4687 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4688 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4689 * gdbarch.h, gdbarch.c: Regenerate.
4690 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4691 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4692 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4693 deprecated_max_register_raw_size and
4694 deprecated_max_register_virtual_size.
4695 * v850-tdep.c (v850_gdbarch_init): Ditto.
4696 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4697 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4698 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4699 * cris-tdep.c (cris_gdbarch_init): Ditto.
4700
4701 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4702 * gdbarch.h, gdbarch.c: Re-generate.
4703 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4704 (m68hc11_use_struct_convention): Delete function.
4705 (m68hc11_extract_struct_value_address): Delete function.
4706 (m68hc11_return_value): New function.
4707 (m68hc11_gdbarch_init): Instead of store_return_value,
4708 extract_return_value, return_value_on_stack,
4709 deprecated_extract_struct_value_address and use_struct_convention,
4710 set return_value.
4711 * values.c (using_struct_return): Do not call
4712 RETURN_VALUE_ON_STACK.
4713 * arch-utils.h (generic_return_value_on_stack_not): Delete
4714 declaration.
4715 * arch-utils.c (generic_return_value_on_stack_not): Delete
4716 function.
4717
4718 2004-06-12 Andrew Cagney <cagney@gnu.org>
4719
4720 * values.c (register_value_being_returned): Delete function.
4721 * infcmd.c (legacy_return_value): Delete function.
4722 * infcall.c (call_function_by_hand): Inline
4723 "register_value_being_returned", simplify.
4724 * values.c (using_struct_return): Update comment, refer to
4725 print_return_value instead of register_value_being_returned.
4726 * infcmd.c (print_return_value): Inline calls to
4727 register_value_being_returned and legacy_return_value. Simplify.
4728
4729 2004-06-11 Randolph Chung <tausq@debian.org>
4730
4731 * somread.c (som_symtab_read): Exclude gcc local symbols.
4732
4733 2004-06-11 Randolph Chung <tausq@debian.org>
4734
4735 * infrun.c (handle_inferior_event): Handle the case when a
4736 trampoline ends up in the runtime resolver, and if the trampoline
4737 has no name. Rearrange the code so that all the trampoline
4738 processing happens before other step-out-of-range handling.
4739
4740 2004-06-11 Martin Hunt <hunt@redhat.com>
4741
4742 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4743 has no fpu.
4744
4745 2004-06-10 Andrew Cagney <cagney@gnu.org>
4746
4747 * blockframe.c (legacy_inside_entry_func): Delete.
4748 (legacy_frame_chain_valid): Inline call to
4749 legacy_inside_entry_func, simplify.
4750
4751 2004-06-10 Bob Rossi <bob@brasko.net>
4752
4753 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
4754 * dwarf2read.c (partial_die_info): Add dirname field.
4755 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4756 (read_partial_die): Save away DW_AT_comp_dir.
4757 * defs.h (symtab_to_filename): Removed.
4758 * source.c (find_and_open_source): Added.
4759 (open_source_file): Just calls find_and_open_source.
4760 (symtab_to_filename): Removed.
4761 (symtab_to_fullname, psymtab_to_fullname): Added.
4762 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4763 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4764 symtab_to_filename.
4765 * symtab.h (partial_symtab): Add dirname field.
4766 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
4767 (mi_cmd_file_list_exec_source_file): Call new function
4768 symtab_to_fullname to find fullname.
4769 (mi_cmd_file_list_exec_source_files): Added.
4770 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
4771 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4772
4773 2004-06-10 Andrew Cagney <cagney@gnu.org>
4774
4775 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4776 to generic_use_struct_convention, the default value.
4777
4778 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4779 of abort.
4780
4781 * ns32k-tdep.c (ns32k_push_arguments): New function.
4782 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4783 * infcall.c (call_function_by_hand): Call error instead of
4784 legacy_push_arguments.
4785 * value.h (legacy_push_arguments): Delete declaration.
4786 * valops.c (legacy_push_arguments): Delete function.
4787 (value_push): Delete function.
4788
4789 2004-06-10 Brian Ford <ford@vss.fsi.com>
4790
4791 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4792 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4793 info.
4794 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4795
4796 2004-06-10 Andrew Cagney <cagney@gnu.org>
4797
4798 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4799 * gdbarch.h, gdbarch.c: Re-generate.
4800 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4801 parameters.
4802 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4803 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4804 deprecated_pc_in_call_dummy instead of
4805 DEPRECATED_PC_IN_CALL_DUMMY.
4806 (arm_skip_prologue): Ditto.
4807 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4808 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4809 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4810 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4811 Ditto.
4812 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4813 (sh64_init_extra_frame_info, sh64_get_saved_register)
4814 (sh64_pop_frame): Ditto.
4815 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4816 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4817 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4818 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4819 (h8300_pop_frame): Ditto.
4820 * blockframe.c (legacy_inside_entry_func)
4821 (legacy_frame_chain_valid): Ditto.
4822 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4823 to deprecated_pc_in_call_dummy.
4824
4825 2004-06-09 Andrew Cagney <cagney@gnu.org>
4826
4827 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4828 provide a default value.
4829 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4830 * gdbarch.h, gdbarch.c: Re-generate.
4831 * arch-utils.c (generic_convert_register_p): Rename
4832 legacy_convert_register_p
4833 (legacy_register_to_value, legacy_value_to_register): Delete
4834 functions.
4835 * arch-utils.h (generic_convert_register_p): Rename
4836 legacy_convert_register_p.
4837 (legacy_register_to_value, legacy_value_to_register): Delete
4838 declarations.
4839
4840 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4841 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4842 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4843 * gdbarch.h, gdbarch.c: Re-generate.
4844 * infcmd.c (default_print_registers_info): Simplify.
4845 * findvar.c (value_of_register): Simplify.
4846 * mi/mi-main.c (get_register): Simplify.
4847 * arch-utils.c (legacy_convert_register_p): Always return 0.
4848 (legacy_register_to_value, legacy_value_to_register): Always call
4849 internal_error.
4850
4851 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4852 #ifdef CLEAR_INSN_CACHE code.
4853 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4854 Delete #ifdef CLEAR_DEFERRED_STORES code.
4855
4856 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4857
4858 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4859 copyright.
4860 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4861
4862 * config/mips/mipsv4.mh: Delete file.
4863
4864 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4865 unreferenced macro.
4866 (hpread_adjust_stack_address): Delete declaration.
4867
4868 2004-06-08 Andrew Cagney <cagney@gnu.org>
4869
4870 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4871 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4872 PTRACE_ATTACH / PTRACE_DETACH available call error.
4873 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4874 * infttrace.c (update_thread_state_after_attach, attach, detach):
4875 Remove #ifdef wrappers.
4876 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4877 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4878 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4879 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4880 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4881 * config/nm-linux.h (ATTACH_DETACH): Delete.
4882 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4883 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4884 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4885 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4886 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4887
4888 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
4889
4890 * configure.in: Set $configdir to the right OS specific value.
4891 Use value when setting $tcldir and $tkdir.
4892 * configure: Regenerate.
4893
4894 2004-06-06 Paul Brook <paul@codesourcery.com>
4895
4896 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4897 records.
4898
4899 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4900
4901 * ada-lang.c (lookup_symbol_in_language): New function to allow
4902 re-use of another language's symbol lookup code. (Placed here
4903 temporarily while Ada support is being integrated into the public
4904 tree).
4905 (restore_language): New auxiliary function for
4906 lookup_symbol_in_language.
4907 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4908 temporarily while Ada support is being integrated into the public
4909 tree).
4910
4911 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
4912
4913 * Makefile.in (check//%): New.
4914
4915 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4916 (mn10300_store_return_value): Rewrite.
4917 (mn10300_type_align): New.
4918 (mn10300_use_struct_convention): Rewrite.
4919 (mn10300_return_value): New, using all of the above.
4920 (mn10300_pop_frame_regular): Add saved_regs_size.
4921 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4922
4923 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4924 regs if PC is on movm.
4925
4926 2004-06-07 Jim Blandy <jimb@redhat.com>
4927
4928 Add native Linux support for the PowerPC E500.
4929 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4930 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4931 all architectures except the E500.
4932 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4933 #definitions.
4934 (struct gdb_evrregset_t): New type.
4935 (have_ptrace_getsetevrregs): New variable.
4936 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4937 fetch_spe_registers): New functions.
4938 (fetch_register): Call fetch_spe_register as appropriate.
4939 Assert that we're only passed raw register numbers.
4940 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4941 Don't fetch gprs if they're pseudoregisters.
4942 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4943 store_spe_registers): New functions.
4944 (store_register): Call store_spe_register as appropriate.
4945 Assert that we're only passed raw register numbers.
4946 (store_ppc_registers): Call store_spe_registers as appropriate.
4947 Don't store gprs if they're pseudoregisters.
4948
4949 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4950
4951 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4952 struct if one exists, even if we are dealing with a zombie thread.
4953
4954 2004-06-07 Andrew Cagney <cagney@gnu.org>
4955
4956 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4957 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4958 Rename PC_REQUIRES_RUN_BEFORE_USE.
4959 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4960 #ifdef.
4961
4962 2004-06-07 Randolph Chung <tausq@debian.org>
4963
4964 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4965 unwinding after sp has been saved to the stack but before the end
4966 of the prologue, and after the fp has been modified but before it has
4967 been saved to the stack.
4968 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4969 Remove superfluous definitions.
4970 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4971
4972 2004-06-07 Guy Martin <gmsoft@gentoo.org>
4973
4974 Committed by Randolph Chung.
4975 * hppa-linux-nat.c: Include the correct version of the header file
4976 depending on the kernel version.
4977
4978 2004-06-06 Randolph Chung <tausq@debian.org>
4979
4980 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4981 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4982
4983 2004-06-06 Randolph Chung <tausq@debian.org>
4984
4985 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4986 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4987 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4988 * hppa-tdep.c (hppa_symbol_address): New function definition.
4989 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4990
4991 2004-06-06 Randolph Chung <tausq@debian.org>
4992
4993 * hppa-tdep.h (struct value): Forward declaration.
4994 (gdbarch_tdep): Define tdep find_global_pointer method.
4995 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4996 associated with the function we are trying to call, and write it
4997 to the gp register.
4998 (hppa32_convert_from_funct_ptr_addr): New function.
4999 (hppa_find_global_pointer): New function.
5000 (hppa_gdbarch_init): Set default find_global_pointer method; set
5001 convert_from_func_ptr_addr method.
5002 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5003 (hppa_linux_init_abi): Set find_global_pointer method.
5004 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5005
5006 2004-06-06 Randolph Chung <tausq@debian.org>
5007
5008 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5009 to struct value *function.
5010 * gdbarch.c: Regenerate.
5011 * gdbarch.h: Likewise.
5012 * infcall.c (call_function_by_hand): Pass entire function value
5013 to push_dummy_call.
5014
5015 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5016 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5017 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5018 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5019 * arm-tdep.c (arm_push_dummy_call): Likewise.
5020 * avr-tdep.c (avr_push_dummy_call): Likewise.
5021 * cris-tdep.c (cris_push_dummy_call): Likewise.
5022 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5023 * frv-tdep.c (frv_push_dummy_call): Likewise.
5024 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5025 * hppa-tdep.c (hppa32_push_dummy_call)
5026 (hppa64_push_dummy_call): Likewise.
5027 * i386-tdep.c (i386_push_dummy_call): Likewise.
5028 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5029 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5030 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5031 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5032 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5033 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5034 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5035 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5036 (ppc64_sysv_abi_push_dummy_call): Likewise.
5037 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5038 (ppc64_sysv_abi_push_dummy_call): Likewise.
5039 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5040 * s390-tdep.c (s390_push_dummy_call): Likewise.
5041 * sh-tdep.c (sh_push_dummy_call_fpu)
5042 (sh_push_dummy_call_nofpu): Likewise.
5043 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5044 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5045 * vax-tdep.c (vax_push_dummy_call): Likewise.
5046
5047 2004-06-04 Jim Blandy <jimb@redhat.com>
5048
5049 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5050 gdbarch argument to register_size.
5051
5052 * rs6000-tdep.c (rs6000_store_return_value): Use
5053 regcache_cooked_write_part instead of
5054 deprecated_write_register_bytes.
5055 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5056 not gdbarch_deprecated_store_return_value.
5057
5058 * ppc-linux-nat.c (store_register, fetch_register): Remove
5059 incorrect assertions. Simplify and generalize handling of
5060 transfers whose sizes are not multiples of, or less than, sizeof
5061 (PTRACE_XFER_TYPE).
5062
5063 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5064
5065 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5066 as a new thread event.
5067 * thread-db.c (thread_get_info_callback): If the thread is a
5068 zombie, return TD_THR_ZOMBIE.
5069 (thread_from_lwp): If thread_get_info_callback returns
5070 TD_THR_ZOMBIE, check if the thread is still on the thread list
5071 and return a -1 ptid if not found.
5072 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5073 change the status to TARGET_WAITKIND_SPURIOUS.
5074
5075 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
5076
5077 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5078 double values in little endian mode.
5079
5080 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5081
5082 Committed by Andrew Cagney.
5083 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5084 after last enum constant to avoid error from IBM C
5085 compiler.
5086
5087 2004-06-02 Jim Blandy <jimb@redhat.com>
5088
5089 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5090 to 'message', and make it local to the lone block that uses it.
5091
5092 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5093
5094 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5095
5096 * ada-exp.y: Update copyright notice.
5097 Include block.h.
5098
5099 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5100 SPECIAL_VARIABLE and unify the treatment of these cases.
5101
5102 (write_attribute_call0): Remove.
5103 (write_attribute_call1): Remove.
5104 (write_attribute_calln): Remove.
5105 (save_qualifier): Add missing semicolon.
5106
5107 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5108 temporarily disabled to allow compilation with FSF head version.
5109
5110 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5111 use individual operators (OP_*) for all attributes.
5112 (exp syntax): Use write_int.
5113 Handle STRING literals with OP_STRING.
5114 (variable syntax): Add limit parameter to calls to
5115 write_object_renaming.
5116
5117 (temp_parse_space): New definition to hold entities that need
5118 only live until the next call to ada_parse.
5119 (string_to_operator): Rename fields of ada_opname_table entries.
5120
5121 (write_var_from_sym): Record block.
5122 (write_var_from_name): Minor reformatting.
5123 Make sure saved name is properly encoded in the case of multiple
5124 matches, and set its language to Ada.
5125 Update comment.
5126 Modify to indicate unresolved name as symbol in the UNRESOLVED
5127 namespace, allocated in temp_parse_space.
5128 (write_int): New function.
5129
5130 (write_object_renaming): Add max_depth parameter to limit
5131 chains of object renamings.
5132 Handle case where root of renaming expression is itself a renaming.
5133 Use temp_parse_space for temporary name buffer.
5134 Handle renamings to dereferenced pointers (___XEXA suffices).
5135
5136 (ada_parse, yyerror, string_to_operator,
5137 write_var_from_sym, write_var_from_name, write_attribute_call0,
5138 write_attribute_call1, write_attribute_calln,
5139 write_object_renaming): Protoize.
5140
5141 (_initialize_ada_exp): New function.
5142
5143 * ada-lang.c: Update copyright notice.
5144 General terminology change to conform to GNAT compiler usage:
5145 mangle => encode, demangle => decode
5146 Include gdb_obstack.h.
5147 Include gdb_regex.h
5148 Include frame.h
5149 Include hashtab.h
5150 Include completer.h
5151 Include gdb_stat.h
5152 Include block.h
5153 Include infcall.h
5154
5155 (ADA_RETAIN_DOTS): Make sure this is defined.
5156 (TRUNCATION_TOWARDS_ZERO): Define.
5157 (struct string_vector): Define.
5158 (unresolved_names): Remove definition.
5159 (xnew_string_vector): New function.
5160 (string_vector_append): New function.
5161 (extract_string): Make static.
5162 (ada_unqualified_name): New function.
5163 (add_angle_brackets): New function.
5164 (function_name_from_pc): New function.
5165 (place_on_stack): Rename to ensure_lval.
5166
5167 (ensure_lval): Renamed from place_on_stack.
5168 Make identity on lvals.
5169 Update comment.
5170 (is_nonfunction): New interface.
5171 Only symbols in LOC_CONST class can be enumerals.
5172 (fill_in_ada_prototype): Remove; now independent of language.
5173 (add_defn_to_vec): Add obstack and symtab arguments.
5174 Use obstack to hold collected definitions.
5175 (num_defns_collected): New function.
5176 (defns_collected): New function.
5177 (ada_resolve_subexp): Rename to resolve_subexp.
5178 (resolve_subexp): Renamed from ada_resolve_subexp.
5179 (ada_op_name): Return non-const result.
5180 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5181 other purposes.
5182
5183 (to_fixed_array_type): Add declaration.
5184 (coerce_unspec_val_to_type): Remove offset parameter.
5185 (find_sal_from_funcs_and_line): New interface.
5186 (find_line_in_linetable): Ditto.
5187
5188 (all_sals_for_line): Rename to ada_sals_for_line and make
5189 global.
5190 Add new parameter. When set, do not ask the user to choose the
5191 instance, but use the first one found instead.
5192 Use given line number in returned sals.
5193 Fix comment.
5194 Skip the prologue if funfirstline is set.
5195 Correct for memory leak when 0 lines found.
5196
5197 (value_pos_atr): Use pos_atr.
5198 (pos_atr): New function.
5199 (standard_lookup): Add block parameter.
5200
5201 (makeTimeStart): Remove declaration and uses.
5202 (makeTimeStop): Remove declaration and uses.
5203
5204 (ada_completer_word_break_characters): Allow for VMS.
5205 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5206 (raise_sym_name): New constant.
5207 (raise_unhandled_sym_name): New constant.
5208 (raise_assert_sym_name): New constant.
5209 (process_raise_exception_name): New constant.
5210 (longest_exception_template): New constant.
5211 (warning_limit): New variable to limit warnings during expression
5212 evaluation.
5213 (warnings_issued): New variable to keep track of warnings issued.
5214 (known_runtime_file_name_patterns): New constant.
5215 (known_auxiliary_function_name_patterns): New constant.
5216 (symbol_list_obstack): New variable.
5217
5218 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5219 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5220 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5221 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5222 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5223 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5224 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5225 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5226 and strcmp.
5227
5228 (ada_get_field_index): New function.
5229 (lim_warning): New function.
5230 (ada_translate_error_message): New function.
5231 (MAX_OF_SIZE): New function.
5232 (MIN_OF_SIZE): New function.
5233 (UMAX_OF_SIZE): New function.
5234 (UMIN_OF_SIZE): New function.
5235 (discrete_type_high_bound): New function.
5236 (discrete_type_low_bound): New function.
5237 (base_type): New function.
5238 (do_command): Remove.
5239
5240 (ada_update_initial_language): Use language_ada, not language_unknown.
5241 (ada_encode): Renamed from ada_mangle.
5242 Obey ADA_RETAIN_DOTS.
5243 (ada_decode): Renamed from ada_demangle.
5244 Update coding conventions.
5245 (decoded_names_store): New hash table.
5246 (ada_decode_symbol): New function.
5247 (ada_la_decode): New function.
5248
5249 (modify_general_field): Correct computations of offset and bit
5250 position.
5251 (desc_base_type): Handle ref types, too.
5252 (ada_is_direct_array_type): New function.
5253
5254 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5255 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5256 (ada_is_bogus_array_descriptor,ada_type_of_array,
5257 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5258 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5259 ada_is_array_descriptor_type.
5260
5261 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5262 (ada_is_packed_array_type): Handle pointers or
5263 references to packed arrays as well.
5264 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5265 (decode_packed_array_type): Search for the packed array type
5266 symbol in the currently selected block and associated
5267 superblocks too.
5268 Use lookup_symbol again.
5269
5270 (decode_packed_array): Handle pointers and references.
5271 Update call to coerce_unspec_val_to_type.
5272 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5273 (ada_value_primitive_packed_val): Improve comment.
5274
5275 (ada_index_type): Substitute int type for "undefined".
5276 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5277 ada_array_langth, ada_is_string_type): Use renamed
5278 ada_is_simple_array_type.
5279 (empty_array): New function.
5280
5281 (ada_resolve): Rename to resolve.
5282 (resolve): Make static.
5283 Call renamed resolve_subexp.
5284 Update comment.
5285 (ada_resolve_subexp): Rename to resolve_subexp.
5286 (resolve_subexp): Update comment.
5287 Decomment disabled code.
5288 Add LOC_COMPUTED* cases.
5289 Modify to use temporary struct symbols (marked as being in
5290 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5291 OP_UNRESOLVED_VALUE.
5292 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5293 Add OP_STRING case.
5294 Remove OP_ARRAY.
5295 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5296 Use new ada_lookup_symbol_list interface.
5297 Use new ada_resolve_function interface.
5298 Remove OP_TYPE case.
5299
5300 (ada_args_match): Idiot proof against null actuals.
5301 Use intermediate variables to clarify.
5302 (ada_resolve_function): Update comment and interface.
5303 (mangled_ordered_before): Rename to encoded_ordered_before and
5304 update comment.
5305 (sort_choices): Update comment and interface.
5306 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5307 (user_select_syms): New interface.
5308 Use new sort_choices interface.
5309 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5310 (possible_user_operator_p): Idiot-proof against null values.
5311 (ada_simple_renamed_entity): Don't make cleanup; rely on
5312 caller to free result string.
5313 Remove const from return type.
5314 (make_array_descriptor): Rename uses of place_on_stack to
5315 ensure_lval.
5316 Make sure that arrays are on stack.
5317
5318 (HASH_SIZE): Define.
5319 (struct cache_entry): Define.
5320 (cache_space): Define.
5321 (cache): Define.
5322 (clear_ada_sym_cache): New function.
5323 (find_entry): New function.
5324 (lookup_cached_symbol): New function.
5325 (defn_vector_size): Define.
5326 (cache_symbol): New function.
5327 (defn_symbols): Remove.
5328
5329 (standard_lookup): Use lookup_symbol_in_language to get effect of
5330 C lookup.
5331 Cache results.
5332
5333 (symbol_completion_match): New function.
5334 (symbol_completion_add): New function.
5335 (ada_make_symbol_completion_list): New function.
5336
5337 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5338 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5339 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5340 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5341
5342 (ada_lookup_simple_minsym): New function.
5343 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5344
5345 (add_symbols_from_enclosing_procs): New interface.
5346 Conditionalize more helpfully.
5347 Don't bother if program isn't running.
5348 Use new interface to get_frame_block.
5349 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5350
5351 (remove_extra_symbols): New interface.
5352 (xget_renaming_scope): New function.
5353 (is_package_name): New function.
5354 (renaming_is_visible): New function.
5355 (remove_out_of_scope_renamings): New function.
5356
5357 (ada_lookup_symbol_list): New interface.
5358 Properly reinitialize the symbol list obstack.
5359 Don't call add_symbols_from_enclosing_procs if we start from a
5360 static or global block.
5361 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5362 add_symbols_from_enclosing_procs.
5363 Add symtab data to cached entries.
5364 Handle symbols prefixed with
5365 "standard__" specially; strip prefix and don't look in local symbols.
5366 Do not include out of scope renaming symbols in list of
5367 symbols returned.
5368 Add const to block parameter.
5369 Move check for non-local, non-global symbols earlier.
5370 Remove timing stuff.
5371 (ada_lookup_symbol): New interface.
5372 Find symtab as well.
5373 (ada_lookup_symbol_nonlocal): New function.
5374
5375 (is_name_suffix): Enhance suffix detection to recognize
5376 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5377 (is_dot_digits_suffix): New function.
5378 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5379
5380 (ada_add_block_symbols): New interface. Use obstack to return results
5381 in a vector of struct ada_symbol_infos. Add symtab argument.
5382 Use new interface to add_defn_to_vec.
5383 Remove calls to fill_in_ada_prototype.
5384 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5385
5386 (ada_finish_decode_line_1): Add const qualification to local to fix
5387 warning.
5388 Start looking in static block for functions to avoid attempts
5389 to search frame chain for up-level variables.
5390 Adapt to new ada_sals_for_line interface.
5391 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5392 Handle quoting of the function name inside the spec string.
5393 Skip prologue when funfirstline is set and update the
5394 function documentation to that effect.
5395
5396 (debug_print_lines, debug_print_block, debug_print_blocks,
5397 debug_print_symtab): Remove.
5398
5399 (ada_main_name): New function.
5400 (ada_exception_breakpoint_type): New function.
5401 (is_known_support_routine): New function.
5402 (ada_find_printable_frame): Renamed from find_printable_frame and made
5403 global.
5404 Remove level parameter.
5405 Use new interface to select_frame.
5406
5407 (begin_command): Remove.
5408 (ada_adjust_exception_stop): New function.
5409 (ada_print_exception_stop): New function.
5410 (exception_name_from_cond): New function.
5411 (ada_report_exception_break): Replace disabled code with
5412 conditionalization on GNAT_GDB.
5413 Get the exception name from the condition string.
5414 Remove and move functionality into new functions
5415 ada_print_exception_breakpoint_task and
5416 ada_print_exception_breakpoint_nontask.
5417 (error_breakpoint_runtime_sym_not_found): New function.
5418 (is_runtime_sym_defined): New function.
5419 (ada_breakpoint_rewrite): Uncomment suppressed code.
5420 Use symbolic error-message and runtime-symbol names.
5421 Surround runtime symbol names in quotes.
5422 Allow non-specific breakpoints on exceptions and assertions before
5423 program starts.
5424
5425 (ada_is_tagged_type): Add parameter.
5426 (ada_is_tag_type): New function.
5427 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5428 (ada_variant_discrim_type): Ditto.
5429 (value_tag_from_contents_and_address): New function.
5430 (type_from_tag): New function.
5431 (struct tag_args): New structure used to communicate with
5432 ada_tag_name_1.
5433 (ada_tag_name_1): New function.
5434 (ada_tag_name): New function.
5435
5436 (ada_scan_number): Update comment.
5437 (find_struct_field): New function.
5438 (ada_search_struct_field): Make static.
5439 (ada_value_struct_elt): New version that returns references when
5440 given pointers or references to structs.
5441 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5442 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5443 interface.
5444 (ada_value_ind): Use new ada_to_fixed_value interface.
5445 (ada_coerce_ref): Ditto.
5446 (field_offset): Remove.
5447
5448 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5449 (ada_find_renaming_symbol): New function.
5450 (ada_prefer_type): Prefer named types over unnamed ones.
5451 (variant_field_index): New function.
5452 (contains_variant_part): Removed: subsumed by variant_field_index.
5453 (ada_template_to_fixed_record_type): New function, mostly from
5454 template_to_fixed_record_type.
5455 (template_to_fixed_record_type):
5456 Do not scan the type fields beyond the last one; prevents a
5457 potential SEGV.
5458 Handle case where variant field is listed BEFORE discriminant it
5459 depends on.
5460 Fix calculation of record length when bit length is
5461 not evenly divisible by char length.
5462 Move code to ada_template_to_fixed_record_type and call it.
5463
5464 (template_to_static_fixed_type): Revise comment.
5465 Modify to work on ordinary record types as well as templates,
5466 so as to handle fields that use ___XVE or ___XVU encodings.
5467 (to_record_with_fixed_variant_part): Fill out comment.
5468 Initialize C++ stuff in right type.
5469 Allow case where DVAL is null.
5470 Handle case where variant field is not last.
5471 Fix typo concerning record length.
5472 (to_fixed_record_type): Decomment disabled code.
5473 (to_fixed_record_type): Use variant_field_index instead of
5474 contains_variant_part.
5475 (to_fixed_variant_branch_type): Ditto.
5476 (to_fixed_array_type): Decomment disabled code.
5477 (ada_to_fixed_type): Convert tagged types to the specific type.
5478 Deactivate the size-check for array types in order to avoid
5479 some false size alarms.
5480 (to_static_fixed_type): Decomment disabled code.
5481 Modify to call template_to_static_fixed_type
5482 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5483 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5484 Remove valaddr argument, as it is never really used.
5485 (ada_to_fixed_value): Change interface to act on single struct value*
5486 operand.
5487 (adjust_pc_past_prologue): New function.
5488 (ada_attribute_name): Modify to take enum exp_opcode argument.
5489
5490 (ada_enum_name): Recognize new homonym-distinguishing convention.
5491 Adjust local variable's type to remove compiler warning.
5492 Fix a small problem in the part that unqualifies the enumeration name.
5493 (ada_value_binop): New function.
5494 (ada_value_equal): New function.
5495
5496 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5497 Don't give error message when not doing normal evaluation
5498 and a tagged type doesn't seem to contain a structure member.
5499 Give error message for packed arrays.
5500 For indexing arrays, handle pointers to packed arrays correctly.
5501 Handle case of 'first and 'last attributes of bare integral type
5502 without encoded subtype info.
5503 Remove some unnecessary casts.
5504 Fix uninitialized value of type in computing 'first, 'last, or 'length
5505 of array object.
5506 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5507 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5508 calls.
5509 Attributes are now exp_opcode values.
5510 Correct treatment of 'modulus.
5511 Better error message for taking 'length of wrong kind of type;
5512 improve comment.
5513 Change EVAL_NORMAL to noside for consistency.
5514 Use ada_value_binop for DIV, MOD, REM.
5515 Make special case out of array of length 0, since an argument
5516 of 0 upsets some platforms' malloc.
5517 Use OP_STRING instead of OP_ARRAY.
5518 For slice, add check that we have an array type before extracting
5519 a slice out of it. Avoids a SEGV.
5520 When evaluating an array slice, if the array type is a reference to
5521 an aligner type, then replace the aligner type by the actual type.
5522 Decomment disabled code.
5523 Remove some dead code.
5524 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5525 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5526 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5527 and UNOP_MBR to UNOP_IN_RANGE.
5528 If an array type has a parallel ___XVE type, then use it.
5529 Turn arrays into pointers for lvalue arrays.
5530 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5531 bounds error and handle 0-length slices.
5532 Use lim_warning.
5533 When selecting fields, apply ada_to_fixed_value (because the fields
5534 might have ___XVU or ___XVE encodings even if not dynamic.)
5535 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5536 (ada_is_system_address_type): New function.
5537
5538 (get_var_value): Use new interface to ada_lookup_symbol_list.
5539 (get_int_var_value): New interface.
5540 (to_fixed_range_type): Allow unknown bound, with warning.
5541 (ada_is_modular_type): Decomment disabled code.
5542 (ADA_OPERATORS): New definition.
5543 (ada_operator_length): New function.
5544 (ada_expr_op_name): New function.
5545 (ada_forward_operator_length): New function.
5546 (ada_dump_subexp_body): New function.
5547 (ada_print_subexp): New function.
5548 (ada_exp_descriptor): New constant.
5549 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5550 (ada_language_defn): Add ada_exp_descriptor entry.
5551 Change ada_parse => parse.
5552 Add post-parser entry.
5553 Use ada-specific non-local symbol lookup.
5554 Don't use C-style arrays.
5555 String lower-bound is 1.
5556 Decomment disabled code.
5557 (parse): New function.
5558 New fields ada_translate_error_message, ada_lookup_symbol,
5559 ada_lookup_minimal_symbol.
5560
5561 * ada-lang.h: Update copyright dates.
5562 Replace the mangle/demangle terminology throughout by the
5563 more appropriate encode/decode one.
5564 Include breakpoint.h.
5565 Forward declare struct partial_symbol, struct block.
5566 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5567 (EXTRACT_ADDRESS): Remove.
5568 (EXTRACT_INT): Remove.
5569 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5570 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5571 (MAX_RENAMING_CHAIN_LENGTH): Define.
5572 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5573
5574 (enum task_states): Remove.
5575 ada_task_states: Remove.
5576 (fat_string): Remove.
5577 (struct entry_call): Remove.
5578 (struct task_fields): Remove.
5579 (struct task_entry): Remove.
5580
5581 (struct ada_symbol_info): Define.
5582 (enum ada_attribute): Remove.
5583 (enum ada_operator): Define.
5584
5585 (ada_get_field_index): Declare.
5586 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5587 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5588 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5589 (ada_lookup_symbol_list): New interface.
5590 (ada_decode_symbol): Declare.
5591 (ada_decode): Declare.
5592 (ada_lookup_symbol): New interface.
5593 (ada_update_initial_language): Declare.
5594 (ada_lookup_simple_minsym): Declare.
5595 (user_select_syms): New interface.
5596 (ada_sals_for_line): Declare.
5597 (ada_is_tagged_type): New interface.
5598 (ada_tag_name): Declare.
5599 (ada_lookup_struct_elt_type): Remove declaration.
5600 (ada_search_struct_field): Remove declaration.
5601 (ada_attribute_name): New interface.
5602 (ada_is_system_address_type): Declare.
5603 (ada_to_fixed_value): Remove declaration.
5604 (ada_template_to_fixed_record_type_1): Declare.
5605 (get_int_var_value): New interface.
5606 (ada_find_any_symbol): Declare.
5607 (ada_find_renaming_symbol): Declare.
5608 (ada_mangle): Rename to ada_encode.
5609 (ada_simple_renamed_entity): Remove const.
5610 (ada_main_name): Declare.
5611 (get_current_task): Rename to ada_get_current_task.
5612 (get_entry_number): Remove declaration.
5613 (ada_report_exception_break): Remove declaration.
5614 (ada_print_exception_breakpoint_nontask): Declare.
5615 (ada_print_exception_breakpoint_task): Declare.
5616 (ada_find_printable_frame): Declare.
5617
5618 * ada-lex.l: Update copyright notices.
5619 Use xmalloc and xfree instead of malloc and free.
5620 Use new interface to name_lookup.
5621 Use new interface to
5622 ada_mangle=>ada_encode.
5623 Redo handling of '$...' variable to parallel current treatment
5624 in c-exp.y.
5625 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5626 digit_to_int, strtoulst, processInt, processReal, processId,
5627 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5628 yywrap): Protoize.
5629
5630 (processInt): Use cast to remove harmless warning.
5631 (processReal): Modify to get rid of compiler warning on scan formats.
5632
5633 (processId): Replace xmalloc with obstack_alloc for name and remove
5634 call to ada_name_string_cleanup.
5635 Remove obsolete disabled code.
5636 (name_lookup): Ditto.
5637 New interface.
5638 Use obsavestring on temp_parse_space instead of savestring
5639 on name, and remove call to ada_name_string_cleanup.
5640 Free string returned from ada_simple_renamed_entity.
5641 Use new interface to ada_lookup_symbol_list.
5642 Decomment disabled code.
5643 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5644 not types.
5645 When a type name lookup succeeds as a result of
5646 lookup_primitive_typename, check for regular type entry that has not
5647 yet been read in.
5648 Limit length of chain of renamed symbols we are willing to follow.
5649 Do not break names beginning with "standard__" into segments.
5650 (block_lookup): Use new interface to ada_lookup_symbol_list.
5651
5652 * ada-typeprint.c: Update copyright notice.
5653 (demangled_type_name): Rename to decoded_type_name.
5654 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5655 (print_range_bound): Correct handling of negative
5656 bounds that make the index type looked unsigned under STABS.
5657 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5658 (print_range_type_named): Use the builtin int type if no type
5659 corresponding to the given type name could be found.
5660 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5661 Add some bullet-proofing.
5662 (print_variant_clauses): Allow for variant branches with ___XVU
5663 encodings that are not dynamic fields.
5664 Use new interface to ada_is_tagged_type.
5665 (print_record_type): Allow for fields with ___XVE encodings that
5666 are not dynamic fields.
5667 Use new interface to ada_is_tagged_type.
5668 (ada_print_type): ada_is_array_descriptor =>
5669 ada_is_array_descriptor_type.
5670
5671 * ada-valprint.c: Update copyright notice.
5672 Include gdb_string.h
5673 Include infcall.h
5674 (ui_memcpy): New function.
5675 (ada_print_floating): New function.
5676 (ada_print_str): Order arguments correctly.
5677 Correct handling of empty arrays and arrays of 0-length items.
5678 ada_is_array_descriptor => ada_is_array_descriptor_type
5679 Print values of type System.Address in hexadecimal format.
5680 Use ada_print_floating to print floating-point numbers in Ada format.
5681 Print class tag values with type names.
5682 No longer print the address of reference values. Avoids
5683 a potential confusion.
5684 (ada_value_print): Stop printing the object type for reference
5685 values, but preserve that behavior for access types. Avoids
5686 a potential confusion.
5687 Simplify one conditional expression, as the first part is now
5688 necessarily true.
5689 ada_is_array_descriptor => ada_is_array_descriptor_type
5690 Add check for arrays for null records, and print them by hand.
5691
5692 2004-06-01 Jim Blandy <jimb@redhat.com>
5693
5694 * ppc-tdep.h: Delete unused 'regoff' member.
5695 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5696
5697 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5698
5699 Fix PR symtab/1661.
5700 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5701 (hpread_read_struct_type): Likewise.
5702
5703 2004-06-01 Andrew Cagney <cagney@gnu.org>
5704
5705 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5706 instead of xasprintf.
5707 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5708 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5709 (mi_cmd_data_list_register_names)
5710 (mi_cmd_data_list_changed_registers)
5711 (mi_cmd_data_list_register_values)
5712 (get_register, mi_cmd_data_write_register_values)
5713 (mi_cmd_data_write_register_values)
5714 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5715 (mi_cmd_target_download, mi_cmd_target_select)
5716 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5717 (mi_execute_cli_command, mi_execute_async_cli_command)
5718 (mi_execute_async_cli_command): Ditto.
5719 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5720 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5721
5722 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5723 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5724 error_last_message instead of mi_error_last_message.
5725 * mi/mi-main.c (mi_error_last_message): Delete function.
5726
5727 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5728 "invalid number of columns" error. Delete redundant "out of
5729 memory" check.
5730
5731 2004-05-31 Mark Kettenis <kettenis@gnu.org>
5732
5733 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5734 (gregset_t, fpregset_t): Remove typedefs.
5735 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5736 (REG_OFFSET): Rename argument.
5737 (i386bsd_r_reg_offset): Rename from reg_offset.
5738 (REG_ADDR): Remove macro.
5739 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5740 functions.
5741 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5742 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5743 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5744 instead of supply_gregset.
5745 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5746 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5747 instead of fill_gregset.
5748 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5749
5750 * i386bsd-nat.c: Don't include "gregset.h".
5751 (supply_gregset, fill_gregset): Make static.
5752 (supply_fpregset, fill_fpregset): Remove.
5753 * Makefile.in (i386bsd-nat.o): Update dependencies.
5754
5755 2004-05-30 Mark Kettenis <kettenis@gnu.org>
5756
5757 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5758 "gdb_assert.h". Con't include "gregset.h".
5759 (fbsd_make_corefile_notes): Use regset-based core file support
5760 instead off fill_gregset and fill_fpregset.
5761 * Makefile.in (fbsd-proc.o): Update dependencies.
5762
5763 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5764 instructions.
5765 (m88k_frame_prev_register): Simplify code a bit.
5766
5767 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5768 (amd64_collect_fpregset): New function.
5769 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5770
5771 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5772
5773 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5774 (i386_collect_gregset): New function.
5775 (i386_supply_fpregset): Adjust comment.
5776 (i386_collect_fpregset): New function.
5777 (i386_regset_from_core_section): Use i386_collect_gregset and
5778 i386_collect_fpregset.
5779
5780 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5781 handle VALUEP being null.
5782
5783 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5784
5785 2004-05-29 Mark Kettenis <kettenis@gnu.org>
5786
5787 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5788
5789 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5790 assembler in OpenBSD 3.5-current.
5791 (amd64obsd_sigcontext_addr): Likewise.
5792
5793 2004-05-28 Jim Blandy <jimb@redhat.com>
5794
5795 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5796 register set, so our regcache isn't declared "legacy" and our E500
5797 pseudoregister read and write functions aren't ignored.
5798 (rs6000_register_byte, rs6000_register_raw_size,
5799 rs6000_register_virtual_type, rs6000_register_convertible,
5800 rs6000_register_convert_to_virtual,
5801 rs6000_register_convert_to_raw): Deleted.
5802 (rs6000_register_type, rs6000_convert_register_p,
5803 rs6000_register_to_value, rs6000_value_to_register): New
5804 functions.
5805 (rs6000_gdbarch_init): Don't register
5806 gdbarch_deprecated_register_size,
5807 gdbarch_deprecated_register_bytes,
5808 gdbarch_deprecated_register_byte,
5809 gdbarch_deprecated_register_raw_size,
5810 gdbarch_deprecated_register_virtual_type,
5811 gdbarch_deprecated_register_convertible,
5812 gdbarch_deprecated_register_convert_to_virtual, or
5813 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5814 register gdbarch_register_type, gdbarch_convert_register_p,
5815 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5816
5817 2004-05-26 Jim Blandy <jimb@redhat.com>
5818
5819 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5820 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5821 functions, updated to match the register numberings used in GCC.
5822 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5823 rs6000_dwarf2_reg_to_regnum as register number conversions
5824 functions for STABS and Dwarf2.
5825
5826 2004-05-26 Randolph Chung <tausq@debian.org>
5827
5828 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5829 in header file.
5830
5831 2004-05-25 Joel Brobecker <brobecker@gnat.com>
5832
5833 * NEWS: Document new "start" command.
5834
5835 2004-05-25 Randolph Chung <tausq@debian.org>
5836
5837 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5838 hppa-linux.
5839
5840 2004-05-25 Randolph Chung <tausq@debian.org>
5841
5842 * hppa-hpux-tdep.c (offsetof): Define.
5843 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5844 (hppa32_hpux_frame_base_before_sigtramp)
5845 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5846 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5847 (hppa64_hpux_frame_base_before_sigtramp)
5848 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5849 functions.
5850 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5851 (hppa_hpux_sigtramp_frame_unwind_cache)
5852 (hppa_hpux_sigtramp_frame_this_id)
5853 (hppa_hpux_sigtramp_frame_prev_register)
5854 (hppa_hpux_sigtramp_frame_unwind)
5855 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5856 (hppa_hpux_init_abi): Register sigtramp unwinder.
5857 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5858
5859 2004-05-25 Randolph Chung <tausq@debian.org>
5860
5861 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5862 and multiple stack unwinds.
5863 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5864
5865 2004-05-25 Andrew Cagney <cagney@gnu.org>
5866
5867 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5868 * symfile-mem.h: Delete file.
5869 * symfile-mem.c: Do not include "symfile-mem.h".
5870 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5871 "struct bfd_section". When an error do not bother returning NULL.
5872 (add_symbol_file_from_memory_command): Use "struct bfd" and
5873 "struct bfd_section".
5874 * Makefile.in (symfile_mem_h): Delete.
5875 (symfile-mem.o): Update dependencies.
5876
5877 2004-05-25 Nick Roberts <nickrob@gnu.org>
5878
5879 * gdb-mi.el: New file.
5880
5881 2004-05-25 Andrew Cagney <cagney@gnu.org>
5882
5883 * inftarg.c: Include "observer.h".
5884 (child_attach, child_create_inferior): Notify inferior_created.
5885 * corelow.c: Include "observer.h".
5886 (core_open): Notify inferior_created.
5887 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5888
5889 2004-05-25 Andrew Cagney <cagney@gnu.org>
5890
5891 * target.h (struct target_ops): Add from_tty to
5892 to_create_inferior.
5893 (target_create_inferior, find_default_create_inferior): Update.
5894 * infcmd.c (run_command): Update.
5895 * wince.c (child_create_inferior): Update.
5896 * win32-nat.c (child_create_inferior): Update.
5897 * uw-thread.c (uw_thread_create_inferior): Update.
5898 * thread-db.c (thread_db_create_inferior): Update.
5899 * target.c (debug_to_create_inferior)
5900 (find_default_create_inferior): Update.
5901 (maybe_kill_then_create_inferior): Update.
5902 * sol-thread.c (sol_thread_create_inferior): Update.
5903 * remote.c (extended_remote_async_create_inferior)
5904 (extended_remote_create_inferior): Update.
5905 * remote-vx.c (vx_create_inferior): Update.
5906 * remote-st.c (st2000_create_inferior): Update.
5907 * remote-sim.c (gdbsim_create_inferior): Update.
5908 * remote-sds.c (sds_create_inferior): Update.
5909 * remote-rdp.c (remote_rdp_create_inferior): Update.
5910 * remote-rdi.c (arm_rdi_create_inferior): Update.
5911 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5912 * remote-e7000.c (e7000_create_inferior): Update.
5913 * procfs.c (procfs_create_inferior): Update.
5914 * ocd.c (ocd_create_inferior): Update.
5915 * ocd.h (ocd_create_inferior): Update.
5916 * nto-procfs.c (procfs_create_inferior): Update.
5917 * monitor.c (monitor_create_inferior): Update.
5918 * lin-lwp.c (lin_lwp_create_inferior): Update.
5919 * inftarg.c (child_create_inferior): Update.
5920 * hpux-thread.c (hpux_thread_create_inferior): Update.
5921 * gnu-nat.c (gnu_create_inferior): Update.
5922
5923 2004-05-25 Andrew Cagney <cagney@gnu.com>
5924
5925 * MAINTAINERS: Update e-mail address.
5926
5927 2004-05-24 Randolph Chung <tausq@debian.org>
5928
5929 * thread.c (info_threads_command, thread_apply_all_command)
5930 (thread_apply_command, thread_command, do_captured_thread_select):
5931 Remove HPUXHPPA-specific code.
5932
5933 2004-05-24 Randolph Chung <tausq@debian.org>
5934
5935 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5936 unused symbols.
5937 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5938 references.
5939
5940 2004-05-24 Joel Brobecker <brobecker@gnat.com>
5941
5942 * infcmd.c (kill_if_already_running): New function, extracted
5943 from run_command().
5944 (run_command): Replace extracted code by call to
5945 kill_if_already_running().
5946 (start_command): New function.
5947 (_initialize_infcmd): Add "start" command.
5948
5949 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5950
5951 Add OpenBSD/m88k support.
5952 * NEWS (New native configurations): Mention OpenBSD/m88k.
5953 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5954 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5955 * Makefile.in (m88k_tdep_h): New variable.
5956 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5957 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5958 * configure.host: Add m88*-*-openbsd*.
5959 * configure.tgt: Add m88*-*-openbsd*.
5960
5961 2004-05-24 Jim Blandy <jimb@redhat.com>
5962
5963 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5964 to approve changes.
5965
5966 2004-05-24 Kevin Buettner <kevinb@redhat.com>
5967
5968 * symtab.c (fixup_section): Search section table when lookup by
5969 name fails.
5970
5971 2004-05-24 Randolph Chung <tausq@debian.org>
5972
5973 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5974 be "small_struct".
5975
5976 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5977
5978 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5979 register number in regcache_raw_collect call.
5980 (m68kbsd_collect_fpregset): Likewise.
5981 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5982
5983 * regset.h (struct regset): Add back `regset' member.
5984
5985 2004-05-23 Mark Kettenis <kettenis@gnu.org>
5986
5987 * configure.in: Check for td_pcb in `struct thread'.
5988 * configure, config.in: Regenerated.
5989
5990 * dpx2-nat.c: Remove file.
5991 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5992 (dpx2-nat.o): Remove dependencies.
5993
5994 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5995 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5996 (amd64obsd_supply_pcb): New function.
5997 (_initialize_amd64obsd_nat): Enable libkvm interface.
5998 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5999 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6000 (LOADLIBES): New variable.
6001
6002 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6003 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6004 (sparc32nbsd_supply_pcb): New function.
6005 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6006 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6007 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6008 (LOADLIBES): New variable.
6009
6010 2004-05-22 Mark Kettenis <kettenis@gnu.org>
6011
6012 * bsd-kvm.c, bsd-kvm.h: New files.
6013 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6014 "bsd-kvm.h".
6015 (i386fbsd_supply_pcb): New function.
6016 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6017 (i386fbsd-nat.o): Update dependencies.
6018 (bsd_kvm_h): New variable.
6019 (bsd-kvm.o): New dependency.
6020 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6021 (LOADLIBES): New variable.
6022
6023 * regset.c: Tweak comment.
6024 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6025 macro.
6026 * regset.h: Update copyright year.
6027 (struct regset): Remove `descr' member, add `gdbarch' member.
6028 (regset_alloc): Adjust prototype and comment.
6029 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6030 (i386_supply_fpregset): Likewise.
6031 (i386_regset_from_core_section): Update call to regset_alloc.
6032 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6033 REGSET->arch.
6034 (i386obsd_aout_regset_from_core_section): Update call to
6035 regset_alloc.
6036 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6037 REGSET->arch.
6038 (i386nbsd_aout_regset_from_core_section): Update call to
6039 regset_alloc.
6040 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6041 REGSET->arch.
6042 (amd64_regset_from_core_section): Update call to regset_alloc.
6043 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6044 REGSET->arch.
6045 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6046 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6047 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6048 (sparc32nbsd_init_abi): Update call to regset_alloc.
6049 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6050 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6051 (sparc64obsd_init_abi): Update call to regset_alloc.
6052 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6053 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6054 (sparc64nbsd_init_abi): Update call to regset_alloc.
6055 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6056 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6057 (sparc64fbsd_init_abi): Update call to regset_alloc.
6058
6059 2004-05-22 Jim Blandy <jimb@redhat.com>
6060
6061 * ppc-tdep.h (spe_register_p): New declaration.
6062 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6063 ppc_spefscr_regnum.
6064 * rs6000-tdep.c (spe_register_p): New function.
6065 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6066 spefscr.
6067 (rs6000_gdbarch_init): Initialize the new members of the tdep
6068 structure.
6069
6070 2004-05-21 Jim Blandy <jimb@redhat.com>
6071
6072 * ppc-linux-nat.c (fetch_register): Move code back to be next
6073 to the comment that describes it. (Moved code, instead of
6074 comment, for symmetry with store_register.)
6075
6076 Allocate regset structures in the gdbarch's obstack, not using
6077 xmalloc.
6078 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6079 Add 'arch' argument. Allocate the regset on arch's obstack, not
6080 using xmalloc.
6081 * regset.h (regset_alloc): Update declaration.
6082 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6083 gdbarch argument.
6084 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6085 * i386-tdep.c (i386_regset_from_core_section): Same.
6086 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6087 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6088 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6089 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6090 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6091 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6092
6093 2004-05-21 Joel Brobecker <brobecker@gnat.com>
6094
6095 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6096
6097 2004-05-21 Jim Blandy <jimb@redhat.com>
6098
6099 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6100 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6101
6102 2004-05-20 Jim Blandy <jimb@redhat.com>
6103
6104 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6105
6106 2004-05-20 Mark Kettenis <kettenis@gnu.org>
6107
6108 * regset.h: Make prototype const-correct.
6109 * regset.c (regset_xmalloc): Make const-correct.
6110
6111 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6112
6113 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6114 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6115 (symbol_search_name): Declare.
6116
6117 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6118 (iter_name_next_hashed): Ditto.
6119 (iter_name_next_linear): Ditto.
6120 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6121
6122 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6123 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6124 (symbol_search_name): New function.
6125
6126 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6127
6128 * minsyms.c (build_minimal_symbol_hash_tables): Change
6129 test for adding to demangled hash table to check for difference
6130 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6131
6132 2004-05-19 Jim Blandy <jimb@redhat.com>
6133
6134 Use a constructor function to create regset structures.
6135 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6136 (struct regset): Use supply_regset_ftype. Add new
6137 'collect_regset' member.
6138 (regset_xmalloc): New declaration.
6139 * regset.c: New file.
6140 * am64-tdep.c (amd64_regset_from_core_section): Use
6141 regset_xmalloc to construct regset structures.
6142 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6143 * i386-tdep.c (i386_regset_from_core_section): Same.
6144 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6145 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6146 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6147 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6148 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6149 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6150 * Makefile.in (COMMON_OBS): Add regset.o.
6151 (regset.o): New rule.
6152
6153 2004-05-19 Joel Brobecker <brobecker@gnat.com>
6154
6155 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6156 and pthread_cond_wait.c.
6157
6158 2004-05-18 Jim Blandy <jimb@redhat.com>
6159
6160 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6161 before the mach-specific switch, and then let the individual cases
6162 override the defaults, rather than leaving them uninitialized
6163 until the switch and then setting them in each case.
6164
6165 2004-05-18 Randolph Chung <tausq@debian.org>
6166
6167 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6168 millicode functions.
6169
6170 2004-05-18 Randolph Chung <tausq@debian.org>
6171
6172 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6173 references to dld_flags_buffer consistent.
6174
6175 2004-05-18 Randolph Chung <tausq@debian.org>
6176
6177 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6178 it for unwinding the stack.
6179
6180 2004-05-18 Randolph Chung <tausq@debian.org>
6181
6182 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6183 Undefine these so we can overide them using gdbarch.
6184
6185 2004-05-18 Randolph Chung <tausq@debian.org>
6186
6187 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6188 handling for 64-bit HPUX (elf).
6189
6190 2004-05-18 Daniel Jacobowitz <dan@debian.org>
6191
6192 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6193 constants.
6194 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6195 * ia64-tdep.c (examine_prologue): Likewise.
6196 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6197 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6198
6199 2004-05-18 Mark Kettenis <kettenis@gnu.org>
6200
6201 * vax-tdep.c (vax_return_value): Implement
6202 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6203
6204 2004-05-17 Mark Kettenis <kettenis@gnu.org>
6205
6206 * vax-tdep.c (vax_return_value): Fix typo.
6207
6208 2004-05-17 Andrew Cagney <cagney@redhat.com>
6209
6210 * MAINTAINERS: Mark Salter was also responsible for
6211 testsuite/config/
6212
6213 * NEWS: Mention signal fixes.
6214
6215 2004-05-17 Randolph Chung <tausq@debian.org>
6216
6217 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6218 check to see if we are unwinding an export stub. Export stubs clobber
6219 the %rp in the call path and stores the original rp in a stack slot.
6220
6221 2004-05-17 Jim Blandy <jimb@redhat.com>
6222
6223 * MAINTAINERS: Update address for J.T. Conklin.
6224
6225 2004-05-17 Randolph Chung <tausq@debian.org>
6226
6227 * hppa-tdep.c: Remove superfluous #include's.
6228 * Makefile.in (hppa-tdep.o): Update dependencies.
6229
6230 2004-05-17 Randolph Chung <tausq@debian.org>
6231
6232 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6233 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6234 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6235 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6236 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6237 Remove static function declarations.
6238
6239 2004-05-17 Mark Kettenis <kettenis@gnu.org>
6240
6241 * alphabsd-nat.c: Update copyright year.
6242 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6243
6244 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6245 and M68K_A2_REGNUM.
6246
6247 * m68k-tdep.c (m68k_svr4_return_value): Implement
6248 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6249
6250 2004-05-16 Mark Kettenis <kettenis@gnu.org>
6251
6252 * sol-thread.c Update copyright year. Fix various coding
6253 standards violations. Tweak a few comments.
6254 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6255 Delete prototypes.
6256
6257 2004-05-15 Randolph Chung <tausq@debian.org>
6258
6259 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6260 as pointer instead of array reference since HPUX compiler does
6261 not accept unsized array arguments.
6262 * somsolib.c (dld_flags_buffer): Use constant array size.
6263
6264 2004-05-15 Mark Kettenis <kettenis@gnu.org>
6265
6266 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6267 offset with decimal offset.
6268 (amd64obsd_sigcontext_addr): Return correct address for entire
6269 signal trampoline.
6270
6271 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6272 instead of get_frame_base.
6273
6274 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6275 (fill_gregset): Use regcache_raw_collect.
6276
6277 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6278 ppcobsd-tdep.c.
6279
6280 * config/sparc/tm-nbsd64.h: Remove file.
6281 * config/tm-sunos.h: Remove file.
6282
6283 2004-05-15 Joel Brobecker <brobecker@gnat.com>
6284
6285 * rs6000-tdep.c (store_param_on_stack_p): New function,
6286 an improved version of some code extracted from skip_prologue().
6287 (skip_prologue): Use store_param_on_stack_p() to detect
6288 instructions saving a parameter on the stack. Detect when r0
6289 is used to save a parameter.
6290 Do not mark "li rx, SIMM" instructions as part of the prologue,
6291 unless the following instruction is also part of the prologue.
6292
6293 2004-05-14 Andrew Cagney <cagney@redhat.com>
6294
6295 * infrun.c (handle_inferior_event): Simplify
6296 STEP_OVER_UNDEBUGGABLE.
6297
6298 * infrun.c (handle_step_into_function): Delete function.
6299 (handle_inferior_event): Inline calls to
6300 handle_step_into_function.
6301
6302 2004-05-14 Jerome Guitton <guitton@gnat.com>
6303
6304 * rs6000-nat.c: Fix a comment.
6305
6306 2004-05-12 David Anderson <davea@sgi.com>
6307
6308 Committed by Jim Blandy <jimb@redhat.com>:
6309 * regcache.c (struct regcache_descr): fix comment spelling.
6310
6311 2004-05-13 J. Brobecker <brobecker@gnat.com>
6312
6313 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6314 Fixes a link link failure.
6315
6316 2004-05-13 J. Brobecker <brobecker@gnat.com>
6317
6318 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6319 error that was causing the build to fail.
6320
6321 2004-05-13 J. Brobecker <brobecker@gnat.com>
6322
6323 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6324 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6325
6326 2004-05-13 Andrew Cagney <cagney@redhat.com>
6327
6328 * infrun.c (handle_inferior_event): Check for
6329 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6330 calls. Update comments.
6331
6332 2004-05-13 Jim Blandy <jimb@redhat.com>
6333
6334 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6335 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6336 (store_regs_user_thread, store_regs_kernel_thread): Use
6337 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6338 * ppc-linux-nat.c (fill_gregset): Same.
6339 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6340 (ppc_linux_sigtramp_cache): Same.
6341 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6342 (ppcnbsd_sigtramp_cache_init): Same.
6343 * rs6000-nat.c (fetch_core_registers): Same.
6344 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6345 (rs6000_frame_cache): Same.
6346
6347 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6348 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6349 of assuming that the gprs are numbered starting with zero.
6350 * ppc-linux-nat.c (fill_gregset): Same.
6351 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6352 * ppcnbsd-nat.c (getregs_supplies): Same.
6353 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6354 * rs6000-nat.c (fetch_core_registers): Same.
6355 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6356
6357 2004-05-07 Michael Snyder <msnyder@redhat.com>
6358
6359 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6360 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6361
6362 2004-05-13 Andrew Cagney <cagney@redhat.com>
6363
6364 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6365
6366 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6367
6368 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6369 base_address for shared libraries.
6370
6371 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6372
6373 * MAINTAINERS (write after approval): Add myself.
6374
6375 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6376
6377 * breakpoint.c (bpstat_stop_status): Add new argument
6378 STOPPED_BY_WATCHPOINT. Use it instead of testing
6379 target_stopped_data_address agaist 0 to check whether
6380 or not we stopped due to a hardware watchpoint.
6381 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6382 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6383 with new argument.
6384
6385 2004-05-12 Jim Blandy <jimb@redhat.com>
6386
6387 * configure.in: When checking whether we should use the -bbigtoc
6388 option, don't forget to restore the original value of LDFLAGS.
6389 * configure: Regenerated.
6390
6391 2004-05-12 Andrew Cagney <cagney@redhat.com>
6392
6393 * thread.c (load_infrun_state): Delete step_sp.
6394 * infrun.c (context_switch): Ditto.
6395 * inferior.h (step_sp): Ditto.
6396 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6397 * gdbthread.h (struct thread_info, save_infrun_state)
6398 (restore_infrun_state): Ditto.
6399
6400 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6401
6402 * MAINTAINERS (write after approval): Add myself.
6403
6404 2004-05-12 Andrew Cagney <cagney@redhat.com>
6405
6406 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6407 eliminate reference to step_sp.
6408 (struct execution_control_state, init_execution_control_state)
6409 (handle_inferior_event, keep_going): Delete update_step_sp and
6410 step_sp.
6411 * infcmd.c (step_sp): Note that variable is unused.
6412
6413 2004-05-11 Andrew Cagney <cagney@redhat.com>
6414
6415 * infrun.c (step_over_function): Delete function.
6416 (handle_step_into_function): Use insert_step_resume_breakpoint.
6417 (insert_step_resume_breakpoint): Fix assertion.
6418
6419 2004-05-11 Nick Roberts <nickrob@gnu.org>
6420
6421 * utils.c (defaulted_query): Just use the normal query input type
6422 when printing the annotations.
6423
6424 2004-05-11 Andrew Cagney <cagney@redhat.com>
6425
6426 * infrun.c (handle_inferior_event): Simplify code handling
6427 step-into or return-from a signal trampoline.
6428
6429 2004-05-11 Andrew Cagney <cagney@redhat.com>
6430
6431 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6432 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6433
6434 2004-05-10 Jim Blandy <jimb@redhat.com>
6435
6436 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6437 with a call to internal_error.
6438
6439 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6440 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6441 processor variant lacks those registers.
6442 (ppc_floating_point_unit_p): Change description to make it clear
6443 that this returns info about the ISA, not the ABI.
6444 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6445 return true or false by checking tdep->ppc_fp0_regnum and
6446 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6447 arch/mach switching done in rs6000_gdbarch_init; it's better to
6448 keep that logic there, and just check the results here.
6449 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6450 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6451 floating-point registers.
6452 (ppc_supply_fpregset, ppc_collect_fpregset)
6453 (rs6000_push_dummy_call, rs6000_extract_return_value)
6454 (rs6000_store_return_value): Assert that we have floating-point
6455 registers.
6456 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6457 (rs6000_frame_cache): Don't note the locations at which
6458 floating-point registers were saved if we have no fprs.
6459 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6460 registers.
6461 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6462 (store_regs_user_thread, store_regs_kernel_thread): Only call
6463 supply_fprs / fill_fprs if we actually have floating-point
6464 registers.
6465 (special_register_p): Check ppc_fpscr_regnum before matching
6466 against it.
6467 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6468 supply / collect fpscr if we don't have it.
6469 * ppc-bdm.c: #include "gdb_assert.h".
6470 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6471 have floating-point registers, since I can't test this code on
6472 FP-free systems to adapt it.
6473 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6474 fpscr and floating point register numbers if they don't exist.
6475 (fetch_register): Assert that we have floating-point registers
6476 before we reach the code that handles them.
6477 (store_register): Same. And use tdep instead of calling
6478 gdbarch_tdep again.
6479 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6480 don't have them.
6481 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6482 fprs and fpscr if we don't have them.
6483 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6484 don't have them.
6485 * ppcnbsd-nat.c: #include "gdb_assert.h".
6486 (getfpregs_supplies): Assert that we have floating-point registers.
6487 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6488 * ppcobsd-tdep.c: #include "gdb_assert.h".
6489 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6490 have floating-point registers.
6491 * rs6000-nat.c (regmap): Don't match against the fpscr and
6492 floating point register numbers if they don't exist.
6493 (fetch_inferior_registers, store_inferior_registers,
6494 fetch_core_registers): Only fetch / store / supply the
6495 floating-point registers and the fpscr if we have them.
6496 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6497 (ppcobsd-tdep.o): Update dependencies.
6498
6499 2004-05-10 Andrew Cagney <cagney@redhat.com>
6500
6501 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6502 (context_switch): Do not switch through_sigtramp_breakpoint.
6503 * gdbthread.h (save_infrun_state, load_infrun_state)
6504 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6505 and structure member.
6506 * thread.c (load_infrun_state, save_infrun_state): Update.
6507
6508 2004-05-10 Mark Kettenis <kettenis@gnu.org>
6509
6510 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6511
6512 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6513
6514 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6515 throughout.
6516 * aclocal.m4: Regenerate.
6517
6518 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6519
6520 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6521
6522 2004-05-10 Andrew Cagney <cagney@redhat.com>
6523
6524 * infrun.c (check_sigtramp2): Delete function.
6525 (handle_inferior_event): When single stepping, and taking a
6526 signal, set a breakpoint at the signal return address. Delete
6527 redundant calls to check_sigtramp2.
6528 (insert_step_resume_breakpoint): New function.
6529 (through_sigtramp_breakpoint, handle_inferior_event)
6530 (follow_exec, wait_for_inferior, fetch_inferior_event)
6531 (currently_stepping, keep_going): Delete most uses of
6532 through_sigtramp_breakpoint, not that it should be deleted.
6533 (delete_breakpoint_current_contents): Delete function.
6534
6535 2004-05-10 Randolph Chung <tausq@debian.org>
6536
6537 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6538 target.
6539 * config/pa/tm-linux.h: New file.
6540
6541 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
6542
6543 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6544 of prefixes. Don't print the prefix twice in the CLI.
6545
6546 2004-05-10 Jim Blandy <jimb@redhat.com>
6547
6548 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6549 collect all the gprs.
6550
6551 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6552 loop collecting gprs.
6553
6554 2004-05-09 Andrew Cagney <cagney@redhat.com>
6555
6556 * remote-vx.c (net_step): Delete step-range code.
6557 * remote.c (remote_resume, init_all_packet_configs)
6558 (set_remote_protocol_E_packet_cmd)
6559 (show_remote_protocol_E_packet_cmd)
6560 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6561 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6562 (show_remote_protocol_e_packet_cmd): Ditto.
6563
6564 2004-05-09 Mark Kettenis <kettenis@gnu.org>
6565
6566 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6567
6568 * hppa-tdep.h: Update copyright year.
6569 (struct trad_frame_saved_reg): Add opaque declaration.
6570
6571 * amd64-tdep.c (amd64_return_value): Implement
6572 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6573
6574 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6575 (m68k_value_to_register): New functions.
6576 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6577 value_to_register.
6578
6579 * defs.h (enum return_value_convention): Add
6580 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6581 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6582 * infcmd.c (legacy_return_value): New function.
6583 (print_return_value): Rwerite to implement
6584 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6585 * values.c (using_struct_return): Check for inequality to
6586 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6587 RETURN_VALUE_STRUCT_CONVENTION.
6588 * i386-tdep.c (i386_return_value): Implement
6589 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6590
6591 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6592 include "symtab.h", "opcode/vax.h" and "inferior.h".
6593 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6594 to read_memory_unsigned_integer.
6595 (vax_gdbarch_init): Reorder.
6596 (_initialize_vax_tdep): Spell out prototype.
6597 * Makefile.in (vax-tdep.o): Update dependencies.
6598
6599 2004-05-08 Andrew Cagney <cagney@redhat.com>
6600
6601 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6602 * target.c (target_detach, target_disconnect): Ditto.
6603
6604 * infcall.c (call_function_by_hand): When no
6605 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6606 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6607 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6608 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6609 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6610
6611 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6612 * gdbarch.h, gdbarch.c: Re-generate.
6613 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6614 deprecated_fix_call_dummy.
6615 * v850-tdep.c (v850_gdbarch_init): Ditto.
6616 * infcall.c (call_function_by_hand): Do not call
6617 DEPRECATED_FIX_CALL_DUMMY.
6618
6619 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6620 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6621 * gdbarch.h, gdbarch.c: Re-generate.
6622 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6623 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6624 deprecated_sizeof_call_dummy_words.
6625 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6626 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6627 * v850-tdep.c (v850_gdbarch_init): Ditto.
6628 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6629 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6630 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6631 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6632 * arch-utils.h (legacy_call_dummy_words)
6633 (legacy_sizeof_call_dummy_words): Delete declarations.
6634 * arch-utils.c (legacy_call_dummy_words)
6635 (legacy_sizeof_call_dummy_words): Delete variables.
6636
6637 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6638 * gdbarch.h, gdbarch.c: Re-generate.
6639 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6640 * infcall.c (call_function_by_hand): Eliminate call to
6641 DEPRECATED_PUSH_DUMMY_FRAME.
6642 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6643 push_dummy_frame.
6644 (ns32k_push_dummy_frame): Delete function.
6645
6646 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6647 deprecated_call_dummy_breakpoint_offset or
6648 deprecated_call_dummy_start_offset.
6649 * dummy-frame.c, arm-tdep.c: Update comments.
6650 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6651 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6652 * gdbarch.h, gdbarch.c: Re-generate.
6653
6654 * infcall.c (legacy_push_dummy_code): Delete function.
6655 (push_dummy_code): Delete call.
6656
6657 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6658 * gdbarch.h, gdbarch.c: Re-generate.
6659 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6660 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6661 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6662 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6663
6664 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6665 (struct frame_info): Delete opaque declaration.
6666 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6667 * frame.c (get_frame_type): Delete call.
6668
6669 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6670 pc_in_call_dummy.
6671 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6672 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6673
6674 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6675
6676 * alphanbsd-tdep.c: Include "gdb_string.h".
6677 * armnbsd-tdep.c: Update copyright year.
6678 Include "gdb_string.h".
6679 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6680 dependencies.
6681
6682 * delta68-nat.c: Remove file.
6683 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6684 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6685 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6686 (delta68-nat.o): Remove dependency.
6687
6688 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6689 function.
6690 (m68k_gdbarch_init): Don't set
6691 deprecated_frameless_function_invocation.
6692
6693 2004-05-07 Randolph Chung <tausq@debian.org>
6694
6695 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6696 read_memory_nobpt for code reading when doing frame unwinding.
6697 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6698
6699 2004-05-07 Randolph Chung <tausq@debian.org>
6700
6701 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6702 instead of sp, handle sigaltstack case.
6703 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6704 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6705 signal handler and not that of the caller.
6706 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6707 hppa_linux_sigtramp_find_sigcontext.
6708
6709 2004-05-07 Randolph Chung <tausq@debian.org>
6710
6711 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6712 hppa-linux-nat.c.
6713 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6714 * hppa-linux-nat.c (fetch_register, store_register): Define.
6715 (fetch_inferior_registers, store_inferior_registers): Define.
6716 (supply_gregset): Add comment and clean up some unneeded code.
6717 (fill_gregset): Add comment and fix so that it saves registers in
6718 the right place in the gregset.
6719 (fill_fpregset): Fix buffer overrun problem.
6720 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6721
6722 2004-05-07 Randolph Chung <tausq@debian.org>
6723
6724 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6725 do common handling of the pcoqt register.
6726 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6727 to use helper function.
6728 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6729 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6730 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6731 generic fallback unwinder when all else fails.
6732 (hppa_gdbarch_init): Add fallback sniffer.
6733 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6734 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6735 to use helper function.
6736
6737 2004-05-08 Joel Brobecker <brobecker@gnat.com>
6738
6739 * config/djgpp/fnchange.lst: Add translation rules for
6740 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6741
6742 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6743
6744 * frame.c (get_prev_frame_1): Work around GCC bug.
6745 * frame.h: Add comment about GCC bug.
6746
6747 2004-05-07 Andrew Cagney <cagney@redhat.com>
6748
6749 * observer.c: Include "commands.h" and "gdbcmd.h".
6750 (observer_debug, _initialize_observer): Add the
6751 command "set/show debug observer".
6752 * observer.sh: When observer debugging, log notify calls.
6753 * Makefile.in (observer.o): Update dependencies.
6754
6755 2004-05-07 Jason Molenda (jmolenda@apple.com)
6756
6757 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6758
6759 2004-05-07 Jim Blandy <jimb@redhat.com>
6760
6761 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6762 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6763 to recognize gpr regnums, instead of assuming that
6764 tdep->ppc_fp0_regnum marks the end of the general-purpose
6765 registers.
6766
6767 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6768 the given architecture has floating-point registers.
6769
6770 2004-05-07 Andrew Cagney <cagney@redhat.com>
6771
6772 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6773 macro defined to 1.
6774 * gdbarch.h, gdbarch.c: Re-generate.
6775 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6776 deprecated_use_generic_dummy_frames.
6777
6778 2004-05-07 Brian Ford <ford@vss.fsi.com>
6779
6780 * NEWS: Mention Cygwin DWARF 2 support.
6781
6782 2004-05-07 Andrew Cagney <cagney@redhat.com>
6783
6784 * objfiles.h (struct entry_info): Delete unused fields
6785 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6786 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6787 * mipsread.c (mipscoff_symfile_read): Update.
6788 * mdebugread.c (parse_partial_symbols): Update.
6789 * dwarfread.c (read_file_scope): Update.
6790 * dwarf2read.c (read_file_scope): Update.
6791 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6792 * coffread.c (complete_symtab): Update.
6793
6794 2004-05-07 Mark Kettenis <kettenis@gnu.org>
6795
6796 * infcall.c (_initialize_infcall): Fix typo.
6797
6798 2004-05-07 Andrew Cagney <cagney@redhat.com>
6799
6800 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6801 * command.h (add_setshow_zinteger_cmd): Declare.
6802
6803 2004-05-06 Randolph Chung <tausq@debian.org>
6804
6805 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6806 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6807 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6808 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6809 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6810 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6811 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6812 definitions ...
6813 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6814 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6815 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6816 (hppa64_hpux_frame_find_saved_regs_in_sig)
6817 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6818 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6819 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6820 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6821 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6822 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6823 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6824 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6825 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6826 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6827 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6828 (hppa32_register_type, hppa_cannot_store_register)
6829 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6830 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6831 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6832 * pa64solib.c (pa64_solib_have_load_event)
6833 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6834 (pa64_solib_unloaded_library_pathname): Likewise.
6835 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6836 (som_solib_library_pathname): Likewise.
6837
6838 2004-05-05 Jim Ingham <jingham@apple.com>
6839
6840 * breakpoint.c (create_breakpoints): Copy the ignore count and
6841 thread id over from the pended breakpoint to the actual
6842 breakpoint.
6843
6844 2004-05-05 Andrew Cagney <cagney@redhat.com>
6845
6846 * gdbarch.sh (PARM_BOUNDARY): Delete.
6847 gdbarch.h, gdbarch.c: Re-generate.
6848 * valops.c (PARM_BOUNDARY): Delete macro.
6849 (value_push): Delete PARM_BOUNDARY code.
6850 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6851
6852 2004-05-04 Jim Blandy <jimb@redhat.com>
6853
6854 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6855 Don't assume that the gprs, fprs, and UISA sprs are
6856 contiguous, start at register number zero, and end with fpscr.
6857 Instead, use the numbers from the tdep structure.
6858
6859 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6860 should no longer be used in code specific to the RS6000 and its
6861 derivatives.
6862 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6863 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6864 tdep->ppc_fp0_regnum.
6865 (ppc_supply_fpregset, ppc_collect_fpregset)
6866 (rs6000_push_dummy_call, rs6000_extract_return_value)
6867 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6868 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6869 FP0_REGNUM.
6870 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6871 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6872 Same.
6873 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6874 bdm_ppc_store_registers): Same.
6875 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6876 (store_register, fill_fpregset): Same.
6877 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6878 (ppc_linux_supply_fpregset): Same.
6879 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6880 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6881 Same.
6882 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6883 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6884 ppc64_sysv_abi_return_value): Same.
6885 * rs6000-nat.c (regmap, fetch_inferior_registers)
6886 (store_inferior_registers, fetch_core_registers): Same.
6887
6888 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6889
6890 * m68knbsd-nat.c: Remove file.
6891 * m68knbsd-tdep.c: Remove file.
6892 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6893 dependencies.
6894 * configure.host: Add m68k-*-netbsdelf*.
6895 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6896 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6897 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6898 (XM_FILE): Remove.
6899 * config/m68k/nbsdelf.mh: New file.
6900 * config/m68k/nbsd.mt: New file.
6901 * config/m68k/nbsdaout.mt: Remove file.
6902 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6903 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6904 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6905 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6906 (use_struct_convention): Remove prototype.
6907 (USE_STRUCT_CONVENTION): Remove define.
6908 * config/m68k/xm-nbsd.h: Remove file.
6909
6910 2004-05-04 Michael Snyder <msnyder@redhat.com>
6911
6912 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6913 reg_struct_return method (as gcc usually does for cross targets).
6914
6915 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6916
6917 Committed by Andrew Cagney.
6918 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6919 alignment padding when accessing ucontext struct members.
6920
6921 2004-05-04 Jim Blandy <jimb@redhat.com>
6922
6923 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6924 'ppc_gplast_regnum' member.
6925 (ppc_num_gprs): New enum constant.
6926 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6927 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6928 * rs6000-nat.c (regmap, fetch_inferior_registers,
6929 store_inferior_registers): Same.
6930 * rs6000-tdep.c (e500_pseudo_register_read)
6931 (e500_pseudo_register_write): Same.
6932 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6933
6934 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6935 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6936 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6937 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6938 FPLAST_REGNUM.
6939 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6940 Same.
6941 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6942 * rs6000-nat.c (regmap, fetch_inferior_registers)
6943 (store_inferior_registers): Same.
6944
6945 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6946 with FPLAST_REGNUM.
6947
6948 2004-05-03 Joel Brobecker <brobecker@gnat.com>
6949
6950 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6951 failure detected by recent versions of GCC.
6952 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6953 to be consistent with the usage in dwarf2_create_include_psymtab.
6954
6955 2004-05-03 Michael Snyder <msnyder@redhat.com>
6956
6957 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6958 (heuristic_proc_start): Whitespace cleanup.
6959
6960 2004-05-04 Mark Kettenis <kettenis@gnu.org>
6961
6962 * sun3-nat.c: Remove file.
6963 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6964 dependencies.
6965 (ALLDEPFILES): Remove sun3-nat.c.
6966 (sun3-nat.o): Remove dependencies.
6967
6968 * i386-interix-nat.c, i386-interix-tdep.c,
6969 config/i386/nm-interix.h, config/i386/interix.mh,
6970 config/i386/interix.mt: Remove files.
6971 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6972 dependencies.
6973
6974 2004-05-03 Mark Kettenis <kettenis@gnu.org>
6975
6976 * m68k-tdep.h (struct gdbarch_tdep): Add member
6977 struct_value_regnum.
6978 (m68k_svr4_init_abi): New prototype.
6979 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6980 different calling conventions.
6981 (m68k_extract_return_value): Remove code dealing with single-field
6982 structs.
6983 (m68k_store_return_value): Remove code dealing with single-field
6984 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6985 (m68k_extract_struct_value_address): Remove function.
6986 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6987 (m68k_reg_struct_return_p, m68k_return_value)
6988 (m68k_svr4_return_value): New functions.
6989 (m68k_use_struct_convention): Remove function.
6990 (m68k_push_dummy_call): Use new struct_value_regnum member of
6991 `struct gdbarch_tdep' instead of hardcoded register number to
6992 store STRUCT_ADDR.
6993 (m68k_svr4_init_abi): New function.
6994 (m68k_gdbarch_init): Don't set extract_return_value,
6995 store_return_values, deprecated_extract_struct_value_address and
6996 use_struct_convention. Set return_value instead. Initialize new
6997 struct_value_regnum member of `struct gdbarch_tdep'.
6998 * m68klinux-tdep.c: Update copyright year.
6999 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7000 (m68k_linux_extract_struct_value_address): Remove function.
7001 (m68k_linux_init_abi): Don't set extract_return_value,
7002 store_return_values, deprecated_extract_struct_value_address and
7003 use_struct_convention. Call m68k_svr4_init_abi but override the
7004 new struct_value_regnum member of `struct gdbarch_tdep'.
7005 * Makefile.in (m68k-tdep.o): Update dependencies.
7006
7007 2004-05-03 J. Brobecker <brobecker@gnat.com>
7008
7009 * dwarf2read.c (line_header): Add new included_p field in
7010 field file_names.
7011 (partial_die_info): New field has_stmt_list. New field line_offset.
7012 (dwarf2_create_include_psymtab): New function.
7013 (dwarf2_build_include_psymtabs): New function.
7014 (add_file_name): Add forward declaration. Initialize new field.
7015 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7016 to be able to determine the list of files included by the
7017 given unit, and build their associated psymtabs.
7018 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7019 files as well.
7020 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7021 (read_file_scope): Update call to dwarf_decode_lines.
7022 (read_partial_die): Handle DW_AT_stmt_list attributes.
7023
7024 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7025
7026 Unfix PR gdb/1626.
7027 * configure.in: Revert special case for osf5.*.
7028 * configure: Regenerate.
7029
7030 2004-05-02 Jim Blandy <jimb@redhat.com>
7031
7032 Move the symbol-file-from-memory functions into their own file.
7033 * symfile-mem.c, symfile-mem.h: New files.
7034 * symfile.c (symbol_file_add_from_bfd): New function.
7035 (symbol_file_add): Call symbol_file_add_from_bfd.
7036 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7037 Moved to symfile-mem.c.
7038 (_initialize_symfile): Move definition of
7039 add-symbol-file-from-memory command to symfile-mem.c.
7040 * symfile.h (symbol_file_add_from_bfd): New declaration.
7041 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7042 * config/powerpc/linux.mt (TDEPFILES): Same.
7043 * Makefile.in (SFILES): Add symfile-mem.c.
7044 (symfile_mem_h): New variable.
7045 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7046 (symfile-mem.o): New rule.
7047
7048 2004-05-01 Andrew Cagney <cagney@redhat.com>
7049
7050 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7051 frame_find_by_id instead of frame_relative_level.
7052 (do_enable_breakpoint): Ditto.
7053 * thread.c: Update copyright.
7054 (info_threads_command): Ditto, simplify.
7055
7056 * frame.c (deprecated_generic_get_saved_register): Delete
7057 function, moved to "xstormy16-tdep.c".
7058 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7059 deprecated_generic_get_saved_register from "frame.c".
7060 (xstormy16_frame_saved_register): Call
7061 xstormy16_get_saved_register.
7062 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7063 static.
7064 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7065 * frame.h (deprecated_generic_get_saved_register): Delete.
7066
7067 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7068
7069 * dwarfread.c: Update documentation on the state of dwarf-1.
7070
7071 2004-05-01 Andrew Cagney <cagney@redhat.com>
7072
7073 * stack.c (select_frame_command): Delete call to
7074 frame_relative_level.
7075 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7076 Delete #if0 code.
7077 (frame_info): Do not print FRAMELESS.
7078 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7079 (catch_info): Delete #if0 code.
7080
7081 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7082 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7083 of frame_relative_level.
7084 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7085 to SENTINEL_FRAME.
7086 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7087 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7088 frame_relative_level.
7089
7090 * frame.h (deprecated_set_frame_type): Delete declaration.
7091 * frame.c (deprecated_set_frame_type): Delete function, update
7092 comments.
7093
7094 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7095 * gdbarch.h, gdbarch.c: Re-generate.
7096 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7097 (shnbsd_pc_in_sigtramp): Delete.
7098 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7099 pc_in_sigtramp.
7100 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7101 pc_in_sigtramp.
7102 * frame.h: Update comments.
7103 * ppc-linux-tdep.c: Update comments.
7104 * breakpoint.c (bpstat_what): Update comments.
7105
7106 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7107 m68klinux-tdep.o's dependencies, were previously added to
7108 m68klinux-nat.o.
7109
7110 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7111 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7112 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7113 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7114 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7115
7116 * Makefile.in (m68klinux-nat.o): Update dependencies.
7117 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7118 (m68k_linux_sigtramp_frame_cache)
7119 (m68k_linux_sigtramp_frame_this_id)
7120 (m68k_linux_sigtramp_frame_prev_register)
7121 (m68k_linux_sigtramp_frame_unwind)
7122 (m68k_linux_sigtramp_frame_sniffer)
7123 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7124 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7125 names, use trad-frame.h.
7126 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7127 (struct m68k_sigtramp_info): Delete.
7128 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7129 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7130 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7131 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7132 "m68klinux-tdep.c".
7133
7134 * infrun.c (check_sigtramp2): Delete check for
7135 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7136
7137 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7138
7139 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7140
7141 2004-05-01 Andrew Cagney <cagney@redhat.com>
7142
7143 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7144 (frv_linux_sigtramp_frame_cache)
7145 (frv_linux_sigtramp_frame_this_id)
7146 (frv_linux_sigtramp_frame_prev_register)
7147 (frv_linux_sigtramp_frame_unwind)
7148 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7149 include "linux" in function and variable names, directly call
7150 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7151 the latest trad-frame code.
7152 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7153 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7154 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7155 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7156 * frv-tdep.c (frv_sigtramp_frame_cache)
7157 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7158 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7159 frv-linux-tdep.c.
7160 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7161 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7162 (frv_set_sigcontext_reg_addr): Delete function.
7163
7164 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7165 (DEPRECATED_SIGTRAMP_END): Delete.
7166 * gdbarch.h, gdbarch.c: Re-generate.
7167 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7168 * config/vax/tm-vaxbsd.h: Update copyright.
7169 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7170 (DEPRECATED_IN_SIGTRAMP): Define.
7171 * config/m68k/tm-nbsd.h: Update copyright.
7172 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7173 (DEPRECATED_IN_SIGTRAMP): Define.
7174
7175 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7176
7177 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7178 encondings. Fixes PR gdb/1628.
7179
7180 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7181 DW_CFA_restore state without a matching DW_CFA_remember_state
7182 instead of aborting. Fixes PR backtrace/1589.
7183
7184 2004-04-30 Joel Brobecker <brobecker@gnat.com>
7185
7186 * MAINTAINERS: Add self as AIX maintainer.
7187 Update my e-mail address in write-after-approval section.
7188
7189 2004-04-30 Andrew Cagney <cagney@redhat.com>
7190
7191 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7192 (legacy_get_prev_frame): Ditto.
7193
7194 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7195 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7196 * mipsread.c (sigtramp_address): Delete extern variable.
7197 (mipscoff_new_init): Delete reference.
7198 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7199 (fixup_sigtramp): Delete function.
7200 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7201 (fixup_sigtramp): Delete declarations.
7202
7203 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7204 deprecated_pc_in_sigtramp.
7205 (ppcnbsd_pc_in_sigtramp): Delete function.
7206
7207 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7208
7209 * config/m68k/nm-nbsd.h: Tweak comments.
7210 * config/m68k/nm-nbsdaout.h: Likewise.
7211
7212 2004-04-30 Andrew Cagney <cagney@redhat.com>
7213
7214 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7215 legacy_pc_in_sigtramp.
7216 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7217
7218 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7219
7220 Add OpenBSD/m68k support.
7221 * NEWS (New native configurations): Mention OpenBSD/m68k.
7222 * m68kbsd-tdep.c: New file.
7223 * m68kbsd-nat.c: New file.
7224 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7225 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7226 * configure.host: Add m68k-*-openbsd.
7227 * configure.tgt: Add m68k-*-openbsd.
7228 * config/m68k/tm-obsd.h: New file.
7229 * config/m68k/obsd.mt: New file.
7230 * config/m68k/obsd.mh: New file.
7231 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7232 m68kbsd-tdep.c.
7233
7234 2004-04-30 Andrew Cagney <cagney@redhat.com>
7235
7236 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7237 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7238
7239 2004-04-30 Mark Kettenis <kettenis@gnu.org>
7240
7241 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7242 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7243
7244 2004-04-30 Brian Ford <ford@vss.fsi.com>
7245
7246 Revert 2004-04-16 change.
7247 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7248 (i386_coff_init_abi): Remove.
7249 * i386-tdep.h (i386_coff_init_abi): Remove.
7250 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7251
7252 2004-04-30 Andrew Cagney <cagney@redhat.com>
7253
7254 * blockframe.c (find_pc_partial_function): Delete use of
7255 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7256 DEPRECATED_SIGTRAMP_END.
7257
7258 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7259 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7260 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7261 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7262 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7263
7264 * defs.h (deprecated_inside_entry_file): Delete declaration.
7265 * blockframe.c (deprecated_inside_entry_file): Delete function.
7266 (legacy_frame_chain_valid): Delete call.
7267 * sh64-tdep.c (sh64_frame_chain): Delete call.
7268 * objfiles.h: Update comments.
7269 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7270 call.
7271 * frame.c (get_prev_frame): Delete call, update comments.
7272
7273 2004-04-30 Brian Ford <ford@vss.fsi.com>
7274
7275 * MAINTAINERS (Write After Approval): Add myself.
7276
7277 2004-04-30 Andrew Cagney <cagney@redhat.com>
7278
7279 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7280 * gdbarch.h, gdbarch.c: Re-generate.
7281 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7282 code.
7283
7284 2004-04-30 Andrew Cagney <cagney@redhat.com>
7285
7286 * gdb-events.sh (selected_thread_changed)
7287 (selected_frame_level_changed, target_changed): Delete.
7288 * gdb-events.h, gdb-events.c: Re-generate.
7289 * valops.c (value_assign): Update.
7290 * stack.c (select_frame_command, up_silently_base)
7291 (down_silently_base): Update.
7292
7293 2004-04-29 Andrew Cagney <cagney@redhat.com>
7294
7295 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7296 registers correctly.
7297 (print_gp_register_row, mips32_heuristic_proc_desc)
7298 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7299 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7300 references to mips_isa_regsize.
7301
7302 2004-04-29 Andrew Cagney <cagney@redhat.com>
7303
7304 * mips-tdep.c (struct gdbarch_tdep): Delete
7305 mips_fp_register_double.
7306 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7307 mips_abi_regsize.
7308 (mips_gdbarch_init): Do not set mips_fp_register_double.
7309 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7310
7311 2004-04-29 Joel Brobecker <brobecker@gnat.com>
7312
7313 Committed by Andrew Cagney.
7314 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7315 function calls.
7316
7317 2004-04-29 Andrew Cagney <cagney@redhat.com>
7318
7319 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7320 gdbarch, use mips_abi, update callers.
7321 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7322 mips_abi_regsize, update callers.
7323 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7324 mips_default_abi_regsize.
7325 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7326 mips_default_abi_regsize.
7327
7328 2004-04-29 Andrew Cagney <cagney@redhat.com>
7329
7330 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7331 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7332 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7333 mips_default_abi_regsize.
7334 (mips_isa_regsize): Rename mips_regisze.
7335 * mipsnbsd-tdep.c: Update.
7336 * mips-linux-tdep.c: Update.
7337 * irix5-nat.c: Update.
7338 * mips-tdep.h (mips_isa_regsize): Update.
7339
7340 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7341 Delete all disabled code.
7342 * gdb-events.h, gdb-events.c: Re-generate.
7343
7344 2004-04-19 Jerome Guitton <guitton@gnat.com>
7345 Mark Kettenis <kettenis@gnu.org>
7346
7347 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7348 the function begins with a branch instruction.
7349
7350 2004-04-29 Mark Kettenis <kettenis@gnu.org>
7351
7352 * i386-tdep.c: Fix spelling mistakes.
7353
7354 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7355 Andrew Cagney <cagney@redhat.com>
7356
7357 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7358 <sys/proc.h>.
7359 * acconfig.h: Provide default _KMEMUSER value.
7360 * config.in, configure: Re-generate.
7361 * NEWS: Mention fix.
7362
7363 2004-04-24 Randolph Chung <tausq@debian.org>
7364
7365 * configure.host (hppa*-*-linux*): New target.
7366 * configure.tgt (hppa*-*-linux*): Likewise.
7367 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7368 gdbarch_init_osabi() call earlier so that osabi-specific frame
7369 unwinders can be registered first.
7370 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7371 hppa-linux-nat.c.
7372 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7373 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7374 * config/pa/linux.mh: New file.
7375 * config/pa/linux.mt: New file.
7376 * config/pa/nm-linux.h: New file.
7377 * config/pa/xm-linux.h: New file.
7378 * hppa-linux-nat.c: New file.
7379 * hppa-linux-tdep.c: New file.
7380
7381 2004-04-28 Randolph Chung <tausq@debian.org>
7382
7383 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7384 return values.
7385 (hppa32_push_dummy_call): Fix small struct and floating point argument
7386 passing, and make sure the stack frame is properly aligned.
7387
7388 2004-04-28 Andrew Cagney <cagney@redhat.com>
7389
7390 * stack.c (print_stack_frame): Fix description.
7391
7392 * NEWS: Mention gdb/gdbserver/configure execute permission
7393 changed. PR server/519.
7394
7395 2004-04-28 Andrew Cagney <cagney@redhat.com>
7396
7397 * stack.c (print_stack_frame_stub): Delete declaration.
7398 (struct print_stack_frame_args, print_stack_frame)
7399 (print_frame_info, print_frame): Replace "source" with print what.
7400 Replace "print" with "print_level". Replace "args" with
7401 "print_args".
7402 * frame.h (show_and_print_stack_frame, print_stack_frame)
7403 (print_frame_info): Update declarations.
7404 * stack.c (select_and_print_frame, frame_command)
7405 (current_frame_command, up_command, down_command): Update calls -
7406 use get_selected_frame, pass "enum print_what" for source, do not
7407 call frame_relative_level.
7408 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7409 * remote-rdp.c (remote_rdp_open): Ditto.
7410 * remote-mips.c (common_open): Ditto.
7411 * remote-e7000.c (e7000_start_remote): Ditto.
7412 * ocd.c (ocd_start_remote): Ditto.
7413 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7414 * infrun.c (normal_stop): Ditto.
7415 * inflow.c (kill_command): Ditto.
7416 * infcmd.c (finish_command): Ditto.
7417 * corelow.c (core_open): Ditto.
7418 * tracepoint.c (finish_tfind_command): Ditto.
7419 * thread.c (info_threads_command, info_threads_command)
7420 (restore_current_thread, do_captured_thread_select): Ditto.
7421 * ada-tasks.c (task_command): Ditto.
7422
7423 2004-04-26 Orjan Friberg <orjanf@axis.com>
7424
7425 * frame.c: Include "observer.h".
7426 (frame_observer_target_changed): New function.
7427 (_initialize_frame): Attach target_changed observer.
7428 * regcache.c: Include "observer.h".
7429 (regcache_observer_target_changed): New function.
7430 (_initialize_regcache): Attach target_changed observer.
7431 * valops.c: Include "observer.h".
7432 (value_assign): Notify target_changed event when modifying register.
7433 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7434
7435 2004-04-26 Orjan Friberg <orjanf@axis.com>
7436
7437 From Paul Koning <pkoning@equallogic.com>:
7438 * breakpoint.c (free_valchain): New function.
7439 (insert_bp_location, delete_breakpoint): Use free_valchain.
7440 (remove_breakpoint): Do not remove the valchain.
7441 (bpstat_stop_status): If not stopped by watchpoint, skip
7442 watchpoints when generating stop status list.
7443 * infrun.c (handle_inferior_event): Make
7444 stepped_after_stopped_by_watchpoint a global variable.
7445 * remote.c (remote_stopped_data_address): Return watch data
7446 address rather than zero if stepped_after_stopped_by_watchpoint is
7447 set.
7448
7449 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7450
7451 Fix PR gdb/1626.
7452 * configure.in: Check for curses after termcap.
7453 On osf5.*, do not check for ncurses.
7454 * configure: Regenerate.
7455
7456 2004-04-25 Mark Kettenis <kettenis@gnu.org>
7457
7458 * ppcobsd-nat.c: Include "ppc-tdep.h".
7459 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7460
7461 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7462 Fixes PR tdep/1623 and PR tdep/1624.
7463
7464 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7465
7466 * xmodem.h, xmodem.c: Remove files.
7467 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7468
7469 2004-04-23 Randolph Chung <tausq@debian.org>
7470
7471 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7472 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7473 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7474 for handling stackless frames.
7475 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7476
7477 2004-04-23 Randolph Chung <tausq@debian.org>
7478
7479 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7480 starts at a pc before the frame is created.
7481
7482 2004-04-23 Joel Brobecker <brobecker@gnat.com>
7483
7484 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7485
7486 2004-04-23 Jerome Guitton <guitton@gnat.com>
7487
7488 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7489 use convert_typed_floating to get the appropriate format.
7490
7491 2004-04-22 Randolph Chung <tausq@debian.org>
7492
7493 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7494 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7495 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7496 (hppa_sign_extend): Add prototype.
7497 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7498 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7499 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7500 hppa targets will also use these functions.
7501 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7502 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7503 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7504 (hppa_gdbarch_init): Remove gdbarch setting of
7505 skip_trampoline_code, in_solib_call_trampoline and
7506 in_solib_return_trampoline.
7507 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7508 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7509 hppa_in_solib_call_trampoline.
7510 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7511 Moved from hppa-tdep.c.
7512 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7513 in_solib_call_trampoline and in_solib_return_trampoline.
7514
7515 2004-04-22 Randolph Chung <tausq@debian.org>
7516
7517 * hppa-tdep.c (hppa_debug): New variable.
7518 (find_unwind_entry, hppa_frame_cache): Add debug output.
7519 (_initialize_hppa_tdep): Add command to set debug flag.
7520
7521 2004-04-22 Andrew Cagney <cagney@redhat.com>
7522
7523 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7524 "trad-frame.h".
7525 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7526 signal trampoline unwinder.
7527 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7528
7529 2004-04-22 Mark Kettenis <kettenis@gnu.org>
7530
7531 Add OpenBSD/powerpc support.
7532 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7533 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7534 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7535 (ppc_collect_fpregset): New prototypes.
7536 * ppcobsd-nat.c: New file.
7537 * ppcobsd-tdep.c: New file.
7538 * ppcobsd-tdep.h: New file.
7539 * rs6000-tdep.c: Include "regset.h".
7540 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7541 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7542 New functions.
7543 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7544 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7545 (rs6000-tdep.o): Update dependencies.
7546 * configure.host: Add powerpc-*-openbsd.
7547 * configure.tgt: Add powerpc-*-openbsd.
7548 * config/powerpc/obsd.mh: New file.
7549 * config/powerpc/nm-obsd.h: New file.
7550 * config/powerpc/obsd.mt: New file.
7551
7552 2004-04-22 Andrew Cagney <cagney@redhat.com>
7553
7554 * frame.h (show_frame_info): Delete declaration.
7555
7556 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7557 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7558 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7559 * frv-tdep.c (frv_frame_this_id): Ditto.
7560 * avr-tdep.c (avr_frame_this_id): Ditto.
7561
7562 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
7563
7564 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7565
7566 2004-04-22 Jim Blandy <jimb@redhat.com>
7567
7568 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7569 register number zero.
7570
7571 2004-04-21 Michael Snyder <msnyder@redhat.com>
7572
7573 * mips-tdep.c (heuristic_proc_start):
7574 Warning() already prefixes "Warning: ".
7575
7576 2004-04-21 Andrew Cagney <cagney@redhat.com>
7577
7578 * annotate.h (deprecated_annotate_starting_hook)
7579 (deprecated_annotate_stopped_hook)
7580 (deprecated_annotate_exited_hook)
7581 (deprecated_annotate_signal_hook)
7582 (deprecated_annotate_signalled_hook): Deprecate.
7583 * tracepoint.h (deprecated_create_tracepoint_hook)
7584 (deprecated_delete_tracepoint_hook)
7585 (deprecated_modify_tracepoint_hook)
7586 (deprecated_trace_find_hook)
7587 (deprecated_trace_start_stop_hook): Deprecate.
7588 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7589 * remote.h (deprecated_target_resume_hook)
7590 (deprecated_target_wait_loop_hook): Deprecate.
7591 * gdbcore.h (deprecated_exec_file_display_hook)
7592 (deprecated_file_changed_hook): Deprecate.
7593 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7594 * defs.h (deprecated_modify_breakpoint_hook)
7595 (deprecated_command_loop_hook, deprecated_show_load_progress)
7596 (deprecated_print_frame_info_listing_hook)
7597 (deprecated_query_hook, deprecated_warning_hook)
7598 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7599 (deprecated_delete_breakpoint_hook)
7600 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7601 (deprecated_readline_begin_hook, deprecated_readline_hook)
7602 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7603 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7604 (deprecated_context_hook, deprecated_target_wait_hook)
7605 (deprecated_attach_hook, deprecated_detach_hook)
7606 (deprecated_call_command_hook, deprecated_set_hook)
7607 (deprecated_error_hook, deprecated_error_begin_hook)
7608 (deprecated_ui_load_progress_hook): Deprecate.
7609 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7610 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7611 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7612 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7613 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7614 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7615 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7616 * annotate.c, aix-thread.c: Update.
7617
7618 2004-04-21 Andrew Cagney <cagney@redhat.com>
7619
7620 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7621 * vaxnbsd-tdep.c: Include "gdb_string.h".
7622
7623 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7624 (add_symbol_file_from_memory_command): #if 0 function body, call
7625 error instead.
7626
7627 2004-04-21 Andrew Cagney <cagney@redhat.com>
7628
7629 * gdbcore.h: Update copyright.
7630 (deprecated_add_core_fns): Rename add_core_fns.
7631 * win32-nat.c (_initialize_core_win32): Update.
7632 * sun3-nat.c (_initialize_core_sun3): Update.
7633 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7634 * rs6000-nat.c (_initialize_core_rs6000): Update.
7635 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7636 * nto-tdep.c (_initialize_nto_tdep): Update.
7637 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7638 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7639 * mips-nat.c (_initialize_core_mips): Update.
7640 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7641 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7642 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7643 * lynx-nat.c (_initialize_core_lynx): Update.
7644 * irix5-nat.c (_initialize_core_irix5): Update.
7645 * i386-interix-nat.c (_initialize_core_interix): Update.
7646 * cris-tdep.c (_initialize_cris_tdep): Update.
7647 * corelow.c (deprecated_add_core_fns): Update.
7648 * core-regset.c (_initialize_core_regset): Update.
7649 * core-aout.c (_initialize_core_aout): Update.
7650 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7651 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7652 * alpha-nat.c (_initialize_core_alpha): Update.
7653
7654 2004-04-21 Jim Blandy <jimb@redhat.com>
7655
7656 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7657
7658 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
7659
7660 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7661 Delete.
7662 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7663 (read_attribute_value): Update calls to dwarf_alloc_block.
7664 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7665 dwarf2_tmp_obstack.
7666 (psymtab_to_symtab_1): Likewise. Clean up using
7667 free_stack_comp_unit.
7668 (add_to_cu_func_list): Use the comp_unit_obstack.
7669
7670 2004-04-19 Joel Brobecker <brobecker@gnat.com>
7671
7672 * dwarf2read.c (dwarf2_flag_true_p): New function.
7673 (die_is_declaration): Use the function above. Add some comments.
7674
7675 2004-04-19 Mark Kettenis <kettenis@gnu.org>
7676
7677 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7678 architecture when registering sparcnbsd_core_osabi_sniffer.
7679 Adjust comment.
7680
7681 2004-04-18 Mark Kettenis <kettenis@gnu.org>
7682
7683 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7684 return value.
7685
7686 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7687 * i386-tdep.c: Correct register numbering scheme comments
7688 throughout.
7689 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7690 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7691 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7692 (i386_gdb_arch_init): Likewise.
7693
7694 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7695 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7696 ppcnbsd-tdep.o.
7697
7698 * m68k-tdep.h: Tweak comments.
7699 * m68k-tdep.c: Tweak comment.
7700
7701 2004-04-17 Randolph Chung <tausq@debian.org>
7702
7703 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7704 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7705 (hppa_hpux_som_init_abi): Set is_elf to 0.
7706 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7707 * hppa-tdep.c (low_text_segment_address): Remove global.
7708 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7709 section offset to calculate segment address.
7710 (internalize_unwinds): Define low_text_segment_address as local and
7711 pass to record_text_segment_lowaddr for ELF targets.
7712 (hppa_gdbarch_init): Zero fill tdep structure.
7713 (hppa_dump_tdep): Print tdep structure.
7714 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7715
7716 2004-04-17 Randolph Chung <tausq@debian.org>
7717
7718 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7719 (hppa_gdbarch_init): Set pseudo_register_read.
7720 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7721 * regcache.c (supply_register): Remove check for
7722 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7723
7724 2004-04-17 Randolph Chung <tausq@debian.org>
7725
7726 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7727 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7728 (hpread_adjust_stack_address): Move to hpread.c.
7729 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7730 obj_private_struct): Move from tm-hppa.h.
7731 * hpread.c (hppa-tdep.h): Include.
7732 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7733 (hpread_read_function_type, hpread_read_doc_function_type)
7734 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7735 directly.
7736 * pa64solib.c (hppa-tdep.h): Include.
7737 * somsolib.c (hppa-tdep.h): Include.
7738 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7739 inferior_status): Remove unused forward declarations.
7740 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7741 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7742 obj_private_struct): Move to hppa-tdep.h.
7743 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7744
7745 2004-04-17 Randolph Chung <tausq@debian.org>
7746
7747 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7748 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7749 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7750 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7751 Remove forward declaration and make static.
7752 (hppa_reg_struct_has_addr): Remove.
7753
7754 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7755
7756 * observer.sh: Move comments in sed command to first column.
7757
7758 2004-04-16 Jason Molenda (jmolenda@apple.com)
7759
7760 * frame.c: Minor typeo corrections in comments.
7761
7762 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7763
7764 * observer.c (observer_test_first_notification_function): Update
7765 function profile.
7766 (observer_test_second_notification_function): Likewise.
7767 (observer_test_third_notification_function): Likewise.
7768
7769 2004-04-16 Mark Kettenis <kettenis@gnu.org>
7770
7771 From Brian Ford <ford@vss.fsi.com>:
7772 * i386-tdep.c (i386_coff_init_abi): New function.
7773 * i386-tdep.h (i386_coff_init_abi): New prototype.
7774 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7775 register number translation functions for DWARF and DWARF 2.
7776
7777 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7778
7779 * dwarf2read.c: Back out my previous change, it was incorrect.
7780
7781 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
7782
7783 * dwarf2read.c: Include "hashtab.h".
7784 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7785 has_namespace_info.
7786 (struct partial_die_info): Add comments. Use bitfields to reduce
7787 memory footprint. Add scope, scope_set, has_specification,
7788 spec_offset, die_parent, die_child, and die_sibling.
7789 (peek_die_abbrev): Add prototype.
7790 (partial_read_comp_unit_head): New function, broken out from
7791 dwarf2_build_psymtabs_hard.
7792 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7793 Use partial_read_comp_unit_head. Initialize the CU and
7794 comp_unit_obstack. Update calls to read_partial_die and
7795 scan_partial_symbols. Use free_stack_comp_unit and
7796 load_partial_dies.
7797 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7798 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7799 Update calls to helper functions. Remove NAMESPACE argument.
7800 Update comments.
7801 (partial_die_parent_scope, partial_die_full_name): New functions.
7802 (add_partial_symbol): Remove namespace argument. Update call to
7803 pdi_needs_namespace. Use partial_die_full_name. Handle
7804 DW_TAG_namespace. Check has_namespace_info flag.
7805 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7806 tag. Handle namespaces.
7807 (add_partial_namespace, add_partial_enumeration): Simplify.
7808 (guess_structure_name): New function, derived from
7809 add_partial_structure.
7810 (add_partial_structure): Remove.
7811 (determine_class_name): Update comment.
7812 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7813 (is_type_tag_for_partial, load_partial_dies): New functions.
7814 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7815 Record specifications instead of following them immediately.
7816 (find_partial_die_in_comp_unit, find_partial_die)
7817 (fixup_partial_die, free_stack_comp_unit)
7818 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7819 (partial_die_hash, partial_die_eq): New functions.
7820 * Makefile.in (hashtab_h): Define.
7821 (dwarf2read.o): Update dependencies.
7822 (observer_inc, observer_h): Move to the correct section.
7823
7824 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7825
7826 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7827 (die_is_declaration): Use the function above. Add comment.
7828
7829 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7830
7831 * dwarf2read.c (read_structure_scope): Identify stub types
7832 using die_is_declaration() only.
7833
7834 2004-04-15 Roland McGrath <roland@redhat.com>
7835
7836 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7837 argument instead of NAME.
7838 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7839 in call to symbol_file_add_with_addrs_or_offsets.
7840 (build_addr_info): New function, helper for ...
7841 (symbol_file_add_from_memory): New function.
7842 (add_symbol_file_from_memory_command): New function using that.
7843 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7844 (pre_add_symbol_hook): Add const to argument type.
7845 * symfile.h (symbol_file_add_from_memory): Declare it.
7846
7847 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7848
7849 * NEWS (New native configurations): Mention OpenBSD/vax.
7850 * configure.host: Add vax-*-openbsd*.
7851 * config/vax/obsd.mh: New file.
7852 * config/vax/nm-obsd.h: New file.
7853
7854 * vax-tdep.c: Include "regset.h".
7855 (vax_supply_gregset): New function.
7856 (vax_gregset): New variable.
7857 (vax_regset_from_core_section): New function.
7858 (vax_gdbarch_init): Set regset_from_core_section.
7859 * Makefile.in (vax-tdep.o): Update dependencies.
7860
7861 2004-04-15 Andrew Cagney <cagney@redhat.com>
7862
7863 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7864 (observer_normal_stop_notification_stub)
7865 (observer_attach_normal_stop, observer_detach_normal_stop):
7866 Delete, replaced by #include "observer.inc".
7867 * infrun.c (normal_stop): Pass "stop_bpstat" to
7868 observer_notify_normal_stop.
7869 * Makefile.in (observer_inc): Define.
7870 (observer.o): Update dependencies.
7871 (observer.h, observer.inc): New rules.
7872 * observer.h: Delete file.
7873 * observer.sh: New file.
7874
7875 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7876
7877 * vax-tdep.c (vax_frame_cache): Fix typo.
7878
7879 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7880
7881 * NEWS (New native configurations): Mention NetBSD/vax.
7882 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7883 * config/vax/nbsdelf.mh: New file.
7884 * config/vax/nbsdaout.mh: New file.
7885 * config/vax/nm-nbsd.h: New file.
7886 * config/vax/nm-nbsdaout.h: New file.
7887
7888 * vaxnbsd-tdep.c: New file.
7889 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7890 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7891 * config/vax/nbsd.mt: New file.
7892 * config/vax/tm-nbsd.h: New file.
7893
7894 * Makefile.in (vaxbsd-nat.o): New dependency.
7895
7896 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7897 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7898 struct_addr arguments. Don't push return value address.
7899 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7900 arguments to vax_store_arguments. Store return value address in
7901 R1.
7902 (vax_store_struct_return, vax_extract_return_value)
7903 (vax_store_return_value): Remove functions.
7904 (vax_return_value): New function.
7905 (vax_gdbarch_init): Set return value. Don't set
7906 deprecated_store_struct_return, deprecated_extract_struct_return
7907 and deprecated_store_return_value.
7908
7909 2004-04-14 Andreas Schwab <schwab@suse.de>
7910
7911 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7912 value buffer.
7913 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7914
7915 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7916
7917 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7918 (vax_unwind_dummy_id): New functions.
7919 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7920 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7921 variables.
7922 (vax_fix_call_dummy): Remove function.
7923 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7924 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7925 call_dummy_location, deprecated_call_dummy_words,
7926 deprecated_sizeof_call_dummy_words,
7927 deprecated_call_dummy_breakpoint_offset,
7928 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7929 and deprecated_dummy_write_sp.
7930
7931 2004-04-13 David Carlton <carlton@kealia.com>
7932
7933 * MAINTAINERS: Move myself to "paper trail" section.
7934
7935 2004-04-12 Mark Kettenis <kettenis@gnu.org>
7936
7937 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7938 "trad-frame.h".
7939 (vax_frame_init_saved_regs): Remove function.
7940 (vax_sigtramp_saved_pc): Remove function.
7941 (vax_frame_saved_pc): Remove function.
7942 (vax_frame_args_address): Remove function.
7943 (vax_frame_num_args): Rewrite.
7944 (vax_frame_chain): Remove function.
7945 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7946 VAX_FP_REGNUM.
7947 (vax_pop_frame): Likewise.
7948 (vax_saved_pc_after_call): Remove function.
7949 (struct vax_frame_cache): New structure.
7950 (vax_frame_cache): New function.
7951 (vax_frame_this_id): New function.
7952 (vax_frame_prev_register): New function.
7953 (vax_frame_unwind): New variable.
7954 (vax_frame_sniffer): New function.
7955 (vax_frame_base_address): New function.
7956 (vax_frame_args_address): New function.
7957 (vax_frame_base): New variable.
7958 (vax_unwind_pc): New function.
7959 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7960 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7961 deprecated_frame_chain, deprecated_frame_saved_pc,
7962 deprecated_frame_args_address and
7963 deprecated_frame_init_saved_regs.
7964 * Makefile.in (vax-tdep.o): Update dependencies.
7965
7966 * vaxbsd-nat.c: New file.
7967
7968 * vax-tdep.h: Update copyright year. Adjust comments.
7969 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7970 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7971 (vax_regnum): New enum. Replacing...
7972 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7973 (VAX_PS_REGNUM): ... these removed macros.
7974 * vax-tdep.c (vax_register_name): Remove prototype.
7975 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7976 (vax_register_byte, vax_register_raw_size,
7977 vax_register_virtual_size, vax_register_virtual_type): Remove
7978 functions.
7979 (vax_register_type): New function.
7980 (vax_breakpoint_from_pc): Reorganize.
7981 (vax_gdbarch_init): Set register_type. Don't set
7982 deprecated_register_size, deprecated_register_bytes,
7983 deprecated_register_byte, deprecated_register_raw_size,
7984 deprecated_max_register_raw_size,
7985 deprecated_register_virtual_size,
7986 deprecated_max_register_virtual_size and
7987 deprecated_register_virtual_type. Add comment on stack direction.
7988
7989 2004-04-11 Mark Kettenis <kettenis@gnu.org>
7990
7991 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7992 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
7993 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
7994
7995 2004-04-10 Randolph Chung <tausq@debian.org>
7996
7997 * MAINTAINERS (write after approval): Add myself.
7998
7999 2004-04-07 Randolph Chung <tausq@debian.org>
8000
8001 * hppa-tdep.c (hppa_inner_than): Remove.
8002 (is_pa_2): Remove unused static variable.
8003 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
8004
8005 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8006
8007 * language.h (language_defn): Add new la_post_parser field.
8008 * parser-defs.h (null_post_parser): New declaration (default for
8009 la_post_parser).
8010
8011 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8012 insert call to that function.
8013 (parse_exp_in_context): New function, including code formerly in
8014 parse_exp_1. Calls language-dependent post-parser after
8015 prefixification.
8016 (parse_expression_in_context): New exported function.
8017 (null_post_parser): New definition.
8018 * expression.h (parse_expression_in_context): Add declaration.
8019
8020 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8021 * c-lang.c (c_language_defn): Ditto.
8022 (cplus_language_defn): Ditto.
8023 (asm_language_defn): Ditto.
8024 (minimal_language_defn): Ditto.
8025 * f-lang.c (f_language_defn): Ditto.
8026 * jv-lang.c (java_language_defn): Ditto.
8027 * language.c (unknown_language_defn): Ditto.
8028 (auto_language_defn): Ditto.
8029 (local_language_defn): Ditto.
8030 * m2-lang.c (m2_language_defn): Ditto.
8031 * scm-lang.c (scm_language_defn): Ditto.
8032 * obj-lang.c (objc_language_defn): Ditto.
8033
8034 2004-04-10 Mark Kettenis <kettenis@gnu.org>
8035
8036 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8037 (amd64nbsd_mcontext_addr): New function.
8038 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8039 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8040 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8041
8042 * corelow.c (core_xfer_partial): Fix coding standards violation.
8043 Add support for TARGET_OBJECT_WCOOKIE.
8044
8045 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8046 deprecated_pc_in_sigtramp.
8047 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8048 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8049 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8050 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8051 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8052 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8053 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8054
8055 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8056 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8057 Fix typo.
8058
8059 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8060 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8061 (amd64_collect_fxsave): Likewise.
8062
8063 * i386-sol2-tdep.c: Include "gdb_string.h".
8064 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8065 name.
8066 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8067
8068 2004-04-10 Mark Kettenis <kettenis@gnu.org>
8069
8070 * i386-sol2-tdep.c: Include "solib-svr4.h".
8071 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8072 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8073 * config/i386/tm-i386sol2.h: Include :solib.h".
8074 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8075 solib-svr4.o and solib-legacy.o.
8076 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8077 solib-svr4.o.
8078
8079 2004-04-09 Mark Kettenis <kettenis@gnu.org>
8080
8081 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8082 whether a register is supplied by PTRACE_GETFPREGS.
8083 (store_inferior_registers): Likewise.
8084 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8085 whether a register is supplied by PT_GETFPREGS.
8086 (store_inferior_registers): Likewise.
8087
8088 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8089 * config/i386/linux64.mt (TDEPFILES): Likewise.
8090
8091 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8092
8093 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8094 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8095 the program counter is in the range specified by `struct
8096 gdbarch_tdep'.
8097 * amd64-linux-tdep.c: Include "symtab.h".
8098 (amd64_linux_pc_in_sigtramp): Remove function.
8099 (amd64_linux_sigtramp_p): New function.
8100 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8101 deprecated_pc_in_sigtramp.
8102 * amd64nbsd-tdep.c: Include "symtab.h".
8103 (amd64nbsd_sigtramp_p): New function.
8104 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8105 deprecated_pc_in_sigtramp.
8106 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8107 few comments.
8108 (amd64obsd_pc_in_sigtramp): Remove function.
8109 (amd64obsd_sigtramp_p): New function.
8110 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8111 deprecated_pc_in_sigtramp.
8112 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8113 (i386bsd_pc_ins_sigtramp): Remove prototype.
8114 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8115 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8116 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8117 the program counter is in the range specified by `struct
8118 gdbarch_tdep'.
8119 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8120 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8121 (i386_go32_pc_in_sigtramp): Remove function.
8122 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8123 Initialize TDEP->sigtramp_p.
8124 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8125 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8126 deprecated_pc_in_sigtramp.
8127 * i386-linux-tdep.c: Adjust comments.
8128 (i386_linux_pc_in_sigtramp): Remove function.
8129 (i386_linux_sigtramp_p): New function.
8130 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8131 deprecated_pc_in_sigtramp.
8132 * i386-nto-tdep.c: Update copyright year.
8133 (i386nto_pc_in_sigtramp): Remove function.
8134 (i386nto_sigtramp_p): New function.
8135 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8136 SP_REGNUM.
8137 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8138 deprecated_pc_in_sigtramp.
8139 * i386-sol2-tdep.c: Update copyright year.
8140 (i386_sol2_pc_in_sigtramp): Remove function.
8141 (i386_sol2_sigtramp_p): New function.
8142 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8143 deprecated_pc_in_sigtramp.
8144 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8145 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8146 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8147 deprecated_sigtramp_start and deprecated_sigtramp_end.
8148 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8149 (i386nbsd_pc_in_sigtramp): Remove function.
8150 (i386nbsd_sigtramp_p): New function.
8151 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8152 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8153 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8154 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8155 (i386obsd_pc_in_sigtramp): Remove function.
8156 (i386obsd_sigtramp_p): New function.
8157 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8158 functions.
8159 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8160 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8161 TDEP->sigtramp_p.
8162 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8163 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8164 dependencies.
8165
8166 * config/i386/i386aout.mt: Remove file.
8167
8168 * configure.tgt: Remove i[34567]86-*-go32*,
8169 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8170 and i[34567]86-*-isc*. Set gdb_target to i386 for
8171 i[34567]86-*-netware* and i[34567]86-*-*.
8172 * config/i386/i386.mt: New file.
8173 * config/i386/embed.mt: Remove file.
8174 * config/i386/go32.mt: Remove file.
8175 * config/i386/i386nw.mt: Remove file.
8176 * config/i386/i386v.mt: Remove file.
8177 * config/i386/tm-go32.h: Remove file.
8178
8179 * tui/tui-hooks.c: Include "readline/readline.h" after
8180 "gdb_curses.h" instead of before.
8181 * tui/tui-io.c: Likewise.
8182
8183 * tui/tui.c: Fix typo in comment.
8184
8185 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8186
8187 2004-04-08 Andrew Cagney <cagney@redhat.com>
8188
8189 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8190 (deprecated_exception_support_initialized): Declare.
8191 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
8192 (initialize_hp_cxx_exception_support)
8193 (child_enable_exception_callback): Update.
8194 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8195 (deprecated_exception_support_initialized): Rename
8196 deprecated_exception_catchpoints_are_fragile and
8197 deprecated_exception_support_initialized.
8198 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8199
8200 * symtab.c (deprecated_hp_som_som_object_present): Rename
8201 hp_som_som_object_present.
8202 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8203 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8204 Update. Delete extern declaration.
8205 * valops.c (hp_som_som_object_present): Ditto.
8206 * parse.c (deprecated_hp_som_som_object_present)
8207 (parse_nested_classes_for_hpacc): Ditto.
8208 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8209 * hppa-hpux-tdep.c (hp_som_som_object_present)
8210 (initialize_hp_cxx_exception_support): Ditto.
8211 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8212 * cp-valprint.c (hp_som_som_object_present)
8213 (cp_print_class_method): Ditto.
8214 * c-typeprint.c (hp_som_som_object_present):
8215 (c_type_print_base): Ditto.
8216 * c-exp.y (hp_som_som_object_present): Ditto.
8217
8218 2004-04-08 Andrew Cagney <cagney@redhat.com>
8219
8220 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8221 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8222 (frame_unwind_find_by_frame): Re-implement the unwind code so
8223 that it can both prepend and append sniffers. Replace
8224 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8225 * tramp-frame.c (tramp_frame_append): Use
8226 frame_unwind_prepend_unwinder.
8227 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8228 frame_unwind_register_unwinder.
8229 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8230 tramp_frame_append.
8231 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8232 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
8233 (mips_linux_init_abi): Update.
8234
8235 2004-04-08 Kevin Buettner <kevinb@redhat.com>
8236
8237 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8238 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8239 file support.
8240
8241 2004-04-07 Kevin Buettner <kevinb@redhat.com>
8242
8243 * ia64-tdep.c (elf.h): Don't include.
8244 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8245
8246 2004-04-07 Jason Molenda (jmolenda@apple.com)
8247
8248 * frame.h: Typeo corrections in comments.
8249
8250 2004-04-07 Jim Blandy <jimb@redhat.com>
8251
8252 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8253 %esp and %ebp
8254
8255 2004-04-07 Mark Kettenis <kettenis@gnu.org>
8256
8257 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8258 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8259 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8260 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8261 and solib-legacy.o.
8262 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8263 solib-svr4.o.
8264 * config/sparc/tm-sol2.h: Update copyright year. Include
8265 "solib.h".
8266
8267 * sparc-sol2-tdep.c: Update copyright year. Include
8268 "solib-svr4.h".
8269 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8270 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8271 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8272 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
8273 dependencies.
8274
8275 2004-04-06 Andrew Cagney <cagney@redhat.com>
8276
8277 * infttrace.c: Include "infttrace.h".
8278 * infttrace.h: Include "target.h".
8279 * Makefile.in (infttrace_h): Update.
8280 (infttrace.o): Update.
8281
8282 2004-04-06 Andrew Cagney <cagney@redhat.com>
8283
8284 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8285 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8286 move extern declarations from here ...
8287 * infttrace.h: ... to here.
8288 * Makefile.in (hppah-nat.o): Update dependencies.
8289
8290 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8291 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8292 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
8293 (hppa_breakpoint_from_pc): Delete.
8294
8295 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8296
8297 2004-04-05 Andrew Cagney <cagney@redhat.com>
8298
8299 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8300 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8301 <sys/file.h>.
8302
8303 2004-04-06 Randolph Chung <tausq@debian.org>
8304
8305 Committed by Andrew Cagney (mechanical change).
8306 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8307 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8308 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8309 child_enable_exception_callback, current_ex_event,
8310 null_symtab_and_line, child_get_current_exception_event,
8311 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8312 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8313 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8314 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8315 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8316 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8317 Move hpux-specific definitions ...
8318 * hppa-hpux-tdep.c: ... to here.
8319
8320 2004-04-05 Andrew Cagney <cagney@redhat.com>
8321
8322 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8323 skip_prologue_using_sal.
8324
8325 2004-04-05 Andrew Cagney <cagney@redhat.com>
8326
8327 * config/i386/tm-i386.h: Delete file.
8328 * config/i386/tm-vxworks.h: Update copyright, do not include
8329 "tm-i386.h".
8330 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8331 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8332 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8333 * config/i386/ncr3000.mt (TM_FILE): Delete.
8334 * config/i386/interix.mt (TM_FILE): Delete.
8335 * config/i386/i386v.mt (TM_FILE): Delete.
8336 * config/i386/i386nw.mt (TM_FILE): Delete.
8337 * config/i386/i386gnu.mt (TM_FILE): Delete.
8338 * config/i386/i386aout.mt (TM_FILE): Delete.
8339 * config/i386/embed.mt (TM_FILE): Delete.
8340
8341 2004-04-05 Kevin Buettner <kevinb@redhat.com>
8342
8343 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8344 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8345 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8346 (accg7_regnum): New constants.
8347 (last_spr_regnum, last_pseudo_regnum): Update.
8348 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8349 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8350 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8351 for accg registers.
8352 (frv_register_sim_regno): Update spr_map[].
8353
8354 2004-04-04 Andrew Cagney <cagney@redhat.com>
8355
8356 * config/mips/xm-riscos.h: Delete.
8357 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8358 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8359 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8360 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8361 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8362 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8363 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8364 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8365 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8366 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8367 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8368 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8369 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8370 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8371 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8372 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8373 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8374 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8375 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8376 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8377 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8378 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8379 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8380 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8381 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8382 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8383
8384 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8385 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8386 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8387 * configure.host: Remove m680[01]0-sun-sunos3*,
8388 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8389 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8390 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8391 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8392 mips-*-riscos*.
8393 * NEWS: Mention removed systems.
8394
8395 2004-04-04 Andrew Cagney <cagney@redhat.com>
8396
8397 GDB 6.1 release created from 6.1 branch.
8398
8399 2004-04-04 Andrew Cagney <cagney@redhat.com>
8400
8401 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8402 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8403 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8404
8405 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8406 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8407 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8408
8409 2004-04-03 Jim Blandy <jimb@redhat.com>
8410
8411 * MAINTAINERS: Chris Faylor has changed employers; add him to
8412 "paper trail" section, and update his E-mail address.
8413
8414 2004-04-03 Andrew Cagney <cagney@redhat.com>
8415
8416 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8417 generic dummy frames.
8418 * dummy-frame.c: Update copyright.
8419 (dummy_frame_sniffer): Delete check for generic dummy frames.
8420
8421 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8422 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
8423 (REG_PARM_STACK_SPACE): Delete.
8424 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8425 Inline reference to REG_PARM_STACK_SPACE.
8426
8427 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8428 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8429 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8430 (FRAME_BASE_BEFORE_SIGTRAMP)
8431 (hppa32_hpux_frame_base_before_sigtramp)
8432 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8433 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8434 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8435 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8436 (FRAME_BASE_BEFORE_SIGTRAMP)
8437 (hppa64_hpux_frame_base_before_sigtramp)
8438 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8439
8440 2004-04-03 Andrew Cagney <cagney@redhat.com>
8441
8442 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8443
8444 2004-04-02 Andrew Cagney <cagney@redhat.com>
8445
8446 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8447 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8448 * dummy-frame.h: Delete out-of-date comments.
8449 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8450 * gdbarch.h, gdbarch.c: Re-generate.
8451
8452 2004-04-02 Joel Brobecker <brobecker@gnat.com>
8453
8454 Committed by Andrew Cagney <cagney@redhat.com>.
8455 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8456 into account an instruction saving a register if we have already
8457 seen an earlier instruction saving that same register.
8458
8459 2004-04-02 Andrew Cagney <cagney@redhat.com>
8460
8461 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8462 * gdbarch.h, gdbarch.c: Re-generate.
8463 * frame.c (legacy_get_prev_frame): Delete references to
8464 DEPRECATED_INIT_FRAME_PC_FIRST.
8465
8466 * infrun.c (pc_in_sigtramp): Delete function.
8467 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8468 get_frame_type.
8469
8470 2004-04-02 Andrew Cagney <cagney@redhat.com>
8471
8472 * infrun.c (handle_step_into_function): Delete code conditional on
8473 legacy_frame_p.
8474 (handle_inferior_event, step_over_function): Ditto.
8475
8476 2004-04-02 Andrew Cagney <cagney@redhat.com>
8477
8478 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8479 "previous frame inner to this frame" test.
8480
8481 2004-04-02 Andrew Cagney <cagney@redhat.com>
8482
8483 * frame.c (safe_frame_unwind_memory): New function.
8484 * frame.h (safe_frame_unwind_memory): Declare. Update description
8485 of /safe_/ methods.
8486 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8487 "next_frame". Use safe_frame_unwind_memory.
8488 (tramp_frame_sniffer): Update call to tramp_frame_start.
8489
8490 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
8491
8492 * dwarf2read.c (dwarf2_objfile_data_key): New.
8493 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8494 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8495 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8496 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8497 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8498 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8499 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8500 Remove variables.
8501 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8502 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8503 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8504 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8505 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8506 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8507 Remove macros.
8508 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8509 data.
8510 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8511 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8512 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8513 (read_partial_die, read_full_die, read_indirect_string)
8514 (dwarf_decode_line_header, dwarf_decode_macros)
8515 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8516 Update uses of removed variables.
8517 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8518 of removed macros.
8519 (_initialize_dwarf2_read): New function.
8520 * symfile.h (dwarf2_has_info): Update prototype.
8521 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8522 * elfread.c (elf_symfile_read): Likewise.
8523
8524 2004-04-01 Jim Blandy <jimb@redhat.com>
8525
8526 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8527 function for register numbers on all the rs6000-derived targets.
8528 (rs6000_gdbarch_init): Don't register a separate
8529 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8530 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8531 variants.
8532
8533 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8534 numbering.
8535
8536 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8537
8538 * valarith.c: Update copyright notice.
8539 (value_add): Handle range types.
8540 (value_sub): Ditto.
8541 (value_equal): Ditto.
8542 (value_less): Ditto.
8543 (value_neg): Ditto.
8544 (value_complement): Ditto.
8545 (value_binop): Simplify slightly by using is_integral_type and
8546 eliminiating unnecessary COERCE_ENUMs.
8547
8548 2004-03-31 Andrew Cagney <cagney@redhat.com>
8549
8550 * frame.h (frame_unwind_id): Declare.
8551 * frame.c (frame_unwind_id): New function.
8552 (get_prev_frame_1): New function.
8553 (frame_debug_got_null_frame): New function.
8554 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8555 code proper to prev_frame, update description.
8556 * infrun.c (step_over_function): Use frame_unwind_id.
8557
8558 2004-04-31 J. Brobecker <brobecker@gnat.com>
8559
8560 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8561 (hppa64_push_dummy_call): Likewise.
8562
8563 2004-03-30 Jim Blandy <jimb@redhat.com>
8564
8565 From Ulrich Weigand:
8566 * utils.c (query): Do not use a va_list variable multiple times.
8567
8568 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8569
8570 * Makefile.in (linux_nat_h): Update dependencies.
8571 * configure.in: Check for <gnu/libc-version.h>.
8572 * configure: Regenerate.
8573 * config.in: Regenerate.
8574 * linux-nat.h: Include "target.h". Add waitstatus field to
8575 struct lwp_info.
8576 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8577 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8578 to.
8579 (lin_lwp_handle_extended): New function. Handle clone events.
8580 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8581 thread exit events.
8582 (child_wait): Handle clone events.
8583 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8584 * linux-nat.c (linux_enable_event_reporting): Turn on
8585 PTRACE_O_TRACECLONE.
8586 (linux_handle_extended_wait): Handle clone events.
8587 * thread-db.c: Include <gnu/libc-version.h>.
8588 (struct private_thread_info): Add dying flag.
8589 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8590 higher.
8591 (attach_thread): Update comments. Handle dying threads.
8592 (detach_thread): Set the dying flag.
8593 (check_event): Always call attach_thread.
8594
8595 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8596
8597 * mips-tdep.c (mips_pdr_data): New.
8598 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8599 (_initialize_mips_tdep): Initialize mips_pdr_data.
8600
8601 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
8602
8603 * minsyms.c (install_minimal_symbols): Move dropping leading
8604 char from linkage name from here...
8605 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8606 test for "__gnu_compiled*" symbols.
8607
8608 2004-03-28 Jim Blandy <jimb@redhat.com>
8609
8610 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8611 registers to temp register r0 and byte stores as prologue
8612 instructions.
8613
8614 2004-03-28 Andrew Cagney <cagney@redhat.com>
8615
8616 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8617 arm*-*-*.
8618
8619 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8620
8621 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8622 and switch the layout to force a display of register window.
8623
8624 2004-02-26 J. Brobecker <brobecker@gnat.com>
8625
8626 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8627 of the INTEGER class.
8628
8629 2004-03-26 Jim Blandy <jimb@redhat.com>
8630
8631 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8632 bytes long on PPC GNU/Linux.
8633
8634 2004-03-26 David Carlton <carlton@kealia.com>
8635
8636 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8637
8638 2004-03-25 Andrew Cagney <cagney@redhat.com>
8639
8640 * PROBLEMS: Add general section titles, remove references to
8641 specific releases.
8642
8643 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
8644
8645 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8646 INT_REGISTER_SIZE.
8647 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8648 FP_REGISTER_VIRTUAL_SIZE.
8649 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8650 of DEPRECATED_REGISTER_RAW_SIZE.
8651 (arm_register_type): Add gdbarch argument.
8652 (arm_register_raw_size, arm_register_virtual_size): Delete.
8653 (arm_register_byte, arm_extract_return_value)
8654 (arm_store_return_value, arm_get_longjmp_target): Update references
8655 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8656 (arm_gdbarch_init): Likewise. Don't set
8657 deprecated_register_raw_size, deprecated_register_virtual_size,
8658 deprecated_max_register_raw_size,
8659 deprecated_max_register_virtual_size, or
8660 deprecated_max_register_virtual_type. Do set register_type.
8661 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8662 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8663 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8664 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8665 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8666 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8667 INT_REGISTER_SIZE.
8668 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8669 (remote_rdp_store_register): Likewise.
8670
8671 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
8672
8673 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8674 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8675 to after osabi initialization.
8676 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8677 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8678 functions.
8679 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8680 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8681 variables.
8682 (mips_linux_init_abi): Append signal trampoline unwinders.
8683
8684 2004-03-24 Andrew Cagney <cagney@redhat.com>
8685
8686 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8687 * tramp-frame.c: Include "gdb_assert.h".
8688 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8689 correct sizeof.
8690 (tramp_frame_append): Validate the tramp frame's instructions.
8691 * Makefile.in (tramp-frame.o): Update dependencies.
8692
8693 2004-03-23 Andrew Cagney <cagney@redhat.com>
8694
8695 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8696
8697 2004-03-23 Andrew Cagney <cagney@redhat.com>
8698
8699 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8700 Nasser as past testsuite/lib/ (and other) maintainers.
8701
8702 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8703
8704 * infcmd.c (attach_command): Reread symbols if we already have
8705 an exec file.
8706
8707 2004-03-23 Andrew Cagney <cagney@redhat.com>
8708
8709 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8710
8711 2004-03-23 Andrew Cagney <cagney@redhat.com>
8712
8713 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8714 * gdbarch.h, gdbarch.c: Re-generate.
8715 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8716 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8717 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
8719 (DEPRECATED_SIGTRAMP_START): Update.
8720 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
8721 (DEPRECATED_SIGTRAMP_START): Update.
8722 * blockframe.c (find_pc_sect_partial_function): Update.
8723 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8724
8725 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8726
8727 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8728 if necessary.
8729
8730 2004-03-23 Andrew Cagney <cagney@redhat.com>
8731
8732 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8733 predicate, deprecate.
8734 * gdbarch.h, gdbarch.c: Re-generate.
8735 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8736 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8737 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8738 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8739 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8740 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8741 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8742 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8743 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8744 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8745 * blockframe.c (find_pc_partial_function): Update.
8746 * breakpoint.c (bpstat_what): Update.
8747 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8748 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8749 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8750 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8751 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8752 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8753 * i386-nto-tdep.c (i386nto_init_abi): Update.
8754 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8755 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8756 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8757 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8758 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8759 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8760 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8761 * infrun.c (pc_in_sigtramp): Update.
8762 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8763 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8764 * mips-tdep.c (mips_gdbarch_init): Update.
8765 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8766 * ppc-linux-tdep.c: Update comment.
8767 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8768 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8769 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8770 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8771 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8772 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8773 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8774 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8775 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8776 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8777
8778 2004-03-23 Andrew Cagney <cagney@redhat.com>
8779
8780 * tramp-frame.h, tramp-frame.h: New files.
8781 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8782 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8783
8784 * Makefile.in: Update all dependencies.
8785
8786 2004-03-23 Andrew Cagney <cagney@redhat.com>
8787
8788 * Makefile.in (trad_frame_h): Add $(frame_h).
8789 * trad-frame.h: Update copyright. Include "frame.h".
8790 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8791 (trad_frame_set_id, trad_frame_get_id): Declare.
8792 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8793 * trad-frame.c: Update copyright.
8794 (struct trad_frame_cache): Define.
8795 (trad_frame_cache_zalloc): New function.
8796 (trad_frame_set_id, trad_frame_get_id): New functions.
8797 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8798
8799 2004-03-22 Andrew Cagney <cagney@redhat.com>
8800
8801 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8802 s390_pltstub_unwind_cache.
8803 (s390_stub_frame_unwind_cache): Rename
8804 s390_pltstub_frame_unwind_cache.
8805 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8806 (s390_stub_frame_prev_register): Rename
8807 s390_pltstub_frame_prev_register.
8808 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8809 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8810
8811 From Ulrich Weigand:
8812 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8813 pointer calls like PLT calls.
8814
8815 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8816
8817 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8818 PC rather than the partial function start address. Use the start
8819 address to sanity check the found PDR.
8820
8821 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8822
8823 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8824 linux_handle_extended_wait.
8825
8826 2004-03-22 Andrew Cagney <cagney@redhat.com>
8827
8828 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8829 function.
8830
8831 * frame.h (generic_pop_current_frame): Delete declaration.
8832 (deprecate_pop_dummy_frame): Deprecate
8833 generic_pop_dummy_frame.
8834 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8835 (generic_pop_current_frame): Delete function.
8836 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8837 generic_pop_current_frame.
8838 * v850-tdep.c (v850_pop_frame): Update.
8839 * mcore-tdep.c (mcore_pop_frame): Update.
8840 * sh64-tdep.c (sh64_pop_frame): Update.
8841 * h8300-tdep.c (h8300_pop_frame): Update.
8842
8843 2004-03-22 Andrew Cagney <cagney@redhat.com>
8844
8845 * frame.h (deprecated_pc_in_call_dummy): Rename
8846 generic_pc_in_call_dummy.
8847 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8848 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8849 generic_pc_in_call_dummy.
8850 (pc_in_dummy_frame): Make static.
8851 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8852 * gdbarch.h, gdbarch.c: Re-generate.
8853 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8854 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8855 (legacy_get_prev_frame): Ditto.
8856 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8857 comment.
8858
8859 2004-03-21 Andrew Cagney <cagney@redhat.com>
8860
8861 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8862 declaration and out-of-date comment.
8863 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8864 Delete function.
8865 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8866 deprecated_pc_in_call_dummy.
8867
8868 * infrun.c (handle_inferior_event): For non legacy frames, use the
8869 frame ID and frame type to identify a signal trampoline. Update
8870 comments.
8871
8872 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8873
8874 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8875 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8876
8877 2004-03-21 Andrew Cagney <cagney@redhat.com>
8878
8879 * frame-unwind.h: Update copyright.
8880 (struct frame_data): Add opaque declaration.
8881 (frame_sniffer_ftype): Declare.
8882 (struct frame_unwind): Add "unwind_data" and "sniffer".
8883 (frame_unwind_register_unwinder): Declare.
8884 (frame_unwind_find_by_frame): Add parameter "this_cache".
8885 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8886 (legacy_get_prev_frame, legacy_get_prev_frame)
8887 (get_frame_type): Pass the prologue_cache to
8888 frame_unwind_find_by_frame.
8889 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8890 "unwinder".
8891 (frame_unwind_register_unwinder): New function.
8892 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8893
8894 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8895
8896 * bcache.c (print_percentage): Use floating point to avoid
8897 incorrect results when portion*100 overflows.
8898
8899 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8900
8901 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8902 (ppc_linux_init_extra_frame_info)
8903 (ppc_linux_frameless_function_invocation)
8904 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8905 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8906 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8907 (rs6000_frame_chain): Delete declarations.
8908 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8909 (ppc_linux_init_extra_frame_info)
8910 (ppc_linux_frameless_function_invocation)
8911 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8912 (ppc_linux_init_abi): Remove registration of above deleted functions.
8913 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8914 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8915 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8916 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8917 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8918 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8919 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8920 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8921 frame management for all OSABIs.
8922
8923 2004-03-19 Andrew Cagney <cagney@redhat.com>
8924
8925 Committed by Kevin Buettner <kevinb@redhat.com>.
8926
8927 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8928 Update copyright.
8929 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8930 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8931 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8932 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8933 unwinders. #ifdef legacy frame code.
8934 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8935 "frame-base.h".
8936 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8937 (struct rs6000_frame_cache, rs6000_frame_cache)
8938 (rs6000_frame_this_id, rs6000_frame_prev_register)
8939 (rs6000_frame_sniffer, rs6000_frame_unwind)
8940 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8941 (rs6000_frame_base): Implement a traditional frame unwinder.
8942 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8943 frame unwinder.
8944
8945 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8946
8947 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8948 breakpoint address for watchpoints or the catch eventpoints.
8949 Add new paramter ``bptype''. Adjust all callers.
8950
8951 2004-03-19 Andrew Cagney <cagney@redhat.com>
8952
8953 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8954
8955 * PROBLEMS: Delete note that ARM does not use frame code, problem
8956 fixed.
8957
8958 2004-03-18 Andrew Cagney <cagney@redhat.com>
8959
8960 * stack.c (return_command): Delete code wrapped in #ifdef
8961 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8962
8963 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8964
8965 2004-03-18 Andrew Cagney <cagney@redhat.com>
8966
8967 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8968 DEPRECATED_IN_SIGTRAMP.
8969 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8970 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8971 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8972 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8973 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8974 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8975 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8976 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8977 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8978 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8979
8980 2004-03-18 Andrew Cagney <cagney@redhat.com>
8981
8982 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8983 (struct frame_base_table_entry): Define.
8984 (struct frame_base_table): Re-implement as a linked list.
8985 (frame_base_init): Re-implement.
8986 (frame_base_table): Delete function.
8987 (append_predicate): Delete function.
8988 (frame_base_append_sniffer): Update.
8989 (frame_base_set_default): Update.
8990 (frame_base_find_by_frame): Update.
8991 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8992 * Makefile.in (frame-base.o): Update dependencies.
8993
8994 2004-03-17 Andrew Cagney <cagney@redhat.com>
8995
8996 * frame.c (legacy_get_prev_frame): Pass correct frame to
8997 frame_unwind_find_by_frame.
8998
8999 2004-03-17 David Carlton <carlton@kealia.com>
9000
9001 * NEWS: Mention C++ nested types and namespaces
9002
9003 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9004
9005 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9006 and "Regressions since gdb 5.3.". Add known regressions since
9007 gdb 6.0.
9008
9009 2004-03-16 David Carlton <carlton@kealia.com>
9010
9011 * dwarf2read.c (process_structure_scope): Process children even
9012 when we're a declaration.
9013
9014 2004-03-16 Andrew Cagney <cagney@redhat.com>
9015
9016 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9017 * blockframe.c (find_pc_partial_function)
9018 (find_pc_sect_partial_function): Merge into a single
9019 find_pc_partial_function.
9020
9021 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9022
9023 * i386bsd-nat.c: s/regno/regnum/g.
9024 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9025 FP0_REGNUM.
9026 (store_inferior_registers): Likewise.
9027
9028 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9029
9030 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9031 of i387_fill_fsave.
9032 (store_inferior_registers): Call i387_collect_fsave and
9033 i387_collect_fxsave instead of i387_fill_fsave and
9034 i387_fill_fxsave.
9035
9036 2004-03-15 Andrew Cagney <cagney@redhat.com>
9037
9038 * Makefile.in (frame-unwind.o): Update dependencies.
9039 * frame-unwind.c: Include "gdb_obstack.h".
9040 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9041 parameter.
9042 (append_predicate): Delete function.
9043 (struct frame_unwind_table_entry): New structure.
9044 (struct frame_unwind_table): Replace "sniffer" with "head" and
9045 "tail".
9046 (frame_unwind_append_sniffer): Update.
9047 (frame_unwind_find_by_frame): Update.
9048 (_initialize_frame_unwind): Registe frame_unwind_init using
9049 gdbarch_data_register_pre_init.
9050
9051 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9052
9053 * i386bsd-nat.c: Update copyright year.
9054 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9055 define unconditionally.
9056
9057 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9058
9059 * i387-tdep.h (i387_collect_fsave): New prototype.
9060 * i387-tdep.c (i387_collect_fsave): New function containing most
9061 of the code from i387_fill_fsave.
9062 (i387_fill_fsave): Call i387_collect_fsave.
9063
9064 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9065
9066 * i386-linux-tdep.c: Update copyright year.
9067 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9068 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9069 svr4_ilp32_link_map_offsets instead of
9070 i386_linux_svr4_fetch_link_map_offsets.
9071
9072 2004-03-15 David Carlton <carlton@kealia.com>
9073
9074 Fix for PR c++/1553:
9075 * dwarf2read.c (read_structure_type): Determine type name by
9076 calling determine_class_name.
9077 (determine_class_name): New.
9078 (determine_prefix): Look at TYPE_TAG_NAME and call
9079 determine_class_name when appropriate.
9080 (determine_prefix_aux, class_name): Delete.
9081 (read_namespace): Set die->type.
9082
9083 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9084
9085 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9086 unused macro definition. The definition in target.h (or perhaps
9087 elsewhere) takes precedence.
9088
9089 2004-03-15 Andrew Cagney <cagney@redhat.com>
9090
9091 * ppc-tdep.h: Update copyright.
9092 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9093 function signatures to match "regsets.h".
9094 * ppc-linux-tdep.c: Include "regset.h".
9095 (ELF_GREGSET_SIZE): Delete.
9096 (right_supply_register): New function.
9097 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9098 using right_supply_register.
9099 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9100 functions.
9101 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9102 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9103 (_initialize_ppc_linux_tdep): Do not register
9104 ppc_linux_regset_core_fns.
9105 (ppc_linux_regset_from_core_section): Replace
9106 fetch_core_registers.
9107 (ppc_linux_regset_core_fns): Delete.
9108 * ppc-linux-nat.c: (right_fill_reg): New function.
9109 (supply_gregset): Update call to ppc_linux_supply_gregset.
9110 (fill_gregset): Clear the register set, use right_fill_reg.
9111 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9112 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9113
9114 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9115 unsigned.
9116
9117 2004-03-15 Andrew Cagney <cagney@redhat.com>
9118
9119 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9120 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9121 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9122 and register_gdbarch_data.
9123 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9124 (struct gdbarch_data): Replace "init" by "pre_init" and
9125 "post_init".
9126 * gdbarch.h, gdbarch.c: Re-generate.
9127 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9128 with"obstack", use OBSTACK_ZALLOC.
9129 (dwarf2_frame_ops): Delete.
9130 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9131 (dwarf2_frame_init_reg): Use gdbarch_data.
9132 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
9133 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
9134 (_initialize_svr4_solib): Update.
9135 * user-regs.c (_initialize_user_regs): Update.
9136 * reggroups.c (_initialize_reggroup): Update.
9137 * regcache.c (_initialize_regcache): Update.
9138 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9139 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9140 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9141 * frame-unwind.c (_initialize_frame_unwind): Update.
9142 * frame-base.c (_initialize_frame_base): Update.
9143 * user-regs.c (user_reg_add): Update.
9144 * reggroups.c (reggroup_add): Update.
9145 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9146 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9147 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9148 * frame-base.c (frame_base_table): Update.
9149 * remote.c (_initialize_remote): Update.
9150 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
9151
9152 2004-03-15 Andrew Cagney <cagney@redhat.com>
9153
9154 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9155
9156 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9157
9158 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9159 * frv-linux-tdep.c: New file.
9160 * frv-tdep.c (struct gdbarch_tdep): Add new field
9161 ``sigcontext_reg_addr''.
9162 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9163 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9164 (frv_sigramp_frame_sniffer): New functions.
9165 (frv_sigtramp_frame_unwind): New static global.
9166 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9167 sniffers.
9168 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9169 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9170
9171 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9172
9173 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9174 but not via a call to error(), when unable to read memory.
9175
9176 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9177
9178 * frv-tdep.c (frv_call_dummy_words): Delete.
9179 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9180
9181 2004-03-15 Andrew Cagney <cagney@redhat.com>
9182
9183 * infrun.c (handle_step_into_function, step_over_function): Only
9184 update and use STEP_FRAME_ID when the system is using legacy
9185 frames. Update comments.
9186
9187 2004-03-14 Mark Kettenis <kettenis@gnu.org>
9188
9189 * amd64-linux-tdep.h: Remove file.
9190 * amd64-linux-tdep.c: Don't include "inferior.h" and
9191 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9192 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9193 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9194 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9195 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9196 macros.
9197 (user_to_gdb_regmap): Remove variable.
9198 (amd64_linux_gregset_reg_offset): New variable.
9199 (amd64_core_fns): Remove variable.
9200 (fetch_core_registers): Remove function.
9201 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9202 functions.
9203 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9204 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9205 * Makefile.in (amd64_linux_tdep_h): Remove.
9206 (amd64-linux-nat.o): Update dependencies.
9207 (amd64-linux-tdep.o): Update dependencies.
9208
9209 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9210 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9211 functions.
9212 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9213
9214 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9215 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9216
9217 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
9218
9219 * dwarf2read.c (read_structure_type): Rename from
9220 read_structure_scope. Don't create a symbol or call process_die.
9221 Return immediately if die->type is set. Call read_type_die before
9222 dwarf2_add_member_fn.
9223 (process_structure_scope): New function.
9224 (read_enumeration_type, process_enumeration_scope): New functions,
9225 broken out from read_enumeration. Don't create the enumeration
9226 type if it has already been created.
9227 (read_enumeration): Removed.
9228 (process_die): Call read_structure_type, process_structure_scope,
9229 read_enumeration_type, and process_enumeration_scope. Just call
9230 new_symbol for base and subrange types. Add a comment about other
9231 type dies.
9232 (read_type_die): Call read_enumeration_type.
9233 (add_partial_structure, new_symbol): Update comments.
9234
9235 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9236
9237 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9238
9239 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9240
9241 * tui/tui-win.h (tui_get_cmd_list): Declare.
9242 * tui/tui-win.c (tui_command): New function.
9243 (tui_get_cmd_list): New function.
9244 (_initialize_tui_win): Moved initialization of tui command in
9245 tui_get_cmd_list.
9246
9247 * tui/tui-data.c (init_content_element): Setup new data members.
9248 (init_win_info): Likewise.
9249 (free_content_elements): Free it.
9250 * tui/tui-data.h (struct tui_data_element): Store the register
9251 content to print.
9252 (struct tui_data_info): Keep the current register group.
9253
9254 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9255
9256 * tui/tui-regs.h (tui_show_registers): Update prototype.
9257 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9258 (tui_resize_all): No need to calculate anything for register window.
9259 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9260 (tui_set_register_element, tui_set_general_regs_content): Remove.
9261 (tui_set_special_regs_content): Remove.
9262 (tui_set_general_and_special_regs_content): Remove.
9263 (tui_set_float_regs_content): Remove.
9264 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9265 (tui_set_regs_content): Remove.
9266 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9267 (tui_v_show_registers_command_support): Remove.
9268 (tui_show_registers): Use a reggroup to specify the registers to show.
9269 (tui_show_register_group): New function.
9270 (tui_display_registers_from): Compute the layout of register window
9271 and refresh with new API; be sure to delete old register windows.
9272 (tui_check_register_values): Update to use tui_get_register and
9273 tui_display_data.
9274 (tui_display_register): Just refresh the register window part.
9275 (tui_register_format): Format registers and save in tui_data_element.
9276 (tui_get_register): New to combine tui_reg_value_has_changed and
9277 tui_get_register_raw_value; fix to use the new gdb API.
9278 (tui_show_float_command): Renamed tui_reg_float_command.
9279 (tui_show_general_command): Renamed tui_reg_general_command.
9280 (tui_show_special_command): Renamed tui_reg_system_command.
9281 (_initialize_tui_regs): Remove unused commands.
9282
9283 2004-03-13 Mark Kettenis <kettenis@gnu.org>
9284
9285 * NEWS (New native configurations): Mention OpenBSD/amd64.
9286
9287 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9288 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9289 Remove defines.
9290 * config/i386/nm-fbsd64.h: Likewise.
9291 * config/i386/nm-obsd.h: Likewise.
9292 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9293 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9294
9295 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9296
9297 * frv-tdep.c (set_variant_scratch_registers): New function.
9298 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9299 New constants.
9300
9301 From Richard Sandiford <rsandifo@redhat.com>:
9302 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9303
9304 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9305
9306 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9307 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9308 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9309 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9310 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9311 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9312 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9313 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9314 definitions from frv-tdep.c to frv-tdep.h.
9315
9316 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9317
9318 Add shared library support for FR-V FDPIC ABI:
9319 * Makefile.in (solib-frv.o): Add dependencies.
9320 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9321 New functions.
9322 (frv_push_dummy_call): Add support for FDPIC ABI.
9323 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9324 for FDPIC ABI.
9325 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9326 (frv_fdpic_find_canonical_descriptor): Declare.
9327 * solib-frv.c: New file.
9328 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9329 * config/frv/tm-frv.h (solib.h): Include.
9330
9331 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9332
9333 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9334 (frv-tdep.o): Update dependencies.
9335 * frv-tdep.h: New file.
9336 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9337 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9338 constants.
9339 (struct gdbarch_tdep): Add new member ``frv_abi''.
9340 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9341 functions.
9342 (new_variant): Set ``frv_abi'' field.
9343 (gdb_arch_init): Detect FDPIC executables.
9344
9345 2004-03-12 Mark Kettenis <kettenis@gnu.org>
9346
9347 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9348 wrapper.
9349
9350 2004-03-11 Andrew Cagney <cagney@redhat.com>
9351
9352 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9353
9354 2004-03-11 Kevin Buettner <kevinb@redhat.com>
9355
9356 * solist.h (master_so_list): New function.
9357 * solib.c (master_so_list): Likewise.
9358 * solib-svr4.c (enable_break): Iterate over so_list entries
9359 obtained from master list instead of entries obtained directly
9360 via svr4_current_sos().
9361
9362 2004-03-10 Ben Elliston <bje@gnu.org>
9363
9364 * MAINTAINERS: Update my mail address.
9365
9366 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9367
9368 * remote-m32r-sdi.c: Support hardware watchpoint.
9369
9370 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9371
9372 * user-regs.c: Update copyright years.
9373 (struct user_regs): Rename to gdb_user_regs.
9374 (append_user_reg, builtin_user_regs, user_regs_init)
9375 (user_reg_add, user_reg_map_name_to_regnum)
9376 (usernum_to_user_reg): Update.
9377
9378 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9379
9380 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9381 (skip_children): New functions.
9382 (locate_pdi_sibling): Call skip_children.
9383
9384 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9385
9386 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9387 * gdbtypes.c (check_typedef): Update comments.
9388
9389 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9390
9391 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9392 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9393 pointer. Update comment about comp_unit_head.
9394 (struct abbrev_info): Shorten two int flags.
9395 (dwarf_alloc_abbrev): Take a CU argument.
9396 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9397 each time through the loop. Update cleanup argument.
9398 (psymtab_to_symtab_1): Update cleanup call.
9399 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9400 abbrev_obstack.
9401 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9402 Just call obstack_free and clear the pointer.
9403
9404 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9405
9406 * infrun.c (handle_inferior_event): Remove short-circuit code for
9407 events in a different thread.
9408
9409 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9410
9411 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9412 print the whole transfer.
9413 (initialize_targets): Update description of "set debug target".
9414
9415 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9416
9417 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9418
9419 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9420
9421 * MAINTAINERS (write after approval): Add myself.
9422
9423 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9424
9425 * sh-tdep.c (sh_print_registers_info): Use for loop.
9426 Don't skip multiple registers when a float register is encountered.
9427
9428 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9429
9430 Fix PR tdep/1291.
9431 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9432 to official SH documentation.
9433
9434 2004-03-07 Andrew Cagney <cagney@redhat.com>
9435
9436 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9437 unused function.
9438
9439 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
9440
9441 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9442 (arm_get_next_pc): Handle BX and BLX.
9443
9444 2004-03-07 Andrew Cagney <cagney@redhat.com>
9445
9446 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9447 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9448 HPPA_SP_REGNUM.
9449 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9450 (hppa_target_read_fp): Delete.
9451 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9452 register_virtual_size, max_register_raw_size,
9453 max_register_virtual_size, register_byte, register_size,
9454 target_read_fp, fp_regnum, and register_bytes. Set register_type
9455 instead of register_virtual_type.
9456 (hppa32_register_type, hppa64_register_type): Replace
9457 hppa32_register_virtual_type and hppa64_register_virtual_type.
9458 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9459 (HPPA_FP_REGNUM): Define.
9460
9461 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9462
9463 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9464 (pa_do_registers_info): Delete.
9465 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
9466 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
9467 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
9468
9469 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9470 GDB_TARGET_IS_HPPA code.
9471 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
9472 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
9473 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9474 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
9475 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9476 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9477 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
9478 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
9479 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9480 (hppa_frameless_function_invocation, hppa64_store_return_value)
9481 (hppa_store_struct_return, hppa64_extract_return_value)
9482 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
9483 (hppa32_call_dummy_length, hppa64_call_dummy_length)
9484 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
9485 (find_proc_framesize, deposit_21, restore_pc_queue)
9486 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
9487 (rp_saved, pc_in_linker_stub): Delete.
9488
9489 Unconditionally enable 64-bit frame and ABI code.
9490 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9491 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9492 push_dummy_frame, fix_call_dummy, push_arguments,
9493 call_dummy_location, extract_return_value, use_struct_convention,
9494 store_return_value, store_struct_return, saved_pc_after_call,
9495 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9496 frame_chain, frame_chain_valid, frameless_function_invocation,
9497 frame_saved_pc, and pop_frame.
9498
9499 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9500 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9501 (hppa_gdbarch_init): Do not set PC_REGNUM.
9502
9503 2004-03-06 Mark Kettenis <kettenis@gnu.org>
9504
9505 * config/alpha/tm-fbsd.h: Remove file.
9506 * config/alpha/fbsd.mt: Tweak comment.
9507 (TM_FILE): Set to tm-alpha.h.
9508
9509 2004-03-05 Andrew Cagney <cagney@redhat.com>
9510
9511 * infrun.c (step_over_function): When non-legacy code, and no
9512 step_frame_id, use the unwinder to get the caller's frame ID.
9513
9514 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9515
9516 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9517 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9518 bfd_arch_unknown. Adjust comment.
9519
9520 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9521 * i386obsd-tdep.c: Correct spelling in comment.
9522 * i386nbsd-tdep.c: Correct spelling in comment.
9523 * sparc-tdep.c: Correct spelling in comments.
9524
9525 2004-03-05 David Carlton <carlton@kealia.com>
9526
9527 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9528 bug.
9529
9530 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9531
9532 * sparc-tdep.c: Fix typo in comment.
9533
9534 2004-03-04 J. Brobecker <brobecker@gnat.com>
9535
9536 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9537
9538 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
9539
9540 * dwarf2read.c: Add comment describing memory lifetimes.
9541 (struct dwarf2_pinfo): Update comment.
9542 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9543 (read_enumeration, new_symbol): Don't use obsavestring.
9544
9545 2004-03-04 Mark Kettenis <kettenis@gnu.org>
9546
9547 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9548 instead of amd64_fill_fxsave.
9549 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9550 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9551
9552 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9553 Reorganize code a bit.
9554
9555 2004-03-04 Orjan Friberg <orjanf@axis.com>
9556
9557 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
9558 when the frame pointer is pushed. Don't set the frame pointer's
9559 address on the stack unless it's actually located there.
9560 Set the SRP's address on the stack correctly when the PC is still in
9561 the prologue.
9562 (cris_return_value): New function.
9563 (cris_gdbarch_init): Clear deprecated store_return_value,
9564 extract_return_value.
9565
9566 2004-03-02 Jim Blandy <jimb@redhat.com>
9567
9568 * stabsread.c (reg_value_complaint): The maximum register number
9569 is one less than the number of registers.
9570
9571 2004-03-02 Andrew Cagney <cagney@redhat.com>
9572
9573 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9574 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9575 trailing comma and redundant assignment of I386_ST0_REGNUM.
9576 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9577 32-bit segment registers.
9578
9579 2004-03-01 Andrew Cagney <cagney@redhat.com>
9580
9581 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9582 use frame_relative_level and get_next_frame.
9583
9584 2004-02-29 Andrew Cagney <cagney@redhat.com>
9585
9586 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9587 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9588 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9589 Delete macro.
9590
9591 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9592
9593 * inflow.c (terminal_inferior): Don't give up the terminal if we
9594 previously couldn't get the inferior's terminal state.
9595
9596 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9597
9598 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9599 PC_REGNUM.
9600
9601 2004-02-28 Andrew Cagney <cagney@redhat.com>
9602
9603 * NEWS: Refer to GDB 6.1.
9604 * README: Refer to GDB 6.1.
9605 * PROBLEMS: Refer to GDB 6.1.
9606
9607 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
9608
9609 * thread-db.c (disable_thread_signals): Remove unused function.
9610
9611 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9612
9613 * amd64-nat.c: Include "gdb_string.h".
9614 (amd64_collect_native_gregset): Zero-extend the 32-bit
9615 general-purpose registers and %eip.
9616
9617 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9618 * amd64-tdep.c (amd64_collect_fxsave): New function.
9619 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9620
9621 * i387-tdep.h: Update copyright year.
9622 (i387_collect_fxsave): New prototype.
9623 * i387-tdep.c: Update copyright year.
9624 (i387_collect_fxsave): New function containing most of the code
9625 from i387_fill_fxsave.
9626 (i387_fill_fxsave): Call i387_collect_fxsave.
9627
9628 2004-02-28 Andrew Cagney <cagney@redhat.com>
9629
9630 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9631 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9632
9633 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9634
9635 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9636
9637 2004-02-28 Andrew Cagney <cagney@redhat.com>
9638
9639 * utils.c: Use "", instead of <>, to include readline.
9640 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9641 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9642 * source.c, solib.c, exec.c, event-top.c: Ditto.
9643 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9644 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9645 * Makefile.in: Update all dependencies.
9646 (readline_tilde_h, readline_history_h): Define.
9647 (readline_headers): Delete.
9648
9649 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9650
9651 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9652 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9653 "config/i386/tm-lx64.h".
9654
9655 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9656 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9657 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9658
9659 2004-02-28 Andrew Cagney <cagney@redhat.com>
9660
9661 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9662
9663 * breakpoint.c (_initialize_breakpoint): Use
9664 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9665 Add help to show command.
9666
9667 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9668
9669 * i386-nat.c: Reformat to be closer to coding standards.
9670 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9671 `retval'. Make variables `align' and `size' local to while-loop.
9672 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9673 (_initialize_i386_nat): New prototype.
9674
9675 * tui/tui.c: Include <readline/readline.h> instead of
9676 "readline/readline.h". Include it after <term.h> and
9677 "gdb_curses.h".
9678
9679 2004-02-27 Andrew Cagney <cagney@redhat.com>
9680
9681 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9682 the new frame unwind code.
9683 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9684 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9685 PCOQ_HEAD_REGNUM.
9686
9687 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9688 "return_value" and "push_dummy_call".
9689 (hppa32_use_struct_convention): Delete unused function.
9690 (hppa32_store_return_value): Delete unused function.
9691 (hppa32_extract_return_value): Delete unused function.
9692 (hppa32_stack_align): Delete function.
9693
9694 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
9695
9696 * coffread.c (enter_linenos): Don't let rawptr reference memory
9697 outside linetab[]'s limits.
9698
9699 2004-02-27 Andrew Cagney <cagney@redhat.com>
9700
9701 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9702 inferior stack space - the stack needs to grow upwards.
9703 (hppa32_frame_align): New function.
9704 (hppa64_frame_align): Replace hppa_frame_align.
9705 (hppa_gdbarch_init): Update.
9706
9707 2004-02-26 Orjan Friberg <orjanf@axis.com>
9708
9709 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9710 (dwarf2-frame.h): Include.
9711 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9712 Remove static variables related to ABI setting.
9713 (struct gdbarch_tdep): Remove cris_abi member.
9714 (struct frame_extra_info): Remove.
9715 (cris_unwind_cache, stack_item): New structs.
9716 (cris_frame_unwind, cris_frame_base): New variables.
9717 (push_stack_item, pop_stack_item)
9718 (cris_frame_unwind_cache, cris_frame_this_id)
9719 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9720 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9721 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9722 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9723 (cris_reg_struct_has_addr): New functions.
9724 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
9725 (cris_frame_saved_pc, cris_saved_pc_after_call,
9726 (cris_store_struct_return, cris_frameless_function_invocation)
9727 (cris_pop_frame, cris_skip_prologue_main)
9728 (cris_abi_original_store_return_value)
9729 (cris_abi_v2_store_return_value)
9730 (cris_abi_original_extract_return_value)
9731 (cris_abi_v2_extract_return_value)
9732 (cris_abi_original_reg_struct_has_addr)
9733 (cris_abi_v2_reg_struct_has_addr)
9734 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9735 (cris_push_return_address, cris_abi_update): Remove.
9736 (_initialize_cris_tdep): Remove ABI command.
9737 (cris_dump_tdep): Ditto.
9738 (cris_gdbarch_init): Remove ABI command.
9739 Set store_return_value, extract_return_value, push_dummy_code,
9740 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9741 frame_unwind_append_sniffer, frame_base_set_default.
9742 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9743 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9744 sizeof_call_dummy_words, get_saved_register, push_return_address,
9745 pop_frame, store_struct_return, frame_init_saved_regs,
9746 init_extra_frame_info, frameless_function_invocation, frame_chain,
9747 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9748 dummy_write_sp.
9749
9750 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9751
9752 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9753 * valprint.c (print_hex_chars): Change from static to external.
9754 (print_char_chars): New function.
9755 * printcmd.c (print_scalar_formatted): For integer and enum types
9756 that are longer than LONGEST, perform processing via appropriate
9757 print_*_chars routines.
9758
9759 2004-02-26 Andrew Cagney <cagney@redhat.com>
9760
9761 * Makefile.in: Update dependencies.
9762 Changes from Ulrich Weigand,
9763 * s390-tdep.c: Include "dwarf2-frame.h".
9764 (s390_dwarf2_frame_init_reg): New function.
9765 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9766 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9767
9768 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9769
9770 * breakpoint.c (pending_break_support): New setting variable.
9771 (break_command_1): Account for pending_break_support setting
9772 when creating pending breakpoints.
9773 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9774 (_initialize_breakpoint): Add "set breakpoint pending" and
9775 "show breakpoint pending" commands.
9776
9777 2004-02-26 Andrew Cagney <cagney@redhat.com>
9778
9779 Fix PR i18n/1570.
9780 * charset.c (backslashable, backslashed, represented): Remove 'e'
9781 from list of escaped characters, not part of ISO-C.
9782
9783 2004-02-25 J. Brobecker <brobecker@gnat.com>
9784
9785 From Peter Schauer <schauer@pdf.de>:
9786 * tui/tui.c: Move system header includes after local includes.
9787 Fixes a build failure on solaris systems.
9788
9789 2004-02-25 J. Brobecker <brobecker@gnat.com>
9790
9791 * configure.in: Refine the previous change.
9792 * configure: Regenerate.
9793
9794 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9795
9796 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9797 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9798 "amd64-tdep.h" instead of "x86-64-tdep.h".
9799 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9800 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9801 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9802 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9803 and "x86-64-tdep.c".
9804 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9805 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9806 and "x86-64-tdep.c".
9807 * amd64bsd-nat.c: Update copyright year.
9808 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9809 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9810 "x86-64-tdep.h".
9811 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9812 "x86-64-tdep.h".
9813 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9814 "x86-64-tdep.h".
9815 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9816 "x86-64-tdep.h".
9817 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9818 "x86-64-tdep.h".
9819 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9820 "x86-64-tdep.h".
9821 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9822 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9823 * Makefile.in (amd64_linux_tdep_h): Renamed from
9824 x86_64_linux_tdep_h.
9825 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9826 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9827 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9828 (amd64obsd-tdep.o): Update dependencies.
9829 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9830 dependencies.
9831 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9832 dependencies.
9833 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9834 amd64-linux-nat.c amd64-linux-tdep.c.
9835 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9836 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9837 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9838 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9839 amd64-tdep.o and amd64-linux-tdep.o.
9840 (TM_FILE): Set to tm-linux64.h.
9841 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9842 (NAT_FILE): Set to nm-linux64.h.
9843 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9844 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9845 amd64-tdep.o.
9846 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9847 amd64-tdep.o.
9848 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9849 amd64-tdep.o.
9850
9851 2004-02-25 Roland McGrath <roland@redhat.com>
9852
9853 * remote.c (remote_protocol_qPart_auxv): New variable.
9854 (init_all_packet_configs): Initialize it.
9855 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9856 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9857 (show_remote_cmd): Call it.
9858 (_initialize_remote): Initialize commands.
9859 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9860 service TARGET_OBJECT_AUXV requests.
9861
9862 2004-02-25 J. Brobecker <brobecker@gnat.com>
9863
9864 * configure.in: Make sure that the wborder function is available.
9865 Otherwise, search for it in the cur_colr library.
9866 * configure: Regenerate.
9867
9868 2004-02-25 Andrew Cagney <cagney@redhat.com>
9869
9870 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9871
9872 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9873
9874 * config/i386/tm-x86-64linux.h: Tweak comments.
9875
9876 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
9877
9878 * MAINTAINERS: Add self to write-after-approval list.
9879
9880 2004-02-25 Andrew Cagney <cagney@redhat.com>
9881
9882 PR cli/1566. Problem found, and fix suggested by David Allan.
9883 * cli/cli-script.c (execute_control_command): Unconditionally
9884 install a cleanup. Default "ret" to "invalid_control". Use
9885 "break" instead of "return" to escape from the switch.
9886
9887 2004-02-24 J. Brobecker <brobecker@gnat.com>
9888
9889 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9890 with the lines macro defined in term.h on AiX.
9891 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9892 a collision with the label_width macro defined in term.h on AiX.
9893
9894 2004-02-23 David Mosberger <davidm@hpl.hp.com>
9895
9896 Committed by Kevin Buettner <kevinb@redhat.com>.
9897
9898 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9899 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9900 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9901 instead of ia64_write_pc().
9902 * ia64-linux-tdep.c (regcache.h): Include.
9903 (ia64_linux_write_pc): New function.
9904
9905 2004-02-23 Roland McGrath <roland@redhat.com>
9906
9907 * auxv.c (info_auxv_command): Fix typos in error messages.
9908
9909 2004-02-23 Mark Kettenis <kettenis@gnu.org>
9910
9911 * x86-64-tdep.h: Tweak comment.
9912 (enum amd64_regnum): New.
9913 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9914 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9915 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9916 (X86_64_XMM1_REGNUM): Removed.
9917 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9918 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9919 prototypes for renamed functions.
9920 * x86-64-tdep.c: Fix typo.
9921 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9922 register numbers.
9923 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9924 Use constants from `enum amd64_regnum' for register numbers.
9925 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9926 (amd64_analyze_prologue, amd64_frame_cache,
9927 amd64_sigtramp_frame_cache): Use constants from `enum
9928 amd64_regnum' for register numbers.
9929 (amd64_supply_fpregset): Adjust for renamed functions.
9930 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9931 `enum amd64_regnum' for register numbers.
9932 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9933 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9934 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9935 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9936 (amd64_linux_fill_gregset): Adjust for renamed macros.
9937 (fetch_core_registers): Adjust for renamed functions.
9938 (amd64_linux_init_abi): Adjust for renamed functions.
9939 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9940 renamed functions.
9941 * amd64-nat.c: Adjust for renamed macros.
9942 * amd64bsd-nat.c (fetch_inferior_registers)
9943 (store_inferior_registers): Use constants from `enum amd64_regnum'
9944 for register numbers. Adjust for renamed variables.
9945 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9946 renamed variables.
9947 (_initialize_amd64fbsd_nat): Use constants from `enum
9948 amd64_regnum' for register numbers.
9949 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9950 `enum amd64_regnum' for register numbers.
9951 (amd64fbsd_init_abi): Adjust for renamed functions.
9952 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9953 `enum amd64_regnum' for register numbers.
9954 (amd64nbsd_init_abi): Adjust for renamed functions.
9955 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9956 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9957 `enum amd64_regnum' for register numbers.
9958 (amd64obsd_init_abi): Adjust for renamed functions.
9959 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9960
9961 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9962
9963 * breakpoint.c (print_one_breakpoint): Do not output spaces
9964 after printing <PENDING> for a pending breakpoint.
9965
9966 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9967
9968 * printcmd.c (print_scalar_formatted): Initialize val_long
9969 to remove compiler warning message.
9970
9971 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9972
9973 * defs.h (nquery, yquery): New prototypes.
9974 * breakpoint.c (break_command_1): Use new nquery interface.
9975 * utils.c (defaulted_query, nquery, yquery): New functions.
9976
9977 2004-02-23 Andrew Cagney <cagney@redhat.com>
9978
9979 * hppa-tdep.c (hppa_frame_align): New function.
9980 (hppa32_push_dummy_call): New function.
9981 (hppa64_push_dummy_call): New function.
9982 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9983 disabled.
9984
9985 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9986 FIX_CALL_DUMMY when push_dummy_call is available.
9987 (call_function_by_hand, push_dummy_code): Ditto.
9988
9989 2004-02-22 Andrew Cagney <cagney@redhat.com>
9990
9991 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9992 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9993 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9994 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9995 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9996 call_dummy_location to ON_STACK.
9997
9998 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9999
10000 * x86-64-linux-tdep.c: Tweak comment.
10001 (amd64_linux_supply_gregset): Renamed from
10002 x86_64_linux_supply_gresget.
10003 (amd64_linux_fill_gregset): Renamed from
10004 x86_64_linux_fill_gregset.
10005 (fetch_core_registers): Adjust for renamed functions.
10006 (amd64_core_fns): Renamed from x86_64_core_fns.
10007 (amd64_linux_sigtramp_start): Renamed from
10008 x86_64_linux_sigtramp_start.
10009 (amd64_linux_pc_in_sigtramp): Renamed from
10010 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10011 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10012 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10013 (amd64_linux_sigcontext_addr): Renamed from
10014 x86_64_linux_sigcontext_addr.
10015 (amd64_linux_sc_reg_offset): Renamed from
10016 x86_64_linux_sc_reg_offset.
10017 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10018 Adjust for renamed functions and variables.
10019 (_initialize_amd64_linux_tdep): Renamed from
10020 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10021 variables.
10022 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10023 Adjust for renamed functions.
10024
10025 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10026 from x86_64_linux_gregset64_reg_offset.
10027 (amd64_linux_gregset32_reg_offset): Rename from
10028 x86_64_linux_gregset64_reg_offset.
10029 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10030 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10031 (amd64_linux_dr_set_control): Renamed from
10032 x86_64_linux_dr_set_control. Adjust for renamed functions.
10033 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10034 Adjust for renamed functions.
10035 (amd64_linux_dr_reset_addr): Renamed from
10036 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10037 (amd64_linux_dr_get_status): Renamed from
10038 x86_64_linux_dr_get_status. Adjust for renamed functions.
10039 (_initialize_amd64_linux_nat): Renamed from
10040 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10041 functions.
10042 * config/i386/nm-x86-64linux.h: Update copyright year.
10043 Adjust for renamed functions.
10044
10045 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10046 amd64fbsd_sigtramp_start.
10047 (amd64fbsd_sigtramp_end_addr): Renamed from
10048 amd64fbsd_sigtramp_end.
10049 (amd64fbsd_init_abi): Adjust for renamed variables.
10050 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10051 variables.
10052 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10053 amd64fbsd_sigtramp_start.
10054 (amd64fbsd_sigtramp_end_addr): Renamed from
10055 amd64fbsd_sigtramp_end.
10056
10057 2004-02-22 Andrew Cagney <cagney@redhat.com>
10058
10059 * hppa-tdep.c (hppa32_return_value): New function.
10060 (hppa64_return_value): New function.
10061 (hppa_gdbarch_init): Set return_value; keep disabled.
10062
10063 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10064 struct-return and inferior function call methods.
10065
10066 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10067 "frame-base.h".
10068 (struct hppa_frame_cache): Define.
10069 (hppa_frame_cache, hppa_frame_this_id): New functions.
10070 (hppa_frame_prev_register): New function.
10071 (hppa_frame_unwind, hppa_frame_base): New variables.
10072 (hppa_frame_unwind_sniffer): New function.
10073 (hppa_frame_base_address, hppa_unwind_pc): New function.
10074 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10075 sniffer, and frame base sniffer; keep disabled.
10076 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10077 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10078
10079 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10080 to predicates for "seriously old code".
10081
10082 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10083 runtime if(0).
10084
10085 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10086 unsigned.
10087 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
10088
10089 * config/pa/tm-hppa.h: Update copyright.
10090 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10091 (deprecated_init_frame_pc_default): Delete declaration.
10092 (hppa_frame_init_saved_regs): Delete declaration.
10093 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10094 * hppa-tdep.c: Include "arch-utils.h".
10095 (hppa_gdbarch_init): Set deprecated init_frame_pc
10096 and deprecated frame_init_saved_regs.
10097 (hppa_frame_init_saved_regs): Make static.
10098
10099 2004-02-22 Mark Kettenis <kettenis@gnu.org>
10100
10101 Remove old 386BSD support.
10102 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
10103 * configure.host: Remove i[34567]86-*-bsd*.
10104 * configure.tgt: Remove i[34567]86-*-bsd*.
10105 * i386b-nat.c: Removed.
10106 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
10107 (i386b-nat.o): Remove dependencies.
10108
10109 * config/i386/i386bsd.mh: Removed.
10110 * config/i386/i386bsd.mt: Removed.
10111 * config/i386/nm-i386bsd.h: Removed.
10112 * config/i386/tm-i386bsd.h: Removed.
10113 * config/i386/xm-i386bsd.h: Removed.
10114
10115 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10116
10117 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10118 (amd64fbsd_init_abi): Set link map offsets.
10119 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10120 (amd64nbsd_init_abi): Set link map offsets.
10121 * amd64obsd-tdep.c: Include "solib-svr4.h".
10122 (amd64obsd_init_abi): Set link map offsets.
10123 * i386fbsd-tdep.c: Include "solib-svr4.h".
10124 (i386fbsd_init_abi): Set link map offsets.
10125 * i386nbsd-tdep.c: Include "solib-svr4.h".
10126 (i386nbsdelf_init_abi): Set link map offsets.
10127 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10128 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10129 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10130 solib-legacy.o and core-aout.o. Reformat.
10131 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10132 solib-svr4.o, solib-legacy.o. Reformat.
10133 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10134 * config/i386/nbsdelf.mh: Reformat.
10135 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10136 solib-svr4.o, solib-legacy.o and corelow.o.
10137 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10138 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10139 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10140 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10141 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10142 (TM_FILE): Set to tm-fbsd.h.
10143 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10144 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10145 solib-svr4.o.
10146 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10147 solib-svr4.o.
10148 (TM_FILE): Set to nm-nbsd.h.
10149 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10150 Simplify shared library support. Don't include "elf/common.h".
10151 (SVR4_SHARED_LIBS): Don't define.
10152 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10153 "solib.h".
10154 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10155 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10156 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10157 Don't include "i386/tm-i386.h". Include "solib.h".
10158 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10159 Don't include "i386/tm-i386.h".
10160 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10161 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10162 Include "i386/xm-i386.h".
10163 (HOST_LONG_DOUBLE_FORMAT): Remove.
10164
10165 Fix OpenBSD/i386 sigtramp recognition.
10166 * i386-tdep.h: Update copyright year.
10167 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10168 (i386bsd_sigtramp_end): New prototypes.
10169 (i386fbsd_sigtramp_start_addr): Renamed from
10170 i386fbsd_sigtramp_start.
10171 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10172 (i386obsd_sigtramp_start_addr): Renamed from
10173 i386obsd_sigtramp_start.
10174 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10175 * i386bsd-tdep.c: Update copyright year.
10176 (i386bsd_pc_in_sigtramp): Make public.
10177 * i386fbsd-nat.c: Update copyright year.
10178 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10179 * i386fbsd-tdep.c: Update copyright year.
10180 (i386fbsd_sigtramp_start_addr): Renamed from
10181 i386fbsd_sigtramp_start.
10182 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10183 (i386fbsdaout_init_abi): Adjust for renamed variables.
10184 * i386obsd-nat.c: Update copyright year.
10185 (_initialize_i386obsd_nat): Adjust for renamed variables.
10186 * i386obsd-tdep.c: Include "target.h".
10187 (i386obsd_page_size): New variable.
10188 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10189 (i386obsd_sigtramp_end): New functions.
10190 (i386obsd_sigtramp_start_addr): Renamed from
10191 i386obsd_sigtramp_start.
10192 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10193 (i386obsd_init_abi): Adjust for renamed variables. Set
10194 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10195 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10196
10197 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10198 trampoline change in OpenBSD kernel.
10199
10200 * amd64-nat.c: Update copyright year.
10201 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10202 architecture from REGCACHE.
10203
10204 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10205 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10206
10207 2004-02-21 Mark Kettenis <kettenis@gnu.org>
10208
10209 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10210 i[34567]86-*-openbsd3.[0-3].
10211 * config/i386/obsdaout.mh: New file.
10212
10213 * config/i386/obsd.mh (MH_FLAGS): Remove.
10214
10215 Fix PR build/1549.
10216 * i386obsd-tdep.c: Update copyright years. Include
10217 "solib-svr4.h".
10218 (i386obsd_init_abi): Don't set regset_from_core_section here.
10219 (i386obsd_aout_init_abi): New function. Set
10220 regset_from_core_section here.
10221 (i386obsd_elf_init_abi): New function.
10222 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10223 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10224 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10225 (TM_FILE): Set to tm-nbsd.h.
10226
10227 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10228 solib-sunos.o.
10229
10230 * solib-svr4.h: Update copyright year.
10231 (svr4_ilp32_fetch_link_map_offsets)
10232 (svr4_lp64_fetch_link_map_offsets): New prototype.
10233 * solib-svr4.c: Update copyright year.
10234 (svr4_ilp32_fetch_link_map_offsets)
10235 (svr4_lp64_fetch_link_map_offsets): New function.
10236
10237 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
10238
10239 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10240 to the partial symbol table.
10241
10242 2004-02-20 J. brobecker <brobecker@gnat.com>
10243
10244 * PROBLEMS: Add description of problem documented under gdb/1560.
10245
10246 2004-02-20 Mark Kettenis <kettenis@gnu.org>
10247
10248 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10249 comments.
10250 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10251 functions.
10252 (amd64obsd_init_abi): Reorder initializations. Use
10253 amd64obsd_r_reg_offset to initialize the general-purpose register
10254 set details. Set regset_from_core_section.
10255 (_initialize_amd64obsd_tdep): Rename from
10256 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10257 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10258 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10259
10260 * NEWS (New native configurations): Mention OpenBSD/alpha.
10261 * configure.tgt: Add alpha*-*-openbsd*.
10262 * configure.host: Add alpha*-*-openbsd*.
10263 * alphanbsd-tdep.c: Update copyright year.
10264 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10265
10266 2004-02-20 Andrew Cagney <cagney@redhat.com>
10267
10268 Fix PR tdep/1372.
10269 * configure.tgt: Delete target "none-*-*".
10270 * configure.host: Delete host "none-*-*".
10271 * config/none/none.mh: Delete file.
10272 * config/none/none.mt: Delete file.
10273 * config/none/xm-none.h: Delete file.
10274 * config/none/tm-none.h: Delete file.
10275 * config/none/nm-none.h: Delete file.
10276
10277 2004-02-19 Fred Fish <fnf@redhat.com>
10278
10279 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10280 cache->uses_fp prior to setting it.
10281
10282 2004-02-19 Fred Fish <fnf@redhat.com>
10283
10284 Fix for PR breakpoint/1558.
10285 * sh-tdep.c (IS_JSR): New macro.
10286 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10287
10288 2004-02-19 Jim Blandy <jimb@redhat.com>
10289
10290 * findvar.c (value_from_register): Doc fix.
10291
10292 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10293
10294 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10295 type being greater than sizeof of host's LONGEST. Always use
10296 unpack_long() unless format 'f' chosen.
10297
10298 2004-02-19 Joel Brobecker <brobecker@gnat.com>
10299
10300 Committed by Elena Zannoni <ezannoni@redhat.com>
10301
10302 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10303 contains a symbol wich is the best, non-exact match for the given
10304 pc. Update comments.
10305
10306 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
10307
10308 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10309 macro, which was part of the now removed Mach 3 port.
10310 * utils.c (request_quit): Ditto.
10311
10312 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10313
10314 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10315 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10316
10317 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10318
10319 Committed by Mark Kettenis <kettenis@gnu.org>.
10320
10321 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10322 Define.
10323
10324 2004-02-18 Andrew Cagney <cagney@redhat.com>
10325
10326 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10327 CONFIG_INSTALL and CONFIG_UNINSTALL.
10328 * configure: Re-generate.
10329 * interps.h (INTERP_TUI): Define.
10330 * Makefile.in: Update dependencies.
10331 (TUI): New macro.
10332 (tui-main.o): Specify dependencies.
10333 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10334 * tui/tui-main.c: New file.
10335
10336 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10337
10338 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10339 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10340 dependencies.
10341 * configure.host: Add x86_64-*-openbsd*.
10342 * configure.tgt: Add x86_64-*-openbsd*.
10343 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10344
10345 * tui/tui.c: Don't include <malloc.h>.
10346
10347 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10348 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10349 amd64nbsd-tdep.c.
10350
10351 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
10352 static. Remove extraneous whitespace.
10353 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10354 static.
10355
10356 2004-02-17 Jim Blandy <jimb@redhat.com>
10357
10358 * findvar.c (value_from_register): Doc fix.
10359
10360 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10361
10362 Committed by Jim Blandy <jimb@redhat.com>.
10363
10364 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
10365 CORE_ADDR as type for selectors. Correct types for GNU run time
10366 message lookup function to use double indirection.
10367 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10368 * objc-lang.h (lookup_child_selector): Adapt prototype.
10369
10370 * s390-nat.c (SUBOFF): New macro.
10371 (supply_gregset, fill_gregset): Use it to handle debugging
10372 of 32-bit exectuables running under a 64-bit kernel.
10373 * s390-tdep.c: Include "solib-svr4.h".
10374 (s390_svr4_fetch_link_map_offset): New function.
10375 (s390x_svr_fetch_link_map_offset): Likewise.
10376 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10377 * Makefile.in (s390-tdep.o): Update dependencies.
10378
10379 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10380 "frame-unwind.h".
10381 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10382 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10383 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10384 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10385 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10386 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
10387 S390_SIGNAL_FRAMESIZE,
10388 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10389 (struct frame_extra_info): Remove.
10390 (s390_memset_extra_info): Remove.
10391 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10392 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10393 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
10394 (is_rse): Renamed to ...
10395 (is_rsy): ... this. Support long displacements.
10396 (is_rxe): Renamed to ...
10397 (is_rxy): ... this. Support long displacements.
10398 (compute_x_addr): Support long displacements.
10399 (struct s390_prologue_data): New data type.
10400 (s390_on_stack): Change API to use struct s390_prologue_data.
10401 (s390_store): Reimplement.
10402 (s390_load): New function.
10403 (s390_get_signal_frame_info): Remove.
10404 (s390_get_frame_info): Remove, replace by ...
10405 (s390_analyze_prolog): ... this new function.
10406 (s390_check_function_end): Remove.
10407 (s390_function_start): Remove.
10408 (s390_frameless_function_invokation): Remove.
10409 (s390_is_sigreturn): Remove.
10410 (s390_init_frame_pc_first): Remove.
10411 (s390_init_frame_extra_info): Remove.
10412 (s390_frame_init_saved_regs): Remove.
10413 (s390_frame_saved_pc_nofix): Remove.
10414 (s390_frame_saved_pc): Remove.
10415 (s390_frame_chain): Remove.
10416 (s390_fp_regnum, s390_read_fp): Remove.
10417 (s390_pop_frame_regular, s390_pop_frame): Remove.
10418 (s390_saved_pc_after_call): Remove.
10419 (s390_skip_prologue): Reimplement.
10420 (s390_in_function_epilogue_p): Support long displacements.
10421 (struct s390_unwind_cache): New data structure.
10422 (s390_frame_unwind_cache): New function.
10423 (s390_prologue_frame_unwind_cache): Likewise.
10424 (s390_backchain_frame_unwind_cache): Likewise.
10425 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10426 (s390_frame_unwind): Define.
10427 (s390_frame_sniffer): New function.
10428 (struct s390_pltstub_unwind_cache): New data structure.
10429 (s390_pltstub_frame_unwind_cache): New function.
10430 (s390_pltstub_frame_this_id): Likewise.
10431 (s390_pltstub_frame_prev_register): Likewise.
10432 (s390_pltstub_frame_unwind): Define.
10433 (s390_pltstub_frame_sniffer): New function.
10434 (struct s390_sigtramp_unwind_cache): New data structure.
10435 (s390_sigtramp_frame_unwind_cache): New function.
10436 (s390_sigtramp_frame_this_id): Likewise.
10437 (s390_sigtramp_frame_prev_register): Likewise.
10438 (s390_sigtramp_frame_unwind): Define.
10439 (s390_sigtramp_frame_sniffer): New function.
10440 (s390_frame_base_address, s390_local_base_address): New functions.
10441 (s390_frame_base): Define.
10442 (s390_unwind_pc, s390_unwind_sp): New function.
10443 (s390_push_dummy_call): Use new frame base location.
10444 (s390_unwind_dummy_id): Likewise.
10445 (s390_gdbarch_init): Remove calls to:
10446 set_gdbarch_frameless_function_invocation,
10447 set_gdbarch_deprecated_init_frame_pc,
10448 set_gdbarch_deprecated_frame_chain,
10449 set_gdbarch_deprecated_frame_init_saved_regs,
10450 set_gdbarch_deprecated_pop_frame,
10451 set_gdbarch_deprecated_init_extra_frame_info,
10452 set_gdbarch_deprecated_init_frame_pc_first,
10453 set_gdbarch_deprecated_target_read_fp,
10454 set_gdbarch_deprecated_frame_saved_pc,
10455 set_gdbarch_deprecated_saved_pc_after_call,
10456 set_gdbarch_deprecated_fp_regnum.
10457 Add calls to:
10458 set_gdbarch_in_solib_call_trampoline,
10459 frame_unwind_append_sniffer,
10460 frame_base_set_default,
10461 set_gdbarch_unwind_pc,
10462 set_gdbarch_unwind_sp.
10463 * Makefile.in (s390-tdep.o): Update dependencies.
10464
10465 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10466 (S390_STACK_FRAME_OVERHEAD): Remove.
10467 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10468 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10469 (s390_promote_integer_argument): Remove.
10470 (s390_cannot_extract_struct_value_address): Remove.
10471 (s390_use_struct_convention, s390_store_struct_return): Remove.
10472 (s390_extract_return_value, s390_store_return_value): Remove.
10473 (s390_return_value_convention, s390_return_value): New functions.
10474 (is_float_singleton): Handle typedefs.
10475 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
10476 Remove, replace by ...
10477 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10478 s390_function_arg_integer): ... these new functions.
10479 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10480 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10481 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10482 Fill in tdep->abi.
10483 Remove calls to:
10484 set_gdbarch_deprecated_store_struct_return,
10485 set_gdbarch_deprecated_extract_return_value,
10486 set_gdbarch_deprecated_store_return_value,
10487 set_gdbarch_use_struct_convention,
10488 set_gdbarch_extract_struct_value_address,
10489 set_gdbarch_deprecated_pc_in_call_dummy,
10490 set_gdbarch_deprecated_push_arguments,
10491 set_gdbarch_deprecated_save_dummy_frame_tos,
10492 set_gdbarch_deprecated_push_return_address,
10493 set_gdbarch_deprecated_sizeof_call_dummy_words,
10494 set_gdbarch_deprecated_call_dummy_words,
10495 set_gdbarch_deprecated_dummy_write_sp.
10496 Add calls to:
10497 set_gdbarch_push_dummy_call,
10498 set_gdbarch_unwind_dummy_id,
10499 set_gdbarch_return_value.
10500
10501 * config/s390/nm-linux.h: Update comments.
10502 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10503 (STOPPED_BY_WATCHPOINT): Redefine.
10504 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10505 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10506 (s390_stopped_by_watchpoint): Likewise.
10507 (watch_area_cnt): Remove.
10508 * s390-nat.c: Update comments.
10509 (watch_area): Remove typedef.
10510 Global replace watch_area by struct watch_area.
10511 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
10512 (s390_stopped_by_watchpoint): Remove pid argument,
10513 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10514 (s390_fix_watch_points): Remove pid argument,
10515 use s390_inferior_tid. Recompute area spanned by watchpoints.
10516 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10517 argument. Reimplement.
10518
10519 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10520 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10521 (FETCH_INFERIOR_REGISTERS): Define.
10522 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
10523 core-regset.o.
10524 * config/s390/s390x.mt: Remove.
10525 * config/s390/tm-s390.h: Remove.
10526 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10527 (TARGET_ELF64): Remove.
10528 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10529 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10530 s390*-*-* case; always set gdb_target to s390.
10531 * regformats/reg-s390.dat: Remove control registers.
10532 * regformats/reg-s390x.dat: Likewise.
10533 * s390-tdep.h: New file.
10534 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
10535 Include "inferior.h" and "s390-tdep.h".
10536 Remove private definition of offsetof.
10537 (s390_register_u_addr): Remove.
10538 (regmap_gregset, regmap_fpregset): Define.
10539 (supply_gregset, fill_gregset): Reimplement.
10540 (supply_fpregset, fill_fpregset): Likewise.
10541 (s390_inferior_tid): New function.
10542 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10543 (fetch_inferior_registers, store_inferior_registers): Likewise.
10544 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10545 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10546 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10547 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10548 (struct gdbarch_tdep): Define.
10549 (struct s390_register_info): Define.
10550 (s390_register_info): New variable.
10551 (s390_register_name): Reimplement.
10552 (s390_register_type): New function.
10553 (s390_register_raw_size, s390x_register_raw_size): Remove.
10554 (s390_cannot_fetch_register): Remove.
10555 (s390_register_byte): Remove.
10556 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10557 (s390_dwarf_regmap): New variable.
10558 (s390_dwarf_reg_to_regnum): New function.
10559 (s390_stab_reg_to_regnum): Remove.
10560 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10561 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10562 (s390_convert_register_p): Likewise.
10563 (s390_register_to_value, s390_value_to_register): Likewise.
10564 (s390_register_reggroup_p): Likewise.
10565 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10566 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10567 (s390_supply_regset, s390_regset_from_core_section): New functions.
10568 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10569 (S390_FPR_SIZE): Likewise.
10570 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10571 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10572 (S390_NUM_GPRS): Move here from tm-s390.h.
10573 (S390_NUM_FPRS): Likewise.
10574 (s390_in_function_epilogue_p): New function.
10575 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10576 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10577 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10578 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10579 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10580 Remove calls to:
10581 set_gdbarch_deprecated_max_register_raw_size,
10582 set_gdbarch_deprecated_max_register_virtual_size,
10583 set_gdbarch_deprecated_register_byte,
10584 set_gdbarch_cannot_fetch_register,
10585 set_gdbarch_cannot_store_register,
10586 set_gdbarch_deprecated_register_size,
10587 set_gdbarch_deprecated_register_raw_size,
10588 set_gdbarch_deprecated_register_virtual_size,
10589 set_gdbarch_deprecated_register_virtual_type,
10590 set_gdbarch_deprecated_register_bytes.
10591 Add calls to:
10592 set_gdbarch_num_pseudo_regs,
10593 set_gdbarch_register_type,
10594 set_gdbarch_convert_register_p,
10595 set_gdbarch_register_to_value,
10596 set_gdbarch_value_to_register,
10597 set_gdbarch_register_reggroup_p,
10598 set_gdbarch_regset_from_core_section,
10599 set_gdbarch_pseudo_register_read,
10600 set_gdbarch_pseudo_register_write,
10601 set_gdbarch_in_function_epilogue_p.
10602 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10603 (s390_tdep_h): New variable.
10604
10605 2004-02-17 Jim Blandy <jimb@redhat.com>
10606
10607 * findvar.c (value_from_register): If the type has no length, just
10608 return an acceptable value --- don't report an internal error.
10609
10610 * stabsread.c (read_type): If we find any type numbers that are
10611 forward references, complain if the references aren't resolved by
10612 the time we're finished reading.
10613 (cleanup_undefined_types): Make error message more appropriate for
10614 a complaint.
10615
10616 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10617
10618 * Makefile.in (defs_h): Remove dependency on progress_h.
10619 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10620 progress.h.
10621 * main.c (captured_main): Delete use of START_PROGRESS and
10622 END_PROGRESS.
10623
10624 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10625
10626 * objfiles.c (terminate_minimal_symbol_table): Add back
10627 initialization of MSYMBOL_TYPE.
10628
10629 2004-02-17 David Mosberger <davidm@hpl.hp.com>
10630
10631 Committed by Andrew Cagney.
10632 * Makefile.in (ia64_tdep_h): New macro.
10633 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10634 (ia64-tdep.o): Likewise.
10635 * ia64-tdep.h: New file.
10636 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10637 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10638 (ia64_aix_sigcontext_register_address): Likewise.
10639 (ia64_linux_getunwind_table): Delete declaration.
10640 * ia64-linux-tdep.c: Likewise.
10641
10642 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
10643
10644 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10645 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10646 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10647
10648 2004-02-17 Andrew Cagney <cagney@redhat.com>
10649
10650 * symtab.c (skip_prologue_using_sal): New function.
10651 * symtab.h (skip_prologue_using_sal): Declare.
10652 * frv-tdep.c: Include "symtab.h".
10653 (skip_prologue_using_sal): Delete function.
10654 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10655 * rs6000-tdep.c (refine_prologue_limit): Mention
10656 skip_prologue_using_sal.
10657 * ia64-tdep.c (refine_prologue_limit): Ditto.
10658 * Makefile.in: Update dependencies.
10659
10660 2004-02-16 Andrew Cagney <cagney@redhat.com>
10661
10662 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10663 START_INFERIOR_TRAPS_EXPECTED.
10664 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10665 START_INFERIOR_TRAPS_EXPECTED.
10666 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10667 Delete macro.
10668 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10669 macro, moved to "nm-osf.h". Update copyright.
10670 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10671 update copyright.
10672
10673 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10674 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10675 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10676 frameless_look_for_prologue.
10677 * frame.h (legacy_frameless_look_for_prologue): Rename
10678 frameless_look_for_prologue.
10679 * gdbarch.h, gdbarch.c: Re-generate.
10680 * sh64-tdep.c (sh64_gdbarch_init): Update.
10681 * sh-tdep.c (sh_gdbarch_init): Update.
10682 * s390-tdep.c (s390_gdbarch_init): Update.
10683 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10684 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10685 * m68k-tdep.c (m68k_gdbarch_init): Update.
10686 (delta68_frame_args_address): Update.
10687 * m32r-tdep.c (m32r_gdbarch_init): Update.
10688 * hppa-tdep.c (hppa_gdbarch_init): Update.
10689 * h8300-tdep.c (h8300_gdbarch_init): Update.
10690 * frv-tdep.c (frv_gdbarch_init): Update.
10691 (frv_frameless_function_invocation): Update.
10692 * cris-tdep.c (cris_gdbarch_init): Update.
10693 (cris_frameless_function_invocation): Update.
10694 * avr-tdep.c (avr_gdbarch_init): Update.
10695 * arm-tdep.c (arm_gdbarch_init): Update.
10696 * stack.c (frame_info): Update, call predicate.
10697 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10698 * frame.c (legacy_get_prev_frame): Update, call predicate..
10699 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10700 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10701 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10702 invocation.
10703 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10704 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10705 * vax-tdep.c (vax_gdbarch_init): Ditto.
10706
10707 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10708 function.
10709
10710 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10711
10712 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10713 initializations.
10714
10715 2004-02-16 Andrew Cagney <cagney@redhat.com>
10716
10717 * tui/tui-windata.c: Include "gdb_string.h".
10718 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10719 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10720 * Makefile.in: Update dependencies.
10721
10722 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10723
10724 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10725 * infrun.c: Include "gdb_assert.h".
10726 (singlestep_ptid, saved_singlestep_ptid)
10727 (stepping_past_singlestep_breakpoint): New variables.
10728 (resume): Set singlestep_ptid. Check for singlestep thread
10729 hop.
10730 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10731 (handle_inferior_event): Handle singlestep thread hop.
10732
10733 2004-02-16 Andrew Cagney <cagney@redhat.com>
10734
10735 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10736 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10737 (dwarf2_frame_init_reg): Ditto.
10738
10739 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10740 suggested by Joshua Neuheisel
10741
10742 * configure.in: Always check for curses, including pdcurses.
10743 Warn, instead of error, when no curses are found. Enable TUI when
10744 curses is available.
10745 * configure: Re-generate.
10746
10747 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10748
10749 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10750 sh_sh4_register_convert_to_virtual.
10751 (sh_register_convert_to_raw): Rename from
10752 sh_sh4_register_convert_to_raw.
10753 (sh_pseudo_register_read): Accomodate above name change.
10754 (sh_pseudo_register_write): Ditto.
10755
10756 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10757
10758 * sh-tdep.c (sh_generic_register_name): Remove.
10759 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10760
10761 2004-02-15 Andrew Cagney <cagney@redhat.com>
10762
10763 * configure.in (build_warnings): Add -Wunused-function.
10764 * configure: Re-generate.
10765
10766 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10767 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10768
10769 * procfs.c (procfs_init_inferior): Assume that
10770 START_INFERIOR_TRAPS_EXPECTED is defined.
10771 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10772 * config/ns32k/tm-nbsd.h: Delete file,
10773 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10774
10775 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10776 * config/vax/tm-vax.h: Delete file.
10777
10778 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10779 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10780 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10781 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10782 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10783 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10784 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10785
10786 2004-02-15 Mark Kettenis <kettenis@gnu.org>
10787
10788 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10789 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10790 (struct dwarf2_frame_ops): New.
10791 (dwarf2_frame_default_init_reg): New function, based on
10792 dwarf2_frame_init_reg.
10793 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10794 (dwarf2_frame_init_reg): Call architecture-specific function.
10795 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10796 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10797 instead of dwarf2_frame_data.
10798 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10799 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10800
10801 2004-02-15 Andrew Cagney <cagney@redhat.com>
10802
10803 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10804 register_gdbarch_swap.
10805 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10806 * f-lang.c (_initialize_f_language): Update, use
10807 DEPRECATED_REGISTER_GDBARCH_SWAP.
10808 * remote.c (_initialize_remote): Ditto.
10809 * regcache.c (_initialize_regcache): Ditto.
10810 * parse.c (_initialize_parse): Ditto.
10811 * infrun.c (_initialize_infrun): Ditto.
10812 * mi/mi-main.c (_initialize_mi_main): Ditto.
10813 * gdbtypes.c (_initialize_gdbtypes): Ditto.
10814
10815 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10816 poking .cacheable directly.
10817 * symfile.c (symfile_bfd_open): Ditto.
10818
10819 * Makefile.in: Update all dependencies.
10820
10821 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10822 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10823 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10824 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10825 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
10826
10827 2004-02-14 Andrew Cagney <cagney@redhat.com>
10828
10829 * arch-utils.c (legacy_convert_register_p): Check
10830 DEPRECATED_REGISTER_CONVERTIBLE_P.
10831 * findvar.c (value_of_register): Ditto.
10832
10833 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10834 * gdbarch.h, gdbarch.c: Re-generate.
10835 * arch-utils.c (deprecated_register_convertible_not): Delete.
10836 * arch-utils.h (deprecated_register_convertible_not): Delete.
10837 * mi/mi-main.c (get_register): Update. Update copyright.
10838 * infcmd.c (default_print_registers_info): Update.
10839
10840 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10841 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10842 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
10843 * gdbarch.h, gdbarch.c: Re-generate.
10844 * frame.c (deprecated_get_next_frame_hack): Delete function.
10845 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10846 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10847 Update.
10848 * infcall.c (call_function_by_hand): Update.
10849
10850 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
10851
10852 * symfile.c (init_entry_point_info, entry_point_address): Move
10853 from here...
10854 * objfiles.c (init_entry_point_info, entry_point_address):..to
10855 here.
10856 * symfile.h (init_entry_point_info, entry_point_address): Remove
10857 prototypes.
10858 * objfiles.h (init_entry_point_info, entry_point_address):Add
10859 prototypes.
10860 * cris-tdep.c: Remove include of symfile.h. Add include of
10861 objfiles.h.
10862 * infcall.c: Ditto.
10863 * mcore-tdep.c: Ditto.
10864 * mn10300-tdep.c: Ditto.
10865 * sh64-tdep.c: Ditto.
10866 * v850-tdep.c: Ditto.
10867 * arm-tdep.c: Remove include of symfile.h.
10868 * blockframe.c: Ditto.
10869 * coffread.c: Ditto.
10870 * dbxread.c: Ditto.
10871 * dwarf2read.c: Ditto.
10872 * dwarfread.c: Ditto.
10873 * frv-tdep.c: Ditto.
10874 * ia64-tdep.c: Ditto.
10875 * mdebugread.c: Ditto.
10876 * mipsread.c: Ditto.
10877 * rs6000-tdep.c: Ditto.
10878 * s390-tdep.c: Ditto.
10879 * sh-tdep.c: Ditto.
10880 * xstormy16-tdep.c: Ditto.
10881 * gdbarch.sh: Remove include of symfile.h.
10882 * gdbarch.c: Regenerate.
10883 * solib-irix.c (enable_break): Use entry_point_address().
10884 Add comment about include file.
10885 * xcoffread.c: Add comment about include file.
10886 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10887 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10888 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10889 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
10890 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10891
10892 2004-02-13 Andrew Cagney <cagney@redhat.com>
10893
10894 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10895 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10896 copyright.
10897 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10898
10899 2004-02-12 Fred Fish <fnf@redhat.com>
10900
10901 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10902 set_gdbarch_store_return_value.
10903
10904 2004-02-12 Andrew Cagney <cagney@redhat.com>
10905
10906 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10907 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10908 (interrupt_query): Ditto.
10909 (ofunc): Delete unused variable.
10910 * cris-tdep.c (cris_abi): Delete unused function.
10911 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10912 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10913 (cris_get_asr_quick_shift_steps): Ditto.
10914 (cris_skip_prologue_frameless_p): Ditto.
10915 * arm-tdep.c (arm_push_return_address): Delete unused function.
10916 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10917 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10918 * s390-tdep.c (s390_function_start): Delete unused function.
10919
10920 2004-02-12 Andrew Cagney <cagney@redhat.com>
10921
10922 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10923 gdbarch.h, gdbarch.c: Re-generate.
10924 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10925 to generic_prologue_frameless_p.
10926 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10927 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10928
10929 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
10930
10931 * mips-linux-tdep.c: Include "frame.h".
10932 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10933 (mips_linux_skip_resolver): New functions.
10934 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10935 and set_gdbarch_in_solib_call_trampoline.
10936 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10937 to after set_gdbarch_in_solib_return_trampoline. Only set the
10938 solib hooks to mips16 functions if the OS ABI is unknown.
10939 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10940 including "config/tm-linux.h".
10941 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10942 * Makefile.in (mips-linux-tdep.o): Update.
10943
10944 2004-02-11 David Carlton <carlton@kealia.com>
10945
10946 * linespec.c (decode_compound): Only look for a class symbol when
10947 considering all but the rightmost component.
10948
10949 2004-02-11 Andrew Cagney <cagney@redhat.com>
10950
10951 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10952 abi code are are separatly grouped.
10953
10954 2004-02-11 Andrew Cagney <cagney@redhat.com>
10955
10956 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10957 * gdbarch.h, gdbarch.c: Re-generate.
10958 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10959 * v850-tdep.c (v850_gdbarch_init): Update.
10960 * sh64-tdep.c (sh64_gdbarch_init): Update.
10961 * sh-tdep.c (sh_gdbarch_init): Update.
10962 * s390-tdep.c (s390_gdbarch_init): Update.
10963 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10964 * mips-tdep.c (mips_gdbarch_init): Update.
10965 * mcore-tdep.c (mcore_gdbarch_init): Update.
10966 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10967 * m32r-tdep.c (m32r_gdbarch_init): Update.
10968 * ia64-tdep.c (ia64_gdbarch_init): Update.
10969 * hppa-tdep.c (hppa_gdbarch_init): Update.
10970 * h8300-tdep.c (h8300_gdbarch_init): Update.
10971 * frv-tdep.c (frv_gdbarch_init): Update.
10972 * d10v-tdep.c (d10v_gdbarch_init): Update.
10973 * cris-tdep.c (cris_gdbarch_init): Update.
10974 * avr-tdep.c (avr_gdbarch_init): Update.
10975 * arm-tdep.c (arm_gdbarch_init): Update.
10976 * alpha-tdep.c (alpha_gdbarch_init): Update.
10977
10978 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
10979
10980 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10981 comma.
10982 (sh_sh4al_dsp_register_name): Ditto.
10983
10984 2004-02-10 Andrew Cagney <cagney@redhat.com>
10985
10986 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10987 (mips_init_frame_pc_first): Delete function.
10988 (mips_frame_saved_pc): Delete function.
10989 (mips_frame_chain): Delete function.
10990 (mips_init_extra_frame_info): Delete function.
10991 (mips_xfer_register): Delete unused variable "reg".
10992 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10993 (mips_n32n64_return_value): Delete unused variable "reg".
10994 (mips_n32n64_return_value): Delete unused variable "pos".
10995 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10996 (mips_o32_return_value): Delete unused variable "pos".
10997 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10998 (mips_print_fp_register): Delete unused variable "namelen"
10999 (mips_print_fp_register): Delete unused variable "flt2"
11000 (get_frame_pointer): Delete function.
11001 (cached_proc_desc): Delete static variable.
11002 (mips_pop_frame): Delete function.
11003 (mips_find_saved_regs): Delete function.
11004 (mips_get_saved_register): Delete function.
11005 (mips_saved_pc_after_call): Delete function.
11006 (SIGFRAME_BASE): Delete macro.
11007 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11008 (SIGFRAME_PC_OFF): Delete macro.
11009 (SIGFRAME_REGSAVE_OFF): Delete macro.
11010 (mips_dump_tdep): Do not print deleted macro definitions.
11011
11012 2004-02-10 Andrew Cagney <cagney@redhat.com>
11013
11014 * Makefile.in (SFILES): Remove explictly listed tui files.
11015 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11016
11017 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
11018
11019 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11020 to use paddr functions to format ia64 addresses and long values.
11021 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11022 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11023 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11024 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11025 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11026
11027 2004-02-10 Andrew Cagney <cagney@redhat.com>
11028
11029 * defs.h: Do not include "tui.h".
11030 * gdb_curses.h: New file.
11031 * tui/tui-hooks.h: New file.
11032 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11033 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11034 (tui_initialize_io): Delete declaration.
11035 (tui_initialize_readline: Delete redundant declaration.
11036 (struct tui_point): Delete definition.
11037 * tui/tui-data.h (struct tui_point): Define.
11038 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11039 * utils.c: Include "tui/tui.h".
11040 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11041 * printcmd.c [TUI]: Include "tui/tui.h".
11042 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11043 * tui/tui-command.c: Include "gdb_curses.h".
11044 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11045 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11046 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11047 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11048 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11049 * Makefile.in: Update all dependencies.
11050 (tui_hooks_h, gdb_curses_h): Define.
11051 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11052
11053 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
11054
11055 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11056 auxf2. Add comments about some other rarely used fields.
11057
11058 2004-02-10 Andrew Cagney <cagney@redhat.com>
11059
11060 * Makefile.in (init.c): Fix script removing duplicates. Problem
11061 reported by Peter Schauer.
11062
11063 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
11064
11065 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11066 obstack_specify_allocation.
11067 * objfiles.c (allocate_objfile): Ditto.
11068 * solib-sunos.c (solib_add_common_symbols)
11069 (allocate_rt_common_objfile): Ditto.
11070 * symfile.c (reread_symbols): Ditto.
11071 * gdb_obstack.h: Add comment.
11072
11073 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
11074
11075 * linespec.c (decode_line_1, locate_first_half)
11076 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11077 commented out code.
11078
11079 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
11080
11081 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11082 obstack_free.
11083
11084 2004-02-09 Andrew Cagney <cagney@redhat.com>
11085
11086 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11087 fails, try find_pc_section. Fix PR c++/1267.
11088 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11089 instead of find_pc_mapped_section.
11090 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11091 not default to the section containing PC. Fix PR symtab/1519.
11092
11093 2004-02-09 Andrew Cagney <cagney@redhat.com>
11094
11095 * Makefile.in (mips-tdep.o): Update dependencies.
11096 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11097 "trad-frame.h".
11098 (mips_unwind_pc): Return the pseudo PC register.
11099 (mips_unwind_dummy_id): New function.
11100 (mips16_fetch_instruction): New function.
11101 (mips32_fetch_instruction): New function.
11102 (struct mips_frame_cache): Define.
11103 (mips_mdebug_frame_cache): New function.
11104 (mips_mdebug_frame_this_id): New function.
11105 (mips_mdebug_frame_prev_register): New function.
11106 (mips_mdebug_frame_unwind): Define.
11107 (mips_mdebug_frame_sniffer): New function.
11108 (mips_mdebug_frame_base_address): New function.
11109 (mips_mdebug_frame_base): Define.
11110 (mips_mdebug_frame_base_sniffer): New function.
11111 (mips_gdbarch_init): Append unwind and base sniffers. Set
11112 unwind_dummy_id.
11113
11114 2004-02-08 Andrew Cagney <cagney@redhat.com>
11115
11116 * frame.c: Print both the register number and name.
11117
11118 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11119 and a sed into a single sed. Make .c and .o patterns more robust.
11120 (OBS): Delete.
11121 (INIT_FILES): Replace OBS with COMMON_OBS.
11122 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11123
11124 2004-02-08 Mark Kettenis <kettenis@gnu.org>
11125
11126 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11127 the PT_WCOOKIE request.
11128
11129 2004-02-08 Andrew Cagney <cagney@redhat.com>
11130
11131 * mips-tdep.c (mips_unwind_pc): New function.
11132 (mips_gdbarch_init): Set mips_unwind_pc.
11133
11134 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11135 (get_frame_id): Allow the UNKNOWN_FRAME.
11136 (frame_register_unwind, get_frame_type): Ditto.
11137
11138 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11139 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11140 unwind_dummy_id indicates a legacy frame.
11141
11142 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11143 * configure: Re-generate.
11144
11145 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11146 methods.
11147
11148 2004-02-08 Andrew Cagney <cagney@redhat.com>
11149
11150 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11151 makefile macro.
11152 * configure: Re-generate.
11153 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11154 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11155 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11156 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11157 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11158 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11159 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11160 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11161 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11162 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11163
11164 2004-02-07 Andrew Cagney <cagney@redhat.com>
11165
11166 * Makefile.in: Update all dependencies.
11167
11168 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11169 * configure: Re-generate.
11170 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11171 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11172 (COMMON_OBS): Add "main.o" and "annotate.o".
11173 (ANNOTATE_OBS): Delete.
11174 (OBS): Remove ANNOTATE_OBS.
11175 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11176 CONFIG_INITS.
11177 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11178 against CONFIG_OBS and "main.o".
11179 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11180 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11181
11182 * tui/tui-command.c: Include "gdb_string.h", delete register
11183 attribute, use ISO-C function signatures.
11184 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11185 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11186 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11187 * tui/tui.c: Ditto.
11188
11189 * tui/tui-command.c: Change variable and function names to lower
11190 case.
11191 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11192 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11193 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11194 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11195 * tui/tui-winsource.c, tui/tui.c: Ditto.
11196
11197 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11198
11199 * buildsym.c (free_pending_blocks, finish_block)
11200 (record_pending_block, make_blockvector, end_symtab): Replace
11201 symbol_obstack with objfile_obstack.
11202 * coffread.c (process_coff_symbol, coff_read_struct_type)
11203 (coff_read_enum_type): Ditto.
11204 * cp-namespace.c (initialize_namespace_symtab)
11205 (check_one_possible_namespace_symbol): Ditto.
11206 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
11207 (dwarf2_symbol_mark_computed): Ditto.
11208 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11209 * elfread.c (elf_symtab_read): Ditto.
11210 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11211 (hpread_read_enum_type, hpread_read_function_type)
11212 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11213 Ditto.
11214 * jv-lang.c (get_java_class_symtab, add_class_symbol)
11215 (java_link_class_type): Ditto.
11216 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
11217 (new_symbol): Ditto.
11218 * minsyms.c (install_minimal_symbols): Ditto.
11219 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11220 (terminate_minimal_symbol_table): Replace symbol_obstack with
11221 objfile_obstack.
11222 (free_objfile): Remove freeing of symbol_obstack.
11223 * objfiles.h: Remove symbol_obstack field.
11224 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11225 objfile_obstack.
11226 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11227 symbol_obstack.
11228 (solib_add_common_symbols): Replace symbol_obstack with
11229 objfile_obstack.
11230 * somsolib.c (som_solib_add): Ditto.
11231 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11232 (common_block_start, common_block_end): Ditto.
11233 * symfile.c (reread_symbols): Remove freeing and init of
11234 symbol_obstack.
11235 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11236 * symfile.h: Update comment.
11237 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11238 stats printing.
11239 * symtab.c (symbol_set_names): Replace symbol_obstack with
11240 objfile_obstack.
11241 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11242 Update comments.
11243 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11244 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11245 objfile_obstack.
11246
11247 2004-02-07 Andrew Cagney <cagney@redhat.com>
11248
11249 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11250 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11251 fields and variables.
11252 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11253 (m_beInvisible): Delete macro.
11254 * tui/tui-data.h: Fix case case fields and variables.
11255 (m_genWinPtrIsNull): Delete macro.
11256 (tui_win_list): Rename winList.
11257 (TUI_SRC_WIN): Rename srcWin.
11258 (TUI_DISASM_WIN): Rename disassemWin.
11259 (TUI_DATA_WIN): Rename dataWin.
11260 (TUI_CMD_WIN): Rename cmdWin.
11261 (m_genWinPtrNotNull): Delete macro.
11262 (m_winPtrIsNull): Delete macro.
11263 (m_winPtrNotNull): Delete macro.
11264 (tui_win_is_source_type): Replace m_winIsSourceType
11265 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11266 (tui_win_has_locator): Replace m_hasLocator.
11267 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11268 m_setWinHighlightOff.
11269 * tui/tui-data.c: Update references.
11270 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11271 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11272 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11273 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11274 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11275 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11276 * tui/tui-winsource.c, tui/tui.c: Ditto.
11277
11278 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11279
11280 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11281 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11282 StackGhost.
11283
11284 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11285 variable `i6' to `i7'.
11286 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11287
11288 2004-02-07 Andrew Cagney <cagney@redhat.com>
11289
11290 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11291 (TuiPoint, TuiPointPtr): Ditto.
11292 (TuiStatus, TuiStatusPtr): Ditto.
11293 (TuiWinType, TuiWinTypePtr): Ditto.
11294 (struct tui_point): Rename _TuiPoint.
11295 (tui_get_low_disassembly_address): Rename
11296 tuiGetLowDisassemblyAddress.
11297 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11298 (tuiFree): Delete declaration.
11299 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11300 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11301 * tui/tui.c (tuiFree): Delete function.
11302 * cli/cli-cmds.c (disassemble_command): Update references.
11303 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11304 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11305 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11306 * tui/tui-winsource.c: Ditto.
11307
11308 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11309
11310 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11311 coffstab_build_psymtabs, elfstab_build_psymtabs)
11312 (stabsect_build_psymtabs): Replace psymbol_obstack with
11313 objfile_obstack.
11314 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11315 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11316 Ditto.
11317 * dwarfread.c (scan_compilation_units): Ditto.
11318 * elfread.c (elfstab_offset_sections): Ditto.
11319 * hppa-tdep.c (read_unwind_info): Ditto.
11320 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11321 (hpread_end_psymtab): Ditto.
11322 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11323 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11324 Ditto.
11325 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
11326 * objfiles.c (add_to_objfile_sections)
11327 (build_objfile_section_table): Ditto.
11328 (allocate_objfile): Remove init of psymbol_obstack.
11329 (free_objfile): Remove freeing of psymbol_obstack.
11330 * objfiles.h (struct objfile): Remove field
11331 psymbol_obstack. Update comments.
11332 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11333 psymbol_obstack with objfile_obstack.
11334 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11335 psymbol_obstack.
11336 * somread.c (som_symfile_offsets, init_import_symbols)
11337 (init_export_symbols): Replace psymbol_obstack with
11338 objfile_obstack.
11339 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11340 * symfile.c (default_symfile_offsets, syms_from_objfile)
11341 (reread_symbols): Remove freeing and init of psymbol_obstack.
11342 (cashier_psymtab): Update comment.
11343 * symmisc.c (print_objfile_statistics): Don't report stats for
11344 psymbol obstack.
11345 * symtab.h (struct general_symbol_info, struct partial_symtab):
11346 Update comments.
11347 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11348 (xcoff_symfile_offsets): Replace psymbol_obstack with
11349 objfile_obstack.
11350
11351 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11352
11353 * objfiles.h (struct objfile): Add objfile_obstack field.
11354 Remove type_obstack field.
11355
11356 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11357 read_structure_scope read_enumeration, new_symbol): Replace
11358 type_obstack with objfile_obstack.
11359 * dwarfread.c (struct_type, enum_type): Ditto.
11360 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
11361 (lookup_fundamental_type): Ditto.
11362 * gdbtypes.h (TYPE_ALLOC): Ditto.
11363 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11364 (hpread_read_doc_function_type, hpread_read_struct_type)
11365 (fix_static_member_physnames, hpread_read_array_type)
11366 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
11367 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
11368 (java_link_class_type): Ditto.
11369 * mdebugread.c (parse_type): Ditto.
11370 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11371 * solib-sunos.c (solib_add_common_symbols): Ditto.
11372 * stabsread.c (define_symbol, read_type, read_member_functions,
11373 read_cpp_abbrev, read_one_struct_field): Ditto.
11374 * symfile.c (reread_symbols): Ditto.
11375 * symmisc.c (print_objfile_statistics): Ditto.
11376
11377 2004-02-07 Andrew Cagney <cagney@redhat.com>
11378
11379 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11380 (tui_exec_info_content): Rename TuiExecInfoContent.
11381 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11382 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11383 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11384 (TuiList, TuiListPtr): Ditto.
11385 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11386 (TuiDataType, TuiDataTypePtr): Ditto.
11387 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11388 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11389 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11390 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11391 (TuiDataElement, TuiDataElementPtr): Ditto.
11392 (TuiWinElement, TuiWinElementPtr): Ditto.
11393 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11394 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11395 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11396 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11397 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11398 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11399 * tui/tui-command.c, tui/tui-data.c: Update references.
11400 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11401 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11402 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11403 * tui/tui-winsource.c, tui/tui.c: Ditto.
11404
11405 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11406
11407 * dwarf2-frame.h: Update copyright.
11408 (enum dwarf2_frame_reg_rule): New.
11409 (struct dwarf2_frame_state_reg): New.
11410 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11411 * dwarf2-frame.c: Update copyright.
11412 (enum dwarf2_reg_rule): Remove.
11413 (struct dwarf2_frame_state): Remove defenition of `struct
11414 dwarf2_frame_state_reg'.
11415 (read_reg): Call get_frame_arch to get the architecture instead of
11416 using CURRENT_GDBARCH.
11417 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11418 DWARF2_FRAME_.
11419 (dwarf2_frame_init_reg): New function.
11420 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11421 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11422 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11423 tags with DWARF2_FRAME_.
11424 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11425 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11426 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11427
11428 2004-02-06 Andrew Cagney <cagney@redhat.com>
11429
11430 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11431 (enum tui_data_type): Rename _TuiDataType.
11432 (struct tui_layout_def): Rename _TuiLayoutDef.
11433 (struct tui_source_element): Rename _TuiSourceElement.
11434 (struct tui_data_element): Rename _TuiDataElement.
11435 (struct tui_command_element): Rename _TuiCommandElement.
11436 (struct tui_locator_element): Rename _TuiLocatorElement.
11437 (union tui_which_element): Define.
11438 (struct tui_win_element): Rename _TuiWinElement.
11439 (struct tui_data_info): Rename _TuiDataInfo.
11440 (struct tui_source_info): Rename _TuiSourceInfo.
11441 (struct tui_command_info): Rename _TuiCommandInfo.
11442 (tui_initialize_static_data): Rename initializeStaticData.
11443 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11444 (tui_alloc_win_info): Rename allocWinInfo.
11445 (tui_init_generic_part): Rename initGenericPart.
11446 (tui_init_win_info): Rename initWinInfo.
11447 (tui_alloc_content): Rename allocContent.
11448 (tui_add_content_elements): Rename addContentElements.
11449 (tui_init_content_element): Rename initContentElement.
11450 (tui_free_window): Rename freeWindow.
11451 (tui_free_win_content): Rename freeWinContent.
11452 (tui_free_data_content): Rename freeDataContent.
11453 (tui_free_all_source_wins_content): Rename
11454 freeAllSourceWinsContent.
11455 (tui_del_window): Rename tuiDelWindow.
11456 (tui_del_data_windows): Rename tuiDelDataWindows.
11457 (tui_partial_win_by_name): Rename partialWinByName.
11458 (tui_win_name): Rename winName.
11459 (tui_current_layout): Rename currentLayout.
11460 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11461 (tui_term_height): Rename termHeight.
11462 (tui_set_term_height_to): Rename setTermHeightTo.
11463 (tui_term_width): Rename termWidth.
11464 (tui_set_term_width_to): Rename setTermWidthTo.
11465 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11466 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11467 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11468 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11469 (tui_source_windows): Rename sourceWindows.
11470 (tui_clear_source_windows): Rename clearSourceWindows.
11471 (tui_clear_source_windows_detail): Rename
11472 clearSourceWindowsDetail.
11473 (tui_clear_win_detail): Rename clearWinDetail.
11474 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11475 (tui_default_tab_len): Rename tuiDefaultTabLen.
11476 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11477 (tui_win_with_focus): Rename tuiWinWithFocus.
11478 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11479 (tui_layout_def): Rename tuiLayoutDef.
11480 (tui_win_resized): Rename tuiWinResized.
11481 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11482 (tui_next_win): Rename tuiNextWin.
11483 (tui_prev_win): Rename tuiPrevWin.
11484 (tui_add_to_source_windows): Rename addToSourceWindows.
11485 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11486 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11487 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11488 * tui/tui.c, tui/tui-data.c: Ditto.
11489 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11490 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11491
11492 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11493 (struct symtab): Declare.
11494 (tui_set_source_content): Rename tuiSetSourceContent.
11495 (tui_show_symtab_source): Rename tuiShowSource.
11496 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11497 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11498 * tui/tui-source.c: Update copyright. Update references.
11499 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11500 * tui/tui-stack.c: Update references.
11501
11502 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11503 (struct tui_win_info): Declare.
11504 (tui_scroll_forward): Rename tuiScrollForward.
11505 (tui_scroll_backward): Rename tuiScrollBackward.
11506 (tui_scroll_left): Rename tuiScrollLeft.
11507 (tui_scroll_right): Rename tuiScrollRight.
11508 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11509 (tui_resize_all): Rename tuiResizeAll.
11510 (tui_refresh_all_win): Rename tuiRefreshAll.
11511 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11512 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11513 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11514 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11515
11516 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11517 (tui_erase_data_content): Rename tuiEraseDataContent.
11518 (tui_display_all_data): Rename tuiDisplayAllData.
11519 (tui_check_data_values): Rename tuiCheckDataValues.
11520 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11521 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11522 (tui_first_data_element_no_in_line): Rename
11523 tuiFirstDataElementNoInLine.
11524 (tui_delete_data_content_windows): Rename
11525 tuiDeleteDataContentWindows.
11526 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11527 (tui_display_data_from): Rename tuiDisplayDataFrom.
11528 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11529 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11530 * tui/tui-win.c, tui/tui-regs.c: Update references.
11531 * tui/tui-layout.c, tui/tui.c: Update references.
11532
11533 * tui/tui-wingeneral.h: Update copyright.
11534 (m_allBeVisible): Delete macro.
11535 (m_allBeInvisible): Delete macro.
11536 (struct tui_gen_win_info): Declare.
11537 (struct tui_win_info): Declare.
11538 (tui_unhighlight_win): Rename unhighlightWin.
11539 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11540 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11541 (tui_make_window): Rename makeWindow.
11542 (tui_copy_win): Rename copyWin.
11543 (tui_box_win): Rename boxWin.
11544 (tui_highlight_win): Rename highlightWin.
11545 (tui_check_and_display_highlight_if_needed): Rename
11546 checkAndDisplayHighlightIfNeeded.
11547 (tui_refresh_all): Rename refreshAll.
11548 (tui_delete_win): Rename tuiDelwin.
11549 (tui_refresh_win): Rename tuiRefreshWin.
11550 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11551 (tui_make_visible, tui_make_invisible): New functions.
11552 (tui_make_all_visible, tui_make_all_invisible): New functions.
11553 (make_all_visible): Rename makeAllVisible.
11554 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11555 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11556 * tui/tui-windata.c, tui/tui-win.c: Update references.
11557 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11558 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11559
11560 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11561
11562 * proc-api.c (write_with_trace): Initialize local variable to
11563 silence compiler warning.
11564
11565 2004-02-06 Andrew Cagney <cagney@redhat.com>
11566
11567 * tui/tui-source.h: Do not include "defs.h".
11568 (struct tui_win_info): Declare.
11569 (tui_set_source_content_nil): Declare.
11570 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11571 (union tui_line_or_address): Rename _TuiLineOrAddress.
11572 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11573 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11574 (tui_update_source_window_as_is): Rename
11575 tuiUpdateSourceWindowAsIs.
11576 (tui_update_source_windows_with_addr): Rename
11577 tuiUpdateSourceWindowsWithAddr.
11578 (tui_update_source_windows_with_line): Rename
11579 tuiUpdateSourceWindowsWithLine.
11580 (tui_clear_source_content): Rename tuiClearSourceContent.
11581 (tui_erase_source_content): Rename tuiEraseSourceContent.
11582 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11583 (tui_show_source_content): Rename tuiShowSourceContent.
11584 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11585 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11586 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11587 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11588 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11589 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11590 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11591 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11592 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11593 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11594 (struct tui_win_info): Declare.
11595 * tui/tui-stack.c: Update references.
11596 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11597 * tui/tui-win.c, tui/tui-source.c: Ditto.
11598 * tui/tui.c, tui/tui-disasm.c: Ditto.
11599
11600 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11601
11602 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11603 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11604
11605 2004-02-05 Mark Kettenis <kettenis@gnu.org>
11606
11607 * infrun.c (handle_inferior_event): Allow for breakpoint
11608 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11609 and SIGEMT. Update comments.
11610 * NEWS (Revised SPARC target): Mention support for non-executable
11611 stack.
11612
11613 2004-02-04 Mark Kettenis <kettenis@gnu.org>
11614
11615 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11616 * inftarg.c: Update copyright year.
11617 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11618 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11619 (sparc_xfer_wcookie): New function.
11620 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11621 * Makefile.in (sparc-nat.o): Update dependencies.
11622 * config/sparc/nm-nbsd.h: Include "target.h".
11623 (NATIVE_XFER_WCOOKIE): New define.
11624 (sparc_xfer_wcookie): New prototype.
11625
11626 2004-02-04 Andrew Cagney <cagney@redhat.com>
11627
11628 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11629 SYSCALL_TRAP function.
11630 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11631
11632 2004-02-04 Andrew Cagney <cagney@redhat.com>
11633 Daniel Jacobowitz <drow@mvista.com>
11634
11635 * objfiles.h: Delete comments refering to inside_entry_func and
11636 DEPRECATED_FRAME_CHAIN_VALID.
11637 * defs.h (inside_entry_func): Update prototype..
11638 * blockframe.c (inside_entry_func): Rename to
11639 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11640 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11641
11642 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11643
11644 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11645 outside of #ifdef SOLIB_ADD region.
11646 (do_restore_lang_radix_cleanup): Ditto.
11647 (resolve_pending_breakpoint): Ditto.
11648
11649 2004-02-03 Andrew Cagney <cagney@redhat.com>
11650
11651 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11652 (process_note_abi_tag_sections): Delete unused function.
11653 (ia64_read_fp): Delete unused function.
11654 (gdbarch_extract_struct_value_address): Delete declaration.
11655
11656 2004-02-02 Andrew Cagney <cagney@redhat.com>
11657
11658 * vax-tdep.c (vax_frame_chain): Delete call to
11659 deprecated_inside_entry_file.
11660 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11661
11662 2004-02-02 Mark Kettenis <kettenis@gnu.org>
11663
11664 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11665 column that's "empty" or "same value" when eliminating REG_RA
11666 rules.
11667
11668 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11669
11670 * NEWS: Add information about new pending breakpoint support.
11671
11672 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11673
11674 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11675 and pending fields for pending breakpoint support.
11676 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11677 (condition_command): Only parse condition if not a pending
11678 breakpoint.
11679 (print_one_breakpoint): Add support for pending breakpoints.
11680 (describe_other_breakpoints): Add checks to verify we are not
11681 dealing with pending breakpoints.
11682 (check_duplicates): Don't check pending breakpoints.
11683 (set_raw_breakpoint): Initialize pending flag.
11684 (do_restore_lang_radix_cleanup): New cleanup routine.
11685 (resolve_pending_breakpoint): New function.
11686 (re_enable_breakpoints_in_shlibs): Try and resolve any
11687 pending breakpoints via resolve_pending_breakpoint.
11688 (mention): Add pending breakpoint support.
11689 (parse_breakpoint_sals): Add new parameter to pass to
11690 decode_line_1 to indicate silent errors when files or functions
11691 are not found. Change all callers.
11692 (do_captured_parse_breakpoint): New function.
11693 (break_command_1): Change prototype to return an rc value and to
11694 take an optional pending breakpoint pointer. Support creating
11695 a pending breakpoint if a "not found" form of error occurs when
11696 parsing the breakpoint. Also support resolving an existing pending
11697 breakpoint and be silent if the resolution fails.
11698 (create_breakpoints): Change prototype to take pending breakpoint
11699 pointer. When resolving a pending breakpoint, use the new pointer
11700 to provide a conditional or commands added by the end-user.
11701 (delete_breakpoint): Add appropriate check for pending.
11702 (breakpoint_re_set_one): Ditto.
11703 (do_enable_breakpoint): Ditto.
11704
11705 2004-02-02 David Carlton <carlton@kealia.com>
11706
11707 * valops.c (enum oload_classification): New.
11708 (find_overload_match): Break implementation into separate
11709 functions; delete #if 0'd code; look for symbols within
11710 namespaces.
11711 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11712 (find_oload_champ,oload_method_static,classify_oload_match): New.
11713 * cp-support.h: Add declaration for cp_func_name; update
11714 declaration for make_symbol_overload_list.
11715 * cp-support.c (cp_func_name): New.
11716 (overload_list_add_symbol): Fix comment, use
11717 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11718 (make_symbol_overload_list): Take a function name and a namespace
11719 instead of a symbol; change implementation.
11720 (make_symbol_overload_list_using): New.
11721 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11722
11723 2004-02-02 Fred Fish <fnf@redhat.com>
11724
11725 * main.c (gdb_stdtarg): Move definition to group with other
11726 gdb_stdtarg definitions and update copyright years.
11727 * remote-sim.c (gdb_os_write_stderr): Write output to
11728 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11729 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
11730 gdb_stderr stream and update copyright years.
11731
11732 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11733
11734 * Makefile.in (mips-linux-nat.o): Update dependencies.
11735 * mips-linux-nat.c: Include mips-tdep.h.
11736
11737 2004-02-01 Roland McGrath <roland@redhat.com>
11738
11739 * sol-thread.c (sol_thread_xfer_partial): New function.
11740 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11741 (init_sol_core_ops): Likewise.
11742
11743 * procfs.c (procfs_xfer_partial): New function.
11744 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11745 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11746
11747 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11748 procfs_xfer_auxv function.
11749
11750 * procfs.c (procfs_make_note_section): If we can read
11751 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11752 * linux-proc.c (linux_make_note_section): Likewise.
11753
11754 * auxv.h: New file.
11755 * auxv.c: New file.
11756 * Makefile.in (auxv_h): New variable.
11757 (COMMON_OBS): Add auxv.o here.
11758 (auxv.o): New target.
11759
11760 * corelow.c (core_xfer_partial): New function.
11761 (init_core_ops): Use it for core_ops.to_xfer_partial.
11762
11763 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11764 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11765 macro if that is defined.
11766
11767 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11768
11769 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11770 and check the specified thread for each breakpoint.
11771 * breakpoint.h (bpstat_stop_status): Update prototype.
11772 * infrun.c (handle_inferior_event): Update calls to
11773 bpstat_stop_status.
11774
11775 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11776
11777 * Makefile.in (cli-cmds.o): Add $(readline_h).
11778
11779 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11780
11781 * cli/cli-cmds.c: Include readline.h.
11782 (complete_command): Pass the start of the last word to
11783 complete_line.
11784
11785 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11786
11787 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11788 argument, and change first argument to a CORE_ADDR.
11789 * breakpoint.h (bpstat_stop_status): Update prototype.
11790 * infrun.c (adjust_pc_after_break): Add a new comment.
11791 (handle_inferior_event): Update calls to bpstat_stop_status.
11792
11793 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11794
11795 * breakpoint.h: Update copyright years.
11796
11797 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11798
11799 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11800 (bpstat_stop_status): Don't decrement PC.
11801 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11802 prototype.
11803 * infrun.c (adjust_pc_after_break): New function.
11804 (handle_inferior_event): Call it, early. Remove later references
11805 to DECR_PC_AFTER_BREAK.
11806 (normal_stop): Add commentary.
11807
11808 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11809
11810 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11811 2004-01-27 double-free fix.
11812
11813 2004-01-31 Mark Kettenis <kettenis@gnu.org>
11814
11815 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11816 (sparc32_frame_prev_register): Handle StackGhost.
11817 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11818
11819 2004-01-29 Roland McGrath <roland@redhat.com>
11820
11821 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11822 * configure: Regenerated.
11823
11824 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11825 * Makefile.in (procfs.o): Add dep.
11826
11827 2004-01-28 Andrew Cagney <cagney@redhat.com>
11828
11829 * tui/tui-stack.h: Update copyright.
11830 (struct frame_info): Add opaque declaration.
11831 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11832 (tui_show_locator_content): Rename tuiShowLocatorContent.
11833 (tui_show_frame_info): Rename tuiShowFrameInfo.
11834 * tui/tui-stack.c: Update copyright. Update references.
11835 * tui/tui-winsource.c: Update references.
11836 * tui/tui-win.c: Update references.
11837 * tui/tui-layout.c: Update references.
11838 * tui/tui-hooks.c: Update copyright, update references.
11839 * tui/tui.c: Update copyright, update references.
11840 * tui/tui-disasm.c: Update references.
11841
11842 2004-01-28 David Carlton <carlton@kealia.com>
11843
11844 * dwarf2read.c (add_partial_structure): Use demangled name if
11845 namespace equals "".
11846
11847 2004-01-27 Jim Blandy <jimb@redhat.com>
11848
11849 Clean up misapplied patch:
11850 * dwarf2read.c (determine_prefix): Change one of the two forward
11851 declarations for 'determine_prefix_aux' to a declaration for this.
11852 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11853 argument to 'die_specification'.
11854
11855 * dwarf2read.c (read_func_scope): Re-indent comment.
11856
11857 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
11858
11859 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11860 b->exp to NULL after freeing so that error during re-parsing or
11861 evaluation of expressions associated with breakpoint don't
11862 eventually lead to re-freeing of storage.
11863 Committed by Andrew Cagney.
11864
11865 2004-01-27 Andrew Cagney <cagney@redhat.com>
11866
11867 * source.c (ambiguous_line_spec): Delete undefined declaration.
11868 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11869 (m32r_set_server_address, m32r_set_download_path): Ditto.
11870 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11871
11872 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
11873
11874 * dwarf2read.c: Update calls to changed and renamed functions, and
11875 references to moved variables.
11876
11877 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11878 language, language_defn, list_in_scope, and ftypes members.
11879 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11880 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11881 (baseaddr): Remove globals.
11882
11883 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11884 (set_cu_language, die_is_declaration, die_specification)
11885 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11886 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11887 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11888 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11889
11890 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11891 cu.list_in_scope. Don't initialize cu_header_offset.
11892 (add_partial_symbol): Add local baseaddr.
11893 (psymtab_to_symtab_1): Add local baseaddr. Use
11894 objfile->section_offsets for consistency. Don't initialize
11895 cu_header_offset; do initialize cu.header.offset and
11896 cu.list_in_scope.
11897 (read_file_scope, read_func_scope, read_lexical_block_scope)
11898 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11899
11900 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11901
11902 * PROBLEMS: Add gdb/1516.
11903
11904 2003-12-29 Robert Millan <robertmh@gnu.org>
11905
11906 Patch committed by Andrw Cagney.
11907 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11908 * configure.tgt: Match knetbsd*-gnu.
11909
11910 2004-01-26 Andrew Cagney <cagney@redhat.com>
11911
11912 * breakpoint.c (catch_command_1): Delete #ifdef code.
11913 (catch_fork_command_1): Delete #ifdef wrapper.
11914 (catch_exec_command_1): Ditto.
11915 (catch_load_command_1): Ditto.
11916 (catch_unload_command_1): Ditto.
11917
11918 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11919 (catch_breakpoint): Delete #if0ed function.
11920 (disable_catch_breakpoint): Ditto.
11921 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11922 (disable_catch, enable_catch, delete_catch): Ditto.
11923
11924 2004-01-26 Andrew Cagney <cagney@redhat.com>
11925
11926 * remote.c (echo_check, quit_flag): Delete variables.
11927 (cisco_kernel_mode): Delete variable.
11928 (minitelnet_return, tty_input, escape_count): Delete variables.
11929 (remote_cisco_mode): Delete variable.
11930 (remote_cisco_open, remote_cisco_close): Delete function.
11931 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11932 (init_remote_cisco_ops): Delete function.
11933 (_initialize_remote): Do not install "remote cisco" code.
11934 (read_frame): Delete cisco specific code.
11935 (remote_info_process): Delete function.
11936 (remote_wait): Delete cisco specific code.
11937 (remote_cisco_section_offsets): Delete function.
11938 (remote_cisco_objfile_relocate): Delete function.
11939 (remote_async_wait): Delete cisco specific code.
11940 (minitelnet, readtty, readsocket): Delete function.
11941
11942 2004-01-26 Andrew Cagney <cagney@redhat.com>
11943
11944 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11945 comments mentioning extract_returned_value_address.
11946 * infcmd.c (print_return_value): Update. Add comments on
11947 extract_returned_value_address.
11948 * stack.c (return_command): Add comments on
11949 extract_returned_value_address.
11950 * values.c: Update comment.
11951 * m32r-tdep.c: Update comment.
11952 * sparc-tdep.c: Update comment.
11953 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11954 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11955 * sh64-tdep.c (sh64_gdbarch_init): Update.
11956 * sh-tdep.c (sh_gdbarch_init): Update.
11957 * s390-tdep.c (s390_gdbarch_init): Update.
11958 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11959 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11960 * m68k-tdep.c (m68k_gdbarch_init): Update.
11961 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11962 * m32r-tdep.c (m32r_gdbarch_init): Update.
11963 * ia64-tdep.c (ia64_gdbarch_init): Update.
11964 * h8300-tdep.c (h8300_gdbarch_init): Update.
11965 * frv-tdep.c (frv_gdbarch_init): Update.
11966 * arm-tdep.c (arm_gdbarch_init): Update.
11967 * alpha-tdep.c (alpha_gdbarch_init): Update.
11968
11969 2004-01-26 Andrew Cagney <cagney@redhat.com>
11970
11971 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11972 SYMBOL_LOCATION_FUNCS
11973 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11974 "struct symbol_ops".
11975 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11976 type to "struct symbol_ops".
11977 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11978 (struct symbol): Replace ".aux_value.loc.funcs" and
11979 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11980 (SYMBOL_OBJFILE): Delete macro.
11981 (SYMBOL_LOCATION_FUNCS): Delete macro.
11982 (SYMBOL_LOCATION_BATON): Update.
11983 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11984 intead of SYMBOL_LOCATION_FUNCS.
11985 * ax-gdb.c (gen_var_ref): Ditto.
11986 * printcmd.c (address_info): Ditto.
11987 * findvar.c (read_var_value): Ditto.
11988 (symbol_read_needs_frame): Ditto.
11989
11990 2004-01-26 Andrew Cagney <cagney@redhat.com>
11991
11992 * dwarf2read.c (read_func_scope): Document frame-base hack.
11993
11994 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11995
11996 * infcmd.c (print_return_value): Plug memory leak; delete
11997 ui_stream object. Rename argument `structure_return' to
11998 `struct_return'.
11999
12000 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12001
12002 * infcmd.c (print_return_value): Wrap long lines.
12003 (finish_command_continuation, finish_command): Remove unused
12004 variable `funcaddr'. Fix some coding-standards problems.
12005
12006 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
12007 SECT_SIZE is large enough, not whether it's exactly the right size.
12008 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12009 TDEP->fpregset to zero.
12010
12011 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
12012 floating-point registers for traditional NetBSD core files.
12013 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12014 TDEP->sizeof_fpregset here.
12015
12016 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12017
12018 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12019 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12020 function with code split out from
12021 sparc32nbsd_sigcontext_frame_cache.
12022 (sparc32nbsd_sigcontext_frame_cache): Use
12023 sparc32nbsd_sigcontext_saved_regs.
12024 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12025 OpenBSD.
12026 * sparcobsd-tdep.c: New file.
12027 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12028 (sparcobsd-tdep.o): New dependency.
12029 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12030 * config/sparc/obsd.mt: New file.
12031
12032 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12033 TDEP->fpregset to be initialized to enable core file register
12034 sets.
12035
12036 2004-01-24 Mark Kettenis <kettenis@gnu.org>
12037
12038 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
12039 Add opaque declarations.
12040 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12041 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12042 function with code split out from
12043 sparc64nbsd_sigcontext_frame_cache.
12044 (sparc64nbsd_sigcontext_frame_cache): Use
12045 sparc64nbsd_sigcontext_saved_regs.
12046 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12047 OpenBSD.
12048 * sparc64obsd-tdep.c: New file.
12049 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12050 (sparc64obsd-tdep.o): New dependency.
12051 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12052 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12053 * config/sparc/obsd64.mt: New file.
12054
12055 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12056 read the instruction at PC.
12057
12058 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12059 value of GDB_OSABI_DEFAULT.
12060 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12061 instead of GDB_OSABI_NETBSD_AOUT.
12062
12063 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
12064
12065 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12066 copyright.
12067
12068 2004-01-23 Andrew Cagney <cagney@redhat.com>
12069
12070 * printcmd.c (display_command): Replace tui_set_display call with
12071 tui_set_layout_for_display_command.
12072 * tui/tui.h (enum tui_win_type): Define.
12073 (tui_set_layout): Delete declaration.
12074 (tui_set_layout_for_display_command): Rename set_tui_layout.
12075 * tui/tui-data.h (enum tui_layout_type): Define.
12076 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12077 "tui.h".
12078 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12079 (tui_default_win_height): Rename tuiDefaultWinHeight.
12080 (tui_default_win_viewport_height): Rename
12081 tuiDefaultWinViewportHeight.
12082 (tui_set_layout): RenametuiSetLayout.
12083 * tui/tui-layout.c: Update references.
12084 * tui/tui.c: Update references.
12085 * tui/tui-disasm.c: Update references.
12086
12087 2004-01-23 David Carlton <carlton@kealia.com>
12088
12089 Partial workaround for PR c++/1511:
12090 * cp-namespace.c: Include frame.h.
12091 (cp_lookup_transparent_type): New
12092 (cp_lookup_transparent_type_loop): New.
12093 * cp-support.h: Declare cp_lookup_transparent_type.
12094 * symtab.c (basic_lookup_transparent_type): Renamed from
12095 lookup_transparent_type.
12096 (lookup_transparent_type): Replace old body by a call to
12097 current_language->la_lookup_transparent_type.
12098 * symtab.h: Update copyright. Declare
12099 basic_lookup_transparent_type.
12100 * language.h: Update copyright.
12101 (struct language_defn): Add la_lookup_transparent_type.
12102 * language.c: Update copyright.
12103 (unknown_language_defn): Add basic_lookup_transparent_type.
12104 (auto_language_defn): Add basic_lookup_transparent_type.
12105 (local_language_defn): Add basic_lookup_transparent_type.
12106 * ada-lang.c: Update copyright.
12107 (ada_language_defn): Add basic_lookup_transparent_type.
12108 * c-lang.c: Update copyright.
12109 (c_language_defn): Add basic_lookup_transparent_type.
12110 (cplus_language_defn): Add basic_lookup_transparent_type.
12111 (asm_language_defn): Add basic_lookup_transparent_type.
12112 (minimal_language_defn): Add basic_lookup_transparent_type.
12113 * f-lang.c: Update copyright.
12114 (f_language_defn): Add basic_lookup_transparent_type.
12115 * jv-lang.c: Update copyright.
12116 (java_language_defn): Add basic_lookup_transparent_type.
12117 * m2-lang.c: Update copyright.
12118 (m2_language_defn): Add basic_lookup_transparent_type.
12119 * objc-lang.c: Update copyright.
12120 (objc_language_defn): Add basic_lookup_transparent_type.
12121 * p-lang.c: Update copyright.
12122 (p_language_defn): Add basic_lookup_transparent_type.
12123 * scm-lang.c: Update copyright.
12124 (scm_language_defn): Add basic_lookup_transparent_type.
12125 * Makefile.in (cp-namespace.o): Depend on frame.h.
12126
12127 2004-01-23 David Carlton <carlton@kealia.com>
12128
12129 Patch for PR c++/1520:
12130 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12131 properly if we have a specification die.
12132 (determine_prefix_aux): Rename from determine_prefix.
12133 (determine_prefix): Like the old determine_prefix, but never
12134 returns NULL.
12135
12136 2004-01-23 Theodore A. Roth <troth@openavr.org>
12137
12138 * avr-tdep.c: Update copyright.
12139 (avr_iaddr_p): Delete unused function.
12140 (avr_saddr_p): Delete unused function.
12141
12142 2004-01-23 David Carlton <carlton@kealia.com>
12143
12144 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12145 Fix for PR symtab/1534.
12146
12147 2004-01-23 Mark Kettenis <kettenis@gnu.org>
12148
12149 * NEWS (New native configurations): Mention OpenBSD/sparc and
12150 OpenBSD/sparc64.
12151 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12152 * configure.host: Likewise.
12153 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12154 handler for OpenBSD.
12155 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12156
12157 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12158
12159 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12160 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12161
12162 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12163 * cli/cli-cmds.c (shell_escape): Likewise.
12164
12165 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12166 OpenBSD .note.openbsd.ident sections.
12167
12168 2004-01-22 David Carlton <carlton@kealia.com>
12169
12170 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12171 get_scope_pc_bounds.
12172 (read_file_scope): Ditto.
12173 (get_scope_pc_bounds): New function, produced by extracting code
12174 from the above two functions, consolidating it, and adding support
12175 for DW_TAG_namespace.
12176
12177 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12178
12179 * osabi.c (MAX_NOTESZ): New define.
12180 (check_note): New function.
12181 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12182 check_note.
12183
12184 2004-01-21 Roland McGrath <roland@redhat.com>
12185
12186 * MAINTAINERS (write after approval): Add myself.
12187
12188 2004-01-21 Eli Zaretskii <eliz@gnu.org>
12189
12190 * utils.c (init_page_info): Move declarations of `rows' and
12191 `cols' before the __GO32__-specific code. Move the closing brace
12192 outside the #ifdef __GO32__..#endif block.
12193 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12194
12195 2004-01-21 Paul Brook <paul@codesourcery.com>
12196
12197 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12198 BPSTAT_WHAT_CHECK_SHLIBS.
12199
12200 2004-01-21 Paul Brook <paul@codesourcery.com>
12201
12202 * MAINTAINERS: Add myself to write-after-approval.
12203
12204 2004-01-20 Andrew Cagney <cagney@redhat.com>
12205
12206 * ax-gdb.c (print_axs_value): Delete unused function.
12207 * jv-lang.c (java_lookup_type): Delete unused function.
12208 * cli/cli-dump.c (dump_filetype): Delete unused function.
12209 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12210 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12211 (mips_getstring): Delete unused function.
12212 (pmon_insert_breakpoint): Delete #if0ed function.
12213 (PMON_MAX_BP): Delete #if0ed MACRO.
12214 (mips_pmon_bp_info): Delete #if0ed variable.
12215 (pmon_remove_breakpoint): Delete #if0ed function.
12216 * monitor.c (monitor_write_even_block): Delete unused function.
12217 (monitor_write_memory_block): Delete #if0ed code.
12218 * dink32-rom.c (dink32_load): Delete unused function.
12219 (_initialize_dink32_rom): Delete #if0ed code.
12220 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12221
12222 * tui/tui-command.c: Update references.
12223 * tui/tui-io.c: Update references.
12224 * tui/tui-command.h: Update copyright.
12225 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12226
12227 * source.c (ambiguous_line_spec): Delete never-defined function.
12228 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12229 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12230 * cli/cli-cmds.c (validate_comname): Ditto.
12231
12232 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12233 "tui-data.h".
12234 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12235 (tui_show_disassem): Rename tuiShowDisassem.
12236 (tui_show_disassem_and_update_source): Rename
12237 tuiVerticalDisassemScroll.
12238 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12239 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12240 * tui/tui.h: Update copyright.
12241 (enum tui_status): Define.
12242 * tui/tui-data.h (enum tui_scroll_direction): Define.
12243 * tui/tui-disasm.c: Update copyright. Update references.
12244 * tui/tui-winsource.c: Update copyright. Update references.
12245 * tui/tui-win.c: Update references.
12246 * tui/tui-layout.c: Update references.
12247
12248 2004-01-20 Andrew Cagney <cagney@redhat.com>
12249
12250 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12251 sym2 to start of block.
12252
12253 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12254
12255 * MAINTAINERS: Delete mmalloc.
12256 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12257 * NEWS: Mention removal of --with-malloc.
12258 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12259 * config.in: Regenerate.
12260 * configure: Regenerate.
12261 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12262 USE_MMALLOC, MMCHECK_FORCE.
12263 * gdbinit.in: Remove mmalloc.
12264 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12265 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12266 * config/i386/go32.mh: Likewise.
12267 * config/i386/interix.mh: Likewise.
12268 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12269
12270 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12271
12272 * linespec.c (decode_variable, symtab_from_filename): Call
12273 error_silent with error message instead of throwing an exception
12274 directly.
12275 * defs.h (error_silent, error_output_message): Add prototypes.
12276 (catch_exceptions_with_msg): Ditto.
12277 * utils.c (error_silent, error_output_message): New functions.
12278 * top.c (catch_exceptions_with_msg): New function.
12279
12280 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
12281
12282 * mi/mi-cmds.h (enum print_values): Add definition.
12283
12284 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12285 type and value for simple data types and just the name and type
12286 for complex ones, if required.
12287
12288 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12289 children, if required.
12290
12291 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12292
12293 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12294 unused declarations.
12295
12296 2004-01-19 Andrew Cagney <cagney@redhat.com>
12297
12298 * top.h (mapped_symbol_files): Delete declaration.
12299 * main.c (captured_main): Delete option "m" and "mapped".
12300 * objfiles.c (mapped_symbol_files): Delete variable.
12301 * symfile.c (symbol_file_command): Delete mmap code.
12302 (symbol_file_add_with_addrs_or_offsets): Ditto.
12303 (add_symbol_file_command, reread_separate_symbols): Ditto.
12304 * objfiles.h (OBJF_MAPPED): Delete.
12305 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12306 (free_objfile) [USE_MMALLOC]: Ditto.
12307 (open_existing_mapped_file): Delete function.
12308 (open_mapped_file): Delete function.
12309 (map_to_file): Delete function.
12310
12311 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12312
12313 * infrun.c (step_into_function): Account for possible breakpoint
12314 adjustment when computing ``stop_func_start''.
12315
12316 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12317
12318 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12319 the region size against the size of a pointer, not the size of
12320 a register as given by DEPRECATED_REGISTER_SIZE.
12321
12322 2004-01-19 Andrew Cagney <cagney@redhat.com>
12323
12324 * tui/tui-regs.h: Include "tui-data.h".
12325 (tuiFirstRegElementNoInLine): Delete declaration.
12326 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12327 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12328 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12329 (tui_calculate_regs_column_count): Rename
12330 tuiCalculateRegsColumnCount.
12331 (tui_check_register_values): Rename tuiCheckRegisterValues.
12332 (tui_show_registers): Rename tuiShowRegisters.
12333 (tui_display_registers_from_line): Rename
12334 tuiDisplayRegistersFromLine.
12335 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12336 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12337 (tui_first_reg_element_no_inline): Rename
12338 tuiFirstRegElementNoInLine.
12339 * tui/tui-data.h: Update copyright.
12340 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12341 * tui/tui-windata.c: Update copyright, update references.
12342 * tui/tui-regs.c: Update copyright, update references.
12343 * tui/tui-win.c: Update copyright, update references.
12344 * tui/tui-layout.c: Update copyright, update references.
12345
12346 2004-01-18 Andrew Cagney <cagney@redhat.com>
12347
12348 * tui/tui-io.c: Update copyright.
12349 (key_is_end_sequence, key_is_backspace): New functions.
12350 (key_is_command_char, key_is_start_sequence): New function.
12351 (tui_getc): Update references.
12352 * tui/tui-io.h: Update copyright.
12353 (m_tuiStartNewLine): Delete macro.
12354 (m_isBackspace, m_isDeleteChar): Delete macros.
12355 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12356 (m_isNextPage, m_isPrevPage): Delete macros.
12357 (m_isLeftArrow, m_isRightArrow): Delete macros.
12358 (m_isXdbStyleCommandChar): Delete macro.
12359 (key_is_start_sequence): Declare, replace m_isStartSequence.
12360 (key_is_end_sequence): Declare, replace m_isEndSequence.
12361 (key_is_backspace): Declare ,replace m_isBackspace.
12362 (key_is_command_char): Declare, replace m_isCommandChar.
12363 * tui/tui-command.c: Update copyright.
12364 (tuiDispatchCtrlChar): Update references.
12365
12366 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12367 tuiSourceWin.h.
12368
12369 * tui/tui-command.c: Rename tui/tuiCommand.c.
12370 * tui/tui-command.h: Rename tui/tuiCommand.h.
12371 * tui/tui-data.c: Rename tui/tuiData.c.
12372 * tui/tui-data.h: Rename tui/tuiData.h.
12373 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12374 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12375 * tui/tui-io.c: Rename tui/tuiIO.c.
12376 * tui/tui-io.h: Rename tui/tuiIO.h.
12377 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12378 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12379 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12380 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12381 * tui/tui-source.c: Rename tui/tuiSource.c.
12382 * tui/tui-source.h: Rename tui/tuiSource.h.
12383 * tui/tui-stack.c: Rename tui/tuiStack.c.
12384 * tui/tui-stack.h: Rename tui/tuiStack.h.
12385 * tui/tui-win.c: Rename tui/tuiWin.c.
12386 * tui/tui-win.h: Rename tui/tuiWin.h.
12387 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12388 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12389 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12390 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12391 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12392 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12393 * tui/tui-file.c: Update includes.
12394 * tui/tui-hooks.c: Update includes.
12395 * tui/tui-interp.c: Update includes.
12396 * tui/tui.c: Update includes.
12397 * Makefile.in: Update all tui/ dependencies.
12398 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12399
12400 * Makefile.in: Update copyright. Update dependencies.
12401
12402 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12403 problem.
12404
12405 2004-01-18 Andrew Cagney <cagney@redhat.com>
12406
12407 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12408 instead of register_gdbarch_init.
12409
12410 * remote-sds.c (tohex): Delete unused function. Update copyright.
12411 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12412 * v850-tdep.c (v850_register_virtual_size): Ditto.
12413 * target.c (normal_target_post_startup_inferior): Ditto.
12414 * source.c (ambiguous_line_spec): Ditto.
12415 * remote.c (adapt_remote_get_threadinfo): Ditto.
12416 * mi/mi-out.c (out_field_fmt): Ditto.
12417 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12418 (output_control_change_notification): Ditto.
12419 * m68k-tdep.c (m68k_register_byte): Ditto.
12420 (m68k_remote_breakpoint_from_pc): Ditto.
12421 * ui-out.c (init_ui_out_state): Delete unused declaration.
12422 * stabsread.c (search_value): Ditto.
12423 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12424 * maint.c (print_section_table): Ditto.
12425 * infrun.c (set_follow_fork_mode_command): Ditto.
12426
12427 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12428
12429 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12430 DW_CFA_def_cfa_exporession. Add support for
12431 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12432 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12433
12434 2004-01-18 Andrew Cagney <cagney@redhat.com>
12435
12436 * ocd.c: Update copyright.
12437 (bdm_read_register_command): Delete unused function.
12438 (_initialize_remote_ocd): Delete commented out reference.
12439 (get_quoted_char, reset_packet): Delete #if0ed function.
12440 (output_packet, put_quoted_char): Delete #if0ed function.
12441 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12442 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12443 (BDM_BREAKPOINT): Delete #if0ed macro.
12444 (remote_timeout): Delete #if0ed variable.
12445
12446 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12447
12448 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12449 (core-sol2.o): Remove dependency.
12450 * core-sol2.c: Remove file.
12451
12452 2004-01-17 Andrew Cagney <cagney@redhat.com>
12453
12454 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12455 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12456 enums.
12457
12458 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12459
12460 * remote.c: Update copyright years.
12461
12462 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12463
12464 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12465
12466 2004-01-17 Andrew Cagney <cagney@redhat.com>
12467
12468 * mdebugread.c: Update copyright.
12469 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12470 (parse_type, parse_procedure): Ditto.
12471 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12472
12473 * cris-tdep.c (cris_store_struct_return): Put back accidently
12474 deleted function.
12475
12476 * gdbarch.sh: Update copyright year.
12477 * gdbarch.h, gdbarch.c: Re-generate.
12478
12479 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12480
12481 Suggested by George Anzinger.
12482 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12483 correct stack offset. Include unknown opcode numbers in the error
12484 message.
12485
12486 2004-01-17 Andrew Cagney <cagney@redhat.com>
12487
12488 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12489 extract_struct_value_address, i386 does not set it.
12490 * sparc64-tdep.c (sparc64_init_abi): Do not set
12491 extract_struct_value_address, never called.
12492 (sparc64_extract_struct_value_address): Delete function.
12493 * m68hc11-tdep.c: Update copyright.
12494 (m68hc11_gdbarch_init): Delete redundant assignment of
12495 extract_struct_value_address.
12496 * i386-tdep.c: Update copyright.
12497 (i386_gdbarch_init): Do not set extract_struct_value_address,
12498 never called.
12499 (i386_extract_struct_value_address): Delete function.
12500 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12501 extract_struct_value_address, never called.
12502 (sparc32_extract_struct_value_address): #if 0 function. Add
12503 comments explaining its future.
12504
12505 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12506
12507 * arm-tdep.c (arm_write_pc): New function.
12508 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12509
12510 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12511
12512 * breakpoint.c (must_shift_inst_regs): Delete.
12513 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12514 and SHIFT_INST_REGS.
12515 * infcmd.c (step_1, step_1_continuation): Delete references to
12516 SHIFT_INST_REGS.
12517 * infrun.c (keep_going): Likewise.
12518 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12519 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12520
12521 2004-01-17 Andrew Cagney <cagney@redhat.com>
12522
12523 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12524 * gdbarch.h, gdbarch.c: Re-generate.
12525 * infcmd.c (print_return_value): Delete reference to
12526 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12527
12528 * cris-tdep.c (cris_gdbarch_init): Do not set
12529 deprecated_extract_struct_value_address.
12530
12531 * xstormy16-tdep.c: Update copyright.
12532 (xstormy16_extract_struct_value_address): Update to current
12533 extract struct value address interface.
12534 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12535 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12536 current extract struct value address interface.
12537 (sh64_gdbarch_init): Set extract_struct_value_address.
12538
12539 * cris-tdep.c: Update copyright.
12540 (cris_extract_struct_value_address): Delete function.
12541 (struct_return_address): Delete variable.
12542 (cris_store_struct_return): Do not set struct_return_address.
12543
12544 * mcore-tdep.c: Update copyright.
12545 (mcore_extract_struct_value_address): Delete function. Update
12546 comments.
12547 (mcore_gdbarch_init): Update.
12548 * mn10300-tdep.c: Update copyright.
12549 (mn10300_extract_struct_value_address): Delete function.
12550 (mn10300_gdbarch_init): Update.
12551 * v850-tdep.c: Update copyright.
12552 (v850_extract_struct_value_address): Delete.
12553 (v850_gdbarch_init): Update.
12554 * ns32k-tdep.c: Update copyright.
12555 (ns32k_extract_struct_value_address): Delete.
12556 (ns32k_gdbarch_init): Update.
12557 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12558 (hppa_gdbarch_init): Update.
12559 * vax-tdep.c: Update copyright.
12560 (vax_extract_struct_value_address): Delete.
12561 (vax_gdbarch_init): Update.
12562
12563 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12564 * gdbarch.h, gdbarch.c: Re-generate.
12565 * procfs.c (procfs_fetch_registers): Delete reference to
12566 DEPRECATED_NPC_REGNUM.
12567 (procfs_store_registers): Ditto.
12568 * regcache.c (generic_target_write_pc): Simplify.
12569 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12570
12571 * core-sol2.c (fetch_core_registers): Replace
12572 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12573
12574 * hppa-tdep.c: Update copyright year.
12575 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12576 NPC_REGNUM.
12577 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12578
12579 * mips-tdep.c (mips_write_pc): New function.
12580 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12581 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12582 (mips_find_saved_regs, mips_software_single_step: Ditto.
12583 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12584 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12585
12586 2004-01-17 Andrew Cagney <cagney@redhat.com>
12587
12588 * mips-tdep.c: Re-indent. Group functions by ABI.
12589
12590 2004-01-17 Andrew Cagney <cagney@redhat.com>
12591
12592 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12593 * gdbarch.c: Re-generate.
12594 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12595 DECR_PC_AFTER_BREAK to zero.
12596 * vax-tdep.c (vax_gdbarch_init): Ditto.
12597 * v850-tdep.c (v850_gdbarch_init): Ditto.
12598 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12599 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12600 * sh-tdep.c (sh_gdbarch_init): Ditto.
12601 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12602 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12603 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12604 * mips-tdep.c (mips_gdbarch_init): Ditto.
12605 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12606 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12607 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12608 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12609 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12610 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12611 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12612 * frv-tdep.c (frv_gdbarch_init): Ditto.
12613 * cris-tdep.c (cris_gdbarch_init): Ditto.
12614 * avr-tdep.c (avr_gdbarch_init): Ditto.
12615 * arm-tdep.c (arm_gdbarch_init): Ditto.
12616 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12617
12618 2004-01-17 J. Brobecker <brobecker@gnat.com>
12619
12620 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12621 Delete, no longer used.
12622 (read_subrange_type): New function, mostly extracted from
12623 read_array_type().
12624 (read_array_type): Replace extracted code by call to
12625 read_subrange_type().
12626 (dwarf2_get_attr_constant_value): New function.
12627 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12628 (add_partial_symbol): Likewise.
12629 (process_die): Likewise.
12630 (new_symbol): Likewise.
12631 (read_type_die): Likewise.
12632
12633 2004-01-16 Andrew Cagney <cagney@redhat.com>
12634
12635 * symfile.c: Update copyright year.
12636 (compare_symbols): Delete unused function.
12637 * stabsread.c: Update copyright year.
12638 (lrs_general_complaint): Delete unused function.
12639 (ref_search_value): Ditto.
12640 (get_substring): Delete declaration.
12641 * sh64-tdep.c: Update copyright year.
12642 (sh64_get_gdb_regnum): Delete unused function.
12643 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12644 Delete unused function.
12645
12646 2004-01-17 Mark Kettenis <kettenis@gnu.org>
12647
12648 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12649 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12650
12651 2004-01-16 Andrew Cagney <cagney@redhat.com>
12652
12653 Changes from Peter Schauer.
12654 * rs6000-tdep.c: Update copyright year.
12655 (rs6000_push_dummy_call): Update the stack pointer before
12656 accessing the corresponding stack region.
12657 * rs6000-nat.c: Update copyright year.
12658 (set_host_arch): Set "info.abfd" to "exec_bfd".
12659
12660 2004-01-15 Mark Kettenis <kettenis@gnu.org>
12661
12662 * blockframe.c: Update copyright year.
12663 (inside_entry_func): Don't treat a zero PC specially.
12664
12665 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
12666
12667 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12668 variable.
12669 (gcore_create_callback): Ditto. Skip any memory segment that has
12670 no permissions set.
12671
12672 2004-01-14 David Carlton <carlton@kealia.com>
12673
12674 Change symbols for C++ nested types to contain the fully qualified
12675 name, if possible. (At least in the DWARF-2 case.) Partial fix
12676 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12677 c++/895.
12678 * c-exp.y (qualified_type): Handle types nested within classes.
12679 * cp-namespace.c: Update comments.
12680 (cp_set_block_scope): Delete #if 0.
12681 (cp_lookup_nested_type): Handle types nested within classes.
12682 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12683 when appropriate.
12684 (add_partial_symbol): Add the name of the enclosing namespace to
12685 types.
12686 (pdi_needs_namespace): New.
12687 (add_partial_namespace): Tweak comment.
12688 (add_partial_structure): New.
12689 (psymtab_to_symtab_1): Initialize processing_current_prefix
12690 here...
12691 (process_die): instead of here.
12692 (read_structure_scope): Try to figure out the name of the class or
12693 namespace that the structure might be defined within.
12694 (read_enumeration): Generate fully-qualified names, if possible.
12695 (read_namespace): Don't set name to NULL.
12696 (die_specification): New.
12697 (new_symbol): Generate fully-qualified names for types.
12698 (read_type_die): Determine appropriate prefix.
12699 (determine_prefix): New.
12700 (typename_concat): New.
12701 (class_name): New.
12702 * valops.c (value_aggregate_elt): Pass NOSIDE to
12703 value_struct_elt_for_reference.
12704 (value_struct_elt_for_reference): Make static, add NOSIDE
12705 parameter, call value_maybe_namespace_elt as a last resort.
12706 (value_namespace_elt): Break out code into
12707 value_maybe_namespace_elt.
12708 (value_maybe_namespace_elt): New.
12709
12710 2004-01-12 Andrew Cagney <cagney@redhat.com>
12711
12712 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12713 cooked floating-point registers.
12714 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12715 and value_to_register.
12716
12717 2004-01-13 Andrew Cagney <cagney@redhat.com>
12718
12719 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12720 * gdbarch.c: Re-generate.
12721 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12722 FUNCTION_START_OFFSET.
12723 * v850-tdep.c (v850_gdbarch_init): Ditto.
12724 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12725 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12726 * sh-tdep.c (sh_gdbarch_init): Ditto.
12727 * s390-tdep.c (s390_gdbarch_init): Ditto.
12728 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12729 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12730 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12731 * mips-tdep.c (mips_gdbarch_init): Ditto.
12732 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12733 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12734 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12735 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12736 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12737 * i386-tdep.c (i386_gdbarch_init): Ditto.
12738 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12739 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12740 * frv-tdep.c (frv_gdbarch_init): Ditto.
12741 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12742 * cris-tdep.c (cris_gdbarch_init): Ditto.
12743 * avr-tdep.c (avr_gdbarch_init): Ditto.
12744 * arm-tdep.c (arm_gdbarch_init): Ditto.
12745 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12746
12747 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
12748
12749 * infrun.c (follow_fork_mode_ask): Remove.
12750 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12751 (follow_fork): Simplify and remove internal error for
12752 follow_fork_mode_ask.
12753 (_initialize_infrun): Update "set follow-fork-mode" help text.
12754
12755 2004-01-13 Andrew Cagney <cagney@redhat.com>
12756
12757 * configure.in: Update copyright year.
12758 (build_warnings): Add -Wunused-label.
12759 * configure: Re-generate.
12760
12761 2004-01-12 Andrew Cagney <cagney@redhat.com>
12762
12763 * exec.h (exec_ops): Make "extern".
12764
12765 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12766 the function is void.
12767 (mips_pseudo_register_write): Ditto.
12768
12769 2004-01-12 Andrew Cagney <cagney@redhat.com>
12770
12771 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12772 call. Never defined.
12773 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12774 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12775 (struct sparc_gregset, struct regcache): Ditto.
12776 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12777
12778 2004-01-12 Andrew Cagney <cagney@redhat.com>
12779
12780 * mi/ChangeLog: Delete file. Renamed to ...
12781 * mi/ChangeLog-1999-2003: New file.
12782 * tui/ChangeLog: Delete file. Renamed to ...
12783 * tui/ChangeLog-1998-2003: New file.
12784
12785 2004-01-11 Mark Kettenis <kettenis@gnu.org>
12786
12787 * sparc64nbsd-tdep.c: Include "regset.h".
12788 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12789 Remove variables.
12790 (fetch_core_registers): Remove function.
12791 (sparc64nbsd_core_fns): Remove variable.
12792 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12793 functions.
12794 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12795 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12796 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12797
12798 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12799 sparc_extract_struct_value_address.
12800 (sparc32_gdbarch_init): Set extract_struct_value_address.
12801 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12802 function.
12803 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12804 return_value_on_stack.
12805
12806 * NEWS: Mention that %cs and %ss have been added to the AMD64
12807 configurations
12808
12809 * frame.c: Update copyright year.
12810 (get_prev_frame): Improve comment.
12811
12812 * sparc64fbsd-tdep.c: Include "regset.h".
12813 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12814 Remove variables.
12815 (fetch_core_registers): Remove function.
12816 (sparc64fbsd_core_fns): Remove variable.
12817 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12818 functions.
12819 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12820 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12821 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
12822
12823 * sparcnbsd-tdep.c: Include "regset.h".
12824 (fetch_core_registers): Remove function.
12825 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12826 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12827 functions.
12828 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12829 TDEP->fpregset.
12830 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
12831
12832 * sparc-tdep.h (struct regset): Provide opaque declaration.
12833 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12834 fpregset and sizeof_fpregset members.
12835 * sparc-tdep.c (struct regset): Provide opaque declaration.
12836 (sparc_regset_from_core_section): New function.
12837 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12838 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12839 Set regset_from_core_section when appropriate.
12840
12841 2004-01-10 Mark Kettenis <kettenis@gnu.org>
12842
12843 * x86-64-tdep.c (amd64_non_pod_p): New function.
12844 (amd64_classify_aggregate): Return class memory for non-POD
12845 C++ structure types.
12846
12847 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12848 argument. Use it to reserve a register if necessary.
12849 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12850 amd64_push_arguments.
12851
12852 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12853
12854 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12855 register numbers in comments.
12856 * x86-64-tdep.h: Update copyright year.
12857 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12858 Adjust for addition of %cs and %ss.
12859 * amd64fbsd-nat.c: Update copyright year.
12860 (reg_offset): Add register offsets for %cs and %ss.
12861 * amd64fbsd-tdep.c: Update copyright year.
12862 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12863 (amd64fbsd_sc_reg_offset): Likewise.
12864 * x86-64-linux-nat.c: Update copyright year.
12865 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12866 and %ss.
12867 * amd64nbsd-nat.c: Update copyright year.
12868 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12869 * amd64nbsd-tdep.c: Update copyright year.
12870 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12871 * x86-64-linux-tdep.c: Update copyright year.
12872 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12873 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12874 * regformats/reg-x86-64.dat: Add %cs and %ss.
12875
12876 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12877 variables to prevent long lines. Update comments to reflect
12878 reality.
12879
12880 2004-01-09 David Carlton <carlton@kealia.com>
12881
12882 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12883 * dwarf2read.c (read_namespace): Pull out name-generating code
12884 into namespace_name. Rename previous_namespace to previous_prefix
12885 and processing_current_namespace to processing_current_prefix..
12886 (namespace_name): New function.
12887 (add_partial_symbol): Substitute uses of pdi->name with
12888 actual_name.
12889 * cp-support.h: Rename processing_current_namespace to
12890 processing_current_prefix.
12891 Update copyright year.
12892 * cp-namespace.c: Rename processing_current_namespace to
12893 processing_current_prefix.
12894 Update copyright year.
12895
12896 2004-01-09 Andrew Cagney <cagney@redhat.com>
12897
12898 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12899
12900 2004-01-09 Mark Kettenis <kettenis@gnu.org>
12901
12902 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12903 complaining.
12904 (process_one_symbol): Deal with N_PATCH stabs.
12905
12906 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
12907
12908 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12909 ifdeffed code.
12910 Update copyright year.
12911
12912 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12913
12914 * config/pa/tm-hppa.h: Update extern declarations for
12915 hppa32_hpux_frame_saved_pc_in_sigtramp,
12916 hppa32_hpux_frame_base_before_sigtramp, and
12917 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12918
12919 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12920
12921 * config/pa/tm-hppah.h: Update copyright years.
12922
12923 2004-01-08 Andrew Cagney <cagney@redhat.com>
12924
12925 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12926 (mips_o32_reg_struct_has_addr): Delete function.
12927 (mips_gdbarch_init): Update.
12928 (mips_extract_struct_value_address): Delete function.
12929
12930 2004-01-08 David Mosberger <davidm@hpl.hp.com>
12931
12932 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12933 reality.
12934
12935 2004-01-07 Andrew Cagney <cagney@redhat.com>
12936
12937 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12938 architecture's elf flags (when available).
12939
12940 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12941 FPU to the start, check the MIPS FPU when looking for an old
12942 architecture.
12943 (set_mipsfpu_single_command): Update the architecture.
12944 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12945
12946 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12947 (mips_mask_address_p): Add "tdep" parameter.
12948 (show_mask_address, mips_addr_bits_remove): Update.
12949 (mips_dump_tdep): Update.
12950 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12951 (MIPS_STACK_ARGSIZE): Delete macro.
12952 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12953 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12954 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12955 (mips_dump_tdep): Update.
12956 (MIPS_SAVED_REGSIZE): Delete macro.
12957 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12958 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12959 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12960 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12961 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12962 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12963 (mips_pop_frame, return_value_location): Update.
12964 (mips_n32n64_return_value, mips_dump_tdep): Update.
12965
12966 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12967 MIPS ABI.
12968
12969 * mips-tdep.c: Update copyright.
12970 (mips_gdbarch_init): Merge two code blocks handling the register
12971 name and number layout.
12972
12973 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12974
12975 * tracepoint.c (validate_actionline): Fix segv at EOF
12976
12977 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12978
12979 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12980 properly for static fields.
12981
12982 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
12983 Jason Molenda <jmolenda@apple.com>
12984
12985 * disasm.c: Update copyright to include 2004.
12986 (do_mixed_source_and_assembly): For uiout asm list
12987 and tuple cleanups, initialize to null_cleanup instead of
12988 NULL and do so prior to loop. Only reset when we close off
12989 the tuple/list. Move check for whether to close off the
12990 asm tuple/list to after dump_insns call where it will be run
12991 on each loop iteration.
12992
12993 2004-01-05 Andrew Cagney <cagney@redhat.com>
12994
12995 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12996 should be a switch case and not a label.
12997 * mips-tdep.c (mips32_next_pc): Delete unused labels
12998 "greater_equal_branch" and "less_zero_branch".
12999 * jv-valprint.c (java_print_value_fields): Delete unused label
13000 "flush_it".
13001
13002 * target.c (unpush_target): Only close a target that is in the
13003 target stack.
13004
13005 2004-01-05 Mark Kettenis <kettenis@gnu.org>
13006
13007 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13008 address from [sp + 64] instead of %o2.
13009
13010 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13011 fixes PR backtrace/1476.
13012
13013 2004-01-05 Andrew Cagney <cagney@redhat.com>
13014
13015 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13016 move to start of file.
13017 * i386-tdep.h (struct regcache): Add opaque declaration.
13018 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13019 declaration.
13020 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13021 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13022 * win32-nat.c (fake_create_process): Use ISO C style definition.
13023 * stabsread.c (define_symbol): Delete #ifndef
13024 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13025 stabs_argument_has_addr call, macro never defined.
13026
13027 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13028
13029 * op50-rom.c: Delete.
13030 * w89k-rom.c: Delete.
13031 * Makefile.in: Remove references.
13032
13033 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13034
13035 * x86-64-tdep.c: Update copyright year.
13036 (struct amd64_register_info): Rename from x86_64_register_info.
13037 (amd64_register_info): Rename from x86_64_register_info.
13038 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13039 (amd64_register_name): Rename from x86_64_register_name.
13040 (amd64_register_type): Rename from x86_64_register_type.
13041 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13042 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13043 (amd64_dwarf_reg_to_regnum): Rename from
13044 x86_64_dwarf_reg_to_regnum.
13045 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13046 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13047 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13048 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13049 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13050 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13051 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13052 (amd64_frame_cache): Rename from x86_64_frame_cache.
13053 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13054 (amd64_frame_prev_register): Rename from
13055 x86_64_frame_prev_register.
13056 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13057 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13058 (amd64_sigtramp_frame_cache): Rename from
13059 x86_64_sigtramp_frame_cache.
13060 (amd64_sigtramp_frame_prev_register): Rename from
13061 x86_64_sigtramp_frame_prev_register.
13062 (amd64_sigtramp_frame_unwind): Rename from
13063 x86_64_sigtramp_frame_unwind.
13064 (amd64_sigtramp_frame_sniffer): Rename from
13065 x86_64_sigtramp_frame_sniffer.
13066 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13067 (amd64_frame_base): Rename from x86_64_frame_base.
13068 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13069 (amd64_frame_align): Rename from x86_64_frame_align.
13070 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13071 (amd64_regset_from_core_section): Rename from
13072 x86_64_regset_from_core_section.
13073 (x86_64_init_abi): Update comments.
13074
13075 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
13076
13077 * MAINTAINERS (write after approval): Add myself.
13078
13079 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13080
13081 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13082 `float' arguments.
13083
13084 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13085
13086 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13087 such that it mentions a specific version of GCC that exhibits this
13088 bug.
13089
13090 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13091
13092 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13093 structure that has a single `float' member, store it in %f1 in
13094 addition to %f0.
13095
13096 * sparc-sol2-nat.c: Add missing '\'.
13097
13098 * sparc-tdep.c (sparc32_return_value): New function.
13099 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13100 Remove functions.
13101 (sparc32_gdbarch_init): Set return_value, don't set
13102 extract_return_value, store_return_value, use_struct_convention
13103 and return_value_on_stack.
13104
13105 * sparc-sol2-nat.c: Add missing ')'.
13106
13107 2004-01-03 J. Brobecker <brobecker@gnat.com>
13108
13109 * infrun.c (handle_step_into_function): New function.
13110 (handle_inferior_event): Extract out some code into the new
13111 function above.
13112
13113 2004-01-03 J. Brobecker <brobecker@gnat.com>
13114
13115 * infrun.c (handle_inferior_event): Move the declaration of
13116 real_stop_pc inside the if blocks where it is used.
13117
13118 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13119
13120 * sparc64-tdep.c (sparc64_16_byte_align_p)
13121 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13122 Use check_typedef to get subtypes of structures and unions.
13123 (sparc64_store_return_value): Fix calculation of the appropriate
13124 offset into VALBUF when storing a structure or union.
13125 (sparc64_return_value): New function.
13126 (sparc64_use_struct_convention): Remove function.
13127 (sparc64_init_abi): Set return_value, don't set
13128 extract_return_value, store_return_value and
13129 use_struct_convention.
13130
13131 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
13132
13133 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13134 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13135 gdb/config/alpha/xm-alphaosf.h,
13136 gdb/config/powerpc/tm-ppcle-eabi.h,
13137 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13138 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13139 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13140 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13141 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13142 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13143 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13144 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13145 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13146 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13147 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13148 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13149 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13150 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13151 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13152 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13153 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13154 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13155 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13156 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13157 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13158 Remove lines for .cvsignore files.
13159
13160 2004-01-03 J. Brobecker <brobecker@gnat.com>
13161
13162 * infrun.c: Back out the previous change.
13163
13164 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13165
13166 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13167 sparc-*-sunos4* to the list of REMOVED configurations.
13168
13169 * configure.tgt: Add back sparc-*-vxworks*.
13170 * remote-vxsparc.c: Remove all includes except for "defs.h",
13171 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13172 Include "sparc-tdep.h".
13173 (SPARC_R_G1): New define.
13174 (vxsparc_gregset): New variable.
13175 (ext_format_sparc): Remove extern declaration.
13176 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13177 sparc32_supply_fpregset.
13178 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13179 sparc_collect_rwindow and sparc32_collect_fpregset.
13180 * config/sparc/tm-vxworks.h: New file, based on recently removed
13181 tm-vxsparc.h.
13182 * config/sparc/vxworks.mt: New file, based on recently removed
13183 vxworks.mt.
13184
13185 2004-01-03 J. Brobecker <brobecker@gnat.com>
13186
13187 * infrun.c (handle_step_into_function): New function.
13188 (handle_inferior_event): Extract out some code into the new
13189 function above.
13190
13191 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13192
13193 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13194 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13195 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13196 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13197 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13198 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13199 (sparc_nat_h): New variable.
13200 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13201 (tm-sun4os4.h): Remove dependency.
13202 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13203 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13204 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13205 sparc-tdep.o): Update dependencies.
13206 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13207 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13208 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13209 dependencies.
13210 * configure.host: Remove existing sparc-*-lynxos*,
13211 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13212 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13213 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13214 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13215 triplets.
13216 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13217 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13218 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13219 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13220 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13221 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13222 sparc64-*-solaris2* and sparc64-*-* triplets.
13223 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13224 "symtab.h" and "objfiles.h".
13225 (BIAS): Remove define.
13226 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13227 (X_DISP19): Remove macros.
13228 (sparc_fetch_instruction): Remove function.
13229 (struct gdbarch_tdep): Remove definition.
13230 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13231 (sparc_breakpoint_from_pc): Remove function.
13232 (struct sparc64_frame_cache): Remove definition.
13233 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13234 sparc64_unwind_pc): Remove functions.
13235 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13236 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13237 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13238 (sparc64_frame_cache): Change return type to `struct
13239 sparc_frame_cache *'. Simply call sparc_frame_cache.
13240 (sparc64_frame_this_id, sparc64_frame_prev_register,
13241 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13242 instead of `struct sparc64_frame_cache.
13243 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13244 sparc_analyze_control_transfer, sparc_software_single_step,
13245 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13246 _initialize_sparc64_tdep): Remove functions.
13247 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13248 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13249 macros.
13250 (sparc64_supply_gregset, sparc64_collect_gregset,
13251 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13252 (sparc64_init_abi): New function.
13253 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13254 inclusion guard. Include "sparc-tdep.h".
13255 (BIAS): Define.
13256 (r_tstate_offset, r_fprs_offset): New defines.
13257 (enum sparc_regnum): Remove defenition.
13258 (enum sparc64_regnum): Reformat.
13259 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13260 (sparc64_init_abi, sparc64_supply_gregset,
13261 sparc64_collect_gregset, sparc64_supply_fpregset,
13262 sparc64_collect_fpregset): New prototypes.
13263 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13264 Add extern declarations.
13265 (sparc64_sol2_init_abi): New prototype.
13266 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13267 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13268 prototypes.
13269 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13270 "sparnbsd-nat.h".
13271 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13272 functions.
13273 (_initialize_sparc64fbsd_nat): Remove initialization of
13274 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13275 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
13276 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
13277 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13278 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13279 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13280 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13281 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13282 (sparc64fbsd_r_y_offset): Remove variables.
13283 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13284 Make static and const.
13285 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13286 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13287 functions.
13288 (sparc64fbsd_gregset): New variable.
13289 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13290 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13291 and sparc64_supply_fpregset.
13292 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13293 (sparc64fbsd_sigtramp_frame_this_id)
13294 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13295 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13296 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13297 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13298 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13299 * sparcnbsd-tdep.c: Update copyright year. Include
13300 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13301 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13302 "value.h" and "sparcnbsd-tdep.h".
13303 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13304 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13305 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13306 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13307 defines.
13308 (sparcnbsd_gregset): New variable.
13309 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13310 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13311 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13312 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13313 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13314 variables.
13315 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13316 (sparc32nbsd_sigcontext_frame_this_id)
13317 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13318 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13319 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13320 (sparcnbsd_get_longjmp_target_32,
13321 sparcnbsd_get_longjmp_target_64): Remove functions.
13322 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13323 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13324 sparcnbsd_init_elf): Remove.
13325 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13326 (sparcnbsd_elf_init_abi): New functions.
13327 (_initialize_sparcnbsd_tdep): New prototype.
13328 (_initialize_sparnbsd_tdep): Update.
13329 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13330 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13331 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13332 * config/sparc/linux.mh: Update comment.
13333 (XM_FILE, HOST_IPC): Remove variables.
13334 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13335 sparc-linux-nat.o.
13336 * config/sparc/linux.mt: Update comment.
13337 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13338 * config/sparc/nbsd.mt: Reformat.
13339 * config/sparc/nbsd64.mh: Update comment.
13340 (NATDEPFILES): Add sparc-nat.o.
13341 * config/sparc/nbsd64.mt: Update comment.
13342 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13343 (TM_FILE): Set to tm-nbsd.h.
13344 * config/sparc/nbsdelf.mh: Update comment.
13345 (NATDEPFILES): Add sparc-nat.o.
13346 (XM_FILE): Delete.
13347 * config/sparc/nbsdaout.mh: Update comment.
13348 (NATDEPFILES): Add sparc-nat.o
13349 (XM_FILE): Delete.
13350 * config/sparc/nm-linux.h: Update copyright year. Don't include
13351 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13352 inclusion.
13353 (KERNEL_U_SIZE): Remove define.
13354 (kernel_u_size): Remove prototype.
13355 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13356 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13357 "regcache.h".
13358 (CHILD_PREPARE_TO_STORE): Remove define.
13359 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13360 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13361 sparcnbsd-nat.c: Rewrite files.
13362 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13363 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13364 sparcnbsd-tdep.h: Remove files.
13365 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13366 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13367 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13368 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13369 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13370 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13371 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13372 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13373 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13374 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13375 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13376 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13377 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13378 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13379 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13380 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13381 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13382 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13383 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13384
13385 2004-01-02 Andrew Cagney <cagney@redhat.com>
13386
13387 From 2003-12-18 Kazuhiro Inaoka:
13388 * configure.host: Add m32r-linux target.
13389
13390 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13391
13392 * top.c (print_gdb_version): Update year to 2004.
13393
13394 2004-01-02 Mark Mitchell <mark@codesourcery.com>
13395
13396 * MAINTAINERS: Add myself to the write-after-approval category.
13397
13398 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
13399
13400 From Bernardo Innocenti <bernie@develer.com>:
13401 * configure.tgt: Add uClinux target.
13402
13403 2004-01-02 Andrew Cagney <cagney@redhat.com>
13404
13405 * utils.c (do_my_cleanups): Make static, add forward declaration.
13406 * defs.h (do_my_cleanups): Delete declaration.
13407
13408 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
13409
13410 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13411 bfd/ChangeLog-0203.
13412
13413 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13414
13415 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13416 in <machine/reg.h>.
13417 * configure, config.in: Regenerate.
13418
13419 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13420 tui/ChangeLog-1998-2003.
13421 \f
13422 Local Variables:
13423 mode: change-log
13424 left-margin: 8
13425 fill-column: 74
13426 version-control: never
13427 End:
This page took 0.349453 seconds and 5 git commands to generate.